added WXWIN_COMPATIBILITY_2_8
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60 for wxWidgets 2.9.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26 fi
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41   echo "#! /bin/sh" >conf$$.sh
42   echo  "exit 0"   >>conf$$.sh
43   chmod +x conf$$.sh
44   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45     PATH_SEPARATOR=';'
46   else
47     PATH_SEPARATOR=:
48   fi
49   rm -f conf$$.sh
50 fi
51
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54   as_unset=unset
55 else
56   as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order.  Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" ""        $as_nl"
68
69 # Find who we are.  Look in the path if we contain no directory separator.
70 case $0 in
71   *[\\/]* ) as_myself=$0 ;;
72   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
74 do
75   IFS=$as_save_IFS
76   test -z "$as_dir" && as_dir=.
77   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
80
81      ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86   as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90   { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105   LC_TELEPHONE LC_TIME
106 do
107   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108     eval $as_var=C; export $as_var
109   else
110     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111   fi
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116    test "X`expr 00001 : '.*\(...\)'`" = X001; then
117   as_expr=expr
118 else
119   as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123   as_basename=basename
124 else
125   as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132          X"$0" : 'X\(//\)$' \| \
133          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135     sed '/^.*\/\([^/][^/]*\)\/*$/{
136             s//\1/
137             q
138           }
139           /^X\/\(\/\/\)$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\).*/{
144             s//\1/
145             q
146           }
147           s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154   if (eval ":") 2>/dev/null; then
155   as_have_required=yes
156 else
157   as_have_required=no
158 fi
159
160   if test $as_have_required = yes &&     (eval ":
161 (as_func_return () {
162   (exit \$1)
163 }
164 as_func_success () {
165   as_func_return 0
166 }
167 as_func_failure () {
168   as_func_return 1
169 }
170 as_func_ret_success () {
171   return 0
172 }
173 as_func_ret_failure () {
174   return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179   :
180 else
181   exitcode=1
182   echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186   exitcode=1
187   echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191   :
192 else
193   exitcode=1
194   echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198   exitcode=1
199   echo as_func_ret_failure succeeded.
200 fi
201
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203   :
204 else
205   exitcode=1
206   echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212   as_lineno_1=\$LINENO
213   as_lineno_2=\$LINENO
214   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217   :
218 else
219   as_candidate_shells=
220     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223   IFS=$as_save_IFS
224   test -z "$as_dir" && as_dir=.
225   case $as_dir in
226          /*)
227            for as_base in sh bash ksh sh5; do
228              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229            done;;
230        esac
231 done
232 IFS=$as_save_IFS
233
234
235       for as_shell in $as_candidate_shells $SHELL; do
236          # Try only shells that exist, to save several forks.
237          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238                 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
249 fi
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
252
253 :
254 _ASEOF
255 }; then
256   CONFIG_SHELL=$as_shell
257                as_have_required=yes
258                if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261   emulate sh
262   NULLCMD=:
263   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264   # is contrary to our usage.  Disable this feature.
265   alias -g '${1+"$@"}'='"$@"'
266   setopt NO_GLOB_SUBST
267 else
268   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
269 fi
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
272
273 :
274 (as_func_return () {
275   (exit $1)
276 }
277 as_func_success () {
278   as_func_return 0
279 }
280 as_func_failure () {
281   as_func_return 1
282 }
283 as_func_ret_success () {
284   return 0
285 }
286 as_func_ret_failure () {
287   return 1
288 }
289
290 exitcode=0
291 if as_func_success; then
292   :
293 else
294   exitcode=1
295   echo as_func_success failed.
296 fi
297
298 if as_func_failure; then
299   exitcode=1
300   echo as_func_failure succeeded.
301 fi
302
303 if as_func_ret_success; then
304   :
305 else
306   exitcode=1
307   echo as_func_ret_success failed.
308 fi
309
310 if as_func_ret_failure; then
311   exitcode=1
312   echo as_func_ret_failure succeeded.
313 fi
314
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
316   :
317 else
318   exitcode=1
319   echo positional parameters were not saved.
320 fi
321
322 test $exitcode = 0) || { (exit 1); exit 1; }
323
324 (
325   as_lineno_1=$LINENO
326   as_lineno_2=$LINENO
327   test "x$as_lineno_1" != "x$as_lineno_2" &&
328   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
329
330 _ASEOF
331 }; then
332   break
333 fi
334
335 fi
336
337       done
338
339       if test "x$CONFIG_SHELL" != x; then
340   for as_var in BASH_ENV ENV
341         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
342         done
343         export CONFIG_SHELL
344         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 fi
346
347
348     if test $as_have_required = no; then
349   echo This script requires a shell more modern than all the
350       echo shells that I found on your system.  Please install a
351       echo modern shell, or manually run the script under such a
352       echo shell if you do have one.
353       { (exit 1); exit 1; }
354 fi
355
356
357 fi
358
359 fi
360
361
362
363 (eval "as_func_return () {
364   (exit \$1)
365 }
366 as_func_success () {
367   as_func_return 0
368 }
369 as_func_failure () {
370   as_func_return 1
371 }
372 as_func_ret_success () {
373   return 0
374 }
375 as_func_ret_failure () {
376   return 1
377 }
378
379 exitcode=0
380 if as_func_success; then
381   :
382 else
383   exitcode=1
384   echo as_func_success failed.
385 fi
386
387 if as_func_failure; then
388   exitcode=1
389   echo as_func_failure succeeded.
390 fi
391
392 if as_func_ret_success; then
393   :
394 else
395   exitcode=1
396   echo as_func_ret_success failed.
397 fi
398
399 if as_func_ret_failure; then
400   exitcode=1
401   echo as_func_ret_failure succeeded.
402 fi
403
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405   :
406 else
407   exitcode=1
408   echo positional parameters were not saved.
409 fi
410
411 test \$exitcode = 0") || {
412   echo No shell found that supports shell functions.
413   echo Please tell autoconf@gnu.org about your system,
414   echo including any error possibly output before this
415   echo message
416 }
417
418
419
420   as_lineno_1=$LINENO
421   as_lineno_2=$LINENO
422   test "x$as_lineno_1" != "x$as_lineno_2" &&
423   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
424
425   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426   # uniformly replaced by the line number.  The first 'sed' inserts a
427   # line-number line after each line using $LINENO; the second 'sed'
428   # does the real work.  The second script uses 'N' to pair each
429   # line-number line with the line containing $LINENO, and appends
430   # trailing '-' during substitution so that $LINENO is not a special
431   # case at line end.
432   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433   # scripts with optimization help from Paolo Bonzini.  Blame Lee
434   # E. McMahon (1931-1989) for sed's syntax.  :-)
435   sed -n '
436     p
437     /[$]LINENO/=
438   ' <$as_myself |
439     sed '
440       s/[$]LINENO.*/&-/
441       t lineno
442       b
443       :lineno
444       N
445       :loop
446       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447       t loop
448       s/-\n.*//
449     ' >$as_me.lineno &&
450   chmod +x "$as_me.lineno" ||
451     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452    { (exit 1); exit 1; }; }
453
454   # Don't try to exec as it changes $[0], causing all sort of problems
455   # (the dirname of $[0] is not the place where we might find the
456   # original and so on.  Autoconf is especially sensitive to this).
457   . "./$as_me.lineno"
458   # Exit status is that of the last command.
459   exit
460 }
461
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464   as_dirname=dirname
465 else
466   as_dirname=false
467 fi
468
469 ECHO_C= ECHO_N= ECHO_T=
470 case `echo -n x` in
471 -n*)
472   case `echo 'x\c'` in
473   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
474   *)   ECHO_C='\c';;
475   esac;;
476 *)
477   ECHO_N='-n';;
478 esac
479
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481    test "X`expr 00001 : '.*\(...\)'`" = X001; then
482   as_expr=expr
483 else
484   as_expr=false
485 fi
486
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489   rm -f conf$$.dir/conf$$.file
490 else
491   rm -f conf$$.dir
492   mkdir conf$$.dir
493 fi
494 echo >conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
496   as_ln_s='ln -s'
497   # ... but there are two gotchas:
498   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500   # In both cases, we have to default to `cp -p'.
501   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
502     as_ln_s='cp -p'
503 elif ln conf$$.file conf$$ 2>/dev/null; then
504   as_ln_s=ln
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p=:
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
521 #! /bin/sh
522 exit 0
523 _ASEOF
524 chmod +x conf$$.file
525 if test -x conf$$.file >/dev/null 2>&1; then
526   as_executable_p="test -x"
527 else
528   as_executable_p=:
529 fi
530 rm -f conf$$.file
531
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537
538
539
540 exec 7<&0 </dev/null 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 # Identity of this package.
561 PACKAGE_NAME='wxWidgets'
562 PACKAGE_TARNAME='wxwidgets'
563 PACKAGE_VERSION='2.9.0'
564 PACKAGE_STRING='wxWidgets 2.9.0'
565 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
566
567 ac_unique_file="wx-config.in"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #if HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #if HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #if STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # if HAVE_STDLIB_H
582 #  include <stdlib.h>
583 # endif
584 #endif
585 #if HAVE_STRING_H
586 # if !STDC_HEADERS && HAVE_MEMORY_H
587 #  include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #if HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #if HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #if HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #if HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 ac_subst_vars='SHELL
605 PATH_SEPARATOR
606 PACKAGE_NAME
607 PACKAGE_TARNAME
608 PACKAGE_VERSION
609 PACKAGE_STRING
610 PACKAGE_BUGREPORT
611 exec_prefix
612 prefix
613 program_transform_name
614 bindir
615 sbindir
616 libexecdir
617 datarootdir
618 datadir
619 sysconfdir
620 sharedstatedir
621 localstatedir
622 includedir
623 oldincludedir
624 docdir
625 infodir
626 htmldir
627 dvidir
628 pdfdir
629 psdir
630 libdir
631 localedir
632 mandir
633 DEFS
634 ECHO_C
635 ECHO_N
636 ECHO_T
637 LIBS
638 build_alias
639 host_alias
640 target_alias
641 build
642 build_cpu
643 build_vendor
644 build_os
645 host
646 host_cpu
647 host_vendor
648 host_os
649 target
650 target_cpu
651 target_vendor
652 target_os
653 wx_top_builddir
654 CC
655 CFLAGS
656 LDFLAGS
657 CPPFLAGS
658 ac_ct_CC
659 EXEEXT
660 OBJEXT
661 CPP
662 GREP
663 EGREP
664 CXX
665 CXXFLAGS
666 ac_ct_CXX
667 RANLIB
668 AR
669 INSTALL_PROGRAM
670 INSTALL_SCRIPT
671 INSTALL_DATA
672 STRIP
673 WINDRES
674 DLLTOOL
675 IF_GNU_MAKE
676 LN_S
677 CXXCPP
678 subdirs
679 PKG_CONFIG
680 GTK_CFLAGS
681 GTK_LIBS
682 GTK_CONFIG
683 DIRECTFB_CFLAGS
684 DIRECTFB_LIBS
685 XMKMF
686 X_CFLAGS
687 X_PRE_LIBS
688 X_LIBS
689 X_EXTRA_LIBS
690 PANGOX_CFLAGS
691 PANGOX_LIBS
692 PANGOFT2_CFLAGS
693 PANGOFT2_LIBS
694 PANGOXFT_CFLAGS
695 PANGOXFT_LIBS
696 REZ
697 DEREZ
698 SETFILE
699 LIBICONV
700 EXTRALIBS_ESD
701 SDL_CONFIG
702 SDL_CFLAGS
703 SDL_LIBS
704 LIBGNOMEPRINTUI_CFLAGS
705 LIBGNOMEPRINTUI_LIBS
706 GNOMEVFS_CFLAGS
707 GNOMEVFS_LIBS
708 HILDON_CFLAGS
709 HILDON_LIBS
710 CAIRO_CFLAGS
711 CAIRO_LIBS
712 GST_CFLAGS
713 GST_LIBS
714 CORE_BASE_LIBS
715 CORE_GUI_LIBS
716 wxUSE_ZLIB
717 wxUSE_REGEX
718 wxUSE_EXPAT
719 wxUSE_ODBC
720 wxUSE_LIBJPEG
721 wxUSE_LIBPNG
722 wxUSE_LIBTIFF
723 VENDOR
724 OFFICIAL_BUILD
725 WX_FLAVOUR
726 WX_LIB_FLAVOUR
727 WXUNIV
728 MONOLITHIC
729 USE_PLUGINS
730 EXTRALIBS
731 EXTRALIBS_XML
732 EXTRALIBS_HTML
733 EXTRALIBS_ODBC
734 EXTRALIBS_GUI
735 EXTRALIBS_OPENGL
736 EXTRALIBS_SDL
737 WITH_PLUGIN_SDL
738 EXTRALIBS_GNOMEPRINT
739 EXTRALIBS_GNOMEVFS
740 EXTRALIBS_HILDON
741 UNICODE
742 BUILD
743 DEBUG_INFO
744 DEBUG_FLAG
745 TOOLKIT_LOWERCASE
746 TOOLKIT_VERSION
747 SAMPLES_RPATH_FLAG
748 SAMPLES_RPATH_POSTLINK
749 HOST_SUFFIX
750 CPPUNIT_CFLAGS
751 CPPUNIT_LIBS
752 SET_MAKE
753 MAKE_SET
754 AROPTIONS
755 NM
756 INSTALL_DIR
757 LDFLAGS_GUI
758 PLATFORM_UNIX
759 PLATFORM_WIN32
760 PLATFORM_MSDOS
761 PLATFORM_MAC
762 PLATFORM_MACOS
763 PLATFORM_MACOSX
764 PLATFORM_OS2
765 PLATFORM_BEOS
766 SO_SUFFIX
767 SO_SUFFIX_MODULE
768 DLLIMP_SUFFIX
769 LIBPREFIX
770 LIBEXT
771 DLLPREFIX
772 DLLPREFIX_MODULE
773 dlldir
774 AIX_CXX_LD
775 SHARED_LD_CC
776 SHARED_LD_CXX
777 SHARED_LD_MODULE_CC
778 SHARED_LD_MODULE_CXX
779 PIC_FLAG
780 WINDOWS_IMPLIB
781 USE_SOVERSION
782 USE_SOVERLINUX
783 USE_SOVERSOLARIS
784 USE_SOVERCYGWIN
785 USE_MACVERSION
786 USE_SOSYMLINKS
787 SONAME_FLAG
788 DEPS_TRACKING
789 BK_DEPS
790 GCC_PCH
791 ICC_PCH
792 BK_MAKE_PCH
793 COND_BUILD_DEBUG
794 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
795 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
796 COND_BUILD_DEBUG_UNICODE_0
797 COND_BUILD_DEBUG_UNICODE_1
798 COND_BUILD_RELEASE
799 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
800 COND_BUILD_RELEASE_UNICODE_0
801 COND_BUILD_RELEASE_UNICODE_1
802 COND_DEBUG_FLAG_1
803 COND_DEBUG_INFO_0
804 COND_DEBUG_INFO_1
805 COND_DEPS_TRACKING_0
806 COND_DEPS_TRACKING_1
807 COND_GCC_PCH_1
808 COND_ICC_PCH_1
809 COND_MONOLITHIC_0
810 COND_MONOLITHIC_0_SHARED_0
811 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
812 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
813 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
814 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
815 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1
816 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
817 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1
818 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
819 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
820 COND_MONOLITHIC_0_SHARED_1
821 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
822 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
823 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
824 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
825 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1
826 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
827 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1
828 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
829 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
830 COND_MONOLITHIC_0_USE_MEDIA_1
831 COND_MONOLITHIC_0_USE_ODBC_1
832 COND_MONOLITHIC_1
833 COND_MONOLITHIC_1_SHARED_0
834 COND_MONOLITHIC_1_SHARED_1
835 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
836 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
837 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
838 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
839 COND_PLATFORM_MACOSX_1
840 COND_PLATFORM_MACOSX_1_TOOLKIT_
841 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
842 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
843 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
844 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
845 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
846 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
847 COND_PLATFORM_MACOSX_1_USE_GUI_1
848 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
849 COND_PLATFORM_MACOS_1
850 COND_PLATFORM_MAC_1
851 COND_PLATFORM_MSDOS_0
852 COND_PLATFORM_MSDOS_1
853 COND_PLATFORM_OS2_1
854 COND_PLATFORM_UNIX_0
855 COND_PLATFORM_UNIX_1
856 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
857 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
858 COND_PLATFORM_UNIX_1_USE_GUI_1
859 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
860 COND_PLATFORM_WIN32_0
861 COND_PLATFORM_WIN32_1
862 COND_SHARED_0
863 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
864 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
865 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
866 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
867 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
868 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
869 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
870 COND_SHARED_0_USE_XRC_1
871 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
872 COND_SHARED_0_WXUSE_ODBC_BUILTIN
873 COND_SHARED_0_WXUSE_REGEX_BUILTIN
874 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
875 COND_SHARED_1
876 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
877 COND_SHARED_1_USE_XRC_1
878 COND_TOOLKIT_
879 COND_TOOLKIT_COCOA
880 COND_TOOLKIT_COCOA_USE_GUI_1
881 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
882 COND_TOOLKIT_DFB
883 COND_TOOLKIT_DFB_USE_GUI_1
884 COND_TOOLKIT_GTK
885 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
886 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
887 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
888 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
889 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
890 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
891 COND_TOOLKIT_GTK_USE_GUI_1
892 COND_TOOLKIT_MAC
893 COND_TOOLKIT_MAC_USE_GUI_1
894 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
895 COND_TOOLKIT_MGL
896 COND_TOOLKIT_MGL_USE_GUI_1
897 COND_TOOLKIT_MOTIF
898 COND_TOOLKIT_MOTIF_USE_GUI_1
899 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
900 COND_TOOLKIT_MSW
901 COND_TOOLKIT_MSW_USE_GUI_1
902 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
903 COND_TOOLKIT_MSW_WXUNIV_0
904 COND_TOOLKIT_PM
905 COND_TOOLKIT_PM_USE_GUI_1
906 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
907 COND_TOOLKIT_WINCE
908 COND_TOOLKIT_WINCE_USE_GUI_1
909 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
910 COND_TOOLKIT_WINCE_WXUNIV_0
911 COND_TOOLKIT_X11
912 COND_TOOLKIT_X11_USE_GUI_1
913 COND_UNICODE_1
914 COND_USE_EXCEPTIONS_0
915 COND_USE_EXCEPTIONS_1
916 COND_USE_GUI_0
917 COND_USE_GUI_1
918 COND_USE_GUI_1_WXUNIV_0
919 COND_USE_GUI_1_WXUNIV_1
920 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
921 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
922 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
923 COND_USE_ODBC_1
924 COND_USE_OPENGL_1
925 COND_USE_PCH_1
926 COND_USE_PLUGINS_0
927 COND_USE_RTTI_0
928 COND_USE_RTTI_1
929 COND_USE_SOSYMLINKS_1
930 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
931 COND_USE_SOVERLINUX_1
932 COND_USE_SOVERSION_0
933 COND_USE_SOVERSOLARIS_1
934 COND_USE_THREADS_0
935 COND_USE_THREADS_1
936 COND_USE_XRC_1
937 COND_WINDOWS_IMPLIB_1
938 COND_WITH_PLUGIN_SDL_1
939 COND_WXUNIV_0
940 COND_WXUNIV_1
941 COND_WXUSE_EXPAT_BUILTIN
942 COND_WXUSE_LIBJPEG_BUILTIN
943 COND_WXUSE_LIBPNG_BUILTIN
944 COND_WXUSE_LIBTIFF_BUILTIN
945 COND_WXUSE_ODBC_BUILTIN
946 COND_WXUSE_REGEX_BUILTIN
947 COND_WXUSE_ZLIB_BUILTIN
948 SHARED
949 WX_LIBRARY_BASENAME_NOGUI
950 WX_LIBRARY_BASENAME_GUI
951 USE_GUI
952 AFMINSTALL
953 WIN32INSTALL
954 TOOLKIT
955 TOOLKIT_DIR
956 TOOLCHAIN_NAME
957 TOOLCHAIN_FULLNAME
958 cross_compiling
959 WIDGET_SET
960 WX_RELEASE
961 WX_VERSION
962 WX_SUBVERSION
963 WX_CHARTYPE
964 WX_DEBUGTYPE
965 WXCONFIG_CPPFLAGS
966 WXCONFIG_CFLAGS
967 WXCONFIG_CXXFLAGS
968 WXCONFIG_LIBS
969 WXCONFIG_RPATH
970 WXCONFIG_LDFLAGS_GUI
971 WXCONFIG_RESFLAGS
972 EXE_LINKER
973 GUIDIST
974 DISTDIR
975 SAMPLES_SUBDIRS
976 LDFLAGS_GL
977 OPENGL_LIBS
978 DMALLOC_LIBS
979 WX_VERSION_TAG
980 RESCOMP
981 RESFLAGS
982 RESPROGRAMOBJ
983 WX_RESOURCES_MACOSX_ASCII
984 WX_RESOURCES_MACOSX_DATA
985 LIBWXMACRES
986 POSTLINK_COMMAND
987 MACSETFILE
988 GCC
989 CPPUNIT_CONFIG
990 LIBOBJS
991 LTLIBOBJS'
992 ac_subst_files=''
993       ac_precious_vars='build_alias
994 host_alias
995 target_alias
996 CC
997 CFLAGS
998 LDFLAGS
999 CPPFLAGS
1000 CPP
1001 CXX
1002 CXXFLAGS
1003 CCC
1004 CXXCPP
1005 PKG_CONFIG
1006 DIRECTFB_CFLAGS
1007 DIRECTFB_LIBS
1008 XMKMF
1009 PANGOX_CFLAGS
1010 PANGOX_LIBS
1011 PANGOFT2_CFLAGS
1012 PANGOFT2_LIBS
1013 PANGOXFT_CFLAGS
1014 PANGOXFT_LIBS
1015 LIBGNOMEPRINTUI_CFLAGS
1016 LIBGNOMEPRINTUI_LIBS
1017 GNOMEVFS_CFLAGS
1018 GNOMEVFS_LIBS
1019 HILDON_CFLAGS
1020 HILDON_LIBS
1021 CAIRO_CFLAGS
1022 CAIRO_LIBS
1023 GST_CFLAGS
1024 GST_LIBS'
1025 ac_subdirs_all='src/expat'
1026
1027 # Initialize some variables set by options.
1028 ac_init_help=
1029 ac_init_version=false
1030 # The variables have the same names as the options, with
1031 # dashes changed to underlines.
1032 cache_file=/dev/null
1033 exec_prefix=NONE
1034 no_create=
1035 no_recursion=
1036 prefix=NONE
1037 program_prefix=NONE
1038 program_suffix=NONE
1039 program_transform_name=s,x,x,
1040 silent=
1041 site=
1042 srcdir=
1043 verbose=
1044 x_includes=NONE
1045 x_libraries=NONE
1046
1047 # Installation directory options.
1048 # These are left unexpanded so users can "make install exec_prefix=/foo"
1049 # and all the variables that are supposed to be based on exec_prefix
1050 # by default will actually change.
1051 # Use braces instead of parens because sh, perl, etc. also accept them.
1052 # (The list follows the same order as the GNU Coding Standards.)
1053 bindir='${exec_prefix}/bin'
1054 sbindir='${exec_prefix}/sbin'
1055 libexecdir='${exec_prefix}/libexec'
1056 datarootdir='${prefix}/share'
1057 datadir='${datarootdir}'
1058 sysconfdir='${prefix}/etc'
1059 sharedstatedir='${prefix}/com'
1060 localstatedir='${prefix}/var'
1061 includedir='${prefix}/include'
1062 oldincludedir='/usr/include'
1063 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1064 infodir='${datarootdir}/info'
1065 htmldir='${docdir}'
1066 dvidir='${docdir}'
1067 pdfdir='${docdir}'
1068 psdir='${docdir}'
1069 libdir='${exec_prefix}/lib'
1070 localedir='${datarootdir}/locale'
1071 mandir='${datarootdir}/man'
1072
1073 ac_prev=
1074 ac_dashdash=
1075 for ac_option
1076 do
1077   # If the previous option needs an argument, assign it.
1078   if test -n "$ac_prev"; then
1079     eval $ac_prev=\$ac_option
1080     ac_prev=
1081     continue
1082   fi
1083
1084   case $ac_option in
1085   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1086   *)    ac_optarg=yes ;;
1087   esac
1088
1089   # Accept the important Cygnus configure options, so we can diagnose typos.
1090
1091   case $ac_dashdash$ac_option in
1092   --)
1093     ac_dashdash=yes ;;
1094
1095   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1096     ac_prev=bindir ;;
1097   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1098     bindir=$ac_optarg ;;
1099
1100   -build | --build | --buil | --bui | --bu)
1101     ac_prev=build_alias ;;
1102   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1103     build_alias=$ac_optarg ;;
1104
1105   -cache-file | --cache-file | --cache-fil | --cache-fi \
1106   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1107     ac_prev=cache_file ;;
1108   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1109   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1110     cache_file=$ac_optarg ;;
1111
1112   --config-cache | -C)
1113     cache_file=config.cache ;;
1114
1115   -datadir | --datadir | --datadi | --datad)
1116     ac_prev=datadir ;;
1117   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1118     datadir=$ac_optarg ;;
1119
1120   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1121   | --dataroo | --dataro | --datar)
1122     ac_prev=datarootdir ;;
1123   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1124   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1125     datarootdir=$ac_optarg ;;
1126
1127   -disable-* | --disable-*)
1128     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1131       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1132    { (exit 1); exit 1; }; }
1133     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1134     eval enable_$ac_feature=no ;;
1135
1136   -docdir | --docdir | --docdi | --doc | --do)
1137     ac_prev=docdir ;;
1138   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1139     docdir=$ac_optarg ;;
1140
1141   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1142     ac_prev=dvidir ;;
1143   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1144     dvidir=$ac_optarg ;;
1145
1146   -enable-* | --enable-*)
1147     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1151    { (exit 1); exit 1; }; }
1152     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1153     eval enable_$ac_feature=\$ac_optarg ;;
1154
1155   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1156   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1157   | --exec | --exe | --ex)
1158     ac_prev=exec_prefix ;;
1159   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1160   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1161   | --exec=* | --exe=* | --ex=*)
1162     exec_prefix=$ac_optarg ;;
1163
1164   -gas | --gas | --ga | --g)
1165     # Obsolete; use --with-gas.
1166     with_gas=yes ;;
1167
1168   -help | --help | --hel | --he | -h)
1169     ac_init_help=long ;;
1170   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1171     ac_init_help=recursive ;;
1172   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1173     ac_init_help=short ;;
1174
1175   -host | --host | --hos | --ho)
1176     ac_prev=host_alias ;;
1177   -host=* | --host=* | --hos=* | --ho=*)
1178     host_alias=$ac_optarg ;;
1179
1180   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1181     ac_prev=htmldir ;;
1182   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1183   | --ht=*)
1184     htmldir=$ac_optarg ;;
1185
1186   -includedir | --includedir | --includedi | --included | --include \
1187   | --includ | --inclu | --incl | --inc)
1188     ac_prev=includedir ;;
1189   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1190   | --includ=* | --inclu=* | --incl=* | --inc=*)
1191     includedir=$ac_optarg ;;
1192
1193   -infodir | --infodir | --infodi | --infod | --info | --inf)
1194     ac_prev=infodir ;;
1195   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1196     infodir=$ac_optarg ;;
1197
1198   -libdir | --libdir | --libdi | --libd)
1199     ac_prev=libdir ;;
1200   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1201     libdir=$ac_optarg ;;
1202
1203   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1204   | --libexe | --libex | --libe)
1205     ac_prev=libexecdir ;;
1206   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1207   | --libexe=* | --libex=* | --libe=*)
1208     libexecdir=$ac_optarg ;;
1209
1210   -localedir | --localedir | --localedi | --localed | --locale)
1211     ac_prev=localedir ;;
1212   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1213     localedir=$ac_optarg ;;
1214
1215   -localstatedir | --localstatedir | --localstatedi | --localstated \
1216   | --localstate | --localstat | --localsta | --localst | --locals)
1217     ac_prev=localstatedir ;;
1218   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1219   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1220     localstatedir=$ac_optarg ;;
1221
1222   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1223     ac_prev=mandir ;;
1224   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1225     mandir=$ac_optarg ;;
1226
1227   -nfp | --nfp | --nf)
1228     # Obsolete; use --without-fp.
1229     with_fp=no ;;
1230
1231   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1232   | --no-cr | --no-c | -n)
1233     no_create=yes ;;
1234
1235   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1236   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1237     no_recursion=yes ;;
1238
1239   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1240   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1241   | --oldin | --oldi | --old | --ol | --o)
1242     ac_prev=oldincludedir ;;
1243   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1244   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1245   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1246     oldincludedir=$ac_optarg ;;
1247
1248   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1249     ac_prev=prefix ;;
1250   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1251     prefix=$ac_optarg ;;
1252
1253   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1254   | --program-pre | --program-pr | --program-p)
1255     ac_prev=program_prefix ;;
1256   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1257   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1258     program_prefix=$ac_optarg ;;
1259
1260   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1261   | --program-suf | --program-su | --program-s)
1262     ac_prev=program_suffix ;;
1263   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1264   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1265     program_suffix=$ac_optarg ;;
1266
1267   -program-transform-name | --program-transform-name \
1268   | --program-transform-nam | --program-transform-na \
1269   | --program-transform-n | --program-transform- \
1270   | --program-transform | --program-transfor \
1271   | --program-transfo | --program-transf \
1272   | --program-trans | --program-tran \
1273   | --progr-tra | --program-tr | --program-t)
1274     ac_prev=program_transform_name ;;
1275   -program-transform-name=* | --program-transform-name=* \
1276   | --program-transform-nam=* | --program-transform-na=* \
1277   | --program-transform-n=* | --program-transform-=* \
1278   | --program-transform=* | --program-transfor=* \
1279   | --program-transfo=* | --program-transf=* \
1280   | --program-trans=* | --program-tran=* \
1281   | --progr-tra=* | --program-tr=* | --program-t=*)
1282     program_transform_name=$ac_optarg ;;
1283
1284   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1285     ac_prev=pdfdir ;;
1286   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1287     pdfdir=$ac_optarg ;;
1288
1289   -psdir | --psdir | --psdi | --psd | --ps)
1290     ac_prev=psdir ;;
1291   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1292     psdir=$ac_optarg ;;
1293
1294   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295   | -silent | --silent | --silen | --sile | --sil)
1296     silent=yes ;;
1297
1298   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1299     ac_prev=sbindir ;;
1300   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1301   | --sbi=* | --sb=*)
1302     sbindir=$ac_optarg ;;
1303
1304   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1305   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1306   | --sharedst | --shareds | --shared | --share | --shar \
1307   | --sha | --sh)
1308     ac_prev=sharedstatedir ;;
1309   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1310   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1311   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1312   | --sha=* | --sh=*)
1313     sharedstatedir=$ac_optarg ;;
1314
1315   -site | --site | --sit)
1316     ac_prev=site ;;
1317   -site=* | --site=* | --sit=*)
1318     site=$ac_optarg ;;
1319
1320   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1321     ac_prev=srcdir ;;
1322   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1323     srcdir=$ac_optarg ;;
1324
1325   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1326   | --syscon | --sysco | --sysc | --sys | --sy)
1327     ac_prev=sysconfdir ;;
1328   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1329   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1330     sysconfdir=$ac_optarg ;;
1331
1332   -target | --target | --targe | --targ | --tar | --ta | --t)
1333     ac_prev=target_alias ;;
1334   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1335     target_alias=$ac_optarg ;;
1336
1337   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1338     verbose=yes ;;
1339
1340   -version | --version | --versio | --versi | --vers | -V)
1341     ac_init_version=: ;;
1342
1343   -with-* | --with-*)
1344     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1345     # Reject names that are not valid shell variable names.
1346     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1347       { echo "$as_me: error: invalid package name: $ac_package" >&2
1348    { (exit 1); exit 1; }; }
1349     ac_package=`echo $ac_package| sed 's/-/_/g'`
1350     eval with_$ac_package=\$ac_optarg ;;
1351
1352   -without-* | --without-*)
1353     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354     # Reject names that are not valid shell variable names.
1355     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1356       { echo "$as_me: error: invalid package name: $ac_package" >&2
1357    { (exit 1); exit 1; }; }
1358     ac_package=`echo $ac_package | sed 's/-/_/g'`
1359     eval with_$ac_package=no ;;
1360
1361   --x)
1362     # Obsolete; use --with-x.
1363     with_x=yes ;;
1364
1365   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1366   | --x-incl | --x-inc | --x-in | --x-i)
1367     ac_prev=x_includes ;;
1368   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1369   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1370     x_includes=$ac_optarg ;;
1371
1372   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1373   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1374     ac_prev=x_libraries ;;
1375   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1376   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1377     x_libraries=$ac_optarg ;;
1378
1379   -*) { echo "$as_me: error: unrecognized option: $ac_option
1380 Try \`$0 --help' for more information." >&2
1381    { (exit 1); exit 1; }; }
1382     ;;
1383
1384   *=*)
1385     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1386     # Reject names that are not valid shell variable names.
1387     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1388       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1389    { (exit 1); exit 1; }; }
1390     eval $ac_envvar=\$ac_optarg
1391     export $ac_envvar ;;
1392
1393   *)
1394     # FIXME: should be removed in autoconf 3.0.
1395     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1396     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1398     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1399     ;;
1400
1401   esac
1402 done
1403
1404 if test -n "$ac_prev"; then
1405   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1406   { echo "$as_me: error: missing argument to $ac_option" >&2
1407    { (exit 1); exit 1; }; }
1408 fi
1409
1410 # Be sure to have absolute directory names.
1411 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1412                 datadir sysconfdir sharedstatedir localstatedir includedir \
1413                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1414                 libdir localedir mandir
1415 do
1416   eval ac_val=\$$ac_var
1417   case $ac_val in
1418     [\\/$]* | ?:[\\/]* )  continue;;
1419     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1420   esac
1421   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1422    { (exit 1); exit 1; }; }
1423 done
1424
1425 # There might be people who depend on the old broken behavior: `$host'
1426 # used to hold the argument of --host etc.
1427 # FIXME: To remove some day.
1428 build=$build_alias
1429 host=$host_alias
1430 target=$target_alias
1431
1432 # FIXME: To remove some day.
1433 if test "x$host_alias" != x; then
1434   if test "x$build_alias" = x; then
1435     cross_compiling=maybe
1436     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1437     If a cross compiler is detected then cross compile mode will be used." >&2
1438   elif test "x$build_alias" != "x$host_alias"; then
1439     cross_compiling=yes
1440   fi
1441 fi
1442
1443 ac_tool_prefix=
1444 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1445
1446 test "$silent" = yes && exec 6>/dev/null
1447
1448
1449 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1450 ac_ls_di=`ls -di .` &&
1451 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1452   { echo "$as_me: error: Working directory cannot be determined" >&2
1453    { (exit 1); exit 1; }; }
1454 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1455   { echo "$as_me: error: pwd does not report name of working directory" >&2
1456    { (exit 1); exit 1; }; }
1457
1458
1459 # Find the source files, if location was not specified.
1460 if test -z "$srcdir"; then
1461   ac_srcdir_defaulted=yes
1462   # Try the directory containing this script, then the parent directory.
1463   ac_confdir=`$as_dirname -- "$0" ||
1464 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1465          X"$0" : 'X\(//\)[^/]' \| \
1466          X"$0" : 'X\(//\)$' \| \
1467          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1468 echo X"$0" |
1469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1470             s//\1/
1471             q
1472           }
1473           /^X\(\/\/\)[^/].*/{
1474             s//\1/
1475             q
1476           }
1477           /^X\(\/\/\)$/{
1478             s//\1/
1479             q
1480           }
1481           /^X\(\/\).*/{
1482             s//\1/
1483             q
1484           }
1485           s/.*/./; q'`
1486   srcdir=$ac_confdir
1487   if test ! -r "$srcdir/$ac_unique_file"; then
1488     srcdir=..
1489   fi
1490 else
1491   ac_srcdir_defaulted=no
1492 fi
1493 if test ! -r "$srcdir/$ac_unique_file"; then
1494   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1495   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1496    { (exit 1); exit 1; }; }
1497 fi
1498 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1499 ac_abs_confdir=`(
1500         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1501    { (exit 1); exit 1; }; }
1502         pwd)`
1503 # When building in place, set srcdir=.
1504 if test "$ac_abs_confdir" = "$ac_pwd"; then
1505   srcdir=.
1506 fi
1507 # Remove unnecessary trailing slashes from srcdir.
1508 # Double slashes in file names in object file debugging info
1509 # mess up M-x gdb in Emacs.
1510 case $srcdir in
1511 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1512 esac
1513 for ac_var in $ac_precious_vars; do
1514   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1515   eval ac_env_${ac_var}_value=\$${ac_var}
1516   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1517   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1518 done
1519
1520 #
1521 # Report the --help message.
1522 #
1523 if test "$ac_init_help" = "long"; then
1524   # Omit some internal or obsolete options to make the list less imposing.
1525   # This message is too long to be a string in the A/UX 3.1 sh.
1526   cat <<_ACEOF
1527 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1528
1529 Usage: $0 [OPTION]... [VAR=VALUE]...
1530
1531 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1532 VAR=VALUE.  See below for descriptions of some of the useful variables.
1533
1534 Defaults for the options are specified in brackets.
1535
1536 Configuration:
1537   -h, --help              display this help and exit
1538       --help=short        display options specific to this package
1539       --help=recursive    display the short help of all the included packages
1540   -V, --version           display version information and exit
1541   -q, --quiet, --silent   do not print \`checking...' messages
1542       --cache-file=FILE   cache test results in FILE [disabled]
1543   -C, --config-cache      alias for \`--cache-file=config.cache'
1544   -n, --no-create         do not create output files
1545       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1546
1547 Installation directories:
1548   --prefix=PREFIX         install architecture-independent files in PREFIX
1549                           [$ac_default_prefix]
1550   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1551                           [PREFIX]
1552
1553 By default, \`make install' will install all the files in
1554 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1555 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1556 for instance \`--prefix=\$HOME'.
1557
1558 For better control, use the options below.
1559
1560 Fine tuning of the installation directories:
1561   --bindir=DIR           user executables [EPREFIX/bin]
1562   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1563   --libexecdir=DIR       program executables [EPREFIX/libexec]
1564   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1565   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1566   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1567   --libdir=DIR           object code libraries [EPREFIX/lib]
1568   --includedir=DIR       C header files [PREFIX/include]
1569   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1570   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1571   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1572   --infodir=DIR          info documentation [DATAROOTDIR/info]
1573   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1574   --mandir=DIR           man documentation [DATAROOTDIR/man]
1575   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1576   --htmldir=DIR          html documentation [DOCDIR]
1577   --dvidir=DIR           dvi documentation [DOCDIR]
1578   --pdfdir=DIR           pdf documentation [DOCDIR]
1579   --psdir=DIR            ps documentation [DOCDIR]
1580 _ACEOF
1581
1582   cat <<\_ACEOF
1583
1584 X features:
1585   --x-includes=DIR    X include files are in DIR
1586   --x-libraries=DIR   X library files are in DIR
1587
1588 System types:
1589   --build=BUILD     configure for building on BUILD [guessed]
1590   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1591   --target=TARGET   configure for building compilers for TARGET [HOST]
1592 _ACEOF
1593 fi
1594
1595 if test -n "$ac_init_help"; then
1596   case $ac_init_help in
1597      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1598    esac
1599   cat <<\_ACEOF
1600
1601 Optional Features:
1602   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1603   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1604   --enable-gui            use GUI classes
1605   --enable-monolithic     build wxWidgets as single library
1606   --enable-plugins        build parts of wxWidgets as loadable components
1607   --enable-universal      use wxWidgets GUI controls instead of native ones
1608   --enable-nanox          use NanoX
1609   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1610   --enable-gpe            use GNOME PDA Environment features if possible
1611   --enable-shared         create shared library code
1612   --enable-optimise       create optimised code
1613   --enable-debug          same as debug_flag and debug_info
1614   --enable-stl            use STL for containers
1615   --enable-omf            use OMF object format
1616   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1617   --enable-debug_info     create code with debugging information
1618   --enable-debug_gdb      create code with extra GDB debugging information
1619   --enable-debug_cntxt    use wxDebugContext
1620   --enable-mem_tracing    create code with memory tracing
1621   --enable-profile        create code with profiling information
1622   --enable-no_rtti        create code without RTTI information
1623   --enable-no_exceptions  create code without C++ exceptions handling
1624   --enable-permissive     compile code disregarding strict ANSI
1625   --enable-no_deps        create code without dependency information
1626   --disable-vararg_macros don't use vararg macros, even if they are supported
1627   --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
1628   --enable-compat24       enable wxWidgets 2.4 compatibility
1629   --enable-compat26       enable wxWidgets 2.6 compatibility
1630   --disable-compat28      disable wxWidgets 2.8 compatibility
1631   --disable-rpath         disable use of rpath for uninstalled builds
1632   --enable-intl           use internationalization system
1633   --enable-config         use wxConfig (and derived) classes
1634   --enable-protocols      use wxProtocol and derived classes
1635   --enable-ftp            use wxFTP (requires wxProtocol
1636   --enable-http           use wxHTTP (requires wxProtocol
1637   --enable-fileproto      use wxFileProto class (requires wxProtocol
1638   --enable-sockets        use socket/network classes
1639   --enable-ole            use OLE classes (Win32 only)
1640   --enable-dataobj        use data object classes
1641   --enable-ipc            use interprocess communication (wxSocket etc.)
1642   --enable-apple_ieee     use the Apple IEEE codec
1643   --enable-arcstream      use wxArchive streams
1644   --enable-backtrace      use wxStackWalker class for getting backtraces
1645   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1646   --enable-cmdline        use wxCmdLineParser class
1647   --enable-datetime       use wxDateTime class
1648   --enable-debugreport    use wxDebugReport class
1649   --enable-dialupman      use dialup network classes
1650   --enable-dynlib         use wxLibrary class for DLL loading
1651   --enable-dynamicloader  use (new) wxDynamicLibrary class
1652   --enable-exceptions     build exception-safe library
1653   --enable-ffile          use wxFFile class
1654   --enable-file           use wxFile class
1655   --enable-filesystem     use virtual file systems classes
1656   --enable-fontmap        use font encodings conversion classes
1657   --enable-fs_archive     use virtual archive filesystems
1658   --enable-fs_inet        use virtual HTTP/FTP filesystems
1659   --enable-fs_zip         now replaced by fs_archive
1660   --enable-geometry       use geometry class
1661   --enable-log            use logging system
1662   --enable-longlong       use wxLongLong class
1663   --enable-mimetype       use wxMimeTypesManager
1664   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1665   --enable-snglinst       use wxSingleInstanceChecker class
1666   --enable-std_iostreams  use standard C++ stream classes
1667   --enable-std_string     use standard C++ string classes
1668   --enable-stdpaths       use wxStandardPaths class
1669   --enable-stopwatch      use wxStopWatch class
1670   --enable-streams        use wxStream etc classes
1671   --enable-sysoptions     use wxSystemOptions
1672   --enable-tarstream      use wxTar streams
1673   --enable-textbuf        use wxTextBuffer class
1674   --enable-textfile       use wxTextFile class
1675   --enable-timer          use wxTimer class
1676   --enable-unicode        compile wxString with Unicode support
1677   --enable-sound          use wxSound class
1678   --enable-mediactrl      use wxMediaCtrl class
1679   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1680   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1681   --enable-zipstream      use wxZip streams
1682   --enable-url            use wxURL class
1683   --enable-variant        use wxVariant class
1684   --enable-protocol       use wxProtocol class
1685   --enable-protocol-http  HTTP support in wxProtocol
1686   --enable-protocol-ftp   FTP support in wxProtocol
1687   --enable-protocol-file  FILE support in wxProtocol
1688   --enable-threads        use threads
1689   --enable-docview        use document view architecture
1690   --enable-help           use help subsystem
1691   --enable-mshtmlhelp     use MS HTML Help (win32)
1692   --enable-html           use wxHTML sub-library
1693   --enable-htmlhelp       use wxHTML-based help
1694   --enable-xrc            use XRC resources sub-library
1695   --enable-aui            use AUI docking library
1696   --enable-constraints    use layout-constraints system
1697   --enable-printarch      use printing architecture
1698   --enable-mdi            use multiple document interface architecture
1699   --enable-mdidoc         use docview architecture with MDI
1700   --enable-loggui         use standard GUI logger
1701   --enable-logwin         use wxLogWindow
1702   --enable-logdialog      use wxLogDialog
1703   --enable-webkit         use wxWebKitCtrl (Mac)
1704   --enable-richtext       use wxRichTextCtrl
1705   --enable-graphics_ctx   use graphics context 2D drawing API
1706   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1707   --enable-prologio       not available; see contrib
1708   --enable-resources      not available; see contrib
1709   --enable-clipboard      use wxClipboard class
1710   --enable-dnd            use Drag'n'Drop classes
1711   --enable-metafile       use win32 metafiles
1712   --enable-controls       use all usual controls
1713   --enable-accel          use accelerators
1714   --enable-animatectrl    use wxAnimationCtrl class
1715   --enable-button         use wxButton class
1716   --enable-bmpbutton      use wxBitmapButton class
1717   --enable-bmpcombobox    use wxBitmapComboBox class
1718   --enable-calendar       use wxCalendarCtrl class
1719   --enable-caret          use wxCaret class
1720   --enable-checkbox       use wxCheckBox class
1721   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1722   --enable-choice         use wxChoice class
1723   --enable-choicebook     use wxChoicebook class
1724   --enable-collpane       use wxCollapsiblePane class
1725   --enable-colourpicker   use wxColourPickerCtrl class
1726   --enable-combobox       use wxComboBox class
1727   --enable-comboctrl      use wxComboCtrl class
1728   --enable-datepick       use wxDatePickerCtrl class
1729   --enable-dirpicker      use wxDirPickerCtrl class
1730   --enable-display        use wxDisplay class
1731   --enable-detect_sm      use code to detect X11 session manager
1732   --enable-filepicker     use wxFilePickerCtrl class
1733   --enable-fontpicker     use wxFontPickerCtrl class
1734   --enable-gauge          use wxGauge class
1735   --enable-grid           use wxGrid class
1736   --enable-dataviewctrl   use wxDataViewCtrl class
1737   --enable-hyperlink      use wxHyperlinkCtrl class
1738   --enable-imaglist       use wxImageList class
1739   --enable-listbook       use wxListbook class
1740   --enable-listbox        use wxListBox class
1741   --enable-listctrl       use wxListCtrl class
1742   --enable-notebook       use wxNotebook class
1743   --enable-odcombobox     use wxOwnerDrawnComboBox class
1744   --enable-radiobox       use wxRadioBox class
1745   --enable-radiobtn       use wxRadioButton class
1746   --enable-sash           use wxSashWindow class
1747   --enable-scrollbar      use wxScrollBar class and scrollable windows
1748   --enable-searchctrl     use wxSearchCtrl class
1749   --enable-slider         use wxSlider class
1750   --enable-spinbtn        use wxSpinButton class
1751   --enable-spinctrl       use wxSpinCtrl class
1752   --enable-splitter       use wxSplitterWindow class
1753   --enable-statbmp        use wxStaticBitmap class
1754   --enable-statbox        use wxStaticBox class
1755   --enable-statline       use wxStaticLine class
1756   --enable-stattext       use wxStaticText class
1757   --enable-statusbar      use wxStatusBar class
1758   --enable-tabdialog      use wxTabControl class
1759   --enable-textctrl       use wxTextCtrl class
1760   --enable-togglebtn      use wxToggleButton class
1761   --enable-toolbar        use wxToolBar class
1762   --enable-tbarnative     use native wxToolBar class
1763   --enable-treebook       use wxTreebook class
1764   --enable-toolbook       use wxToolbook class
1765   --enable-treectrl       use wxTreeCtrl class
1766   --enable-tipwindow      use wxTipWindow class
1767   --enable-popupwin       use wxPopUpWindow class
1768   --enable-commondlg      use all common dialogs
1769   --enable-aboutdlg       use wxAboutBox
1770   --enable-choicedlg      use wxChoiceDialog
1771   --enable-coldlg         use wxColourDialog
1772   --enable-filedlg        use wxFileDialog
1773   --enable-finddlg        use wxFindReplaceDialog
1774   --enable-fontdlg        use wxFontDialog
1775   --enable-dirdlg         use wxDirDialog
1776   --enable-msgdlg         use wxMessageDialog
1777   --enable-numberdlg      use wxNumberEntryDialog
1778   --enable-splash         use wxSplashScreen
1779   --enable-textdlg        use wxTextDialog
1780   --enable-tipdlg         use startup tips
1781   --enable-progressdlg    use wxProgressDialog
1782   --enable-wizarddlg      use wxWizard
1783   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1784   --enable-miniframe      use wxMiniFrame class
1785   --enable-tooltips       use wxToolTip class
1786   --enable-splines        use spline drawing code
1787   --enable-mousewheel     use mousewheel
1788   --enable-validators     use wxValidator and derived classes
1789   --enable-busyinfo       use wxBusyInfo
1790   --enable-joystick       use wxJoystick
1791   --enable-metafiles      use wxMetaFile (Win32 only)
1792   --enable-dragimage      use wxDragImage
1793   --enable-accessibility  enable accessibility support
1794   --enable-dccache        cache temporary wxDC objects (Win32 only)
1795   --enable-palette        use wxPalette class
1796   --enable-image          use wxImage class
1797   --enable-gif            use gif images (GIF file format)
1798   --enable-pcx            use pcx images (PCX file format)
1799   --enable-tga            use tga images (TGA file format)
1800   --enable-iff            use iff images (IFF file format)
1801   --enable-pnm            use pnm images (PNM file format)
1802   --enable-xpm            use xpm images (XPM file format)
1803   --enable-icocur         use Windows ICO and CUR formats
1804   --enable-official_build official build of wxWidgets (win32 DLL only)
1805   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1806   --disable-largefile     omit support for large files
1807   --disable-gtktest       do not try to compile and run a test GTK+ program
1808   --disable-gtktest       Do not try to compile and run a test GTK program
1809   --disable-sdltest       Do not try to compile and run a test SDL program
1810   --enable-omf            use OMF object format (OS/2)
1811   --disable-dependency-tracking
1812                           don't use dependency tracking even if the compiler
1813                           can
1814   --disable-precomp-headers
1815                           don't use precompiled headers even if compiler can
1816
1817 Optional Packages:
1818   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1819   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1820   --without-subdirs       don't generate makefiles for samples/demos/...
1821   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1822   --with-motif            use Motif/Lesstif
1823   --with-mac              use Mac OS X
1824   --with-cocoa            use Cocoa
1825   --with-wine             use Wine
1826   --with-msw              use MS-Windows
1827   --with-pm               use OS/2 Presentation Manager
1828   --with-mgl              use SciTech MGL
1829   --with-directfb         use DirectFB
1830   --with-microwin         use MicroWindows
1831   --with-x11              use X11
1832   --with-libpng           use libpng (PNG image format)
1833   --with-libjpeg          use libjpeg (JPEG file format)
1834   --with-libtiff          use libtiff (TIFF file format)
1835   --with-libxpm           use libxpm (XPM file format)
1836   --with-libmspack        use libmspack (CHM help files loading)
1837   --with-sdl              use SDL for audio on Unix
1838   --with-gnomeprint       use GNOME print for printing under GNOME
1839   --with-gnomevfs         use GNOME VFS for associating MIME types
1840   --with-hildon           use Hildon framework for Nokia 770
1841   --with-opengl           use OpenGL (or Mesa)
1842   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1843   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1844   --with-regex            enable support for wxRegEx class
1845   --with-zlib             use zlib for LZW compression
1846   --with-odbc             use the IODBC and wxODBC classes
1847   --with-expat            enable XML support using expat parser
1848   --with-flavour=NAME     specify a name to identify this build
1849   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1850   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1851   --with-x                use the X Window System
1852   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1853   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1854   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1855   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1856   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1857
1858 Some influential environment variables:
1859   CC          C compiler command
1860   CFLAGS      C compiler flags
1861   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1862               nonstandard directory <lib dir>
1863   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1864               you have headers in a nonstandard directory <include dir>
1865   CPP         C preprocessor
1866   CXX         C++ compiler command
1867   CXXFLAGS    C++ compiler flags
1868   CXXCPP      C++ preprocessor
1869   PKG_CONFIG  path to pkg-config utility
1870   DIRECTFB_CFLAGS
1871               C compiler flags for DIRECTFB, overriding pkg-config
1872   DIRECTFB_LIBS
1873               linker flags for DIRECTFB, overriding pkg-config
1874   XMKMF       Path to xmkmf, Makefile generator for X Window System
1875   PANGOX_CFLAGS
1876               C compiler flags for PANGOX, overriding pkg-config
1877   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1878   PANGOFT2_CFLAGS
1879               C compiler flags for PANGOFT2, overriding pkg-config
1880   PANGOFT2_LIBS
1881               linker flags for PANGOFT2, overriding pkg-config
1882   PANGOXFT_CFLAGS
1883               C compiler flags for PANGOXFT, overriding pkg-config
1884   PANGOXFT_LIBS
1885               linker flags for PANGOXFT, overriding pkg-config
1886   LIBGNOMEPRINTUI_CFLAGS
1887               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1888   LIBGNOMEPRINTUI_LIBS
1889               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1890   GNOMEVFS_CFLAGS
1891               C compiler flags for GNOMEVFS, overriding pkg-config
1892   GNOMEVFS_LIBS
1893               linker flags for GNOMEVFS, overriding pkg-config
1894   HILDON_CFLAGS
1895               C compiler flags for HILDON, overriding pkg-config
1896   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1897   CAIRO_CFLAGS
1898               C compiler flags for CAIRO, overriding pkg-config
1899   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1900   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1901   GST_LIBS    linker flags for GST, overriding pkg-config
1902
1903 Use these variables to override the choices made by `configure' or to help
1904 it to find libraries and programs with nonstandard names/locations.
1905
1906 Report bugs to <wx-dev@lists.wxwidgets.org>.
1907 _ACEOF
1908 ac_status=$?
1909 fi
1910
1911 if test "$ac_init_help" = "recursive"; then
1912   # If there are subdirs, report their specific --help.
1913   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1914     test -d "$ac_dir" || continue
1915     ac_builddir=.
1916
1917 case "$ac_dir" in
1918 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1919 *)
1920   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1921   # A ".." for each directory in $ac_dir_suffix.
1922   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1923   case $ac_top_builddir_sub in
1924   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1925   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1926   esac ;;
1927 esac
1928 ac_abs_top_builddir=$ac_pwd
1929 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1930 # for backward compatibility:
1931 ac_top_builddir=$ac_top_build_prefix
1932
1933 case $srcdir in
1934   .)  # We are building in place.
1935     ac_srcdir=.
1936     ac_top_srcdir=$ac_top_builddir_sub
1937     ac_abs_top_srcdir=$ac_pwd ;;
1938   [\\/]* | ?:[\\/]* )  # Absolute name.
1939     ac_srcdir=$srcdir$ac_dir_suffix;
1940     ac_top_srcdir=$srcdir
1941     ac_abs_top_srcdir=$srcdir ;;
1942   *) # Relative name.
1943     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1944     ac_top_srcdir=$ac_top_build_prefix$srcdir
1945     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1946 esac
1947 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1948
1949     cd "$ac_dir" || { ac_status=$?; continue; }
1950     # Check for guested configure.
1951     if test -f "$ac_srcdir/configure.gnu"; then
1952       echo &&
1953       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1954     elif test -f "$ac_srcdir/configure"; then
1955       echo &&
1956       $SHELL "$ac_srcdir/configure" --help=recursive
1957     else
1958       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1959     fi || ac_status=$?
1960     cd "$ac_pwd" || { ac_status=$?; break; }
1961   done
1962 fi
1963
1964 test -n "$ac_init_help" && exit $ac_status
1965 if $ac_init_version; then
1966   cat <<\_ACEOF
1967 wxWidgets configure 2.9.0
1968 generated by GNU Autoconf 2.60
1969
1970 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1971 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1972 This configure script is free software; the Free Software Foundation
1973 gives unlimited permission to copy, distribute and modify it.
1974 _ACEOF
1975   exit
1976 fi
1977 cat >config.log <<_ACEOF
1978 This file contains any messages produced by compilers while
1979 running configure, to aid debugging if configure makes a mistake.
1980
1981 It was created by wxWidgets $as_me 2.9.0, which was
1982 generated by GNU Autoconf 2.60.  Invocation command line was
1983
1984   $ $0 $@
1985
1986 _ACEOF
1987 exec 5>>config.log
1988 {
1989 cat <<_ASUNAME
1990 ## --------- ##
1991 ## Platform. ##
1992 ## --------- ##
1993
1994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1999
2000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2001 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2002
2003 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2004 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2006 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2007 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2008 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2009 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2010
2011 _ASUNAME
2012
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   echo "PATH: $as_dir"
2019 done
2020 IFS=$as_save_IFS
2021
2022 } >&5
2023
2024 cat >&5 <<_ACEOF
2025
2026
2027 ## ----------- ##
2028 ## Core tests. ##
2029 ## ----------- ##
2030
2031 _ACEOF
2032
2033
2034 # Keep a trace of the command line.
2035 # Strip out --no-create and --no-recursion so they do not pile up.
2036 # Strip out --silent because we don't want to record it for future runs.
2037 # Also quote any args containing shell meta-characters.
2038 # Make two passes to allow for proper duplicate-argument suppression.
2039 ac_configure_args=
2040 ac_configure_args0=
2041 ac_configure_args1=
2042 ac_must_keep_next=false
2043 for ac_pass in 1 2
2044 do
2045   for ac_arg
2046   do
2047     case $ac_arg in
2048     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2049     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2050     | -silent | --silent | --silen | --sile | --sil)
2051       continue ;;
2052     *\'*)
2053       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2054     esac
2055     case $ac_pass in
2056     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2057     2)
2058       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2059       if test $ac_must_keep_next = true; then
2060         ac_must_keep_next=false # Got value, back to normal.
2061       else
2062         case $ac_arg in
2063           *=* | --config-cache | -C | -disable-* | --disable-* \
2064           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2065           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2066           | -with-* | --with-* | -without-* | --without-* | --x)
2067             case "$ac_configure_args0 " in
2068               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2069             esac
2070             ;;
2071           -* ) ac_must_keep_next=true ;;
2072         esac
2073       fi
2074       ac_configure_args="$ac_configure_args '$ac_arg'"
2075       ;;
2076     esac
2077   done
2078 done
2079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2081
2082 # When interrupted or exit'd, cleanup temporary files, and complete
2083 # config.log.  We remove comments because anyway the quotes in there
2084 # would cause problems or look ugly.
2085 # WARNING: Use '\'' to represent an apostrophe within the trap.
2086 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2087 trap 'exit_status=$?
2088   # Save into config.log some information that might help in debugging.
2089   {
2090     echo
2091
2092     cat <<\_ASBOX
2093 ## ---------------- ##
2094 ## Cache variables. ##
2095 ## ---------------- ##
2096 _ASBOX
2097     echo
2098     # The following way of writing the cache mishandles newlines in values,
2099 (
2100   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2101     eval ac_val=\$$ac_var
2102     case $ac_val in #(
2103     *${as_nl}*)
2104       case $ac_var in #(
2105       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2106 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2107       esac
2108       case $ac_var in #(
2109       _ | IFS | as_nl) ;; #(
2110       *) $as_unset $ac_var ;;
2111       esac ;;
2112     esac
2113   done
2114   (set) 2>&1 |
2115     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2116     *${as_nl}ac_space=\ *)
2117       sed -n \
2118         "s/'\''/'\''\\\\'\'''\''/g;
2119           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2120       ;; #(
2121     *)
2122       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2123       ;;
2124     esac |
2125     sort
2126 )
2127     echo
2128
2129     cat <<\_ASBOX
2130 ## ----------------- ##
2131 ## Output variables. ##
2132 ## ----------------- ##
2133 _ASBOX
2134     echo
2135     for ac_var in $ac_subst_vars
2136     do
2137       eval ac_val=\$$ac_var
2138       case $ac_val in
2139       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140       esac
2141       echo "$ac_var='\''$ac_val'\''"
2142     done | sort
2143     echo
2144
2145     if test -n "$ac_subst_files"; then
2146       cat <<\_ASBOX
2147 ## ------------------- ##
2148 ## File substitutions. ##
2149 ## ------------------- ##
2150 _ASBOX
2151       echo
2152       for ac_var in $ac_subst_files
2153       do
2154         eval ac_val=\$$ac_var
2155         case $ac_val in
2156         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157         esac
2158         echo "$ac_var='\''$ac_val'\''"
2159       done | sort
2160       echo
2161     fi
2162
2163     if test -s confdefs.h; then
2164       cat <<\_ASBOX
2165 ## ----------- ##
2166 ## confdefs.h. ##
2167 ## ----------- ##
2168 _ASBOX
2169       echo
2170       cat confdefs.h
2171       echo
2172     fi
2173     test "$ac_signal" != 0 &&
2174       echo "$as_me: caught signal $ac_signal"
2175     echo "$as_me: exit $exit_status"
2176   } >&5
2177   rm -f core *.core core.conftest.* &&
2178     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2179     exit $exit_status
2180 ' 0
2181 for ac_signal in 1 2 13 15; do
2182   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2183 done
2184 ac_signal=0
2185
2186 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2187 rm -f -r conftest* confdefs.h
2188
2189 # Predefined preprocessor variables.
2190
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_NAME "$PACKAGE_NAME"
2193 _ACEOF
2194
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2198 _ACEOF
2199
2200
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2203 _ACEOF
2204
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_STRING "$PACKAGE_STRING"
2208 _ACEOF
2209
2210
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213 _ACEOF
2214
2215
2216 # Let the site file select an alternate cache file if it wants to.
2217 # Prefer explicitly selected file to automatically selected ones.
2218 if test -n "$CONFIG_SITE"; then
2219   set x "$CONFIG_SITE"
2220 elif test "x$prefix" != xNONE; then
2221   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2222 else
2223   set x "$ac_default_prefix/share/config.site" \
2224         "$ac_default_prefix/etc/config.site"
2225 fi
2226 shift
2227 for ac_site_file
2228 do
2229   if test -r "$ac_site_file"; then
2230     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2231 echo "$as_me: loading site script $ac_site_file" >&6;}
2232     sed 's/^/| /' "$ac_site_file" >&5
2233     . "$ac_site_file"
2234   fi
2235 done
2236
2237 if test -r "$cache_file"; then
2238   # Some versions of bash will fail to source /dev/null (special
2239   # files actually), so we avoid doing that.
2240   if test -f "$cache_file"; then
2241     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2242 echo "$as_me: loading cache $cache_file" >&6;}
2243     case $cache_file in
2244       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2245       *)                      . "./$cache_file";;
2246     esac
2247   fi
2248 else
2249   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2250 echo "$as_me: creating cache $cache_file" >&6;}
2251   >$cache_file
2252 fi
2253
2254 # Check that the precious variables saved in the cache have kept the same
2255 # value.
2256 ac_cache_corrupted=false
2257 for ac_var in $ac_precious_vars; do
2258   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2259   eval ac_new_set=\$ac_env_${ac_var}_set
2260   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2261   eval ac_new_val=\$ac_env_${ac_var}_value
2262   case $ac_old_set,$ac_new_set in
2263     set,)
2264       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2265 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2266       ac_cache_corrupted=: ;;
2267     ,set)
2268       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2269 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2270       ac_cache_corrupted=: ;;
2271     ,);;
2272     *)
2273       if test "x$ac_old_val" != "x$ac_new_val"; then
2274         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2275 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2276         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2277 echo "$as_me:   former value:  $ac_old_val" >&2;}
2278         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2279 echo "$as_me:   current value: $ac_new_val" >&2;}
2280         ac_cache_corrupted=:
2281       fi;;
2282   esac
2283   # Pass precious variables to config.status.
2284   if test "$ac_new_set" = set; then
2285     case $ac_new_val in
2286     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2287     *) ac_arg=$ac_var=$ac_new_val ;;
2288     esac
2289     case " $ac_configure_args " in
2290       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2291       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2292     esac
2293   fi
2294 done
2295 if $ac_cache_corrupted; then
2296   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2298   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2300    { (exit 1); exit 1; }; }
2301 fi
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327 ac_ext=c
2328 ac_cpp='$CPP $CPPFLAGS'
2329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2332
2333
2334
2335
2336
2337 ac_aux_dir=
2338 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2339   if test -f "$ac_dir/install-sh"; then
2340     ac_aux_dir=$ac_dir
2341     ac_install_sh="$ac_aux_dir/install-sh -c"
2342     break
2343   elif test -f "$ac_dir/install.sh"; then
2344     ac_aux_dir=$ac_dir
2345     ac_install_sh="$ac_aux_dir/install.sh -c"
2346     break
2347   elif test -f "$ac_dir/shtool"; then
2348     ac_aux_dir=$ac_dir
2349     ac_install_sh="$ac_aux_dir/shtool install -c"
2350     break
2351   fi
2352 done
2353 if test -z "$ac_aux_dir"; then
2354   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2355 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2356    { (exit 1); exit 1; }; }
2357 fi
2358
2359 # These three variables are undocumented and unsupported,
2360 # and are intended to be withdrawn in a future Autoconf release.
2361 # They can cause serious problems if a builder's source tree is in a directory
2362 # whose full name contains unusual characters.
2363 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2364 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2365 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2366
2367
2368 # Make sure we can run config.sub.
2369 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2370   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2371 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2372    { (exit 1); exit 1; }; }
2373
2374 { echo "$as_me:$LINENO: checking build system type" >&5
2375 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2376 if test "${ac_cv_build+set}" = set; then
2377   echo $ECHO_N "(cached) $ECHO_C" >&6
2378 else
2379   ac_build_alias=$build_alias
2380 test "x$ac_build_alias" = x &&
2381   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2382 test "x$ac_build_alias" = x &&
2383   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2384 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2385    { (exit 1); exit 1; }; }
2386 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2387   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2388 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2389    { (exit 1); exit 1; }; }
2390
2391 fi
2392 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2393 echo "${ECHO_T}$ac_cv_build" >&6; }
2394 case $ac_cv_build in
2395 *-*-*) ;;
2396 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2397 echo "$as_me: error: invalid value of canonical build" >&2;}
2398    { (exit 1); exit 1; }; };;
2399 esac
2400 build=$ac_cv_build
2401 ac_save_IFS=$IFS; IFS='-'
2402 set x $ac_cv_build
2403 shift
2404 build_cpu=$1
2405 build_vendor=$2
2406 shift; shift
2407 # Remember, the first character of IFS is used to create $*,
2408 # except with old shells:
2409 build_os=$*
2410 IFS=$ac_save_IFS
2411 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2412
2413
2414 { echo "$as_me:$LINENO: checking host system type" >&5
2415 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2416 if test "${ac_cv_host+set}" = set; then
2417   echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419   if test "x$host_alias" = x; then
2420   ac_cv_host=$ac_cv_build
2421 else
2422   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2423     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2424 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2425    { (exit 1); exit 1; }; }
2426 fi
2427
2428 fi
2429 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2430 echo "${ECHO_T}$ac_cv_host" >&6; }
2431 case $ac_cv_host in
2432 *-*-*) ;;
2433 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2434 echo "$as_me: error: invalid value of canonical host" >&2;}
2435    { (exit 1); exit 1; }; };;
2436 esac
2437 host=$ac_cv_host
2438 ac_save_IFS=$IFS; IFS='-'
2439 set x $ac_cv_host
2440 shift
2441 host_cpu=$1
2442 host_vendor=$2
2443 shift; shift
2444 # Remember, the first character of IFS is used to create $*,
2445 # except with old shells:
2446 host_os=$*
2447 IFS=$ac_save_IFS
2448 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2449
2450
2451 { echo "$as_me:$LINENO: checking target system type" >&5
2452 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2453 if test "${ac_cv_target+set}" = set; then
2454   echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456   if test "x$target_alias" = x; then
2457   ac_cv_target=$ac_cv_host
2458 else
2459   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2460     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2461 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2462    { (exit 1); exit 1; }; }
2463 fi
2464
2465 fi
2466 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2467 echo "${ECHO_T}$ac_cv_target" >&6; }
2468 case $ac_cv_target in
2469 *-*-*) ;;
2470 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2471 echo "$as_me: error: invalid value of canonical target" >&2;}
2472    { (exit 1); exit 1; }; };;
2473 esac
2474 target=$ac_cv_target
2475 ac_save_IFS=$IFS; IFS='-'
2476 set x $ac_cv_target
2477 shift
2478 target_cpu=$1
2479 target_vendor=$2
2480 shift; shift
2481 # Remember, the first character of IFS is used to create $*,
2482 # except with old shells:
2483 target_os=$*
2484 IFS=$ac_save_IFS
2485 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2486
2487
2488 # The aliases save the names the user supplied, while $host etc.
2489 # will get canonicalized.
2490 test -n "$target_alias" &&
2491   test "$program_prefix$program_suffix$program_transform_name" = \
2492     NONENONEs,x,x, &&
2493   program_prefix=${target_alias}-
2494
2495
2496
2497 wx_major_version_number=2
2498 wx_minor_version_number=9
2499 wx_release_number=0
2500 wx_subrelease_number=0
2501
2502 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2503 WX_VERSION=$WX_RELEASE.$wx_release_number
2504 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2505
2506 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2507
2508
2509 wx_top_builddir="`pwd`"
2510
2511
2512
2513
2514 USE_UNIX=1
2515 USE_OS2=0
2516 USE_WIN32=0
2517 USE_DOS=0
2518 USE_BEOS=0
2519 USE_MAC=0
2520
2521 USE_AIX=
2522 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2523 USE_GNU=                            USE_HPUX=
2524 USE_LINUX=
2525 USE_NETBSD=
2526 USE_OPENBSD=
2527 USE_OSF=                            USE_SGI=
2528 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2529 USE_ULTRIX=
2530 USE_UNIXWARE=
2531
2532 USE_ALPHA=
2533
2534 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2535
2536 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2537
2538 DEFAULT_wxUSE_COCOA=0
2539 DEFAULT_wxUSE_GTK=0
2540 DEFAULT_wxUSE_MAC=0
2541 DEFAULT_wxUSE_MGL=0
2542 DEFAULT_wxUSE_MICROWIN=0
2543 DEFAULT_wxUSE_MOTIF=0
2544 DEFAULT_wxUSE_MSW=0
2545 DEFAULT_wxUSE_PM=0
2546 DEFAULT_wxUSE_X11=0
2547 DEFAULT_wxUSE_DFB=0
2548
2549 DEFAULT_DEFAULT_wxUSE_COCOA=0
2550 DEFAULT_DEFAULT_wxUSE_GTK=0
2551 DEFAULT_DEFAULT_wxUSE_MAC=0
2552 DEFAULT_DEFAULT_wxUSE_MGL=0
2553 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2554 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2555 DEFAULT_DEFAULT_wxUSE_MSW=0
2556 DEFAULT_DEFAULT_wxUSE_PM=0
2557 DEFAULT_DEFAULT_wxUSE_X11=0
2558 DEFAULT_DEFAULT_wxUSE_DFB=0
2559
2560 PROGRAM_EXT=
2561 SO_SUFFIX=so
2562 SAMPLES_RPATH_FLAG=
2563 SAMPLES_RPATH_POSTLINK=
2564
2565 DEFAULT_STD_FLAG=yes
2566
2567 case "${host}" in
2568   *-hp-hpux* )
2569     USE_HPUX=1
2570     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2571     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2572     SO_SUFFIX=sl
2573     cat >>confdefs.h <<\_ACEOF
2574 #define __HPUX__ 1
2575 _ACEOF
2576
2577
2578             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2579   ;;
2580   *-*-linux* )
2581     USE_LINUX=1
2582     cat >>confdefs.h <<\_ACEOF
2583 #define __LINUX__ 1
2584 _ACEOF
2585
2586     TMP=`uname -m`
2587     if test "x$TMP" = "xalpha"; then
2588       USE_ALPHA=1
2589       cat >>confdefs.h <<\_ACEOF
2590 #define __ALPHA__ 1
2591 _ACEOF
2592
2593     fi
2594     DEFAULT_DEFAULT_wxUSE_GTK=1
2595   ;;
2596   *-*-gnu* | *-*-k*bsd*-gnu )
2597     USE_GNU=1
2598     TMP=`uname -m`
2599     if test "x$TMP" = "xalpha"; then
2600       USE_ALPHA=1
2601       cat >>confdefs.h <<\_ACEOF
2602 #define __ALPHA__ 1
2603 _ACEOF
2604
2605     fi
2606     DEFAULT_DEFAULT_wxUSE_GTK=1
2607   ;;
2608   *-*-irix5* | *-*-irix6* )
2609     USE_SGI=1
2610     USE_SVR4=1
2611     cat >>confdefs.h <<\_ACEOF
2612 #define __SGI__ 1
2613 _ACEOF
2614
2615     cat >>confdefs.h <<\_ACEOF
2616 #define __SVR4__ 1
2617 _ACEOF
2618
2619     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2620   ;;
2621   *-*-solaris2* )
2622     USE_SUN=1
2623     USE_SOLARIS=1
2624     USE_SVR4=1
2625     cat >>confdefs.h <<\_ACEOF
2626 #define __SUN__ 1
2627 _ACEOF
2628
2629     cat >>confdefs.h <<\_ACEOF
2630 #define __SOLARIS__ 1
2631 _ACEOF
2632
2633     cat >>confdefs.h <<\_ACEOF
2634 #define __SVR4__ 1
2635 _ACEOF
2636
2637     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2638     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2639   ;;
2640   *-*-sunos4* )
2641     USE_SUN=1
2642     USE_SUNOS=1
2643     USE_BSD=1
2644     cat >>confdefs.h <<\_ACEOF
2645 #define __SUN__ 1
2646 _ACEOF
2647
2648     cat >>confdefs.h <<\_ACEOF
2649 #define __SUNOS__ 1
2650 _ACEOF
2651
2652     cat >>confdefs.h <<\_ACEOF
2653 #define __BSD__ 1
2654 _ACEOF
2655
2656     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2657   ;;
2658   *-*-freebsd*)
2659     USE_BSD=1
2660     USE_FREEBSD=1
2661     cat >>confdefs.h <<\_ACEOF
2662 #define __FREEBSD__ 1
2663 _ACEOF
2664
2665     cat >>confdefs.h <<\_ACEOF
2666 #define __BSD__ 1
2667 _ACEOF
2668
2669     DEFAULT_DEFAULT_wxUSE_GTK=1
2670   ;;
2671   *-*-openbsd*|*-*-mirbsd*)
2672     USE_BSD=1
2673     USE_OPENBSD=1
2674     cat >>confdefs.h <<\_ACEOF
2675 #define __OPENBSD__ 1
2676 _ACEOF
2677
2678     cat >>confdefs.h <<\_ACEOF
2679 #define __BSD__ 1
2680 _ACEOF
2681
2682     DEFAULT_DEFAULT_wxUSE_GTK=1
2683   ;;
2684   *-*-netbsd*)
2685     USE_BSD=1
2686     USE_NETBSD=1
2687     cat >>confdefs.h <<\_ACEOF
2688 #define __NETBSD__ 1
2689 _ACEOF
2690
2691     cat >>confdefs.h <<\_ACEOF
2692 #define __BSD__ 1
2693 _ACEOF
2694
2695     DEFAULT_DEFAULT_wxUSE_GTK=1
2696     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2697
2698             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2699   ;;
2700   *-*-osf* )
2701     USE_ALPHA=1
2702     USE_OSF=1
2703     cat >>confdefs.h <<\_ACEOF
2704 #define __ALPHA__ 1
2705 _ACEOF
2706
2707     cat >>confdefs.h <<\_ACEOF
2708 #define __OSF__ 1
2709 _ACEOF
2710
2711     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2712     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2713   ;;
2714   *-*-dgux5* )
2715     USE_ALPHA=1
2716     USE_SVR4=1
2717     cat >>confdefs.h <<\_ACEOF
2718 #define __ALPHA__ 1
2719 _ACEOF
2720
2721     cat >>confdefs.h <<\_ACEOF
2722 #define __SVR4__ 1
2723 _ACEOF
2724
2725     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2726   ;;
2727   *-*-sysv5* )
2728     USE_SYSV=1
2729     USE_SVR4=1
2730     cat >>confdefs.h <<\_ACEOF
2731 #define __SYSV__ 1
2732 _ACEOF
2733
2734     cat >>confdefs.h <<\_ACEOF
2735 #define __SVR4__ 1
2736 _ACEOF
2737
2738     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2739   ;;
2740   *-*-aix* )
2741     USE_AIX=1
2742     USE_SYSV=1
2743     USE_SVR4=1
2744                         SO_SUFFIX=a
2745     cat >>confdefs.h <<\_ACEOF
2746 #define __AIX__ 1
2747 _ACEOF
2748
2749     cat >>confdefs.h <<\_ACEOF
2750 #define __SYSV__ 1
2751 _ACEOF
2752
2753     cat >>confdefs.h <<\_ACEOF
2754 #define __SVR4__ 1
2755 _ACEOF
2756
2757     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2758   ;;
2759
2760   *-*-*UnixWare*)
2761     USE_SYSV=1
2762     USE_SVR4=1
2763     USE_UNIXWARE=1
2764     cat >>confdefs.h <<\_ACEOF
2765 #define __UNIXWARE__ 1
2766 _ACEOF
2767
2768   ;;
2769
2770   *-*-cygwin* | *-*-mingw32* )
2771                 SO_SUFFIX=dll
2772     PROGRAM_EXT=".exe"
2773     DEFAULT_DEFAULT_wxUSE_MSW=1
2774   ;;
2775
2776   *-pc-msdosdjgpp )
2777     USE_UNIX=0
2778     USE_DOS=1
2779     cat >>confdefs.h <<\_ACEOF
2780 #define __DOS__ 1
2781 _ACEOF
2782
2783     PROGRAM_EXT=".exe"
2784     DEFAULT_DEFAULT_wxUSE_MGL=1
2785   ;;
2786
2787   *-pc-os2_emx | *-pc-os2-emx )
2788     cat >>confdefs.h <<\_ACEOF
2789 #define __EMX__ 1
2790 _ACEOF
2791
2792     USE_OS2=1
2793     cat >>confdefs.h <<\_ACEOF
2794 #define __OS2__ 1
2795 _ACEOF
2796
2797     PROGRAM_EXT=".exe"
2798     DEFAULT_DEFAULT_wxUSE_PM=1
2799         CXX=gcc
2800     LDFLAGS="$LDFLAGS -Zcrtdll"
2801                         ac_executable_extensions=".exe"
2802     export ac_executable_extensions
2803             ac_save_IFS="$IFS"
2804     IFS='\\'
2805     ac_TEMP_PATH=
2806     for ac_dir in $PATH; do
2807       IFS=$ac_save_IFS
2808       if test -z "$ac_TEMP_PATH"; then
2809         ac_TEMP_PATH="$ac_dir"
2810       else
2811         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2812       fi
2813     done
2814     export PATH="$ac_TEMP_PATH"
2815     unset ac_TEMP_PATH
2816     DEFAULT_STD_FLAG=no
2817   ;;
2818
2819   *-*-darwin* )
2820         USE_BSD=1
2821     USE_DARWIN=1
2822     SO_SUFFIX=dylib
2823     cat >>confdefs.h <<\_ACEOF
2824 #define __BSD__ 1
2825 _ACEOF
2826
2827     cat >>confdefs.h <<\_ACEOF
2828 #define __DARWIN__ 1
2829 _ACEOF
2830
2831     cat >>confdefs.h <<\_ACEOF
2832 #define TARGET_CARBON 1
2833 _ACEOF
2834
2835     DEFAULT_DEFAULT_wxUSE_MAC=1
2836     DEFAULT_STD_FLAG=no
2837   ;;
2838   powerpc-apple-macos* )
2839         USE_UNIX=0
2840             ac_cv_c_bigendian=yes
2841     SO_SUFFIX=shlib
2842             DEFAULT_DEFAULT_wxUSE_MAC=1
2843     DEFAULT_STD_FLAG=no
2844   ;;
2845
2846   *-*-beos* )
2847         USE_BEOS=1
2848     cat >>confdefs.h <<\_ACEOF
2849 #define __BEOS__ 1
2850 _ACEOF
2851
2852   ;;
2853
2854   *)
2855     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2856 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2857     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2858 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2859
2860     DEFAULT_DEFAULT_wxUSE_X11=1
2861     DEFAULT_wxUSE_SHARED=no
2862 esac
2863
2864
2865
2866
2867           wx_arg_cache_file="configarg.cache"
2868           echo "loading argument cache $wx_arg_cache_file"
2869           rm -f ${wx_arg_cache_file}.tmp
2870           touch ${wx_arg_cache_file}.tmp
2871           touch ${wx_arg_cache_file}
2872
2873
2874 DEBUG_CONFIGURE=0
2875 if test $DEBUG_CONFIGURE = 1; then
2876   DEFAULT_wxUSE_UNIVERSAL=no
2877   DEFAULT_wxUSE_STL=no
2878
2879   DEFAULT_wxUSE_NANOX=no
2880
2881   DEFAULT_wxUSE_THREADS=yes
2882
2883   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
2884   DEFAULT_wxUSE_OPTIMISE=no
2885   DEFAULT_wxUSE_PROFILE=no
2886   DEFAULT_wxUSE_NO_DEPS=no
2887   DEFAULT_wxUSE_VARARG_MACROS=no
2888   DEFAULT_wxUSE_NO_RTTI=no
2889   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2890   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2891   DEFAULT_wxUSE_RPATH=yes
2892   DEFAULT_wxUSE_PERMISSIVE=no
2893   DEFAULT_wxUSE_DEBUG_FLAG=yes
2894   DEFAULT_wxUSE_DEBUG_INFO=yes
2895   DEFAULT_wxUSE_DEBUG_GDB=yes
2896   DEFAULT_wxUSE_MEM_TRACING=no
2897   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2898   DEFAULT_wxUSE_DMALLOC=no
2899   DEFAULT_wxUSE_APPLE_IEEE=no
2900
2901   DEFAULT_wxUSE_EXCEPTIONS=no
2902   DEFAULT_wxUSE_LOG=yes
2903   DEFAULT_wxUSE_LOGWINDOW=no
2904   DEFAULT_wxUSE_LOGGUI=no
2905   DEFAULT_wxUSE_LOGDIALOG=no
2906
2907   DEFAULT_wxUSE_GUI=yes
2908   DEFAULT_wxUSE_CONTROLS=no
2909
2910   DEFAULT_wxUSE_REGEX=no
2911   DEFAULT_wxUSE_XML=no
2912   DEFAULT_wxUSE_EXPAT=no
2913   DEFAULT_wxUSE_ZLIB=no
2914   DEFAULT_wxUSE_LIBPNG=no
2915   DEFAULT_wxUSE_LIBJPEG=no
2916   DEFAULT_wxUSE_LIBTIFF=no
2917   DEFAULT_wxUSE_LIBXPM=no
2918   DEFAULT_wxUSE_LIBMSPACK=no
2919   DEFAULT_wxUSE_LIBSDL=no
2920   DEFAULT_wxUSE_LIBGNOMEPRINT=no
2921   DEFAULT_wxUSE_LIBGNOMEVFS=no
2922   DEFAULT_wxUSE_LIBHILDON=no
2923   DEFAULT_wxUSE_ODBC=no
2924   DEFAULT_wxUSE_OPENGL=no
2925
2926   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2927   DEFAULT_wxUSE_STACKWALKER=no
2928   DEFAULT_wxUSE_DEBUGREPORT=no
2929   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2930   DEFAULT_wxUSE_STD_IOSTREAM=no
2931   DEFAULT_wxUSE_STD_STRING=no
2932   DEFAULT_wxUSE_CMDLINE_PARSER=no
2933   DEFAULT_wxUSE_DATETIME=no
2934   DEFAULT_wxUSE_TIMER=no
2935   DEFAULT_wxUSE_STOPWATCH=no
2936   DEFAULT_wxUSE_FILE=no
2937   DEFAULT_wxUSE_FFILE=no
2938   DEFAULT_wxUSE_STDPATHS=no
2939   DEFAULT_wxUSE_TEXTBUFFER=no
2940   DEFAULT_wxUSE_TEXTFILE=no
2941   DEFAULT_wxUSE_SOUND=no
2942   DEFAULT_wxUSE_MEDIACTRL=no
2943   DEFAULT_wxUSE_GSTREAMER8=no
2944   DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
2945   DEFAULT_wxUSE_INTL=no
2946   DEFAULT_wxUSE_CONFIG=no
2947   DEFAULT_wxUSE_FONTMAP=no
2948   DEFAULT_wxUSE_STREAMS=no
2949   DEFAULT_wxUSE_SOCKETS=no
2950   DEFAULT_wxUSE_OLE=no
2951   DEFAULT_wxUSE_DATAOBJ=no
2952   DEFAULT_wxUSE_DIALUP_MANAGER=no
2953   DEFAULT_wxUSE_JOYSTICK=no
2954   DEFAULT_wxUSE_DYNLIB_CLASS=no
2955   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2956   DEFAULT_wxUSE_LONGLONG=no
2957   DEFAULT_wxUSE_GEOMETRY=no
2958
2959   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2960   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2961   DEFAULT_wxUSE_POSTSCRIPT=no
2962
2963   DEFAULT_wxUSE_CLIPBOARD=no
2964   DEFAULT_wxUSE_TOOLTIPS=no
2965   DEFAULT_wxUSE_DRAG_AND_DROP=no
2966   DEFAULT_wxUSE_DRAGIMAGE=no
2967   DEFAULT_wxUSE_SPLINES=no
2968   DEFAULT_wxUSE_MOUSEWHEEL=no
2969
2970   DEFAULT_wxUSE_MDI=no
2971   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2972   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2973   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2974
2975   DEFAULT_wxUSE_RESOURCES=no
2976   DEFAULT_wxUSE_CONSTRAINTS=no
2977   DEFAULT_wxUSE_IPC=no
2978   DEFAULT_wxUSE_HELP=no
2979   DEFAULT_wxUSE_MS_HTML_HELP=no
2980   DEFAULT_wxUSE_WXHTML_HELP=no
2981   DEFAULT_wxUSE_TREELAYOUT=no
2982   DEFAULT_wxUSE_METAFILE=no
2983   DEFAULT_wxUSE_MIMETYPE=no
2984   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2985   DEFAULT_wxUSE_PROTOCOL=no
2986   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2987   DEFAULT_wxUSE_PROTOCOL_FTP=no
2988   DEFAULT_wxUSE_PROTOCOL_FILE=no
2989   DEFAULT_wxUSE_URL=no
2990   DEFAULT_wxUSE_VARIANT=no
2991
2992   DEFAULT_wxUSE_ABOUTDLG=no
2993   DEFAULT_wxUSE_COMMONDLGS=no
2994   DEFAULT_wxUSE_CHOICEDLG=no
2995   DEFAULT_wxUSE_COLOURDLG=no
2996   DEFAULT_wxUSE_DIRDLG=no
2997   DEFAULT_wxUSE_FILEDLG=no
2998   DEFAULT_wxUSE_FINDREPLDLG=no
2999   DEFAULT_wxUSE_FONTDLG=no
3000   DEFAULT_wxUSE_MSGDLG=no
3001   DEFAULT_wxUSE_NUMBERDLG=no
3002   DEFAULT_wxUSE_TEXTDLG=no
3003   DEFAULT_wxUSE_SPLASH=no
3004   DEFAULT_wxUSE_STARTUP_TIPS=no
3005   DEFAULT_wxUSE_PROGRESSDLG=no
3006   DEFAULT_wxUSE_WIZARDDLG=no
3007
3008   DEFAULT_wxUSE_MENUS=no
3009   DEFAULT_wxUSE_MINIFRAME=no
3010   DEFAULT_wxUSE_HTML=no
3011   DEFAULT_wxUSE_RICHTEXT=no
3012   DEFAULT_wxUSE_XRC=no
3013   DEFAULT_wxUSE_AUI=no
3014   DEFAULT_wxUSE_WEBKIT=no
3015   DEFAULT_wxUSE_FILESYSTEM=no
3016   DEFAULT_wxUSE_FS_INET=no
3017   DEFAULT_wxUSE_FS_ZIP=no
3018   DEFAULT_wxUSE_FS_ARCHIVE=no
3019   DEFAULT_wxUSE_BUSYINFO=no
3020   DEFAULT_wxUSE_ARCHIVE_STREAMS=no
3021   DEFAULT_wxUSE_ZIPSTREAM=no
3022   DEFAULT_wxUSE_TARSTREAM=no
3023   DEFAULT_wxUSE_VALIDATORS=no
3024
3025   DEFAULT_wxUSE_ACCEL=no
3026   DEFAULT_wxUSE_ANIMATIONCTRL=no
3027   DEFAULT_wxUSE_BUTTON=no
3028   DEFAULT_wxUSE_BMPBUTTON=no
3029   DEFAULT_wxUSE_BITMAPCOMBOBOX=no
3030   DEFAULT_wxUSE_CALCTRL=no
3031   DEFAULT_wxUSE_CARET=no
3032   DEFAULT_wxUSE_CHECKBOX=no
3033   DEFAULT_wxUSE_CHECKLST=no
3034   DEFAULT_wxUSE_CHOICE=no
3035   DEFAULT_wxUSE_CHOICEBOOK=no
3036   DEFAULT_wxUSE_COLLPANE=no
3037   DEFAULT_wxUSE_COLOURPICKERCTRL=no
3038   DEFAULT_wxUSE_COMBOBOX=no
3039   DEFAULT_wxUSE_COMBOCTRL=no
3040   DEFAULT_wxUSE_DATEPICKCTRL=no
3041   DEFAULT_wxUSE_DISPLAY=no
3042   DEFAULT_wxUSE_DETECT_SM=no
3043   DEFAULT_wxUSE_DIRPICKERCTRL=no
3044   DEFAULT_wxUSE_FILEPICKERCTRL=no
3045   DEFAULT_wxUSE_FONTPICKERCTRL=no
3046   DEFAULT_wxUSE_GAUGE=no
3047   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
3048   DEFAULT_wxUSE_GRID=no
3049   DEFAULT_wxUSE_HYPERLINKCTRL=no
3050   DEFAULT_wxUSE_DATAVIEWCTRL=no
3051   DEFAULT_wxUSE_IMAGLIST=no
3052   DEFAULT_wxUSE_LISTBOOK=no
3053   DEFAULT_wxUSE_LISTBOX=no
3054   DEFAULT_wxUSE_LISTCTRL=no
3055   DEFAULT_wxUSE_NOTEBOOK=no
3056   DEFAULT_wxUSE_ODCOMBOBOX=no
3057   DEFAULT_wxUSE_RADIOBOX=no
3058   DEFAULT_wxUSE_RADIOBTN=no
3059   DEFAULT_wxUSE_SASH=no
3060   DEFAULT_wxUSE_SCROLLBAR=no
3061   DEFAULT_wxUSE_SEARCHCTRL=no
3062   DEFAULT_wxUSE_SLIDER=no
3063   DEFAULT_wxUSE_SPINBTN=no
3064   DEFAULT_wxUSE_SPINCTRL=no
3065   DEFAULT_wxUSE_SPLITTER=no
3066   DEFAULT_wxUSE_STATBMP=no
3067   DEFAULT_wxUSE_STATBOX=no
3068   DEFAULT_wxUSE_STATLINE=no
3069   DEFAULT_wxUSE_STATTEXT=no
3070   DEFAULT_wxUSE_STATUSBAR=yes
3071   DEFAULT_wxUSE_TAB_DIALOG=no
3072   DEFAULT_wxUSE_TEXTCTRL=no
3073   DEFAULT_wxUSE_TOGGLEBTN=no
3074   DEFAULT_wxUSE_TOOLBAR=no
3075   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
3076   DEFAULT_wxUSE_TREEBOOK=no
3077   DEFAULT_wxUSE_TOOLBOOK=no
3078   DEFAULT_wxUSE_TREECTRL=no
3079   DEFAULT_wxUSE_POPUPWIN=no
3080   DEFAULT_wxUSE_TIPWINDOW=no
3081
3082   DEFAULT_wxUSE_UNICODE=no
3083   DEFAULT_wxUSE_UNICODE_MSLU=no
3084   DEFAULT_wxUSE_WCSRTOMBS=no
3085
3086   DEFAULT_wxUSE_PALETTE=no
3087   DEFAULT_wxUSE_IMAGE=no
3088   DEFAULT_wxUSE_GIF=no
3089   DEFAULT_wxUSE_PCX=no
3090   DEFAULT_wxUSE_TGA=no
3091   DEFAULT_wxUSE_PNM=no
3092   DEFAULT_wxUSE_IFF=no
3093   DEFAULT_wxUSE_XPM=no
3094   DEFAULT_wxUSE_ICO_CUR=no
3095   DEFAULT_wxUSE_ACCESSIBILITY=no
3096
3097   DEFAULT_wxUSE_MONOLITHIC=no
3098   DEFAULT_wxUSE_PLUGINS=no
3099   DEFAULT_wxUSE_OFFICIAL_BUILD=no
3100 else
3101   DEFAULT_wxUSE_UNIVERSAL=no
3102   DEFAULT_wxUSE_STL=no
3103
3104   DEFAULT_wxUSE_NANOX=no
3105
3106   DEFAULT_wxUSE_THREADS=yes
3107
3108   DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
3109   DEFAULT_wxUSE_OPTIMISE=yes
3110   DEFAULT_wxUSE_PROFILE=no
3111   DEFAULT_wxUSE_NO_DEPS=no
3112   DEFAULT_wxUSE_VARARG_MACROS=yes
3113   DEFAULT_wxUSE_NO_RTTI=no
3114   DEFAULT_wxUSE_NO_EXCEPTIONS=no
3115   DEFAULT_wxUSE_UNIVERSAL_BINARY=no
3116   DEFAULT_wxUSE_RPATH=yes
3117   DEFAULT_wxUSE_PERMISSIVE=no
3118   DEFAULT_wxUSE_DEBUG_FLAG=no
3119   DEFAULT_wxUSE_DEBUG_INFO=no
3120   DEFAULT_wxUSE_DEBUG_GDB=no
3121   DEFAULT_wxUSE_MEM_TRACING=no
3122   DEFAULT_wxUSE_DEBUG_CONTEXT=no
3123   DEFAULT_wxUSE_DMALLOC=no
3124   DEFAULT_wxUSE_APPLE_IEEE=yes
3125
3126   DEFAULT_wxUSE_EXCEPTIONS=yes
3127   DEFAULT_wxUSE_LOG=yes
3128   DEFAULT_wxUSE_LOGWINDOW=yes
3129   DEFAULT_wxUSE_LOGGUI=yes
3130   DEFAULT_wxUSE_LOGDIALOG=yes
3131
3132   DEFAULT_wxUSE_GUI=yes
3133
3134   DEFAULT_wxUSE_REGEX=yes
3135   DEFAULT_wxUSE_XML=yes
3136   DEFAULT_wxUSE_EXPAT=yes
3137   DEFAULT_wxUSE_ZLIB=yes
3138   DEFAULT_wxUSE_LIBPNG=yes
3139   DEFAULT_wxUSE_LIBJPEG=yes
3140   DEFAULT_wxUSE_LIBTIFF=yes
3141   DEFAULT_wxUSE_LIBXPM=yes
3142   DEFAULT_wxUSE_LIBMSPACK=yes
3143   DEFAULT_wxUSE_LIBSDL=no
3144   DEFAULT_wxUSE_LIBGNOMEPRINT=yes
3145   DEFAULT_wxUSE_LIBGNOMEVFS=no
3146   DEFAULT_wxUSE_LIBHILDON=no
3147   DEFAULT_wxUSE_ODBC=no
3148   DEFAULT_wxUSE_OPENGL=no
3149
3150   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
3151   DEFAULT_wxUSE_STACKWALKER=yes
3152   DEFAULT_wxUSE_DEBUGREPORT=yes
3153   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
3154   DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
3155   DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
3156   DEFAULT_wxUSE_CMDLINE_PARSER=yes
3157   DEFAULT_wxUSE_DATETIME=yes
3158   DEFAULT_wxUSE_TIMER=yes
3159   DEFAULT_wxUSE_STOPWATCH=yes
3160   DEFAULT_wxUSE_FILE=yes
3161   DEFAULT_wxUSE_FFILE=yes
3162   DEFAULT_wxUSE_STDPATHS=yes
3163   DEFAULT_wxUSE_TEXTBUFFER=yes
3164   DEFAULT_wxUSE_TEXTFILE=yes
3165   DEFAULT_wxUSE_SOUND=yes
3166   DEFAULT_wxUSE_MEDIACTRL=no
3167   DEFAULT_wxUSE_GSTREAMER8=no
3168   DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
3169   DEFAULT_wxUSE_INTL=yes
3170   DEFAULT_wxUSE_CONFIG=yes
3171   DEFAULT_wxUSE_FONTMAP=yes
3172   DEFAULT_wxUSE_STREAMS=yes
3173   DEFAULT_wxUSE_SOCKETS=yes
3174   DEFAULT_wxUSE_OLE=yes
3175   DEFAULT_wxUSE_DATAOBJ=yes
3176   DEFAULT_wxUSE_DIALUP_MANAGER=yes
3177   DEFAULT_wxUSE_JOYSTICK=yes
3178   DEFAULT_wxUSE_DYNLIB_CLASS=yes
3179   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
3180   DEFAULT_wxUSE_LONGLONG=yes
3181   DEFAULT_wxUSE_GEOMETRY=yes
3182
3183   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
3184   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
3185   DEFAULT_wxUSE_POSTSCRIPT=yes
3186
3187   DEFAULT_wxUSE_CLIPBOARD=yes
3188   DEFAULT_wxUSE_TOOLTIPS=yes
3189   DEFAULT_wxUSE_DRAG_AND_DROP=yes
3190   DEFAULT_wxUSE_DRAGIMAGE=yes
3191   DEFAULT_wxUSE_SPLINES=yes
3192   DEFAULT_wxUSE_MOUSEWHEEL=yes
3193
3194   DEFAULT_wxUSE_MDI=yes
3195   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
3196   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
3197   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
3198
3199   DEFAULT_wxUSE_RESOURCES=no
3200   DEFAULT_wxUSE_CONSTRAINTS=yes
3201   DEFAULT_wxUSE_IPC=yes
3202   DEFAULT_wxUSE_HELP=yes
3203   DEFAULT_wxUSE_MS_HTML_HELP=yes
3204   DEFAULT_wxUSE_WXHTML_HELP=yes
3205   DEFAULT_wxUSE_TREELAYOUT=yes
3206   DEFAULT_wxUSE_METAFILE=yes
3207   DEFAULT_wxUSE_MIMETYPE=yes
3208   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
3209   DEFAULT_wxUSE_PROTOCOL=yes
3210   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
3211   DEFAULT_wxUSE_PROTOCOL_FTP=yes
3212   DEFAULT_wxUSE_PROTOCOL_FILE=yes
3213   DEFAULT_wxUSE_URL=yes
3214   DEFAULT_wxUSE_VARIANT=yes
3215
3216   DEFAULT_wxUSE_ABOUTDLG=yes
3217   DEFAULT_wxUSE_COMMONDLGS=yes
3218   DEFAULT_wxUSE_CHOICEDLG=yes
3219   DEFAULT_wxUSE_COLOURDLG=yes
3220   DEFAULT_wxUSE_DIRDLG=yes
3221   DEFAULT_wxUSE_FILEDLG=yes
3222   DEFAULT_wxUSE_FINDREPLDLG=yes
3223   DEFAULT_wxUSE_FONTDLG=yes
3224   DEFAULT_wxUSE_MSGDLG=yes
3225   DEFAULT_wxUSE_NUMBERDLG=yes
3226   DEFAULT_wxUSE_TEXTDLG=yes
3227   DEFAULT_wxUSE_SPLASH=yes
3228   DEFAULT_wxUSE_STARTUP_TIPS=yes
3229   DEFAULT_wxUSE_PROGRESSDLG=yes
3230   DEFAULT_wxUSE_WIZARDDLG=yes
3231
3232   DEFAULT_wxUSE_MENUS=yes
3233   DEFAULT_wxUSE_MINIFRAME=yes
3234   DEFAULT_wxUSE_HTML=yes
3235   DEFAULT_wxUSE_RICHTEXT=yes
3236   DEFAULT_wxUSE_XRC=yes
3237   DEFAULT_wxUSE_AUI=yes
3238   DEFAULT_wxUSE_WEBKIT=yes
3239   DEFAULT_wxUSE_FILESYSTEM=yes
3240   DEFAULT_wxUSE_FS_INET=yes
3241   DEFAULT_wxUSE_FS_ZIP=yes
3242   DEFAULT_wxUSE_FS_ARCHIVE=yes
3243   DEFAULT_wxUSE_BUSYINFO=yes
3244   DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
3245   DEFAULT_wxUSE_ZIPSTREAM=yes
3246   DEFAULT_wxUSE_TARSTREAM=yes
3247   DEFAULT_wxUSE_VALIDATORS=yes
3248
3249   DEFAULT_wxUSE_ACCEL=yes
3250   DEFAULT_wxUSE_ANIMATIONCTRL=yes
3251   DEFAULT_wxUSE_BUTTON=yes
3252   DEFAULT_wxUSE_BMPBUTTON=yes
3253   DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
3254   DEFAULT_wxUSE_CALCTRL=yes
3255   DEFAULT_wxUSE_CARET=yes
3256   DEFAULT_wxUSE_CHECKBOX=yes
3257   DEFAULT_wxUSE_CHECKLST=yes
3258   DEFAULT_wxUSE_CHOICE=yes
3259   DEFAULT_wxUSE_CHOICEBOOK=yes
3260   DEFAULT_wxUSE_COLLPANE=yes
3261   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
3262   DEFAULT_wxUSE_COMBOBOX=yes
3263   DEFAULT_wxUSE_COMBOCTRL=yes
3264   DEFAULT_wxUSE_DATEPICKCTRL=yes
3265   DEFAULT_wxUSE_DISPLAY=yes
3266   DEFAULT_wxUSE_DETECT_SM=yes
3267   DEFAULT_wxUSE_DIRPICKERCTRL=yes
3268   DEFAULT_wxUSE_FILEPICKERCTRL=yes
3269   DEFAULT_wxUSE_FONTPICKERCTRL=yes
3270   DEFAULT_wxUSE_GAUGE=yes
3271   DEFAULT_wxUSE_GRID=yes
3272   DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
3273   DEFAULT_wxUSE_HYPERLINKCTRL=yes
3274   DEFAULT_wxUSE_DATAVIEWCTRL=no
3275   DEFAULT_wxUSE_IMAGLIST=yes
3276   DEFAULT_wxUSE_LISTBOOK=yes
3277   DEFAULT_wxUSE_LISTBOX=yes
3278   DEFAULT_wxUSE_LISTCTRL=yes
3279   DEFAULT_wxUSE_NOTEBOOK=yes
3280   DEFAULT_wxUSE_ODCOMBOBOX=yes
3281   DEFAULT_wxUSE_RADIOBOX=yes
3282   DEFAULT_wxUSE_RADIOBTN=yes
3283   DEFAULT_wxUSE_SASH=yes
3284   DEFAULT_wxUSE_SCROLLBAR=yes
3285   DEFAULT_wxUSE_SEARCHCTRL=yes
3286   DEFAULT_wxUSE_SLIDER=yes
3287   DEFAULT_wxUSE_SPINBTN=yes
3288   DEFAULT_wxUSE_SPINCTRL=yes
3289   DEFAULT_wxUSE_SPLITTER=yes
3290   DEFAULT_wxUSE_STATBMP=yes
3291   DEFAULT_wxUSE_STATBOX=yes
3292   DEFAULT_wxUSE_STATLINE=yes
3293   DEFAULT_wxUSE_STATTEXT=yes
3294   DEFAULT_wxUSE_STATUSBAR=yes
3295   DEFAULT_wxUSE_TAB_DIALOG=no
3296   DEFAULT_wxUSE_TEXTCTRL=yes
3297   DEFAULT_wxUSE_TOGGLEBTN=yes
3298   DEFAULT_wxUSE_TOOLBAR=yes
3299   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
3300   DEFAULT_wxUSE_TREEBOOK=yes
3301   DEFAULT_wxUSE_TOOLBOOK=yes
3302   DEFAULT_wxUSE_TREECTRL=yes
3303   DEFAULT_wxUSE_POPUPWIN=yes
3304   DEFAULT_wxUSE_TIPWINDOW=yes
3305
3306   DEFAULT_wxUSE_UNICODE=no
3307   DEFAULT_wxUSE_UNICODE_MSLU=yes
3308   DEFAULT_wxUSE_WCSRTOMBS=no
3309
3310   DEFAULT_wxUSE_PALETTE=yes
3311   DEFAULT_wxUSE_IMAGE=yes
3312   DEFAULT_wxUSE_GIF=yes
3313   DEFAULT_wxUSE_PCX=yes
3314   DEFAULT_wxUSE_TGA=yes
3315   DEFAULT_wxUSE_IFF=no    DEFAULT_wxUSE_PNM=yes
3316   DEFAULT_wxUSE_XPM=yes
3317   DEFAULT_wxUSE_ICO_CUR=yes
3318   DEFAULT_wxUSE_ACCESSIBILITY=no
3319
3320   DEFAULT_wxUSE_MONOLITHIC=no
3321   DEFAULT_wxUSE_PLUGINS=no
3322   DEFAULT_wxUSE_OFFICIAL_BUILD=no
3323
3324     DEFAULT_wxUSE_GTK2=yes
3325 fi
3326
3327
3328
3329
3330 for toolkit in `echo $ALL_TOOLKITS`; do
3331   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
3332   if test "x$LINE" != "x" ; then
3333     has_toolkit_in_cache=1
3334     eval "DEFAULT_$LINE"
3335     eval "CACHE_$toolkit=1"
3336
3337     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
3338     if test "x$LINE" != "x" ; then
3339         eval "DEFAULT_$LINE"
3340     fi
3341   fi
3342 done
3343
3344
3345
3346           enablestring=
3347           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
3348 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
3349           no_cache=0
3350           # Check whether --enable-gui was given.
3351 if test "${enable_gui+set}" = set; then
3352   enableval=$enable_gui;
3353                           if test "$enableval" = yes; then
3354                             ac_cv_use_gui='wxUSE_GUI=yes'
3355                           else
3356                             ac_cv_use_gui='wxUSE_GUI=no'
3357                           fi
3358
3359 else
3360
3361                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
3362                           if test "x$LINE" != x ; then
3363                             eval "DEFAULT_$LINE"
3364                           else
3365                             no_cache=1
3366                           fi
3367
3368                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
3369
3370 fi
3371
3372
3373           eval "$ac_cv_use_gui"
3374           if test "$no_cache" != 1; then
3375             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
3376           fi
3377
3378           if test "$wxUSE_GUI" = yes; then
3379             { echo "$as_me:$LINENO: result: yes" >&5
3380 echo "${ECHO_T}yes" >&6; }
3381           else
3382             { echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6; }
3384           fi
3385
3386
3387           enablestring=
3388           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3389 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3390           no_cache=0
3391           # Check whether --enable-monolithic was given.
3392 if test "${enable_monolithic+set}" = set; then
3393   enableval=$enable_monolithic;
3394                           if test "$enableval" = yes; then
3395                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3396                           else
3397                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3398                           fi
3399
3400 else
3401
3402                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
3403                           if test "x$LINE" != x ; then
3404                             eval "DEFAULT_$LINE"
3405                           else
3406                             no_cache=1
3407                           fi
3408
3409                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
3410
3411 fi
3412
3413
3414           eval "$ac_cv_use_monolithic"
3415           if test "$no_cache" != 1; then
3416             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
3417           fi
3418
3419           if test "$wxUSE_MONOLITHIC" = yes; then
3420             { echo "$as_me:$LINENO: result: yes" >&5
3421 echo "${ECHO_T}yes" >&6; }
3422           else
3423             { echo "$as_me:$LINENO: result: no" >&5
3424 echo "${ECHO_T}no" >&6; }
3425           fi
3426
3427
3428           enablestring=
3429           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3430 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3431           no_cache=0
3432           # Check whether --enable-plugins was given.
3433 if test "${enable_plugins+set}" = set; then
3434   enableval=$enable_plugins;
3435                           if test "$enableval" = yes; then
3436                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
3437                           else
3438                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
3439                           fi
3440
3441 else
3442
3443                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
3444                           if test "x$LINE" != x ; then
3445                             eval "DEFAULT_$LINE"
3446                           else
3447                             no_cache=1
3448                           fi
3449
3450                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
3451
3452 fi
3453
3454
3455           eval "$ac_cv_use_plugins"
3456           if test "$no_cache" != 1; then
3457             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
3458           fi
3459
3460           if test "$wxUSE_PLUGINS" = yes; then
3461             { echo "$as_me:$LINENO: result: yes" >&5
3462 echo "${ECHO_T}yes" >&6; }
3463           else
3464             { echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6; }
3466           fi
3467
3468
3469           withstring=without
3470           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3471 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3472           no_cache=0
3473
3474 # Check whether --with-subdirs was given.
3475 if test "${with_subdirs+set}" = set; then
3476   withval=$with_subdirs;
3477                         if test "$withval" = yes; then
3478                           ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3479                         else
3480                           ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
3481                         fi
3482
3483 else
3484
3485                         LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
3486                         if test "x$LINE" != x ; then
3487                           eval "DEFAULT_$LINE"
3488                         else
3489                           no_cache=1
3490                         fi
3491
3492                         ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
3493
3494 fi
3495
3496
3497           eval "$ac_cv_use_subdirs"
3498           if test "$no_cache" != 1; then
3499             echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
3500           fi
3501
3502           if test "$wxWITH_SUBDIRS" = yes; then
3503             { echo "$as_me:$LINENO: result: yes" >&5
3504 echo "${ECHO_T}yes" >&6; }
3505           else
3506             { echo "$as_me:$LINENO: result: no" >&5
3507 echo "${ECHO_T}no" >&6; }
3508           fi
3509
3510
3511 if test "$wxUSE_GUI" = "yes"; then
3512
3513
3514           enablestring=
3515           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3516 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3517           no_cache=0
3518           # Check whether --enable-universal was given.
3519 if test "${enable_universal+set}" = set; then
3520   enableval=$enable_universal;
3521                           if test "$enableval" = yes; then
3522                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
3523                           else
3524                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
3525                           fi
3526
3527 else
3528
3529                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
3530                           if test "x$LINE" != x ; then
3531                             eval "DEFAULT_$LINE"
3532                           else
3533                             no_cache=1
3534                           fi
3535
3536                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
3537
3538 fi
3539
3540
3541           eval "$ac_cv_use_universal"
3542           if test "$no_cache" != 1; then
3543             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
3544           fi
3545
3546           if test "$wxUSE_UNIVERSAL" = yes; then
3547             { echo "$as_me:$LINENO: result: yes" >&5
3548 echo "${ECHO_T}yes" >&6; }
3549           else
3550             { echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6; }
3552           fi
3553
3554
3555 # Check whether --with-gtk was given.
3556 if test "${with_gtk+set}" = set; then
3557   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3558 fi
3559
3560
3561 # Check whether --with-motif was given.
3562 if test "${with_motif+set}" = set; then
3563   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3564 fi
3565
3566
3567 # Check whether --with-mac was given.
3568 if test "${with_mac+set}" = set; then
3569   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3570 fi
3571
3572
3573 # Check whether --with-cocoa was given.
3574 if test "${with_cocoa+set}" = set; then
3575   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3576 fi
3577
3578
3579 # Check whether --with-wine was given.
3580 if test "${with_wine+set}" = set; then
3581   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3582 fi
3583
3584
3585 # Check whether --with-msw was given.
3586 if test "${with_msw+set}" = set; then
3587   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3588 fi
3589
3590
3591 # Check whether --with-pm was given.
3592 if test "${with_pm+set}" = set; then
3593   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3594 fi
3595
3596
3597 # Check whether --with-mgl was given.
3598 if test "${with_mgl+set}" = set; then
3599   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3600 fi
3601
3602
3603 # Check whether --with-directfb was given.
3604 if test "${with_directfb+set}" = set; then
3605   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3606 fi
3607
3608
3609 # Check whether --with-microwin was given.
3610 if test "${with_microwin+set}" = set; then
3611   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3612 fi
3613
3614
3615 # Check whether --with-x11 was given.
3616 if test "${with_x11+set}" = set; then
3617   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3618 fi
3619
3620
3621           enablestring=
3622           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3623 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3624           no_cache=0
3625           # Check whether --enable-nanox was given.
3626 if test "${enable_nanox+set}" = set; then
3627   enableval=$enable_nanox;
3628                           if test "$enableval" = yes; then
3629                             ac_cv_use_nanox='wxUSE_NANOX=yes'
3630                           else
3631                             ac_cv_use_nanox='wxUSE_NANOX=no'
3632                           fi
3633
3634 else
3635
3636                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
3637                           if test "x$LINE" != x ; then
3638                             eval "DEFAULT_$LINE"
3639                           else
3640                             no_cache=1
3641                           fi
3642
3643                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
3644
3645 fi
3646
3647
3648           eval "$ac_cv_use_nanox"
3649           if test "$no_cache" != 1; then
3650             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
3651           fi
3652
3653           if test "$wxUSE_NANOX" = yes; then
3654             { echo "$as_me:$LINENO: result: yes" >&5
3655 echo "${ECHO_T}yes" >&6; }
3656           else
3657             { echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6; }
3659           fi
3660
3661
3662 # Check whether --enable-gtk2 was given.
3663 if test "${enable_gtk2+set}" = set; then
3664   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3665 fi
3666
3667
3668           enablestring=
3669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3670 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3671           no_cache=0
3672           # Check whether --enable-gpe was given.
3673 if test "${enable_gpe+set}" = set; then
3674   enableval=$enable_gpe;
3675                           if test "$enableval" = yes; then
3676                             ac_cv_use_gpe='wxUSE_GPE=yes'
3677                           else
3678                             ac_cv_use_gpe='wxUSE_GPE=no'
3679                           fi
3680
3681 else
3682
3683                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
3684                           if test "x$LINE" != x ; then
3685                             eval "DEFAULT_$LINE"
3686                           else
3687                             no_cache=1
3688                           fi
3689
3690                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
3691
3692 fi
3693
3694
3695           eval "$ac_cv_use_gpe"
3696           if test "$no_cache" != 1; then
3697             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
3698           fi
3699
3700           if test "$wxUSE_GPE" = yes; then
3701             { echo "$as_me:$LINENO: result: yes" >&5
3702 echo "${ECHO_T}yes" >&6; }
3703           else
3704             { echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6; }
3706           fi
3707
3708
3709
3710           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3711 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3712           no_cache=0
3713
3714 # Check whether --with-libpng was given.
3715 if test "${with_libpng+set}" = set; then
3716   withval=$with_libpng;
3717                         if test "$withval" = yes; then
3718                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3719                         elif test "$withval" = no; then
3720                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
3721                         elif test "$withval" = sys; then
3722                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3723                         elif test "$withval" = builtin; then
3724                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3725                         else
3726                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3727 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3728    { (exit 1); exit 1; }; }
3729                         fi
3730
3731 else
3732
3733                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3734                         if test "x$LINE" != x ; then
3735                           eval "DEFAULT_$LINE"
3736                         else
3737                           no_cache=1
3738                         fi
3739
3740                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3741
3742 fi
3743
3744
3745           eval "$ac_cv_use_libpng"
3746           if test "$no_cache" != 1; then
3747             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3748           fi
3749
3750           if test "$wxUSE_LIBPNG" = yes; then
3751             { echo "$as_me:$LINENO: result: yes" >&5
3752 echo "${ECHO_T}yes" >&6; }
3753           elif test "$wxUSE_LIBPNG" = no; then
3754             { echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6; }
3756           elif test "$wxUSE_LIBPNG" = sys; then
3757             { echo "$as_me:$LINENO: result: system version" >&5
3758 echo "${ECHO_T}system version" >&6; }
3759           elif test "$wxUSE_LIBPNG" = builtin; then
3760             { echo "$as_me:$LINENO: result: builtin version" >&5
3761 echo "${ECHO_T}builtin version" >&6; }
3762           else
3763             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3764 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3765    { (exit 1); exit 1; }; }
3766           fi
3767
3768
3769           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3770 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3771           no_cache=0
3772
3773 # Check whether --with-libjpeg was given.
3774 if test "${with_libjpeg+set}" = set; then
3775   withval=$with_libjpeg;
3776                         if test "$withval" = yes; then
3777                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3778                         elif test "$withval" = no; then
3779                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3780                         elif test "$withval" = sys; then
3781                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3782                         elif test "$withval" = builtin; then
3783                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3784                         else
3785                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3786 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3787    { (exit 1); exit 1; }; }
3788                         fi
3789
3790 else
3791
3792                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3793                         if test "x$LINE" != x ; then
3794                           eval "DEFAULT_$LINE"
3795                         else
3796                           no_cache=1
3797                         fi
3798
3799                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3800
3801 fi
3802
3803
3804           eval "$ac_cv_use_libjpeg"
3805           if test "$no_cache" != 1; then
3806             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3807           fi
3808
3809           if test "$wxUSE_LIBJPEG" = yes; then
3810             { echo "$as_me:$LINENO: result: yes" >&5
3811 echo "${ECHO_T}yes" >&6; }
3812           elif test "$wxUSE_LIBJPEG" = no; then
3813             { echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6; }
3815           elif test "$wxUSE_LIBJPEG" = sys; then
3816             { echo "$as_me:$LINENO: result: system version" >&5
3817 echo "${ECHO_T}system version" >&6; }
3818           elif test "$wxUSE_LIBJPEG" = builtin; then
3819             { echo "$as_me:$LINENO: result: builtin version" >&5
3820 echo "${ECHO_T}builtin version" >&6; }
3821           else
3822             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3823 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3824    { (exit 1); exit 1; }; }
3825           fi
3826
3827
3828           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3829 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3830           no_cache=0
3831
3832 # Check whether --with-libtiff was given.
3833 if test "${with_libtiff+set}" = set; then
3834   withval=$with_libtiff;
3835                         if test "$withval" = yes; then
3836                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3837                         elif test "$withval" = no; then
3838                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3839                         elif test "$withval" = sys; then
3840                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3841                         elif test "$withval" = builtin; then
3842                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3843                         else
3844                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3845 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3846    { (exit 1); exit 1; }; }
3847                         fi
3848
3849 else
3850
3851                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3852                         if test "x$LINE" != x ; then
3853                           eval "DEFAULT_$LINE"
3854                         else
3855                           no_cache=1
3856                         fi
3857
3858                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3859
3860 fi
3861
3862
3863           eval "$ac_cv_use_libtiff"
3864           if test "$no_cache" != 1; then
3865             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3866           fi
3867
3868           if test "$wxUSE_LIBTIFF" = yes; then
3869             { echo "$as_me:$LINENO: result: yes" >&5
3870 echo "${ECHO_T}yes" >&6; }
3871           elif test "$wxUSE_LIBTIFF" = no; then
3872             { echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6; }
3874           elif test "$wxUSE_LIBTIFF" = sys; then
3875             { echo "$as_me:$LINENO: result: system version" >&5
3876 echo "${ECHO_T}system version" >&6; }
3877           elif test "$wxUSE_LIBTIFF" = builtin; then
3878             { echo "$as_me:$LINENO: result: builtin version" >&5
3879 echo "${ECHO_T}builtin version" >&6; }
3880           else
3881             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3882 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3883    { (exit 1); exit 1; }; }
3884           fi
3885
3886
3887           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3888 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3889           no_cache=0
3890
3891 # Check whether --with-libxpm was given.
3892 if test "${with_libxpm+set}" = set; then
3893   withval=$with_libxpm;
3894                         if test "$withval" = yes; then
3895                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3896                         elif test "$withval" = no; then
3897                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3898                         elif test "$withval" = sys; then
3899                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3900                         elif test "$withval" = builtin; then
3901                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3902                         else
3903                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3904 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3905    { (exit 1); exit 1; }; }
3906                         fi
3907
3908 else
3909
3910                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3911                         if test "x$LINE" != x ; then
3912                           eval "DEFAULT_$LINE"
3913                         else
3914                           no_cache=1
3915                         fi
3916
3917                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3918
3919 fi
3920
3921
3922           eval "$ac_cv_use_libxpm"
3923           if test "$no_cache" != 1; then
3924             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3925           fi
3926
3927           if test "$wxUSE_LIBXPM" = yes; then
3928             { echo "$as_me:$LINENO: result: yes" >&5
3929 echo "${ECHO_T}yes" >&6; }
3930           elif test "$wxUSE_LIBXPM" = no; then
3931             { echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6; }
3933           elif test "$wxUSE_LIBXPM" = sys; then
3934             { echo "$as_me:$LINENO: result: system version" >&5
3935 echo "${ECHO_T}system version" >&6; }
3936           elif test "$wxUSE_LIBXPM" = builtin; then
3937             { echo "$as_me:$LINENO: result: builtin version" >&5
3938 echo "${ECHO_T}builtin version" >&6; }
3939           else
3940             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3941 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3942    { (exit 1); exit 1; }; }
3943           fi
3944
3945
3946           withstring=
3947           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3948 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3949           no_cache=0
3950
3951 # Check whether --with-libmspack was given.
3952 if test "${with_libmspack+set}" = set; then
3953   withval=$with_libmspack;
3954                         if test "$withval" = yes; then
3955                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3956                         else
3957                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3958                         fi
3959
3960 else
3961
3962                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3963                         if test "x$LINE" != x ; then
3964                           eval "DEFAULT_$LINE"
3965                         else
3966                           no_cache=1
3967                         fi
3968
3969                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3970
3971 fi
3972
3973
3974           eval "$ac_cv_use_libmspack"
3975           if test "$no_cache" != 1; then
3976             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3977           fi
3978
3979           if test "$wxUSE_LIBMSPACK" = yes; then
3980             { echo "$as_me:$LINENO: result: yes" >&5
3981 echo "${ECHO_T}yes" >&6; }
3982           else
3983             { echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6; }
3985           fi
3986
3987
3988           withstring=
3989           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3990 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
3991           no_cache=0
3992
3993 # Check whether --with-sdl was given.
3994 if test "${with_sdl+set}" = set; then
3995   withval=$with_sdl;
3996                         if test "$withval" = yes; then
3997                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3998                         else
3999                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
4000                         fi
4001
4002 else
4003
4004                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
4005                         if test "x$LINE" != x ; then
4006                           eval "DEFAULT_$LINE"
4007                         else
4008                           no_cache=1
4009                         fi
4010
4011                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
4012
4013 fi
4014
4015
4016           eval "$ac_cv_use_sdl"
4017           if test "$no_cache" != 1; then
4018             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
4019           fi
4020
4021           if test "$wxUSE_LIBSDL" = yes; then
4022             { echo "$as_me:$LINENO: result: yes" >&5
4023 echo "${ECHO_T}yes" >&6; }
4024           else
4025             { echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6; }
4027           fi
4028
4029
4030           withstring=
4031           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
4032 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
4033           no_cache=0
4034
4035 # Check whether --with-gnomeprint was given.
4036 if test "${with_gnomeprint+set}" = set; then
4037   withval=$with_gnomeprint;
4038                         if test "$withval" = yes; then
4039                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
4040                         else
4041                           ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
4042                         fi
4043
4044 else
4045
4046                         LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
4047                         if test "x$LINE" != x ; then
4048                           eval "DEFAULT_$LINE"
4049                         else
4050                           no_cache=1
4051                         fi
4052
4053                         ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
4054
4055 fi
4056
4057
4058           eval "$ac_cv_use_gnomeprint"
4059           if test "$no_cache" != 1; then
4060             echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
4061           fi
4062
4063           if test "$wxUSE_LIBGNOMEPRINT" = yes; then
4064             { echo "$as_me:$LINENO: result: yes" >&5
4065 echo "${ECHO_T}yes" >&6; }
4066           else
4067             { echo "$as_me:$LINENO: result: no" >&5
4068 echo "${ECHO_T}no" >&6; }
4069           fi
4070
4071
4072           withstring=
4073           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
4074 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
4075           no_cache=0
4076
4077 # Check whether --with-gnomevfs was given.
4078 if test "${with_gnomevfs+set}" = set; then
4079   withval=$with_gnomevfs;
4080                         if test "$withval" = yes; then
4081                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4082                         else
4083                           ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4084                         fi
4085
4086 else
4087
4088                         LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
4089                         if test "x$LINE" != x ; then
4090                           eval "DEFAULT_$LINE"
4091                         else
4092                           no_cache=1
4093                         fi
4094
4095                         ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
4096
4097 fi
4098
4099
4100           eval "$ac_cv_use_gnomevfs"
4101           if test "$no_cache" != 1; then
4102             echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
4103           fi
4104
4105           if test "$wxUSE_LIBGNOMEVFS" = yes; then
4106             { echo "$as_me:$LINENO: result: yes" >&5
4107 echo "${ECHO_T}yes" >&6; }
4108           else
4109             { echo "$as_me:$LINENO: result: no" >&5
4110 echo "${ECHO_T}no" >&6; }
4111           fi
4112
4113
4114           withstring=
4115           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4116 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4117           no_cache=0
4118
4119 # Check whether --with-hildon was given.
4120 if test "${with_hildon+set}" = set; then
4121   withval=$with_hildon;
4122                         if test "$withval" = yes; then
4123                           ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
4124                         else
4125                           ac_cv_use_hildon='wxUSE_LIBHILDON=no'
4126                         fi
4127
4128 else
4129
4130                         LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
4131                         if test "x$LINE" != x ; then
4132                           eval "DEFAULT_$LINE"
4133                         else
4134                           no_cache=1
4135                         fi
4136
4137                         ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
4138
4139 fi
4140
4141
4142           eval "$ac_cv_use_hildon"
4143           if test "$no_cache" != 1; then
4144             echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
4145           fi
4146
4147           if test "$wxUSE_LIBHILDON" = yes; then
4148             { echo "$as_me:$LINENO: result: yes" >&5
4149 echo "${ECHO_T}yes" >&6; }
4150           else
4151             { echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6; }
4153           fi
4154
4155
4156           withstring=
4157           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4158 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4159           no_cache=0
4160
4161 # Check whether --with-opengl was given.
4162 if test "${with_opengl+set}" = set; then
4163   withval=$with_opengl;
4164                         if test "$withval" = yes; then
4165                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
4166                         else
4167                           ac_cv_use_opengl='wxUSE_OPENGL=no'
4168                         fi
4169
4170 else
4171
4172                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
4173                         if test "x$LINE" != x ; then
4174                           eval "DEFAULT_$LINE"
4175                         else
4176                           no_cache=1
4177                         fi
4178
4179                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
4180
4181 fi
4182
4183
4184           eval "$ac_cv_use_opengl"
4185           if test "$no_cache" != 1; then
4186             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
4187           fi
4188
4189           if test "$wxUSE_OPENGL" = yes; then
4190             { echo "$as_me:$LINENO: result: yes" >&5
4191 echo "${ECHO_T}yes" >&6; }
4192           else
4193             { echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6; }
4195           fi
4196
4197
4198 if test "$wxUSE_UNIVERSAL" = "yes"; then
4199
4200 # Check whether --with-themes was given.
4201 if test "${with_themes+set}" = set; then
4202   withval=$with_themes; wxUNIV_THEMES="$withval"
4203 fi
4204
4205 fi
4206
4207 fi
4208
4209
4210           withstring=
4211           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4212 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4213           no_cache=0
4214
4215 # Check whether --with-dmalloc was given.
4216 if test "${with_dmalloc+set}" = set; then
4217   withval=$with_dmalloc;
4218                         if test "$withval" = yes; then
4219                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4220                         else
4221                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
4222                         fi
4223
4224 else
4225
4226                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
4227                         if test "x$LINE" != x ; then
4228                           eval "DEFAULT_$LINE"
4229                         else
4230                           no_cache=1
4231                         fi
4232
4233                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
4234
4235 fi
4236
4237
4238           eval "$ac_cv_use_dmalloc"
4239           if test "$no_cache" != 1; then
4240             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
4241           fi
4242
4243           if test "$wxUSE_DMALLOC" = yes; then
4244             { echo "$as_me:$LINENO: result: yes" >&5
4245 echo "${ECHO_T}yes" >&6; }
4246           else
4247             { echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6; }
4249           fi
4250
4251
4252           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4253 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4254           no_cache=0
4255
4256 # Check whether --with-regex was given.
4257 if test "${with_regex+set}" = set; then
4258   withval=$with_regex;
4259                         if test "$withval" = yes; then
4260                           ac_cv_use_regex='wxUSE_REGEX=yes'
4261                         elif test "$withval" = no; then
4262                           ac_cv_use_regex='wxUSE_REGEX=no'
4263                         elif test "$withval" = sys; then
4264                           ac_cv_use_regex='wxUSE_REGEX=sys'
4265                         elif test "$withval" = builtin; then
4266                           ac_cv_use_regex='wxUSE_REGEX=builtin'
4267                         else
4268                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4269 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4270    { (exit 1); exit 1; }; }
4271                         fi
4272
4273 else
4274
4275                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
4276                         if test "x$LINE" != x ; then
4277                           eval "DEFAULT_$LINE"
4278                         else
4279                           no_cache=1
4280                         fi
4281
4282                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
4283
4284 fi
4285
4286
4287           eval "$ac_cv_use_regex"
4288           if test "$no_cache" != 1; then
4289             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
4290           fi
4291
4292           if test "$wxUSE_REGEX" = yes; then
4293             { echo "$as_me:$LINENO: result: yes" >&5
4294 echo "${ECHO_T}yes" >&6; }
4295           elif test "$wxUSE_REGEX" = no; then
4296             { echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6; }
4298           elif test "$wxUSE_REGEX" = sys; then
4299             { echo "$as_me:$LINENO: result: system version" >&5
4300 echo "${ECHO_T}system version" >&6; }
4301           elif test "$wxUSE_REGEX" = builtin; then
4302             { echo "$as_me:$LINENO: result: builtin version" >&5
4303 echo "${ECHO_T}builtin version" >&6; }
4304           else
4305             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4306 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4307    { (exit 1); exit 1; }; }
4308           fi
4309
4310
4311           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4312 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4313           no_cache=0
4314
4315 # Check whether --with-zlib was given.
4316 if test "${with_zlib+set}" = set; then
4317   withval=$with_zlib;
4318                         if test "$withval" = yes; then
4319                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
4320                         elif test "$withval" = no; then
4321                           ac_cv_use_zlib='wxUSE_ZLIB=no'
4322                         elif test "$withval" = sys; then
4323                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
4324                         elif test "$withval" = builtin; then
4325                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
4326                         else
4327                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4328 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4329    { (exit 1); exit 1; }; }
4330                         fi
4331
4332 else
4333
4334                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
4335                         if test "x$LINE" != x ; then
4336                           eval "DEFAULT_$LINE"
4337                         else
4338                           no_cache=1
4339                         fi
4340
4341                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
4342
4343 fi
4344
4345
4346           eval "$ac_cv_use_zlib"
4347           if test "$no_cache" != 1; then
4348             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
4349           fi
4350
4351           if test "$wxUSE_ZLIB" = yes; then
4352             { echo "$as_me:$LINENO: result: yes" >&5
4353 echo "${ECHO_T}yes" >&6; }
4354           elif test "$wxUSE_ZLIB" = no; then
4355             { echo "$as_me:$LINENO: result: no" >&5
4356 echo "${ECHO_T}no" >&6; }
4357           elif test "$wxUSE_ZLIB" = sys; then
4358             { echo "$as_me:$LINENO: result: system version" >&5
4359 echo "${ECHO_T}system version" >&6; }
4360           elif test "$wxUSE_ZLIB" = builtin; then
4361             { echo "$as_me:$LINENO: result: builtin version" >&5
4362 echo "${ECHO_T}builtin version" >&6; }
4363           else
4364             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4365 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4366    { (exit 1); exit 1; }; }
4367           fi
4368
4369
4370           { echo "$as_me:$LINENO: checking for --with-odbc" >&5
4371 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6; }
4372           no_cache=0
4373
4374 # Check whether --with-odbc was given.
4375 if test "${with_odbc+set}" = set; then
4376   withval=$with_odbc;
4377                         if test "$withval" = yes; then
4378                           ac_cv_use_odbc='wxUSE_ODBC=yes'
4379                         elif test "$withval" = no; then
4380                           ac_cv_use_odbc='wxUSE_ODBC=no'
4381                         elif test "$withval" = sys; then
4382                           ac_cv_use_odbc='wxUSE_ODBC=sys'
4383                         elif test "$withval" = builtin; then
4384                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
4385                         else
4386                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4387 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4388    { (exit 1); exit 1; }; }
4389                         fi
4390
4391 else
4392
4393                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
4394                         if test "x$LINE" != x ; then
4395                           eval "DEFAULT_$LINE"
4396                         else
4397                           no_cache=1
4398                         fi
4399
4400                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
4401
4402 fi
4403
4404
4405           eval "$ac_cv_use_odbc"
4406           if test "$no_cache" != 1; then
4407             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
4408           fi
4409
4410           if test "$wxUSE_ODBC" = yes; then
4411             { echo "$as_me:$LINENO: result: yes" >&5
4412 echo "${ECHO_T}yes" >&6; }
4413           elif test "$wxUSE_ODBC" = no; then
4414             { echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6; }
4416           elif test "$wxUSE_ODBC" = sys; then
4417             { echo "$as_me:$LINENO: result: system version" >&5
4418 echo "${ECHO_T}system version" >&6; }
4419           elif test "$wxUSE_ODBC" = builtin; then
4420             { echo "$as_me:$LINENO: result: builtin version" >&5
4421 echo "${ECHO_T}builtin version" >&6; }
4422           else
4423             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4424 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4425    { (exit 1); exit 1; }; }
4426           fi
4427
4428
4429           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4430 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4431           no_cache=0
4432
4433 # Check whether --with-expat was given.
4434 if test "${with_expat+set}" = set; then
4435   withval=$with_expat;
4436                         if test "$withval" = yes; then
4437                           ac_cv_use_expat='wxUSE_EXPAT=yes'
4438                         elif test "$withval" = no; then
4439                           ac_cv_use_expat='wxUSE_EXPAT=no'
4440                         elif test "$withval" = sys; then
4441                           ac_cv_use_expat='wxUSE_EXPAT=sys'
4442                         elif test "$withval" = builtin; then
4443                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
4444                         else
4445                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4446 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4447    { (exit 1); exit 1; }; }
4448                         fi
4449
4450 else
4451
4452                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
4453                         if test "x$LINE" != x ; then
4454                           eval "DEFAULT_$LINE"
4455                         else
4456                           no_cache=1
4457                         fi
4458
4459                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
4460
4461 fi
4462
4463
4464           eval "$ac_cv_use_expat"
4465           if test "$no_cache" != 1; then
4466             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
4467           fi
4468
4469           if test "$wxUSE_EXPAT" = yes; then
4470             { echo "$as_me:$LINENO: result: yes" >&5
4471 echo "${ECHO_T}yes" >&6; }
4472           elif test "$wxUSE_EXPAT" = no; then
4473             { echo "$as_me:$LINENO: result: no" >&5
4474 echo "${ECHO_T}no" >&6; }
4475           elif test "$wxUSE_EXPAT" = sys; then
4476             { echo "$as_me:$LINENO: result: system version" >&5
4477 echo "${ECHO_T}system version" >&6; }
4478           elif test "$wxUSE_EXPAT" = builtin; then
4479             { echo "$as_me:$LINENO: result: builtin version" >&5
4480 echo "${ECHO_T}builtin version" >&6; }
4481           else
4482             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4483 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4484    { (exit 1); exit 1; }; }
4485           fi
4486
4487
4488
4489
4490           enablestring=
4491           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4492 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4493           no_cache=0
4494           # Check whether --enable-shared was given.
4495 if test "${enable_shared+set}" = set; then
4496   enableval=$enable_shared;
4497                           if test "$enableval" = yes; then
4498                             ac_cv_use_shared='wxUSE_SHARED=yes'
4499                           else
4500                             ac_cv_use_shared='wxUSE_SHARED=no'
4501                           fi
4502
4503 else
4504
4505                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
4506                           if test "x$LINE" != x ; then
4507                             eval "DEFAULT_$LINE"
4508                           else
4509                             no_cache=1
4510                           fi
4511
4512                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
4513
4514 fi
4515
4516
4517           eval "$ac_cv_use_shared"
4518           if test "$no_cache" != 1; then
4519             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
4520           fi
4521
4522           if test "$wxUSE_SHARED" = yes; then
4523             { echo "$as_me:$LINENO: result: yes" >&5
4524 echo "${ECHO_T}yes" >&6; }
4525           else
4526             { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4528           fi
4529
4530
4531           enablestring=
4532           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4533 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4534           no_cache=0
4535           # Check whether --enable-optimise was given.
4536 if test "${enable_optimise+set}" = set; then
4537   enableval=$enable_optimise;
4538                           if test "$enableval" = yes; then
4539                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
4540                           else
4541                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
4542                           fi
4543
4544 else
4545
4546                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
4547                           if test "x$LINE" != x ; then
4548                             eval "DEFAULT_$LINE"
4549                           else
4550                             no_cache=1
4551                           fi
4552
4553                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
4554
4555 fi
4556
4557
4558           eval "$ac_cv_use_optimise"
4559           if test "$no_cache" != 1; then
4560             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
4561           fi
4562
4563           if test "$wxUSE_OPTIMISE" = yes; then
4564             { echo "$as_me:$LINENO: result: yes" >&5
4565 echo "${ECHO_T}yes" >&6; }
4566           else
4567             { echo "$as_me:$LINENO: result: no" >&5
4568 echo "${ECHO_T}no" >&6; }
4569           fi
4570
4571
4572           enablestring=
4573           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4574 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4575           no_cache=0
4576           # Check whether --enable-debug was given.
4577 if test "${enable_debug+set}" = set; then
4578   enableval=$enable_debug;
4579                           if test "$enableval" = yes; then
4580                             ac_cv_use_debug='wxUSE_DEBUG=yes'
4581                           else
4582                             ac_cv_use_debug='wxUSE_DEBUG=no'
4583                           fi
4584
4585 else
4586
4587                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
4588                           if test "x$LINE" != x ; then
4589                             eval "DEFAULT_$LINE"
4590                           else
4591                             no_cache=1
4592                           fi
4593
4594                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
4595
4596 fi
4597
4598
4599           eval "$ac_cv_use_debug"
4600           if test "$no_cache" != 1; then
4601             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
4602           fi
4603
4604           if test "$wxUSE_DEBUG" = yes; then
4605             { echo "$as_me:$LINENO: result: yes" >&5
4606 echo "${ECHO_T}yes" >&6; }
4607           else
4608             { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4610           fi
4611
4612
4613           enablestring=
4614           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4615 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4616           no_cache=0
4617           # Check whether --enable-stl was given.
4618 if test "${enable_stl+set}" = set; then
4619   enableval=$enable_stl;
4620                           if test "$enableval" = yes; then
4621                             ac_cv_use_stl='wxUSE_STL=yes'
4622                           else
4623                             ac_cv_use_stl='wxUSE_STL=no'
4624                           fi
4625
4626 else
4627
4628                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
4629                           if test "x$LINE" != x ; then
4630                             eval "DEFAULT_$LINE"
4631                           else
4632                             no_cache=1
4633                           fi
4634
4635                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
4636
4637 fi
4638
4639
4640           eval "$ac_cv_use_stl"
4641           if test "$no_cache" != 1; then
4642             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
4643           fi
4644
4645           if test "$wxUSE_STL" = yes; then
4646             { echo "$as_me:$LINENO: result: yes" >&5
4647 echo "${ECHO_T}yes" >&6; }
4648           else
4649             { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4651           fi
4652
4653 if test "$USE_OS2" = "1"; then
4654     DEFAULT_wxUSE_OMF=no
4655
4656           enablestring=
4657           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4658 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4659           no_cache=0
4660           # Check whether --enable-omf was given.
4661 if test "${enable_omf+set}" = set; then
4662   enableval=$enable_omf;
4663                           if test "$enableval" = yes; then
4664                             ac_cv_use_omf='wxUSE_OMF=yes'
4665                           else
4666                             ac_cv_use_omf='wxUSE_OMF=no'
4667                           fi
4668
4669 else
4670
4671                           LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
4672                           if test "x$LINE" != x ; then
4673                             eval "DEFAULT_$LINE"
4674                           else
4675                             no_cache=1
4676                           fi
4677
4678                           ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
4679
4680 fi
4681
4682
4683           eval "$ac_cv_use_omf"
4684           if test "$no_cache" != 1; then
4685             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
4686           fi
4687
4688           if test "$wxUSE_OMF" = yes; then
4689             { echo "$as_me:$LINENO: result: yes" >&5
4690 echo "${ECHO_T}yes" >&6; }
4691           else
4692             { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4694           fi
4695
4696 fi
4697
4698 if test "$wxUSE_DEBUG" = "yes"; then
4699   DEFAULT_wxUSE_DEBUG_FLAG=yes
4700   DEFAULT_wxUSE_DEBUG_INFO=yes
4701   BUILD=debug
4702 elif test "$wxUSE_DEBUG" = "no"; then
4703   DEFAULT_wxUSE_DEBUG_FLAG=no
4704   DEFAULT_wxUSE_DEBUG_INFO=no
4705   BUILD=release
4706 fi
4707
4708
4709           enablestring=
4710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4711 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4712           no_cache=0
4713           # Check whether --enable-debug_flag was given.
4714 if test "${enable_debug_flag+set}" = set; then
4715   enableval=$enable_debug_flag;
4716                           if test "$enableval" = yes; then
4717                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4718                           else
4719                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4720                           fi
4721
4722 else
4723
4724                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4725                           if test "x$LINE" != x ; then
4726                             eval "DEFAULT_$LINE"
4727                           else
4728                             no_cache=1
4729                           fi
4730
4731                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4732
4733 fi
4734
4735
4736           eval "$ac_cv_use_debug_flag"
4737           if test "$no_cache" != 1; then
4738             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4739           fi
4740
4741           if test "$wxUSE_DEBUG_FLAG" = yes; then
4742             { echo "$as_me:$LINENO: result: yes" >&5
4743 echo "${ECHO_T}yes" >&6; }
4744           else
4745             { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4747           fi
4748
4749
4750           enablestring=
4751           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4752 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4753           no_cache=0
4754           # Check whether --enable-debug_info was given.
4755 if test "${enable_debug_info+set}" = set; then
4756   enableval=$enable_debug_info;
4757                           if test "$enableval" = yes; then
4758                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4759                           else
4760                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4761                           fi
4762
4763 else
4764
4765                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4766                           if test "x$LINE" != x ; then
4767                             eval "DEFAULT_$LINE"
4768                           else
4769                             no_cache=1
4770                           fi
4771
4772                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4773
4774 fi
4775
4776
4777           eval "$ac_cv_use_debug_info"
4778           if test "$no_cache" != 1; then
4779             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4780           fi
4781
4782           if test "$wxUSE_DEBUG_INFO" = yes; then
4783             { echo "$as_me:$LINENO: result: yes" >&5
4784 echo "${ECHO_T}yes" >&6; }
4785           else
4786             { echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6; }
4788           fi
4789
4790
4791           enablestring=
4792           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4793 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4794           no_cache=0
4795           # Check whether --enable-debug_gdb was given.
4796 if test "${enable_debug_gdb+set}" = set; then
4797   enableval=$enable_debug_gdb;
4798                           if test "$enableval" = yes; then
4799                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4800                           else
4801                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4802                           fi
4803
4804 else
4805
4806                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4807                           if test "x$LINE" != x ; then
4808                             eval "DEFAULT_$LINE"
4809                           else
4810                             no_cache=1
4811                           fi
4812
4813                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4814
4815 fi
4816
4817
4818           eval "$ac_cv_use_debug_gdb"
4819           if test "$no_cache" != 1; then
4820             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4821           fi
4822
4823           if test "$wxUSE_DEBUG_GDB" = yes; then
4824             { echo "$as_me:$LINENO: result: yes" >&5
4825 echo "${ECHO_T}yes" >&6; }
4826           else
4827             { echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6; }
4829           fi
4830
4831
4832           enablestring=
4833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4834 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
4835           no_cache=0
4836           # Check whether --enable-debug_cntxt was given.
4837 if test "${enable_debug_cntxt+set}" = set; then
4838   enableval=$enable_debug_cntxt;
4839                           if test "$enableval" = yes; then
4840                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4841                           else
4842                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4843                           fi
4844
4845 else
4846
4847                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4848                           if test "x$LINE" != x ; then
4849                             eval "DEFAULT_$LINE"
4850                           else
4851                             no_cache=1
4852                           fi
4853
4854                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4855
4856 fi
4857
4858
4859           eval "$ac_cv_use_debug_cntxt"
4860           if test "$no_cache" != 1; then
4861             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4862           fi
4863
4864           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4865             { echo "$as_me:$LINENO: result: yes" >&5
4866 echo "${ECHO_T}yes" >&6; }
4867           else
4868             { echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6; }
4870           fi
4871
4872
4873           enablestring=
4874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4875 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
4876           no_cache=0
4877           # Check whether --enable-mem_tracing was given.
4878 if test "${enable_mem_tracing+set}" = set; then
4879   enableval=$enable_mem_tracing;
4880                           if test "$enableval" = yes; then
4881                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4882                           else
4883                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4884                           fi
4885
4886 else
4887
4888                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4889                           if test "x$LINE" != x ; then
4890                             eval "DEFAULT_$LINE"
4891                           else
4892                             no_cache=1
4893                           fi
4894
4895                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4896
4897 fi
4898
4899
4900           eval "$ac_cv_use_mem_tracing"
4901           if test "$no_cache" != 1; then
4902             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4903           fi
4904
4905           if test "$wxUSE_MEM_TRACING" = yes; then
4906             { echo "$as_me:$LINENO: result: yes" >&5
4907 echo "${ECHO_T}yes" >&6; }
4908           else
4909             { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4911           fi
4912
4913
4914           enablestring=
4915           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4916 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
4917           no_cache=0
4918           # Check whether --enable-profile was given.
4919 if test "${enable_profile+set}" = set; then
4920   enableval=$enable_profile;
4921                           if test "$enableval" = yes; then
4922                             ac_cv_use_profile='wxUSE_PROFILE=yes'
4923                           else
4924                             ac_cv_use_profile='wxUSE_PROFILE=no'
4925                           fi
4926
4927 else
4928
4929                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4930                           if test "x$LINE" != x ; then
4931                             eval "DEFAULT_$LINE"
4932                           else
4933                             no_cache=1
4934                           fi
4935
4936                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4937
4938 fi
4939
4940
4941           eval "$ac_cv_use_profile"
4942           if test "$no_cache" != 1; then
4943             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4944           fi
4945
4946           if test "$wxUSE_PROFILE" = yes; then
4947             { echo "$as_me:$LINENO: result: yes" >&5
4948 echo "${ECHO_T}yes" >&6; }
4949           else
4950             { echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6; }
4952           fi
4953
4954
4955           enablestring=
4956           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4957 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
4958           no_cache=0
4959           # Check whether --enable-no_rtti was given.
4960 if test "${enable_no_rtti+set}" = set; then
4961   enableval=$enable_no_rtti;
4962                           if test "$enableval" = yes; then
4963                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4964                           else
4965                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4966                           fi
4967
4968 else
4969
4970                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4971                           if test "x$LINE" != x ; then
4972                             eval "DEFAULT_$LINE"
4973                           else
4974                             no_cache=1
4975                           fi
4976
4977                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4978
4979 fi
4980
4981
4982           eval "$ac_cv_use_no_rtti"
4983           if test "$no_cache" != 1; then
4984             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4985           fi
4986
4987           if test "$wxUSE_NO_RTTI" = yes; then
4988             { echo "$as_me:$LINENO: result: yes" >&5
4989 echo "${ECHO_T}yes" >&6; }
4990           else
4991             { echo "$as_me:$LINENO: result: no" >&5
4992 echo "${ECHO_T}no" >&6; }
4993           fi
4994
4995
4996           enablestring=
4997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4998 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
4999           no_cache=0
5000           # Check whether --enable-no_exceptions was given.
5001 if test "${enable_no_exceptions+set}" = set; then
5002   enableval=$enable_no_exceptions;
5003                           if test "$enableval" = yes; then
5004                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5005                           else
5006                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5007                           fi
5008
5009 else
5010
5011                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
5012                           if test "x$LINE" != x ; then
5013                             eval "DEFAULT_$LINE"
5014                           else
5015                             no_cache=1
5016                           fi
5017
5018                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
5019
5020 fi
5021
5022
5023           eval "$ac_cv_use_no_exceptions"
5024           if test "$no_cache" != 1; then
5025             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
5026           fi
5027
5028           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
5029             { echo "$as_me:$LINENO: result: yes" >&5
5030 echo "${ECHO_T}yes" >&6; }
5031           else
5032             { echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6; }
5034           fi
5035
5036
5037           enablestring=
5038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5039 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5040           no_cache=0
5041           # Check whether --enable-permissive was given.
5042 if test "${enable_permissive+set}" = set; then
5043   enableval=$enable_permissive;
5044                           if test "$enableval" = yes; then
5045                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5046                           else
5047                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
5048                           fi
5049
5050 else
5051
5052                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
5053                           if test "x$LINE" != x ; then
5054                             eval "DEFAULT_$LINE"
5055                           else
5056                             no_cache=1
5057                           fi
5058
5059                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
5060
5061 fi
5062
5063
5064           eval "$ac_cv_use_permissive"
5065           if test "$no_cache" != 1; then
5066             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
5067           fi
5068
5069           if test "$wxUSE_PERMISSIVE" = yes; then
5070             { echo "$as_me:$LINENO: result: yes" >&5
5071 echo "${ECHO_T}yes" >&6; }
5072           else
5073             { echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6; }
5075           fi
5076
5077
5078           enablestring=
5079           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5080 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5081           no_cache=0
5082           # Check whether --enable-no_deps was given.
5083 if test "${enable_no_deps+set}" = set; then
5084   enableval=$enable_no_deps;
5085                           if test "$enableval" = yes; then
5086                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5087                           else
5088                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
5089                           fi
5090
5091 else
5092
5093                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
5094                           if test "x$LINE" != x ; then
5095                             eval "DEFAULT_$LINE"
5096                           else
5097                             no_cache=1
5098                           fi
5099
5100                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
5101
5102 fi
5103
5104
5105           eval "$ac_cv_use_no_deps"
5106           if test "$no_cache" != 1; then
5107             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
5108           fi
5109
5110           if test "$wxUSE_NO_DEPS" = yes; then
5111             { echo "$as_me:$LINENO: result: yes" >&5
5112 echo "${ECHO_T}yes" >&6; }
5113           else
5114             { echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6; }
5116           fi
5117
5118
5119           enablestring=
5120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5121 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5122           no_cache=0
5123           # Check whether --enable-vararg_macros was given.
5124 if test "${enable_vararg_macros+set}" = set; then
5125   enableval=$enable_vararg_macros;
5126                           if test "$enableval" = yes; then
5127                             ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5128                           else
5129                             ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5130                           fi
5131
5132 else
5133
5134                           LINE=`grep "wxUSE_VARARG_MACROS" ${wx_arg_cache_file}`
5135                           if test "x$LINE" != x ; then
5136                             eval "DEFAULT_$LINE"
5137                           else
5138                             no_cache=1
5139                           fi
5140
5141                           ac_cv_use_vararg_macros='wxUSE_VARARG_MACROS='$DEFAULT_wxUSE_VARARG_MACROS
5142
5143 fi
5144
5145
5146           eval "$ac_cv_use_vararg_macros"
5147           if test "$no_cache" != 1; then
5148             echo $ac_cv_use_vararg_macros >> ${wx_arg_cache_file}.tmp
5149           fi
5150
5151           if test "$wxUSE_VARARG_MACROS" = yes; then
5152             { echo "$as_me:$LINENO: result: yes" >&5
5153 echo "${ECHO_T}yes" >&6; }
5154           else
5155             { echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6; }
5157           fi
5158
5159
5160           enablestring=
5161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5162 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5163           no_cache=0
5164           # Check whether --enable-universal_binary was given.
5165 if test "${enable_universal_binary+set}" = set; then
5166   enableval=$enable_universal_binary;
5167                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5168
5169 else
5170
5171                           LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
5172                           if test "x$LINE" != x ; then
5173                             eval "DEFAULT_$LINE"
5174                             wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5175                           else
5176                             no_cache=1
5177                             wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
5178                           fi
5179
5180 fi
5181
5182
5183           eval "$wx_cv_use_universal_binary"
5184           if test "$no_cache" != 1; then
5185             echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
5186           fi
5187
5188           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5189 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5190
5191
5192
5193           enablestring=enable
5194           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
5195 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6; }
5196           no_cache=0
5197           # Check whether --enable-compat24 was given.
5198 if test "${enable_compat24+set}" = set; then
5199   enableval=$enable_compat24;
5200                           if test "$enableval" = yes; then
5201                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
5202                           else
5203                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
5204                           fi
5205
5206 else
5207
5208                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
5209                           if test "x$LINE" != x ; then
5210                             eval "DEFAULT_$LINE"
5211                           else
5212                             no_cache=1
5213                           fi
5214
5215                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
5216
5217 fi
5218
5219
5220           eval "$ac_cv_use_compat24"
5221           if test "$no_cache" != 1; then
5222             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
5223           fi
5224
5225           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
5226             { echo "$as_me:$LINENO: result: yes" >&5
5227 echo "${ECHO_T}yes" >&6; }
5228           else
5229             { echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6; }
5231           fi
5232
5233
5234           enablestring=enable
5235           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5236 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5237           no_cache=0
5238           # Check whether --enable-compat26 was given.
5239 if test "${enable_compat26+set}" = set; then
5240   enableval=$enable_compat26;
5241                           if test "$enableval" = yes; then
5242                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5243                           else
5244                             ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5245                           fi
5246
5247 else
5248
5249                           LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
5250                           if test "x$LINE" != x ; then
5251                             eval "DEFAULT_$LINE"
5252                           else
5253                             no_cache=1
5254                           fi
5255
5256                           ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
5257
5258 fi
5259
5260
5261           eval "$ac_cv_use_compat26"
5262           if test "$no_cache" != 1; then
5263             echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
5264           fi
5265
5266           if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
5267             { echo "$as_me:$LINENO: result: yes" >&5
5268 echo "${ECHO_T}yes" >&6; }
5269           else
5270             { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5272           fi
5273
5274
5275           enablestring=disable
5276           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5277 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5278           no_cache=0
5279           # Check whether --enable-compat28 was given.
5280 if test "${enable_compat28+set}" = set; then
5281   enableval=$enable_compat28;
5282                           if test "$enableval" = yes; then
5283                             ac_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5284                           else
5285                             ac_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5286                           fi
5287
5288 else
5289
5290                           LINE=`grep "WXWIN_COMPATIBILITY_2_8" ${wx_arg_cache_file}`
5291                           if test "x$LINE" != x ; then
5292                             eval "DEFAULT_$LINE"
5293                           else
5294                             no_cache=1
5295                           fi
5296
5297                           ac_cv_use_compat28='WXWIN_COMPATIBILITY_2_8='$DEFAULT_WXWIN_COMPATIBILITY_2_8
5298
5299 fi
5300
5301
5302           eval "$ac_cv_use_compat28"
5303           if test "$no_cache" != 1; then
5304             echo $ac_cv_use_compat28 >> ${wx_arg_cache_file}.tmp
5305           fi
5306
5307           if test "$WXWIN_COMPATIBILITY_2_8" = yes; then
5308             { echo "$as_me:$LINENO: result: yes" >&5
5309 echo "${ECHO_T}yes" >&6; }
5310           else
5311             { echo "$as_me:$LINENO: result: no" >&5
5312 echo "${ECHO_T}no" >&6; }
5313           fi
5314
5315
5316
5317           enablestring=
5318           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5319 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5320           no_cache=0
5321           # Check whether --enable-rpath was given.
5322 if test "${enable_rpath+set}" = set; then
5323   enableval=$enable_rpath;
5324                           if test "$enableval" = yes; then
5325                             ac_cv_use_rpath='wxUSE_RPATH=yes'
5326                           else
5327                             ac_cv_use_rpath='wxUSE_RPATH=no'
5328                           fi
5329
5330 else
5331
5332                           LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
5333                           if test "x$LINE" != x ; then
5334                             eval "DEFAULT_$LINE"
5335                           else
5336                             no_cache=1
5337                           fi
5338
5339                           ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
5340
5341 fi
5342
5343
5344           eval "$ac_cv_use_rpath"
5345           if test "$no_cache" != 1; then
5346             echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
5347           fi
5348
5349           if test "$wxUSE_RPATH" = yes; then
5350             { echo "$as_me:$LINENO: result: yes" >&5
5351 echo "${ECHO_T}yes" >&6; }
5352           else
5353             { echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6; }
5355           fi
5356
5357
5358
5359
5360
5361           enablestring=
5362           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5363 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5364           no_cache=0
5365           # Check whether --enable-intl was given.
5366 if test "${enable_intl+set}" = set; then
5367   enableval=$enable_intl;
5368                           if test "$enableval" = yes; then
5369                             ac_cv_use_intl='wxUSE_INTL=yes'
5370                           else
5371                             ac_cv_use_intl='wxUSE_INTL=no'
5372                           fi
5373
5374 else
5375
5376                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
5377                           if test "x$LINE" != x ; then
5378                             eval "DEFAULT_$LINE"
5379                           else
5380                             no_cache=1
5381                           fi
5382
5383                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
5384
5385 fi
5386
5387
5388           eval "$ac_cv_use_intl"
5389           if test "$no_cache" != 1; then
5390             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
5391           fi
5392
5393           if test "$wxUSE_INTL" = yes; then
5394             { echo "$as_me:$LINENO: result: yes" >&5
5395 echo "${ECHO_T}yes" >&6; }
5396           else
5397             { echo "$as_me:$LINENO: result: no" >&5
5398 echo "${ECHO_T}no" >&6; }
5399           fi
5400
5401
5402           enablestring=
5403           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5404 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5405           no_cache=0
5406           # Check whether --enable-config was given.
5407 if test "${enable_config+set}" = set; then
5408   enableval=$enable_config;
5409                           if test "$enableval" = yes; then
5410                             ac_cv_use_config='wxUSE_CONFIG=yes'
5411                           else
5412                             ac_cv_use_config='wxUSE_CONFIG=no'
5413                           fi
5414
5415 else
5416
5417                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
5418                           if test "x$LINE" != x ; then
5419                             eval "DEFAULT_$LINE"
5420                           else
5421                             no_cache=1
5422                           fi
5423
5424                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
5425
5426 fi
5427
5428
5429           eval "$ac_cv_use_config"
5430           if test "$no_cache" != 1; then
5431             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
5432           fi
5433
5434           if test "$wxUSE_CONFIG" = yes; then
5435             { echo "$as_me:$LINENO: result: yes" >&5
5436 echo "${ECHO_T}yes" >&6; }
5437           else
5438             { echo "$as_me:$LINENO: result: no" >&5
5439 echo "${ECHO_T}no" >&6; }
5440           fi
5441
5442
5443
5444           enablestring=
5445           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5446 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5447           no_cache=0
5448           # Check whether --enable-protocols was given.
5449 if test "${enable_protocols+set}" = set; then
5450   enableval=$enable_protocols;
5451                           if test "$enableval" = yes; then
5452                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
5453                           else
5454                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
5455                           fi
5456
5457 else
5458
5459                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5460                           if test "x$LINE" != x ; then
5461                             eval "DEFAULT_$LINE"
5462                           else
5463                             no_cache=1
5464                           fi
5465
5466                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5467
5468 fi
5469
5470
5471           eval "$ac_cv_use_protocols"
5472           if test "$no_cache" != 1; then
5473             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
5474           fi
5475
5476           if test "$wxUSE_PROTOCOL" = yes; then
5477             { echo "$as_me:$LINENO: result: yes" >&5
5478 echo "${ECHO_T}yes" >&6; }
5479           else
5480             { echo "$as_me:$LINENO: result: no" >&5
5481 echo "${ECHO_T}no" >&6; }
5482           fi
5483
5484
5485           enablestring=
5486           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5487 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5488           no_cache=0
5489           # Check whether --enable-ftp was given.
5490 if test "${enable_ftp+set}" = set; then
5491   enableval=$enable_ftp;
5492                           if test "$enableval" = yes; then
5493                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5494                           else
5495                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5496                           fi
5497
5498 else
5499
5500                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5501                           if test "x$LINE" != x ; then
5502                             eval "DEFAULT_$LINE"
5503                           else
5504                             no_cache=1
5505                           fi
5506
5507                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5508
5509 fi
5510
5511
5512           eval "$ac_cv_use_ftp"
5513           if test "$no_cache" != 1; then
5514             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
5515           fi
5516
5517           if test "$wxUSE_PROTOCOL_FTP" = yes; then
5518             { echo "$as_me:$LINENO: result: yes" >&5
5519 echo "${ECHO_T}yes" >&6; }
5520           else
5521             { echo "$as_me:$LINENO: result: no" >&5
5522 echo "${ECHO_T}no" >&6; }
5523           fi
5524
5525
5526           enablestring=
5527           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5528 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5529           no_cache=0
5530           # Check whether --enable-http was given.
5531 if test "${enable_http+set}" = set; then
5532   enableval=$enable_http;
5533                           if test "$enableval" = yes; then
5534                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5535                           else
5536                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5537                           fi
5538
5539 else
5540
5541                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5542                           if test "x$LINE" != x ; then
5543                             eval "DEFAULT_$LINE"
5544                           else
5545                             no_cache=1
5546                           fi
5547
5548                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5549
5550 fi
5551
5552
5553           eval "$ac_cv_use_http"
5554           if test "$no_cache" != 1; then
5555             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
5556           fi
5557
5558           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5559             { echo "$as_me:$LINENO: result: yes" >&5
5560 echo "${ECHO_T}yes" >&6; }
5561           else
5562             { echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6; }
5564           fi
5565
5566
5567           enablestring=
5568           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5569 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5570           no_cache=0
5571           # Check whether --enable-fileproto was given.
5572 if test "${enable_fileproto+set}" = set; then
5573   enableval=$enable_fileproto;
5574                           if test "$enableval" = yes; then
5575                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5576                           else
5577                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5578                           fi
5579
5580 else
5581
5582                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5583                           if test "x$LINE" != x ; then
5584                             eval "DEFAULT_$LINE"
5585                           else
5586                             no_cache=1
5587                           fi
5588
5589                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5590
5591 fi
5592
5593
5594           eval "$ac_cv_use_fileproto"
5595           if test "$no_cache" != 1; then
5596             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
5597           fi
5598
5599           if test "$wxUSE_PROTOCOL_FILE" = yes; then
5600             { echo "$as_me:$LINENO: result: yes" >&5
5601 echo "${ECHO_T}yes" >&6; }
5602           else
5603             { echo "$as_me:$LINENO: result: no" >&5
5604 echo "${ECHO_T}no" >&6; }
5605           fi
5606
5607
5608           enablestring=
5609           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5610 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5611           no_cache=0
5612           # Check whether --enable-sockets was given.
5613 if test "${enable_sockets+set}" = set; then
5614   enableval=$enable_sockets;
5615                           if test "$enableval" = yes; then
5616                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
5617                           else
5618                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
5619                           fi
5620
5621 else
5622
5623                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
5624                           if test "x$LINE" != x ; then
5625                             eval "DEFAULT_$LINE"
5626                           else
5627                             no_cache=1
5628                           fi
5629
5630                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
5631
5632 fi
5633
5634
5635           eval "$ac_cv_use_sockets"
5636           if test "$no_cache" != 1; then
5637             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
5638           fi
5639
5640           if test "$wxUSE_SOCKETS" = yes; then
5641             { echo "$as_me:$LINENO: result: yes" >&5
5642 echo "${ECHO_T}yes" >&6; }
5643           else
5644             { echo "$as_me:$LINENO: result: no" >&5
5645 echo "${ECHO_T}no" >&6; }
5646           fi
5647
5648
5649           enablestring=
5650           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
5651 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
5652           no_cache=0
5653           # Check whether --enable-ole was given.
5654 if test "${enable_ole+set}" = set; then
5655   enableval=$enable_ole;
5656                           if test "$enableval" = yes; then
5657                             ac_cv_use_ole='wxUSE_OLE=yes'
5658                           else
5659                             ac_cv_use_ole='wxUSE_OLE=no'
5660                           fi
5661
5662 else
5663
5664                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
5665                           if test "x$LINE" != x ; then
5666                             eval "DEFAULT_$LINE"
5667                           else
5668                             no_cache=1
5669                           fi
5670
5671                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
5672
5673 fi
5674
5675
5676           eval "$ac_cv_use_ole"
5677           if test "$no_cache" != 1; then
5678             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
5679           fi
5680
5681           if test "$wxUSE_OLE" = yes; then
5682             { echo "$as_me:$LINENO: result: yes" >&5
5683 echo "${ECHO_T}yes" >&6; }
5684           else
5685             { echo "$as_me:$LINENO: result: no" >&5
5686 echo "${ECHO_T}no" >&6; }
5687           fi
5688
5689
5690           enablestring=
5691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
5692 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
5693           no_cache=0
5694           # Check whether --enable-dataobj was given.
5695 if test "${enable_dataobj+set}" = set; then
5696   enableval=$enable_dataobj;
5697                           if test "$enableval" = yes; then
5698                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
5699                           else
5700                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
5701                           fi
5702
5703 else
5704
5705                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
5706                           if test "x$LINE" != x ; then
5707                             eval "DEFAULT_$LINE"
5708                           else
5709                             no_cache=1
5710                           fi
5711
5712                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
5713
5714 fi
5715
5716
5717           eval "$ac_cv_use_dataobj"
5718           if test "$no_cache" != 1; then
5719             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
5720           fi
5721
5722           if test "$wxUSE_DATAOBJ" = yes; then
5723             { echo "$as_me:$LINENO: result: yes" >&5
5724 echo "${ECHO_T}yes" >&6; }
5725           else
5726             { echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6; }
5728           fi
5729
5730
5731
5732           enablestring=
5733           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
5734 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
5735           no_cache=0
5736           # Check whether --enable-ipc was given.
5737 if test "${enable_ipc+set}" = set; then
5738   enableval=$enable_ipc;
5739                           if test "$enableval" = yes; then
5740                             ac_cv_use_ipc='wxUSE_IPC=yes'
5741                           else
5742                             ac_cv_use_ipc='wxUSE_IPC=no'
5743                           fi
5744
5745 else
5746
5747                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
5748                           if test "x$LINE" != x ; then
5749                             eval "DEFAULT_$LINE"
5750                           else
5751                             no_cache=1
5752                           fi
5753
5754                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
5755
5756 fi
5757
5758
5759           eval "$ac_cv_use_ipc"
5760           if test "$no_cache" != 1; then
5761             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
5762           fi
5763
5764           if test "$wxUSE_IPC" = yes; then
5765             { echo "$as_me:$LINENO: result: yes" >&5
5766 echo "${ECHO_T}yes" >&6; }
5767           else
5768             { echo "$as_me:$LINENO: result: no" >&5
5769 echo "${ECHO_T}no" >&6; }
5770           fi
5771
5772
5773
5774           enablestring=
5775           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
5776 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
5777           no_cache=0
5778           # Check whether --enable-apple_ieee was given.
5779 if test "${enable_apple_ieee+set}" = set; then
5780   enableval=$enable_apple_ieee;
5781                           if test "$enableval" = yes; then
5782                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
5783                           else
5784                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
5785                           fi
5786
5787 else
5788
5789                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
5790                           if test "x$LINE" != x ; then
5791                             eval "DEFAULT_$LINE"
5792                           else
5793                             no_cache=1
5794                           fi
5795
5796                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5797
5798 fi
5799
5800
5801           eval "$ac_cv_use_apple_ieee"
5802           if test "$no_cache" != 1; then
5803             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5804           fi
5805
5806           if test "$wxUSE_APPLE_IEEE" = yes; then
5807             { echo "$as_me:$LINENO: result: yes" >&5
5808 echo "${ECHO_T}yes" >&6; }
5809           else
5810             { echo "$as_me:$LINENO: result: no" >&5
5811 echo "${ECHO_T}no" >&6; }
5812           fi
5813
5814
5815           enablestring=
5816           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5817 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
5818           no_cache=0
5819           # Check whether --enable-arcstream was given.
5820 if test "${enable_arcstream+set}" = set; then
5821   enableval=$enable_arcstream;
5822                           if test "$enableval" = yes; then
5823                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
5824                           else
5825                             ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
5826                           fi
5827
5828 else
5829
5830                           LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
5831                           if test "x$LINE" != x ; then
5832                             eval "DEFAULT_$LINE"
5833                           else
5834                             no_cache=1
5835                           fi
5836
5837                           ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
5838
5839 fi
5840
5841
5842           eval "$ac_cv_use_arcstream"
5843           if test "$no_cache" != 1; then
5844             echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5845           fi
5846
5847           if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
5848             { echo "$as_me:$LINENO: result: yes" >&5
5849 echo "${ECHO_T}yes" >&6; }
5850           else
5851             { echo "$as_me:$LINENO: result: no" >&5
5852 echo "${ECHO_T}no" >&6; }
5853           fi
5854
5855
5856           enablestring=
5857           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5858 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
5859           no_cache=0
5860           # Check whether --enable-backtrace was given.
5861 if test "${enable_backtrace+set}" = set; then
5862   enableval=$enable_backtrace;
5863                           if test "$enableval" = yes; then
5864                             ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
5865                           else
5866                             ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
5867                           fi
5868
5869 else
5870
5871                           LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
5872                           if test "x$LINE" != x ; then
5873                             eval "DEFAULT_$LINE"
5874                           else
5875                             no_cache=1
5876                           fi
5877
5878                           ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
5879
5880 fi
5881
5882
5883           eval "$ac_cv_use_backtrace"
5884           if test "$no_cache" != 1; then
5885             echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
5886           fi
5887
5888           if test "$wxUSE_STACKWALKER" = yes; then
5889             { echo "$as_me:$LINENO: result: yes" >&5
5890 echo "${ECHO_T}yes" >&6; }
5891           else
5892             { echo "$as_me:$LINENO: result: no" >&5
5893 echo "${ECHO_T}no" >&6; }
5894           fi
5895
5896
5897           enablestring=
5898           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5899 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
5900           no_cache=0
5901           # Check whether --enable-catch_segvs was given.
5902 if test "${enable_catch_segvs+set}" = set; then
5903   enableval=$enable_catch_segvs;
5904                           if test "$enableval" = yes; then
5905                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5906                           else
5907                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5908                           fi
5909
5910 else
5911
5912                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5913                           if test "x$LINE" != x ; then
5914                             eval "DEFAULT_$LINE"
5915                           else
5916                             no_cache=1
5917                           fi
5918
5919                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5920
5921 fi
5922
5923
5924           eval "$ac_cv_use_catch_segvs"
5925           if test "$no_cache" != 1; then
5926             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5927           fi
5928
5929           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5930             { echo "$as_me:$LINENO: result: yes" >&5
5931 echo "${ECHO_T}yes" >&6; }
5932           else
5933             { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5935           fi
5936
5937
5938           enablestring=
5939           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5940 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
5941           no_cache=0
5942           # Check whether --enable-cmdline was given.
5943 if test "${enable_cmdline+set}" = set; then
5944   enableval=$enable_cmdline;
5945                           if test "$enableval" = yes; then
5946                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5947                           else
5948                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5949                           fi
5950
5951 else
5952
5953                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5954                           if test "x$LINE" != x ; then
5955                             eval "DEFAULT_$LINE"
5956                           else
5957                             no_cache=1
5958                           fi
5959
5960                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5961
5962 fi
5963
5964
5965           eval "$ac_cv_use_cmdline"
5966           if test "$no_cache" != 1; then
5967             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5968           fi
5969
5970           if test "$wxUSE_CMDLINE_PARSER" = yes; then
5971             { echo "$as_me:$LINENO: result: yes" >&5
5972 echo "${ECHO_T}yes" >&6; }
5973           else
5974             { echo "$as_me:$LINENO: result: no" >&5
5975 echo "${ECHO_T}no" >&6; }
5976           fi
5977
5978
5979           enablestring=
5980           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5981 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
5982           no_cache=0
5983           # Check whether --enable-datetime was given.
5984 if test "${enable_datetime+set}" = set; then
5985   enableval=$enable_datetime;
5986                           if test "$enableval" = yes; then
5987                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
5988                           else
5989                             ac_cv_use_datetime='wxUSE_DATETIME=no'
5990                           fi
5991
5992 else
5993
5994                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5995                           if test "x$LINE" != x ; then
5996                             eval "DEFAULT_$LINE"
5997                           else
5998                             no_cache=1
5999                           fi
6000
6001                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
6002
6003 fi
6004
6005
6006           eval "$ac_cv_use_datetime"
6007           if test "$no_cache" != 1; then
6008             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
6009           fi
6010
6011           if test "$wxUSE_DATETIME" = yes; then
6012             { echo "$as_me:$LINENO: result: yes" >&5
6013 echo "${ECHO_T}yes" >&6; }
6014           else
6015             { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6017           fi
6018
6019
6020           enablestring=
6021           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6022 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6023           no_cache=0
6024           # Check whether --enable-debugreport was given.
6025 if test "${enable_debugreport+set}" = set; then
6026   enableval=$enable_debugreport;
6027                           if test "$enableval" = yes; then
6028                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6029                           else
6030                             ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6031                           fi
6032
6033 else
6034
6035                           LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
6036                           if test "x$LINE" != x ; then
6037                             eval "DEFAULT_$LINE"
6038                           else
6039                             no_cache=1
6040                           fi
6041
6042                           ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
6043
6044 fi
6045
6046
6047           eval "$ac_cv_use_debugreport"
6048           if test "$no_cache" != 1; then
6049             echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
6050           fi
6051
6052           if test "$wxUSE_DEBUGREPORT" = yes; then
6053             { echo "$as_me:$LINENO: result: yes" >&5
6054 echo "${ECHO_T}yes" >&6; }
6055           else
6056             { echo "$as_me:$LINENO: result: no" >&5
6057 echo "${ECHO_T}no" >&6; }
6058           fi
6059
6060
6061           enablestring=
6062           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6063 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6064           no_cache=0
6065           # Check whether --enable-dialupman was given.
6066 if test "${enable_dialupman+set}" = set; then
6067   enableval=$enable_dialupman;
6068                           if test "$enableval" = yes; then
6069                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6070                           else
6071                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6072                           fi
6073
6074 else
6075
6076                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
6077                           if test "x$LINE" != x ; then
6078                             eval "DEFAULT_$LINE"
6079                           else
6080                             no_cache=1
6081                           fi
6082
6083                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
6084
6085 fi
6086
6087
6088           eval "$ac_cv_use_dialupman"
6089           if test "$no_cache" != 1; then
6090             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
6091           fi
6092
6093           if test "$wxUSE_DIALUP_MANAGER" = yes; then
6094             { echo "$as_me:$LINENO: result: yes" >&5
6095 echo "${ECHO_T}yes" >&6; }
6096           else
6097             { echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6; }
6099           fi
6100
6101
6102           enablestring=
6103           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6104 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6105           no_cache=0
6106           # Check whether --enable-dynlib was given.
6107 if test "${enable_dynlib+set}" = set; then
6108   enableval=$enable_dynlib;
6109                           if test "$enableval" = yes; then
6110                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6111                           else
6112                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6113                           fi
6114
6115 else
6116
6117                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
6118                           if test "x$LINE" != x ; then
6119                             eval "DEFAULT_$LINE"
6120                           else
6121                             no_cache=1
6122                           fi
6123
6124                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
6125
6126 fi
6127
6128
6129           eval "$ac_cv_use_dynlib"
6130           if test "$no_cache" != 1; then
6131             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
6132           fi
6133
6134           if test "$wxUSE_DYNLIB_CLASS" = yes; then
6135             { echo "$as_me:$LINENO: result: yes" >&5
6136 echo "${ECHO_T}yes" >&6; }
6137           else
6138             { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6140           fi
6141
6142
6143           enablestring=
6144           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6145 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6146           no_cache=0
6147           # Check whether --enable-dynamicloader was given.
6148 if test "${enable_dynamicloader+set}" = set; then
6149   enableval=$enable_dynamicloader;
6150                           if test "$enableval" = yes; then
6151                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6152                           else
6153                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6154                           fi
6155
6156 else
6157
6158                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
6159                           if test "x$LINE" != x ; then
6160                             eval "DEFAULT_$LINE"
6161                           else
6162                             no_cache=1
6163                           fi
6164
6165                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
6166
6167 fi
6168
6169
6170           eval "$ac_cv_use_dynamicloader"
6171           if test "$no_cache" != 1; then
6172             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
6173           fi
6174
6175           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
6176             { echo "$as_me:$LINENO: result: yes" >&5
6177 echo "${ECHO_T}yes" >&6; }
6178           else
6179             { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6181           fi
6182
6183
6184           enablestring=
6185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6186 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6187           no_cache=0
6188           # Check whether --enable-exceptions was given.
6189 if test "${enable_exceptions+set}" = set; then
6190   enableval=$enable_exceptions;
6191                           if test "$enableval" = yes; then
6192                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6193                           else
6194                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6195                           fi
6196
6197 else
6198
6199                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
6200                           if test "x$LINE" != x ; then
6201                             eval "DEFAULT_$LINE"
6202                           else
6203                             no_cache=1
6204                           fi
6205
6206                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
6207
6208 fi
6209
6210
6211           eval "$ac_cv_use_exceptions"
6212           if test "$no_cache" != 1; then
6213             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
6214           fi
6215
6216           if test "$wxUSE_EXCEPTIONS" = yes; then
6217             { echo "$as_me:$LINENO: result: yes" >&5
6218 echo "${ECHO_T}yes" >&6; }
6219           else
6220             { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6222           fi
6223
6224
6225           enablestring=
6226           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6227 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6228           no_cache=0
6229           # Check whether --enable-ffile was given.
6230 if test "${enable_ffile+set}" = set; then
6231   enableval=$enable_ffile;
6232                           if test "$enableval" = yes; then
6233                             ac_cv_use_ffile='wxUSE_FFILE=yes'
6234                           else
6235                             ac_cv_use_ffile='wxUSE_FFILE=no'
6236                           fi
6237
6238 else
6239
6240                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
6241                           if test "x$LINE" != x ; then
6242                             eval "DEFAULT_$LINE"
6243                           else
6244                             no_cache=1
6245                           fi
6246
6247                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
6248
6249 fi
6250
6251
6252           eval "$ac_cv_use_ffile"
6253           if test "$no_cache" != 1; then
6254             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
6255           fi
6256
6257           if test "$wxUSE_FFILE" = yes; then
6258             { echo "$as_me:$LINENO: result: yes" >&5
6259 echo "${ECHO_T}yes" >&6; }
6260           else
6261             { echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6; }
6263           fi
6264
6265
6266           enablestring=
6267           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6268 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6269           no_cache=0
6270           # Check whether --enable-file was given.
6271 if test "${enable_file+set}" = set; then
6272   enableval=$enable_file;
6273                           if test "$enableval" = yes; then
6274                             ac_cv_use_file='wxUSE_FILE=yes'
6275                           else
6276                             ac_cv_use_file='wxUSE_FILE=no'
6277                           fi
6278
6279 else
6280
6281                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
6282                           if test "x$LINE" != x ; then
6283                             eval "DEFAULT_$LINE"
6284                           else
6285                             no_cache=1
6286                           fi
6287
6288                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
6289
6290 fi
6291
6292
6293           eval "$ac_cv_use_file"
6294           if test "$no_cache" != 1; then
6295             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
6296           fi
6297
6298           if test "$wxUSE_FILE" = yes; then
6299             { echo "$as_me:$LINENO: result: yes" >&5
6300 echo "${ECHO_T}yes" >&6; }
6301           else
6302             { echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6; }
6304           fi
6305
6306
6307           enablestring=
6308           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6309 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6310           no_cache=0
6311           # Check whether --enable-filesystem was given.
6312 if test "${enable_filesystem+set}" = set; then
6313   enableval=$enable_filesystem;
6314                           if test "$enableval" = yes; then
6315                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6316                           else
6317                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6318                           fi
6319
6320 else
6321
6322                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
6323                           if test "x$LINE" != x ; then
6324                             eval "DEFAULT_$LINE"
6325                           else
6326                             no_cache=1
6327                           fi
6328
6329                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
6330
6331 fi
6332
6333
6334           eval "$ac_cv_use_filesystem"
6335           if test "$no_cache" != 1; then
6336             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
6337           fi
6338
6339           if test "$wxUSE_FILESYSTEM" = yes; then
6340             { echo "$as_me:$LINENO: result: yes" >&5
6341 echo "${ECHO_T}yes" >&6; }
6342           else
6343             { echo "$as_me:$LINENO: result: no" >&5
6344 echo "${ECHO_T}no" >&6; }
6345           fi
6346
6347
6348           enablestring=
6349           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
6350 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
6351           no_cache=0
6352           # Check whether --enable-fontmap was given.
6353 if test "${enable_fontmap+set}" = set; then
6354   enableval=$enable_fontmap;
6355                           if test "$enableval" = yes; then
6356                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
6357                           else
6358                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
6359                           fi
6360
6361 else
6362
6363                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
6364                           if test "x$LINE" != x ; then
6365                             eval "DEFAULT_$LINE"
6366                           else
6367                             no_cache=1
6368                           fi
6369
6370                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
6371
6372 fi
6373
6374
6375           eval "$ac_cv_use_fontmap"
6376           if test "$no_cache" != 1; then
6377             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
6378           fi
6379
6380           if test "$wxUSE_FONTMAP" = yes; then
6381             { echo "$as_me:$LINENO: result: yes" >&5
6382 echo "${ECHO_T}yes" >&6; }
6383           else
6384             { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6386           fi
6387
6388
6389           enablestring=
6390           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
6391 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
6392           no_cache=0
6393           # Check whether --enable-fs_archive was given.
6394 if test "${enable_fs_archive+set}" = set; then
6395   enableval=$enable_fs_archive;
6396                           if test "$enableval" = yes; then
6397                             ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
6398                           else
6399                             ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
6400                           fi
6401
6402 else
6403
6404                           LINE=`grep "wxUSE_FS_ARCHIVE" ${wx_arg_cache_file}`
6405                           if test "x$LINE" != x ; then
6406                             eval "DEFAULT_$LINE"
6407                           else
6408                             no_cache=1
6409                           fi
6410
6411                           ac_cv_use_fs_archive='wxUSE_FS_ARCHIVE='$DEFAULT_wxUSE_FS_ARCHIVE
6412
6413 fi
6414
6415
6416           eval "$ac_cv_use_fs_archive"
6417           if test "$no_cache" != 1; then
6418             echo $ac_cv_use_fs_archive >> ${wx_arg_cache_file}.tmp
6419           fi
6420
6421           if test "$wxUSE_FS_ARCHIVE" = yes; then
6422             { echo "$as_me:$LINENO: result: yes" >&5
6423 echo "${ECHO_T}yes" >&6; }
6424           else
6425             { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6427           fi
6428
6429
6430           enablestring=
6431           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
6432 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
6433           no_cache=0
6434           # Check whether --enable-fs_inet was given.
6435 if test "${enable_fs_inet+set}" = set; then
6436   enableval=$enable_fs_inet;
6437                           if test "$enableval" = yes; then
6438                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
6439                           else
6440                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
6441                           fi
6442
6443 else
6444
6445                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
6446                           if test "x$LINE" != x ; then
6447                             eval "DEFAULT_$LINE"
6448                           else
6449                             no_cache=1
6450                           fi
6451
6452                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
6453
6454 fi
6455
6456
6457           eval "$ac_cv_use_fs_inet"
6458           if test "$no_cache" != 1; then
6459             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
6460           fi
6461
6462           if test "$wxUSE_FS_INET" = yes; then
6463             { echo "$as_me:$LINENO: result: yes" >&5
6464 echo "${ECHO_T}yes" >&6; }
6465           else
6466             { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6468           fi
6469
6470
6471           enablestring=
6472           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
6473 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
6474           no_cache=0
6475           # Check whether --enable-fs_zip was given.
6476 if test "${enable_fs_zip+set}" = set; then
6477   enableval=$enable_fs_zip;
6478                           if test "$enableval" = yes; then
6479                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
6480                           else
6481                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
6482                           fi
6483
6484 else
6485
6486                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
6487                           if test "x$LINE" != x ; then
6488                             eval "DEFAULT_$LINE"
6489                           else
6490                             no_cache=1
6491                           fi
6492
6493                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
6494
6495 fi
6496
6497
6498           eval "$ac_cv_use_fs_zip"
6499           if test "$no_cache" != 1; then
6500             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
6501           fi
6502
6503           if test "$wxUSE_FS_ZIP" = yes; then
6504             { echo "$as_me:$LINENO: result: yes" >&5
6505 echo "${ECHO_T}yes" >&6; }
6506           else
6507             { echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6; }
6509           fi
6510
6511
6512           enablestring=
6513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
6514 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
6515           no_cache=0
6516           # Check whether --enable-geometry was given.
6517 if test "${enable_geometry+set}" = set; then
6518   enableval=$enable_geometry;
6519                           if test "$enableval" = yes; then
6520                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
6521                           else
6522                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
6523                           fi
6524
6525 else
6526
6527                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
6528                           if test "x$LINE" != x ; then
6529                             eval "DEFAULT_$LINE"
6530                           else
6531                             no_cache=1
6532                           fi
6533
6534                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
6535
6536 fi
6537
6538
6539           eval "$ac_cv_use_geometry"
6540           if test "$no_cache" != 1; then
6541             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
6542           fi
6543
6544           if test "$wxUSE_GEOMETRY" = yes; then
6545             { echo "$as_me:$LINENO: result: yes" >&5
6546 echo "${ECHO_T}yes" >&6; }
6547           else
6548             { echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6; }
6550           fi
6551
6552
6553           enablestring=
6554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
6555 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
6556           no_cache=0
6557           # Check whether --enable-log was given.
6558 if test "${enable_log+set}" = set; then
6559   enableval=$enable_log;
6560                           if test "$enableval" = yes; then
6561                             ac_cv_use_log='wxUSE_LOG=yes'
6562                           else
6563                             ac_cv_use_log='wxUSE_LOG=no'
6564                           fi
6565
6566 else
6567
6568                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
6569                           if test "x$LINE" != x ; then
6570                             eval "DEFAULT_$LINE"
6571                           else
6572                             no_cache=1
6573                           fi
6574
6575                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
6576
6577 fi
6578
6579
6580           eval "$ac_cv_use_log"
6581           if test "$no_cache" != 1; then
6582             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
6583           fi
6584
6585           if test "$wxUSE_LOG" = yes; then
6586             { echo "$as_me:$LINENO: result: yes" >&5
6587 echo "${ECHO_T}yes" >&6; }
6588           else
6589             { echo "$as_me:$LINENO: result: no" >&5
6590 echo "${ECHO_T}no" >&6; }
6591           fi
6592
6593
6594           enablestring=
6595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
6596 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
6597           no_cache=0
6598           # Check whether --enable-longlong was given.
6599 if test "${enable_longlong+set}" = set; then
6600   enableval=$enable_longlong;
6601                           if test "$enableval" = yes; then
6602                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
6603                           else
6604                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
6605                           fi
6606
6607 else
6608
6609                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
6610                           if test "x$LINE" != x ; then
6611                             eval "DEFAULT_$LINE"
6612                           else
6613                             no_cache=1
6614                           fi
6615
6616                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
6617
6618 fi
6619
6620
6621           eval "$ac_cv_use_longlong"
6622           if test "$no_cache" != 1; then
6623             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
6624           fi
6625
6626           if test "$wxUSE_LONGLONG" = yes; then
6627             { echo "$as_me:$LINENO: result: yes" >&5
6628 echo "${ECHO_T}yes" >&6; }
6629           else
6630             { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6632           fi
6633
6634
6635           enablestring=
6636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
6637 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
6638           no_cache=0
6639           # Check whether --enable-mimetype was given.
6640 if test "${enable_mimetype+set}" = set; then
6641   enableval=$enable_mimetype;
6642                           if test "$enableval" = yes; then
6643                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
6644                           else
6645                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
6646                           fi
6647
6648 else
6649
6650                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
6651                           if test "x$LINE" != x ; then
6652                             eval "DEFAULT_$LINE"
6653                           else
6654                             no_cache=1
6655                           fi
6656
6657                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
6658
6659 fi
6660
6661
6662           eval "$ac_cv_use_mimetype"
6663           if test "$no_cache" != 1; then
6664             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
6665           fi
6666
6667           if test "$wxUSE_MIMETYPE" = yes; then
6668             { echo "$as_me:$LINENO: result: yes" >&5
6669 echo "${ECHO_T}yes" >&6; }
6670           else
6671             { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6673           fi
6674
6675
6676           enablestring=
6677           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
6678 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
6679           no_cache=0
6680           # Check whether --enable-mslu was given.
6681 if test "${enable_mslu+set}" = set; then
6682   enableval=$enable_mslu;
6683                           if test "$enableval" = yes; then
6684                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
6685                           else
6686                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
6687                           fi
6688
6689 else
6690
6691                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
6692                           if test "x$LINE" != x ; then
6693                             eval "DEFAULT_$LINE"
6694                           else
6695                             no_cache=1
6696                           fi
6697
6698                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
6699
6700 fi
6701
6702
6703           eval "$ac_cv_use_mslu"
6704           if test "$no_cache" != 1; then
6705             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
6706           fi
6707
6708           if test "$wxUSE_UNICODE_MSLU" = yes; then
6709             { echo "$as_me:$LINENO: result: yes" >&5
6710 echo "${ECHO_T}yes" >&6; }
6711           else
6712             { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6714           fi
6715
6716
6717           enablestring=
6718           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
6719 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
6720           no_cache=0
6721           # Check whether --enable-snglinst was given.
6722 if test "${enable_snglinst+set}" = set; then
6723   enableval=$enable_snglinst;
6724                           if test "$enableval" = yes; then
6725                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
6726                           else
6727                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
6728                           fi
6729
6730 else
6731
6732                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
6733                           if test "x$LINE" != x ; then
6734                             eval "DEFAULT_$LINE"
6735                           else
6736                             no_cache=1
6737                           fi
6738
6739                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
6740
6741 fi
6742
6743
6744           eval "$ac_cv_use_snglinst"
6745           if test "$no_cache" != 1; then
6746             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
6747           fi
6748
6749           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
6750             { echo "$as_me:$LINENO: result: yes" >&5
6751 echo "${ECHO_T}yes" >&6; }
6752           else
6753             { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6755           fi
6756
6757
6758           enablestring=
6759           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
6760 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
6761           no_cache=0
6762           # Check whether --enable-std_iostreams was given.
6763 if test "${enable_std_iostreams+set}" = set; then
6764   enableval=$enable_std_iostreams;
6765                           if test "$enableval" = yes; then
6766                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
6767                           else
6768                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
6769                           fi
6770
6771 else
6772
6773                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
6774                           if test "x$LINE" != x ; then
6775                             eval "DEFAULT_$LINE"
6776                           else
6777                             no_cache=1
6778                           fi
6779
6780                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
6781
6782 fi
6783
6784
6785           eval "$ac_cv_use_std_iostreams"
6786           if test "$no_cache" != 1; then
6787             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
6788           fi
6789
6790           if test "$wxUSE_STD_IOSTREAM" = yes; then
6791             { echo "$as_me:$LINENO: result: yes" >&5
6792 echo "${ECHO_T}yes" >&6; }
6793           else
6794             { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6796           fi
6797
6798
6799           enablestring=
6800           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
6801 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
6802           no_cache=0
6803           # Check whether --enable-std_string was given.
6804 if test "${enable_std_string+set}" = set; then
6805   enableval=$enable_std_string;
6806                           if test "$enableval" = yes; then
6807                             ac_cv_use_std_string='wxUSE_STD_STRING=yes'
6808                           else
6809                             ac_cv_use_std_string='wxUSE_STD_STRING=no'
6810                           fi
6811
6812 else
6813
6814                           LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
6815                           if test "x$LINE" != x ; then
6816                             eval "DEFAULT_$LINE"
6817                           else
6818                             no_cache=1
6819                           fi
6820
6821                           ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
6822
6823 fi
6824
6825
6826           eval "$ac_cv_use_std_string"
6827           if test "$no_cache" != 1; then
6828             echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
6829           fi
6830
6831           if test "$wxUSE_STD_STRING" = yes; then
6832             { echo "$as_me:$LINENO: result: yes" >&5
6833 echo "${ECHO_T}yes" >&6; }
6834           else
6835             { echo "$as_me:$LINENO: result: no" >&5
6836 echo "${ECHO_T}no" >&6; }
6837           fi
6838
6839
6840           enablestring=
6841           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6842 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
6843           no_cache=0
6844           # Check whether --enable-stdpaths was given.
6845 if test "${enable_stdpaths+set}" = set; then
6846   enableval=$enable_stdpaths;
6847                           if test "$enableval" = yes; then
6848                             ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
6849                           else
6850                             ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
6851                           fi
6852
6853 else
6854
6855                           LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
6856                           if test "x$LINE" != x ; then
6857                             eval "DEFAULT_$LINE"
6858                           else
6859                             no_cache=1
6860                           fi
6861
6862                           ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
6863
6864 fi
6865
6866
6867           eval "$ac_cv_use_stdpaths"
6868           if test "$no_cache" != 1; then
6869             echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
6870           fi
6871
6872           if test "$wxUSE_STDPATHS" = yes; then
6873             { echo "$as_me:$LINENO: result: yes" >&5
6874 echo "${ECHO_T}yes" >&6; }
6875           else
6876             { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6878           fi
6879
6880
6881           enablestring=
6882           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6883 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
6884           no_cache=0
6885           # Check whether --enable-stopwatch was given.
6886 if test "${enable_stopwatch+set}" = set; then
6887   enableval=$enable_stopwatch;
6888                           if test "$enableval" = yes; then
6889                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6890                           else
6891                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6892                           fi
6893
6894 else
6895
6896                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6897                           if test "x$LINE" != x ; then
6898                             eval "DEFAULT_$LINE"
6899                           else
6900                             no_cache=1
6901                           fi
6902
6903                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6904
6905 fi
6906
6907
6908           eval "$ac_cv_use_stopwatch"
6909           if test "$no_cache" != 1; then
6910             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6911           fi
6912
6913           if test "$wxUSE_STOPWATCH" = yes; then
6914             { echo "$as_me:$LINENO: result: yes" >&5
6915 echo "${ECHO_T}yes" >&6; }
6916           else
6917             { echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6; }
6919           fi
6920
6921
6922           enablestring=
6923           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6924 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
6925           no_cache=0
6926           # Check whether --enable-streams was given.
6927 if test "${enable_streams+set}" = set; then
6928   enableval=$enable_streams;
6929                           if test "$enableval" = yes; then
6930                             ac_cv_use_streams='wxUSE_STREAMS=yes'
6931                           else
6932                             ac_cv_use_streams='wxUSE_STREAMS=no'
6933                           fi
6934
6935 else
6936
6937                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6938                           if test "x$LINE" != x ; then
6939                             eval "DEFAULT_$LINE"
6940                           else
6941                             no_cache=1
6942                           fi
6943
6944                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6945
6946 fi
6947
6948
6949           eval "$ac_cv_use_streams"
6950           if test "$no_cache" != 1; then
6951             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6952           fi
6953
6954           if test "$wxUSE_STREAMS" = yes; then
6955             { echo "$as_me:$LINENO: result: yes" >&5
6956 echo "${ECHO_T}yes" >&6; }
6957           else
6958             { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6960           fi
6961
6962
6963           enablestring=
6964           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6965 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
6966           no_cache=0
6967           # Check whether --enable-system_options was given.
6968 if test "${enable_system_options+set}" = set; then
6969   enableval=$enable_system_options;
6970                           if test "$enableval" = yes; then
6971                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6972                           else
6973                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6974                           fi
6975
6976 else
6977
6978                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6979                           if test "x$LINE" != x ; then
6980                             eval "DEFAULT_$LINE"
6981                           else
6982                             no_cache=1
6983                           fi
6984
6985                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6986
6987 fi
6988
6989
6990           eval "$ac_cv_use_system_options"
6991           if test "$no_cache" != 1; then
6992             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6993           fi
6994
6995           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6996             { echo "$as_me:$LINENO: result: yes" >&5
6997 echo "${ECHO_T}yes" >&6; }
6998           else
6999             { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7001           fi
7002
7003
7004           enablestring=
7005           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7006 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7007           no_cache=0
7008           # Check whether --enable-tarstream was given.
7009 if test "${enable_tarstream+set}" = set; then
7010   enableval=$enable_tarstream;
7011                           if test "$enableval" = yes; then
7012                             ac_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7013                           else
7014                             ac_cv_use_tarstream='wxUSE_TARSTREAM=no'
7015                           fi
7016
7017 else
7018
7019                           LINE=`grep "wxUSE_TARSTREAM" ${wx_arg_cache_file}`
7020                           if test "x$LINE" != x ; then
7021                             eval "DEFAULT_$LINE"
7022                           else
7023                             no_cache=1
7024                           fi
7025
7026                           ac_cv_use_tarstream='wxUSE_TARSTREAM='$DEFAULT_wxUSE_TARSTREAM
7027
7028 fi
7029
7030
7031           eval "$ac_cv_use_tarstream"
7032           if test "$no_cache" != 1; then
7033             echo $ac_cv_use_tarstream >> ${wx_arg_cache_file}.tmp
7034           fi
7035
7036           if test "$wxUSE_TARSTREAM" = yes; then
7037             { echo "$as_me:$LINENO: result: yes" >&5
7038 echo "${ECHO_T}yes" >&6; }
7039           else
7040             { echo "$as_me:$LINENO: result: no" >&5
7041 echo "${ECHO_T}no" >&6; }
7042           fi
7043
7044
7045           enablestring=
7046           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7047 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7048           no_cache=0
7049           # Check whether --enable-textbuf was given.
7050 if test "${enable_textbuf+set}" = set; then
7051   enableval=$enable_textbuf;
7052                           if test "$enableval" = yes; then
7053                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7054                           else
7055                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7056                           fi
7057
7058 else
7059
7060                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
7061                           if test "x$LINE" != x ; then
7062                             eval "DEFAULT_$LINE"
7063                           else
7064                             no_cache=1
7065                           fi
7066
7067                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
7068
7069 fi
7070
7071
7072           eval "$ac_cv_use_textbuf"
7073           if test "$no_cache" != 1; then
7074             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
7075           fi
7076
7077           if test "$wxUSE_TEXTBUFFER" = yes; then
7078             { echo "$as_me:$LINENO: result: yes" >&5
7079 echo "${ECHO_T}yes" >&6; }
7080           else
7081             { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7083           fi
7084
7085
7086           enablestring=
7087           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7088 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7089           no_cache=0
7090           # Check whether --enable-textfile was given.
7091 if test "${enable_textfile+set}" = set; then
7092   enableval=$enable_textfile;
7093                           if test "$enableval" = yes; then
7094                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
7095                           else
7096                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
7097                           fi
7098
7099 else
7100
7101                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
7102                           if test "x$LINE" != x ; then
7103                             eval "DEFAULT_$LINE"
7104                           else
7105                             no_cache=1
7106                           fi
7107
7108                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
7109
7110 fi
7111
7112
7113           eval "$ac_cv_use_textfile"
7114           if test "$no_cache" != 1; then
7115             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
7116           fi
7117
7118           if test "$wxUSE_TEXTFILE" = yes; then
7119             { echo "$as_me:$LINENO: result: yes" >&5
7120 echo "${ECHO_T}yes" >&6; }
7121           else
7122             { echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6; }
7124           fi
7125
7126
7127           enablestring=
7128           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7129 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7130           no_cache=0
7131           # Check whether --enable-timer was given.
7132 if test "${enable_timer+set}" = set; then
7133   enableval=$enable_timer;
7134                           if test "$enableval" = yes; then
7135                             ac_cv_use_timer='wxUSE_TIMER=yes'
7136                           else
7137                             ac_cv_use_timer='wxUSE_TIMER=no'
7138                           fi
7139
7140 else
7141
7142                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
7143                           if test "x$LINE" != x ; then
7144                             eval "DEFAULT_$LINE"
7145                           else
7146                             no_cache=1
7147                           fi
7148
7149                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
7150
7151 fi
7152
7153
7154           eval "$ac_cv_use_timer"
7155           if test "$no_cache" != 1; then
7156             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
7157           fi
7158
7159           if test "$wxUSE_TIMER" = yes; then
7160             { echo "$as_me:$LINENO: result: yes" >&5
7161 echo "${ECHO_T}yes" >&6; }
7162           else
7163             { echo "$as_me:$LINENO: result: no" >&5
7164 echo "${ECHO_T}no" >&6; }
7165           fi
7166
7167
7168           enablestring=
7169           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
7170 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
7171           no_cache=0
7172           # Check whether --enable-unicode was given.
7173 if test "${enable_unicode+set}" = set; then
7174   enableval=$enable_unicode;
7175                           if test "$enableval" = yes; then
7176                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
7177                           else
7178                             ac_cv_use_unicode='wxUSE_UNICODE=no'
7179                           fi
7180
7181 else
7182
7183                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
7184                           if test "x$LINE" != x ; then
7185                             eval "DEFAULT_$LINE"
7186                           else
7187                             no_cache=1
7188                           fi
7189
7190                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
7191
7192 fi
7193
7194
7195           eval "$ac_cv_use_unicode"
7196           if test "$no_cache" != 1; then
7197             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
7198           fi
7199
7200           if test "$wxUSE_UNICODE" = yes; then
7201             { echo "$as_me:$LINENO: result: yes" >&5
7202 echo "${ECHO_T}yes" >&6; }
7203           else
7204             { echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6; }
7206           fi
7207
7208
7209           enablestring=
7210           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7211 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7212           no_cache=0
7213           # Check whether --enable-sound was given.
7214 if test "${enable_sound+set}" = set; then
7215   enableval=$enable_sound;
7216                           if test "$enableval" = yes; then
7217                             ac_cv_use_sound='wxUSE_SOUND=yes'
7218                           else
7219                             ac_cv_use_sound='wxUSE_SOUND=no'
7220                           fi
7221
7222 else
7223
7224                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
7225                           if test "x$LINE" != x ; then
7226                             eval "DEFAULT_$LINE"
7227                           else
7228                             no_cache=1
7229                           fi
7230
7231                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
7232
7233 fi
7234
7235
7236           eval "$ac_cv_use_sound"
7237           if test "$no_cache" != 1; then
7238             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
7239           fi
7240
7241           if test "$wxUSE_SOUND" = yes; then
7242             { echo "$as_me:$LINENO: result: yes" >&5
7243 echo "${ECHO_T}yes" >&6; }
7244           else
7245             { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7247           fi
7248
7249
7250           enablestring=
7251           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
7252 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
7253           no_cache=0
7254           # Check whether --enable-mediactrl was given.
7255 if test "${enable_mediactrl+set}" = set; then
7256   enableval=$enable_mediactrl;
7257                           if test "$enableval" = yes; then
7258                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
7259                           else
7260                             ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
7261                           fi
7262
7263 else
7264
7265                           LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
7266                           if test "x$LINE" != x ; then
7267                             eval "DEFAULT_$LINE"
7268                           else
7269                             no_cache=1
7270                           fi
7271
7272                           ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
7273
7274 fi
7275
7276
7277           eval "$ac_cv_use_mediactrl"
7278           if test "$no_cache" != 1; then
7279             echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
7280           fi
7281
7282           if test "$wxUSE_MEDIACTRL" = yes; then
7283             { echo "$as_me:$LINENO: result: yes" >&5
7284 echo "${ECHO_T}yes" >&6; }
7285           else
7286             { echo "$as_me:$LINENO: result: no" >&5
7287 echo "${ECHO_T}no" >&6; }
7288           fi
7289
7290
7291           enablestring=
7292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
7293 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
7294           no_cache=0
7295           # Check whether --enable-gstreamer8 was given.
7296 if test "${enable_gstreamer8+set}" = set; then
7297   enableval=$enable_gstreamer8;
7298                           if test "$enableval" = yes; then
7299                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
7300                           else
7301                             ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
7302                           fi
7303
7304 else
7305
7306                           LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
7307                           if test "x$LINE" != x ; then
7308                             eval "DEFAULT_$LINE"
7309                           else
7310                             no_cache=1
7311                           fi
7312
7313                           ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
7314
7315 fi
7316
7317
7318           eval "$ac_cv_use_gstreamer8"
7319           if test "$no_cache" != 1; then
7320             echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
7321           fi
7322
7323           if test "$wxUSE_GSTREAMER8" = yes; then
7324             { echo "$as_me:$LINENO: result: yes" >&5
7325 echo "${ECHO_T}yes" >&6; }
7326           else
7327             { echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6; }
7329           fi
7330
7331
7332           enablestring=
7333           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7334 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7335           no_cache=0
7336           # Check whether --enable-printfposparam was given.
7337 if test "${enable_printfposparam+set}" = set; then
7338   enableval=$enable_printfposparam;
7339                           if test "$enableval" = yes; then
7340                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7341                           else
7342                             ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7343                           fi
7344
7345 else
7346
7347                           LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
7348                           if test "x$LINE" != x ; then
7349                             eval "DEFAULT_$LINE"
7350                           else
7351                             no_cache=1
7352                           fi
7353
7354                           ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
7355
7356 fi
7357
7358
7359           eval "$ac_cv_use_printfposparam"
7360           if test "$no_cache" != 1; then
7361             echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
7362           fi
7363
7364           if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
7365             { echo "$as_me:$LINENO: result: yes" >&5
7366 echo "${ECHO_T}yes" >&6; }
7367           else
7368             { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7370           fi
7371
7372
7373           enablestring=
7374           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7375 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7376           no_cache=0
7377           # Check whether --enable-zipstream was given.
7378 if test "${enable_zipstream+set}" = set; then
7379   enableval=$enable_zipstream;
7380                           if test "$enableval" = yes; then
7381                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7382                           else
7383                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7384                           fi
7385
7386 else
7387
7388                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
7389                           if test "x$LINE" != x ; then
7390                             eval "DEFAULT_$LINE"
7391                           else
7392                             no_cache=1
7393                           fi
7394
7395                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
7396
7397 fi
7398
7399
7400           eval "$ac_cv_use_zipstream"
7401           if test "$no_cache" != 1; then
7402             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
7403           fi
7404
7405           if test "$wxUSE_ZIPSTREAM" = yes; then
7406             { echo "$as_me:$LINENO: result: yes" >&5
7407 echo "${ECHO_T}yes" >&6; }
7408           else
7409             { echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6; }
7411           fi
7412
7413
7414
7415           enablestring=
7416           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7417 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7418           no_cache=0
7419           # Check whether --enable-url was given.
7420 if test "${enable_url+set}" = set; then
7421   enableval=$enable_url;
7422                           if test "$enableval" = yes; then
7423                             ac_cv_use_url='wxUSE_URL=yes'
7424                           else
7425                             ac_cv_use_url='wxUSE_URL=no'
7426                           fi
7427
7428 else
7429
7430                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
7431                           if test "x$LINE" != x ; then
7432                             eval "DEFAULT_$LINE"
7433                           else
7434                             no_cache=1
7435                           fi
7436
7437                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
7438
7439 fi
7440
7441
7442           eval "$ac_cv_use_url"
7443           if test "$no_cache" != 1; then
7444             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
7445           fi
7446
7447           if test "$wxUSE_URL" = yes; then
7448             { echo "$as_me:$LINENO: result: yes" >&5
7449 echo "${ECHO_T}yes" >&6; }
7450           else
7451             { echo "$as_me:$LINENO: result: no" >&5
7452 echo "${ECHO_T}no" >&6; }
7453           fi
7454
7455
7456           enablestring=
7457           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7458 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7459           no_cache=0
7460           # Check whether --enable-variant was given.
7461 if test "${enable_variant+set}" = set; then
7462   enableval=$enable_variant;
7463                           if test "$enableval" = yes; then
7464                             ac_cv_use_variant='wxUSE_VARIANT=yes'
7465                           else
7466                             ac_cv_use_variant='wxUSE_VARIANT=no'
7467                           fi
7468
7469 else
7470
7471                           LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
7472                           if test "x$LINE" != x ; then
7473                             eval "DEFAULT_$LINE"
7474                           else
7475                             no_cache=1
7476                           fi
7477
7478                           ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
7479
7480 fi
7481
7482
7483           eval "$ac_cv_use_variant"
7484           if test "$no_cache" != 1; then
7485             echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
7486           fi
7487
7488           if test "$wxUSE_VARIANT" = yes; then
7489             { echo "$as_me:$LINENO: result: yes" >&5
7490 echo "${ECHO_T}yes" >&6; }
7491           else
7492             { echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6; }
7494           fi
7495
7496
7497           enablestring=
7498           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7499 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7500           no_cache=0
7501           # Check whether --enable-protocol was given.
7502 if test "${enable_protocol+set}" = set; then
7503   enableval=$enable_protocol;
7504                           if test "$enableval" = yes; then
7505                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
7506                           else
7507                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
7508                           fi
7509
7510 else
7511
7512                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
7513                           if test "x$LINE" != x ; then
7514                             eval "DEFAULT_$LINE"
7515                           else
7516                             no_cache=1
7517                           fi
7518
7519                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
7520
7521 fi
7522
7523
7524           eval "$ac_cv_use_protocol"
7525           if test "$no_cache" != 1; then
7526             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
7527           fi
7528
7529           if test "$wxUSE_PROTOCOL" = yes; then
7530             { echo "$as_me:$LINENO: result: yes" >&5
7531 echo "${ECHO_T}yes" >&6; }
7532           else
7533             { echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6; }
7535           fi
7536
7537
7538           enablestring=
7539           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
7540 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
7541           no_cache=0
7542           # Check whether --enable-protocol_http was given.
7543 if test "${enable_protocol_http+set}" = set; then
7544   enableval=$enable_protocol_http;
7545                           if test "$enableval" = yes; then
7546                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
7547                           else
7548                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
7549                           fi
7550
7551 else
7552
7553                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
7554                           if test "x$LINE" != x ; then
7555                             eval "DEFAULT_$LINE"
7556                           else
7557                             no_cache=1
7558                           fi
7559
7560                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
7561
7562 fi
7563
7564
7565           eval "$ac_cv_use_protocol_http"
7566           if test "$no_cache" != 1; then
7567             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
7568           fi
7569
7570           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
7571             { echo "$as_me:$LINENO: result: yes" >&5
7572 echo "${ECHO_T}yes" >&6; }
7573           else
7574             { echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6; }
7576           fi
7577
7578
7579           enablestring=
7580           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
7581 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
7582           no_cache=0
7583           # Check whether --enable-protocol_ftp was given.
7584 if test "${enable_protocol_ftp+set}" = set; then
7585   enableval=$enable_protocol_ftp;
7586                           if test "$enableval" = yes; then
7587                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
7588                           else
7589                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
7590                           fi
7591
7592 else
7593
7594                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
7595                           if test "x$LINE" != x ; then
7596                             eval "DEFAULT_$LINE"
7597                           else
7598                             no_cache=1
7599                           fi
7600
7601                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
7602
7603 fi
7604
7605
7606           eval "$ac_cv_use_protocol_ftp"
7607           if test "$no_cache" != 1; then
7608             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
7609           fi
7610
7611           if test "$wxUSE_PROTOCOL_FTP" = yes; then
7612             { echo "$as_me:$LINENO: result: yes" >&5
7613 echo "${ECHO_T}yes" >&6; }
7614           else
7615             { echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6; }
7617           fi
7618
7619
7620           enablestring=
7621           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
7622 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
7623           no_cache=0
7624           # Check whether --enable-protocol_file was given.
7625 if test "${enable_protocol_file+set}" = set; then
7626   enableval=$enable_protocol_file;
7627                           if test "$enableval" = yes; then
7628                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
7629                           else
7630                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
7631                           fi
7632
7633 else
7634
7635                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
7636                           if test "x$LINE" != x ; then
7637                             eval "DEFAULT_$LINE"
7638                           else
7639                             no_cache=1
7640                           fi
7641
7642                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
7643
7644 fi
7645
7646
7647           eval "$ac_cv_use_protocol_file"
7648           if test "$no_cache" != 1; then
7649             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
7650           fi
7651
7652           if test "$wxUSE_PROTOCOL_FILE" = yes; then
7653             { echo "$as_me:$LINENO: result: yes" >&5
7654 echo "${ECHO_T}yes" >&6; }
7655           else
7656             { echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6; }
7658           fi
7659
7660
7661
7662
7663
7664           enablestring=
7665           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
7666 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
7667           no_cache=0
7668           # Check whether --enable-threads was given.
7669 if test "${enable_threads+set}" = set; then
7670   enableval=$enable_threads;
7671                           if test "$enableval" = yes; then
7672                             ac_cv_use_threads='wxUSE_THREADS=yes'
7673                           else
7674                             ac_cv_use_threads='wxUSE_THREADS=no'
7675                           fi
7676
7677 else
7678
7679                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
7680                           if test "x$LINE" != x ; then
7681                             eval "DEFAULT_$LINE"
7682                           else
7683                             no_cache=1
7684                           fi
7685
7686                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
7687
7688 fi
7689
7690
7691           eval "$ac_cv_use_threads"
7692           if test "$no_cache" != 1; then
7693             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
7694           fi
7695
7696           if test "$wxUSE_THREADS" = yes; then
7697             { echo "$as_me:$LINENO: result: yes" >&5
7698 echo "${ECHO_T}yes" >&6; }
7699           else
7700             { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7702           fi
7703
7704
7705 if test "$wxUSE_GUI" = "yes"; then
7706
7707
7708
7709           enablestring=
7710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
7711 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
7712           no_cache=0
7713           # Check whether --enable-docview was given.
7714 if test "${enable_docview+set}" = set; then
7715   enableval=$enable_docview;
7716                           if test "$enableval" = yes; then
7717                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
7718                           else
7719                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
7720                           fi
7721
7722 else
7723
7724                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
7725                           if test "x$LINE" != x ; then
7726                             eval "DEFAULT_$LINE"
7727                           else
7728                             no_cache=1
7729                           fi
7730
7731                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
7732
7733 fi
7734
7735
7736           eval "$ac_cv_use_docview"
7737           if test "$no_cache" != 1; then
7738             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
7739           fi
7740
7741           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
7742             { echo "$as_me:$LINENO: result: yes" >&5
7743 echo "${ECHO_T}yes" >&6; }
7744           else
7745             { echo "$as_me:$LINENO: result: no" >&5
7746 echo "${ECHO_T}no" >&6; }
7747           fi
7748
7749
7750           enablestring=
7751           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
7752 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
7753           no_cache=0
7754           # Check whether --enable-help was given.
7755 if test "${enable_help+set}" = set; then
7756   enableval=$enable_help;
7757                           if test "$enableval" = yes; then
7758                             ac_cv_use_help='wxUSE_HELP=yes'
7759                           else
7760                             ac_cv_use_help='wxUSE_HELP=no'
7761                           fi
7762
7763 else
7764
7765                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
7766                           if test "x$LINE" != x ; then
7767                             eval "DEFAULT_$LINE"
7768                           else
7769                             no_cache=1
7770                           fi
7771
7772                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
7773
7774 fi
7775
7776
7777           eval "$ac_cv_use_help"
7778           if test "$no_cache" != 1; then
7779             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
7780           fi
7781
7782           if test "$wxUSE_HELP" = yes; then
7783             { echo "$as_me:$LINENO: result: yes" >&5
7784 echo "${ECHO_T}yes" >&6; }
7785           else
7786             { echo "$as_me:$LINENO: result: no" >&5
7787 echo "${ECHO_T}no" >&6; }
7788           fi
7789
7790
7791           enablestring=
7792           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
7793 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
7794           no_cache=0
7795           # Check whether --enable-mshtmlhelp was given.
7796 if test "${enable_mshtmlhelp+set}" = set; then
7797   enableval=$enable_mshtmlhelp;
7798                           if test "$enableval" = yes; then
7799                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
7800                           else
7801                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
7802                           fi
7803
7804 else
7805
7806                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
7807                           if test "x$LINE" != x ; then
7808                             eval "DEFAULT_$LINE"
7809                           else
7810                             no_cache=1
7811                           fi
7812
7813                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
7814
7815 fi
7816
7817
7818           eval "$ac_cv_use_mshtmlhelp"
7819           if test "$no_cache" != 1; then
7820             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
7821           fi
7822
7823           if test "$wxUSE_MS_HTML_HELP" = yes; then
7824             { echo "$as_me:$LINENO: result: yes" >&5
7825 echo "${ECHO_T}yes" >&6; }
7826           else
7827             { echo "$as_me:$LINENO: result: no" >&5
7828 echo "${ECHO_T}no" >&6; }
7829           fi
7830
7831
7832           enablestring=
7833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7834 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
7835           no_cache=0
7836           # Check whether --enable-html was given.
7837 if test "${enable_html+set}" = set; then
7838   enableval=$enable_html;
7839                           if test "$enableval" = yes; then
7840                             ac_cv_use_html='wxUSE_HTML=yes'
7841                           else
7842                             ac_cv_use_html='wxUSE_HTML=no'
7843                           fi
7844
7845 else
7846
7847                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
7848                           if test "x$LINE" != x ; then
7849                             eval "DEFAULT_$LINE"
7850                           else
7851                             no_cache=1
7852                           fi
7853
7854                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
7855
7856 fi
7857
7858
7859           eval "$ac_cv_use_html"
7860           if test "$no_cache" != 1; then
7861             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7862           fi
7863
7864           if test "$wxUSE_HTML" = yes; then
7865             { echo "$as_me:$LINENO: result: yes" >&5
7866 echo "${ECHO_T}yes" >&6; }
7867           else
7868             { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7870           fi
7871
7872
7873           enablestring=
7874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7875 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
7876           no_cache=0
7877           # Check whether --enable-htmlhelp was given.
7878 if test "${enable_htmlhelp+set}" = set; then
7879   enableval=$enable_htmlhelp;
7880                           if test "$enableval" = yes; then
7881                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7882                           else
7883                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7884                           fi
7885
7886 else
7887
7888                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7889                           if test "x$LINE" != x ; then
7890                             eval "DEFAULT_$LINE"
7891                           else
7892                             no_cache=1
7893                           fi
7894
7895                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7896
7897 fi
7898
7899
7900           eval "$ac_cv_use_htmlhelp"
7901           if test "$no_cache" != 1; then
7902             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7903           fi
7904
7905           if test "$wxUSE_WXHTML_HELP" = yes; then
7906             { echo "$as_me:$LINENO: result: yes" >&5
7907 echo "${ECHO_T}yes" >&6; }
7908           else
7909             { echo "$as_me:$LINENO: result: no" >&5
7910 echo "${ECHO_T}no" >&6; }
7911           fi
7912
7913
7914           enablestring=
7915           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7916 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
7917           no_cache=0
7918           # Check whether --enable-xrc was given.
7919 if test "${enable_xrc+set}" = set; then
7920   enableval=$enable_xrc;
7921                           if test "$enableval" = yes; then
7922                             ac_cv_use_xrc='wxUSE_XRC=yes'
7923                           else
7924                             ac_cv_use_xrc='wxUSE_XRC=no'
7925                           fi
7926
7927 else
7928
7929                           LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7930                           if test "x$LINE" != x ; then
7931                             eval "DEFAULT_$LINE"
7932                           else
7933                             no_cache=1
7934                           fi
7935
7936                           ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7937
7938 fi
7939
7940
7941           eval "$ac_cv_use_xrc"
7942           if test "$no_cache" != 1; then
7943             echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7944           fi
7945
7946           if test "$wxUSE_XRC" = yes; then
7947             { echo "$as_me:$LINENO: result: yes" >&5
7948 echo "${ECHO_T}yes" >&6; }
7949           else
7950             { echo "$as_me:$LINENO: result: no" >&5
7951 echo "${ECHO_T}no" >&6; }
7952           fi
7953
7954
7955           enablestring=
7956           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7957 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
7958           no_cache=0
7959           # Check whether --enable-aui was given.
7960 if test "${enable_aui+set}" = set; then
7961   enableval=$enable_aui;
7962                           if test "$enableval" = yes; then
7963                             ac_cv_use_aui='wxUSE_AUI=yes'
7964                           else
7965                             ac_cv_use_aui='wxUSE_AUI=no'
7966                           fi
7967
7968 else
7969
7970                           LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7971                           if test "x$LINE" != x ; then
7972                             eval "DEFAULT_$LINE"
7973                           else
7974                             no_cache=1
7975                           fi
7976
7977                           ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7978
7979 fi
7980
7981
7982           eval "$ac_cv_use_aui"
7983           if test "$no_cache" != 1; then
7984             echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7985           fi
7986
7987           if test "$wxUSE_AUI" = yes; then
7988             { echo "$as_me:$LINENO: result: yes" >&5
7989 echo "${ECHO_T}yes" >&6; }
7990           else
7991             { echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6; }
7993           fi
7994
7995
7996           enablestring=
7997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7998 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
7999           no_cache=0
8000           # Check whether --enable-constraints was given.
8001 if test "${enable_constraints+set}" = set; then
8002   enableval=$enable_constraints;
8003                           if test "$enableval" = yes; then
8004                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8005                           else
8006                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8007                           fi
8008
8009 else
8010
8011                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
8012                           if test "x$LINE" != x ; then
8013                             eval "DEFAULT_$LINE"
8014                           else
8015                             no_cache=1
8016                           fi
8017
8018                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
8019
8020 fi
8021
8022
8023           eval "$ac_cv_use_constraints"
8024           if test "$no_cache" != 1; then
8025             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
8026           fi
8027
8028           if test "$wxUSE_CONSTRAINTS" = yes; then
8029             { echo "$as_me:$LINENO: result: yes" >&5
8030 echo "${ECHO_T}yes" >&6; }
8031           else
8032             { echo "$as_me:$LINENO: result: no" >&5
8033 echo "${ECHO_T}no" >&6; }
8034           fi
8035
8036
8037           enablestring=
8038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
8039 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
8040           no_cache=0
8041           # Check whether --enable-printarch was given.
8042 if test "${enable_printarch+set}" = set; then
8043   enableval=$enable_printarch;
8044                           if test "$enableval" = yes; then
8045                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
8046                           else
8047                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
8048                           fi
8049
8050 else
8051
8052                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
8053                           if test "x$LINE" != x ; then
8054                             eval "DEFAULT_$LINE"
8055                           else
8056                             no_cache=1
8057                           fi
8058
8059                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
8060
8061 fi
8062
8063
8064           eval "$ac_cv_use_printarch"
8065           if test "$no_cache" != 1; then
8066             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
8067           fi
8068
8069           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
8070             { echo "$as_me:$LINENO: result: yes" >&5
8071 echo "${ECHO_T}yes" >&6; }
8072           else
8073             { echo "$as_me:$LINENO: result: no" >&5
8074 echo "${ECHO_T}no" >&6; }
8075           fi
8076
8077
8078           enablestring=
8079           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8080 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8081           no_cache=0
8082           # Check whether --enable-mdi was given.
8083 if test "${enable_mdi+set}" = set; then
8084   enableval=$enable_mdi;
8085                           if test "$enableval" = yes; then
8086                             ac_cv_use_mdi='wxUSE_MDI=yes'
8087                           else
8088                             ac_cv_use_mdi='wxUSE_MDI=no'
8089                           fi
8090
8091 else
8092
8093                           LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
8094                           if test "x$LINE" != x ; then
8095                             eval "DEFAULT_$LINE"
8096                           else
8097                             no_cache=1
8098                           fi
8099
8100                           ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
8101
8102 fi
8103
8104
8105           eval "$ac_cv_use_mdi"
8106           if test "$no_cache" != 1; then
8107             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
8108           fi
8109
8110           if test "$wxUSE_MDI" = yes; then
8111             { echo "$as_me:$LINENO: result: yes" >&5
8112 echo "${ECHO_T}yes" >&6; }
8113           else
8114             { echo "$as_me:$LINENO: result: no" >&5
8115 echo "${ECHO_T}no" >&6; }
8116           fi
8117
8118
8119           enablestring=
8120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8121 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8122           no_cache=0
8123           # Check whether --enable-mdidoc was given.
8124 if test "${enable_mdidoc+set}" = set; then
8125   enableval=$enable_mdidoc;
8126                           if test "$enableval" = yes; then
8127                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8128                           else
8129                             ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8130                           fi
8131
8132 else
8133
8134                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
8135                           if test "x$LINE" != x ; then
8136                             eval "DEFAULT_$LINE"
8137                           else
8138                             no_cache=1
8139                           fi
8140
8141                           ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
8142
8143 fi
8144
8145
8146           eval "$ac_cv_use_mdidoc"
8147           if test "$no_cache" != 1; then
8148             echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
8149           fi
8150
8151           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
8152             { echo "$as_me:$LINENO: result: yes" >&5
8153 echo "${ECHO_T}yes" >&6; }
8154           else
8155             { echo "$as_me:$LINENO: result: no" >&5
8156 echo "${ECHO_T}no" >&6; }
8157           fi
8158
8159
8160           enablestring=
8161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8162 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8163           no_cache=0
8164           # Check whether --enable-loggui was given.
8165 if test "${enable_loggui+set}" = set; then
8166   enableval=$enable_loggui;
8167                           if test "$enableval" = yes; then
8168                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
8169                           else
8170                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
8171                           fi
8172
8173 else
8174
8175                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
8176                           if test "x$LINE" != x ; then
8177                             eval "DEFAULT_$LINE"
8178                           else
8179                             no_cache=1
8180                           fi
8181
8182                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
8183
8184 fi
8185
8186
8187           eval "$ac_cv_use_loggui"
8188           if test "$no_cache" != 1; then
8189             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
8190           fi
8191
8192           if test "$wxUSE_LOGGUI" = yes; then
8193             { echo "$as_me:$LINENO: result: yes" >&5
8194 echo "${ECHO_T}yes" >&6; }
8195           else
8196             { echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6; }
8198           fi
8199
8200
8201           enablestring=
8202           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8203 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8204           no_cache=0
8205           # Check whether --enable-logwin was given.
8206 if test "${enable_logwin+set}" = set; then
8207   enableval=$enable_logwin;
8208                           if test "$enableval" = yes; then
8209                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8210                           else
8211                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
8212                           fi
8213
8214 else
8215
8216                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
8217                           if test "x$LINE" != x ; then
8218                             eval "DEFAULT_$LINE"
8219                           else
8220                             no_cache=1
8221                           fi
8222
8223                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
8224
8225 fi
8226
8227
8228           eval "$ac_cv_use_logwin"
8229           if test "$no_cache" != 1; then
8230             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
8231           fi
8232
8233           if test "$wxUSE_LOGWINDOW" = yes; then
8234             { echo "$as_me:$LINENO: result: yes" >&5
8235 echo "${ECHO_T}yes" >&6; }
8236           else
8237             { echo "$as_me:$LINENO: result: no" >&5
8238 echo "${ECHO_T}no" >&6; }
8239           fi
8240
8241
8242           enablestring=
8243           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8244 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8245           no_cache=0
8246           # Check whether --enable-logdialog was given.
8247 if test "${enable_logdialog+set}" = set; then
8248   enableval=$enable_logdialog;
8249                           if test "$enableval" = yes; then
8250                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8251                           else
8252                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8253                           fi
8254
8255 else
8256
8257                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
8258                           if test "x$LINE" != x ; then
8259                             eval "DEFAULT_$LINE"
8260                           else
8261                             no_cache=1
8262                           fi
8263
8264                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
8265
8266 fi
8267
8268
8269           eval "$ac_cv_use_logdialog"
8270           if test "$no_cache" != 1; then
8271             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
8272           fi
8273
8274           if test "$wxUSE_LOGDIALOG" = yes; then
8275             { echo "$as_me:$LINENO: result: yes" >&5
8276 echo "${ECHO_T}yes" >&6; }
8277           else
8278             { echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6; }
8280           fi
8281
8282
8283           enablestring=
8284           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
8285 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
8286           no_cache=0
8287           # Check whether --enable-webkit was given.
8288 if test "${enable_webkit+set}" = set; then
8289   enableval=$enable_webkit;
8290                           if test "$enableval" = yes; then
8291                             ac_cv_use_webkit='wxUSE_WEBKIT=yes'
8292                           else
8293                             ac_cv_use_webkit='wxUSE_WEBKIT=no'
8294                           fi
8295
8296 else
8297
8298                           LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
8299                           if test "x$LINE" != x ; then
8300                             eval "DEFAULT_$LINE"
8301                           else
8302                             no_cache=1
8303                           fi
8304
8305                           ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
8306
8307 fi
8308
8309
8310           eval "$ac_cv_use_webkit"
8311           if test "$no_cache" != 1; then
8312             echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
8313           fi
8314
8315           if test "$wxUSE_WEBKIT" = yes; then
8316             { echo "$as_me:$LINENO: result: yes" >&5
8317 echo "${ECHO_T}yes" >&6; }
8318           else
8319             { echo "$as_me:$LINENO: result: no" >&5
8320 echo "${ECHO_T}no" >&6; }
8321           fi
8322
8323
8324           enablestring=
8325           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
8326 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
8327           no_cache=0
8328           # Check whether --enable-richtext was given.
8329 if test "${enable_richtext+set}" = set; then
8330   enableval=$enable_richtext;
8331                           if test "$enableval" = yes; then
8332                             ac_cv_use_richtext='wxUSE_RICHTEXT=yes'
8333                           else
8334                             ac_cv_use_richtext='wxUSE_RICHTEXT=no'
8335                           fi
8336
8337 else
8338
8339                           LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
8340                           if test "x$LINE" != x ; then
8341                             eval "DEFAULT_$LINE"
8342                           else
8343                             no_cache=1
8344                           fi
8345
8346                           ac_cv_use_richtext='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
8347
8348 fi
8349
8350
8351           eval "$ac_cv_use_richtext"
8352           if test "$no_cache" != 1; then
8353             echo $ac_cv_use_richtext >> ${wx_arg_cache_file}.tmp
8354           fi
8355
8356           if test "$wxUSE_RICHTEXT" = yes; then
8357             { echo "$as_me:$LINENO: result: yes" >&5
8358 echo "${ECHO_T}yes" >&6; }
8359           else
8360             { echo "$as_me:$LINENO: result: no" >&5
8361 echo "${ECHO_T}no" >&6; }
8362           fi
8363
8364
8365           enablestring=
8366           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
8367 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
8368           no_cache=0
8369           # Check whether --enable-graphics_ctx was given.
8370 if test "${enable_graphics_ctx+set}" = set; then
8371   enableval=$enable_graphics_ctx;
8372                           if test "$enableval" = yes; then
8373                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
8374                           else
8375                             ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
8376                           fi
8377
8378 else
8379
8380                           LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
8381                           if test "x$LINE" != x ; then
8382                             eval "DEFAULT_$LINE"
8383                           else
8384                             no_cache=1
8385                           fi
8386
8387                           ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
8388
8389 fi
8390
8391
8392           eval "$ac_cv_use_graphics_ctx"
8393           if test "$no_cache" != 1; then
8394             echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
8395           fi
8396
8397           if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
8398             { echo "$as_me:$LINENO: result: yes" >&5
8399 echo "${ECHO_T}yes" >&6; }
8400           else
8401             { echo "$as_me:$LINENO: result: no" >&5
8402 echo "${ECHO_T}no" >&6; }
8403           fi
8404
8405
8406
8407           enablestring=
8408           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
8409 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
8410           no_cache=0
8411           # Check whether --enable-postscript was given.
8412 if test "${enable_postscript+set}" = set; then
8413   enableval=$enable_postscript;
8414                           if test "$enableval" = yes; then
8415                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
8416                           else
8417                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
8418                           fi
8419
8420 else
8421
8422                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
8423                           if test "x$LINE" != x ; then
8424                             eval "DEFAULT_$LINE"
8425                           else
8426                             no_cache=1
8427                           fi
8428
8429                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
8430
8431 fi
8432
8433
8434           eval "$ac_cv_use_postscript"
8435           if test "$no_cache" != 1; then
8436             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
8437           fi
8438
8439           if test "$wxUSE_POSTSCRIPT" = yes; then
8440             { echo "$as_me:$LINENO: result: yes" >&5
8441 echo "${ECHO_T}yes" >&6; }
8442           else
8443             { echo "$as_me:$LINENO: result: no" >&5
8444 echo "${ECHO_T}no" >&6; }
8445           fi
8446
8447
8448
8449
8450
8451           enablestring=
8452           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
8453 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6; }
8454           no_cache=0
8455           # Check whether --enable-prologio was given.
8456 if test "${enable_prologio+set}" = set; then
8457   enableval=$enable_prologio;
8458                           if test "$enableval" = yes; then
8459                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
8460                           else
8461                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
8462                           fi
8463
8464 else
8465
8466                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
8467                           if test "x$LINE" != x ; then
8468                             eval "DEFAULT_$LINE"
8469                           else
8470                             no_cache=1
8471                           fi
8472
8473                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
8474
8475 fi
8476
8477
8478           eval "$ac_cv_use_prologio"
8479           if test "$no_cache" != 1; then
8480             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
8481           fi
8482
8483           if test "$wxUSE_PROLOGIO" = yes; then
8484             { echo "$as_me:$LINENO: result: yes" >&5
8485 echo "${ECHO_T}yes" >&6; }
8486           else
8487             { echo "$as_me:$LINENO: result: no" >&5
8488 echo "${ECHO_T}no" >&6; }
8489           fi
8490
8491
8492           enablestring=
8493           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
8494 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6; }
8495           no_cache=0
8496           # Check whether --enable-resources was given.
8497 if test "${enable_resources+set}" = set; then
8498   enableval=$enable_resources;
8499                           if test "$enableval" = yes; then
8500                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
8501                           else
8502                             ac_cv_use_resources='wxUSE_RESOURCES=no'
8503                           fi
8504
8505 else
8506
8507                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
8508                           if test "x$LINE" != x ; then
8509                             eval "DEFAULT_$LINE"
8510                           else
8511                             no_cache=1
8512                           fi
8513
8514                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
8515
8516 fi
8517
8518
8519           eval "$ac_cv_use_resources"
8520           if test "$no_cache" != 1; then
8521             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
8522           fi
8523
8524           if test "$wxUSE_RESOURCES" = yes; then
8525             { echo "$as_me:$LINENO: result: yes" >&5
8526 echo "${ECHO_T}yes" >&6; }
8527           else
8528             { echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6; }
8530           fi
8531
8532
8533
8534
8535           enablestring=
8536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
8537 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
8538           no_cache=0
8539           # Check whether --enable-clipboard was given.
8540 if test "${enable_clipboard+set}" = set; then
8541   enableval=$enable_clipboard;
8542                           if test "$enableval" = yes; then
8543                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
8544                           else
8545                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
8546                           fi
8547
8548 else
8549
8550                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
8551                           if test "x$LINE" != x ; then
8552                             eval "DEFAULT_$LINE"
8553                           else
8554                             no_cache=1
8555                           fi
8556
8557                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
8558
8559 fi
8560
8561
8562           eval "$ac_cv_use_clipboard"
8563           if test "$no_cache" != 1; then
8564             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
8565           fi
8566
8567           if test "$wxUSE_CLIPBOARD" = yes; then
8568             { echo "$as_me:$LINENO: result: yes" >&5
8569 echo "${ECHO_T}yes" >&6; }
8570           else
8571             { echo "$as_me:$LINENO: result: no" >&5
8572 echo "${ECHO_T}no" >&6; }
8573           fi
8574
8575
8576           enablestring=
8577           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
8578 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
8579           no_cache=0
8580           # Check whether --enable-dnd was given.
8581 if test "${enable_dnd+set}" = set; then
8582   enableval=$enable_dnd;
8583                           if test "$enableval" = yes; then
8584                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
8585                           else
8586                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
8587                           fi
8588
8589 else
8590
8591                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
8592                           if test "x$LINE" != x ; then
8593                             eval "DEFAULT_$LINE"
8594                           else
8595                             no_cache=1
8596                           fi
8597
8598                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
8599
8600 fi
8601
8602
8603           eval "$ac_cv_use_dnd"
8604           if test "$no_cache" != 1; then
8605             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
8606           fi
8607
8608           if test "$wxUSE_DRAG_AND_DROP" = yes; then
8609             { echo "$as_me:$LINENO: result: yes" >&5
8610 echo "${ECHO_T}yes" >&6; }
8611           else
8612             { echo "$as_me:$LINENO: result: no" >&5
8613 echo "${ECHO_T}no" >&6; }
8614           fi
8615
8616
8617           enablestring=
8618           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
8619 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
8620           no_cache=0
8621           # Check whether --enable-metafile was given.
8622 if test "${enable_metafile+set}" = set; then
8623   enableval=$enable_metafile;
8624                           if test "$enableval" = yes; then
8625                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
8626                           else
8627                             ac_cv_use_metafile='wxUSE_METAFILE=no'
8628                           fi
8629
8630 else
8631
8632                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8633                           if test "x$LINE" != x ; then
8634                             eval "DEFAULT_$LINE"
8635                           else
8636                             no_cache=1
8637                           fi
8638
8639                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8640
8641 fi
8642
8643
8644           eval "$ac_cv_use_metafile"
8645           if test "$no_cache" != 1; then
8646             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8647           fi
8648
8649           if test "$wxUSE_METAFILE" = yes; then
8650             { echo "$as_me:$LINENO: result: yes" >&5
8651 echo "${ECHO_T}yes" >&6; }
8652           else
8653             { echo "$as_me:$LINENO: result: no" >&5
8654 echo "${ECHO_T}no" >&6; }
8655           fi
8656
8657
8658
8659
8660
8661           enablestring=
8662           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
8663 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
8664           no_cache=0
8665           # Check whether --enable-controls was given.
8666 if test "${enable_controls+set}" = set; then
8667   enableval=$enable_controls;
8668                           if test "$enableval" = yes; then
8669                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
8670                           else
8671                             ac_cv_use_controls='wxUSE_CONTROLS=no'
8672                           fi
8673
8674 else
8675
8676                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
8677                           if test "x$LINE" != x ; then
8678                             eval "DEFAULT_$LINE"
8679                           else
8680                             no_cache=1
8681                           fi
8682
8683                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
8684
8685 fi
8686
8687
8688           eval "$ac_cv_use_controls"
8689           if test "$no_cache" != 1; then
8690             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
8691           fi
8692
8693           if test "$wxUSE_CONTROLS" = yes; then
8694             { echo "$as_me:$LINENO: result: yes" >&5
8695 echo "${ECHO_T}yes" >&6; }
8696           else
8697             { echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6; }
8699           fi
8700
8701
8702 if test "$wxUSE_CONTROLS" = "yes"; then
8703   DEFAULT_wxUSE_ACCEL=yes
8704   DEFAULT_wxUSE_ANIMATIONCTRL=yes
8705   DEFAULT_wxUSE_BMPBUTTON=yes
8706   DEFAULT_wxUSE_BUTTON=yes
8707   DEFAULT_wxUSE_CALCTRL=yes
8708   DEFAULT_wxUSE_CARET=yes
8709   DEFAULT_wxUSE_COMBOBOX=yes
8710   DEFAULT_wxUSE_CHECKBOX=yes
8711   DEFAULT_wxUSE_CHECKLISTBOX=yes
8712   DEFAULT_wxUSE_CHOICE=yes
8713   DEFAULT_wxUSE_CHOICEBOOK=yes
8714   DEFAULT_wxUSE_COLLPANE=yes
8715   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
8716   DEFAULT_wxUSE_COMBOBOX=yes
8717   DEFAULT_wxUSE_DATEPICKCTRL=yes
8718   DEFAULT_wxUSE_DISPLAY=yes
8719   DEFAULT_wxUSE_DETECT_SM=yes
8720   DEFAULT_wxUSE_DIRPICKERCTRL=yes
8721   DEFAULT_wxUSE_FILEPICKERCTRL=yes
8722   DEFAULT_wxUSE_FONTPICKERCTRL=yes
8723   DEFAULT_wxUSE_GAUGE=yes
8724   DEFAULT_wxUSE_GRID=yes
8725   DEFAULT_wxUSE_HYPERLINKCTRL=yes
8726   DEFAULT_wxUSE_DATAVIEWCTRL=no
8727   DEFAULT_wxUSE_IMAGLIST=yes
8728   DEFAULT_wxUSE_LISTBOOK=yes
8729   DEFAULT_wxUSE_LISTBOX=yes
8730   DEFAULT_wxUSE_LISTCTRL=yes
8731   DEFAULT_wxUSE_NOTEBOOK=yes
8732   DEFAULT_wxUSE_RADIOBOX=yes
8733   DEFAULT_wxUSE_RADIOBTN=yes
8734   DEFAULT_wxUSE_SASH=yes
8735   DEFAULT_wxUSE_SCROLLBAR=yes
8736   DEFAULT_wxUSE_SEARCHCTRL=yes
8737   DEFAULT_wxUSE_SLIDER=yes
8738   DEFAULT_wxUSE_SPINBTN=yes
8739   DEFAULT_wxUSE_SPINCTRL=yes
8740   DEFAULT_wxUSE_SPLITTER=yes
8741   DEFAULT_wxUSE_STATBMP=yes
8742   DEFAULT_wxUSE_STATBOX=yes
8743   DEFAULT_wxUSE_STATLINE=yes
8744   DEFAULT_wxUSE_STATUSBAR=yes
8745   DEFAULT_wxUSE_TAB_DIALOG=yes
8746   DEFAULT_wxUSE_TOGGLEBTN=yes
8747   DEFAULT_wxUSE_TOOLBAR=yes
8748   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
8749   DEFAULT_wxUSE_TOOLTIPS=yes
8750   DEFAULT_wxUSE_TREEBOOK=yes
8751   DEFAULT_wxUSE_TOOLBOOK=yes
8752   DEFAULT_wxUSE_TREECTRL=yes
8753   DEFAULT_wxUSE_POPUPWIN=yes
8754   DEFAULT_wxUSE_TIPWINDOW=yes
8755 elif test "$wxUSE_CONTROLS" = "no"; then
8756   DEFAULT_wxUSE_ACCEL=no
8757   DEFAULT_wxUSE_ANIMATIONCTRL=no
8758   DEFAULT_wxUSE_BMPBUTTON=no
8759   DEFAULT_wxUSE_BUTTON=no
8760   DEFAULT_wxUSE_CALCTRL=no
8761   DEFAULT_wxUSE_CARET=no
8762   DEFAULT_wxUSE_COLLPANE=no
8763   DEFAULT_wxUSE_COMBOBOX=no
8764   DEFAULT_wxUSE_CHECKBOX=no
8765   DEFAULT_wxUSE_CHECKLISTBOX=no
8766   DEFAULT_wxUSE_CHOICE=no
8767   DEFAULT_wxUSE_CHOICEBOOK=no
8768   DEFAULT_wxUSE_COLOURPICKERCTRL=no
8769   DEFAULT_wxUSE_COMBOBOX=no
8770   DEFAULT_wxUSE_DATEPICKCTRL=no
8771   DEFAULT_wxUSE_DISPLAY=no
8772   DEFAULT_wxUSE_DETECT_SM=no
8773   DEFAULT_wxUSE_DIRPICKERCTRL=no
8774   DEFAULT_wxUSE_FILEPICKERCTRL=no
8775   DEFAULT_wxUSE_FONTPICKERCTRL=no
8776   DEFAULT_wxUSE_GAUGE=no
8777   DEFAULT_wxUSE_GRID=no
8778   DEFAULT_wxUSE_HYPERLINKCTRL=no
8779   DEFAULT_wxUSE_DATAVIEWCTRL=no
8780   DEFAULT_wxUSE_IMAGLIST=no
8781   DEFAULT_wxUSE_LISTBOOK=no
8782   DEFAULT_wxUSE_LISTBOX=no
8783   DEFAULT_wxUSE_LISTCTRL=no
8784   DEFAULT_wxUSE_NOTEBOOK=no
8785   DEFAULT_wxUSE_RADIOBOX=no
8786   DEFAULT_wxUSE_RADIOBTN=no
8787   DEFAULT_wxUSE_SASH=no
8788   DEFAULT_wxUSE_SCROLLBAR=no
8789   DEFAULT_wxUSE_SEARCHCTRL=no
8790   DEFAULT_wxUSE_SLIDER=no
8791   DEFAULT_wxUSE_SPINBTN=no
8792   DEFAULT_wxUSE_SPINCTRL=no
8793   DEFAULT_wxUSE_SPLITTER=no
8794   DEFAULT_wxUSE_STATBMP=no
8795   DEFAULT_wxUSE_STATBOX=no
8796   DEFAULT_wxUSE_STATLINE=no
8797   DEFAULT_wxUSE_STATUSBAR=no
8798   DEFAULT_wxUSE_TAB_DIALOG=no
8799   DEFAULT_wxUSE_TOGGLEBTN=no
8800   DEFAULT_wxUSE_TOOLBAR=no
8801   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
8802   DEFAULT_wxUSE_TOOLTIPS=no
8803   DEFAULT_wxUSE_TREEBOOK=no
8804   DEFAULT_wxUSE_TOOLBOOK=no
8805   DEFAULT_wxUSE_TREECTRL=no
8806   DEFAULT_wxUSE_POPUPWIN=no
8807   DEFAULT_wxUSE_TIPWINDOW=no
8808 fi
8809
8810
8811           enablestring=
8812           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
8813 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
8814           no_cache=0
8815           # Check whether --enable-accel was given.
8816 if test "${enable_accel+set}" = set; then
8817   enableval=$enable_accel;
8818                           if test "$enableval" = yes; then
8819                             ac_cv_use_accel='wxUSE_ACCEL=yes'
8820                           else
8821                             ac_cv_use_accel='wxUSE_ACCEL=no'
8822                           fi
8823
8824 else
8825
8826                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
8827                           if test "x$LINE" != x ; then
8828                             eval "DEFAULT_$LINE"
8829                           else
8830                             no_cache=1
8831                           fi
8832
8833                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
8834
8835 fi
8836
8837
8838           eval "$ac_cv_use_accel"
8839           if test "$no_cache" != 1; then
8840             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
8841           fi
8842
8843           if test "$wxUSE_ACCEL" = yes; then
8844             { echo "$as_me:$LINENO: result: yes" >&5
8845 echo "${ECHO_T}yes" >&6; }
8846           else
8847             { echo "$as_me:$LINENO: result: no" >&5
8848 echo "${ECHO_T}no" >&6; }
8849           fi
8850
8851
8852           enablestring=
8853           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
8854 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
8855           no_cache=0
8856           # Check whether --enable-animatectrl was given.
8857 if test "${enable_animatectrl+set}" = set; then
8858   enableval=$enable_animatectrl;
8859                           if test "$enableval" = yes; then
8860                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
8861                           else
8862                             ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
8863                           fi
8864
8865 else
8866
8867                           LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
8868                           if test "x$LINE" != x ; then
8869                             eval "DEFAULT_$LINE"
8870                           else
8871                             no_cache=1
8872                           fi
8873
8874                           ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
8875
8876 fi
8877
8878
8879           eval "$ac_cv_use_animatectrl"
8880           if test "$no_cache" != 1; then
8881             echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8882           fi
8883
8884           if test "$wxUSE_ANIMATIONCTRL" = yes; then
8885             { echo "$as_me:$LINENO: result: yes" >&5
8886 echo "${ECHO_T}yes" >&6; }
8887           else
8888             { echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6; }
8890           fi
8891
8892
8893           enablestring=
8894           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8895 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
8896           no_cache=0
8897           # Check whether --enable-button was given.
8898 if test "${enable_button+set}" = set; then
8899   enableval=$enable_button;
8900                           if test "$enableval" = yes; then
8901                             ac_cv_use_button='wxUSE_BUTTON=yes'
8902                           else
8903                             ac_cv_use_button='wxUSE_BUTTON=no'
8904                           fi
8905
8906 else
8907
8908                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8909                           if test "x$LINE" != x ; then
8910                             eval "DEFAULT_$LINE"
8911                           else
8912                             no_cache=1
8913                           fi
8914
8915                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8916
8917 fi
8918
8919
8920           eval "$ac_cv_use_button"
8921           if test "$no_cache" != 1; then
8922             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8923           fi
8924
8925           if test "$wxUSE_BUTTON" = yes; then
8926             { echo "$as_me:$LINENO: result: yes" >&5
8927 echo "${ECHO_T}yes" >&6; }
8928           else
8929             { echo "$as_me:$LINENO: result: no" >&5
8930 echo "${ECHO_T}no" >&6; }
8931           fi
8932
8933
8934           enablestring=
8935           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8936 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
8937           no_cache=0
8938           # Check whether --enable-bmpbutton was given.
8939 if test "${enable_bmpbutton+set}" = set; then
8940   enableval=$enable_bmpbutton;
8941                           if test "$enableval" = yes; then
8942                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8943                           else
8944                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8945                           fi
8946
8947 else
8948
8949                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8950                           if test "x$LINE" != x ; then
8951                             eval "DEFAULT_$LINE"
8952                           else
8953                             no_cache=1
8954                           fi
8955
8956                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8957
8958 fi
8959
8960
8961           eval "$ac_cv_use_bmpbutton"
8962           if test "$no_cache" != 1; then
8963             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8964           fi
8965
8966           if test "$wxUSE_BMPBUTTON" = yes; then
8967             { echo "$as_me:$LINENO: result: yes" >&5
8968 echo "${ECHO_T}yes" >&6; }
8969           else
8970             { echo "$as_me:$LINENO: result: no" >&5
8971 echo "${ECHO_T}no" >&6; }
8972           fi
8973
8974
8975           enablestring=
8976           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8977 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
8978           no_cache=0
8979           # Check whether --enable-bmpcombobox was given.
8980 if test "${enable_bmpcombobox+set}" = set; then
8981   enableval=$enable_bmpcombobox;
8982                           if test "$enableval" = yes; then
8983                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8984                           else
8985                             ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8986                           fi
8987
8988 else
8989
8990                           LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8991                           if test "x$LINE" != x ; then
8992                             eval "DEFAULT_$LINE"
8993                           else
8994                             no_cache=1
8995                           fi
8996
8997                           ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8998
8999 fi
9000
9001
9002           eval "$ac_cv_use_bmpcombobox"
9003           if test "$no_cache" != 1; then
9004             echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
9005           fi
9006
9007           if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
9008             { echo "$as_me:$LINENO: result: yes" >&5
9009 echo "${ECHO_T}yes" >&6; }
9010           else
9011             { echo "$as_me:$LINENO: result: no" >&5
9012 echo "${ECHO_T}no" >&6; }
9013           fi
9014
9015
9016           enablestring=
9017           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9018 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9019           no_cache=0
9020           # Check whether --enable-calendar was given.
9021 if test "${enable_calendar+set}" = set; then
9022   enableval=$enable_calendar;
9023                           if test "$enableval" = yes; then
9024                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
9025                           else
9026                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
9027                           fi
9028
9029 else
9030
9031                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
9032                           if test "x$LINE" != x ; then
9033                             eval "DEFAULT_$LINE"
9034                           else
9035                             no_cache=1
9036                           fi
9037
9038                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
9039
9040 fi
9041
9042
9043           eval "$ac_cv_use_calendar"
9044           if test "$no_cache" != 1; then
9045             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
9046           fi
9047
9048           if test "$wxUSE_CALCTRL" = yes; then
9049             { echo "$as_me:$LINENO: result: yes" >&5
9050 echo "${ECHO_T}yes" >&6; }
9051           else
9052             { echo "$as_me:$LINENO: result: no" >&5
9053 echo "${ECHO_T}no" >&6; }
9054           fi
9055
9056
9057           enablestring=
9058           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9059 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9060           no_cache=0
9061           # Check whether --enable-caret was given.
9062 if test "${enable_caret+set}" = set; then
9063   enableval=$enable_caret;
9064                           if test "$enableval" = yes; then
9065                             ac_cv_use_caret='wxUSE_CARET=yes'
9066                           else
9067                             ac_cv_use_caret='wxUSE_CARET=no'
9068                           fi
9069
9070 else
9071
9072                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
9073                           if test "x$LINE" != x ; then
9074                             eval "DEFAULT_$LINE"
9075                           else
9076                             no_cache=1
9077                           fi
9078
9079                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
9080
9081 fi
9082
9083
9084           eval "$ac_cv_use_caret"
9085           if test "$no_cache" != 1; then
9086             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
9087           fi
9088
9089           if test "$wxUSE_CARET" = yes; then
9090             { echo "$as_me:$LINENO: result: yes" >&5
9091 echo "${ECHO_T}yes" >&6; }
9092           else
9093             { echo "$as_me:$LINENO: result: no" >&5
9094 echo "${ECHO_T}no" >&6; }
9095           fi
9096
9097
9098           enablestring=
9099           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9100 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9101           no_cache=0
9102           # Check whether --enable-checkbox was given.
9103 if test "${enable_checkbox+set}" = set; then
9104   enableval=$enable_checkbox;
9105                           if test "$enableval" = yes; then
9106                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9107                           else
9108                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
9109                           fi
9110
9111 else
9112
9113                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
9114                           if test "x$LINE" != x ; then
9115                             eval "DEFAULT_$LINE"
9116                           else
9117                             no_cache=1
9118                           fi
9119
9120                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
9121
9122 fi
9123
9124
9125           eval "$ac_cv_use_checkbox"
9126           if test "$no_cache" != 1; then
9127             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
9128           fi
9129
9130           if test "$wxUSE_CHECKBOX" = yes; then
9131             { echo "$as_me:$LINENO: result: yes" >&5
9132 echo "${ECHO_T}yes" >&6; }
9133           else
9134             { echo "$as_me:$LINENO: result: no" >&5
9135 echo "${ECHO_T}no" >&6; }
9136           fi
9137
9138
9139           enablestring=
9140           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9141 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9142           no_cache=0
9143           # Check whether --enable-checklst was given.
9144 if test "${enable_checklst+set}" = set; then
9145   enableval=$enable_checklst;
9146                           if test "$enableval" = yes; then
9147                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
9148                           else
9149                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
9150                           fi
9151
9152 else
9153
9154                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
9155                           if test "x$LINE" != x ; then
9156                             eval "DEFAULT_$LINE"
9157                           else
9158                             no_cache=1
9159                           fi
9160
9161                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
9162
9163 fi
9164
9165
9166           eval "$ac_cv_use_checklst"
9167           if test "$no_cache" != 1; then
9168             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
9169           fi
9170
9171           if test "$wxUSE_CHECKLST" = yes; then
9172             { echo "$as_me:$LINENO: result: yes" >&5
9173 echo "${ECHO_T}yes" >&6; }
9174           else
9175             { echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6; }
9177           fi
9178
9179
9180           enablestring=
9181           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9182 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9183           no_cache=0
9184           # Check whether --enable-choice was given.
9185 if test "${enable_choice+set}" = set; then
9186   enableval=$enable_choice;
9187                           if test "$enableval" = yes; then
9188                             ac_cv_use_choice='wxUSE_CHOICE=yes'
9189                           else
9190                             ac_cv_use_choice='wxUSE_CHOICE=no'
9191                           fi
9192
9193 else
9194
9195                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
9196                           if test "x$LINE" != x ; then
9197                             eval "DEFAULT_$LINE"
9198                           else
9199                             no_cache=1
9200                           fi
9201
9202                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
9203
9204 fi
9205
9206
9207           eval "$ac_cv_use_choice"
9208           if test "$no_cache" != 1; then
9209             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
9210           fi
9211
9212           if test "$wxUSE_CHOICE" = yes; then
9213             { echo "$as_me:$LINENO: result: yes" >&5
9214 echo "${ECHO_T}yes" >&6; }
9215           else
9216             { echo "$as_me:$LINENO: result: no" >&5
9217 echo "${ECHO_T}no" >&6; }
9218           fi
9219
9220
9221           enablestring=
9222           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
9223 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
9224           no_cache=0
9225           # Check whether --enable-choicebook was given.
9226 if test "${enable_choicebook+set}" = set; then
9227   enableval=$enable_choicebook;
9228                           if test "$enableval" = yes; then
9229                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
9230                           else
9231                             ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
9232                           fi
9233
9234 else
9235
9236                           LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
9237                           if test "x$LINE" != x ; then
9238                             eval "DEFAULT_$LINE"
9239                           else
9240                             no_cache=1
9241                           fi
9242
9243                           ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
9244
9245 fi
9246
9247
9248           eval "$ac_cv_use_choicebook"
9249           if test "$no_cache" != 1; then
9250             echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
9251           fi
9252
9253           if test "$wxUSE_CHOICEBOOK" = yes; then
9254             { echo "$as_me:$LINENO: result: yes" >&5
9255 echo "${ECHO_T}yes" >&6; }
9256           else
9257             { echo "$as_me:$LINENO: result: no" >&5
9258 echo "${ECHO_T}no" >&6; }
9259           fi
9260
9261
9262           enablestring=
9263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
9264 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
9265           no_cache=0
9266           # Check whether --enable-collpane was given.
9267 if test "${enable_collpane+set}" = set; then
9268   enableval=$enable_collpane;
9269                           if test "$enableval" = yes; then
9270                             ac_cv_use_collpane='wxUSE_COLLPANE=yes'
9271                           else
9272                             ac_cv_use_collpane='wxUSE_COLLPANE=no'
9273                           fi
9274
9275 else
9276
9277                           LINE=`grep "wxUSE_COLLPANE" ${wx_arg_cache_file}`
9278                           if test "x$LINE" != x ; then
9279                             eval "DEFAULT_$LINE"
9280                           else
9281                             no_cache=1
9282                           fi
9283
9284                           ac_cv_use_collpane='wxUSE_COLLPANE='$DEFAULT_wxUSE_COLLPANE
9285
9286 fi
9287
9288
9289           eval "$ac_cv_use_collpane"
9290           if test "$no_cache" != 1; then
9291             echo $ac_cv_use_collpane >> ${wx_arg_cache_file}.tmp
9292           fi
9293
9294           if test "$wxUSE_COLLPANE" = yes; then
9295             { echo "$as_me:$LINENO: result: yes" >&5
9296 echo "${ECHO_T}yes" >&6; }
9297           else
9298             { echo "$as_me:$LINENO: result: no" >&5
9299 echo "${ECHO_T}no" >&6; }
9300           fi
9301
9302
9303           enablestring=
9304           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
9305 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
9306           no_cache=0
9307           # Check whether --enable-colourpicker was given.
9308 if test "${enable_colourpicker+set}" = set; then
9309   enableval=$enable_colourpicker;
9310                           if test "$enableval" = yes; then
9311                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
9312                           else
9313                             ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
9314                           fi
9315
9316 else
9317
9318                           LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
9319                           if test "x$LINE" != x ; then
9320                             eval "DEFAULT_$LINE"
9321                           else
9322                             no_cache=1
9323                           fi
9324
9325                           ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
9326
9327 fi
9328
9329
9330           eval "$ac_cv_use_colourpicker"
9331           if test "$no_cache" != 1; then
9332             echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
9333           fi
9334
9335           if test "$wxUSE_COLOURPICKERCTRL" = yes; then
9336             { echo "$as_me:$LINENO: result: yes" >&5
9337 echo "${ECHO_T}yes" >&6; }
9338           else
9339             { echo "$as_me:$LINENO: result: no" >&5
9340 echo "${ECHO_T}no" >&6; }
9341           fi
9342
9343
9344           enablestring=
9345           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
9346 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
9347           no_cache=0
9348           # Check whether --enable-combobox was given.
9349 if test "${enable_combobox+set}" = set; then
9350   enableval=$enable_combobox;
9351                           if test "$enableval" = yes; then
9352                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
9353                           else
9354                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
9355                           fi
9356
9357 else
9358
9359                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
9360                           if test "x$LINE" != x ; then
9361                             eval "DEFAULT_$LINE"
9362                           else
9363                             no_cache=1
9364                           fi
9365
9366                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
9367
9368 fi
9369
9370
9371           eval "$ac_cv_use_combobox"
9372           if test "$no_cache" != 1; then
9373             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
9374           fi
9375
9376           if test "$wxUSE_COMBOBOX" = yes; then
9377             { echo "$as_me:$LINENO: result: yes" >&5
9378 echo "${ECHO_T}yes" >&6; }
9379           else
9380             { echo "$as_me:$LINENO: result: no" >&5
9381 echo "${ECHO_T}no" >&6; }
9382           fi
9383
9384
9385           enablestring=
9386           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
9387 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
9388           no_cache=0
9389           # Check whether --enable-comboctrl was given.
9390 if test "${enable_comboctrl+set}" = set; then
9391   enableval=$enable_comboctrl;
9392                           if test "$enableval" = yes; then
9393                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
9394                           else
9395                             ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
9396                           fi
9397
9398 else
9399
9400                           LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
9401                           if test "x$LINE" != x ; then
9402                             eval "DEFAULT_$LINE"
9403                           else
9404                             no_cache=1
9405                           fi
9406
9407                           ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
9408
9409 fi
9410
9411
9412           eval "$ac_cv_use_comboctrl"
9413           if test "$no_cache" != 1; then
9414             echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
9415           fi
9416
9417           if test "$wxUSE_COMBOCTRL" = yes; then
9418             { echo "$as_me:$LINENO: result: yes" >&5
9419 echo "${ECHO_T}yes" >&6; }
9420           else
9421             { echo "$as_me:$LINENO: result: no" >&5
9422 echo "${ECHO_T}no" >&6; }
9423           fi
9424
9425
9426           enablestring=
9427           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
9428 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
9429           no_cache=0
9430           # Check whether --enable-datepick was given.
9431 if test "${enable_datepick+set}" = set; then
9432   enableval=$enable_datepick;
9433                           if test "$enableval" = yes; then
9434                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
9435                           else
9436                             ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
9437                           fi
9438
9439 else
9440
9441                           LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
9442                           if test "x$LINE" != x ; then
9443                             eval "DEFAULT_$LINE"
9444                           else
9445                             no_cache=1
9446                           fi
9447
9448                           ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
9449
9450 fi
9451
9452
9453           eval "$ac_cv_use_datepick"
9454           if test "$no_cache" != 1; then
9455             echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
9456           fi
9457
9458           if test "$wxUSE_DATEPICKCTRL" = yes; then
9459             { echo "$as_me:$LINENO: result: yes" >&5
9460 echo "${ECHO_T}yes" >&6; }
9461           else
9462             { echo "$as_me:$LINENO: result: no" >&5
9463 echo "${ECHO_T}no" >&6; }
9464           fi
9465
9466
9467           enablestring=
9468           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
9469 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
9470           no_cache=0
9471           # Check whether --enable-dirpicker was given.
9472 if test "${enable_dirpicker+set}" = set; then
9473   enableval=$enable_dirpicker;
9474                           if test "$enableval" = yes; then
9475                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
9476                           else
9477                             ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
9478                           fi
9479
9480 else
9481
9482                           LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
9483                           if test "x$LINE" != x ; then
9484                             eval "DEFAULT_$LINE"
9485                           else
9486                             no_cache=1
9487                           fi
9488
9489                           ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
9490
9491 fi
9492
9493
9494           eval "$ac_cv_use_dirpicker"
9495           if test "$no_cache" != 1; then
9496             echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
9497           fi
9498
9499           if test "$wxUSE_DIRPICKERCTRL" = yes; then
9500             { echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6; }
9502           else
9503             { echo "$as_me:$LINENO: result: no" >&5
9504 echo "${ECHO_T}no" >&6; }
9505           fi
9506
9507
9508           enablestring=
9509           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
9510 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
9511           no_cache=0
9512           # Check whether --enable-display was given.
9513 if test "${enable_display+set}" = set; then
9514   enableval=$enable_display;
9515                           if test "$enableval" = yes; then
9516                             ac_cv_use_display='wxUSE_DISPLAY=yes'
9517                           else
9518                             ac_cv_use_display='wxUSE_DISPLAY=no'
9519                           fi
9520
9521 else
9522
9523                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
9524                           if test "x$LINE" != x ; then
9525                             eval "DEFAULT_$LINE"
9526                           else
9527                             no_cache=1
9528                           fi
9529
9530                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
9531
9532 fi
9533
9534
9535           eval "$ac_cv_use_display"
9536           if test "$no_cache" != 1; then
9537             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
9538           fi
9539
9540           if test "$wxUSE_DISPLAY" = yes; then
9541             { echo "$as_me:$LINENO: result: yes" >&5
9542 echo "${ECHO_T}yes" >&6; }
9543           else
9544             { echo "$as_me:$LINENO: result: no" >&5
9545 echo "${ECHO_T}no" >&6; }
9546           fi
9547
9548
9549           enablestring=
9550           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
9551 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
9552           no_cache=0
9553           # Check whether --enable-detect_sm was given.
9554 if test "${enable_detect_sm+set}" = set; then
9555   enableval=$enable_detect_sm;
9556                           if test "$enableval" = yes; then
9557                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
9558                           else
9559                             ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
9560                           fi
9561
9562 else
9563
9564                           LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
9565                           if test "x$LINE" != x ; then
9566                             eval "DEFAULT_$LINE"
9567                           else
9568                             no_cache=1
9569                           fi
9570
9571                           ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
9572
9573 fi
9574
9575
9576           eval "$ac_cv_use_detect_sm"
9577           if test "$no_cache" != 1; then
9578             echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
9579           fi
9580
9581           if test "$wxUSE_DETECT_SM" = yes; then
9582             { echo "$as_me:$LINENO: result: yes" >&5
9583 echo "${ECHO_T}yes" >&6; }
9584           else
9585             { echo "$as_me:$LINENO: result: no" >&5
9586 echo "${ECHO_T}no" >&6; }
9587           fi
9588
9589
9590           enablestring=
9591           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
9592 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
9593           no_cache=0
9594           # Check whether --enable-filepicker was given.
9595 if test "${enable_filepicker+set}" = set; then
9596   enableval=$enable_filepicker;
9597                           if test "$enableval" = yes; then
9598                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
9599                           else
9600                             ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
9601                           fi
9602
9603 else
9604
9605                           LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
9606                           if test "x$LINE" != x ; then
9607                             eval "DEFAULT_$LINE"
9608                           else
9609                             no_cache=1
9610                           fi
9611
9612                           ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
9613
9614 fi
9615
9616
9617           eval "$ac_cv_use_filepicker"
9618           if test "$no_cache" != 1; then
9619             echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
9620           fi
9621
9622           if test "$wxUSE_FILEPICKERCTRL" = yes; then
9623             { echo "$as_me:$LINENO: result: yes" >&5
9624 echo "${ECHO_T}yes" >&6; }
9625           else
9626             { echo "$as_me:$LINENO: result: no" >&5
9627 echo "${ECHO_T}no" >&6; }
9628           fi
9629
9630
9631           enablestring=
9632           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
9633 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
9634           no_cache=0
9635           # Check whether --enable-fontpicker was given.
9636 if test "${enable_fontpicker+set}" = set; then
9637   enableval=$enable_fontpicker;
9638                           if test "$enableval" = yes; then
9639                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
9640                           else
9641                             ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
9642                           fi
9643
9644 else
9645
9646                           LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
9647                           if test "x$LINE" != x ; then
9648                             eval "DEFAULT_$LINE"
9649                           else
9650                             no_cache=1
9651                           fi
9652
9653                           ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
9654
9655 fi
9656
9657
9658           eval "$ac_cv_use_fontpicker"
9659           if test "$no_cache" != 1; then
9660             echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
9661           fi
9662
9663           if test "$wxUSE_FONTPICKERCTRL" = yes; then
9664             { echo "$as_me:$LINENO: result: yes" >&5
9665 echo "${ECHO_T}yes" >&6; }
9666           else
9667             { echo "$as_me:$LINENO: result: no" >&5
9668 echo "${ECHO_T}no" >&6; }
9669           fi
9670
9671
9672           enablestring=
9673           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
9674 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
9675           no_cache=0
9676           # Check whether --enable-gauge was given.
9677 if test "${enable_gauge+set}" = set; then
9678   enableval=$enable_gauge;
9679                           if test "$enableval" = yes; then
9680                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
9681                           else
9682                             ac_cv_use_gauge='wxUSE_GAUGE=no'
9683                           fi
9684
9685 else
9686
9687                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
9688                           if test "x$LINE" != x ; then
9689                             eval "DEFAULT_$LINE"
9690                           else
9691                             no_cache=1
9692                           fi
9693
9694                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
9695
9696 fi
9697
9698
9699           eval "$ac_cv_use_gauge"
9700           if test "$no_cache" != 1; then
9701             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
9702           fi
9703
9704           if test "$wxUSE_GAUGE" = yes; then
9705             { echo "$as_me:$LINENO: result: yes" >&5
9706 echo "${ECHO_T}yes" >&6; }
9707           else
9708             { echo "$as_me:$LINENO: result: no" >&5
9709 echo "${ECHO_T}no" >&6; }
9710           fi
9711
9712
9713           enablestring=
9714           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
9715 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
9716           no_cache=0
9717           # Check whether --enable-grid was given.
9718 if test "${enable_grid+set}" = set; then
9719   enableval=$enable_grid;
9720                           if test "$enableval" = yes; then
9721                             ac_cv_use_grid='wxUSE_GRID=yes'
9722                           else
9723                             ac_cv_use_grid='wxUSE_GRID=no'
9724                           fi
9725
9726 else
9727
9728                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
9729                           if test "x$LINE" != x ; then
9730                             eval "DEFAULT_$LINE"
9731                           else
9732                             no_cache=1
9733                           fi
9734
9735                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
9736
9737 fi
9738
9739
9740           eval "$ac_cv_use_grid"
9741           if test "$no_cache" != 1; then
9742             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
9743           fi
9744
9745           if test "$wxUSE_GRID" = yes; then
9746             { echo "$as_me:$LINENO: result: yes" >&5
9747 echo "${ECHO_T}yes" >&6; }
9748           else
9749             { echo "$as_me:$LINENO: result: no" >&5
9750 echo "${ECHO_T}no" >&6; }
9751           fi
9752
9753
9754           enablestring=
9755           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
9756 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
9757           no_cache=0
9758           # Check whether --enable-dataviewctrl was given.
9759 if test "${enable_dataviewctrl+set}" = set; then
9760   enableval=$enable_dataviewctrl;
9761                           if test "$enableval" = yes; then
9762                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
9763                           else
9764                             ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
9765                           fi
9766
9767 else
9768
9769                           LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
9770                           if test "x$LINE" != x ; then
9771                             eval "DEFAULT_$LINE"
9772                           else
9773                             no_cache=1
9774                           fi
9775
9776                           ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
9777
9778 fi
9779
9780
9781           eval "$ac_cv_use_dataviewctrl"
9782           if test "$no_cache" != 1; then
9783             echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
9784           fi
9785
9786           if test "$wxUSE_DATAVIEWCTRL" = yes; then
9787             { echo "$as_me:$LINENO: result: yes" >&5
9788 echo "${ECHO_T}yes" >&6; }
9789           else
9790             { echo "$as_me:$LINENO: result: no" >&5
9791 echo "${ECHO_T}no" >&6; }
9792           fi
9793
9794
9795           enablestring=
9796           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
9797 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
9798           no_cache=0
9799           # Check whether --enable-hyperlink was given.
9800 if test "${enable_hyperlink+set}" = set; then
9801   enableval=$enable_hyperlink;
9802                           if test "$enableval" = yes; then
9803                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
9804                           else
9805                             ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
9806                           fi
9807
9808 else
9809
9810                           LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
9811                           if test "x$LINE" != x ; then
9812                             eval "DEFAULT_$LINE"
9813                           else
9814                             no_cache=1
9815                           fi
9816
9817                           ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
9818
9819 fi
9820
9821
9822           eval "$ac_cv_use_hyperlink"
9823           if test "$no_cache" != 1; then
9824             echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
9825           fi
9826
9827           if test "$wxUSE_HYPERLINKCTRL" = yes; then
9828             { echo "$as_me:$LINENO: result: yes" >&5
9829 echo "${ECHO_T}yes" >&6; }
9830           else
9831             { echo "$as_me:$LINENO: result: no" >&5
9832 echo "${ECHO_T}no" >&6; }
9833           fi
9834
9835
9836           enablestring=
9837           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
9838 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
9839           no_cache=0
9840           # Check whether --enable-imaglist was given.
9841 if test "${enable_imaglist+set}" = set; then
9842   enableval=$enable_imaglist;
9843                           if test "$enableval" = yes; then
9844                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
9845                           else
9846                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
9847                           fi
9848
9849 else
9850
9851                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
9852                           if test "x$LINE" != x ; then
9853                             eval "DEFAULT_$LINE"
9854                           else
9855                             no_cache=1
9856                           fi
9857
9858                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
9859
9860 fi
9861
9862
9863           eval "$ac_cv_use_imaglist"
9864           if test "$no_cache" != 1; then
9865             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
9866           fi
9867
9868           if test "$wxUSE_IMAGLIST" = yes; then
9869             { echo "$as_me:$LINENO: result: yes" >&5
9870 echo "${ECHO_T}yes" >&6; }
9871           else
9872             { echo "$as_me:$LINENO: result: no" >&5
9873 echo "${ECHO_T}no" >&6; }
9874           fi
9875
9876
9877           enablestring=
9878           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
9879 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
9880           no_cache=0
9881           # Check whether --enable-listbook was given.
9882 if test "${enable_listbook+set}" = set; then
9883   enableval=$enable_listbook;
9884                           if test "$enableval" = yes; then
9885                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
9886                           else
9887                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
9888                           fi
9889
9890 else
9891
9892                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
9893                           if test "x$LINE" != x ; then
9894                             eval "DEFAULT_$LINE"
9895                           else
9896                             no_cache=1
9897                           fi
9898
9899                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
9900
9901 fi
9902
9903
9904           eval "$ac_cv_use_listbook"
9905           if test "$no_cache" != 1; then
9906             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
9907           fi
9908
9909           if test "$wxUSE_LISTBOOK" = yes; then
9910             { echo "$as_me:$LINENO: result: yes" >&5
9911 echo "${ECHO_T}yes" >&6; }
9912           else
9913             { echo "$as_me:$LINENO: result: no" >&5
9914 echo "${ECHO_T}no" >&6; }
9915           fi
9916
9917
9918           enablestring=
9919           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9920 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
9921           no_cache=0
9922           # Check whether --enable-listbox was given.
9923 if test "${enable_listbox+set}" = set; then
9924   enableval=$enable_listbox;
9925                           if test "$enableval" = yes; then
9926                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9927                           else
9928                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
9929                           fi
9930
9931 else
9932
9933                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9934                           if test "x$LINE" != x ; then
9935                             eval "DEFAULT_$LINE"
9936                           else
9937                             no_cache=1
9938                           fi
9939
9940                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9941
9942 fi
9943
9944
9945           eval "$ac_cv_use_listbox"
9946           if test "$no_cache" != 1; then
9947             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9948           fi
9949
9950           if test "$wxUSE_LISTBOX" = yes; then
9951             { echo "$as_me:$LINENO: result: yes" >&5
9952 echo "${ECHO_T}yes" >&6; }
9953           else
9954             { echo "$as_me:$LINENO: result: no" >&5
9955 echo "${ECHO_T}no" >&6; }
9956           fi
9957
9958
9959           enablestring=
9960           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9961 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
9962           no_cache=0
9963           # Check whether --enable-listctrl was given.
9964 if test "${enable_listctrl+set}" = set; then
9965   enableval=$enable_listctrl;
9966                           if test "$enableval" = yes; then
9967                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9968                           else
9969                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9970                           fi
9971
9972 else
9973
9974                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9975                           if test "x$LINE" != x ; then
9976                             eval "DEFAULT_$LINE"
9977                           else
9978                             no_cache=1
9979                           fi
9980
9981                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9982
9983 fi
9984
9985
9986           eval "$ac_cv_use_listctrl"
9987           if test "$no_cache" != 1; then
9988             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9989           fi
9990
9991           if test "$wxUSE_LISTCTRL" = yes; then
9992             { echo "$as_me:$LINENO: result: yes" >&5
9993 echo "${ECHO_T}yes" >&6; }
9994           else
9995             { echo "$as_me:$LINENO: result: no" >&5
9996 echo "${ECHO_T}no" >&6; }
9997           fi
9998
9999
10000           enablestring=
10001           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10002 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10003           no_cache=0
10004           # Check whether --enable-notebook was given.
10005 if test "${enable_notebook+set}" = set; then
10006   enableval=$enable_notebook;
10007                           if test "$enableval" = yes; then
10008                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10009                           else
10010                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
10011                           fi
10012
10013 else
10014
10015                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
10016                           if test "x$LINE" != x ; then
10017                             eval "DEFAULT_$LINE"
10018                           else
10019                             no_cache=1
10020                           fi
10021
10022                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10023
10024 fi
10025
10026
10027           eval "$ac_cv_use_notebook"
10028           if test "$no_cache" != 1; then
10029             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
10030           fi
10031
10032           if test "$wxUSE_NOTEBOOK" = yes; then
10033             { echo "$as_me:$LINENO: result: yes" >&5
10034 echo "${ECHO_T}yes" >&6; }
10035           else
10036             { echo "$as_me:$LINENO: result: no" >&5
10037 echo "${ECHO_T}no" >&6; }
10038           fi
10039
10040
10041           enablestring=
10042           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
10043 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
10044           no_cache=0
10045           # Check whether --enable-odcombobox was given.
10046 if test "${enable_odcombobox+set}" = set; then
10047   enableval=$enable_odcombobox;
10048                           if test "$enableval" = yes; then
10049                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
10050                           else
10051                             ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
10052                           fi
10053
10054 else
10055
10056                           LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
10057                           if test "x$LINE" != x ; then
10058                             eval "DEFAULT_$LINE"
10059                           else
10060                             no_cache=1
10061                           fi
10062
10063                           ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
10064
10065 fi
10066
10067
10068           eval "$ac_cv_use_odcombobox"
10069           if test "$no_cache" != 1; then
10070             echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
10071           fi
10072
10073           if test "$wxUSE_ODCOMBOBOX" = yes; then
10074             { echo "$as_me:$LINENO: result: yes" >&5
10075 echo "${ECHO_T}yes" >&6; }
10076           else
10077             { echo "$as_me:$LINENO: result: no" >&5
10078 echo "${ECHO_T}no" >&6; }
10079           fi
10080
10081
10082           enablestring=
10083           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
10084 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
10085           no_cache=0
10086           # Check whether --enable-radiobox was given.
10087 if test "${enable_radiobox+set}" = set; then
10088   enableval=$enable_radiobox;
10089                           if test "$enableval" = yes; then
10090                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
10091                           else
10092                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
10093                           fi
10094
10095 else
10096
10097                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
10098                           if test "x$LINE" != x ; then
10099                             eval "DEFAULT_$LINE"
10100                           else
10101                             no_cache=1
10102                           fi
10103
10104                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10105
10106 fi
10107
10108
10109           eval "$ac_cv_use_radiobox"
10110           if test "$no_cache" != 1; then
10111             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
10112           fi
10113
10114           if test "$wxUSE_RADIOBOX" = yes; then
10115             { echo "$as_me:$LINENO: result: yes" >&5
10116 echo "${ECHO_T}yes" >&6; }
10117           else
10118             { echo "$as_me:$LINENO: result: no" >&5
10119 echo "${ECHO_T}no" >&6; }
10120           fi
10121
10122
10123           enablestring=
10124           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
10125 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
10126           no_cache=0
10127           # Check whether --enable-radiobtn was given.
10128 if test "${enable_radiobtn+set}" = set; then
10129   enableval=$enable_radiobtn;
10130                           if test "$enableval" = yes; then
10131                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
10132                           else
10133                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
10134                           fi
10135
10136 else
10137
10138                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
10139                           if test "x$LINE" != x ; then
10140                             eval "DEFAULT_$LINE"
10141                           else
10142                             no_cache=1
10143                           fi
10144
10145                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10146
10147 fi
10148
10149
10150           eval "$ac_cv_use_radiobtn"
10151           if test "$no_cache" != 1; then
10152             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
10153           fi
10154
10155           if test "$wxUSE_RADIOBTN" = yes; then
10156             { echo "$as_me:$LINENO: result: yes" >&5
10157 echo "${ECHO_T}yes" >&6; }
10158           else
10159             { echo "$as_me:$LINENO: result: no" >&5
10160 echo "${ECHO_T}no" >&6; }
10161           fi
10162
10163
10164           enablestring=
10165           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
10166 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
10167           no_cache=0
10168           # Check whether --enable-sash was given.
10169 if test "${enable_sash+set}" = set; then
10170   enableval=$enable_sash;
10171                           if test "$enableval" = yes; then
10172                             ac_cv_use_sash='wxUSE_SASH=yes'
10173                           else
10174                             ac_cv_use_sash='wxUSE_SASH=no'
10175                           fi
10176
10177 else
10178
10179                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
10180                           if test "x$LINE" != x ; then
10181                             eval "DEFAULT_$LINE"
10182                           else
10183                             no_cache=1
10184                           fi
10185
10186                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10187
10188 fi
10189
10190
10191           eval "$ac_cv_use_sash"
10192           if test "$no_cache" != 1; then
10193             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
10194           fi
10195
10196           if test "$wxUSE_SASH" = yes; then
10197             { echo "$as_me:$LINENO: result: yes" >&5
10198 echo "${ECHO_T}yes" >&6; }
10199           else
10200             { echo "$as_me:$LINENO: result: no" >&5
10201 echo "${ECHO_T}no" >&6; }
10202           fi
10203
10204
10205           enablestring=
10206           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
10207 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
10208           no_cache=0
10209           # Check whether --enable-scrollbar was given.
10210 if test "${enable_scrollbar+set}" = set; then
10211   enableval=$enable_scrollbar;
10212                           if test "$enableval" = yes; then
10213                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
10214                           else
10215                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
10216                           fi
10217
10218 else
10219
10220                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
10221                           if test "x$LINE" != x ; then
10222                             eval "DEFAULT_$LINE"
10223                           else
10224                             no_cache=1
10225                           fi
10226
10227                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10228
10229 fi
10230
10231
10232           eval "$ac_cv_use_scrollbar"
10233           if test "$no_cache" != 1; then
10234             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
10235           fi
10236
10237           if test "$wxUSE_SCROLLBAR" = yes; then
10238             { echo "$as_me:$LINENO: result: yes" >&5
10239 echo "${ECHO_T}yes" >&6; }
10240           else
10241             { echo "$as_me:$LINENO: result: no" >&5
10242 echo "${ECHO_T}no" >&6; }
10243           fi
10244
10245
10246           enablestring=
10247           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
10248 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
10249           no_cache=0
10250           # Check whether --enable-searchctrl was given.
10251 if test "${enable_searchctrl+set}" = set; then
10252   enableval=$enable_searchctrl;
10253                           if test "$enableval" = yes; then
10254                             ac_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
10255                           else
10256                             ac_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
10257                           fi
10258
10259 else
10260
10261                           LINE=`grep "wxUSE_SEARCHCTRL" ${wx_arg_cache_file}`
10262                           if test "x$LINE" != x ; then
10263                             eval "DEFAULT_$LINE"
10264                           else
10265                             no_cache=1
10266                           fi
10267
10268                           ac_cv_use_searchctrl='wxUSE_SEARCHCTRL='$DEFAULT_wxUSE_SEARCHCTRL
10269
10270 fi
10271
10272
10273           eval "$ac_cv_use_searchctrl"
10274           if test "$no_cache" != 1; then
10275             echo $ac_cv_use_searchctrl >> ${wx_arg_cache_file}.tmp
10276           fi
10277
10278           if test "$wxUSE_SEARCHCTRL" = yes; then
10279             { echo "$as_me:$LINENO: result: yes" >&5
10280 echo "${ECHO_T}yes" >&6; }
10281           else
10282             { echo "$as_me:$LINENO: result: no" >&5
10283 echo "${ECHO_T}no" >&6; }
10284           fi
10285
10286
10287           enablestring=
10288           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
10289 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
10290           no_cache=0
10291           # Check whether --enable-slider was given.
10292 if test "${enable_slider+set}" = set; then
10293   enableval=$enable_slider;
10294                           if test "$enableval" = yes; then
10295                             ac_cv_use_slider='wxUSE_SLIDER=yes'
10296                           else
10297                             ac_cv_use_slider='wxUSE_SLIDER=no'
10298                           fi
10299
10300 else
10301
10302                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
10303                           if test "x$LINE" != x ; then
10304                             eval "DEFAULT_$LINE"
10305                           else
10306                             no_cache=1
10307                           fi
10308
10309                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10310
10311 fi
10312
10313
10314           eval "$ac_cv_use_slider"
10315           if test "$no_cache" != 1; then
10316             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
10317           fi
10318
10319           if test "$wxUSE_SLIDER" = yes; then
10320             { echo "$as_me:$LINENO: result: yes" >&5
10321 echo "${ECHO_T}yes" >&6; }
10322           else
10323             { echo "$as_me:$LINENO: result: no" >&5
10324 echo "${ECHO_T}no" >&6; }
10325           fi
10326
10327
10328           enablestring=
10329           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
10330 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
10331           no_cache=0
10332           # Check whether --enable-spinbtn was given.
10333 if test "${enable_spinbtn+set}" = set; then
10334   enableval=$enable_spinbtn;
10335                           if test "$enableval" = yes; then
10336                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
10337                           else
10338                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
10339                           fi
10340
10341 else
10342
10343                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
10344                           if test "x$LINE" != x ; then
10345                             eval "DEFAULT_$LINE"
10346                           else
10347                             no_cache=1
10348                           fi
10349
10350                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10351
10352 fi
10353
10354
10355           eval "$ac_cv_use_spinbtn"
10356           if test "$no_cache" != 1; then
10357             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
10358           fi
10359
10360           if test "$wxUSE_SPINBTN" = yes; then
10361             { echo "$as_me:$LINENO: result: yes" >&5
10362 echo "${ECHO_T}yes" >&6; }
10363           else
10364             { echo "$as_me:$LINENO: result: no" >&5
10365 echo "${ECHO_T}no" >&6; }
10366           fi
10367
10368
10369           enablestring=
10370           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
10371 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
10372           no_cache=0
10373           # Check whether --enable-spinctrl was given.
10374 if test "${enable_spinctrl+set}" = set; then
10375   enableval=$enable_spinctrl;
10376                           if test "$enableval" = yes; then
10377                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
10378                           else
10379                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
10380                           fi
10381
10382 else
10383
10384                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
10385                           if test "x$LINE" != x ; then
10386                             eval "DEFAULT_$LINE"
10387                           else
10388                             no_cache=1
10389                           fi
10390
10391                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
10392
10393 fi
10394
10395
10396           eval "$ac_cv_use_spinctrl"
10397           if test "$no_cache" != 1; then
10398             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
10399           fi
10400
10401           if test "$wxUSE_SPINCTRL" = yes; then
10402             { echo "$as_me:$LINENO: result: yes" >&5
10403 echo "${ECHO_T}yes" >&6; }
10404           else
10405             { echo "$as_me:$LINENO: result: no" >&5
10406 echo "${ECHO_T}no" >&6; }
10407           fi
10408
10409
10410           enablestring=
10411           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
10412 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
10413           no_cache=0
10414           # Check whether --enable-splitter was given.
10415 if test "${enable_splitter+set}" = set; then
10416   enableval=$enable_splitter;
10417                           if test "$enableval" = yes; then
10418                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
10419                           else
10420                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
10421                           fi
10422
10423 else
10424
10425                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
10426                           if test "x$LINE" != x ; then
10427                             eval "DEFAULT_$LINE"
10428                           else
10429                             no_cache=1
10430                           fi
10431
10432                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10433
10434 fi
10435
10436
10437           eval "$ac_cv_use_splitter"
10438           if test "$no_cache" != 1; then
10439             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
10440           fi
10441
10442           if test "$wxUSE_SPLITTER" = yes; then
10443             { echo "$as_me:$LINENO: result: yes" >&5
10444 echo "${ECHO_T}yes" >&6; }
10445           else
10446             { echo "$as_me:$LINENO: result: no" >&5
10447 echo "${ECHO_T}no" >&6; }
10448           fi
10449
10450
10451           enablestring=
10452           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
10453 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
10454           no_cache=0
10455           # Check whether --enable-statbmp was given.
10456 if test "${enable_statbmp+set}" = set; then
10457   enableval=$enable_statbmp;
10458                           if test "$enableval" = yes; then
10459                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
10460                           else
10461                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
10462                           fi
10463
10464 else
10465
10466                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
10467                           if test "x$LINE" != x ; then
10468                             eval "DEFAULT_$LINE"
10469                           else
10470                             no_cache=1
10471                           fi
10472
10473                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10474
10475 fi
10476
10477
10478           eval "$ac_cv_use_statbmp"
10479           if test "$no_cache" != 1; then
10480             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
10481           fi
10482
10483           if test "$wxUSE_STATBMP" = yes; then
10484             { echo "$as_me:$LINENO: result: yes" >&5
10485 echo "${ECHO_T}yes" >&6; }
10486           else
10487             { echo "$as_me:$LINENO: result: no" >&5
10488 echo "${ECHO_T}no" >&6; }
10489           fi
10490
10491
10492           enablestring=
10493           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
10494 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
10495           no_cache=0
10496           # Check whether --enable-statbox was given.
10497 if test "${enable_statbox+set}" = set; then
10498   enableval=$enable_statbox;
10499                           if test "$enableval" = yes; then
10500                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
10501                           else
10502                             ac_cv_use_statbox='wxUSE_STATBOX=no'
10503                           fi
10504
10505 else
10506
10507                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
10508                           if test "x$LINE" != x ; then
10509                             eval "DEFAULT_$LINE"
10510                           else
10511                             no_cache=1
10512                           fi
10513
10514                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10515
10516 fi
10517
10518
10519           eval "$ac_cv_use_statbox"
10520           if test "$no_cache" != 1; then
10521             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
10522           fi
10523
10524           if test "$wxUSE_STATBOX" = yes; then
10525             { echo "$as_me:$LINENO: result: yes" >&5
10526 echo "${ECHO_T}yes" >&6; }
10527           else
10528             { echo "$as_me:$LINENO: result: no" >&5
10529 echo "${ECHO_T}no" >&6; }
10530           fi
10531
10532
10533           enablestring=
10534           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
10535 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
10536           no_cache=0
10537           # Check whether --enable-statline was given.
10538 if test "${enable_statline+set}" = set; then
10539   enableval=$enable_statline;
10540                           if test "$enableval" = yes; then
10541                             ac_cv_use_statline='wxUSE_STATLINE=yes'
10542                           else
10543                             ac_cv_use_statline='wxUSE_STATLINE=no'
10544                           fi
10545
10546 else
10547
10548                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
10549                           if test "x$LINE" != x ; then
10550                             eval "DEFAULT_$LINE"
10551                           else
10552                             no_cache=1
10553                           fi
10554
10555                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10556
10557 fi
10558
10559
10560           eval "$ac_cv_use_statline"
10561           if test "$no_cache" != 1; then
10562             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
10563           fi
10564
10565           if test "$wxUSE_STATLINE" = yes; then
10566             { echo "$as_me:$LINENO: result: yes" >&5
10567 echo "${ECHO_T}yes" >&6; }
10568           else
10569             { echo "$as_me:$LINENO: result: no" >&5
10570 echo "${ECHO_T}no" >&6; }
10571           fi
10572
10573
10574           enablestring=
10575           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
10576 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
10577           no_cache=0
10578           # Check whether --enable-stattext was given.
10579 if test "${enable_stattext+set}" = set; then
10580   enableval=$enable_stattext;
10581                           if test "$enableval" = yes; then
10582                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
10583                           else
10584                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
10585                           fi
10586
10587 else
10588
10589                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
10590                           if test "x$LINE" != x ; then
10591                             eval "DEFAULT_$LINE"
10592                           else
10593                             no_cache=1
10594                           fi
10595
10596                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
10597
10598 fi
10599
10600
10601           eval "$ac_cv_use_stattext"
10602           if test "$no_cache" != 1; then
10603             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
10604           fi
10605
10606           if test "$wxUSE_STATTEXT" = yes; then
10607             { echo "$as_me:$LINENO: result: yes" >&5
10608 echo "${ECHO_T}yes" >&6; }
10609           else
10610             { echo "$as_me:$LINENO: result: no" >&5
10611 echo "${ECHO_T}no" >&6; }
10612           fi
10613
10614
10615           enablestring=
10616           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
10617 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
10618           no_cache=0
10619           # Check whether --enable-statusbar was given.
10620 if test "${enable_statusbar+set}" = set; then
10621   enableval=$enable_statusbar;
10622                           if test "$enableval" = yes; then
10623                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
10624                           else
10625                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
10626                           fi
10627
10628 else
10629
10630                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
10631                           if test "x$LINE" != x ; then
10632                             eval "DEFAULT_$LINE"
10633                           else
10634                             no_cache=1
10635                           fi
10636
10637                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10638
10639 fi
10640
10641
10642           eval "$ac_cv_use_statusbar"
10643           if test "$no_cache" != 1; then
10644             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
10645           fi
10646
10647           if test "$wxUSE_STATUSBAR" = yes; then
10648             { echo "$as_me:$LINENO: result: yes" >&5
10649 echo "${ECHO_T}yes" >&6; }
10650           else
10651             { echo "$as_me:$LINENO: result: no" >&5
10652 echo "${ECHO_T}no" >&6; }
10653           fi
10654
10655
10656           enablestring=
10657           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
10658 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
10659           no_cache=0
10660           # Check whether --enable-tabdialog was given.
10661 if test "${enable_tabdialog+set}" = set; then
10662   enableval=$enable_tabdialog;
10663                           if test "$enableval" = yes; then
10664                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
10665                           else
10666                             ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
10667                           fi
10668
10669 else
10670
10671                           LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
10672                           if test "x$LINE" != x ; then
10673                             eval "DEFAULT_$LINE"
10674                           else
10675                             no_cache=1
10676                           fi
10677
10678                           ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
10679
10680 fi
10681
10682
10683           eval "$ac_cv_use_tabdialog"
10684           if test "$no_cache" != 1; then
10685             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
10686           fi
10687
10688           if test "$wxUSE_TAB_DIALOG" = yes; then
10689             { echo "$as_me:$LINENO: result: yes" >&5
10690 echo "${ECHO_T}yes" >&6; }
10691           else
10692             { echo "$as_me:$LINENO: result: no" >&5
10693 echo "${ECHO_T}no" >&6; }
10694           fi
10695
10696
10697           enablestring=
10698           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
10699 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
10700           no_cache=0
10701           # Check whether --enable-textctrl was given.
10702 if test "${enable_textctrl+set}" = set; then
10703   enableval=$enable_textctrl;
10704                           if test "$enableval" = yes; then
10705                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
10706                           else
10707                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
10708                           fi
10709
10710 else
10711
10712                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
10713                           if test "x$LINE" != x ; then
10714                             eval "DEFAULT_$LINE"
10715                           else
10716                             no_cache=1
10717                           fi
10718
10719                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
10720
10721 fi
10722
10723
10724           eval "$ac_cv_use_textctrl"
10725           if test "$no_cache" != 1; then
10726             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
10727           fi
10728
10729           if test "$wxUSE_TEXTCTRL" = yes; then
10730             { echo "$as_me:$LINENO: result: yes" >&5
10731 echo "${ECHO_T}yes" >&6; }
10732           else
10733             { echo "$as_me:$LINENO: result: no" >&5
10734 echo "${ECHO_T}no" >&6; }
10735           fi
10736
10737
10738           enablestring=
10739           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
10740 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
10741           no_cache=0
10742           # Check whether --enable-togglebtn was given.
10743 if test "${enable_togglebtn+set}" = set; then
10744   enableval=$enable_togglebtn;
10745                           if test "$enableval" = yes; then
10746                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
10747                           else
10748                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
10749                           fi
10750
10751 else
10752
10753                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
10754                           if test "x$LINE" != x ; then
10755                             eval "DEFAULT_$LINE"
10756                           else
10757                             no_cache=1
10758                           fi
10759
10760                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
10761
10762 fi
10763
10764
10765           eval "$ac_cv_use_togglebtn"
10766           if test "$no_cache" != 1; then
10767             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
10768           fi
10769
10770           if test "$wxUSE_TOGGLEBTN" = yes; then
10771             { echo "$as_me:$LINENO: result: yes" >&5
10772 echo "${ECHO_T}yes" >&6; }
10773           else
10774             { echo "$as_me:$LINENO: result: no" >&5
10775 echo "${ECHO_T}no" >&6; }
10776           fi
10777
10778
10779           enablestring=
10780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
10781 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
10782           no_cache=0
10783           # Check whether --enable-toolbar was given.
10784 if test "${enable_toolbar+set}" = set; then
10785   enableval=$enable_toolbar;
10786                           if test "$enableval" = yes; then
10787                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
10788                           else
10789                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
10790                           fi
10791
10792 else
10793
10794                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
10795                           if test "x$LINE" != x ; then
10796                             eval "DEFAULT_$LINE"
10797                           else
10798                             no_cache=1
10799                           fi
10800
10801                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10802
10803 fi
10804
10805
10806           eval "$ac_cv_use_toolbar"
10807           if test "$no_cache" != 1; then
10808             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
10809           fi
10810
10811           if test "$wxUSE_TOOLBAR" = yes; then
10812             { echo "$as_me:$LINENO: result: yes" >&5
10813 echo "${ECHO_T}yes" >&6; }
10814           else
10815             { echo "$as_me:$LINENO: result: no" >&5
10816 echo "${ECHO_T}no" >&6; }
10817           fi
10818
10819
10820           enablestring=
10821           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
10822 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
10823           no_cache=0
10824           # Check whether --enable-tbarnative was given.
10825 if test "${enable_tbarnative+set}" = set; then
10826   enableval=$enable_tbarnative;
10827                           if test "$enableval" = yes; then
10828                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
10829                           else
10830                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
10831                           fi
10832
10833 else
10834
10835                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
10836                           if test "x$LINE" != x ; then
10837                             eval "DEFAULT_$LINE"
10838                           else
10839                             no_cache=1
10840                           fi
10841
10842                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
10843
10844 fi
10845
10846
10847           eval "$ac_cv_use_tbarnative"
10848           if test "$no_cache" != 1; then
10849             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
10850           fi
10851
10852           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
10853             { echo "$as_me:$LINENO: result: yes" >&5
10854 echo "${ECHO_T}yes" >&6; }
10855           else
10856             { echo "$as_me:$LINENO: result: no" >&5
10857 echo "${ECHO_T}no" >&6; }
10858           fi
10859
10860
10861           enablestring=
10862           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
10863 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
10864           no_cache=0
10865           # Check whether --enable-treebook was given.
10866 if test "${enable_treebook+set}" = set; then
10867   enableval=$enable_treebook;
10868                           if test "$enableval" = yes; then
10869                             ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
10870                           else
10871                             ac_cv_use_treebook='wxUSE_TREEBOOK=no'
10872                           fi
10873
10874 else
10875
10876                           LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
10877                           if test "x$LINE" != x ; then
10878                             eval "DEFAULT_$LINE"
10879                           else
10880                             no_cache=1
10881                           fi
10882
10883                           ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
10884
10885 fi
10886
10887
10888           eval "$ac_cv_use_treebook"
10889           if test "$no_cache" != 1; then
10890             echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
10891           fi
10892
10893           if test "$wxUSE_TREEBOOK" = yes; then
10894             { echo "$as_me:$LINENO: result: yes" >&5
10895 echo "${ECHO_T}yes" >&6; }
10896           else
10897             { echo "$as_me:$LINENO: result: no" >&5
10898 echo "${ECHO_T}no" >&6; }
10899           fi
10900
10901
10902           enablestring=
10903           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
10904 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
10905           no_cache=0
10906           # Check whether --enable-toolbook was given.
10907 if test "${enable_toolbook+set}" = set; then
10908   enableval=$enable_toolbook;
10909                           if test "$enableval" = yes; then
10910                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
10911                           else
10912                             ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
10913                           fi
10914
10915 else
10916
10917                           LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
10918                           if test "x$LINE" != x ; then
10919                             eval "DEFAULT_$LINE"
10920                           else
10921                             no_cache=1
10922                           fi
10923
10924                           ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
10925
10926 fi
10927
10928
10929           eval "$ac_cv_use_toolbook"
10930           if test "$no_cache" != 1; then
10931             echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
10932           fi
10933
10934           if test "$wxUSE_TOOLBOOK" = yes; then
10935             { echo "$as_me:$LINENO: result: yes" >&5
10936 echo "${ECHO_T}yes" >&6; }
10937           else
10938             { echo "$as_me:$LINENO: result: no" >&5
10939 echo "${ECHO_T}no" >&6; }
10940           fi
10941
10942
10943           enablestring=
10944           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
10945 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
10946           no_cache=0
10947           # Check whether --enable-treectrl was given.
10948 if test "${enable_treectrl+set}" = set; then
10949   enableval=$enable_treectrl;
10950                           if test "$enableval" = yes; then
10951                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
10952                           else
10953                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
10954                           fi
10955
10956 else
10957
10958                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
10959                           if test "x$LINE" != x ; then
10960                             eval "DEFAULT_$LINE"
10961                           else
10962                             no_cache=1
10963                           fi
10964
10965                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10966
10967 fi
10968
10969
10970           eval "$ac_cv_use_treectrl"
10971           if test "$no_cache" != 1; then
10972             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10973           fi
10974
10975           if test "$wxUSE_TREECTRL" = yes; then
10976             { echo "$as_me:$LINENO: result: yes" >&5
10977 echo "${ECHO_T}yes" >&6; }
10978           else
10979             { echo "$as_me:$LINENO: result: no" >&5
10980 echo "${ECHO_T}no" >&6; }
10981           fi
10982
10983
10984           enablestring=
10985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10986 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
10987           no_cache=0
10988           # Check whether --enable-tipwindow was given.
10989 if test "${enable_tipwindow+set}" = set; then
10990   enableval=$enable_tipwindow;
10991                           if test "$enableval" = yes; then
10992                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10993                           else
10994                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10995                           fi
10996
10997 else
10998
10999                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
11000                           if test "x$LINE" != x ; then
11001                             eval "DEFAULT_$LINE"
11002                           else
11003                             no_cache=1
11004                           fi
11005
11006                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
11007
11008 fi
11009
11010
11011           eval "$ac_cv_use_tipwindow"
11012           if test "$no_cache" != 1; then
11013             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
11014           fi
11015
11016           if test "$wxUSE_TIPWINDOW" = yes; then
11017             { echo "$as_me:$LINENO: result: yes" >&5
11018 echo "${ECHO_T}yes" >&6; }
11019           else
11020             { echo "$as_me:$LINENO: result: no" >&5
11021 echo "${ECHO_T}no" >&6; }
11022           fi
11023
11024
11025           enablestring=
11026           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
11027 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
11028           no_cache=0
11029           # Check whether --enable-popupwin was given.
11030 if test "${enable_popupwin+set}" = set; then
11031   enableval=$enable_popupwin;
11032                           if test "$enableval" = yes; then
11033                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
11034                           else
11035                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
11036                           fi
11037
11038 else
11039
11040                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
11041                           if test "x$LINE" != x ; then
11042                             eval "DEFAULT_$LINE"
11043                           else
11044                             no_cache=1
11045                           fi
11046
11047                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
11048
11049 fi
11050
11051
11052           eval "$ac_cv_use_popupwin"
11053           if test "$no_cache" != 1; then
11054             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
11055           fi
11056
11057           if test "$wxUSE_POPUPWIN" = yes; then
11058             { echo "$as_me:$LINENO: result: yes" >&5
11059 echo "${ECHO_T}yes" >&6; }
11060           else
11061             { echo "$as_me:$LINENO: result: no" >&5
11062 echo "${ECHO_T}no" >&6; }
11063           fi
11064
11065
11066
11067
11068           enablestring=
11069           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
11070 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
11071           no_cache=0
11072           # Check whether --enable-commondlg was given.
11073 if test "${enable_commondlg+set}" = set; then
11074   enableval=$enable_commondlg;
11075                           if test "$enableval" = yes; then
11076                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
11077                           else
11078                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
11079                           fi
11080
11081 else
11082
11083                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
11084                           if test "x$LINE" != x ; then
11085                             eval "DEFAULT_$LINE"
11086                           else
11087                             no_cache=1
11088                           fi
11089
11090                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
11091
11092 fi
11093
11094
11095           eval "$ac_cv_use_commondlg"
11096           if test "$no_cache" != 1; then
11097             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
11098           fi
11099
11100           if test "$wxUSE_COMMONDLGS" = yes; then
11101             { echo "$as_me:$LINENO: result: yes" >&5
11102 echo "${ECHO_T}yes" >&6; }
11103           else
11104             { echo "$as_me:$LINENO: result: no" >&5
11105 echo "${ECHO_T}no" >&6; }
11106           fi
11107
11108
11109           enablestring=
11110           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
11111 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
11112           no_cache=0
11113           # Check whether --enable-aboutdlg was given.
11114 if test "${enable_aboutdlg+set}" = set; then
11115   enableval=$enable_aboutdlg;
11116                           if test "$enableval" = yes; then
11117                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
11118                           else
11119                             ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
11120                           fi
11121
11122 else
11123
11124                           LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
11125                           if test "x$LINE" != x ; then
11126                             eval "DEFAULT_$LINE"
11127                           else
11128                             no_cache=1
11129                           fi
11130
11131                           ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
11132
11133 fi
11134
11135
11136           eval "$ac_cv_use_aboutdlg"
11137           if test "$no_cache" != 1; then
11138             echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
11139           fi
11140
11141           if test "$wxUSE_ABOUTDLG" = yes; then
11142             { echo "$as_me:$LINENO: result: yes" >&5
11143 echo "${ECHO_T}yes" >&6; }
11144           else
11145             { echo "$as_me:$LINENO: result: no" >&5
11146 echo "${ECHO_T}no" >&6; }
11147           fi
11148
11149
11150           enablestring=
11151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
11152 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
11153           no_cache=0
11154           # Check whether --enable-choicedlg was given.
11155 if test "${enable_choicedlg+set}" = set; then
11156   enableval=$enable_choicedlg;
11157                           if test "$enableval" = yes; then
11158                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
11159                           else
11160                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
11161                           fi
11162
11163 else
11164
11165                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
11166                           if test "x$LINE" != x ; then
11167                             eval "DEFAULT_$LINE"
11168                           else
11169                             no_cache=1
11170                           fi
11171
11172                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
11173
11174 fi
11175
11176
11177           eval "$ac_cv_use_choicedlg"
11178           if test "$no_cache" != 1; then
11179             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
11180           fi
11181
11182           if test "$wxUSE_CHOICEDLG" = yes; then
11183             { echo "$as_me:$LINENO: result: yes" >&5
11184 echo "${ECHO_T}yes" >&6; }
11185           else
11186             { echo "$as_me:$LINENO: result: no" >&5
11187 echo "${ECHO_T}no" >&6; }
11188           fi
11189
11190
11191           enablestring=
11192           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
11193 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
11194           no_cache=0
11195           # Check whether --enable-coldlg was given.
11196 if test "${enable_coldlg+set}" = set; then
11197   enableval=$enable_coldlg;
11198                           if test "$enableval" = yes; then
11199                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
11200                           else
11201                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
11202                           fi
11203
11204 else
11205
11206                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
11207                           if test "x$LINE" != x ; then
11208                             eval "DEFAULT_$LINE"
11209                           else
11210                             no_cache=1
11211                           fi
11212
11213                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
11214
11215 fi
11216
11217
11218           eval "$ac_cv_use_coldlg"
11219           if test "$no_cache" != 1; then
11220             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
11221           fi
11222
11223           if test "$wxUSE_COLOURDLG" = yes; then
11224             { echo "$as_me:$LINENO: result: yes" >&5
11225 echo "${ECHO_T}yes" >&6; }
11226           else
11227             { echo "$as_me:$LINENO: result: no" >&5
11228 echo "${ECHO_T}no" >&6; }
11229           fi
11230
11231
11232           enablestring=
11233           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
11234 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
11235           no_cache=0
11236           # Check whether --enable-filedlg was given.
11237 if test "${enable_filedlg+set}" = set; then
11238   enableval=$enable_filedlg;
11239                           if test "$enableval" = yes; then
11240                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
11241                           else
11242                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
11243                           fi
11244
11245 else
11246
11247                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
11248                           if test "x$LINE" != x ; then
11249                             eval "DEFAULT_$LINE"
11250                           else
11251                             no_cache=1
11252                           fi
11253
11254                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
11255
11256 fi
11257
11258
11259           eval "$ac_cv_use_filedlg"
11260           if test "$no_cache" != 1; then
11261             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
11262           fi
11263
11264           if test "$wxUSE_FILEDLG" = yes; then
11265             { echo "$as_me:$LINENO: result: yes" >&5
11266 echo "${ECHO_T}yes" >&6; }
11267           else
11268             { echo "$as_me:$LINENO: result: no" >&5
11269 echo "${ECHO_T}no" >&6; }
11270           fi
11271
11272
11273           enablestring=
11274           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
11275 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
11276           no_cache=0
11277           # Check whether --enable-finddlg was given.
11278 if test "${enable_finddlg+set}" = set; then
11279   enableval=$enable_finddlg;
11280                           if test "$enableval" = yes; then
11281                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
11282                           else
11283                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
11284                           fi
11285
11286 else
11287
11288                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
11289                           if test "x$LINE" != x ; then
11290                             eval "DEFAULT_$LINE"
11291                           else
11292                             no_cache=1
11293                           fi
11294
11295                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
11296
11297 fi
11298
11299
11300           eval "$ac_cv_use_finddlg"
11301           if test "$no_cache" != 1; then
11302             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
11303           fi
11304
11305           if test "$wxUSE_FINDREPLDLG" = yes; then
11306             { echo "$as_me:$LINENO: result: yes" >&5
11307 echo "${ECHO_T}yes" >&6; }
11308           else
11309             { echo "$as_me:$LINENO: result: no" >&5
11310 echo "${ECHO_T}no" >&6; }
11311           fi
11312
11313
11314           enablestring=
11315           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
11316 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
11317           no_cache=0
11318           # Check whether --enable-fontdlg was given.
11319 if test "${enable_fontdlg+set}" = set; then
11320   enableval=$enable_fontdlg;
11321                           if test "$enableval" = yes; then
11322                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
11323                           else
11324                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
11325                           fi
11326
11327 else
11328
11329                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
11330                           if test "x$LINE" != x ; then
11331                             eval "DEFAULT_$LINE"
11332                           else
11333                             no_cache=1
11334                           fi
11335
11336                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
11337
11338 fi
11339
11340
11341           eval "$ac_cv_use_fontdlg"
11342           if test "$no_cache" != 1; then
11343             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
11344           fi
11345
11346           if test "$wxUSE_FONTDLG" = yes; then
11347             { echo "$as_me:$LINENO: result: yes" >&5
11348 echo "${ECHO_T}yes" >&6; }
11349           else
11350             { echo "$as_me:$LINENO: result: no" >&5
11351 echo "${ECHO_T}no" >&6; }
11352           fi
11353
11354
11355           enablestring=
11356           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
11357 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
11358           no_cache=0
11359           # Check whether --enable-dirdlg was given.
11360 if test "${enable_dirdlg+set}" = set; then
11361   enableval=$enable_dirdlg;
11362                           if test "$enableval" = yes; then
11363                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
11364                           else
11365                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
11366                           fi
11367
11368 else
11369
11370                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
11371                           if test "x$LINE" != x ; then
11372                             eval "DEFAULT_$LINE"
11373                           else
11374                             no_cache=1
11375                           fi
11376
11377                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
11378
11379 fi
11380
11381
11382           eval "$ac_cv_use_dirdlg"
11383           if test "$no_cache" != 1; then
11384             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
11385           fi
11386
11387           if test "$wxUSE_DIRDLG" = yes; then
11388             { echo "$as_me:$LINENO: result: yes" >&5
11389 echo "${ECHO_T}yes" >&6; }
11390           else
11391             { echo "$as_me:$LINENO: result: no" >&5
11392 echo "${ECHO_T}no" >&6; }
11393           fi
11394
11395
11396           enablestring=
11397           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
11398 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
11399           no_cache=0
11400           # Check whether --enable-msgdlg was given.
11401 if test "${enable_msgdlg+set}" = set; then
11402   enableval=$enable_msgdlg;
11403                           if test "$enableval" = yes; then
11404                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
11405                           else
11406                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
11407                           fi
11408
11409 else
11410
11411                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
11412                           if test "x$LINE" != x ; then
11413                             eval "DEFAULT_$LINE"
11414                           else
11415                             no_cache=1
11416                           fi
11417
11418                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
11419
11420 fi
11421
11422
11423           eval "$ac_cv_use_msgdlg"
11424           if test "$no_cache" != 1; then
11425             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
11426           fi
11427
11428           if test "$wxUSE_MSGDLG" = yes; then
11429             { echo "$as_me:$LINENO: result: yes" >&5
11430 echo "${ECHO_T}yes" >&6; }
11431           else
11432             { echo "$as_me:$LINENO: result: no" >&5
11433 echo "${ECHO_T}no" >&6; }
11434           fi
11435
11436
11437           enablestring=
11438           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
11439 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
11440           no_cache=0
11441           # Check whether --enable-numberdlg was given.
11442 if test "${enable_numberdlg+set}" = set; then
11443   enableval=$enable_numberdlg;
11444                           if test "$enableval" = yes; then
11445                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
11446                           else
11447                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
11448                           fi
11449
11450 else
11451
11452                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
11453                           if test "x$LINE" != x ; then
11454                             eval "DEFAULT_$LINE"
11455                           else
11456                             no_cache=1
11457                           fi
11458
11459                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
11460
11461 fi
11462
11463
11464           eval "$ac_cv_use_numberdlg"
11465           if test "$no_cache" != 1; then
11466             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
11467           fi
11468
11469           if test "$wxUSE_NUMBERDLG" = yes; then
11470             { echo "$as_me:$LINENO: result: yes" >&5
11471 echo "${ECHO_T}yes" >&6; }
11472           else
11473             { echo "$as_me:$LINENO: result: no" >&5
11474 echo "${ECHO_T}no" >&6; }
11475           fi
11476
11477
11478           enablestring=
11479           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
11480 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
11481           no_cache=0
11482           # Check whether --enable-splash was given.
11483 if test "${enable_splash+set}" = set; then
11484   enableval=$enable_splash;
11485                           if test "$enableval" = yes; then
11486                             ac_cv_use_splash='wxUSE_SPLASH=yes'
11487                           else
11488                             ac_cv_use_splash='wxUSE_SPLASH=no'
11489                           fi
11490
11491 else
11492
11493                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
11494                           if test "x$LINE" != x ; then
11495                             eval "DEFAULT_$LINE"
11496                           else
11497                             no_cache=1
11498                           fi
11499
11500                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
11501
11502 fi
11503
11504
11505           eval "$ac_cv_use_splash"
11506           if test "$no_cache" != 1; then
11507             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
11508           fi
11509
11510           if test "$wxUSE_SPLASH" = yes; then
11511             { echo "$as_me:$LINENO: result: yes" >&5
11512 echo "${ECHO_T}yes" >&6; }
11513           else
11514             { echo "$as_me:$LINENO: result: no" >&5
11515 echo "${ECHO_T}no" >&6; }
11516           fi
11517
11518
11519           enablestring=
11520           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
11521 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
11522           no_cache=0
11523           # Check whether --enable-textdlg was given.
11524 if test "${enable_textdlg+set}" = set; then
11525   enableval=$enable_textdlg;
11526                           if test "$enableval" = yes; then
11527                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
11528                           else
11529                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
11530                           fi
11531
11532 else
11533
11534                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
11535                           if test "x$LINE" != x ; then
11536                             eval "DEFAULT_$LINE"
11537                           else
11538                             no_cache=1
11539                           fi
11540
11541                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
11542
11543 fi
11544
11545
11546           eval "$ac_cv_use_textdlg"
11547           if test "$no_cache" != 1; then
11548             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
11549           fi
11550
11551           if test "$wxUSE_TEXTDLG" = yes; then
11552             { echo "$as_me:$LINENO: result: yes" >&5
11553 echo "${ECHO_T}yes" >&6; }
11554           else
11555             { echo "$as_me:$LINENO: result: no" >&5
11556 echo "${ECHO_T}no" >&6; }
11557           fi
11558
11559
11560           enablestring=
11561           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
11562 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
11563           no_cache=0
11564           # Check whether --enable-tipdlg was given.
11565 if test "${enable_tipdlg+set}" = set; then
11566   enableval=$enable_tipdlg;
11567                           if test "$enableval" = yes; then
11568                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
11569                           else
11570                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
11571                           fi
11572
11573 else
11574
11575                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
11576                           if test "x$LINE" != x ; then
11577                             eval "DEFAULT_$LINE"
11578                           else
11579                             no_cache=1
11580                           fi
11581
11582                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
11583
11584 fi
11585
11586
11587           eval "$ac_cv_use_tipdlg"
11588           if test "$no_cache" != 1; then
11589             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
11590           fi
11591
11592           if test "$wxUSE_STARTUP_TIPS" = yes; then
11593             { echo "$as_me:$LINENO: result: yes" >&5
11594 echo "${ECHO_T}yes" >&6; }
11595           else
11596             { echo "$as_me:$LINENO: result: no" >&5
11597 echo "${ECHO_T}no" >&6; }
11598           fi
11599
11600
11601           enablestring=
11602           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
11603 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
11604           no_cache=0
11605           # Check whether --enable-progressdlg was given.
11606 if test "${enable_progressdlg+set}" = set; then
11607   enableval=$enable_progressdlg;
11608                           if test "$enableval" = yes; then
11609                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
11610                           else
11611                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
11612                           fi
11613
11614 else
11615
11616                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
11617                           if test "x$LINE" != x ; then
11618                             eval "DEFAULT_$LINE"
11619                           else
11620                             no_cache=1
11621                           fi
11622
11623                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
11624
11625 fi
11626
11627
11628           eval "$ac_cv_use_progressdlg"
11629           if test "$no_cache" != 1; then
11630             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
11631           fi
11632
11633           if test "$wxUSE_PROGRESSDLG" = yes; then
11634             { echo "$as_me:$LINENO: result: yes" >&5
11635 echo "${ECHO_T}yes" >&6; }
11636           else
11637             { echo "$as_me:$LINENO: result: no" >&5
11638 echo "${ECHO_T}no" >&6; }
11639           fi
11640
11641
11642           enablestring=
11643           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
11644 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
11645           no_cache=0
11646           # Check whether --enable-wizarddlg was given.
11647 if test "${enable_wizarddlg+set}" = set; then
11648   enableval=$enable_wizarddlg;
11649                           if test "$enableval" = yes; then
11650                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
11651                           else
11652                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
11653                           fi
11654
11655 else
11656
11657                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
11658                           if test "x$LINE" != x ; then
11659                             eval "DEFAULT_$LINE"
11660                           else
11661                             no_cache=1
11662                           fi
11663
11664                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
11665
11666 fi
11667
11668
11669           eval "$ac_cv_use_wizarddlg"
11670           if test "$no_cache" != 1; then
11671             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
11672           fi
11673
11674           if test "$wxUSE_WIZARDDLG" = yes; then
11675             { echo "$as_me:$LINENO: result: yes" >&5
11676 echo "${ECHO_T}yes" >&6; }
11677           else
11678             { echo "$as_me:$LINENO: result: no" >&5
11679 echo "${ECHO_T}no" >&6; }
11680           fi
11681
11682
11683
11684
11685           enablestring=
11686           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
11687 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
11688           no_cache=0
11689           # Check whether --enable-menus was given.
11690 if test "${enable_menus+set}" = set; then
11691   enableval=$enable_menus;
11692                           if test "$enableval" = yes; then
11693                             ac_cv_use_menus='wxUSE_MENUS=yes'
11694                           else
11695                             ac_cv_use_menus='wxUSE_MENUS=no'
11696                           fi
11697
11698 else
11699
11700                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
11701                           if test "x$LINE" != x ; then
11702                             eval "DEFAULT_$LINE"
11703                           else
11704                             no_cache=1
11705                           fi
11706
11707                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
11708
11709 fi
11710
11711
11712           eval "$ac_cv_use_menus"
11713           if test "$no_cache" != 1; then
11714             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
11715           fi
11716
11717           if test "$wxUSE_MENUS" = yes; then
11718             { echo "$as_me:$LINENO: result: yes" >&5
11719 echo "${ECHO_T}yes" >&6; }
11720           else
11721             { echo "$as_me:$LINENO: result: no" >&5
11722 echo "${ECHO_T}no" >&6; }
11723           fi
11724
11725
11726           enablestring=
11727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
11728 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
11729           no_cache=0
11730           # Check whether --enable-miniframe was given.
11731 if test "${enable_miniframe+set}" = set; then
11732   enableval=$enable_miniframe;
11733                           if test "$enableval" = yes; then
11734                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
11735                           else
11736                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
11737                           fi
11738
11739 else
11740
11741                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
11742                           if test "x$LINE" != x ; then
11743                             eval "DEFAULT_$LINE"
11744                           else
11745                             no_cache=1
11746                           fi
11747
11748                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
11749
11750 fi
11751
11752
11753           eval "$ac_cv_use_miniframe"
11754           if test "$no_cache" != 1; then
11755             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
11756           fi
11757
11758           if test "$wxUSE_MINIFRAME" = yes; then
11759             { echo "$as_me:$LINENO: result: yes" >&5
11760 echo "${ECHO_T}yes" >&6; }
11761           else
11762             { echo "$as_me:$LINENO: result: no" >&5
11763 echo "${ECHO_T}no" >&6; }
11764           fi
11765
11766
11767           enablestring=
11768           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
11769 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
11770           no_cache=0
11771           # Check whether --enable-tooltips was given.
11772 if test "${enable_tooltips+set}" = set; then
11773   enableval=$enable_tooltips;
11774                           if test "$enableval" = yes; then
11775                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
11776                           else
11777                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
11778                           fi
11779
11780 else
11781
11782                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
11783                           if test "x$LINE" != x ; then
11784                             eval "DEFAULT_$LINE"
11785                           else
11786                             no_cache=1
11787                           fi
11788
11789                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
11790
11791 fi
11792
11793
11794           eval "$ac_cv_use_tooltips"
11795           if test "$no_cache" != 1; then
11796             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
11797           fi
11798
11799           if test "$wxUSE_TOOLTIPS" = yes; then
11800             { echo "$as_me:$LINENO: result: yes" >&5
11801 echo "${ECHO_T}yes" >&6; }
11802           else
11803             { echo "$as_me:$LINENO: result: no" >&5
11804 echo "${ECHO_T}no" >&6; }
11805           fi
11806
11807
11808           enablestring=
11809           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
11810 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
11811           no_cache=0
11812           # Check whether --enable-splines was given.
11813 if test "${enable_splines+set}" = set; then
11814   enableval=$enable_splines;
11815                           if test "$enableval" = yes; then
11816                             ac_cv_use_splines='wxUSE_SPLINES=yes'
11817                           else
11818                             ac_cv_use_splines='wxUSE_SPLINES=no'
11819                           fi
11820
11821 else
11822
11823                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
11824                           if test "x$LINE" != x ; then
11825                             eval "DEFAULT_$LINE"
11826                           else
11827                             no_cache=1
11828                           fi
11829
11830                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
11831
11832 fi
11833
11834
11835           eval "$ac_cv_use_splines"
11836           if test "$no_cache" != 1; then
11837             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
11838           fi
11839
11840           if test "$wxUSE_SPLINES" = yes; then
11841             { echo "$as_me:$LINENO: result: yes" >&5
11842 echo "${ECHO_T}yes" >&6; }
11843           else
11844             { echo "$as_me:$LINENO: result: no" >&5
11845 echo "${ECHO_T}no" >&6; }
11846           fi
11847
11848
11849           enablestring=
11850           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
11851 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
11852           no_cache=0
11853           # Check whether --enable-mousewheel was given.
11854 if test "${enable_mousewheel+set}" = set; then
11855   enableval=$enable_mousewheel;
11856                           if test "$enableval" = yes; then
11857                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
11858                           else
11859                             ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
11860                           fi
11861
11862 else
11863
11864                           LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
11865                           if test "x$LINE" != x ; then
11866                             eval "DEFAULT_$LINE"
11867                           else
11868                             no_cache=1
11869                           fi
11870
11871                           ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
11872
11873 fi
11874
11875
11876           eval "$ac_cv_use_mousewheel"
11877           if test "$no_cache" != 1; then
11878             echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
11879           fi
11880
11881           if test "$wxUSE_MOUSEWHEEL" = yes; then
11882             { echo "$as_me:$LINENO: result: yes" >&5
11883 echo "${ECHO_T}yes" >&6; }
11884           else
11885             { echo "$as_me:$LINENO: result: no" >&5
11886 echo "${ECHO_T}no" >&6; }
11887           fi
11888
11889
11890           enablestring=
11891           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
11892 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
11893           no_cache=0
11894           # Check whether --enable-validators was given.
11895 if test "${enable_validators+set}" = set; then
11896   enableval=$enable_validators;
11897                           if test "$enableval" = yes; then
11898                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
11899                           else
11900                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
11901                           fi
11902
11903 else
11904
11905                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
11906                           if test "x$LINE" != x ; then
11907                             eval "DEFAULT_$LINE"
11908                           else
11909                             no_cache=1
11910                           fi
11911
11912                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
11913
11914 fi
11915
11916
11917           eval "$ac_cv_use_validators"
11918           if test "$no_cache" != 1; then
11919             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
11920           fi
11921
11922           if test "$wxUSE_VALIDATORS" = yes; then
11923             { echo "$as_me:$LINENO: result: yes" >&5
11924 echo "${ECHO_T}yes" >&6; }
11925           else
11926             { echo "$as_me:$LINENO: result: no" >&5
11927 echo "${ECHO_T}no" >&6; }
11928           fi
11929
11930
11931           enablestring=
11932           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
11933 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
11934           no_cache=0
11935           # Check whether --enable-busyinfo was given.
11936 if test "${enable_busyinfo+set}" = set; then
11937   enableval=$enable_busyinfo;
11938                           if test "$enableval" = yes; then
11939                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
11940                           else
11941                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
11942                           fi
11943
11944 else
11945
11946                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
11947                           if test "x$LINE" != x ; then
11948                             eval "DEFAULT_$LINE"
11949                           else
11950                             no_cache=1
11951                           fi
11952
11953                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
11954
11955 fi
11956
11957
11958           eval "$ac_cv_use_busyinfo"
11959           if test "$no_cache" != 1; then
11960             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11961           fi
11962
11963           if test "$wxUSE_BUSYINFO" = yes; then
11964             { echo "$as_me:$LINENO: result: yes" >&5
11965 echo "${ECHO_T}yes" >&6; }
11966           else
11967             { echo "$as_me:$LINENO: result: no" >&5
11968 echo "${ECHO_T}no" >&6; }
11969           fi
11970
11971
11972           enablestring=
11973           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11974 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
11975           no_cache=0
11976           # Check whether --enable-joystick was given.
11977 if test "${enable_joystick+set}" = set; then
11978   enableval=$enable_joystick;
11979                           if test "$enableval" = yes; then
11980                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11981                           else
11982                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11983                           fi
11984
11985 else
11986
11987                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11988                           if test "x$LINE" != x ; then
11989                             eval "DEFAULT_$LINE"
11990                           else
11991                             no_cache=1
11992                           fi
11993
11994                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11995
11996 fi
11997
11998
11999           eval "$ac_cv_use_joystick"
12000           if test "$no_cache" != 1; then
12001             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
12002           fi
12003
12004           if test "$wxUSE_JOYSTICK" = yes; then
12005             { echo "$as_me:$LINENO: result: yes" >&5
12006 echo "${ECHO_T}yes" >&6; }
12007           else
12008             { echo "$as_me:$LINENO: result: no" >&5
12009 echo "${ECHO_T}no" >&6; }
12010           fi
12011
12012
12013           enablestring=
12014           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
12015 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
12016           no_cache=0
12017           # Check whether --enable-metafile was given.
12018 if test "${enable_metafile+set}" = set; then
12019   enableval=$enable_metafile;
12020                           if test "$enableval" = yes; then
12021                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
12022                           else
12023                             ac_cv_use_metafile='wxUSE_METAFILE=no'
12024                           fi
12025
12026 else
12027
12028                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
12029                           if test "x$LINE" != x ; then
12030                             eval "DEFAULT_$LINE"
12031                           else
12032                             no_cache=1
12033                           fi
12034
12035                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
12036
12037 fi
12038
12039
12040           eval "$ac_cv_use_metafile"
12041           if test "$no_cache" != 1; then
12042             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
12043           fi
12044
12045           if test "$wxUSE_METAFILE" = yes; then
12046             { echo "$as_me:$LINENO: result: yes" >&5
12047 echo "${ECHO_T}yes" >&6; }
12048           else
12049             { echo "$as_me:$LINENO: result: no" >&5
12050 echo "${ECHO_T}no" >&6; }
12051           fi
12052
12053
12054           enablestring=
12055           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
12056 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
12057           no_cache=0
12058           # Check whether --enable-dragimage was given.
12059 if test "${enable_dragimage+set}" = set; then
12060   enableval=$enable_dragimage;
12061                           if test "$enableval" = yes; then
12062                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
12063                           else
12064                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
12065                           fi
12066
12067 else
12068
12069                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
12070                           if test "x$LINE" != x ; then
12071                             eval "DEFAULT_$LINE"
12072                           else
12073                             no_cache=1
12074                           fi
12075
12076                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
12077
12078 fi
12079
12080
12081           eval "$ac_cv_use_dragimage"
12082           if test "$no_cache" != 1; then
12083             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
12084           fi
12085
12086           if test "$wxUSE_DRAGIMAGE" = yes; then
12087             { echo "$as_me:$LINENO: result: yes" >&5
12088 echo "${ECHO_T}yes" >&6; }
12089           else
12090             { echo "$as_me:$LINENO: result: no" >&5
12091 echo "${ECHO_T}no" >&6; }
12092           fi
12093
12094
12095           enablestring=
12096           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
12097 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
12098           no_cache=0
12099           # Check whether --enable-accessibility was given.
12100 if test "${enable_accessibility+set}" = set; then
12101   enableval=$enable_accessibility;
12102                           if test "$enableval" = yes; then
12103                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
12104                           else
12105                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
12106                           fi
12107
12108 else
12109
12110                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
12111                           if test "x$LINE" != x ; then
12112                             eval "DEFAULT_$LINE"
12113                           else
12114                             no_cache=1
12115                           fi
12116
12117                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
12118
12119 fi
12120
12121
12122           eval "$ac_cv_use_accessibility"
12123           if test "$no_cache" != 1; then
12124             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
12125           fi
12126
12127           if test "$wxUSE_ACCESSIBILITY" = yes; then
12128             { echo "$as_me:$LINENO: result: yes" >&5
12129 echo "${ECHO_T}yes" >&6; }
12130           else
12131             { echo "$as_me:$LINENO: result: no" >&5
12132 echo "${ECHO_T}no" >&6; }
12133           fi
12134
12135
12136 if test "$wxUSE_MSW" = "1"; then
12137
12138           enablestring=
12139           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
12140 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
12141           no_cache=0
12142           # Check whether --enable-dccache was given.
12143 if test "${enable_dccache+set}" = set; then
12144   enableval=$enable_dccache;
12145                           if test "$enableval" = yes; then
12146                             ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
12147                           else
12148                             ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
12149                           fi
12150
12151 else
12152
12153                           LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
12154                           if test "x$LINE" != x ; then
12155                             eval "DEFAULT_$LINE"
12156                           else
12157                             no_cache=1
12158                           fi
12159
12160                           ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
12161
12162 fi
12163
12164
12165           eval "$ac_cv_use_dccache"
12166           if test "$no_cache" != 1; then
12167             echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
12168           fi
12169
12170           if test "$wxUSE_DC_CACHEING" = yes; then
12171             { echo "$as_me:$LINENO: result: yes" >&5
12172 echo "${ECHO_T}yes" >&6; }
12173           else
12174             { echo "$as_me:$LINENO: result: no" >&5
12175 echo "${ECHO_T}no" >&6; }
12176           fi
12177
12178 fi
12179
12180
12181
12182           enablestring=
12183           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
12184 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
12185           no_cache=0
12186           # Check whether --enable-palette was given.
12187 if test "${enable_palette+set}" = set; then
12188   enableval=$enable_palette;
12189                           if test "$enableval" = yes; then
12190                             ac_cv_use_palette='wxUSE_PALETTE=yes'
12191                           else
12192                             ac_cv_use_palette='wxUSE_PALETTE=no'
12193                           fi
12194
12195 else
12196
12197                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
12198                           if test "x$LINE" != x ; then
12199                             eval "DEFAULT_$LINE"
12200                           else
12201                             no_cache=1
12202                           fi
12203
12204                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
12205
12206 fi
12207
12208
12209           eval "$ac_cv_use_palette"
12210           if test "$no_cache" != 1; then
12211             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
12212           fi
12213
12214           if test "$wxUSE_PALETTE" = yes; then
12215             { echo "$as_me:$LINENO: result: yes" >&5
12216 echo "${ECHO_T}yes" >&6; }
12217           else
12218             { echo "$as_me:$LINENO: result: no" >&5
12219 echo "${ECHO_T}no" >&6; }
12220           fi
12221
12222
12223           enablestring=
12224           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
12225 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
12226           no_cache=0
12227           # Check whether --enable-image was given.
12228 if test "${enable_image+set}" = set; then
12229   enableval=$enable_image;
12230                           if test "$enableval" = yes; then
12231                             ac_cv_use_image='wxUSE_IMAGE=yes'
12232                           else
12233                             ac_cv_use_image='wxUSE_IMAGE=no'
12234                           fi
12235
12236 else
12237
12238                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
12239                           if test "x$LINE" != x ; then
12240                             eval "DEFAULT_$LINE"
12241                           else
12242                             no_cache=1
12243                           fi
12244
12245                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
12246
12247 fi
12248
12249
12250           eval "$ac_cv_use_image"
12251           if test "$no_cache" != 1; then
12252             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
12253           fi
12254
12255           if test "$wxUSE_IMAGE" = yes; then
12256             { echo "$as_me:$LINENO: result: yes" >&5
12257 echo "${ECHO_T}yes" >&6; }
12258           else
12259             { echo "$as_me:$LINENO: result: no" >&5
12260 echo "${ECHO_T}no" >&6; }
12261           fi
12262
12263
12264           enablestring=
12265           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
12266 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
12267           no_cache=0
12268           # Check whether --enable-gif was given.
12269 if test "${enable_gif+set}" = set; then
12270   enableval=$enable_gif;
12271                           if test "$enableval" = yes; then
12272                             ac_cv_use_gif='wxUSE_GIF=yes'
12273                           else
12274                             ac_cv_use_gif='wxUSE_GIF=no'
12275                           fi
12276
12277 else
12278
12279                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
12280                           if test "x$LINE" != x ; then
12281                             eval "DEFAULT_$LINE"
12282                           else
12283                             no_cache=1
12284                           fi
12285
12286                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
12287
12288 fi
12289
12290
12291           eval "$ac_cv_use_gif"
12292           if test "$no_cache" != 1; then
12293             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
12294           fi
12295
12296           if test "$wxUSE_GIF" = yes; then
12297             { echo "$as_me:$LINENO: result: yes" >&5
12298 echo "${ECHO_T}yes" >&6; }
12299           else
12300             { echo "$as_me:$LINENO: result: no" >&5
12301 echo "${ECHO_T}no" >&6; }
12302           fi
12303
12304
12305           enablestring=
12306           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
12307 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
12308           no_cache=0
12309           # Check whether --enable-pcx was given.
12310 if test "${enable_pcx+set}" = set; then
12311   enableval=$enable_pcx;
12312                           if test "$enableval" = yes; then
12313                             ac_cv_use_pcx='wxUSE_PCX=yes'
12314                           else
12315                             ac_cv_use_pcx='wxUSE_PCX=no'
12316                           fi
12317
12318 else
12319
12320                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
12321                           if test "x$LINE" != x ; then
12322                             eval "DEFAULT_$LINE"
12323                           else
12324                             no_cache=1
12325                           fi
12326
12327                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
12328
12329 fi
12330
12331
12332           eval "$ac_cv_use_pcx"
12333           if test "$no_cache" != 1; then
12334             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
12335           fi
12336
12337           if test "$wxUSE_PCX" = yes; then
12338             { echo "$as_me:$LINENO: result: yes" >&5
12339 echo "${ECHO_T}yes" >&6; }
12340           else
12341             { echo "$as_me:$LINENO: result: no" >&5
12342 echo "${ECHO_T}no" >&6; }
12343           fi
12344
12345
12346           enablestring=
12347           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
12348 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
12349           no_cache=0
12350           # Check whether --enable-tga was given.
12351 if test "${enable_tga+set}" = set; then
12352   enableval=$enable_tga;
12353                           if test "$enableval" = yes; then
12354                             ac_cv_use_tga='wxUSE_TGA=yes'
12355                           else
12356                             ac_cv_use_tga='wxUSE_TGA=no'
12357                           fi
12358
12359 else
12360
12361                           LINE=`grep "wxUSE_TGA" ${wx_arg_cache_file}`
12362                           if test "x$LINE" != x ; then
12363                             eval "DEFAULT_$LINE"
12364                           else
12365                             no_cache=1
12366                           fi
12367
12368                           ac_cv_use_tga='wxUSE_TGA='$DEFAULT_wxUSE_TGA
12369
12370 fi
12371
12372
12373           eval "$ac_cv_use_tga"
12374           if test "$no_cache" != 1; then
12375             echo $ac_cv_use_tga >> ${wx_arg_cache_file}.tmp
12376           fi
12377
12378           if test "$wxUSE_TGA" = yes; then
12379             { echo "$as_me:$LINENO: result: yes" >&5
12380 echo "${ECHO_T}yes" >&6; }
12381           else
12382             { echo "$as_me:$LINENO: result: no" >&5
12383 echo "${ECHO_T}no" >&6; }
12384           fi
12385
12386
12387           enablestring=
12388           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
12389 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
12390           no_cache=0
12391           # Check whether --enable-iff was given.
12392 if test "${enable_iff+set}" = set; then
12393   enableval=$enable_iff;
12394                           if test "$enableval" = yes; then
12395                             ac_cv_use_iff='wxUSE_IFF=yes'
12396                           else
12397                             ac_cv_use_iff='wxUSE_IFF=no'
12398                           fi
12399
12400 else
12401
12402                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
12403                           if test "x$LINE" != x ; then
12404                             eval "DEFAULT_$LINE"
12405                           else
12406                             no_cache=1
12407                           fi
12408
12409                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
12410
12411 fi
12412
12413
12414           eval "$ac_cv_use_iff"
12415           if test "$no_cache" != 1; then
12416             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
12417           fi
12418
12419           if test "$wxUSE_IFF" = yes; then
12420             { echo "$as_me:$LINENO: result: yes" >&5
12421 echo "${ECHO_T}yes" >&6; }
12422           else
12423             { echo "$as_me:$LINENO: result: no" >&5
12424 echo "${ECHO_T}no" >&6; }
12425           fi
12426
12427
12428           enablestring=
12429           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
12430 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
12431           no_cache=0
12432           # Check whether --enable-pnm was given.
12433 if test "${enable_pnm+set}" = set; then
12434   enableval=$enable_pnm;
12435                           if test "$enableval" = yes; then
12436                             ac_cv_use_pnm='wxUSE_PNM=yes'
12437                           else
12438                             ac_cv_use_pnm='wxUSE_PNM=no'
12439                           fi
12440
12441 else
12442
12443                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
12444                           if test "x$LINE" != x ; then
12445                             eval "DEFAULT_$LINE"
12446                           else
12447                             no_cache=1
12448                           fi
12449
12450                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
12451
12452 fi
12453
12454
12455           eval "$ac_cv_use_pnm"
12456           if test "$no_cache" != 1; then
12457             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
12458           fi
12459
12460           if test "$wxUSE_PNM" = yes; then
12461             { echo "$as_me:$LINENO: result: yes" >&5
12462 echo "${ECHO_T}yes" >&6; }
12463           else
12464             { echo "$as_me:$LINENO: result: no" >&5
12465 echo "${ECHO_T}no" >&6; }
12466           fi
12467
12468
12469           enablestring=
12470           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
12471 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
12472           no_cache=0
12473           # Check whether --enable-xpm was given.
12474 if test "${enable_xpm+set}" = set; then
12475   enableval=$enable_xpm;
12476                           if test "$enableval" = yes; then
12477                             ac_cv_use_xpm='wxUSE_XPM=yes'
12478                           else
12479                             ac_cv_use_xpm='wxUSE_XPM=no'
12480                           fi
12481
12482 else
12483
12484                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
12485                           if test "x$LINE" != x ; then
12486                             eval "DEFAULT_$LINE"
12487                           else
12488                             no_cache=1
12489                           fi
12490
12491                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
12492
12493 fi
12494
12495
12496           eval "$ac_cv_use_xpm"
12497           if test "$no_cache" != 1; then
12498             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
12499           fi
12500
12501           if test "$wxUSE_XPM" = yes; then
12502             { echo "$as_me:$LINENO: result: yes" >&5
12503 echo "${ECHO_T}yes" >&6; }
12504           else
12505             { echo "$as_me:$LINENO: result: no" >&5
12506 echo "${ECHO_T}no" >&6; }
12507           fi
12508
12509
12510           enablestring=
12511           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
12512 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
12513           no_cache=0
12514           # Check whether --enable-ico_cur was given.
12515 if test "${enable_ico_cur+set}" = set; then
12516   enableval=$enable_ico_cur;
12517                           if test "$enableval" = yes; then
12518                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
12519                           else
12520                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
12521                           fi
12522
12523 else
12524
12525                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
12526                           if test "x$LINE" != x ; then
12527                             eval "DEFAULT_$LINE"
12528                           else
12529                             no_cache=1
12530                           fi
12531
12532                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
12533
12534 fi
12535
12536
12537           eval "$ac_cv_use_ico_cur"
12538           if test "$no_cache" != 1; then
12539             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
12540           fi
12541
12542           if test "$wxUSE_ICO_CUR" = yes; then
12543             { echo "$as_me:$LINENO: result: yes" >&5
12544 echo "${ECHO_T}yes" >&6; }
12545           else
12546             { echo "$as_me:$LINENO: result: no" >&5
12547 echo "${ECHO_T}no" >&6; }
12548           fi
12549
12550
12551 fi
12552
12553
12554
12555 # Check whether --with-flavour was given.
12556 if test "${with_flavour+set}" = set; then
12557   withval=$with_flavour; WX_FLAVOUR="$withval"
12558 fi
12559
12560
12561
12562
12563           enablestring=
12564           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
12565 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
12566           no_cache=0
12567           # Check whether --enable-official_build was given.
12568 if test "${enable_official_build+set}" = set; then
12569   enableval=$enable_official_build;
12570                           if test "$enableval" = yes; then
12571                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
12572                           else
12573                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
12574                           fi
12575
12576 else
12577
12578                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
12579                           if test "x$LINE" != x ; then
12580                             eval "DEFAULT_$LINE"
12581                           else
12582                             no_cache=1
12583                           fi
12584
12585                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
12586
12587 fi
12588
12589
12590           eval "$ac_cv_use_official_build"
12591           if test "$no_cache" != 1; then
12592             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
12593           fi
12594
12595           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
12596             { echo "$as_me:$LINENO: result: yes" >&5
12597 echo "${ECHO_T}yes" >&6; }
12598           else
12599             { echo "$as_me:$LINENO: result: no" >&5
12600 echo "${ECHO_T}no" >&6; }
12601           fi
12602
12603 # Check whether --enable-vendor was given.
12604 if test "${enable_vendor+set}" = set; then
12605   enableval=$enable_vendor; VENDOR="$enableval"
12606 fi
12607
12608 if test "x$VENDOR" = "x"; then
12609     VENDOR="custom"
12610 fi
12611
12612
12613
12614
12615           echo "saving argument cache $wx_arg_cache_file"
12616           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
12617
12618
12619
12620 { echo "$as_me:$LINENO: checking for toolkit" >&5
12621 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
12622
12623 # In Wine, we need to default to MSW, not GTK or MOTIF
12624 if test "$wxUSE_WINE" = "yes"; then
12625     DEFAULT_DEFAULT_wxUSE_GTK=0
12626     DEFAULT_DEFAULT_wxUSE_MOTIF=0
12627     DEFAULT_DEFAULT_wxUSE_MSW=1
12628     wxUSE_SHARED=no
12629     CC=${CC:-winegcc}
12630     CXX=${CXX:-wineg++}
12631 fi
12632
12633
12634 if test "$wxUSE_GUI" = "yes"; then
12635
12636     if test "$USE_BEOS" = 1; then
12637         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
12638 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
12639    { (exit 1); exit 1; }; }
12640     fi
12641
12642     if test "$TOOLKIT_GIVEN" = 1; then
12643             for toolkit in `echo $ALL_TOOLKITS`; do
12644         var=wxUSE_$toolkit
12645         eval "value=\$${var}"
12646         if test "x$value" = "xno"; then
12647           eval "$var=0"
12648         elif test "x$value" != "x"; then
12649           eval "$var=1"
12650         fi
12651
12652         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
12653           eval "wx${toolkit}_VERSION=$value"
12654         fi
12655       done
12656     else
12657             for toolkit in `echo $ALL_TOOLKITS`; do
12658         if test "$has_toolkit_in_cache" != 1; then
12659           var=DEFAULT_DEFAULT_wxUSE_$toolkit
12660         else
12661           var=DEFAULT_wxUSE_$toolkit
12662
12663           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
12664           if test "x$version" != "x"; then
12665             eval "wx${toolkit}_VERSION=$version"
12666           fi
12667         fi
12668         eval "wxUSE_$toolkit=\$${var}"
12669       done
12670     fi
12671
12672             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
12673                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
12674                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
12675
12676         case "${host}" in
12677       *-pc-os2_emx | *-pc-os2-emx )
12678         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
12679     esac
12680
12681     case "$NUM_TOOLKITS" in
12682       1)
12683       ;;
12684       0)
12685         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
12686 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
12687    { (exit 1); exit 1; }; }
12688       ;;
12689       *)
12690         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
12691 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
12692    { (exit 1); exit 1; }; }
12693     esac
12694
12695     # to be removed when --disable-gtk2 isn't needed
12696     if test "x$wxUSE_GTK2" = "xyes"; then
12697         wxGTK_VERSION=2
12698     elif test "x$wxUSE_GTK2" = "xno"; then
12699         wxGTK_VERSION=1
12700     fi
12701
12702         for toolkit in `echo $ALL_TOOLKITS`; do
12703       var=wxUSE_$toolkit
12704       eval "value=\$${var}"
12705       if test "x$value" != x; then
12706         cache_var=CACHE_$toolkit
12707         eval "cache=\$${cache_var}"
12708         if test "$cache" = 1; then
12709           echo "$var=$value" >> ${wx_arg_cache_file}
12710           eval "version=\$wx${toolkit}_VERSION"
12711           if test "x$version" != "x"; then
12712             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
12713           fi
12714         fi
12715         if test "$value" = 1; then
12716           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
12717           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
12718 echo "${ECHO_T}$toolkit_echo" >&6; }
12719         fi
12720       fi
12721     done
12722 else
12723     if test "x$host_alias" != "x"; then
12724         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
12725 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
12726     else
12727         { echo "$as_me:$LINENO: result: base only" >&5
12728 echo "${ECHO_T}base only" >&6; }
12729     fi
12730 fi
12731
12732
12733 cat >confcache <<\_ACEOF
12734 # This file is a shell script that caches the results of configure
12735 # tests run on this system so they can be shared between configure
12736 # scripts and configure runs, see configure's option --config-cache.
12737 # It is not useful on other systems.  If it contains results you don't
12738 # want to keep, you may remove or edit it.
12739 #
12740 # config.status only pays attention to the cache file if you give it
12741 # the --recheck option to rerun configure.
12742 #
12743 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12744 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12745 # following values.
12746
12747 _ACEOF
12748
12749 # The following way of writing the cache mishandles newlines in values,
12750 # but we know of no workaround that is simple, portable, and efficient.
12751 # So, we kill variables containing newlines.
12752 # Ultrix sh set writes to stderr and can't be redirected directly,
12753 # and sets the high bit in the cache file unless we assign to the vars.
12754 (
12755   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12756     eval ac_val=\$$ac_var
12757     case $ac_val in #(
12758     *${as_nl}*)
12759       case $ac_var in #(
12760       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12761 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12762       esac
12763       case $ac_var in #(
12764       _ | IFS | as_nl) ;; #(
12765       *) $as_unset $ac_var ;;
12766       esac ;;
12767     esac
12768   done
12769
12770   (set) 2>&1 |
12771     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12772     *${as_nl}ac_space=\ *)
12773       # `set' does not quote correctly, so add quotes (double-quote
12774       # substitution turns \\\\ into \\, and sed turns \\ into \).
12775       sed -n \
12776         "s/'/'\\\\''/g;
12777           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12778       ;; #(
12779     *)
12780       # `set' quotes correctly as required by POSIX, so do not add quotes.
12781       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12782       ;;
12783     esac |
12784     sort
12785 ) |
12786   sed '
12787      /^ac_cv_env_/b end
12788      t clear
12789      :clear
12790      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12791      t end
12792      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12793      :end' >>confcache
12794 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12795   if test -w "$cache_file"; then
12796     test "x$cache_file" != "x/dev/null" &&
12797       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12798 echo "$as_me: updating cache $cache_file" >&6;}
12799     cat confcache >$cache_file
12800   else
12801     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12802 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12803   fi
12804 fi
12805 rm -f confcache
12806
12807 CFLAGS=${CFLAGS:=}
12808
12809
12810
12811     ac_ext=c
12812 ac_cpp='$CPP $CPPFLAGS'
12813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12816 if test -n "$ac_tool_prefix"; then
12817   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12821 if test "${ac_cv_prog_CC+set}" = set; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824   if test -n "$CC"; then
12825   ac_cv_prog_CC="$CC" # Let the user override the test.
12826 else
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12829 do
12830   IFS=$as_save_IFS
12831   test -z "$as_dir" && as_dir=.
12832   for ac_exec_ext in '' $ac_executable_extensions; do
12833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12834     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12836     break 2
12837   fi
12838 done
12839 done
12840 IFS=$as_save_IFS
12841
12842 fi
12843 fi
12844 CC=$ac_cv_prog_CC
12845 if test -n "$CC"; then
12846   { echo "$as_me:$LINENO: result: $CC" >&5
12847 echo "${ECHO_T}$CC" >&6; }
12848 else
12849   { echo "$as_me:$LINENO: result: no" >&5
12850 echo "${ECHO_T}no" >&6; }
12851 fi
12852
12853
12854 fi
12855 if test -z "$ac_cv_prog_CC"; then
12856   ac_ct_CC=$CC
12857   # Extract the first word of "gcc", so it can be a program name with args.
12858 set dummy gcc; ac_word=$2
12859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12862   echo $ECHO_N "(cached) $ECHO_C" >&6
12863 else
12864   if test -n "$ac_ct_CC"; then
12865   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12866 else
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12869 do
12870   IFS=$as_save_IFS
12871   test -z "$as_dir" && as_dir=.
12872   for ac_exec_ext in '' $ac_executable_extensions; do
12873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12874     ac_cv_prog_ac_ct_CC="gcc"
12875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12876     break 2
12877   fi
12878 done
12879 done
12880 IFS=$as_save_IFS
12881
12882 fi
12883 fi
12884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12885 if test -n "$ac_ct_CC"; then
12886   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12887 echo "${ECHO_T}$ac_ct_CC" >&6; }
12888 else
12889   { echo "$as_me:$LINENO: result: no" >&5
12890 echo "${ECHO_T}no" >&6; }
12891 fi
12892
12893   if test "x$ac_ct_CC" = x; then
12894     CC=""
12895   else
12896     case $cross_compiling:$ac_tool_warned in
12897 yes:)
12898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12899 whose name does not start with the host triplet.  If you think this
12900 configuration is useful to you, please write to autoconf@gnu.org." >&5
12901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12902 whose name does not start with the host triplet.  If you think this
12903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12904 ac_tool_warned=yes ;;
12905 esac
12906     CC=$ac_ct_CC
12907   fi
12908 else
12909   CC="$ac_cv_prog_CC"
12910 fi
12911
12912 if test -z "$CC"; then
12913           if test -n "$ac_tool_prefix"; then
12914     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12915 set dummy ${ac_tool_prefix}cc; ac_word=$2
12916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12918 if test "${ac_cv_prog_CC+set}" = set; then
12919   echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921   if test -n "$CC"; then
12922   ac_cv_prog_CC="$CC" # Let the user override the test.
12923 else
12924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925 for as_dir in $PATH
12926 do
12927   IFS=$as_save_IFS
12928   test -z "$as_dir" && as_dir=.
12929   for ac_exec_ext in '' $ac_executable_extensions; do
12930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12931     ac_cv_prog_CC="${ac_tool_prefix}cc"
12932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12933     break 2
12934   fi
12935 done
12936 done
12937 IFS=$as_save_IFS
12938
12939 fi
12940 fi
12941 CC=$ac_cv_prog_CC
12942 if test -n "$CC"; then
12943   { echo "$as_me:$LINENO: result: $CC" >&5
12944 echo "${ECHO_T}$CC" >&6; }
12945 else
12946   { echo "$as_me:$LINENO: result: no" >&5
12947 echo "${ECHO_T}no" >&6; }
12948 fi
12949
12950
12951   fi
12952 fi
12953 if test -z "$CC"; then
12954   # Extract the first word of "cc", so it can be a program name with args.
12955 set dummy cc; ac_word=$2
12956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12958 if test "${ac_cv_prog_CC+set}" = set; then
12959   echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961   if test -n "$CC"; then
12962   ac_cv_prog_CC="$CC" # Let the user override the test.
12963 else
12964   ac_prog_rejected=no
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12967 do
12968   IFS=$as_save_IFS
12969   test -z "$as_dir" && as_dir=.
12970   for ac_exec_ext in '' $ac_executable_extensions; do
12971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12972     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12973        ac_prog_rejected=yes
12974        continue
12975      fi
12976     ac_cv_prog_CC="cc"
12977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12978     break 2
12979   fi
12980 done
12981 done
12982 IFS=$as_save_IFS
12983
12984 if test $ac_prog_rejected = yes; then
12985   # We found a bogon in the path, so make sure we never use it.
12986   set dummy $ac_cv_prog_CC
12987   shift
12988   if test $# != 0; then
12989     # We chose a different compiler from the bogus one.
12990     # However, it has the same basename, so the bogon will be chosen
12991     # first if we set CC to just the basename; use the full file name.
12992     shift
12993     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12994   fi
12995 fi
12996 fi
12997 fi
12998 CC=$ac_cv_prog_CC
12999 if test -n "$CC"; then
13000   { echo "$as_me:$LINENO: result: $CC" >&5
13001 echo "${ECHO_T}$CC" >&6; }
13002 else
13003   { echo "$as_me:$LINENO: result: no" >&5
13004 echo "${ECHO_T}no" >&6; }
13005 fi
13006
13007
13008 fi
13009 if test -z "$CC"; then
13010   if test -n "$ac_tool_prefix"; then
13011   for ac_prog in cl.exe
13012   do
13013     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13017 if test "${ac_cv_prog_CC+set}" = set; then
13018   echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020   if test -n "$CC"; then
13021   ac_cv_prog_CC="$CC" # Let the user override the test.
13022 else
13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13025 do
13026   IFS=$as_save_IFS
13027   test -z "$as_dir" && as_dir=.
13028   for ac_exec_ext in '' $ac_executable_extensions; do
13029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13030     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13032     break 2
13033   fi
13034 done
13035 done
13036 IFS=$as_save_IFS
13037
13038 fi
13039 fi
13040 CC=$ac_cv_prog_CC
13041 if test -n "$CC"; then
13042   { echo "$as_me:$LINENO: result: $CC" >&5
13043 echo "${ECHO_T}$CC" >&6; }
13044 else
13045   { echo "$as_me:$LINENO: result: no" >&5
13046 echo "${ECHO_T}no" >&6; }
13047 fi
13048
13049
13050     test -n "$CC" && break
13051   done
13052 fi
13053 if test -z "$CC"; then
13054   ac_ct_CC=$CC
13055   for ac_prog in cl.exe
13056 do
13057   # Extract the first word of "$ac_prog", so it can be a program name with args.
13058 set dummy $ac_prog; ac_word=$2
13059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13062   echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064   if test -n "$ac_ct_CC"; then
13065   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13066 else
13067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068 for as_dir in $PATH
13069 do
13070   IFS=$as_save_IFS
13071   test -z "$as_dir" && as_dir=.
13072   for ac_exec_ext in '' $ac_executable_extensions; do
13073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13074     ac_cv_prog_ac_ct_CC="$ac_prog"
13075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13076     break 2
13077   fi
13078 done
13079 done
13080 IFS=$as_save_IFS
13081
13082 fi
13083 fi
13084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13085 if test -n "$ac_ct_CC"; then
13086   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13087 echo "${ECHO_T}$ac_ct_CC" >&6; }
13088 else
13089   { echo "$as_me:$LINENO: result: no" >&5
13090 echo "${ECHO_T}no" >&6; }
13091 fi
13092
13093
13094   test -n "$ac_ct_CC" && break
13095 done
13096
13097   if test "x$ac_ct_CC" = x; then
13098     CC=""
13099   else
13100     case $cross_compiling:$ac_tool_warned in
13101 yes:)
13102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13103 whose name does not start with the host triplet.  If you think this
13104 configuration is useful to you, please write to autoconf@gnu.org." >&5
13105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13106 whose name does not start with the host triplet.  If you think this
13107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13108 ac_tool_warned=yes ;;
13109 esac
13110     CC=$ac_ct_CC
13111   fi
13112 fi
13113
13114 fi
13115
13116
13117 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13118 See \`config.log' for more details." >&5
13119 echo "$as_me: error: no acceptable C compiler found in \$PATH
13120 See \`config.log' for more details." >&2;}
13121    { (exit 1); exit 1; }; }
13122
13123 # Provide some information about the compiler.
13124 echo "$as_me:$LINENO: checking for C compiler version" >&5
13125 ac_compiler=`set X $ac_compile; echo $2`
13126 { (ac_try="$ac_compiler --version >&5"
13127 case "(($ac_try" in
13128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129   *) ac_try_echo=$ac_try;;
13130 esac
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132   (eval "$ac_compiler --version >&5") 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }
13136 { (ac_try="$ac_compiler -v >&5"
13137 case "(($ac_try" in
13138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139   *) ac_try_echo=$ac_try;;
13140 esac
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142   (eval "$ac_compiler -v >&5") 2>&5
13143   ac_status=$?
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); }
13146 { (ac_try="$ac_compiler -V >&5"
13147 case "(($ac_try" in
13148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149   *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152   (eval "$ac_compiler -V >&5") 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }
13156
13157 cat >conftest.$ac_ext <<_ACEOF
13158 /* confdefs.h.  */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
13162 /* end confdefs.h.  */
13163
13164 int
13165 main ()
13166 {
13167
13168   ;
13169   return 0;
13170 }
13171 _ACEOF
13172 ac_clean_files_save=$ac_clean_files
13173 ac_clean_files="$ac_clean_files a.out a.exe b.out"
13174 # Try to create an executable without -o first, disregard a.out.
13175 # It will help us diagnose broken compilers, and finding out an intuition
13176 # of exeext.
13177 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
13178 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
13179 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
13180 #
13181 # List of possible output files, starting from the most likely.
13182 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
13183 # only as a last resort.  b.out is created by i960 compilers.
13184 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
13185 #
13186 # The IRIX 6 linker writes into existing files which may not be
13187 # executable, retaining their permissions.  Remove them first so a
13188 # subsequent execution test works.
13189 ac_rmfiles=
13190 for ac_file in $ac_files
13191 do
13192   case $ac_file in
13193     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
13194     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
13195   esac
13196 done
13197 rm -f $ac_rmfiles
13198
13199 if { (ac_try="$ac_link_default"
13200 case "(($ac_try" in
13201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202   *) ac_try_echo=$ac_try;;
13203 esac
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205   (eval "$ac_link_default") 2>&5
13206   ac_status=$?
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); }; then
13209   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
13210 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
13211 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
13212 # so that the user can short-circuit this test for compilers unknown to
13213 # Autoconf.
13214 for ac_file in $ac_files
13215 do
13216   test -f "$ac_file" || continue
13217   case $ac_file in
13218     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
13219         ;;
13220     [ab].out )
13221         # We found the default executable, but exeext='' is most
13222         # certainly right.
13223         break;;
13224     *.* )
13225         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
13226         then :; else
13227            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
13228         fi
13229         # We set ac_cv_exeext here because the later test for it is not
13230         # safe: cross compilers may not add the suffix if given an `-o'
13231         # argument, so we may need to know it at that point already.
13232         # Even if this section looks crufty: it has the advantage of
13233         # actually working.
13234         break;;
13235     * )
13236         break;;
13237   esac
13238 done
13239 test "$ac_cv_exeext" = no && ac_cv_exeext=
13240
13241 else
13242   echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13244
13245 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
13246 See \`config.log' for more details." >&5
13247 echo "$as_me: error: C compiler cannot create executables
13248 See \`config.log' for more details." >&2;}
13249    { (exit 77); exit 77; }; }
13250 fi
13251
13252 ac_exeext=$ac_cv_exeext
13253 { echo "$as_me:$LINENO: result: $ac_file" >&5
13254 echo "${ECHO_T}$ac_file" >&6; }
13255
13256 # Check that the compiler produces executables we can run.  If not, either
13257 # the compiler is broken, or we cross compile.
13258 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
13259 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
13260 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
13261 # If not cross compiling, check that we can run a simple program.
13262 if test "$cross_compiling" != yes; then
13263   if { ac_try='./$ac_file'
13264   { (case "(($ac_try" in
13265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266   *) ac_try_echo=$ac_try;;
13267 esac
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269   (eval "$ac_try") 2>&5
13270   ac_status=$?
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); }; }; then
13273     cross_compiling=no
13274   else
13275     if test "$cross_compiling" = maybe; then
13276         cross_compiling=yes
13277     else
13278         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
13279 If you meant to cross compile, use \`--host'.
13280 See \`config.log' for more details." >&5
13281 echo "$as_me: error: cannot run C compiled programs.
13282 If you meant to cross compile, use \`--host'.
13283 See \`config.log' for more details." >&2;}
13284    { (exit 1); exit 1; }; }
13285     fi
13286   fi
13287 fi
13288 { echo "$as_me:$LINENO: result: yes" >&5
13289 echo "${ECHO_T}yes" >&6; }
13290
13291 rm -f a.out a.exe conftest$ac_cv_exeext b.out
13292 ac_clean_files=$ac_clean_files_save
13293 # Check that the compiler produces executables we can run.  If not, either
13294 # the compiler is broken, or we cross compile.
13295 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
13296 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
13297 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
13298 echo "${ECHO_T}$cross_compiling" >&6; }
13299
13300 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
13301 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
13302 if { (ac_try="$ac_link"
13303 case "(($ac_try" in
13304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305   *) ac_try_echo=$ac_try;;
13306 esac
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308   (eval "$ac_link") 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }; then
13312   # If both `conftest.exe' and `conftest' are `present' (well, observable)
13313 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
13314 # work properly (i.e., refer to `conftest.exe'), while it won't with
13315 # `rm'.
13316 for ac_file in conftest.exe conftest conftest.*; do
13317   test -f "$ac_file" || continue
13318   case $ac_file in
13319     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
13320     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
13321           break;;
13322     * ) break;;
13323   esac
13324 done
13325 else
13326   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
13327 See \`config.log' for more details." >&5
13328 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
13329 See \`config.log' for more details." >&2;}
13330    { (exit 1); exit 1; }; }
13331 fi
13332
13333 rm -f conftest$ac_cv_exeext
13334 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
13335 echo "${ECHO_T}$ac_cv_exeext" >&6; }
13336
13337 rm -f conftest.$ac_ext
13338 EXEEXT=$ac_cv_exeext
13339 ac_exeext=$EXEEXT
13340 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
13341 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
13342 if test "${ac_cv_objext+set}" = set; then
13343   echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345   cat >conftest.$ac_ext <<_ACEOF
13346 /* confdefs.h.  */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h.  */
13351
13352 int
13353 main ()
13354 {
13355
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 rm -f conftest.o conftest.obj
13361 if { (ac_try="$ac_compile"
13362 case "(($ac_try" in
13363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364   *) ac_try_echo=$ac_try;;
13365 esac
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367   (eval "$ac_compile") 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); }; then
13371   for ac_file in conftest.o conftest.obj conftest.*; do
13372   test -f "$ac_file" || continue;
13373   case $ac_file in
13374     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
13375     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
13376        break;;
13377   esac
13378 done
13379 else
13380   echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
13384 See \`config.log' for more details." >&5
13385 echo "$as_me: error: cannot compute suffix of object files: cannot compile
13386 See \`config.log' for more details." >&2;}
13387    { (exit 1); exit 1; }; }
13388 fi
13389
13390 rm -f conftest.$ac_cv_objext conftest.$ac_ext
13391 fi
13392 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
13393 echo "${ECHO_T}$ac_cv_objext" >&6; }
13394 OBJEXT=$ac_cv_objext
13395 ac_objext=$OBJEXT
13396 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13397 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13398 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13399   echo $ECHO_N "(cached) $ECHO_C" >&6
13400 else
13401   cat >conftest.$ac_ext <<_ACEOF
13402 /* confdefs.h.  */
13403 _ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h.  */
13407
13408 int
13409 main ()
13410 {
13411 #ifndef __GNUC__
13412        choke me
13413 #endif
13414
13415   ;
13416   return 0;
13417 }
13418 _ACEOF
13419 rm -f conftest.$ac_objext
13420 if { (ac_try="$ac_compile"
13421 case "(($ac_try" in
13422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423   *) ac_try_echo=$ac_try;;
13424 esac
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426   (eval "$ac_compile") 2>conftest.er1
13427   ac_status=$?
13428   grep -v '^ *+' conftest.er1 >conftest.err
13429   rm -f conftest.er1
13430   cat conftest.err >&5
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } &&
13433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13434   { (case "(($ac_try" in
13435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13436   *) ac_try_echo=$ac_try;;
13437 esac
13438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13439   (eval "$ac_try") 2>&5
13440   ac_status=$?
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); }; } &&
13443          { ac_try='test -s conftest.$ac_objext'
13444   { (case "(($ac_try" in
13445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13446   *) ac_try_echo=$ac_try;;
13447 esac
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449   (eval "$ac_try") 2>&5
13450   ac_status=$?
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); }; }; then
13453   ac_compiler_gnu=yes
13454 else
13455   echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13457
13458         ac_compiler_gnu=no
13459 fi
13460
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13463
13464 fi
13465 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13466 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13467 GCC=`test $ac_compiler_gnu = yes && echo yes`
13468 ac_test_CFLAGS=${CFLAGS+set}
13469 ac_save_CFLAGS=$CFLAGS
13470 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13471 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13472 if test "${ac_cv_prog_cc_g+set}" = set; then
13473   echo $ECHO_N "(cached) $ECHO_C" >&6
13474 else
13475   ac_save_c_werror_flag=$ac_c_werror_flag
13476    ac_c_werror_flag=yes
13477    ac_cv_prog_cc_g=no
13478    CFLAGS="-g"
13479    cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h.  */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h.  */
13485
13486 int
13487 main ()
13488 {
13489
13490   ;
13491   return 0;
13492 }
13493 _ACEOF
13494 rm -f conftest.$ac_objext
13495 if { (ac_try="$ac_compile"
13496 case "(($ac_try" in
13497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498   *) ac_try_echo=$ac_try;;
13499 esac
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501   (eval "$ac_compile") 2>conftest.er1
13502   ac_status=$?
13503   grep -v '^ *+' conftest.er1 >conftest.err
13504   rm -f conftest.er1
13505   cat conftest.err >&5
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); } &&
13508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13509   { (case "(($ac_try" in
13510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511   *) ac_try_echo=$ac_try;;
13512 esac
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514   (eval "$ac_try") 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; } &&
13518          { ac_try='test -s conftest.$ac_objext'
13519   { (case "(($ac_try" in
13520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521   *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524   (eval "$ac_try") 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); }; }; then
13528   ac_cv_prog_cc_g=yes
13529 else
13530   echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13532
13533         CFLAGS=""
13534       cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h.  */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h.  */
13540
13541 int
13542 main ()
13543 {
13544
13545   ;
13546   return 0;
13547 }
13548 _ACEOF
13549 rm -f conftest.$ac_objext
13550 if { (ac_try="$ac_compile"
13551 case "(($ac_try" in
13552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553   *) ac_try_echo=$ac_try;;
13554 esac
13555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556   (eval "$ac_compile") 2>conftest.er1
13557   ac_status=$?
13558   grep -v '^ *+' conftest.er1 >conftest.err
13559   rm -f conftest.er1
13560   cat conftest.err >&5
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); } &&
13563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13564   { (case "(($ac_try" in
13565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566   *) ac_try_echo=$ac_try;;
13567 esac
13568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569   (eval "$ac_try") 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; } &&
13573          { ac_try='test -s conftest.$ac_objext'
13574   { (case "(($ac_try" in
13575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576   *) ac_try_echo=$ac_try;;
13577 esac
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579   (eval "$ac_try") 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); }; }; then
13583   :
13584 else
13585   echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588         ac_c_werror_flag=$ac_save_c_werror_flag
13589          CFLAGS="-g"
13590          cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h.  */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h.  */
13596
13597 int
13598 main ()
13599 {
13600
13601   ;
13602   return 0;
13603 }
13604 _ACEOF
13605 rm -f conftest.$ac_objext
13606 if { (ac_try="$ac_compile"
13607 case "(($ac_try" in
13608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609   *) ac_try_echo=$ac_try;;
13610 esac
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612   (eval "$ac_compile") 2>conftest.er1
13613   ac_status=$?
13614   grep -v '^ *+' conftest.er1 >conftest.err
13615   rm -f conftest.er1
13616   cat conftest.err >&5
13617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618   (exit $ac_status); } &&
13619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13620   { (case "(($ac_try" in
13621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622   *) ac_try_echo=$ac_try;;
13623 esac
13624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625   (eval "$ac_try") 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; } &&
13629          { ac_try='test -s conftest.$ac_objext'
13630   { (case "(($ac_try" in
13631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632   *) ac_try_echo=$ac_try;;
13633 esac
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635   (eval "$ac_try") 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); }; }; then
13639   ac_cv_prog_cc_g=yes
13640 else
13641   echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13643
13644
13645 fi
13646
13647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13648 fi
13649
13650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651 fi
13652
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654    ac_c_werror_flag=$ac_save_c_werror_flag
13655 fi
13656 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13657 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13658 if test "$ac_test_CFLAGS" = set; then
13659   CFLAGS=$ac_save_CFLAGS
13660 elif test $ac_cv_prog_cc_g = yes; then
13661   if test "$GCC" = yes; then
13662     CFLAGS="-g -O2"
13663   else
13664     CFLAGS="-g"
13665   fi
13666 else
13667   if test "$GCC" = yes; then
13668     CFLAGS="-O2"
13669   else
13670     CFLAGS=
13671   fi
13672 fi
13673 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13674 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13675 if test "${ac_cv_prog_cc_c89+set}" = set; then
13676   echo $ECHO_N "(cached) $ECHO_C" >&6
13677 else
13678   ac_cv_prog_cc_c89=no
13679 ac_save_CC=$CC
13680 cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h.  */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h.  */
13686 #include <stdarg.h>
13687 #include <stdio.h>
13688 #include <sys/types.h>
13689 #include <sys/stat.h>
13690 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13691 struct buf { int x; };
13692 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13693 static char *e (p, i)
13694      char **p;
13695      int i;
13696 {
13697   return p[i];
13698 }
13699 static char *f (char * (*g) (char **, int), char **p, ...)
13700 {
13701   char *s;
13702   va_list v;
13703   va_start (v,p);
13704   s = g (p, va_arg (v,int));
13705   va_end (v);
13706   return s;
13707 }
13708
13709 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13710    function prototypes and stuff, but not '\xHH' hex character constants.
13711    These don't provoke an error unfortunately, instead are silently treated
13712    as 'x'.  The following induces an error, until -std is added to get
13713    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13714    array size at least.  It's necessary to write '\x00'==0 to get something
13715    that's true only with -std.  */
13716 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13717
13718 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13719    inside strings and character constants.  */
13720 #define FOO(x) 'x'
13721 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13722
13723 int test (int i, double x);
13724 struct s1 {int (*f) (int a);};
13725 struct s2 {int (*f) (double a);};
13726 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13727 int argc;
13728 char **argv;
13729 int
13730 main ()
13731 {
13732 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13733   ;
13734   return 0;
13735 }
13736 _ACEOF
13737 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13738         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13739 do
13740   CC="$ac_save_CC $ac_arg"
13741   rm -f conftest.$ac_objext
13742 if { (ac_try="$ac_compile"
13743 case "(($ac_try" in
13744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745   *) ac_try_echo=$ac_try;;
13746 esac
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748   (eval "$ac_compile") 2>conftest.er1
13749   ac_status=$?
13750   grep -v '^ *+' conftest.er1 >conftest.err
13751   rm -f conftest.er1
13752   cat conftest.err >&5
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } &&
13755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13756   { (case "(($ac_try" in
13757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758   *) ac_try_echo=$ac_try;;
13759 esac
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761   (eval "$ac_try") 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; } &&
13765          { ac_try='test -s conftest.$ac_objext'
13766   { (case "(($ac_try" in
13767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768   *) ac_try_echo=$ac_try;;
13769 esac
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771   (eval "$ac_try") 2>&5
13772   ac_status=$?
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); }; }; then
13775   ac_cv_prog_cc_c89=$ac_arg
13776 else
13777   echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780
13781 fi
13782
13783 rm -f core conftest.err conftest.$ac_objext
13784   test "x$ac_cv_prog_cc_c89" != "xno" && break
13785 done
13786 rm -f conftest.$ac_ext
13787 CC=$ac_save_CC
13788
13789 fi
13790 # AC_CACHE_VAL
13791 case "x$ac_cv_prog_cc_c89" in
13792   x)
13793     { echo "$as_me:$LINENO: result: none needed" >&5
13794 echo "${ECHO_T}none needed" >&6; } ;;
13795   xno)
13796     { echo "$as_me:$LINENO: result: unsupported" >&5
13797 echo "${ECHO_T}unsupported" >&6; } ;;
13798   *)
13799     CC="$CC $ac_cv_prog_cc_c89"
13800     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13801 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13802 esac
13803
13804
13805 ac_ext=c
13806 ac_cpp='$CPP $CPPFLAGS'
13807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13810
13811
13812
13813     ac_ext=c
13814 ac_cpp='$CPP $CPPFLAGS'
13815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13818
13819     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
13820 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
13821 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
13822   echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824   cat >conftest.$ac_ext <<_ACEOF
13825 /* confdefs.h.  */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h.  */
13830
13831 int
13832 main ()
13833 {
13834
13835              #ifndef __INTEL_COMPILER
13836                 choke me
13837              #endif
13838
13839   ;
13840   return 0;
13841 }
13842 _ACEOF
13843 rm -f conftest.$ac_objext
13844 if { (ac_try="$ac_compile"
13845 case "(($ac_try" in
13846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847   *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850   (eval "$ac_compile") 2>conftest.er1
13851   ac_status=$?
13852   grep -v '^ *+' conftest.er1 >conftest.err
13853   rm -f conftest.er1
13854   cat conftest.err >&5
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); } &&
13857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13858   { (case "(($ac_try" in
13859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860   *) ac_try_echo=$ac_try;;
13861 esac
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863   (eval "$ac_try") 2>&5
13864   ac_status=$?
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); }; } &&
13867          { ac_try='test -s conftest.$ac_objext'
13868   { (case "(($ac_try" in
13869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870   *) ac_try_echo=$ac_try;;
13871 esac
13872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873   (eval "$ac_try") 2>&5
13874   ac_status=$?
13875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876   (exit $ac_status); }; }; then
13877   bakefile_cv_c_compiler___INTEL_COMPILER=yes
13878 else
13879   echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13881
13882         bakefile_cv_c_compiler___INTEL_COMPILER=no
13883
13884 fi
13885
13886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887
13888
13889 fi
13890 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
13891 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
13892     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
13893         :; INTELCC=yes
13894     else
13895         :;
13896     fi
13897     ac_ext=c
13898 ac_cpp='$CPP $CPPFLAGS'
13899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13902
13903
13904
13905         if test "x$GCC" != "xyes"; then
13906         if test "xCC" = "xC"; then
13907             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
13908 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
13909 if test "${bakefile_cv_c_exto+set}" = set; then
13910   echo $ECHO_N "(cached) $ECHO_C" >&6
13911 else
13912   cat >conftest.$ac_ext <<_ACEOF
13913 /* confdefs.h.  */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h.  */
13918
13919 int
13920 main ()
13921 {
13922
13923   ;
13924   return 0;
13925 }
13926 _ACEOF
13927 rm -f conftest.$ac_objext conftest.$ac_ext.o
13928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13929   (eval $ac_compile) 2>&5
13930   ac_status=$?
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); }; then
13933   for ac_file in `(ls conftest.* 2>/dev/null)`; do
13934     case $ac_file in
13935         conftest.$ac_ext.o)
13936             bakefile_cv_c_exto="-ext o"
13937             ;;
13938         *)
13939             ;;
13940     esac
13941 done
13942 else
13943   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13944 See \`config.log' for more details." >&5
13945 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13946 See \`config.log' for more details." >&2;}
13947    { (exit 1); exit 1; }; }
13948
13949 fi
13950
13951 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13952
13953 fi
13954 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
13955 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
13956 if test "x$bakefile_cv_c_exto" '!=' "x"; then
13957     if test "c" = "c"; then
13958         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
13959     fi
13960     if test "c" = "cxx"; then
13961         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
13962     fi
13963 fi
13964
13965             if test "x$bakefile_cv_c_exto" '!=' "x"; then
13966                 unset ac_cv_prog_cc_g
13967                 ac_test_CFLAGS=${CFLAGS+set}
13968 ac_save_CFLAGS=$CFLAGS
13969 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13970 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13971 if test "${ac_cv_prog_cc_g+set}" = set; then
13972   echo $ECHO_N "(cached) $ECHO_C" >&6
13973 else
13974   ac_save_c_werror_flag=$ac_c_werror_flag
13975    ac_c_werror_flag=yes
13976    ac_cv_prog_cc_g=no
13977    CFLAGS="-g"
13978    cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h.  */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h.  */
13984
13985 int
13986 main ()
13987 {
13988
13989   ;
13990   return 0;
13991 }
13992 _ACEOF
13993 rm -f conftest.$ac_objext
13994 if { (ac_try="$ac_compile"
13995 case "(($ac_try" in
13996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997   *) ac_try_echo=$ac_try;;
13998 esac
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000   (eval "$ac_compile") 2>conftest.er1
14001   ac_status=$?
14002   grep -v '^ *+' conftest.er1 >conftest.err
14003   rm -f conftest.er1
14004   cat conftest.err >&5
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); } &&
14007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14008   { (case "(($ac_try" in
14009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010   *) ac_try_echo=$ac_try;;
14011 esac
14012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013   (eval "$ac_try") 2>&5
14014   ac_status=$?
14015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); }; } &&
14017          { ac_try='test -s conftest.$ac_objext'
14018   { (case "(($ac_try" in
14019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020   *) ac_try_echo=$ac_try;;
14021 esac
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023   (eval "$ac_try") 2>&5
14024   ac_status=$?
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); }; }; then
14027   ac_cv_prog_cc_g=yes
14028 else
14029   echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14031
14032         CFLAGS=""
14033       cat >conftest.$ac_ext <<_ACEOF
14034 /* confdefs.h.  */
14035 _ACEOF
14036 cat confdefs.h >>conftest.$ac_ext
14037 cat >>conftest.$ac_ext <<_ACEOF
14038 /* end confdefs.h.  */
14039
14040 int
14041 main ()
14042 {
14043
14044   ;
14045   return 0;
14046 }
14047 _ACEOF
14048 rm -f conftest.$ac_objext
14049 if { (ac_try="$ac_compile"
14050 case "(($ac_try" in
14051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052   *) ac_try_echo=$ac_try;;
14053 esac
14054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055   (eval "$ac_compile") 2>conftest.er1
14056   ac_status=$?
14057   grep -v '^ *+' conftest.er1 >conftest.err
14058   rm -f conftest.er1
14059   cat conftest.err >&5
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); } &&
14062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14063   { (case "(($ac_try" in
14064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065   *) ac_try_echo=$ac_try;;
14066 esac
14067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14068   (eval "$ac_try") 2>&5
14069   ac_status=$?
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); }; } &&
14072          { ac_try='test -s conftest.$ac_objext'
14073   { (case "(($ac_try" in
14074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075   *) ac_try_echo=$ac_try;;
14076 esac
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078   (eval "$ac_try") 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; }; then
14082   :
14083 else
14084   echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14086
14087         ac_c_werror_flag=$ac_save_c_werror_flag
14088          CFLAGS="-g"
14089          cat >conftest.$ac_ext <<_ACEOF
14090 /* confdefs.h.  */
14091 _ACEOF
14092 cat confdefs.h >>conftest.$ac_ext
14093 cat >>conftest.$ac_ext <<_ACEOF
14094 /* end confdefs.h.  */
14095
14096 int
14097 main ()
14098 {
14099
14100   ;
14101   return 0;
14102 }
14103 _ACEOF
14104 rm -f conftest.$ac_objext
14105 if { (ac_try="$ac_compile"
14106 case "(($ac_try" in
14107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108   *) ac_try_echo=$ac_try;;
14109 esac
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111   (eval "$ac_compile") 2>conftest.er1
14112   ac_status=$?
14113   grep -v '^ *+' conftest.er1 >conftest.err
14114   rm -f conftest.er1
14115   cat conftest.err >&5
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); } &&
14118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14119   { (case "(($ac_try" in
14120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121   *) ac_try_echo=$ac_try;;
14122 esac
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124   (eval "$ac_try") 2>&5
14125   ac_status=$?
14126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127   (exit $ac_status); }; } &&
14128          { ac_try='test -s conftest.$ac_objext'
14129   { (case "(($ac_try" in
14130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131   *) ac_try_echo=$ac_try;;
14132 esac
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134   (eval "$ac_try") 2>&5
14135   ac_status=$?
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); }; }; then
14138   ac_cv_prog_cc_g=yes
14139 else
14140   echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14142
14143
14144 fi
14145
14146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14147 fi
14148
14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14150 fi
14151
14152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14153    ac_c_werror_flag=$ac_save_c_werror_flag
14154 fi
14155 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14156 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14157 if test "$ac_test_CFLAGS" = set; then
14158   CFLAGS=$ac_save_CFLAGS
14159 elif test $ac_cv_prog_cc_g = yes; then
14160   if test "$GCC" = yes; then
14161     CFLAGS="-g -O2"
14162   else
14163     CFLAGS="-g"
14164   fi
14165 else
14166   if test "$GCC" = yes; then
14167     CFLAGS="-O2"
14168   else
14169     CFLAGS=
14170   fi
14171 fi
14172             fi
14173         fi
14174
14175                         case `uname -s` in
14176             AIX*)
14177                 ac_ext=c
14178 ac_cpp='$CPP $CPPFLAGS'
14179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14182
14183 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
14184 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
14185 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
14186   echo $ECHO_N "(cached) $ECHO_C" >&6
14187 else
14188   cat >conftest.$ac_ext <<_ACEOF
14189 /* confdefs.h.  */
14190 _ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h.  */
14194
14195 int
14196 main ()
14197 {
14198 #ifndef __xlC__
14199        choke me
14200 #endif
14201
14202   ;
14203   return 0;
14204 }
14205 _ACEOF
14206 rm -f conftest.$ac_objext
14207 if { (ac_try="$ac_compile"
14208 case "(($ac_try" in
14209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210   *) ac_try_echo=$ac_try;;
14211 esac
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213   (eval "$ac_compile") 2>conftest.er1
14214   ac_status=$?
14215   grep -v '^ *+' conftest.er1 >conftest.err
14216   rm -f conftest.er1
14217   cat conftest.err >&5
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } &&
14220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221   { (case "(($ac_try" in
14222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223   *) ac_try_echo=$ac_try;;
14224 esac
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226   (eval "$ac_try") 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; } &&
14230          { ac_try='test -s conftest.$ac_objext'
14231   { (case "(($ac_try" in
14232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233   *) ac_try_echo=$ac_try;;
14234 esac
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236   (eval "$ac_try") 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; }; then
14240   bakefile_compiler_xlc=yes
14241 else
14242   echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14244
14245         bakefile_compiler_xlc=no
14246 fi
14247
14248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14249     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
14250
14251 fi
14252 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
14253 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6; }
14254
14255 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
14256 ac_ext=c
14257 ac_cpp='$CPP $CPPFLAGS'
14258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14261
14262
14263                 ;;
14264
14265             Darwin)
14266                 ac_ext=c
14267 ac_cpp='$CPP $CPPFLAGS'
14268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14271
14272 { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
14273 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
14274 if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
14275   echo $ECHO_N "(cached) $ECHO_C" >&6
14276 else
14277   cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h.  */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h.  */
14283
14284 int
14285 main ()
14286 {
14287 #ifndef __MWERKS__
14288        choke me
14289 #endif
14290
14291   ;
14292   return 0;
14293 }
14294 _ACEOF
14295 rm -f conftest.$ac_objext
14296 if { (ac_try="$ac_compile"
14297 case "(($ac_try" in
14298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299   *) ac_try_echo=$ac_try;;
14300 esac
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302   (eval "$ac_compile") 2>conftest.er1
14303   ac_status=$?
14304   grep -v '^ *+' conftest.er1 >conftest.err
14305   rm -f conftest.er1
14306   cat conftest.err >&5
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); } &&
14309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14310   { (case "(($ac_try" in
14311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312   *) ac_try_echo=$ac_try;;
14313 esac
14314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14315   (eval "$ac_try") 2>&5
14316   ac_status=$?
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); }; } &&
14319          { ac_try='test -s conftest.$ac_objext'
14320   { (case "(($ac_try" in
14321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322   *) ac_try_echo=$ac_try;;
14323 esac
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325   (eval "$ac_try") 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); }; }; then
14329   bakefile_compiler_mwerks=yes
14330 else
14331   echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14333
14334         bakefile_compiler_mwerks=no
14335 fi
14336
14337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338     bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
14339
14340 fi
14341 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
14342 echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6; }
14343
14344 MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
14345 ac_ext=c
14346 ac_cpp='$CPP $CPPFLAGS'
14347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14350
14351
14352                 ac_ext=c
14353 ac_cpp='$CPP $CPPFLAGS'
14354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14357
14358 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
14359 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
14360 if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
14361   echo $ECHO_N "(cached) $ECHO_C" >&6
14362 else
14363   cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h.  */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h.  */
14369
14370 int
14371 main ()
14372 {
14373 #ifndef __xlC__
14374        choke me
14375 #endif
14376
14377   ;
14378   return 0;
14379 }
14380 _ACEOF
14381 rm -f conftest.$ac_objext
14382 if { (ac_try="$ac_compile"
14383 case "(($ac_try" in
14384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385   *) ac_try_echo=$ac_try;;
14386 esac
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388   (eval "$ac_compile") 2>conftest.er1
14389   ac_status=$?
14390   grep -v '^ *+' conftest.er1 >conftest.err
14391   rm -f conftest.er1
14392   cat conftest.err >&5
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); } &&
14395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14396   { (case "(($ac_try" in
14397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398   *) ac_try_echo=$ac_try;;
14399 esac
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401   (eval "$ac_try") 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); }; } &&
14405          { ac_try='test -s conftest.$ac_objext'
14406   { (case "(($ac_try" in
14407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408   *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411   (eval "$ac_try") 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }; }; then
14415   bakefile_compiler_xlc=yes
14416 else
14417   echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14419
14420         bakefile_compiler_xlc=no
14421 fi
14422
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424     bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
14425
14426 fi
14427 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
14428 echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6; }
14429
14430 XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
14431 ac_ext=c
14432 ac_cpp='$CPP $CPPFLAGS'
14433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14436
14437
14438                 ;;
14439
14440             IRIX*)
14441
14442
14443     ac_ext=c
14444 ac_cpp='$CPP $CPPFLAGS'
14445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14448
14449     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
14450 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
14451 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
14452   echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454   cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h.  */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h.  */
14460
14461 int
14462 main ()
14463 {
14464
14465              #ifndef _SGI_COMPILER_VERSION
14466                 choke me
14467              #endif
14468
14469   ;
14470   return 0;
14471 }
14472 _ACEOF
14473 rm -f conftest.$ac_objext
14474 if { (ac_try="$ac_compile"
14475 case "(($ac_try" in
14476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477   *) ac_try_echo=$ac_try;;
14478 esac
14479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14480   (eval "$ac_compile") 2>conftest.er1
14481   ac_status=$?
14482   grep -v '^ *+' conftest.er1 >conftest.err
14483   rm -f conftest.er1
14484   cat conftest.err >&5
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); } &&
14487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14488   { (case "(($ac_try" in
14489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490   *) ac_try_echo=$ac_try;;
14491 esac
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493   (eval "$ac_try") 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; } &&
14497          { ac_try='test -s conftest.$ac_objext'
14498   { (case "(($ac_try" in
14499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500   *) ac_try_echo=$ac_try;;
14501 esac
14502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14503   (eval "$ac_try") 2>&5
14504   ac_status=$?
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); }; }; then
14507   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
14508 else
14509   echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14511
14512         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
14513
14514 fi
14515
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517
14518
14519 fi
14520 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
14521 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
14522     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14523         :; SGICC=yes
14524     else
14525         :;
14526     fi
14527     ac_ext=c
14528 ac_cpp='$CPP $CPPFLAGS'
14529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14532
14533
14534
14535                 ;;
14536
14537             HP-UX*)
14538
14539
14540     ac_ext=c
14541 ac_cpp='$CPP $CPPFLAGS'
14542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14545
14546     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
14547 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
14548 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
14549   echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551   cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h.  */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h.  */
14557
14558 int
14559 main ()
14560 {
14561
14562              #ifndef __HP_cc
14563                 choke me
14564              #endif
14565
14566   ;
14567   return 0;
14568 }
14569 _ACEOF
14570 rm -f conftest.$ac_objext
14571 if { (ac_try="$ac_compile"
14572 case "(($ac_try" in
14573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14574   *) ac_try_echo=$ac_try;;
14575 esac
14576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14577   (eval "$ac_compile") 2>conftest.er1
14578   ac_status=$?
14579   grep -v '^ *+' conftest.er1 >conftest.err
14580   rm -f conftest.er1
14581   cat conftest.err >&5
14582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); } &&
14584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14585   { (case "(($ac_try" in
14586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14587   *) ac_try_echo=$ac_try;;
14588 esac
14589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14590   (eval "$ac_try") 2>&5
14591   ac_status=$?
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); }; } &&
14594          { ac_try='test -s conftest.$ac_objext'
14595   { (case "(($ac_try" in
14596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597   *) ac_try_echo=$ac_try;;
14598 esac
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600   (eval "$ac_try") 2>&5
14601   ac_status=$?
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); }; }; then
14604   bakefile_cv_c_compiler___HP_cc=yes
14605 else
14606   echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.$ac_ext >&5
14608
14609         bakefile_cv_c_compiler___HP_cc=no
14610
14611 fi
14612
14613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14614
14615
14616 fi
14617 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
14618 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
14619     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
14620         :; HPCC=yes
14621     else
14622         :;
14623     fi
14624     ac_ext=c
14625 ac_cpp='$CPP $CPPFLAGS'
14626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14629
14630
14631
14632                 ;;
14633
14634             OSF1)
14635
14636
14637     ac_ext=c
14638 ac_cpp='$CPP $CPPFLAGS'
14639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14642
14643     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
14644 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
14645 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
14646   echo $ECHO_N "(cached) $ECHO_C" >&6
14647 else
14648   cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h.  */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h.  */
14654
14655 int
14656 main ()
14657 {
14658
14659              #ifndef __DECC
14660                 choke me
14661              #endif
14662
14663   ;
14664   return 0;
14665 }
14666 _ACEOF
14667 rm -f conftest.$ac_objext
14668 if { (ac_try="$ac_compile"
14669 case "(($ac_try" in
14670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671   *) ac_try_echo=$ac_try;;
14672 esac
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674   (eval "$ac_compile") 2>conftest.er1
14675   ac_status=$?
14676   grep -v '^ *+' conftest.er1 >conftest.err
14677   rm -f conftest.er1
14678   cat conftest.err >&5
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } &&
14681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14682   { (case "(($ac_try" in
14683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684   *) ac_try_echo=$ac_try;;
14685 esac
14686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14687   (eval "$ac_try") 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); }; } &&
14691          { ac_try='test -s conftest.$ac_objext'
14692   { (case "(($ac_try" in
14693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694   *) ac_try_echo=$ac_try;;
14695 esac
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697   (eval "$ac_try") 2>&5
14698   ac_status=$?
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); }; }; then
14701   bakefile_cv_c_compiler___DECC=yes
14702 else
14703   echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14705
14706         bakefile_cv_c_compiler___DECC=no
14707
14708 fi
14709
14710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711
14712
14713 fi
14714 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
14715 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
14716     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
14717         :; COMPAQCC=yes
14718     else
14719         :;
14720     fi
14721     ac_ext=c
14722 ac_cpp='$CPP $CPPFLAGS'
14723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14726
14727
14728
14729                 ;;
14730
14731             SunOS)
14732
14733
14734     ac_ext=c
14735 ac_cpp='$CPP $CPPFLAGS'
14736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14739
14740     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
14741 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
14742 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
14743   echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745   cat >conftest.$ac_ext <<_ACEOF
14746 /* confdefs.h.  */
14747 _ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h.  */
14751
14752 int
14753 main ()
14754 {
14755
14756              #ifndef __SUNPRO_C
14757                 choke me
14758              #endif
14759
14760   ;
14761   return 0;
14762 }
14763 _ACEOF
14764 rm -f conftest.$ac_objext
14765 if { (ac_try="$ac_compile"
14766 case "(($ac_try" in
14767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768   *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771   (eval "$ac_compile") 2>conftest.er1
14772   ac_status=$?
14773   grep -v '^ *+' conftest.er1 >conftest.err
14774   rm -f conftest.er1
14775   cat conftest.err >&5
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); } &&
14778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14779   { (case "(($ac_try" in
14780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781   *) ac_try_echo=$ac_try;;
14782 esac
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784   (eval "$ac_try") 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; } &&
14788          { ac_try='test -s conftest.$ac_objext'
14789   { (case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794   (eval "$ac_try") 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); }; }; then
14798   bakefile_cv_c_compiler___SUNPRO_C=yes
14799 else
14800   echo "$as_me: failed program was:" >&5
14801 sed 's/^/| /' conftest.$ac_ext >&5
14802
14803         bakefile_cv_c_compiler___SUNPRO_C=no
14804
14805 fi
14806
14807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14808
14809
14810 fi
14811 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
14812 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
14813     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
14814         :; SUNCC=yes
14815     else
14816         :;
14817     fi
14818     ac_ext=c
14819 ac_cpp='$CPP $CPPFLAGS'
14820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14823
14824
14825
14826                 ;;
14827         esac
14828     fi
14829
14830
14831
14832 ac_ext=c
14833 ac_cpp='$CPP $CPPFLAGS'
14834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14837 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
14838 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
14839 # On Suns, sometimes $CPP names a directory.
14840 if test -n "$CPP" && test -d "$CPP"; then
14841   CPP=
14842 fi
14843 if test -z "$CPP"; then
14844   if test "${ac_cv_prog_CPP+set}" = set; then
14845   echo $ECHO_N "(cached) $ECHO_C" >&6
14846 else
14847       # Double quotes because CPP needs to be expanded
14848     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14849     do
14850       ac_preproc_ok=false
14851 for ac_c_preproc_warn_flag in '' yes
14852 do
14853   # Use a header file that comes with gcc, so configuring glibc
14854   # with a fresh cross-compiler works.
14855   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14856   # <limits.h> exists even on freestanding compilers.
14857   # On the NeXT, cc -E runs the code through the compiler's parser,
14858   # not just through cpp. "Syntax error" is here to catch this case.
14859   cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h.  */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h.  */
14865 #ifdef __STDC__
14866 # include <limits.h>
14867 #else
14868 # include <assert.h>
14869 #endif
14870                      Syntax error
14871 _ACEOF
14872 if { (ac_try="$ac_cpp conftest.$ac_ext"
14873 case "(($ac_try" in
14874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875   *) ac_try_echo=$ac_try;;
14876 esac
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14879   ac_status=$?
14880   grep -v '^ *+' conftest.er1 >conftest.err
14881   rm -f conftest.er1
14882   cat conftest.err >&5
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); } >/dev/null; then
14885   if test -s conftest.err; then
14886     ac_cpp_err=$ac_c_preproc_warn_flag
14887     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14888   else
14889     ac_cpp_err=
14890   fi
14891 else
14892   ac_cpp_err=yes
14893 fi
14894 if test -z "$ac_cpp_err"; then
14895   :
14896 else
14897   echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14899
14900   # Broken: fails on valid input.
14901 continue
14902 fi
14903
14904 rm -f conftest.err conftest.$ac_ext
14905
14906   # OK, works on sane cases.  Now check whether nonexistent headers
14907   # can be detected and how.
14908   cat >conftest.$ac_ext <<_ACEOF
14909 /* confdefs.h.  */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h.  */
14914 #include <ac_nonexistent.h>
14915 _ACEOF
14916 if { (ac_try="$ac_cpp conftest.$ac_ext"
14917 case "(($ac_try" in
14918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14919   *) ac_try_echo=$ac_try;;
14920 esac
14921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14923   ac_status=$?
14924   grep -v '^ *+' conftest.er1 >conftest.err
14925   rm -f conftest.er1
14926   cat conftest.err >&5
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); } >/dev/null; then
14929   if test -s conftest.err; then
14930     ac_cpp_err=$ac_c_preproc_warn_flag
14931     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14932   else
14933     ac_cpp_err=
14934   fi
14935 else
14936   ac_cpp_err=yes
14937 fi
14938 if test -z "$ac_cpp_err"; then
14939   # Broken: success on invalid input.
14940 continue
14941 else
14942   echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14944
14945   # Passes both tests.
14946 ac_preproc_ok=:
14947 break
14948 fi
14949
14950 rm -f conftest.err conftest.$ac_ext
14951
14952 done
14953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14954 rm -f conftest.err conftest.$ac_ext
14955 if $ac_preproc_ok; then
14956   break
14957 fi
14958
14959     done
14960     ac_cv_prog_CPP=$CPP
14961
14962 fi
14963   CPP=$ac_cv_prog_CPP
14964 else
14965   ac_cv_prog_CPP=$CPP
14966 fi
14967 { echo "$as_me:$LINENO: result: $CPP" >&5
14968 echo "${ECHO_T}$CPP" >&6; }
14969 ac_preproc_ok=false
14970 for ac_c_preproc_warn_flag in '' yes
14971 do
14972   # Use a header file that comes with gcc, so configuring glibc
14973   # with a fresh cross-compiler works.
14974   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14975   # <limits.h> exists even on freestanding compilers.
14976   # On the NeXT, cc -E runs the code through the compiler's parser,
14977   # not just through cpp. "Syntax error" is here to catch this case.
14978   cat >conftest.$ac_ext <<_ACEOF
14979 /* confdefs.h.  */
14980 _ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h.  */
14984 #ifdef __STDC__
14985 # include <limits.h>
14986 #else
14987 # include <assert.h>
14988 #endif
14989                      Syntax error
14990 _ACEOF
14991 if { (ac_try="$ac_cpp conftest.$ac_ext"
14992 case "(($ac_try" in
14993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14994   *) ac_try_echo=$ac_try;;
14995 esac
14996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14998   ac_status=$?
14999   grep -v '^ *+' conftest.er1 >conftest.err
15000   rm -f conftest.er1
15001   cat conftest.err >&5
15002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003   (exit $ac_status); } >/dev/null; then
15004   if test -s conftest.err; then
15005     ac_cpp_err=$ac_c_preproc_warn_flag
15006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15007   else
15008     ac_cpp_err=
15009   fi
15010 else
15011   ac_cpp_err=yes
15012 fi
15013 if test -z "$ac_cpp_err"; then
15014   :
15015 else
15016   echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15018
15019   # Broken: fails on valid input.
15020 continue
15021 fi
15022
15023 rm -f conftest.err conftest.$ac_ext
15024
15025   # OK, works on sane cases.  Now check whether nonexistent headers
15026   # can be detected and how.
15027   cat >conftest.$ac_ext <<_ACEOF
15028 /* confdefs.h.  */
15029 _ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h.  */
15033 #include <ac_nonexistent.h>
15034 _ACEOF
15035 if { (ac_try="$ac_cpp conftest.$ac_ext"
15036 case "(($ac_try" in
15037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038   *) ac_try_echo=$ac_try;;
15039 esac
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15042   ac_status=$?
15043   grep -v '^ *+' conftest.er1 >conftest.err
15044   rm -f conftest.er1
15045   cat conftest.err >&5
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } >/dev/null; then
15048   if test -s conftest.err; then
15049     ac_cpp_err=$ac_c_preproc_warn_flag
15050     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15051   else
15052     ac_cpp_err=
15053   fi
15054 else
15055   ac_cpp_err=yes
15056 fi
15057 if test -z "$ac_cpp_err"; then
15058   # Broken: success on invalid input.
15059 continue
15060 else
15061   echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064   # Passes both tests.
15065 ac_preproc_ok=:
15066 break
15067 fi
15068
15069 rm -f conftest.err conftest.$ac_ext
15070
15071 done
15072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15073 rm -f conftest.err conftest.$ac_ext
15074 if $ac_preproc_ok; then
15075   :
15076 else
15077   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
15078 See \`config.log' for more details." >&5
15079 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
15080 See \`config.log' for more details." >&2;}
15081    { (exit 1); exit 1; }; }
15082 fi
15083
15084 ac_ext=c
15085 ac_cpp='$CPP $CPPFLAGS'
15086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15089
15090
15091 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
15092 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
15093 if test "${ac_cv_path_GREP+set}" = set; then
15094   echo $ECHO_N "(cached) $ECHO_C" >&6
15095 else
15096   # Extract the first word of "grep ggrep" to use in msg output
15097 if test -z "$GREP"; then
15098 set dummy grep ggrep; ac_prog_name=$2
15099 if test "${ac_cv_path_GREP+set}" = set; then
15100   echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102   ac_path_GREP_found=false
15103 # Loop through the user's path and test for each of PROGNAME-LIST
15104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15106 do
15107   IFS=$as_save_IFS
15108   test -z "$as_dir" && as_dir=.
15109   for ac_prog in grep ggrep; do
15110   for ac_exec_ext in '' $ac_executable_extensions; do
15111     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
15112     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
15113     # Check for GNU ac_path_GREP and select it if it is found.
15114   # Check for GNU $ac_path_GREP
15115 case `"$ac_path_GREP" --version 2>&1` in
15116 *GNU*)
15117   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
15118 *)
15119   ac_count=0
15120   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
15121   while :
15122   do
15123     cat "conftest.in" "conftest.in" >"conftest.tmp"
15124     mv "conftest.tmp" "conftest.in"
15125     cp "conftest.in" "conftest.nl"
15126     echo 'GREP' >> "conftest.nl"
15127     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15128     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15129     ac_count=`expr $ac_count + 1`
15130     if test $ac_count -gt ${ac_path_GREP_max-0}; then
15131       # Best one so far, save it but keep looking for a better one
15132       ac_cv_path_GREP="$ac_path_GREP"
15133       ac_path_GREP_max=$ac_count
15134     fi
15135     # 10*(2^10) chars as input seems more than enough
15136     test $ac_count -gt 10 && break
15137   done
15138   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15139 esac
15140
15141
15142     $ac_path_GREP_found && break 3
15143   done
15144 done
15145
15146 done
15147 IFS=$as_save_IFS
15148
15149
15150 fi
15151
15152 GREP="$ac_cv_path_GREP"
15153 if test -z "$GREP"; then
15154   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
15155 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
15156    { (exit 1); exit 1; }; }
15157 fi
15158
15159 else
15160   ac_cv_path_GREP=$GREP
15161 fi
15162
15163
15164 fi
15165 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
15166 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
15167  GREP="$ac_cv_path_GREP"
15168
15169
15170 { echo "$as_me:$LINENO: checking for egrep" >&5
15171 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
15172 if test "${ac_cv_path_EGREP+set}" = set; then
15173   echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
15176    then ac_cv_path_EGREP="$GREP -E"
15177    else
15178      # Extract the first word of "egrep" to use in msg output
15179 if test -z "$EGREP"; then
15180 set dummy egrep; ac_prog_name=$2
15181 if test "${ac_cv_path_EGREP+set}" = set; then
15182   echo $ECHO_N "(cached) $ECHO_C" >&6
15183 else
15184   ac_path_EGREP_found=false
15185 # Loop through the user's path and test for each of PROGNAME-LIST
15186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
15188 do
15189   IFS=$as_save_IFS
15190   test -z "$as_dir" && as_dir=.
15191   for ac_prog in egrep; do
15192   for ac_exec_ext in '' $ac_executable_extensions; do
15193     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
15194     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
15195     # Check for GNU ac_path_EGREP and select it if it is found.
15196   # Check for GNU $ac_path_EGREP
15197 case `"$ac_path_EGREP" --version 2>&1` in
15198 *GNU*)
15199   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
15200 *)
15201   ac_count=0
15202   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
15203   while :
15204   do
15205     cat "conftest.in" "conftest.in" >"conftest.tmp"
15206     mv "conftest.tmp" "conftest.in"
15207     cp "conftest.in" "conftest.nl"
15208     echo 'EGREP' >> "conftest.nl"
15209     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
15210     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15211     ac_count=`expr $ac_count + 1`
15212     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
15213       # Best one so far, save it but keep looking for a better one
15214       ac_cv_path_EGREP="$ac_path_EGREP"
15215       ac_path_EGREP_max=$ac_count
15216     fi
15217     # 10*(2^10) chars as input seems more than enough
15218     test $ac_count -gt 10 && break
15219   done
15220   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15221 esac
15222
15223
15224     $ac_path_EGREP_found && break 3
15225   done
15226 done
15227
15228 done
15229 IFS=$as_save_IFS
15230
15231
15232 fi
15233
15234 EGREP="$ac_cv_path_EGREP"
15235 if test -z "$EGREP"; then
15236   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
15237 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
15238    { (exit 1); exit 1; }; }
15239 fi
15240
15241 else
15242   ac_cv_path_EGREP=$EGREP
15243 fi
15244
15245
15246    fi
15247 fi
15248 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
15249 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
15250  EGREP="$ac_cv_path_EGREP"
15251
15252
15253 if test $ac_cv_c_compiler_gnu = yes; then
15254     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
15255 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
15256 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
15257   echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259     ac_pattern="Autoconf.*'x'"
15260   cat >conftest.$ac_ext <<_ACEOF
15261 /* confdefs.h.  */
15262 _ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h.  */
15266 #include <sgtty.h>
15267 Autoconf TIOCGETP
15268 _ACEOF
15269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15270   $EGREP "$ac_pattern" >/dev/null 2>&1; then
15271   ac_cv_prog_gcc_traditional=yes
15272 else
15273   ac_cv_prog_gcc_traditional=no
15274 fi
15275 rm -f conftest*
15276
15277
15278   if test $ac_cv_prog_gcc_traditional = no; then
15279     cat >conftest.$ac_ext <<_ACEOF
15280 /* confdefs.h.  */
15281 _ACEOF
15282 cat confdefs.h >>conftest.$ac_ext
15283 cat >>conftest.$ac_ext <<_ACEOF
15284 /* end confdefs.h.  */
15285 #include <termio.h>
15286 Autoconf TCGETA
15287 _ACEOF
15288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15289   $EGREP "$ac_pattern" >/dev/null 2>&1; then
15290   ac_cv_prog_gcc_traditional=yes
15291 fi
15292 rm -f conftest*
15293
15294   fi
15295 fi
15296 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
15297 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
15298   if test $ac_cv_prog_gcc_traditional = yes; then
15299     CC="$CC -traditional"
15300   fi
15301 fi
15302
15303
15304 CXXFLAGS=${CXXFLAGS:=}
15305
15306
15307
15308     ac_ext=cpp
15309 ac_cpp='$CXXCPP $CPPFLAGS'
15310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15313 if test -z "$CXX"; then
15314   if test -n "$CCC"; then
15315     CXX=$CCC
15316   else
15317     if test -n "$ac_tool_prefix"; then
15318   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15319   do
15320     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15324 if test "${ac_cv_prog_CXX+set}" = set; then
15325   echo $ECHO_N "(cached) $ECHO_C" >&6
15326 else
15327   if test -n "$CXX"; then
15328   ac_cv_prog_CXX="$CXX" # Let the user override the test.
15329 else
15330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331 for as_dir in $PATH
15332 do
15333   IFS=$as_save_IFS
15334   test -z "$as_dir" && as_dir=.
15335   for ac_exec_ext in '' $ac_executable_extensions; do
15336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15337     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15339     break 2
15340   fi
15341 done
15342 done
15343 IFS=$as_save_IFS
15344
15345 fi
15346 fi
15347 CXX=$ac_cv_prog_CXX
15348 if test -n "$CXX"; then
15349   { echo "$as_me:$LINENO: result: $CXX" >&5
15350 echo "${ECHO_T}$CXX" >&6; }
15351 else
15352   { echo "$as_me:$LINENO: result: no" >&5
15353 echo "${ECHO_T}no" >&6; }
15354 fi
15355
15356
15357     test -n "$CXX" && break
15358   done
15359 fi
15360 if test -z "$CXX"; then
15361   ac_ct_CXX=$CXX
15362   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
15363 do
15364   # Extract the first word of "$ac_prog", so it can be a program name with args.
15365 set dummy $ac_prog; ac_word=$2
15366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15368 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15369   echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371   if test -n "$ac_ct_CXX"; then
15372   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15373 else
15374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15375 for as_dir in $PATH
15376 do
15377   IFS=$as_save_IFS
15378   test -z "$as_dir" && as_dir=.
15379   for ac_exec_ext in '' $ac_executable_extensions; do
15380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15381     ac_cv_prog_ac_ct_CXX="$ac_prog"
15382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15383     break 2
15384   fi
15385 done
15386 done
15387 IFS=$as_save_IFS
15388
15389 fi
15390 fi
15391 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15392 if test -n "$ac_ct_CXX"; then
15393   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15394 echo "${ECHO_T}$ac_ct_CXX" >&6; }
15395 else
15396   { echo "$as_me:$LINENO: result: no" >&5
15397 echo "${ECHO_T}no" >&6; }
15398 fi
15399
15400
15401   test -n "$ac_ct_CXX" && break
15402 done
15403
15404   if test "x$ac_ct_CXX" = x; then
15405     CXX="g++"
15406   else
15407     case $cross_compiling:$ac_tool_warned in
15408 yes:)
15409 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15410 whose name does not start with the host triplet.  If you think this
15411 configuration is useful to you, please write to autoconf@gnu.org." >&5
15412 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15413 whose name does not start with the host triplet.  If you think this
15414 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15415 ac_tool_warned=yes ;;
15416 esac
15417     CXX=$ac_ct_CXX
15418   fi
15419 fi
15420
15421   fi
15422 fi
15423 # Provide some information about the compiler.
15424 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
15425 ac_compiler=`set X $ac_compile; echo $2`
15426 { (ac_try="$ac_compiler --version >&5"
15427 case "(($ac_try" in
15428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429   *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432   (eval "$ac_compiler --version >&5") 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }
15436 { (ac_try="$ac_compiler -v >&5"
15437 case "(($ac_try" in
15438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439   *) ac_try_echo=$ac_try;;
15440 esac
15441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15442   (eval "$ac_compiler -v >&5") 2>&5
15443   ac_status=$?
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); }
15446 { (ac_try="$ac_compiler -V >&5"
15447 case "(($ac_try" in
15448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449   *) ac_try_echo=$ac_try;;
15450 esac
15451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15452   (eval "$ac_compiler -V >&5") 2>&5
15453   ac_status=$?
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); }
15456
15457 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15458 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
15459 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15460   echo $ECHO_N "(cached) $ECHO_C" >&6
15461 else
15462   cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h.  */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h.  */
15468
15469 int
15470 main ()
15471 {
15472 #ifndef __GNUC__
15473        choke me
15474 #endif
15475
15476   ;
15477   return 0;
15478 }
15479 _ACEOF
15480 rm -f conftest.$ac_objext
15481 if { (ac_try="$ac_compile"
15482 case "(($ac_try" in
15483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15484   *) ac_try_echo=$ac_try;;
15485 esac
15486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15487   (eval "$ac_compile") 2>conftest.er1
15488   ac_status=$?
15489   grep -v '^ *+' conftest.er1 >conftest.err
15490   rm -f conftest.er1
15491   cat conftest.err >&5
15492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493   (exit $ac_status); } &&
15494          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15495   { (case "(($ac_try" in
15496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497   *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500   (eval "$ac_try") 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }; } &&
15504          { ac_try='test -s conftest.$ac_objext'
15505   { (case "(($ac_try" in
15506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507   *) ac_try_echo=$ac_try;;
15508 esac
15509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15510   (eval "$ac_try") 2>&5
15511   ac_status=$?
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); }; }; then
15514   ac_compiler_gnu=yes
15515 else
15516   echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15518
15519         ac_compiler_gnu=no
15520 fi
15521
15522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15523 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15524
15525 fi
15526 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15527 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
15528 GXX=`test $ac_compiler_gnu = yes && echo yes`
15529 ac_test_CXXFLAGS=${CXXFLAGS+set}
15530 ac_save_CXXFLAGS=$CXXFLAGS
15531 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15532 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
15533 if test "${ac_cv_prog_cxx_g+set}" = set; then
15534   echo $ECHO_N "(cached) $ECHO_C" >&6
15535 else
15536   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15537    ac_cxx_werror_flag=yes
15538    ac_cv_prog_cxx_g=no
15539    CXXFLAGS="-g"
15540    cat >conftest.$ac_ext <<_ACEOF
15541 /* confdefs.h.  */
15542 _ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h.  */
15546
15547 int
15548 main ()
15549 {
15550
15551   ;
15552   return 0;
15553 }
15554 _ACEOF
15555 rm -f conftest.$ac_objext
15556 if { (ac_try="$ac_compile"
15557 case "(($ac_try" in
15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559   *) ac_try_echo=$ac_try;;
15560 esac
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562   (eval "$ac_compile") 2>conftest.er1
15563   ac_status=$?
15564   grep -v '^ *+' conftest.er1 >conftest.err
15565   rm -f conftest.er1
15566   cat conftest.err >&5
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); } &&
15569          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15570   { (case "(($ac_try" in
15571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572   *) ac_try_echo=$ac_try;;
15573 esac
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575   (eval "$ac_try") 2>&5
15576   ac_status=$?
15577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); }; } &&
15579          { ac_try='test -s conftest.$ac_objext'
15580   { (case "(($ac_try" in
15581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582   *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585   (eval "$ac_try") 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; }; then
15589   ac_cv_prog_cxx_g=yes
15590 else
15591   echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15593
15594         CXXFLAGS=""
15595       cat >conftest.$ac_ext <<_ACEOF
15596 /* confdefs.h.  */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h.  */
15601
15602 int
15603 main ()
15604 {
15605
15606   ;
15607   return 0;
15608 }
15609 _ACEOF
15610 rm -f conftest.$ac_objext
15611 if { (ac_try="$ac_compile"
15612 case "(($ac_try" in
15613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614   *) ac_try_echo=$ac_try;;
15615 esac
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617   (eval "$ac_compile") 2>conftest.er1
15618   ac_status=$?
15619   grep -v '^ *+' conftest.er1 >conftest.err
15620   rm -f conftest.er1
15621   cat conftest.err >&5
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); } &&
15624          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15625   { (case "(($ac_try" in
15626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627   *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630   (eval "$ac_try") 2>&5
15631   ac_status=$?
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); }; } &&
15634          { ac_try='test -s conftest.$ac_objext'
15635   { (case "(($ac_try" in
15636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637   *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640   (eval "$ac_try") 2>&5
15641   ac_status=$?
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); }; }; then
15644   :
15645 else
15646   echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15648
15649         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15650          CXXFLAGS="-g"
15651          cat >conftest.$ac_ext <<_ACEOF
15652 /* confdefs.h.  */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h.  */
15657
15658 int
15659 main ()
15660 {
15661
15662   ;
15663   return 0;
15664 }
15665 _ACEOF
15666 rm -f conftest.$ac_objext
15667 if { (ac_try="$ac_compile"
15668 case "(($ac_try" in
15669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15670   *) ac_try_echo=$ac_try;;
15671 esac
15672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15673   (eval "$ac_compile") 2>conftest.er1
15674   ac_status=$?
15675   grep -v '^ *+' conftest.er1 >conftest.err
15676   rm -f conftest.er1
15677   cat conftest.err >&5
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } &&
15680          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15681   { (case "(($ac_try" in
15682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683   *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686   (eval "$ac_try") 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; } &&
15690          { ac_try='test -s conftest.$ac_objext'
15691   { (case "(($ac_try" in
15692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693   *) ac_try_echo=$ac_try;;
15694 esac
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696   (eval "$ac_try") 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); }; }; then
15700   ac_cv_prog_cxx_g=yes
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705
15706 fi
15707
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709 fi
15710
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 fi
15713
15714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15715    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15716 fi
15717 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15718 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
15719 if test "$ac_test_CXXFLAGS" = set; then
15720   CXXFLAGS=$ac_save_CXXFLAGS
15721 elif test $ac_cv_prog_cxx_g = yes; then
15722   if test "$GXX" = yes; then
15723     CXXFLAGS="-g -O2"
15724   else
15725     CXXFLAGS="-g"
15726   fi
15727 else
15728   if test "$GXX" = yes; then
15729     CXXFLAGS="-O2"
15730   else
15731     CXXFLAGS=
15732   fi
15733 fi
15734 ac_ext=c
15735 ac_cpp='$CPP $CPPFLAGS'
15736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15739
15740
15741
15742     ac_ext=cpp
15743 ac_cpp='$CXXCPP $CPPFLAGS'
15744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15747
15748     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
15749 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
15750 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
15751   echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753   cat >conftest.$ac_ext <<_ACEOF
15754 /* confdefs.h.  */
15755 _ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h.  */
15759
15760 int
15761 main ()
15762 {
15763
15764              #ifndef __INTEL_COMPILER
15765                 choke me
15766              #endif
15767
15768   ;
15769   return 0;
15770 }
15771 _ACEOF
15772 rm -f conftest.$ac_objext
15773 if { (ac_try="$ac_compile"
15774 case "(($ac_try" in
15775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776   *) ac_try_echo=$ac_try;;
15777 esac
15778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779   (eval "$ac_compile") 2>conftest.er1
15780   ac_status=$?
15781   grep -v '^ *+' conftest.er1 >conftest.err
15782   rm -f conftest.er1
15783   cat conftest.err >&5
15784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785   (exit $ac_status); } &&
15786          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15787   { (case "(($ac_try" in
15788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789   *) ac_try_echo=$ac_try;;
15790 esac
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792   (eval "$ac_try") 2>&5
15793   ac_status=$?
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); }; } &&
15796          { ac_try='test -s conftest.$ac_objext'
15797   { (case "(($ac_try" in
15798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799   *) ac_try_echo=$ac_try;;
15800 esac
15801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802   (eval "$ac_try") 2>&5
15803   ac_status=$?
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); }; }; then
15806   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
15807 else
15808   echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15810
15811         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
15812
15813 fi
15814
15815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15816
15817
15818 fi
15819 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
15820 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
15821     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
15822         :; INTELCXX=yes
15823     else
15824         :;
15825     fi
15826     ac_ext=c
15827 ac_cpp='$CPP $CPPFLAGS'
15828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15831
15832
15833
15834         if test "x$GCXX" != "xyes"; then
15835         if test "xCXX" = "xC"; then
15836             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15837 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15838 if test "${bakefile_cv_c_exto+set}" = set; then
15839   echo $ECHO_N "(cached) $ECHO_C" >&6
15840 else
15841   cat >conftest.$ac_ext <<_ACEOF
15842 /* confdefs.h.  */
15843 _ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h.  */
15847
15848 int
15849 main ()
15850 {
15851
15852   ;
15853   return 0;
15854 }
15855 _ACEOF
15856 rm -f conftest.$ac_objext conftest.$ac_ext.o
15857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15858   (eval $ac_compile) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); }; then
15862   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15863     case $ac_file in
15864         conftest.$ac_ext.o)
15865             bakefile_cv_c_exto="-ext o"
15866             ;;
15867         *)
15868             ;;
15869     esac
15870 done
15871 else
15872   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15873 See \`config.log' for more details." >&5
15874 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15875 See \`config.log' for more details." >&2;}
15876    { (exit 1); exit 1; }; }
15877
15878 fi
15879
15880 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15881
15882 fi
15883 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15884 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15885 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15886     if test "c" = "c"; then
15887         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15888     fi
15889     if test "c" = "cxx"; then
15890         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15891     fi
15892 fi
15893
15894             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15895                 unset ac_cv_prog_cc_g
15896                 ac_test_CFLAGS=${CFLAGS+set}
15897 ac_save_CFLAGS=$CFLAGS
15898 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15899 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15900 if test "${ac_cv_prog_cc_g+set}" = set; then
15901   echo $ECHO_N "(cached) $ECHO_C" >&6
15902 else
15903   ac_save_c_werror_flag=$ac_c_werror_flag
15904    ac_c_werror_flag=yes
15905    ac_cv_prog_cc_g=no
15906    CFLAGS="-g"
15907    cat >conftest.$ac_ext <<_ACEOF
15908 /* confdefs.h.  */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h.  */
15913
15914 int
15915 main ()
15916 {
15917
15918   ;
15919   return 0;
15920 }
15921 _ACEOF
15922 rm -f conftest.$ac_objext
15923 if { (ac_try="$ac_compile"
15924 case "(($ac_try" in
15925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15926   *) ac_try_echo=$ac_try;;
15927 esac
15928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15929   (eval "$ac_compile") 2>conftest.er1
15930   ac_status=$?
15931   grep -v '^ *+' conftest.er1 >conftest.err
15932   rm -f conftest.er1
15933   cat conftest.err >&5
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); } &&
15936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15937   { (case "(($ac_try" in
15938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939   *) ac_try_echo=$ac_try;;
15940 esac
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942   (eval "$ac_try") 2>&5
15943   ac_status=$?
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); }; } &&
15946          { ac_try='test -s conftest.$ac_objext'
15947   { (case "(($ac_try" in
15948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949   *) ac_try_echo=$ac_try;;
15950 esac
15951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952   (eval "$ac_try") 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; }; then
15956   ac_cv_prog_cc_g=yes
15957 else
15958   echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15960
15961         CFLAGS=""
15962       cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h.  */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h.  */
15968
15969 int
15970 main ()
15971 {
15972
15973   ;
15974   return 0;
15975 }
15976 _ACEOF
15977 rm -f conftest.$ac_objext
15978 if { (ac_try="$ac_compile"
15979 case "(($ac_try" in
15980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981   *) ac_try_echo=$ac_try;;
15982 esac
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984   (eval "$ac_compile") 2>conftest.er1
15985   ac_status=$?
15986   grep -v '^ *+' conftest.er1 >conftest.err
15987   rm -f conftest.er1
15988   cat conftest.err >&5
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); } &&
15991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15992   { (case "(($ac_try" in
15993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994   *) ac_try_echo=$ac_try;;
15995 esac
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997   (eval "$ac_try") 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); }; } &&
16001          { ac_try='test -s conftest.$ac_objext'
16002   { (case "(($ac_try" in
16003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004   *) ac_try_echo=$ac_try;;
16005 esac
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007   (eval "$ac_try") 2>&5
16008   ac_status=$?
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); }; }; then
16011   :
16012 else
16013   echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16015
16016         ac_c_werror_flag=$ac_save_c_werror_flag
16017          CFLAGS="-g"
16018          cat >conftest.$ac_ext <<_ACEOF
16019 /* confdefs.h.  */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h.  */
16024
16025 int
16026 main ()
16027 {
16028
16029   ;
16030   return 0;
16031 }
16032 _ACEOF
16033 rm -f conftest.$ac_objext
16034 if { (ac_try="$ac_compile"
16035 case "(($ac_try" in
16036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037   *) ac_try_echo=$ac_try;;
16038 esac
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040   (eval "$ac_compile") 2>conftest.er1
16041   ac_status=$?
16042   grep -v '^ *+' conftest.er1 >conftest.err
16043   rm -f conftest.er1
16044   cat conftest.err >&5
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); } &&
16047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16048   { (case "(($ac_try" in
16049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050   *) ac_try_echo=$ac_try;;
16051 esac
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053   (eval "$ac_try") 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); }; } &&
16057          { ac_try='test -s conftest.$ac_objext'
16058   { (case "(($ac_try" in
16059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060   *) ac_try_echo=$ac_try;;
16061 esac
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063   (eval "$ac_try") 2>&5
16064   ac_status=$?
16065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066   (exit $ac_status); }; }; then
16067   ac_cv_prog_cc_g=yes
16068 else
16069   echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16071
16072
16073 fi
16074
16075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 fi
16077
16078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16079 fi
16080
16081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16082    ac_c_werror_flag=$ac_save_c_werror_flag
16083 fi
16084 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16085 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16086 if test "$ac_test_CFLAGS" = set; then
16087   CFLAGS=$ac_save_CFLAGS
16088 elif test $ac_cv_prog_cc_g = yes; then
16089   if test "$GCC" = yes; then
16090     CFLAGS="-g -O2"
16091   else
16092     CFLAGS="-g"
16093   fi
16094 else
16095   if test "$GCC" = yes; then
16096     CFLAGS="-O2"
16097   else
16098     CFLAGS=
16099   fi
16100 fi
16101             fi
16102         fi
16103
16104                         case `uname -s` in
16105             AIX*)
16106                 ac_ext=cpp
16107 ac_cpp='$CXXCPP $CPPFLAGS'
16108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16111
16112 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
16113 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
16114 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
16115   echo $ECHO_N "(cached) $ECHO_C" >&6
16116 else
16117   cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h.  */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h.  */
16123
16124 int
16125 main ()
16126 {
16127 #ifndef __xlC__
16128        choke me
16129 #endif
16130
16131   ;
16132   return 0;
16133 }
16134 _ACEOF
16135 rm -f conftest.$ac_objext
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
16141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16142   (eval "$ac_compile") 2>conftest.er1
16143   ac_status=$?
16144   grep -v '^ *+' conftest.er1 >conftest.err
16145   rm -f conftest.er1
16146   cat conftest.err >&5
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); } &&
16149          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16150   { (case "(($ac_try" in
16151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152   *) ac_try_echo=$ac_try;;
16153 esac
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155   (eval "$ac_try") 2>&5
16156   ac_status=$?
16157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158   (exit $ac_status); }; } &&
16159          { ac_try='test -s conftest.$ac_objext'
16160   { (case "(($ac_try" in
16161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162   *) ac_try_echo=$ac_try;;
16163 esac
16164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165   (eval "$ac_try") 2>&5
16166   ac_status=$?
16167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168   (exit $ac_status); }; }; then
16169   bakefile_compiler_xlc=yes
16170 else
16171   echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16173
16174         bakefile_compiler_xlc=no
16175 fi
16176
16177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
16179
16180 fi
16181 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
16182 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6; }
16183
16184 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
16185 ac_ext=c
16186 ac_cpp='$CPP $CPPFLAGS'
16187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16190
16191
16192                 ;;
16193
16194             Darwin)
16195                 ac_ext=cpp
16196 ac_cpp='$CXXCPP $CPPFLAGS'
16197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16200
16201 { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
16202 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
16203 if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
16204   echo $ECHO_N "(cached) $ECHO_C" >&6
16205 else
16206   cat >conftest.$ac_ext <<_ACEOF
16207 /* confdefs.h.  */
16208 _ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h.  */
16212
16213 int
16214 main ()
16215 {
16216 #ifndef __MWERKS__
16217        choke me
16218 #endif
16219
16220   ;
16221   return 0;
16222 }
16223 _ACEOF
16224 rm -f conftest.$ac_objext
16225 if { (ac_try="$ac_compile"
16226 case "(($ac_try" in
16227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228   *) ac_try_echo=$ac_try;;
16229 esac
16230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16231   (eval "$ac_compile") 2>conftest.er1
16232   ac_status=$?
16233   grep -v '^ *+' conftest.er1 >conftest.err
16234   rm -f conftest.er1
16235   cat conftest.err >&5
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); } &&
16238          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16239   { (case "(($ac_try" in
16240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241   *) ac_try_echo=$ac_try;;
16242 esac
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244   (eval "$ac_try") 2>&5
16245   ac_status=$?
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); }; } &&
16248          { ac_try='test -s conftest.$ac_objext'
16249   { (case "(($ac_try" in
16250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251   *) ac_try_echo=$ac_try;;
16252 esac
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254   (eval "$ac_try") 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); }; }; then
16258   bakefile_compiler_mwerks=yes
16259 else
16260   echo "$as_me: failed program was:" >&5
16261 sed 's/^/| /' conftest.$ac_ext >&5
16262
16263         bakefile_compiler_mwerks=no
16264 fi
16265
16266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16267     bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
16268
16269 fi
16270 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
16271 echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6; }
16272
16273 MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
16274 ac_ext=c
16275 ac_cpp='$CPP $CPPFLAGS'
16276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16279
16280
16281                 ac_ext=cpp
16282 ac_cpp='$CXXCPP $CPPFLAGS'
16283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16286
16287 { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
16288 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
16289 if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
16290   echo $ECHO_N "(cached) $ECHO_C" >&6
16291 else
16292   cat >conftest.$ac_ext <<_ACEOF
16293 /* confdefs.h.  */
16294 _ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h.  */
16298
16299 int
16300 main ()
16301 {
16302 #ifndef __xlC__
16303        choke me
16304 #endif
16305
16306   ;
16307   return 0;
16308 }
16309 _ACEOF
16310 rm -f conftest.$ac_objext
16311 if { (ac_try="$ac_compile"
16312 case "(($ac_try" in
16313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314   *) ac_try_echo=$ac_try;;
16315 esac
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317   (eval "$ac_compile") 2>conftest.er1
16318   ac_status=$?
16319   grep -v '^ *+' conftest.er1 >conftest.err
16320   rm -f conftest.er1
16321   cat conftest.err >&5
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); } &&
16324          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16325   { (case "(($ac_try" in
16326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327   *) ac_try_echo=$ac_try;;
16328 esac
16329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330   (eval "$ac_try") 2>&5
16331   ac_status=$?
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); }; } &&
16334          { ac_try='test -s conftest.$ac_objext'
16335   { (case "(($ac_try" in
16336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337   *) ac_try_echo=$ac_try;;
16338 esac
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340   (eval "$ac_try") 2>&5
16341   ac_status=$?
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); }; }; then
16344   bakefile_compiler_xlc=yes
16345 else
16346   echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16348
16349         bakefile_compiler_xlc=no
16350 fi
16351
16352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353     bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
16354
16355 fi
16356 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
16357 echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6; }
16358
16359 XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
16360 ac_ext=c
16361 ac_cpp='$CPP $CPPFLAGS'
16362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16365
16366
16367                 ;;
16368
16369             IRIX*)
16370
16371
16372     ac_ext=cpp
16373 ac_cpp='$CXXCPP $CPPFLAGS'
16374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16377
16378     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
16379 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
16380 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
16381   echo $ECHO_N "(cached) $ECHO_C" >&6
16382 else
16383   cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h.  */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h.  */
16389
16390 int
16391 main ()
16392 {
16393
16394              #ifndef _SGI_COMPILER_VERSION
16395                 choke me
16396              #endif
16397
16398   ;
16399   return 0;
16400 }
16401 _ACEOF
16402 rm -f conftest.$ac_objext
16403 if { (ac_try="$ac_compile"
16404 case "(($ac_try" in
16405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406   *) ac_try_echo=$ac_try;;
16407 esac
16408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409   (eval "$ac_compile") 2>conftest.er1
16410   ac_status=$?
16411   grep -v '^ *+' conftest.er1 >conftest.err
16412   rm -f conftest.er1
16413   cat conftest.err >&5
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); } &&
16416          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16417   { (case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422   (eval "$ac_try") 2>&5
16423   ac_status=$?
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); }; } &&
16426          { ac_try='test -s conftest.$ac_objext'
16427   { (case "(($ac_try" in
16428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429   *) ac_try_echo=$ac_try;;
16430 esac
16431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432   (eval "$ac_try") 2>&5
16433   ac_status=$?
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); }; }; then
16436   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
16442
16443 fi
16444
16445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446
16447
16448 fi
16449 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
16450 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
16451     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
16452         :; SGICXX=yes
16453     else
16454         :;
16455     fi
16456     ac_ext=c
16457 ac_cpp='$CPP $CPPFLAGS'
16458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16461
16462
16463
16464                 ;;
16465
16466             HP-UX*)
16467
16468
16469     ac_ext=cpp
16470 ac_cpp='$CXXCPP $CPPFLAGS'
16471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16474
16475     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
16476 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
16477 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
16478   echo $ECHO_N "(cached) $ECHO_C" >&6
16479 else
16480   cat >conftest.$ac_ext <<_ACEOF
16481 /* confdefs.h.  */
16482 _ACEOF
16483 cat confdefs.h >>conftest.$ac_ext
16484 cat >>conftest.$ac_ext <<_ACEOF
16485 /* end confdefs.h.  */
16486
16487 int
16488 main ()
16489 {
16490
16491              #ifndef __HP_aCC
16492                 choke me
16493              #endif
16494
16495   ;
16496   return 0;
16497 }
16498 _ACEOF
16499 rm -f conftest.$ac_objext
16500 if { (ac_try="$ac_compile"
16501 case "(($ac_try" in
16502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503   *) ac_try_echo=$ac_try;;
16504 esac
16505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506   (eval "$ac_compile") 2>conftest.er1
16507   ac_status=$?
16508   grep -v '^ *+' conftest.er1 >conftest.err
16509   rm -f conftest.er1
16510   cat conftest.err >&5
16511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512   (exit $ac_status); } &&
16513          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16514   { (case "(($ac_try" in
16515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516   *) ac_try_echo=$ac_try;;
16517 esac
16518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519   (eval "$ac_try") 2>&5
16520   ac_status=$?
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); }; } &&
16523          { ac_try='test -s conftest.$ac_objext'
16524   { (case "(($ac_try" in
16525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526   *) ac_try_echo=$ac_try;;
16527 esac
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529   (eval "$ac_try") 2>&5
16530   ac_status=$?
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); }; }; then
16533   bakefile_cv_cxx_compiler___HP_aCC=yes
16534 else
16535   echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16537
16538         bakefile_cv_cxx_compiler___HP_aCC=no
16539
16540 fi
16541
16542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16543
16544
16545 fi
16546 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
16547 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
16548     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
16549         :; HPCXX=yes
16550     else
16551         :;
16552     fi
16553     ac_ext=c
16554 ac_cpp='$CPP $CPPFLAGS'
16555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16558
16559
16560
16561                 ;;
16562
16563             OSF1)
16564
16565
16566     ac_ext=cpp
16567 ac_cpp='$CXXCPP $CPPFLAGS'
16568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16571
16572     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
16573 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
16574 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
16575   echo $ECHO_N "(cached) $ECHO_C" >&6
16576 else
16577   cat >conftest.$ac_ext <<_ACEOF
16578 /* confdefs.h.  */
16579 _ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h.  */
16583
16584 int
16585 main ()
16586 {
16587
16588              #ifndef __DECCXX
16589                 choke me
16590              #endif
16591
16592   ;
16593   return 0;
16594 }
16595 _ACEOF
16596 rm -f conftest.$ac_objext
16597 if { (ac_try="$ac_compile"
16598 case "(($ac_try" in
16599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600   *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603   (eval "$ac_compile") 2>conftest.er1
16604   ac_status=$?
16605   grep -v '^ *+' conftest.er1 >conftest.err
16606   rm -f conftest.er1
16607   cat conftest.err >&5
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); } &&
16610          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16611   { (case "(($ac_try" in
16612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613   *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616   (eval "$ac_try") 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); }; } &&
16620          { ac_try='test -s conftest.$ac_objext'
16621   { (case "(($ac_try" in
16622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623   *) ac_try_echo=$ac_try;;
16624 esac
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626   (eval "$ac_try") 2>&5
16627   ac_status=$?
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); }; }; then
16630   bakefile_cv_cxx_compiler___DECCXX=yes
16631 else
16632   echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16634
16635         bakefile_cv_cxx_compiler___DECCXX=no
16636
16637 fi
16638
16639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16640
16641
16642 fi
16643 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
16644 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
16645     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
16646         :; COMPAQCXX=yes
16647     else
16648         :;
16649     fi
16650     ac_ext=c
16651 ac_cpp='$CPP $CPPFLAGS'
16652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16655
16656
16657
16658                 ;;
16659
16660             SunOS)
16661
16662
16663     ac_ext=cpp
16664 ac_cpp='$CXXCPP $CPPFLAGS'
16665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16668
16669     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
16670 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
16671 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
16672   echo $ECHO_N "(cached) $ECHO_C" >&6
16673 else
16674   cat >conftest.$ac_ext <<_ACEOF
16675 /* confdefs.h.  */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h.  */
16680
16681 int
16682 main ()
16683 {
16684
16685              #ifndef __SUNPRO_CC
16686                 choke me
16687              #endif
16688
16689   ;
16690   return 0;
16691 }
16692 _ACEOF
16693 rm -f conftest.$ac_objext
16694 if { (ac_try="$ac_compile"
16695 case "(($ac_try" in
16696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697   *) ac_try_echo=$ac_try;;
16698 esac
16699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700   (eval "$ac_compile") 2>conftest.er1
16701   ac_status=$?
16702   grep -v '^ *+' conftest.er1 >conftest.err
16703   rm -f conftest.er1
16704   cat conftest.err >&5
16705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706   (exit $ac_status); } &&
16707          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16708   { (case "(($ac_try" in
16709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710   *) ac_try_echo=$ac_try;;
16711 esac
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713   (eval "$ac_try") 2>&5
16714   ac_status=$?
16715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716   (exit $ac_status); }; } &&
16717          { ac_try='test -s conftest.$ac_objext'
16718   { (case "(($ac_try" in
16719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720   *) ac_try_echo=$ac_try;;
16721 esac
16722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723   (eval "$ac_try") 2>&5
16724   ac_status=$?
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); }; }; then
16727   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
16728 else
16729   echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16731
16732         bakefile_cv_cxx_compiler___SUNPRO_CC=no
16733
16734 fi
16735
16736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16737
16738
16739 fi
16740 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
16741 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
16742     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
16743         :; SUNCXX=yes
16744     else
16745         :;
16746     fi
16747     ac_ext=c
16748 ac_cpp='$CPP $CPPFLAGS'
16749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16752
16753
16754
16755                 ;;
16756         esac
16757     fi
16758
16759
16760
16761 if test -n "$ac_tool_prefix"; then
16762   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16763 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16766 if test "${ac_cv_prog_RANLIB+set}" = set; then
16767   echo $ECHO_N "(cached) $ECHO_C" >&6
16768 else
16769   if test -n "$RANLIB"; then
16770   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16771 else
16772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16773 for as_dir in $PATH
16774 do
16775   IFS=$as_save_IFS
16776   test -z "$as_dir" && as_dir=.
16777   for ac_exec_ext in '' $ac_executable_extensions; do
16778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16779     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16781     break 2
16782   fi
16783 done
16784 done
16785 IFS=$as_save_IFS
16786
16787 fi
16788 fi
16789 RANLIB=$ac_cv_prog_RANLIB
16790 if test -n "$RANLIB"; then
16791   { echo "$as_me:$LINENO: result: $RANLIB" >&5
16792 echo "${ECHO_T}$RANLIB" >&6; }
16793 else
16794   { echo "$as_me:$LINENO: result: no" >&5
16795 echo "${ECHO_T}no" >&6; }
16796 fi
16797
16798
16799 fi
16800 if test -z "$ac_cv_prog_RANLIB"; then
16801   ac_ct_RANLIB=$RANLIB
16802   # Extract the first word of "ranlib", so it can be a program name with args.
16803 set dummy ranlib; ac_word=$2
16804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16806 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16807   echo $ECHO_N "(cached) $ECHO_C" >&6
16808 else
16809   if test -n "$ac_ct_RANLIB"; then
16810   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16811 else
16812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16813 for as_dir in $PATH
16814 do
16815   IFS=$as_save_IFS
16816   test -z "$as_dir" && as_dir=.
16817   for ac_exec_ext in '' $ac_executable_extensions; do
16818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16819     ac_cv_prog_ac_ct_RANLIB="ranlib"
16820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16821     break 2
16822   fi
16823 done
16824 done
16825 IFS=$as_save_IFS
16826
16827 fi
16828 fi
16829 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16830 if test -n "$ac_ct_RANLIB"; then
16831   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16832 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
16833 else
16834   { echo "$as_me:$LINENO: result: no" >&5
16835 echo "${ECHO_T}no" >&6; }
16836 fi
16837
16838   if test "x$ac_ct_RANLIB" = x; then
16839     RANLIB=":"
16840   else
16841     case $cross_compiling:$ac_tool_warned in
16842 yes:)
16843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16844 whose name does not start with the host triplet.  If you think this
16845 configuration is useful to you, please write to autoconf@gnu.org." >&5
16846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16847 whose name does not start with the host triplet.  If you think this
16848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16849 ac_tool_warned=yes ;;
16850 esac
16851     RANLIB=$ac_ct_RANLIB
16852   fi
16853 else
16854   RANLIB="$ac_cv_prog_RANLIB"
16855 fi
16856
16857
16858 if test "x$SUNCXX" != xyes; then
16859     if test -n "$ac_tool_prefix"; then
16860   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16861 set dummy ${ac_tool_prefix}ar; ac_word=$2
16862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16864 if test "${ac_cv_prog_AR+set}" = set; then
16865   echo $ECHO_N "(cached) $ECHO_C" >&6
16866 else
16867   if test -n "$AR"; then
16868   ac_cv_prog_AR="$AR" # Let the user override the test.
16869 else
16870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16871 for as_dir in $PATH
16872 do
16873   IFS=$as_save_IFS
16874   test -z "$as_dir" && as_dir=.
16875   for ac_exec_ext in '' $ac_executable_extensions; do
16876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16877     ac_cv_prog_AR="${ac_tool_prefix}ar"
16878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16879     break 2
16880   fi
16881 done
16882 done
16883 IFS=$as_save_IFS
16884
16885 fi
16886 fi
16887 AR=$ac_cv_prog_AR
16888 if test -n "$AR"; then
16889   { echo "$as_me:$LINENO: result: $AR" >&5
16890 echo "${ECHO_T}$AR" >&6; }
16891 else
16892   { echo "$as_me:$LINENO: result: no" >&5
16893 echo "${ECHO_T}no" >&6; }
16894 fi
16895
16896
16897 fi
16898 if test -z "$ac_cv_prog_AR"; then
16899   ac_ct_AR=$AR
16900   # Extract the first word of "ar", so it can be a program name with args.
16901 set dummy ar; ac_word=$2
16902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16904 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16905   echo $ECHO_N "(cached) $ECHO_C" >&6
16906 else
16907   if test -n "$ac_ct_AR"; then
16908   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16909 else
16910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16911 for as_dir in $PATH
16912 do
16913   IFS=$as_save_IFS
16914   test -z "$as_dir" && as_dir=.
16915   for ac_exec_ext in '' $ac_executable_extensions; do
16916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16917     ac_cv_prog_ac_ct_AR="ar"
16918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16919     break 2
16920   fi
16921 done
16922 done
16923 IFS=$as_save_IFS
16924
16925 fi
16926 fi
16927 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16928 if test -n "$ac_ct_AR"; then
16929   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16930 echo "${ECHO_T}$ac_ct_AR" >&6; }
16931 else
16932   { echo "$as_me:$LINENO: result: no" >&5
16933 echo "${ECHO_T}no" >&6; }
16934 fi
16935
16936   if test "x$ac_ct_AR" = x; then
16937     AR=""
16938   else
16939     case $cross_compiling:$ac_tool_warned in
16940 yes:)
16941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16942 whose name does not start with the host triplet.  If you think this
16943 configuration is useful to you, please write to autoconf@gnu.org." >&5
16944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16945 whose name does not start with the host triplet.  If you think this
16946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16947 ac_tool_warned=yes ;;
16948 esac
16949     AR=$ac_ct_AR
16950   fi
16951 else
16952   AR="$ac_cv_prog_AR"
16953 fi
16954
16955     if test "x$AR" = "x" ; then
16956         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
16957 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
16958    { (exit 1); exit 1; }; }
16959     fi
16960 fi
16961
16962 # Find a good install program.  We prefer a C program (faster),
16963 # so one script is as good as another.  But avoid the broken or
16964 # incompatible versions:
16965 # SysV /etc/install, /usr/sbin/install
16966 # SunOS /usr/etc/install
16967 # IRIX /sbin/install
16968 # AIX /bin/install
16969 # AmigaOS /C/install, which installs bootblocks on floppy discs
16970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16973 # OS/2's system install, which has a completely different semantic
16974 # ./install, which can be erroneously created by make from ./install.sh.
16975 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16976 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
16977 if test -z "$INSTALL"; then
16978 if test "${ac_cv_path_install+set}" = set; then
16979   echo $ECHO_N "(cached) $ECHO_C" >&6
16980 else
16981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16982 for as_dir in $PATH
16983 do
16984   IFS=$as_save_IFS
16985   test -z "$as_dir" && as_dir=.
16986   # Account for people who put trailing slashes in PATH elements.
16987 case $as_dir/ in
16988   ./ | .// | /cC/* | \
16989   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16990   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16991   /usr/ucb/* ) ;;
16992   *)
16993     # OSF1 and SCO ODT 3.0 have their own names for install.
16994     # Don't use installbsd from OSF since it installs stuff as root
16995     # by default.
16996     for ac_prog in ginstall scoinst install; do
16997       for ac_exec_ext in '' $ac_executable_extensions; do
16998         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
16999           if test $ac_prog = install &&
17000             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17001             # AIX install.  It has an incompatible calling convention.
17002             :
17003           elif test $ac_prog = install &&
17004             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17005             # program-specific install script used by HP pwplus--don't use.
17006             :
17007           else
17008             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
17009             break 3
17010           fi
17011         fi
17012       done
17013     done
17014     ;;
17015 esac
17016 done
17017 IFS=$as_save_IFS
17018
17019
17020 fi
17021   if test "${ac_cv_path_install+set}" = set; then
17022     INSTALL=$ac_cv_path_install
17023   else
17024     # As a last resort, use the slow shell script.  Don't cache a
17025     # value for INSTALL within a source directory, because that will
17026     # break other packages using the cache if that directory is
17027     # removed, or if the value is a relative name.
17028     INSTALL=$ac_install_sh
17029   fi
17030 fi
17031 { echo "$as_me:$LINENO: result: $INSTALL" >&5
17032 echo "${ECHO_T}$INSTALL" >&6; }
17033
17034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
17035 # It thinks the first close brace ends the variable substitution.
17036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
17037
17038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
17039
17040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
17041
17042
17043 case ${INSTALL} in
17044   /* ) # Absolute
17045      ;;
17046   ?:* ) # Drive letter, considered as absolute.
17047      ;;
17048   *)
17049      INSTALL=`pwd`/${INSTALL} ;;
17050 esac
17051
17052
17053 case "${host}" in
17054
17055                 *-*-darwin* )
17056         INSTALL_PROGRAM="cp -fp"
17057         INSTALL_DATA="cp -fp"
17058         ;;
17059     *)
17060         ;;
17061 esac
17062
17063 if test -n "$ac_tool_prefix"; then
17064   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
17065 set dummy ${ac_tool_prefix}strip; ac_word=$2
17066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17068 if test "${ac_cv_prog_STRIP+set}" = set; then
17069   echo $ECHO_N "(cached) $ECHO_C" >&6
17070 else
17071   if test -n "$STRIP"; then
17072   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
17073 else
17074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17075 for as_dir in $PATH
17076 do
17077   IFS=$as_save_IFS
17078   test -z "$as_dir" && as_dir=.
17079   for ac_exec_ext in '' $ac_executable_extensions; do
17080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17081     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
17082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17083     break 2
17084   fi
17085 done
17086 done
17087 IFS=$as_save_IFS
17088
17089 fi
17090 fi
17091 STRIP=$ac_cv_prog_STRIP
17092 if test -n "$STRIP"; then
17093   { echo "$as_me:$LINENO: result: $STRIP" >&5
17094 echo "${ECHO_T}$STRIP" >&6; }
17095 else
17096   { echo "$as_me:$LINENO: result: no" >&5
17097 echo "${ECHO_T}no" >&6; }
17098 fi
17099
17100
17101 fi
17102 if test -z "$ac_cv_prog_STRIP"; then
17103   ac_ct_STRIP=$STRIP
17104   # Extract the first word of "strip", so it can be a program name with args.
17105 set dummy strip; ac_word=$2
17106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17108 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
17109   echo $ECHO_N "(cached) $ECHO_C" >&6
17110 else
17111   if test -n "$ac_ct_STRIP"; then
17112   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
17113 else
17114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17115 for as_dir in $PATH
17116 do
17117   IFS=$as_save_IFS
17118   test -z "$as_dir" && as_dir=.
17119   for ac_exec_ext in '' $ac_executable_extensions; do
17120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17121     ac_cv_prog_ac_ct_STRIP="strip"
17122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17123     break 2
17124   fi
17125 done
17126 done
17127 IFS=$as_save_IFS
17128
17129 fi
17130 fi
17131 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
17132 if test -n "$ac_ct_STRIP"; then
17133   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
17134 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
17135 else
17136   { echo "$as_me:$LINENO: result: no" >&5
17137 echo "${ECHO_T}no" >&6; }
17138 fi
17139
17140   if test "x$ac_ct_STRIP" = x; then
17141     STRIP="true"
17142   else
17143     case $cross_compiling:$ac_tool_warned in
17144 yes:)
17145 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17146 whose name does not start with the host triplet.  If you think this
17147 configuration is useful to you, please write to autoconf@gnu.org." >&5
17148 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17149 whose name does not start with the host triplet.  If you think this
17150 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17151 ac_tool_warned=yes ;;
17152 esac
17153     STRIP=$ac_ct_STRIP
17154   fi
17155 else
17156   STRIP="$ac_cv_prog_STRIP"
17157 fi
17158
17159
17160 if test "$wxUSE_WINE" = "yes"; then
17161     if test -n "$ac_tool_prefix"; then
17162   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
17163 set dummy ${ac_tool_prefix}wrc; ac_word=$2
17164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17166 if test "${ac_cv_prog_WINDRES+set}" = set; then
17167   echo $ECHO_N "(cached) $ECHO_C" >&6
17168 else
17169   if test -n "$WINDRES"; then
17170   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17171 else
17172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17173 for as_dir in $PATH
17174 do
17175   IFS=$as_save_IFS
17176   test -z "$as_dir" && as_dir=.
17177   for ac_exec_ext in '' $ac_executable_extensions; do
17178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17179     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
17180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17181     break 2
17182   fi
17183 done
17184 done
17185 IFS=$as_save_IFS
17186
17187 fi
17188 fi
17189 WINDRES=$ac_cv_prog_WINDRES
17190 if test -n "$WINDRES"; then
17191   { echo "$as_me:$LINENO: result: $WINDRES" >&5
17192 echo "${ECHO_T}$WINDRES" >&6; }
17193 else
17194   { echo "$as_me:$LINENO: result: no" >&5
17195 echo "${ECHO_T}no" >&6; }
17196 fi
17197
17198
17199 fi
17200 if test -z "$ac_cv_prog_WINDRES"; then
17201   ac_ct_WINDRES=$WINDRES
17202   # Extract the first word of "wrc", so it can be a program name with args.
17203 set dummy wrc; ac_word=$2
17204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17206 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
17207   echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209   if test -n "$ac_ct_WINDRES"; then
17210   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17211 else
17212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17213 for as_dir in $PATH
17214 do
17215   IFS=$as_save_IFS
17216   test -z "$as_dir" && as_dir=.
17217   for ac_exec_ext in '' $ac_executable_extensions; do
17218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17219     ac_cv_prog_ac_ct_WINDRES="wrc"
17220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17221     break 2
17222   fi
17223 done
17224 done
17225 IFS=$as_save_IFS
17226
17227 fi
17228 fi
17229 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17230 if test -n "$ac_ct_WINDRES"; then
17231   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
17232 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
17233 else
17234   { echo "$as_me:$LINENO: result: no" >&5
17235 echo "${ECHO_T}no" >&6; }
17236 fi
17237
17238   if test "x$ac_ct_WINDRES" = x; then
17239     WINDRES=""
17240   else
17241     case $cross_compiling:$ac_tool_warned in
17242 yes:)
17243 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17244 whose name does not start with the host triplet.  If you think this
17245 configuration is useful to you, please write to autoconf@gnu.org." >&5
17246 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17247 whose name does not start with the host triplet.  If you think this
17248 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17249 ac_tool_warned=yes ;;
17250 esac
17251     WINDRES=$ac_ct_WINDRES
17252   fi
17253 else
17254   WINDRES="$ac_cv_prog_WINDRES"
17255 fi
17256
17257     RESCOMP="$WINDRES"
17258 else
17259     case "${host}" in
17260     *-*-cygwin* | *-*-mingw32* )
17261                                 if test -n "$ac_tool_prefix"; then
17262   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17263 set dummy ${ac_tool_prefix}windres; ac_word=$2
17264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17266 if test "${ac_cv_prog_WINDRES+set}" = set; then
17267   echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269   if test -n "$WINDRES"; then
17270   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
17271 else
17272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17273 for as_dir in $PATH
17274 do
17275   IFS=$as_save_IFS
17276   test -z "$as_dir" && as_dir=.
17277   for ac_exec_ext in '' $ac_executable_extensions; do
17278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17279     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
17280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17281     break 2
17282   fi
17283 done
17284 done
17285 IFS=$as_save_IFS
17286
17287 fi
17288 fi
17289 WINDRES=$ac_cv_prog_WINDRES
17290 if test -n "$WINDRES"; then
17291   { echo "$as_me:$LINENO: result: $WINDRES" >&5
17292 echo "${ECHO_T}$WINDRES" >&6; }
17293 else
17294   { echo "$as_me:$LINENO: result: no" >&5
17295 echo "${ECHO_T}no" >&6; }
17296 fi
17297
17298
17299 fi
17300 if test -z "$ac_cv_prog_WINDRES"; then
17301   ac_ct_WINDRES=$WINDRES
17302   # Extract the first word of "windres", so it can be a program name with args.
17303 set dummy windres; ac_word=$2
17304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17306 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
17307   echo $ECHO_N "(cached) $ECHO_C" >&6
17308 else
17309   if test -n "$ac_ct_WINDRES"; then
17310   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
17311 else
17312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17313 for as_dir in $PATH
17314 do
17315   IFS=$as_save_IFS
17316   test -z "$as_dir" && as_dir=.
17317   for ac_exec_ext in '' $ac_executable_extensions; do
17318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17319     ac_cv_prog_ac_ct_WINDRES="windres"
17320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17321     break 2
17322   fi
17323 done
17324 done
17325 IFS=$as_save_IFS
17326
17327 fi
17328 fi
17329 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
17330 if test -n "$ac_ct_WINDRES"; then
17331   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
17332 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
17333 else
17334   { echo "$as_me:$LINENO: result: no" >&5
17335 echo "${ECHO_T}no" >&6; }
17336 fi
17337
17338   if test "x$ac_ct_WINDRES" = x; then
17339     WINDRES=""
17340   else
17341     case $cross_compiling:$ac_tool_warned in
17342 yes:)
17343 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17344 whose name does not start with the host triplet.  If you think this
17345 configuration is useful to you, please write to autoconf@gnu.org." >&5
17346 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17347 whose name does not start with the host triplet.  If you think this
17348 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17349 ac_tool_warned=yes ;;
17350 esac
17351     WINDRES=$ac_ct_WINDRES
17352   fi
17353 else
17354   WINDRES="$ac_cv_prog_WINDRES"
17355 fi
17356
17357         RESCOMP="$WINDRES"
17358         if test -n "$ac_tool_prefix"; then
17359   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17360 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17363 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
17364   echo $ECHO_N "(cached) $ECHO_C" >&6
17365 else
17366   if test -n "$DLLTOOL"; then
17367   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17368 else
17369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17370 for as_dir in $PATH
17371 do
17372   IFS=$as_save_IFS
17373   test -z "$as_dir" && as_dir=.
17374   for ac_exec_ext in '' $ac_executable_extensions; do
17375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17376     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17378     break 2
17379   fi
17380 done
17381 done
17382 IFS=$as_save_IFS
17383
17384 fi
17385 fi
17386 DLLTOOL=$ac_cv_prog_DLLTOOL
17387 if test -n "$DLLTOOL"; then
17388   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
17389 echo "${ECHO_T}$DLLTOOL" >&6; }
17390 else
17391   { echo "$as_me:$LINENO: result: no" >&5
17392 echo "${ECHO_T}no" >&6; }
17393 fi
17394
17395
17396 fi
17397 if test -z "$ac_cv_prog_DLLTOOL"; then
17398   ac_ct_DLLTOOL=$DLLTOOL
17399   # Extract the first word of "dlltool", so it can be a program name with args.
17400 set dummy dlltool; ac_word=$2
17401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17403 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
17404   echo $ECHO_N "(cached) $ECHO_C" >&6
17405 else
17406   if test -n "$ac_ct_DLLTOOL"; then
17407   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17408 else
17409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17410 for as_dir in $PATH
17411 do
17412   IFS=$as_save_IFS
17413   test -z "$as_dir" && as_dir=.
17414   for ac_exec_ext in '' $ac_executable_extensions; do
17415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17416     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17418     break 2
17419   fi
17420 done
17421 done
17422 IFS=$as_save_IFS
17423
17424 fi
17425 fi
17426 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17427 if test -n "$ac_ct_DLLTOOL"; then
17428   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
17429 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
17430 else
17431   { echo "$as_me:$LINENO: result: no" >&5
17432 echo "${ECHO_T}no" >&6; }
17433 fi
17434
17435   if test "x$ac_ct_DLLTOOL" = x; then
17436     DLLTOOL=""
17437   else
17438     case $cross_compiling:$ac_tool_warned in
17439 yes:)
17440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17441 whose name does not start with the host triplet.  If you think this
17442 configuration is useful to you, please write to autoconf@gnu.org." >&5
17443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17444 whose name does not start with the host triplet.  If you think this
17445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17446 ac_tool_warned=yes ;;
17447 esac
17448     DLLTOOL=$ac_ct_DLLTOOL
17449   fi
17450 else
17451   DLLTOOL="$ac_cv_prog_DLLTOOL"
17452 fi
17453
17454         ;;
17455     esac
17456 fi
17457
17458 { echo "$as_me:$LINENO: checking if make is GNU make" >&5
17459 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
17460 if test "${wx_cv_prog_makeisgnu+set}" = set; then
17461   echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463
17464     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
17465             $EGREP -s GNU > /dev/null); then
17466         wx_cv_prog_makeisgnu="yes"
17467     else
17468         wx_cv_prog_makeisgnu="no"
17469     fi
17470
17471 fi
17472 { echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
17473 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6; }
17474
17475 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
17476     IF_GNU_MAKE=""
17477 else
17478     IF_GNU_MAKE="#"
17479 fi
17480
17481
17482
17483 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
17484 { echo "$as_me:$LINENO: checking if make supports VPATH" >&5
17485 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6; }
17486 if test "${wx_cv_prog_makevpath+set}" = set; then
17487   echo $ECHO_N "(cached) $ECHO_C" >&6
17488 else
17489
17490 cat - << EOF > confMake
17491 check : file
17492         cp \$? \$@
17493         cp \$? final_file
17494 EOF
17495
17496 if test ! -d sub ; then
17497   mkdir sub
17498 fi
17499 echo dummy > sub/file
17500 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
17501 RESULT=$?
17502 rm -f sub/file check final_file confMake
17503 rmdir sub
17504 if test "$RESULT" = 0; then
17505   wx_cv_prog_makevpath="yes"
17506 else
17507   wx_cv_prog_makevpath="no"
17508 fi
17509
17510 fi
17511 { echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
17512 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6; }
17513
17514 if test "x$wx_cv_prog_makevpath" != "xyes"; then
17515 { { echo "$as_me:$LINENO: error:
17516 You need a make-utility that is able to use the variable
17517 VPATH correctly.
17518 If your version of make does not support VPATH correctly,
17519 please install GNU-make (possibly as gmake), and start
17520 configure with the following command:
17521 export MAKE=gmake; ./configure  for sh-type shells
17522 setenv MAKE gmake; ./configure  for csh-type shells
17523 Also please do remember to use gmake in this case every time
17524 you are trying to compile.
17525 " >&5
17526 echo "$as_me: error:
17527 You need a make-utility that is able to use the variable
17528 VPATH correctly.
17529 If your version of make does not support VPATH correctly,
17530 please install GNU-make (possibly as gmake), and start
17531 configure with the following command:
17532 export MAKE=gmake; ./configure  for sh-type shells
17533 setenv MAKE gmake; ./configure  for csh-type shells
17534 Also please do remember to use gmake in this case every time
17535 you are trying to compile.
17536 " >&2;}
17537    { (exit 1); exit 1; }; }
17538 fi fi
17539 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
17540 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
17541 LN_S=$as_ln_s
17542 if test "$LN_S" = "ln -s"; then
17543   { echo "$as_me:$LINENO: result: yes" >&5
17544 echo "${ECHO_T}yes" >&6; }
17545 else
17546   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
17547 echo "${ECHO_T}no, using $LN_S" >&6; }
17548 fi
17549
17550
17551
17552
17553 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
17554     CXXFLAGS="-qunique $CXXFLAGS"
17555 fi
17556
17557 case "${host}" in
17558   powerpc-*-darwin* )
17559     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
17560 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
17561     cat >conftest.$ac_ext <<_ACEOF
17562 /* confdefs.h.  */
17563 _ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h.  */
17567
17568 int
17569 main ()
17570 {
17571 #ifndef __POWERPC__
17572         choke me for lack of PowerPC
17573 #endif
17574
17575   ;
17576   return 0;
17577 }
17578 _ACEOF
17579 rm -f conftest.$ac_objext
17580 if { (ac_try="$ac_compile"
17581 case "(($ac_try" in
17582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583   *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586   (eval "$ac_compile") 2>conftest.er1
17587   ac_status=$?
17588   grep -v '^ *+' conftest.er1 >conftest.err
17589   rm -f conftest.er1
17590   cat conftest.err >&5
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); } &&
17593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17594   { (case "(($ac_try" in
17595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17596   *) ac_try_echo=$ac_try;;
17597 esac
17598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17599   (eval "$ac_try") 2>&5
17600   ac_status=$?
17601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602   (exit $ac_status); }; } &&
17603          { ac_try='test -s conftest.$ac_objext'
17604   { (case "(($ac_try" in
17605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606   *) ac_try_echo=$ac_try;;
17607 esac
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609   (eval "$ac_try") 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); }; }; then
17613   { echo "$as_me:$LINENO: result: yes" >&5
17614 echo "${ECHO_T}yes" >&6; }
17615 else
17616   echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17618
17619         { echo "$as_me:$LINENO: result: no" >&5
17620 echo "${ECHO_T}no" >&6; }
17621         cat >>confdefs.h <<\_ACEOF
17622 #define __POWERPC__ 1
17623 _ACEOF
17624
17625
17626 fi
17627
17628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17629   ;;
17630 esac
17631
17632 case "${host}" in
17633   *-*-darwin* )
17634     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
17635 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
17636     cat >conftest.$ac_ext <<_ACEOF
17637 /* confdefs.h.  */
17638 _ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h.  */
17642 #include <CoreFoundation/CFBase.h>
17643
17644 int
17645 main ()
17646 {
17647
17648   ;
17649   return 0;
17650 }
17651 _ACEOF
17652 rm -f conftest.$ac_objext
17653 if { (ac_try="$ac_compile"
17654 case "(($ac_try" in
17655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656   *) ac_try_echo=$ac_try;;
17657 esac
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659   (eval "$ac_compile") 2>conftest.er1
17660   ac_status=$?
17661   grep -v '^ *+' conftest.er1 >conftest.err
17662   rm -f conftest.er1
17663   cat conftest.err >&5
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); } &&
17666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17667   { (case "(($ac_try" in
17668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669   *) ac_try_echo=$ac_try;;
17670 esac
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672   (eval "$ac_try") 2>&5
17673   ac_status=$?
17674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675   (exit $ac_status); }; } &&
17676          { ac_try='test -s conftest.$ac_objext'
17677   { (case "(($ac_try" in
17678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679   *) ac_try_echo=$ac_try;;
17680 esac
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682   (eval "$ac_try") 2>&5
17683   ac_status=$?
17684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685   (exit $ac_status); }; }; then
17686   { echo "$as_me:$LINENO: result: yes" >&5
17687 echo "${ECHO_T}yes" >&6; }
17688 else
17689   echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.$ac_ext >&5
17691
17692         { echo "$as_me:$LINENO: result: no" >&5
17693 echo "${ECHO_T}no" >&6; }
17694         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
17695 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
17696         cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h.  */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h.  */
17702 #define __CF_USE_FRAMEWORK_INCLUDES__
17703 #include <CoreFoundation/CFBase.h>
17704
17705 int
17706 main ()
17707 {
17708
17709   ;
17710   return 0;
17711 }
17712 _ACEOF
17713 rm -f conftest.$ac_objext
17714 if { (ac_try="$ac_compile"
17715 case "(($ac_try" in
17716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717   *) ac_try_echo=$ac_try;;
17718 esac
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720   (eval "$ac_compile") 2>conftest.er1
17721   ac_status=$?
17722   grep -v '^ *+' conftest.er1 >conftest.err
17723   rm -f conftest.er1
17724   cat conftest.err >&5
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); } &&
17727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17728   { (case "(($ac_try" in
17729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17730   *) ac_try_echo=$ac_try;;
17731 esac
17732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17733   (eval "$ac_try") 2>&5
17734   ac_status=$?
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); }; } &&
17737          { ac_try='test -s conftest.$ac_objext'
17738   { (case "(($ac_try" in
17739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740   *) ac_try_echo=$ac_try;;
17741 esac
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743   (eval "$ac_try") 2>&5
17744   ac_status=$?
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); }; }; then
17747   { echo "$as_me:$LINENO: result: yes" >&5
17748 echo "${ECHO_T}yes" >&6; }
17749                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
17750 else
17751   echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17753
17754         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
17755 See \`config.log' for more details." >&5
17756 echo "$as_me: error: no.  CoreFoundation not available.
17757 See \`config.log' for more details." >&2;}
17758    { (exit 1); exit 1; }; }
17759
17760 fi
17761
17762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17763
17764
17765 fi
17766
17767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768   ;;
17769 esac
17770
17771 wants_win32=0
17772 doesnt_want_win32=0
17773 case "${host}" in
17774   *-*-cygwin*)
17775       if test "$wxUSE_MSW" = 1 ; then
17776         wants_win32=1
17777       else
17778                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
17779 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
17780 if test "${wx_cv_nocygwin+set}" = set; then
17781   echo $ECHO_N "(cached) $ECHO_C" >&6
17782 else
17783
17784                 cat >conftest.$ac_ext <<_ACEOF
17785 /* confdefs.h.  */
17786 _ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h.  */
17790
17791 int
17792 main ()
17793 {
17794
17795                         #ifdef __MINGW32__
17796                             choke me
17797                         #endif
17798
17799   ;
17800   return 0;
17801 }
17802 _ACEOF
17803 rm -f conftest.$ac_objext
17804 if { (ac_try="$ac_compile"
17805 case "(($ac_try" in
17806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17807   *) ac_try_echo=$ac_try;;
17808 esac
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810   (eval "$ac_compile") 2>conftest.er1
17811   ac_status=$?
17812   grep -v '^ *+' conftest.er1 >conftest.err
17813   rm -f conftest.er1
17814   cat conftest.err >&5
17815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816   (exit $ac_status); } &&
17817          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17818   { (case "(($ac_try" in
17819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820   *) ac_try_echo=$ac_try;;
17821 esac
17822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823   (eval "$ac_try") 2>&5
17824   ac_status=$?
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); }; } &&
17827          { ac_try='test -s conftest.$ac_objext'
17828   { (case "(($ac_try" in
17829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830   *) ac_try_echo=$ac_try;;
17831 esac
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833   (eval "$ac_try") 2>&5
17834   ac_status=$?
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); }; }; then
17837   wx_cv_nocygwin=no
17838 else
17839   echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17841
17842         wx_cv_nocygwin=yes
17843
17844 fi
17845
17846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17847
17848
17849 fi
17850 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
17851 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
17852
17853         if test "$wx_cv_nocygwin" = "yes"; then
17854             wants_win32=1
17855         else
17856             doesnt_want_win32=1
17857         fi
17858       fi
17859       if test "$wants_win32" = 1 ; then
17860         BAKEFILE_FORCE_PLATFORM=win32
17861       fi
17862   ;;
17863   *-*-mingw*)
17864       wants_win32=1
17865   ;;
17866 esac
17867
17868 if test "$wxUSE_WINE" = "yes"; then
17869     wants_win32=1
17870     LDFLAGS_GUI="-mwindows"
17871 fi
17872
17873 if test "$wants_win32" = 1 ; then
17874     USE_UNIX=0
17875     USE_WIN32=1
17876     cat >>confdefs.h <<\_ACEOF
17877 #define __WIN32__ 1
17878 _ACEOF
17879
17880     cat >>confdefs.h <<\_ACEOF
17881 #define __WIN95__ 1
17882 _ACEOF
17883
17884     cat >>confdefs.h <<\_ACEOF
17885 #define __WINDOWS__ 1
17886 _ACEOF
17887
17888     cat >>confdefs.h <<\_ACEOF
17889 #define __GNUWIN32__ 1
17890 _ACEOF
17891
17892     cat >>confdefs.h <<\_ACEOF
17893 #define STRICT 1
17894 _ACEOF
17895
17896 fi
17897 if test "$doesnt_want_win32" = 1 ; then
17898     USE_UNIX=1
17899     USE_WIN32=0
17900 fi
17901
17902 if test "$USE_UNIX" = 1 ; then
17903     wxUSE_UNIX=yes
17904     cat >>confdefs.h <<\_ACEOF
17905 #define __UNIX__ 1
17906 _ACEOF
17907
17908 fi
17909
17910 case "${host}" in
17911   *-pc-os2_emx | *-pc-os2-emx )
17912                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
17913                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
17914 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
17915 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
17916   echo $ECHO_N "(cached) $ECHO_C" >&6
17917 else
17918   ac_check_lib_save_LIBS=$LIBS
17919 LIBS="-lcExt  $LIBS"
17920 cat >conftest.$ac_ext <<_ACEOF
17921 /* confdefs.h.  */
17922 _ACEOF
17923 cat confdefs.h >>conftest.$ac_ext
17924 cat >>conftest.$ac_ext <<_ACEOF
17925 /* end confdefs.h.  */
17926
17927 /* Override any GCC internal prototype to avoid an error.
17928    Use char because int might match the return type of a GCC
17929    builtin and then its argument prototype would still apply.  */
17930 #ifdef __cplusplus
17931 extern "C"
17932 #endif
17933 char drand48 ();
17934 int
17935 main ()
17936 {
17937 return drand48 ();
17938   ;
17939   return 0;
17940 }
17941 _ACEOF
17942 rm -f conftest.$ac_objext conftest$ac_exeext
17943 if { (ac_try="$ac_link"
17944 case "(($ac_try" in
17945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946   *) ac_try_echo=$ac_try;;
17947 esac
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949   (eval "$ac_link") 2>conftest.er1
17950   ac_status=$?
17951   grep -v '^ *+' conftest.er1 >conftest.err
17952   rm -f conftest.er1
17953   cat conftest.err >&5
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); } &&
17956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17957   { (case "(($ac_try" in
17958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959   *) ac_try_echo=$ac_try;;
17960 esac
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962   (eval "$ac_try") 2>&5
17963   ac_status=$?
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); }; } &&
17966          { ac_try='test -s conftest$ac_exeext'
17967   { (case "(($ac_try" in
17968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969   *) ac_try_echo=$ac_try;;
17970 esac
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972   (eval "$ac_try") 2>&5
17973   ac_status=$?
17974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975   (exit $ac_status); }; }; then
17976   ac_cv_lib_cExt_drand48=yes
17977 else
17978   echo "$as_me: failed program was:" >&5
17979 sed 's/^/| /' conftest.$ac_ext >&5
17980
17981         ac_cv_lib_cExt_drand48=no
17982 fi
17983
17984 rm -f core conftest.err conftest.$ac_objext \
17985       conftest$ac_exeext conftest.$ac_ext
17986 LIBS=$ac_check_lib_save_LIBS
17987 fi
17988 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
17989 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
17990 if test $ac_cv_lib_cExt_drand48 = yes; then
17991   LIBS="$LIBS -lcExt"
17992 fi
17993
17994       else
17995                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
17996       fi
17997                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
17998 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
17999 if test "${wx_cv_gccversion+set}" = set; then
18000   echo $ECHO_N "(cached) $ECHO_C" >&6
18001 else
18002
18003           if test "$cross_compiling" = yes; then
18004                 wx_cv_gccversion="EMX2"
18005
18006 else
18007   cat >conftest.$ac_ext <<_ACEOF
18008 /* confdefs.h.  */
18009 _ACEOF
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h.  */
18013
18014                   #include <stdio.h>
18015
18016                   int main()
18017                   {
18018                       FILE *f=fopen("conftestval", "w");
18019                       if (!f) exit(1);
18020                       fprintf(f,
18021                   #if (__GNUC__ < 3)
18022                               "EMX2"
18023                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18024                               "EMX3"
18025                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18026                               "Innotek5"
18027                   #else
18028                               "Innotek6"
18029                   #endif
18030                       );
18031                       exit(0);
18032                   }
18033
18034 _ACEOF
18035 rm -f conftest$ac_exeext
18036 if { (ac_try="$ac_link"
18037 case "(($ac_try" in
18038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039   *) ac_try_echo=$ac_try;;
18040 esac
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042   (eval "$ac_link") 2>&5
18043   ac_status=$?
18044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18046   { (case "(($ac_try" in
18047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048   *) ac_try_echo=$ac_try;;
18049 esac
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051   (eval "$ac_try") 2>&5
18052   ac_status=$?
18053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); }; }; then
18055   wx_cv_gccversion=`cat conftestval`
18056 else
18057   echo "$as_me: program exited with status $ac_status" >&5
18058 echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18060
18061 ( exit $ac_status )
18062 wx_cv_gccversion="EMX2"
18063 fi
18064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18065 fi
18066
18067
18068
18069 fi
18070 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18071 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18072       if test "$wx_cv_gccversion" = "EMX2"; then
18073           LIBS="$LIBS -lstdcpp"
18074           LDFLAGS="$LDFLAGS -Zsysv-signals"
18075       else
18076           if test "$wx_cv_gccversion" = "EMX3"; then
18077               LIBS="$LIBS -lstdcxx -lgcc"
18078               LDFLAGS="$LDFLAGS -Zsysv-signals"
18079           else
18080               LIBS="$LIBS -lstdc++"
18081           fi
18082       fi
18083       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18084         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18085 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18086         wxUSE_OMF=yes
18087         enable_omf=yes
18088       fi
18089         ;;
18090   *)
18091
18092       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18093 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18094 if test "${ac_cv_string_strcasecmp+set}" = set; then
18095   echo $ECHO_N "(cached) $ECHO_C" >&6
18096 else
18097
18098           cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h.  */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h.  */
18104
18105               #include <string.h>
18106
18107 int
18108 main ()
18109 {
18110
18111                   strcasecmp("foo", "bar");
18112
18113   ;
18114   return 0;
18115 }
18116 _ACEOF
18117 rm -f conftest.$ac_objext conftest$ac_exeext
18118 if { (ac_try="$ac_link"
18119 case "(($ac_try" in
18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121   *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124   (eval "$ac_link") 2>conftest.er1
18125   ac_status=$?
18126   grep -v '^ *+' conftest.er1 >conftest.err
18127   rm -f conftest.er1
18128   cat conftest.err >&5
18129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130   (exit $ac_status); } &&
18131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18132   { (case "(($ac_try" in
18133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134   *) ac_try_echo=$ac_try;;
18135 esac
18136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18137   (eval "$ac_try") 2>&5
18138   ac_status=$?
18139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140   (exit $ac_status); }; } &&
18141          { ac_try='test -s conftest$ac_exeext'
18142   { (case "(($ac_try" in
18143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144   *) ac_try_echo=$ac_try;;
18145 esac
18146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18147   (eval "$ac_try") 2>&5
18148   ac_status=$?
18149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150   (exit $ac_status); }; }; then
18151   ac_cv_string_strcasecmp=yes
18152 else
18153   echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18155
18156         ac_cv_string_strcasecmp=no
18157
18158 fi
18159
18160 rm -f core conftest.err conftest.$ac_objext \
18161       conftest$ac_exeext conftest.$ac_ext
18162
18163 fi
18164 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18165 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18166
18167       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18168           cat >>confdefs.h <<\_ACEOF
18169 #define HAVE_STRCASECMP_IN_STRING_H 1
18170 _ACEOF
18171
18172       else
18173           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18174 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18175 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18176   echo $ECHO_N "(cached) $ECHO_C" >&6
18177 else
18178
18179               cat >conftest.$ac_ext <<_ACEOF
18180 /* confdefs.h.  */
18181 _ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h.  */
18185
18186                   #include <strings.h>
18187
18188 int
18189 main ()
18190 {
18191
18192                       strcasecmp("foo", "bar");
18193
18194   ;
18195   return 0;
18196 }
18197 _ACEOF
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (ac_try="$ac_link"
18200 case "(($ac_try" in
18201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202   *) ac_try_echo=$ac_try;;
18203 esac
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205   (eval "$ac_link") 2>conftest.er1
18206   ac_status=$?
18207   grep -v '^ *+' conftest.er1 >conftest.err
18208   rm -f conftest.er1
18209   cat conftest.err >&5
18210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211   (exit $ac_status); } &&
18212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18213   { (case "(($ac_try" in
18214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215   *) ac_try_echo=$ac_try;;
18216 esac
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218   (eval "$ac_try") 2>&5
18219   ac_status=$?
18220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221   (exit $ac_status); }; } &&
18222          { ac_try='test -s conftest$ac_exeext'
18223   { (case "(($ac_try" in
18224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225   *) ac_try_echo=$ac_try;;
18226 esac
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228   (eval "$ac_try") 2>&5
18229   ac_status=$?
18230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231   (exit $ac_status); }; }; then
18232   ac_cv_strings_strcasecmp=yes
18233 else
18234   echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18236
18237         ac_cv_strings_strcasecmp=no
18238
18239 fi
18240
18241 rm -f core conftest.err conftest.$ac_objext \
18242       conftest$ac_exeext conftest.$ac_ext
18243
18244 fi
18245 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18246 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18247
18248           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18249               cat >>confdefs.h <<\_ACEOF
18250 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18251 _ACEOF
18252
18253           else
18254               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18255 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18256    { (exit 1); exit 1; }; }
18257           fi
18258       fi
18259
18260         ;;
18261 esac
18262
18263
18264 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18265 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18266 if test "${ac_cv_header_stdc+set}" = set; then
18267   echo $ECHO_N "(cached) $ECHO_C" >&6
18268 else
18269   cat >conftest.$ac_ext <<_ACEOF
18270 /* confdefs.h.  */
18271 _ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h.  */
18275 #include <stdlib.h>
18276 #include <stdarg.h>
18277 #include <string.h>
18278 #include <float.h>
18279
18280 int
18281 main ()
18282 {
18283
18284   ;
18285   return 0;
18286 }
18287 _ACEOF
18288 rm -f conftest.$ac_objext
18289 if { (ac_try="$ac_compile"
18290 case "(($ac_try" in
18291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292   *) ac_try_echo=$ac_try;;
18293 esac
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295   (eval "$ac_compile") 2>conftest.er1
18296   ac_status=$?
18297   grep -v '^ *+' conftest.er1 >conftest.err
18298   rm -f conftest.er1
18299   cat conftest.err >&5
18300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301   (exit $ac_status); } &&
18302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18303   { (case "(($ac_try" in
18304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305   *) ac_try_echo=$ac_try;;
18306 esac
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308   (eval "$ac_try") 2>&5
18309   ac_status=$?
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); }; } &&
18312          { ac_try='test -s conftest.$ac_objext'
18313   { (case "(($ac_try" in
18314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315   *) ac_try_echo=$ac_try;;
18316 esac
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318   (eval "$ac_try") 2>&5
18319   ac_status=$?
18320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); }; }; then
18322   ac_cv_header_stdc=yes
18323 else
18324   echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327         ac_cv_header_stdc=no
18328 fi
18329
18330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18331
18332 if test $ac_cv_header_stdc = yes; then
18333   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18334   cat >conftest.$ac_ext <<_ACEOF
18335 /* confdefs.h.  */
18336 _ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h.  */
18340 #include <string.h>
18341
18342 _ACEOF
18343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18344   $EGREP "memchr" >/dev/null 2>&1; then
18345   :
18346 else
18347   ac_cv_header_stdc=no
18348 fi
18349 rm -f conftest*
18350
18351 fi
18352
18353 if test $ac_cv_header_stdc = yes; then
18354   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18355   cat >conftest.$ac_ext <<_ACEOF
18356 /* confdefs.h.  */
18357 _ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h.  */
18361 #include <stdlib.h>
18362
18363 _ACEOF
18364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18365   $EGREP "free" >/dev/null 2>&1; then
18366   :
18367 else
18368   ac_cv_header_stdc=no
18369 fi
18370 rm -f conftest*
18371
18372 fi
18373
18374 if test $ac_cv_header_stdc = yes; then
18375   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18376   if test "$cross_compiling" = yes; then
18377   :
18378 else
18379   cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h.  */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h.  */
18385 #include <ctype.h>
18386 #include <stdlib.h>
18387 #if ((' ' & 0x0FF) == 0x020)
18388 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18389 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18390 #else
18391 # define ISLOWER(c) \
18392                    (('a' <= (c) && (c) <= 'i') \
18393                      || ('j' <= (c) && (c) <= 'r') \
18394                      || ('s' <= (c) && (c) <= 'z'))
18395 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18396 #endif
18397
18398 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18399 int
18400 main ()
18401 {
18402   int i;
18403   for (i = 0; i < 256; i++)
18404     if (XOR (islower (i), ISLOWER (i))
18405         || toupper (i) != TOUPPER (i))
18406       return 2;
18407   return 0;
18408 }
18409 _ACEOF
18410 rm -f conftest$ac_exeext
18411 if { (ac_try="$ac_link"
18412 case "(($ac_try" in
18413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414   *) ac_try_echo=$ac_try;;
18415 esac
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417   (eval "$ac_link") 2>&5
18418   ac_status=$?
18419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18421   { (case "(($ac_try" in
18422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423   *) ac_try_echo=$ac_try;;
18424 esac
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426   (eval "$ac_try") 2>&5
18427   ac_status=$?
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); }; }; then
18430   :
18431 else
18432   echo "$as_me: program exited with status $ac_status" >&5
18433 echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18435
18436 ( exit $ac_status )
18437 ac_cv_header_stdc=no
18438 fi
18439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18440 fi
18441
18442
18443 fi
18444 fi
18445 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18446 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
18447 if test $ac_cv_header_stdc = yes; then
18448
18449 cat >>confdefs.h <<\_ACEOF
18450 #define STDC_HEADERS 1
18451 _ACEOF
18452
18453 fi
18454
18455 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
18466                   inttypes.h stdint.h unistd.h
18467 do
18468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18472   echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18474   cat >conftest.$ac_ext <<_ACEOF
18475 /* confdefs.h.  */
18476 _ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h.  */
18480 $ac_includes_default
18481
18482 #include <$ac_header>
18483 _ACEOF
18484 rm -f conftest.$ac_objext
18485 if { (ac_try="$ac_compile"
18486 case "(($ac_try" in
18487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488   *) ac_try_echo=$ac_try;;
18489 esac
18490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18491   (eval "$ac_compile") 2>conftest.er1
18492   ac_status=$?
18493   grep -v '^ *+' conftest.er1 >conftest.err
18494   rm -f conftest.er1
18495   cat conftest.err >&5
18496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497   (exit $ac_status); } &&
18498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18499   { (case "(($ac_try" in
18500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18501   *) ac_try_echo=$ac_try;;
18502 esac
18503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18504   (eval "$ac_try") 2>&5
18505   ac_status=$?
18506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507   (exit $ac_status); }; } &&
18508          { ac_try='test -s conftest.$ac_objext'
18509   { (case "(($ac_try" in
18510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511   *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514   (eval "$ac_try") 2>&5
18515   ac_status=$?
18516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517   (exit $ac_status); }; }; then
18518   eval "$as_ac_Header=yes"
18519 else
18520   echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18522
18523         eval "$as_ac_Header=no"
18524 fi
18525
18526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18527 fi
18528 ac_res=`eval echo '${'$as_ac_Header'}'`
18529                { echo "$as_me:$LINENO: result: $ac_res" >&5
18530 echo "${ECHO_T}$ac_res" >&6; }
18531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18532   cat >>confdefs.h <<_ACEOF
18533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18534 _ACEOF
18535
18536 fi
18537
18538 done
18539
18540
18541
18542
18543
18544
18545
18546
18547 for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
18548 do
18549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18551   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18554   echo $ECHO_N "(cached) $ECHO_C" >&6
18555 fi
18556 ac_res=`eval echo '${'$as_ac_Header'}'`
18557                { echo "$as_me:$LINENO: result: $ac_res" >&5
18558 echo "${ECHO_T}$ac_res" >&6; }
18559 else
18560   # Is the header compilable?
18561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18563 cat >conftest.$ac_ext <<_ACEOF
18564 /* confdefs.h.  */
18565 _ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h.  */
18569 $ac_includes_default
18570 #include <$ac_header>
18571 _ACEOF
18572 rm -f conftest.$ac_objext
18573 if { (ac_try="$ac_compile"
18574 case "(($ac_try" in
18575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576   *) ac_try_echo=$ac_try;;
18577 esac
18578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579   (eval "$ac_compile") 2>conftest.er1
18580   ac_status=$?
18581   grep -v '^ *+' conftest.er1 >conftest.err
18582   rm -f conftest.er1
18583   cat conftest.err >&5
18584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585   (exit $ac_status); } &&
18586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18587   { (case "(($ac_try" in
18588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589   *) ac_try_echo=$ac_try;;
18590 esac
18591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592   (eval "$ac_try") 2>&5
18593   ac_status=$?
18594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595   (exit $ac_status); }; } &&
18596          { ac_try='test -s conftest.$ac_objext'
18597   { (case "(($ac_try" in
18598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599   *) ac_try_echo=$ac_try;;
18600 esac
18601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18602   (eval "$ac_try") 2>&5
18603   ac_status=$?
18604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605   (exit $ac_status); }; }; then
18606   ac_header_compiler=yes
18607 else
18608   echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18610
18611         ac_header_compiler=no
18612 fi
18613
18614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18616 echo "${ECHO_T}$ac_header_compiler" >&6; }
18617
18618 # Is the header present?
18619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18621 cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h.  */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h.  */
18627 #include <$ac_header>
18628 _ACEOF
18629 if { (ac_try="$ac_cpp conftest.$ac_ext"
18630 case "(($ac_try" in
18631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632   *) ac_try_echo=$ac_try;;
18633 esac
18634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18636   ac_status=$?
18637   grep -v '^ *+' conftest.er1 >conftest.err
18638   rm -f conftest.er1
18639   cat conftest.err >&5
18640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641   (exit $ac_status); } >/dev/null; then
18642   if test -s conftest.err; then
18643     ac_cpp_err=$ac_c_preproc_warn_flag
18644     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18645   else
18646     ac_cpp_err=
18647   fi
18648 else
18649   ac_cpp_err=yes
18650 fi
18651 if test -z "$ac_cpp_err"; then
18652   ac_header_preproc=yes
18653 else
18654   echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18656
18657   ac_header_preproc=no
18658 fi
18659
18660 rm -f conftest.err conftest.$ac_ext
18661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18662 echo "${ECHO_T}$ac_header_preproc" >&6; }
18663
18664 # So?  What about this header?
18665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18666   yes:no: )
18667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18671     ac_header_preproc=yes
18672     ;;
18673   no:yes:* )
18674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18686     ( cat <<\_ASBOX
18687 ## ----------------------------------------- ##
18688 ## Report this to wx-dev@lists.wxwidgets.org ##
18689 ## ----------------------------------------- ##
18690 _ASBOX
18691      ) | sed "s/^/$as_me: WARNING:     /" >&2
18692     ;;
18693 esac
18694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18697   echo $ECHO_N "(cached) $ECHO_C" >&6
18698 else
18699   eval "$as_ac_Header=\$ac_header_preproc"
18700 fi
18701 ac_res=`eval echo '${'$as_ac_Header'}'`
18702                { echo "$as_me:$LINENO: result: $ac_res" >&5
18703 echo "${ECHO_T}$ac_res" >&6; }
18704
18705 fi
18706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18707   cat >>confdefs.h <<_ACEOF
18708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18709 _ACEOF
18710
18711 fi
18712
18713 done
18714
18715
18716 if test "$ac_cv_header_wchar_h" != "yes"; then
18717
18718 for ac_header in wcstr.h
18719 do
18720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18722   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18725   echo $ECHO_N "(cached) $ECHO_C" >&6
18726 fi
18727 ac_res=`eval echo '${'$as_ac_Header'}'`
18728                { echo "$as_me:$LINENO: result: $ac_res" >&5
18729 echo "${ECHO_T}$ac_res" >&6; }
18730 else
18731   # Is the header compilable?
18732 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18734 cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h.  */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h.  */
18740 $ac_includes_default
18741 #include <$ac_header>
18742 _ACEOF
18743 rm -f conftest.$ac_objext
18744 if { (ac_try="$ac_compile"
18745 case "(($ac_try" in
18746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747   *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750   (eval "$ac_compile") 2>conftest.er1
18751   ac_status=$?
18752   grep -v '^ *+' conftest.er1 >conftest.err
18753   rm -f conftest.er1
18754   cat conftest.err >&5
18755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756   (exit $ac_status); } &&
18757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18758   { (case "(($ac_try" in
18759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760   *) ac_try_echo=$ac_try;;
18761 esac
18762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763   (eval "$ac_try") 2>&5
18764   ac_status=$?
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); }; } &&
18767          { ac_try='test -s conftest.$ac_objext'
18768   { (case "(($ac_try" in
18769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770   *) ac_try_echo=$ac_try;;
18771 esac
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773   (eval "$ac_try") 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); }; }; then
18777   ac_header_compiler=yes
18778 else
18779   echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18781
18782         ac_header_compiler=no
18783 fi
18784
18785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18787 echo "${ECHO_T}$ac_header_compiler" >&6; }
18788
18789 # Is the header present?
18790 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18792 cat >conftest.$ac_ext <<_ACEOF
18793 /* confdefs.h.  */
18794 _ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h.  */
18798 #include <$ac_header>
18799 _ACEOF
18800 if { (ac_try="$ac_cpp conftest.$ac_ext"
18801 case "(($ac_try" in
18802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803   *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18807   ac_status=$?
18808   grep -v '^ *+' conftest.er1 >conftest.err
18809   rm -f conftest.er1
18810   cat conftest.err >&5
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); } >/dev/null; then
18813   if test -s conftest.err; then
18814     ac_cpp_err=$ac_c_preproc_warn_flag
18815     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18816   else
18817     ac_cpp_err=
18818   fi
18819 else
18820   ac_cpp_err=yes
18821 fi
18822 if test -z "$ac_cpp_err"; then
18823   ac_header_preproc=yes
18824 else
18825   echo "$as_me: failed program was:" >&5
18826 sed 's/^/| /' conftest.$ac_ext >&5
18827
18828   ac_header_preproc=no
18829 fi
18830
18831 rm -f conftest.err conftest.$ac_ext
18832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18833 echo "${ECHO_T}$ac_header_preproc" >&6; }
18834
18835 # So?  What about this header?
18836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18837   yes:no: )
18838     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18842     ac_header_preproc=yes
18843     ;;
18844   no:yes:* )
18845     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18847     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18848 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18849     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18851     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18852 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18855     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18857     ( cat <<\_ASBOX
18858 ## ----------------------------------------- ##
18859 ## Report this to wx-dev@lists.wxwidgets.org ##
18860 ## ----------------------------------------- ##
18861 _ASBOX
18862      ) | sed "s/^/$as_me: WARNING:     /" >&2
18863     ;;
18864 esac
18865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18868   echo $ECHO_N "(cached) $ECHO_C" >&6
18869 else
18870   eval "$as_ac_Header=\$ac_header_preproc"
18871 fi
18872 ac_res=`eval echo '${'$as_ac_Header'}'`
18873                { echo "$as_me:$LINENO: result: $ac_res" >&5
18874 echo "${ECHO_T}$ac_res" >&6; }
18875
18876 fi
18877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18878   cat >>confdefs.h <<_ACEOF
18879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18880 _ACEOF
18881
18882 fi
18883
18884 done
18885
18886 fi
18887
18888 case "${host}" in
18889   *-pc-os2_emx | *-pc-os2-emx )
18890                   if test $ac_cv_header_langinfo_h = "yes" \
18891                 -a \(   "$wx_cv_gccversion" = "EMX2" \
18892                      -o "$wx_cv_gccversion" = "EMX3" \
18893                      -o "$wx_cv_gccversion" = "Innotek5" \); then
18894           LIBS="$LIBS -lintl"
18895       fi
18896   ;;
18897 esac
18898
18899 if test "$USE_UNIX" = 1 ; then
18900
18901 for ac_header in sys/select.h
18902 do
18903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18905   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18908   echo $ECHO_N "(cached) $ECHO_C" >&6
18909 fi
18910 ac_res=`eval echo '${'$as_ac_Header'}'`
18911                { echo "$as_me:$LINENO: result: $ac_res" >&5
18912 echo "${ECHO_T}$ac_res" >&6; }
18913 else
18914   # Is the header compilable?
18915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18917 cat >conftest.$ac_ext <<_ACEOF
18918 /* confdefs.h.  */
18919 _ACEOF
18920 cat confdefs.h >>conftest.$ac_ext
18921 cat >>conftest.$ac_ext <<_ACEOF
18922 /* end confdefs.h.  */
18923 $ac_includes_default
18924 #include <$ac_header>
18925 _ACEOF
18926 rm -f conftest.$ac_objext
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
18932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933   (eval "$ac_compile") 2>conftest.er1
18934   ac_status=$?
18935   grep -v '^ *+' conftest.er1 >conftest.err
18936   rm -f conftest.er1
18937   cat conftest.err >&5
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); } &&
18940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18941   { (case "(($ac_try" in
18942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943   *) ac_try_echo=$ac_try;;
18944 esac
18945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18946   (eval "$ac_try") 2>&5
18947   ac_status=$?
18948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949   (exit $ac_status); }; } &&
18950          { ac_try='test -s conftest.$ac_objext'
18951   { (case "(($ac_try" in
18952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953   *) ac_try_echo=$ac_try;;
18954 esac
18955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18956   (eval "$ac_try") 2>&5
18957   ac_status=$?
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); }; }; then
18960   ac_header_compiler=yes
18961 else
18962   echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18964
18965         ac_header_compiler=no
18966 fi
18967
18968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18970 echo "${ECHO_T}$ac_header_compiler" >&6; }
18971
18972 # Is the header present?
18973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18975 cat >conftest.$ac_ext <<_ACEOF
18976 /* confdefs.h.  */
18977 _ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h.  */
18981 #include <$ac_header>
18982 _ACEOF
18983 if { (ac_try="$ac_cpp conftest.$ac_ext"
18984 case "(($ac_try" in
18985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986   *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18990   ac_status=$?
18991   grep -v '^ *+' conftest.er1 >conftest.err
18992   rm -f conftest.er1
18993   cat conftest.err >&5
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); } >/dev/null; then
18996   if test -s conftest.err; then
18997     ac_cpp_err=$ac_c_preproc_warn_flag
18998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18999   else
19000     ac_cpp_err=
19001   fi
19002 else
19003   ac_cpp_err=yes
19004 fi
19005 if test -z "$ac_cpp_err"; then
19006   ac_header_preproc=yes
19007 else
19008   echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19010
19011   ac_header_preproc=no
19012 fi
19013
19014 rm -f conftest.err conftest.$ac_ext
19015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19016 echo "${ECHO_T}$ac_header_preproc" >&6; }
19017
19018 # So?  What about this header?
19019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19020   yes:no: )
19021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19025     ac_header_preproc=yes
19026     ;;
19027   no:yes:* )
19028     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19030     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19031 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19032     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19034     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19035 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19038     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19040     ( cat <<\_ASBOX
19041 ## ----------------------------------------- ##
19042 ## Report this to wx-dev@lists.wxwidgets.org ##
19043 ## ----------------------------------------- ##
19044 _ASBOX
19045      ) | sed "s/^/$as_me: WARNING:     /" >&2
19046     ;;
19047 esac
19048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19051   echo $ECHO_N "(cached) $ECHO_C" >&6
19052 else
19053   eval "$as_ac_Header=\$ac_header_preproc"
19054 fi
19055 ac_res=`eval echo '${'$as_ac_Header'}'`
19056                { echo "$as_me:$LINENO: result: $ac_res" >&5
19057 echo "${ECHO_T}$ac_res" >&6; }
19058
19059 fi
19060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19061   cat >>confdefs.h <<_ACEOF
19062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19063 _ACEOF
19064
19065 fi
19066
19067 done
19068
19069 fi
19070
19071
19072 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19073 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19074 if test "${ac_cv_c_const+set}" = set; then
19075   echo $ECHO_N "(cached) $ECHO_C" >&6
19076 else
19077   cat >conftest.$ac_ext <<_ACEOF
19078 /* confdefs.h.  */
19079 _ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h.  */
19083
19084 int
19085 main ()
19086 {
19087 /* FIXME: Include the comments suggested by Paul. */
19088 #ifndef __cplusplus
19089   /* Ultrix mips cc rejects this.  */
19090   typedef int charset[2];
19091   const charset x;
19092   /* SunOS 4.1.1 cc rejects this.  */
19093   char const *const *ccp;
19094   char **p;
19095   /* NEC SVR4.0.2 mips cc rejects this.  */
19096   struct point {int x, y;};
19097   static struct point const zero = {0,0};
19098   /* AIX XL C 1.02.0.0 rejects this.
19099      It does not let you subtract one const X* pointer from another in
19100      an arm of an if-expression whose if-part is not a constant
19101      expression */
19102   const char *g = "string";
19103   ccp = &g + (g ? g-g : 0);
19104   /* HPUX 7.0 cc rejects these. */
19105   ++ccp;
19106   p = (char**) ccp;
19107   ccp = (char const *const *) p;
19108   { /* SCO 3.2v4 cc rejects this.  */
19109     char *t;
19110     char const *s = 0 ? (char *) 0 : (char const *) 0;
19111
19112     *t++ = 0;
19113     if (s) return 0;
19114   }
19115   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19116     int x[] = {25, 17};
19117     const int *foo = &x[0];
19118     ++foo;
19119   }
19120   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19121     typedef const int *iptr;
19122     iptr p = 0;
19123     ++p;
19124   }
19125   { /* AIX XL C 1.02.0.0 rejects this saying
19126        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19127     struct s { int j; const int *ap[3]; };
19128     struct s *b; b->j = 5;
19129   }
19130   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19131     const int foo = 10;
19132     if (!foo) return 0;
19133   }
19134   return !x[0] && !zero.x;
19135 #endif
19136
19137   ;
19138   return 0;
19139 }
19140 _ACEOF
19141 rm -f conftest.$ac_objext
19142 if { (ac_try="$ac_compile"
19143 case "(($ac_try" in
19144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145   *) ac_try_echo=$ac_try;;
19146 esac
19147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148   (eval "$ac_compile") 2>conftest.er1
19149   ac_status=$?
19150   grep -v '^ *+' conftest.er1 >conftest.err
19151   rm -f conftest.er1
19152   cat conftest.err >&5
19153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154   (exit $ac_status); } &&
19155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19156   { (case "(($ac_try" in
19157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158   *) ac_try_echo=$ac_try;;
19159 esac
19160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19161   (eval "$ac_try") 2>&5
19162   ac_status=$?
19163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164   (exit $ac_status); }; } &&
19165          { ac_try='test -s conftest.$ac_objext'
19166   { (case "(($ac_try" in
19167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168   *) ac_try_echo=$ac_try;;
19169 esac
19170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171   (eval "$ac_try") 2>&5
19172   ac_status=$?
19173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174   (exit $ac_status); }; }; then
19175   ac_cv_c_const=yes
19176 else
19177   echo "$as_me: failed program was:" >&5
19178 sed 's/^/| /' conftest.$ac_ext >&5
19179
19180         ac_cv_c_const=no
19181 fi
19182
19183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19184 fi
19185 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19186 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19187 if test $ac_cv_c_const = no; then
19188
19189 cat >>confdefs.h <<\_ACEOF
19190 #define const
19191 _ACEOF
19192
19193 fi
19194
19195 { echo "$as_me:$LINENO: checking for inline" >&5
19196 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19197 if test "${ac_cv_c_inline+set}" = set; then
19198   echo $ECHO_N "(cached) $ECHO_C" >&6
19199 else
19200   ac_cv_c_inline=no
19201 for ac_kw in inline __inline__ __inline; do
19202   cat >conftest.$ac_ext <<_ACEOF
19203 /* confdefs.h.  */
19204 _ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h.  */
19208 #ifndef __cplusplus
19209 typedef int foo_t;
19210 static $ac_kw foo_t static_foo () {return 0; }
19211 $ac_kw foo_t foo () {return 0; }
19212 #endif
19213
19214 _ACEOF
19215 rm -f conftest.$ac_objext
19216 if { (ac_try="$ac_compile"
19217 case "(($ac_try" in
19218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219   *) ac_try_echo=$ac_try;;
19220 esac
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222   (eval "$ac_compile") 2>conftest.er1
19223   ac_status=$?
19224   grep -v '^ *+' conftest.er1 >conftest.err
19225   rm -f conftest.er1
19226   cat conftest.err >&5
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); } &&
19229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19230   { (case "(($ac_try" in
19231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232   *) ac_try_echo=$ac_try;;
19233 esac
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235   (eval "$ac_try") 2>&5
19236   ac_status=$?
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); }; } &&
19239          { ac_try='test -s conftest.$ac_objext'
19240   { (case "(($ac_try" in
19241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242   *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245   (eval "$ac_try") 2>&5
19246   ac_status=$?
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); }; }; then
19249   ac_cv_c_inline=$ac_kw
19250 else
19251   echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19253
19254
19255 fi
19256
19257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19258   test "$ac_cv_c_inline" != no && break
19259 done
19260
19261 fi
19262 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19263 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19264
19265
19266 case $ac_cv_c_inline in
19267   inline | yes) ;;
19268   *)
19269     case $ac_cv_c_inline in
19270       no) ac_val=;;
19271       *) ac_val=$ac_cv_c_inline;;
19272     esac
19273     cat >>confdefs.h <<_ACEOF
19274 #ifndef __cplusplus
19275 #define inline $ac_val
19276 #endif
19277 _ACEOF
19278     ;;
19279 esac
19280
19281
19282 { echo "$as_me:$LINENO: checking for char" >&5
19283 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
19284 if test "${ac_cv_type_char+set}" = set; then
19285   echo $ECHO_N "(cached) $ECHO_C" >&6
19286 else
19287   cat >conftest.$ac_ext <<_ACEOF
19288 /* confdefs.h.  */
19289 _ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h.  */
19293 $ac_includes_default
19294 typedef char ac__type_new_;
19295 int
19296 main ()
19297 {
19298 if ((ac__type_new_ *) 0)
19299   return 0;
19300 if (sizeof (ac__type_new_))
19301   return 0;
19302   ;
19303   return 0;
19304 }
19305 _ACEOF
19306 rm -f conftest.$ac_objext
19307 if { (ac_try="$ac_compile"
19308 case "(($ac_try" in
19309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310   *) ac_try_echo=$ac_try;;
19311 esac
19312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313   (eval "$ac_compile") 2>conftest.er1
19314   ac_status=$?
19315   grep -v '^ *+' conftest.er1 >conftest.err
19316   rm -f conftest.er1
19317   cat conftest.err >&5
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); } &&
19320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19321   { (case "(($ac_try" in
19322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323   *) ac_try_echo=$ac_try;;
19324 esac
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326   (eval "$ac_try") 2>&5
19327   ac_status=$?
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); }; } &&
19330          { ac_try='test -s conftest.$ac_objext'
19331   { (case "(($ac_try" in
19332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333   *) ac_try_echo=$ac_try;;
19334 esac
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336   (eval "$ac_try") 2>&5
19337   ac_status=$?
19338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339   (exit $ac_status); }; }; then
19340   ac_cv_type_char=yes
19341 else
19342   echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19344
19345         ac_cv_type_char=no
19346 fi
19347
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349 fi
19350 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
19351 echo "${ECHO_T}$ac_cv_type_char" >&6; }
19352
19353 { echo "$as_me:$LINENO: checking size of char" >&5
19354 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
19355 if test "${ac_cv_sizeof_char+set}" = set; then
19356   echo $ECHO_N "(cached) $ECHO_C" >&6
19357 else
19358   if test "$ac_cv_type_char" = yes; then
19359   # The cast to long int works around a bug in the HP C Compiler
19360   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19361   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19362   # This bug is HP SR number 8606223364.
19363   if test "$cross_compiling" = yes; then
19364   # Depending upon the size, compute the lo and hi bounds.
19365 cat >conftest.$ac_ext <<_ACEOF
19366 /* confdefs.h.  */
19367 _ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h.  */
19371 $ac_includes_default
19372                    typedef char ac__type_sizeof_;
19373 int
19374 main ()
19375 {
19376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19377 test_array [0] = 0
19378
19379   ;
19380   return 0;
19381 }
19382 _ACEOF
19383 rm -f conftest.$ac_objext
19384 if { (ac_try="$ac_compile"
19385 case "(($ac_try" in
19386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19387   *) ac_try_echo=$ac_try;;
19388 esac
19389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19390   (eval "$ac_compile") 2>conftest.er1
19391   ac_status=$?
19392   grep -v '^ *+' conftest.er1 >conftest.err
19393   rm -f conftest.er1
19394   cat conftest.err >&5
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); } &&
19397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19398   { (case "(($ac_try" in
19399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19400   *) ac_try_echo=$ac_try;;
19401 esac
19402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19403   (eval "$ac_try") 2>&5
19404   ac_status=$?
19405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406   (exit $ac_status); }; } &&
19407          { ac_try='test -s conftest.$ac_objext'
19408   { (case "(($ac_try" in
19409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410   *) ac_try_echo=$ac_try;;
19411 esac
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413   (eval "$ac_try") 2>&5
19414   ac_status=$?
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); }; }; then
19417   ac_lo=0 ac_mid=0
19418   while :; do
19419     cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h.  */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h.  */
19425 $ac_includes_default
19426                    typedef char ac__type_sizeof_;
19427 int
19428 main ()
19429 {
19430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19431 test_array [0] = 0
19432
19433   ;
19434   return 0;
19435 }
19436 _ACEOF
19437 rm -f conftest.$ac_objext
19438 if { (ac_try="$ac_compile"
19439 case "(($ac_try" in
19440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441   *) ac_try_echo=$ac_try;;
19442 esac
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444   (eval "$ac_compile") 2>conftest.er1
19445   ac_status=$?
19446   grep -v '^ *+' conftest.er1 >conftest.err
19447   rm -f conftest.er1
19448   cat conftest.err >&5
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); } &&
19451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19452   { (case "(($ac_try" in
19453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454   *) ac_try_echo=$ac_try;;
19455 esac
19456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19457   (eval "$ac_try") 2>&5
19458   ac_status=$?
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); }; } &&
19461          { ac_try='test -s conftest.$ac_objext'
19462   { (case "(($ac_try" in
19463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464   *) ac_try_echo=$ac_try;;
19465 esac
19466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19467   (eval "$ac_try") 2>&5
19468   ac_status=$?
19469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); }; }; then
19471   ac_hi=$ac_mid; break
19472 else
19473   echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19475
19476         ac_lo=`expr $ac_mid + 1`
19477                         if test $ac_lo -le $ac_mid; then
19478                           ac_lo= ac_hi=
19479                           break
19480                         fi
19481                         ac_mid=`expr 2 '*' $ac_mid + 1`
19482 fi
19483
19484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19485   done
19486 else
19487   echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19489
19490         cat >conftest.$ac_ext <<_ACEOF
19491 /* confdefs.h.  */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h.  */
19496 $ac_includes_default
19497                    typedef char ac__type_sizeof_;
19498 int
19499 main ()
19500 {
19501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19502 test_array [0] = 0
19503
19504   ;
19505   return 0;
19506 }
19507 _ACEOF
19508 rm -f conftest.$ac_objext
19509 if { (ac_try="$ac_compile"
19510 case "(($ac_try" in
19511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512   *) ac_try_echo=$ac_try;;
19513 esac
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515   (eval "$ac_compile") 2>conftest.er1
19516   ac_status=$?
19517   grep -v '^ *+' conftest.er1 >conftest.err
19518   rm -f conftest.er1
19519   cat conftest.err >&5
19520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521   (exit $ac_status); } &&
19522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19523   { (case "(($ac_try" in
19524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525   *) ac_try_echo=$ac_try;;
19526 esac
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528   (eval "$ac_try") 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; } &&
19532          { ac_try='test -s conftest.$ac_objext'
19533   { (case "(($ac_try" in
19534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535   *) ac_try_echo=$ac_try;;
19536 esac
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538   (eval "$ac_try") 2>&5
19539   ac_status=$?
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); }; }; then
19542   ac_hi=-1 ac_mid=-1
19543   while :; do
19544     cat >conftest.$ac_ext <<_ACEOF
19545 /* confdefs.h.  */
19546 _ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h.  */
19550 $ac_includes_default
19551                    typedef char ac__type_sizeof_;
19552 int
19553 main ()
19554 {
19555 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19556 test_array [0] = 0
19557
19558   ;
19559   return 0;
19560 }
19561 _ACEOF
19562 rm -f conftest.$ac_objext
19563 if { (ac_try="$ac_compile"
19564 case "(($ac_try" in
19565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19566   *) ac_try_echo=$ac_try;;
19567 esac
19568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19569   (eval "$ac_compile") 2>conftest.er1
19570   ac_status=$?
19571   grep -v '^ *+' conftest.er1 >conftest.err
19572   rm -f conftest.er1
19573   cat conftest.err >&5
19574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575   (exit $ac_status); } &&
19576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19577   { (case "(($ac_try" in
19578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19579   *) ac_try_echo=$ac_try;;
19580 esac
19581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19582   (eval "$ac_try") 2>&5
19583   ac_status=$?
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); }; } &&
19586          { ac_try='test -s conftest.$ac_objext'
19587   { (case "(($ac_try" in
19588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589   *) ac_try_echo=$ac_try;;
19590 esac
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592   (eval "$ac_try") 2>&5
19593   ac_status=$?
19594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595   (exit $ac_status); }; }; then
19596   ac_lo=$ac_mid; break
19597 else
19598   echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601         ac_hi=`expr '(' $ac_mid ')' - 1`
19602                         if test $ac_mid -le $ac_hi; then
19603                           ac_lo= ac_hi=
19604                           break
19605                         fi
19606                         ac_mid=`expr 2 '*' $ac_mid`
19607 fi
19608
19609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19610   done
19611 else
19612   echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19614
19615         ac_lo= ac_hi=
19616 fi
19617
19618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19619 fi
19620
19621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19622 # Binary search between lo and hi bounds.
19623 while test "x$ac_lo" != "x$ac_hi"; do
19624   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19625   cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h.  */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h.  */
19631 $ac_includes_default
19632                    typedef char ac__type_sizeof_;
19633 int
19634 main ()
19635 {
19636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19637 test_array [0] = 0
19638
19639   ;
19640   return 0;
19641 }
19642 _ACEOF
19643 rm -f conftest.$ac_objext
19644 if { (ac_try="$ac_compile"
19645 case "(($ac_try" in
19646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647   *) ac_try_echo=$ac_try;;
19648 esac
19649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19650   (eval "$ac_compile") 2>conftest.er1
19651   ac_status=$?
19652   grep -v '^ *+' conftest.er1 >conftest.err
19653   rm -f conftest.er1
19654   cat conftest.err >&5
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); } &&
19657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19658   { (case "(($ac_try" in
19659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660   *) ac_try_echo=$ac_try;;
19661 esac
19662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663   (eval "$ac_try") 2>&5
19664   ac_status=$?
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); }; } &&
19667          { ac_try='test -s conftest.$ac_objext'
19668   { (case "(($ac_try" in
19669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670   *) ac_try_echo=$ac_try;;
19671 esac
19672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19673   (eval "$ac_try") 2>&5
19674   ac_status=$?
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); }; }; then
19677   ac_hi=$ac_mid
19678 else
19679   echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19681
19682         ac_lo=`expr '(' $ac_mid ')' + 1`
19683 fi
19684
19685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19686 done
19687 case $ac_lo in
19688 ?*) ac_cv_sizeof_char=$ac_lo;;
19689 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
19690 See \`config.log' for more details." >&5
19691 echo "$as_me: error: cannot compute sizeof (char)
19692 See \`config.log' for more details." >&2;}
19693    { (exit 77); exit 77; }; } ;;
19694 esac
19695 else
19696   cat >conftest.$ac_ext <<_ACEOF
19697 /* confdefs.h.  */
19698 _ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h.  */
19702 $ac_includes_default
19703                    typedef char ac__type_sizeof_;
19704 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19705 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19706 #include <stdio.h>
19707 #include <stdlib.h>
19708 int
19709 main ()
19710 {
19711
19712   FILE *f = fopen ("conftest.val", "w");
19713   if (! f)
19714     return 1;
19715   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19716     {
19717       long int i = longval ();
19718       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19719         return 1;
19720       fprintf (f, "%ld\n", i);
19721     }
19722   else
19723     {
19724       unsigned long int i = ulongval ();
19725       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19726         return 1;
19727       fprintf (f, "%lu\n", i);
19728     }
19729   return ferror (f) || fclose (f) != 0;
19730
19731   ;
19732   return 0;
19733 }
19734 _ACEOF
19735 rm -f conftest$ac_exeext
19736 if { (ac_try="$ac_link"
19737 case "(($ac_try" in
19738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739   *) ac_try_echo=$ac_try;;
19740 esac
19741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742   (eval "$ac_link") 2>&5
19743   ac_status=$?
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19746   { (case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751   (eval "$ac_try") 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); }; }; then
19755   ac_cv_sizeof_char=`cat conftest.val`
19756 else
19757   echo "$as_me: program exited with status $ac_status" >&5
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19760
19761 ( exit $ac_status )
19762 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
19763 See \`config.log' for more details." >&5
19764 echo "$as_me: error: cannot compute sizeof (char)
19765 See \`config.log' for more details." >&2;}
19766    { (exit 77); exit 77; }; }
19767 fi
19768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19769 fi
19770 rm -f conftest.val
19771 else
19772   ac_cv_sizeof_char=0
19773 fi
19774 fi
19775 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
19776 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
19777 cat >>confdefs.h <<_ACEOF
19778 #define SIZEOF_CHAR $ac_cv_sizeof_char
19779 _ACEOF
19780
19781
19782 { echo "$as_me:$LINENO: checking for short" >&5
19783 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19784 if test "${ac_cv_type_short+set}" = set; then
19785   echo $ECHO_N "(cached) $ECHO_C" >&6
19786 else
19787   cat >conftest.$ac_ext <<_ACEOF
19788 /* confdefs.h.  */
19789 _ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h.  */
19793 $ac_includes_default
19794 typedef short ac__type_new_;
19795 int
19796 main ()
19797 {
19798 if ((ac__type_new_ *) 0)
19799   return 0;
19800 if (sizeof (ac__type_new_))
19801   return 0;
19802   ;
19803   return 0;
19804 }
19805 _ACEOF
19806 rm -f conftest.$ac_objext
19807 if { (ac_try="$ac_compile"
19808 case "(($ac_try" in
19809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810   *) ac_try_echo=$ac_try;;
19811 esac
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813   (eval "$ac_compile") 2>conftest.er1
19814   ac_status=$?
19815   grep -v '^ *+' conftest.er1 >conftest.err
19816   rm -f conftest.er1
19817   cat conftest.err >&5
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); } &&
19820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19821   { (case "(($ac_try" in
19822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823   *) ac_try_echo=$ac_try;;
19824 esac
19825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826   (eval "$ac_try") 2>&5
19827   ac_status=$?
19828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); }; } &&
19830          { ac_try='test -s conftest.$ac_objext'
19831   { (case "(($ac_try" in
19832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833   *) ac_try_echo=$ac_try;;
19834 esac
19835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836   (eval "$ac_try") 2>&5
19837   ac_status=$?
19838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839   (exit $ac_status); }; }; then
19840   ac_cv_type_short=yes
19841 else
19842   echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19844
19845         ac_cv_type_short=no
19846 fi
19847
19848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19849 fi
19850 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19851 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19852
19853 { echo "$as_me:$LINENO: checking size of short" >&5
19854 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19855 if test "${ac_cv_sizeof_short+set}" = set; then
19856   echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19858   if test "$ac_cv_type_short" = yes; then
19859   # The cast to long int works around a bug in the HP C Compiler
19860   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19861   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19862   # This bug is HP SR number 8606223364.
19863   if test "$cross_compiling" = yes; then
19864   # Depending upon the size, compute the lo and hi bounds.
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h.  */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h.  */
19871 $ac_includes_default
19872                    typedef short ac__type_sizeof_;
19873 int
19874 main ()
19875 {
19876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19877 test_array [0] = 0
19878
19879   ;
19880   return 0;
19881 }
19882 _ACEOF
19883 rm -f conftest.$ac_objext
19884 if { (ac_try="$ac_compile"
19885 case "(($ac_try" in
19886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887   *) ac_try_echo=$ac_try;;
19888 esac
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890   (eval "$ac_compile") 2>conftest.er1
19891   ac_status=$?
19892   grep -v '^ *+' conftest.er1 >conftest.err
19893   rm -f conftest.er1
19894   cat conftest.err >&5
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); } &&
19897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19898   { (case "(($ac_try" in
19899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900   *) ac_try_echo=$ac_try;;
19901 esac
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903   (eval "$ac_try") 2>&5
19904   ac_status=$?
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); }; } &&
19907          { ac_try='test -s conftest.$ac_objext'
19908   { (case "(($ac_try" in
19909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910   *) ac_try_echo=$ac_try;;
19911 esac
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913   (eval "$ac_try") 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); }; }; then
19917   ac_lo=0 ac_mid=0
19918   while :; do
19919     cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h.  */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h.  */
19925 $ac_includes_default
19926                    typedef short ac__type_sizeof_;
19927 int
19928 main ()
19929 {
19930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19931 test_array [0] = 0
19932
19933   ;
19934   return 0;
19935 }
19936 _ACEOF
19937 rm -f conftest.$ac_objext
19938 if { (ac_try="$ac_compile"
19939 case "(($ac_try" in
19940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941   *) ac_try_echo=$ac_try;;
19942 esac
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944   (eval "$ac_compile") 2>conftest.er1
19945   ac_status=$?
19946   grep -v '^ *+' conftest.er1 >conftest.err
19947   rm -f conftest.er1
19948   cat conftest.err >&5
19949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950   (exit $ac_status); } &&
19951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19952   { (case "(($ac_try" in
19953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954   *) ac_try_echo=$ac_try;;
19955 esac
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957   (eval "$ac_try") 2>&5
19958   ac_status=$?
19959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960   (exit $ac_status); }; } &&
19961          { ac_try='test -s conftest.$ac_objext'
19962   { (case "(($ac_try" in
19963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964   *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967   (eval "$ac_try") 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); }; }; then
19971   ac_hi=$ac_mid; break
19972 else
19973   echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976         ac_lo=`expr $ac_mid + 1`
19977                         if test $ac_lo -le $ac_mid; then
19978                           ac_lo= ac_hi=
19979                           break
19980                         fi
19981                         ac_mid=`expr 2 '*' $ac_mid + 1`
19982 fi
19983
19984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19985   done
19986 else
19987   echo "$as_me: failed program was:" >&5
19988 sed 's/^/| /' conftest.$ac_ext >&5
19989
19990         cat >conftest.$ac_ext <<_ACEOF
19991 /* confdefs.h.  */
19992 _ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h.  */
19996 $ac_includes_default
19997                    typedef short ac__type_sizeof_;
19998 int
19999 main ()
20000 {
20001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20002 test_array [0] = 0
20003
20004   ;
20005   return 0;
20006 }
20007 _ACEOF
20008 rm -f conftest.$ac_objext
20009 if { (ac_try="$ac_compile"
20010 case "(($ac_try" in
20011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012   *) ac_try_echo=$ac_try;;
20013 esac
20014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015   (eval "$ac_compile") 2>conftest.er1
20016   ac_status=$?
20017   grep -v '^ *+' conftest.er1 >conftest.err
20018   rm -f conftest.er1
20019   cat conftest.err >&5
20020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021   (exit $ac_status); } &&
20022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20023   { (case "(($ac_try" in
20024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025   *) ac_try_echo=$ac_try;;
20026 esac
20027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028   (eval "$ac_try") 2>&5
20029   ac_status=$?
20030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031   (exit $ac_status); }; } &&
20032          { ac_try='test -s conftest.$ac_objext'
20033   { (case "(($ac_try" in
20034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035   *) ac_try_echo=$ac_try;;
20036 esac
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038   (eval "$ac_try") 2>&5
20039   ac_status=$?
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); }; }; then
20042   ac_hi=-1 ac_mid=-1
20043   while :; do
20044     cat >conftest.$ac_ext <<_ACEOF
20045 /* confdefs.h.  */
20046 _ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h.  */
20050 $ac_includes_default
20051                    typedef short ac__type_sizeof_;
20052 int
20053 main ()
20054 {
20055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20056 test_array [0] = 0
20057
20058   ;
20059   return 0;
20060 }
20061 _ACEOF
20062 rm -f conftest.$ac_objext
20063 if { (ac_try="$ac_compile"
20064 case "(($ac_try" in
20065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066   *) ac_try_echo=$ac_try;;
20067 esac
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069   (eval "$ac_compile") 2>conftest.er1
20070   ac_status=$?
20071   grep -v '^ *+' conftest.er1 >conftest.err
20072   rm -f conftest.er1
20073   cat conftest.err >&5
20074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075   (exit $ac_status); } &&
20076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20077   { (case "(($ac_try" in
20078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079   *) ac_try_echo=$ac_try;;
20080 esac
20081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082   (eval "$ac_try") 2>&5
20083   ac_status=$?
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); }; } &&
20086          { ac_try='test -s conftest.$ac_objext'
20087   { (case "(($ac_try" in
20088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089   *) ac_try_echo=$ac_try;;
20090 esac
20091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092   (eval "$ac_try") 2>&5
20093   ac_status=$?
20094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095   (exit $ac_status); }; }; then
20096   ac_lo=$ac_mid; break
20097 else
20098   echo "$as_me: failed program was:" >&5
20099 sed 's/^/| /' conftest.$ac_ext >&5
20100
20101         ac_hi=`expr '(' $ac_mid ')' - 1`
20102                         if test $ac_mid -le $ac_hi; then
20103                           ac_lo= ac_hi=
20104                           break
20105                         fi
20106                         ac_mid=`expr 2 '*' $ac_mid`
20107 fi
20108
20109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20110   done
20111 else
20112   echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20114
20115         ac_lo= ac_hi=
20116 fi
20117
20118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20119 fi
20120
20121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20122 # Binary search between lo and hi bounds.
20123 while test "x$ac_lo" != "x$ac_hi"; do
20124   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20125   cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h.  */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h.  */
20131 $ac_includes_default
20132                    typedef short ac__type_sizeof_;
20133 int
20134 main ()
20135 {
20136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20137 test_array [0] = 0
20138
20139   ;
20140   return 0;
20141 }
20142 _ACEOF
20143 rm -f conftest.$ac_objext
20144 if { (ac_try="$ac_compile"
20145 case "(($ac_try" in
20146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147   *) ac_try_echo=$ac_try;;
20148 esac
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150   (eval "$ac_compile") 2>conftest.er1
20151   ac_status=$?
20152   grep -v '^ *+' conftest.er1 >conftest.err
20153   rm -f conftest.er1
20154   cat conftest.err >&5
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); } &&
20157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20158   { (case "(($ac_try" in
20159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20160   *) ac_try_echo=$ac_try;;
20161 esac
20162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20163   (eval "$ac_try") 2>&5
20164   ac_status=$?
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); }; } &&
20167          { ac_try='test -s conftest.$ac_objext'
20168   { (case "(($ac_try" in
20169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170   *) ac_try_echo=$ac_try;;
20171 esac
20172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173   (eval "$ac_try") 2>&5
20174   ac_status=$?
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); }; }; then
20177   ac_hi=$ac_mid
20178 else
20179   echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20181
20182         ac_lo=`expr '(' $ac_mid ')' + 1`
20183 fi
20184
20185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20186 done
20187 case $ac_lo in
20188 ?*) ac_cv_sizeof_short=$ac_lo;;
20189 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20190 See \`config.log' for more details." >&5
20191 echo "$as_me: error: cannot compute sizeof (short)
20192 See \`config.log' for more details." >&2;}
20193    { (exit 77); exit 77; }; } ;;
20194 esac
20195 else
20196   cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202 $ac_includes_default
20203                    typedef short ac__type_sizeof_;
20204 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20205 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20206 #include <stdio.h>
20207 #include <stdlib.h>
20208 int
20209 main ()
20210 {
20211
20212   FILE *f = fopen ("conftest.val", "w");
20213   if (! f)
20214     return 1;
20215   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20216     {
20217       long int i = longval ();
20218       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20219         return 1;
20220       fprintf (f, "%ld\n", i);
20221     }
20222   else
20223     {
20224       unsigned long int i = ulongval ();
20225       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20226         return 1;
20227       fprintf (f, "%lu\n", i);
20228     }
20229   return ferror (f) || fclose (f) != 0;
20230
20231   ;
20232   return 0;
20233 }
20234 _ACEOF
20235 rm -f conftest$ac_exeext
20236 if { (ac_try="$ac_link"
20237 case "(($ac_try" in
20238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239   *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242   (eval "$ac_link") 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20246   { (case "(($ac_try" in
20247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248   *) ac_try_echo=$ac_try;;
20249 esac
20250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251   (eval "$ac_try") 2>&5
20252   ac_status=$?
20253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254   (exit $ac_status); }; }; then
20255   ac_cv_sizeof_short=`cat conftest.val`
20256 else
20257   echo "$as_me: program exited with status $ac_status" >&5
20258 echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20260
20261 ( exit $ac_status )
20262 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
20263 See \`config.log' for more details." >&5
20264 echo "$as_me: error: cannot compute sizeof (short)
20265 See \`config.log' for more details." >&2;}
20266    { (exit 77); exit 77; }; }
20267 fi
20268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20269 fi
20270 rm -f conftest.val
20271 else
20272   ac_cv_sizeof_short=0
20273 fi
20274 fi
20275 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20276 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
20277 cat >>confdefs.h <<_ACEOF
20278 #define SIZEOF_SHORT $ac_cv_sizeof_short
20279 _ACEOF
20280
20281
20282 { echo "$as_me:$LINENO: checking for void *" >&5
20283 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20284 if test "${ac_cv_type_void_p+set}" = set; then
20285   echo $ECHO_N "(cached) $ECHO_C" >&6
20286 else
20287   cat >conftest.$ac_ext <<_ACEOF
20288 /* confdefs.h.  */
20289 _ACEOF
20290 cat confdefs.h >>conftest.$ac_ext
20291 cat >>conftest.$ac_ext <<_ACEOF
20292 /* end confdefs.h.  */
20293 $ac_includes_default
20294 typedef void * ac__type_new_;
20295 int
20296 main ()
20297 {
20298 if ((ac__type_new_ *) 0)
20299   return 0;
20300 if (sizeof (ac__type_new_))
20301   return 0;
20302   ;
20303   return 0;
20304 }
20305 _ACEOF
20306 rm -f conftest.$ac_objext
20307 if { (ac_try="$ac_compile"
20308 case "(($ac_try" in
20309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310   *) ac_try_echo=$ac_try;;
20311 esac
20312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313   (eval "$ac_compile") 2>conftest.er1
20314   ac_status=$?
20315   grep -v '^ *+' conftest.er1 >conftest.err
20316   rm -f conftest.er1
20317   cat conftest.err >&5
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); } &&
20320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20321   { (case "(($ac_try" in
20322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323   *) ac_try_echo=$ac_try;;
20324 esac
20325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326   (eval "$ac_try") 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; } &&
20330          { ac_try='test -s conftest.$ac_objext'
20331   { (case "(($ac_try" in
20332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333   *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336   (eval "$ac_try") 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); }; }; then
20340   ac_cv_type_void_p=yes
20341 else
20342   echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345         ac_cv_type_void_p=no
20346 fi
20347
20348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20349 fi
20350 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20351 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20352
20353 { echo "$as_me:$LINENO: checking size of void *" >&5
20354 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20355 if test "${ac_cv_sizeof_void_p+set}" = set; then
20356   echo $ECHO_N "(cached) $ECHO_C" >&6
20357 else
20358   if test "$ac_cv_type_void_p" = yes; then
20359   # The cast to long int works around a bug in the HP C Compiler
20360   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20361   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20362   # This bug is HP SR number 8606223364.
20363   if test "$cross_compiling" = yes; then
20364   # Depending upon the size, compute the lo and hi bounds.
20365 cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h.  */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h.  */
20371 $ac_includes_default
20372                    typedef void * ac__type_sizeof_;
20373 int
20374 main ()
20375 {
20376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20377 test_array [0] = 0
20378
20379   ;
20380   return 0;
20381 }
20382 _ACEOF
20383 rm -f conftest.$ac_objext
20384 if { (ac_try="$ac_compile"
20385 case "(($ac_try" in
20386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387   *) ac_try_echo=$ac_try;;
20388 esac
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390   (eval "$ac_compile") 2>conftest.er1
20391   ac_status=$?
20392   grep -v '^ *+' conftest.er1 >conftest.err
20393   rm -f conftest.er1
20394   cat conftest.err >&5
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); } &&
20397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20398   { (case "(($ac_try" in
20399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400   *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403   (eval "$ac_try") 2>&5
20404   ac_status=$?
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); }; } &&
20407          { ac_try='test -s conftest.$ac_objext'
20408   { (case "(($ac_try" in
20409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410   *) ac_try_echo=$ac_try;;
20411 esac
20412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20413   (eval "$ac_try") 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; }; then
20417   ac_lo=0 ac_mid=0
20418   while :; do
20419     cat >conftest.$ac_ext <<_ACEOF
20420 /* confdefs.h.  */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h.  */
20425 $ac_includes_default
20426                    typedef void * ac__type_sizeof_;
20427 int
20428 main ()
20429 {
20430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20431 test_array [0] = 0
20432
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          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20452   { (case "(($ac_try" in
20453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454   *) ac_try_echo=$ac_try;;
20455 esac
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457   (eval "$ac_try") 2>&5
20458   ac_status=$?
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); }; } &&
20461          { ac_try='test -s conftest.$ac_objext'
20462   { (case "(($ac_try" in
20463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464   *) ac_try_echo=$ac_try;;
20465 esac
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467   (eval "$ac_try") 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; }; then
20471   ac_hi=$ac_mid; break
20472 else
20473   echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20475
20476         ac_lo=`expr $ac_mid + 1`
20477                         if test $ac_lo -le $ac_mid; then
20478                           ac_lo= ac_hi=
20479                           break
20480                         fi
20481                         ac_mid=`expr 2 '*' $ac_mid + 1`
20482 fi
20483
20484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20485   done
20486 else
20487   echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20489
20490         cat >conftest.$ac_ext <<_ACEOF
20491 /* confdefs.h.  */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h.  */
20496 $ac_includes_default
20497                    typedef void * ac__type_sizeof_;
20498 int
20499 main ()
20500 {
20501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20502 test_array [0] = 0
20503
20504   ;
20505   return 0;
20506 }
20507 _ACEOF
20508 rm -f conftest.$ac_objext
20509 if { (ac_try="$ac_compile"
20510 case "(($ac_try" in
20511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20512   *) ac_try_echo=$ac_try;;
20513 esac
20514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20515   (eval "$ac_compile") 2>conftest.er1
20516   ac_status=$?
20517   grep -v '^ *+' conftest.er1 >conftest.err
20518   rm -f conftest.er1
20519   cat conftest.err >&5
20520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521   (exit $ac_status); } &&
20522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20523   { (case "(($ac_try" in
20524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525   *) ac_try_echo=$ac_try;;
20526 esac
20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528   (eval "$ac_try") 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); }; } &&
20532          { ac_try='test -s conftest.$ac_objext'
20533   { (case "(($ac_try" in
20534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535   *) ac_try_echo=$ac_try;;
20536 esac
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538   (eval "$ac_try") 2>&5
20539   ac_status=$?
20540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541   (exit $ac_status); }; }; then
20542   ac_hi=-1 ac_mid=-1
20543   while :; do
20544     cat >conftest.$ac_ext <<_ACEOF
20545 /* confdefs.h.  */
20546 _ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h.  */
20550 $ac_includes_default
20551                    typedef void * ac__type_sizeof_;
20552 int
20553 main ()
20554 {
20555 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20556 test_array [0] = 0
20557
20558   ;
20559   return 0;
20560 }
20561 _ACEOF
20562 rm -f conftest.$ac_objext
20563 if { (ac_try="$ac_compile"
20564 case "(($ac_try" in
20565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566   *) ac_try_echo=$ac_try;;
20567 esac
20568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20569   (eval "$ac_compile") 2>conftest.er1
20570   ac_status=$?
20571   grep -v '^ *+' conftest.er1 >conftest.err
20572   rm -f conftest.er1
20573   cat conftest.err >&5
20574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575   (exit $ac_status); } &&
20576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20577   { (case "(($ac_try" in
20578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579   *) ac_try_echo=$ac_try;;
20580 esac
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582   (eval "$ac_try") 2>&5
20583   ac_status=$?
20584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585   (exit $ac_status); }; } &&
20586          { ac_try='test -s conftest.$ac_objext'
20587   { (case "(($ac_try" in
20588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589   *) ac_try_echo=$ac_try;;
20590 esac
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592   (eval "$ac_try") 2>&5
20593   ac_status=$?
20594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20595   (exit $ac_status); }; }; then
20596   ac_lo=$ac_mid; break
20597 else
20598   echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20600
20601         ac_hi=`expr '(' $ac_mid ')' - 1`
20602                         if test $ac_mid -le $ac_hi; then
20603                           ac_lo= ac_hi=
20604                           break
20605                         fi
20606                         ac_mid=`expr 2 '*' $ac_mid`
20607 fi
20608
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20610   done
20611 else
20612   echo "$as_me: failed program was:" >&5
20613 sed 's/^/| /' conftest.$ac_ext >&5
20614
20615         ac_lo= ac_hi=
20616 fi
20617
20618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20619 fi
20620
20621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20622 # Binary search between lo and hi bounds.
20623 while test "x$ac_lo" != "x$ac_hi"; do
20624   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20625   cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h.  */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h.  */
20631 $ac_includes_default
20632                    typedef void * ac__type_sizeof_;
20633 int
20634 main ()
20635 {
20636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20637 test_array [0] = 0
20638
20639   ;
20640   return 0;
20641 }
20642 _ACEOF
20643 rm -f conftest.$ac_objext
20644 if { (ac_try="$ac_compile"
20645 case "(($ac_try" in
20646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647   *) ac_try_echo=$ac_try;;
20648 esac
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650   (eval "$ac_compile") 2>conftest.er1
20651   ac_status=$?
20652   grep -v '^ *+' conftest.er1 >conftest.err
20653   rm -f conftest.er1
20654   cat conftest.err >&5
20655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656   (exit $ac_status); } &&
20657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20658   { (case "(($ac_try" in
20659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660   *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663   (eval "$ac_try") 2>&5
20664   ac_status=$?
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); }; } &&
20667          { ac_try='test -s conftest.$ac_objext'
20668   { (case "(($ac_try" in
20669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20670   *) ac_try_echo=$ac_try;;
20671 esac
20672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20673   (eval "$ac_try") 2>&5
20674   ac_status=$?
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); }; }; then
20677   ac_hi=$ac_mid
20678 else
20679   echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682         ac_lo=`expr '(' $ac_mid ')' + 1`
20683 fi
20684
20685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20686 done
20687 case $ac_lo in
20688 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20689 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20690 See \`config.log' for more details." >&5
20691 echo "$as_me: error: cannot compute sizeof (void *)
20692 See \`config.log' for more details." >&2;}
20693    { (exit 77); exit 77; }; } ;;
20694 esac
20695 else
20696   cat >conftest.$ac_ext <<_ACEOF
20697 /* confdefs.h.  */
20698 _ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h.  */
20702 $ac_includes_default
20703                    typedef void * ac__type_sizeof_;
20704 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20705 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20706 #include <stdio.h>
20707 #include <stdlib.h>
20708 int
20709 main ()
20710 {
20711
20712   FILE *f = fopen ("conftest.val", "w");
20713   if (! f)
20714     return 1;
20715   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20716     {
20717       long int i = longval ();
20718       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20719         return 1;
20720       fprintf (f, "%ld\n", i);
20721     }
20722   else
20723     {
20724       unsigned long int i = ulongval ();
20725       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20726         return 1;
20727       fprintf (f, "%lu\n", i);
20728     }
20729   return ferror (f) || fclose (f) != 0;
20730
20731   ;
20732   return 0;
20733 }
20734 _ACEOF
20735 rm -f conftest$ac_exeext
20736 if { (ac_try="$ac_link"
20737 case "(($ac_try" in
20738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739   *) ac_try_echo=$ac_try;;
20740 esac
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742   (eval "$ac_link") 2>&5
20743   ac_status=$?
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20746   { (case "(($ac_try" in
20747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748   *) ac_try_echo=$ac_try;;
20749 esac
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751   (eval "$ac_try") 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; }; then
20755   ac_cv_sizeof_void_p=`cat conftest.val`
20756 else
20757   echo "$as_me: program exited with status $ac_status" >&5
20758 echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20760
20761 ( exit $ac_status )
20762 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20763 See \`config.log' for more details." >&5
20764 echo "$as_me: error: cannot compute sizeof (void *)
20765 See \`config.log' for more details." >&2;}
20766    { (exit 77); exit 77; }; }
20767 fi
20768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20769 fi
20770 rm -f conftest.val
20771 else
20772   ac_cv_sizeof_void_p=0
20773 fi
20774 fi
20775 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20776 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20777 cat >>confdefs.h <<_ACEOF
20778 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20779 _ACEOF
20780
20781
20782 { echo "$as_me:$LINENO: checking for int" >&5
20783 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20784 if test "${ac_cv_type_int+set}" = set; then
20785   echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787   cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793 $ac_includes_default
20794 typedef int ac__type_new_;
20795 int
20796 main ()
20797 {
20798 if ((ac__type_new_ *) 0)
20799   return 0;
20800 if (sizeof (ac__type_new_))
20801   return 0;
20802   ;
20803   return 0;
20804 }
20805 _ACEOF
20806 rm -f conftest.$ac_objext
20807 if { (ac_try="$ac_compile"
20808 case "(($ac_try" in
20809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20810   *) ac_try_echo=$ac_try;;
20811 esac
20812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20813   (eval "$ac_compile") 2>conftest.er1
20814   ac_status=$?
20815   grep -v '^ *+' conftest.er1 >conftest.err
20816   rm -f conftest.er1
20817   cat conftest.err >&5
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); } &&
20820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20821   { (case "(($ac_try" in
20822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823   *) ac_try_echo=$ac_try;;
20824 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826   (eval "$ac_try") 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); }; } &&
20830          { ac_try='test -s conftest.$ac_objext'
20831   { (case "(($ac_try" in
20832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833   *) ac_try_echo=$ac_try;;
20834 esac
20835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20836   (eval "$ac_try") 2>&5
20837   ac_status=$?
20838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839   (exit $ac_status); }; }; then
20840   ac_cv_type_int=yes
20841 else
20842   echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20844
20845         ac_cv_type_int=no
20846 fi
20847
20848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20849 fi
20850 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20851 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20852
20853 { echo "$as_me:$LINENO: checking size of int" >&5
20854 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20855 if test "${ac_cv_sizeof_int+set}" = set; then
20856   echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858   if test "$ac_cv_type_int" = yes; then
20859   # The cast to long int works around a bug in the HP C Compiler
20860   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20861   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20862   # This bug is HP SR number 8606223364.
20863   if test "$cross_compiling" = yes; then
20864   # Depending upon the size, compute the lo and hi bounds.
20865 cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h.  */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h.  */
20871 $ac_includes_default
20872                    typedef int ac__type_sizeof_;
20873 int
20874 main ()
20875 {
20876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20877 test_array [0] = 0
20878
20879   ;
20880   return 0;
20881 }
20882 _ACEOF
20883 rm -f conftest.$ac_objext
20884 if { (ac_try="$ac_compile"
20885 case "(($ac_try" in
20886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887   *) ac_try_echo=$ac_try;;
20888 esac
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890   (eval "$ac_compile") 2>conftest.er1
20891   ac_status=$?
20892   grep -v '^ *+' conftest.er1 >conftest.err
20893   rm -f conftest.er1
20894   cat conftest.err >&5
20895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896   (exit $ac_status); } &&
20897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20898   { (case "(($ac_try" in
20899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900   *) ac_try_echo=$ac_try;;
20901 esac
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903   (eval "$ac_try") 2>&5
20904   ac_status=$?
20905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); }; } &&
20907          { ac_try='test -s conftest.$ac_objext'
20908   { (case "(($ac_try" in
20909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910   *) ac_try_echo=$ac_try;;
20911 esac
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913   (eval "$ac_try") 2>&5
20914   ac_status=$?
20915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916   (exit $ac_status); }; }; then
20917   ac_lo=0 ac_mid=0
20918   while :; do
20919     cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h.  */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h.  */
20925 $ac_includes_default
20926                    typedef int ac__type_sizeof_;
20927 int
20928 main ()
20929 {
20930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20931 test_array [0] = 0
20932
20933   ;
20934   return 0;
20935 }
20936 _ACEOF
20937 rm -f conftest.$ac_objext
20938 if { (ac_try="$ac_compile"
20939 case "(($ac_try" in
20940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941   *) ac_try_echo=$ac_try;;
20942 esac
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944   (eval "$ac_compile") 2>conftest.er1
20945   ac_status=$?
20946   grep -v '^ *+' conftest.er1 >conftest.err
20947   rm -f conftest.er1
20948   cat conftest.err >&5
20949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950   (exit $ac_status); } &&
20951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20952   { (case "(($ac_try" in
20953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954   *) ac_try_echo=$ac_try;;
20955 esac
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957   (eval "$ac_try") 2>&5
20958   ac_status=$?
20959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960   (exit $ac_status); }; } &&
20961          { ac_try='test -s conftest.$ac_objext'
20962   { (case "(($ac_try" in
20963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964   *) ac_try_echo=$ac_try;;
20965 esac
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967   (eval "$ac_try") 2>&5
20968   ac_status=$?
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); }; }; then
20971   ac_hi=$ac_mid; break
20972 else
20973   echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976         ac_lo=`expr $ac_mid + 1`
20977                         if test $ac_lo -le $ac_mid; then
20978                           ac_lo= ac_hi=
20979                           break
20980                         fi
20981                         ac_mid=`expr 2 '*' $ac_mid + 1`
20982 fi
20983
20984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20985   done
20986 else
20987   echo "$as_me: failed program was:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20989
20990         cat >conftest.$ac_ext <<_ACEOF
20991 /* confdefs.h.  */
20992 _ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h.  */
20996 $ac_includes_default
20997                    typedef int ac__type_sizeof_;
20998 int
20999 main ()
21000 {
21001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21002 test_array [0] = 0
21003
21004   ;
21005   return 0;
21006 }
21007 _ACEOF
21008 rm -f conftest.$ac_objext
21009 if { (ac_try="$ac_compile"
21010 case "(($ac_try" in
21011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012   *) ac_try_echo=$ac_try;;
21013 esac
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015   (eval "$ac_compile") 2>conftest.er1
21016   ac_status=$?
21017   grep -v '^ *+' conftest.er1 >conftest.err
21018   rm -f conftest.er1
21019   cat conftest.err >&5
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); } &&
21022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21023   { (case "(($ac_try" in
21024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21025   *) ac_try_echo=$ac_try;;
21026 esac
21027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21028   (eval "$ac_try") 2>&5
21029   ac_status=$?
21030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); }; } &&
21032          { ac_try='test -s conftest.$ac_objext'
21033   { (case "(($ac_try" in
21034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035   *) ac_try_echo=$ac_try;;
21036 esac
21037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038   (eval "$ac_try") 2>&5
21039   ac_status=$?
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); }; }; then
21042   ac_hi=-1 ac_mid=-1
21043   while :; do
21044     cat >conftest.$ac_ext <<_ACEOF
21045 /* confdefs.h.  */
21046 _ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h.  */
21050 $ac_includes_default
21051                    typedef int ac__type_sizeof_;
21052 int
21053 main ()
21054 {
21055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21056 test_array [0] = 0
21057
21058   ;
21059   return 0;
21060 }
21061 _ACEOF
21062 rm -f conftest.$ac_objext
21063 if { (ac_try="$ac_compile"
21064 case "(($ac_try" in
21065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066   *) ac_try_echo=$ac_try;;
21067 esac
21068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069   (eval "$ac_compile") 2>conftest.er1
21070   ac_status=$?
21071   grep -v '^ *+' conftest.er1 >conftest.err
21072   rm -f conftest.er1
21073   cat conftest.err >&5
21074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075   (exit $ac_status); } &&
21076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21077   { (case "(($ac_try" in
21078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079   *) ac_try_echo=$ac_try;;
21080 esac
21081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082   (eval "$ac_try") 2>&5
21083   ac_status=$?
21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); }; } &&
21086          { ac_try='test -s conftest.$ac_objext'
21087   { (case "(($ac_try" in
21088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089   *) ac_try_echo=$ac_try;;
21090 esac
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092   (eval "$ac_try") 2>&5
21093   ac_status=$?
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); }; }; then
21096   ac_lo=$ac_mid; break
21097 else
21098   echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21100
21101         ac_hi=`expr '(' $ac_mid ')' - 1`
21102                         if test $ac_mid -le $ac_hi; then
21103                           ac_lo= ac_hi=
21104                           break
21105                         fi
21106                         ac_mid=`expr 2 '*' $ac_mid`
21107 fi
21108
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110   done
21111 else
21112   echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115         ac_lo= ac_hi=
21116 fi
21117
21118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21119 fi
21120
21121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21122 # Binary search between lo and hi bounds.
21123 while test "x$ac_lo" != "x$ac_hi"; do
21124   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21125   cat >conftest.$ac_ext <<_ACEOF
21126 /* confdefs.h.  */
21127 _ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h.  */
21131 $ac_includes_default
21132                    typedef int ac__type_sizeof_;
21133 int
21134 main ()
21135 {
21136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21137 test_array [0] = 0
21138
21139   ;
21140   return 0;
21141 }
21142 _ACEOF
21143 rm -f conftest.$ac_objext
21144 if { (ac_try="$ac_compile"
21145 case "(($ac_try" in
21146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147   *) ac_try_echo=$ac_try;;
21148 esac
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150   (eval "$ac_compile") 2>conftest.er1
21151   ac_status=$?
21152   grep -v '^ *+' conftest.er1 >conftest.err
21153   rm -f conftest.er1
21154   cat conftest.err >&5
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); } &&
21157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21158   { (case "(($ac_try" in
21159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160   *) ac_try_echo=$ac_try;;
21161 esac
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163   (eval "$ac_try") 2>&5
21164   ac_status=$?
21165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166   (exit $ac_status); }; } &&
21167          { ac_try='test -s conftest.$ac_objext'
21168   { (case "(($ac_try" in
21169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170   *) ac_try_echo=$ac_try;;
21171 esac
21172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21173   (eval "$ac_try") 2>&5
21174   ac_status=$?
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); }; }; then
21177   ac_hi=$ac_mid
21178 else
21179   echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21181
21182         ac_lo=`expr '(' $ac_mid ')' + 1`
21183 fi
21184
21185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21186 done
21187 case $ac_lo in
21188 ?*) ac_cv_sizeof_int=$ac_lo;;
21189 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21190 See \`config.log' for more details." >&5
21191 echo "$as_me: error: cannot compute sizeof (int)
21192 See \`config.log' for more details." >&2;}
21193    { (exit 77); exit 77; }; } ;;
21194 esac
21195 else
21196   cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h.  */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h.  */
21202 $ac_includes_default
21203                    typedef int ac__type_sizeof_;
21204 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21205 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21206 #include <stdio.h>
21207 #include <stdlib.h>
21208 int
21209 main ()
21210 {
21211
21212   FILE *f = fopen ("conftest.val", "w");
21213   if (! f)
21214     return 1;
21215   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21216     {
21217       long int i = longval ();
21218       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21219         return 1;
21220       fprintf (f, "%ld\n", i);
21221     }
21222   else
21223     {
21224       unsigned long int i = ulongval ();
21225       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21226         return 1;
21227       fprintf (f, "%lu\n", i);
21228     }
21229   return ferror (f) || fclose (f) != 0;
21230
21231   ;
21232   return 0;
21233 }
21234 _ACEOF
21235 rm -f conftest$ac_exeext
21236 if { (ac_try="$ac_link"
21237 case "(($ac_try" in
21238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239   *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242   (eval "$ac_link") 2>&5
21243   ac_status=$?
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21246   { (case "(($ac_try" in
21247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248   *) ac_try_echo=$ac_try;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251   (eval "$ac_try") 2>&5
21252   ac_status=$?
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); }; }; then
21255   ac_cv_sizeof_int=`cat conftest.val`
21256 else
21257   echo "$as_me: program exited with status $ac_status" >&5
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21260
21261 ( exit $ac_status )
21262 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
21263 See \`config.log' for more details." >&5
21264 echo "$as_me: error: cannot compute sizeof (int)
21265 See \`config.log' for more details." >&2;}
21266    { (exit 77); exit 77; }; }
21267 fi
21268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21269 fi
21270 rm -f conftest.val
21271 else
21272   ac_cv_sizeof_int=0
21273 fi
21274 fi
21275 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21276 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
21277 cat >>confdefs.h <<_ACEOF
21278 #define SIZEOF_INT $ac_cv_sizeof_int
21279 _ACEOF
21280
21281
21282 { echo "$as_me:$LINENO: checking for long" >&5
21283 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
21284 if test "${ac_cv_type_long+set}" = set; then
21285   echo $ECHO_N "(cached) $ECHO_C" >&6
21286 else
21287   cat >conftest.$ac_ext <<_ACEOF
21288 /* confdefs.h.  */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h.  */
21293 $ac_includes_default
21294 typedef long ac__type_new_;
21295 int
21296 main ()
21297 {
21298 if ((ac__type_new_ *) 0)
21299   return 0;
21300 if (sizeof (ac__type_new_))
21301   return 0;
21302   ;
21303   return 0;
21304 }
21305 _ACEOF
21306 rm -f conftest.$ac_objext
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
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313   (eval "$ac_compile") 2>conftest.er1
21314   ac_status=$?
21315   grep -v '^ *+' conftest.er1 >conftest.err
21316   rm -f conftest.er1
21317   cat conftest.err >&5
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); } &&
21320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21321   { (case "(($ac_try" in
21322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323   *) ac_try_echo=$ac_try;;
21324 esac
21325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326   (eval "$ac_try") 2>&5
21327   ac_status=$?
21328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329   (exit $ac_status); }; } &&
21330          { ac_try='test -s conftest.$ac_objext'
21331   { (case "(($ac_try" in
21332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21333   *) ac_try_echo=$ac_try;;
21334 esac
21335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336   (eval "$ac_try") 2>&5
21337   ac_status=$?
21338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339   (exit $ac_status); }; }; then
21340   ac_cv_type_long=yes
21341 else
21342   echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21344
21345         ac_cv_type_long=no
21346 fi
21347
21348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21349 fi
21350 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21351 echo "${ECHO_T}$ac_cv_type_long" >&6; }
21352
21353 { echo "$as_me:$LINENO: checking size of long" >&5
21354 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
21355 if test "${ac_cv_sizeof_long+set}" = set; then
21356   echo $ECHO_N "(cached) $ECHO_C" >&6
21357 else
21358   if test "$ac_cv_type_long" = yes; then
21359   # The cast to long int works around a bug in the HP C Compiler
21360   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21361   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21362   # This bug is HP SR number 8606223364.
21363   if test "$cross_compiling" = yes; then
21364   # Depending upon the size, compute the lo and hi bounds.
21365 cat >conftest.$ac_ext <<_ACEOF
21366 /* confdefs.h.  */
21367 _ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h.  */
21371 $ac_includes_default
21372                    typedef long ac__type_sizeof_;
21373 int
21374 main ()
21375 {
21376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21377 test_array [0] = 0
21378
21379   ;
21380   return 0;
21381 }
21382 _ACEOF
21383 rm -f conftest.$ac_objext
21384 if { (ac_try="$ac_compile"
21385 case "(($ac_try" in
21386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387   *) ac_try_echo=$ac_try;;
21388 esac
21389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21390   (eval "$ac_compile") 2>conftest.er1
21391   ac_status=$?
21392   grep -v '^ *+' conftest.er1 >conftest.err
21393   rm -f conftest.er1
21394   cat conftest.err >&5
21395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396   (exit $ac_status); } &&
21397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21398   { (case "(($ac_try" in
21399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400   *) ac_try_echo=$ac_try;;
21401 esac
21402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403   (eval "$ac_try") 2>&5
21404   ac_status=$?
21405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406   (exit $ac_status); }; } &&
21407          { ac_try='test -s conftest.$ac_objext'
21408   { (case "(($ac_try" in
21409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410   *) ac_try_echo=$ac_try;;
21411 esac
21412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21413   (eval "$ac_try") 2>&5
21414   ac_status=$?
21415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); }; }; then
21417   ac_lo=0 ac_mid=0
21418   while :; do
21419     cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h.  */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h.  */
21425 $ac_includes_default
21426                    typedef long ac__type_sizeof_;
21427 int
21428 main ()
21429 {
21430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21431 test_array [0] = 0
21432
21433   ;
21434   return 0;
21435 }
21436 _ACEOF
21437 rm -f conftest.$ac_objext
21438 if { (ac_try="$ac_compile"
21439 case "(($ac_try" in
21440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441   *) ac_try_echo=$ac_try;;
21442 esac
21443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444   (eval "$ac_compile") 2>conftest.er1
21445   ac_status=$?
21446   grep -v '^ *+' conftest.er1 >conftest.err
21447   rm -f conftest.er1
21448   cat conftest.err >&5
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); } &&
21451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21452   { (case "(($ac_try" in
21453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21454   *) ac_try_echo=$ac_try;;
21455 esac
21456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21457   (eval "$ac_try") 2>&5
21458   ac_status=$?
21459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460   (exit $ac_status); }; } &&
21461          { ac_try='test -s conftest.$ac_objext'
21462   { (case "(($ac_try" in
21463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464   *) ac_try_echo=$ac_try;;
21465 esac
21466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21467   (eval "$ac_try") 2>&5
21468   ac_status=$?
21469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470   (exit $ac_status); }; }; then
21471   ac_hi=$ac_mid; break
21472 else
21473   echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21475
21476         ac_lo=`expr $ac_mid + 1`
21477                         if test $ac_lo -le $ac_mid; then
21478                           ac_lo= ac_hi=
21479                           break
21480                         fi
21481                         ac_mid=`expr 2 '*' $ac_mid + 1`
21482 fi
21483
21484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485   done
21486 else
21487   echo "$as_me: failed program was:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21489
21490         cat >conftest.$ac_ext <<_ACEOF
21491 /* confdefs.h.  */
21492 _ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h.  */
21496 $ac_includes_default
21497                    typedef long ac__type_sizeof_;
21498 int
21499 main ()
21500 {
21501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21502 test_array [0] = 0
21503
21504   ;
21505   return 0;
21506 }
21507 _ACEOF
21508 rm -f conftest.$ac_objext
21509 if { (ac_try="$ac_compile"
21510 case "(($ac_try" in
21511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512   *) ac_try_echo=$ac_try;;
21513 esac
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515   (eval "$ac_compile") 2>conftest.er1
21516   ac_status=$?
21517   grep -v '^ *+' conftest.er1 >conftest.err
21518   rm -f conftest.er1
21519   cat conftest.err >&5
21520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521   (exit $ac_status); } &&
21522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21523   { (case "(($ac_try" in
21524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525   *) ac_try_echo=$ac_try;;
21526 esac
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528   (eval "$ac_try") 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); }; } &&
21532          { ac_try='test -s conftest.$ac_objext'
21533   { (case "(($ac_try" in
21534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21535   *) ac_try_echo=$ac_try;;
21536 esac
21537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21538   (eval "$ac_try") 2>&5
21539   ac_status=$?
21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); }; }; then
21542   ac_hi=-1 ac_mid=-1
21543   while :; do
21544     cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h.  */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h.  */
21550 $ac_includes_default
21551                    typedef long ac__type_sizeof_;
21552 int
21553 main ()
21554 {
21555 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21556 test_array [0] = 0
21557
21558   ;
21559   return 0;
21560 }
21561 _ACEOF
21562 rm -f conftest.$ac_objext
21563 if { (ac_try="$ac_compile"
21564 case "(($ac_try" in
21565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566   *) ac_try_echo=$ac_try;;
21567 esac
21568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21569   (eval "$ac_compile") 2>conftest.er1
21570   ac_status=$?
21571   grep -v '^ *+' conftest.er1 >conftest.err
21572   rm -f conftest.er1
21573   cat conftest.err >&5
21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575   (exit $ac_status); } &&
21576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21577   { (case "(($ac_try" in
21578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579   *) ac_try_echo=$ac_try;;
21580 esac
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582   (eval "$ac_try") 2>&5
21583   ac_status=$?
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); }; } &&
21586          { ac_try='test -s conftest.$ac_objext'
21587   { (case "(($ac_try" in
21588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589   *) ac_try_echo=$ac_try;;
21590 esac
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592   (eval "$ac_try") 2>&5
21593   ac_status=$?
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); }; }; then
21596   ac_lo=$ac_mid; break
21597 else
21598   echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21600
21601         ac_hi=`expr '(' $ac_mid ')' - 1`
21602                         if test $ac_mid -le $ac_hi; then
21603                           ac_lo= ac_hi=
21604                           break
21605                         fi
21606                         ac_mid=`expr 2 '*' $ac_mid`
21607 fi
21608
21609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21610   done
21611 else
21612   echo "$as_me: failed program was:" >&5
21613 sed 's/^/| /' conftest.$ac_ext >&5
21614
21615         ac_lo= ac_hi=
21616 fi
21617
21618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21619 fi
21620
21621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21622 # Binary search between lo and hi bounds.
21623 while test "x$ac_lo" != "x$ac_hi"; do
21624   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21625   cat >conftest.$ac_ext <<_ACEOF
21626 /* confdefs.h.  */
21627 _ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h.  */
21631 $ac_includes_default
21632                    typedef long ac__type_sizeof_;
21633 int
21634 main ()
21635 {
21636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21637 test_array [0] = 0
21638
21639   ;
21640   return 0;
21641 }
21642 _ACEOF
21643 rm -f conftest.$ac_objext
21644 if { (ac_try="$ac_compile"
21645 case "(($ac_try" in
21646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647   *) ac_try_echo=$ac_try;;
21648 esac
21649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21650   (eval "$ac_compile") 2>conftest.er1
21651   ac_status=$?
21652   grep -v '^ *+' conftest.er1 >conftest.err
21653   rm -f conftest.er1
21654   cat conftest.err >&5
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); } &&
21657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21658   { (case "(($ac_try" in
21659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660   *) ac_try_echo=$ac_try;;
21661 esac
21662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663   (eval "$ac_try") 2>&5
21664   ac_status=$?
21665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); }; } &&
21667          { ac_try='test -s conftest.$ac_objext'
21668   { (case "(($ac_try" in
21669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670   *) ac_try_echo=$ac_try;;
21671 esac
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673   (eval "$ac_try") 2>&5
21674   ac_status=$?
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); }; }; then
21677   ac_hi=$ac_mid
21678 else
21679   echo "$as_me: failed program was:" >&5
21680 sed 's/^/| /' conftest.$ac_ext >&5
21681
21682         ac_lo=`expr '(' $ac_mid ')' + 1`
21683 fi
21684
21685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686 done
21687 case $ac_lo in
21688 ?*) ac_cv_sizeof_long=$ac_lo;;
21689 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21690 See \`config.log' for more details." >&5
21691 echo "$as_me: error: cannot compute sizeof (long)
21692 See \`config.log' for more details." >&2;}
21693    { (exit 77); exit 77; }; } ;;
21694 esac
21695 else
21696   cat >conftest.$ac_ext <<_ACEOF
21697 /* confdefs.h.  */
21698 _ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h.  */
21702 $ac_includes_default
21703                    typedef long ac__type_sizeof_;
21704 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21705 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21706 #include <stdio.h>
21707 #include <stdlib.h>
21708 int
21709 main ()
21710 {
21711
21712   FILE *f = fopen ("conftest.val", "w");
21713   if (! f)
21714     return 1;
21715   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21716     {
21717       long int i = longval ();
21718       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21719         return 1;
21720       fprintf (f, "%ld\n", i);
21721     }
21722   else
21723     {
21724       unsigned long int i = ulongval ();
21725       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21726         return 1;
21727       fprintf (f, "%lu\n", i);
21728     }
21729   return ferror (f) || fclose (f) != 0;
21730
21731   ;
21732   return 0;
21733 }
21734 _ACEOF
21735 rm -f conftest$ac_exeext
21736 if { (ac_try="$ac_link"
21737 case "(($ac_try" in
21738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739   *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742   (eval "$ac_link") 2>&5
21743   ac_status=$?
21744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21746   { (case "(($ac_try" in
21747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748   *) ac_try_echo=$ac_try;;
21749 esac
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751   (eval "$ac_try") 2>&5
21752   ac_status=$?
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); }; }; then
21755   ac_cv_sizeof_long=`cat conftest.val`
21756 else
21757   echo "$as_me: program exited with status $ac_status" >&5
21758 echo "$as_me: failed program was:" >&5
21759 sed 's/^/| /' conftest.$ac_ext >&5
21760
21761 ( exit $ac_status )
21762 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21763 See \`config.log' for more details." >&5
21764 echo "$as_me: error: cannot compute sizeof (long)
21765 See \`config.log' for more details." >&2;}
21766    { (exit 77); exit 77; }; }
21767 fi
21768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21769 fi
21770 rm -f conftest.val
21771 else
21772   ac_cv_sizeof_long=0
21773 fi
21774 fi
21775 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21776 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21777 cat >>confdefs.h <<_ACEOF
21778 #define SIZEOF_LONG $ac_cv_sizeof_long
21779 _ACEOF
21780
21781
21782 { echo "$as_me:$LINENO: checking for size_t" >&5
21783 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21784 if test "${ac_cv_type_size_t+set}" = set; then
21785   echo $ECHO_N "(cached) $ECHO_C" >&6
21786 else
21787   cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h.  */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h.  */
21793 $ac_includes_default
21794 typedef size_t ac__type_new_;
21795 int
21796 main ()
21797 {
21798 if ((ac__type_new_ *) 0)
21799   return 0;
21800 if (sizeof (ac__type_new_))
21801   return 0;
21802   ;
21803   return 0;
21804 }
21805 _ACEOF
21806 rm -f conftest.$ac_objext
21807 if { (ac_try="$ac_compile"
21808 case "(($ac_try" in
21809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21810   *) ac_try_echo=$ac_try;;
21811 esac
21812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21813   (eval "$ac_compile") 2>conftest.er1
21814   ac_status=$?
21815   grep -v '^ *+' conftest.er1 >conftest.err
21816   rm -f conftest.er1
21817   cat conftest.err >&5
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); } &&
21820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21821   { (case "(($ac_try" in
21822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823   *) ac_try_echo=$ac_try;;
21824 esac
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826   (eval "$ac_try") 2>&5
21827   ac_status=$?
21828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829   (exit $ac_status); }; } &&
21830          { ac_try='test -s conftest.$ac_objext'
21831   { (case "(($ac_try" in
21832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21833   *) ac_try_echo=$ac_try;;
21834 esac
21835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21836   (eval "$ac_try") 2>&5
21837   ac_status=$?
21838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839   (exit $ac_status); }; }; then
21840   ac_cv_type_size_t=yes
21841 else
21842   echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21844
21845         ac_cv_type_size_t=no
21846 fi
21847
21848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21849 fi
21850 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21851 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21852
21853 { echo "$as_me:$LINENO: checking size of size_t" >&5
21854 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21855 if test "${ac_cv_sizeof_size_t+set}" = set; then
21856   echo $ECHO_N "(cached) $ECHO_C" >&6
21857 else
21858   if test "$ac_cv_type_size_t" = yes; then
21859   # The cast to long int works around a bug in the HP C Compiler
21860   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21861   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21862   # This bug is HP SR number 8606223364.
21863   if test "$cross_compiling" = yes; then
21864   # Depending upon the size, compute the lo and hi bounds.
21865 cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h.  */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h.  */
21871 $ac_includes_default
21872                    typedef size_t ac__type_sizeof_;
21873 int
21874 main ()
21875 {
21876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21877 test_array [0] = 0
21878
21879   ;
21880   return 0;
21881 }
21882 _ACEOF
21883 rm -f conftest.$ac_objext
21884 if { (ac_try="$ac_compile"
21885 case "(($ac_try" in
21886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887   *) ac_try_echo=$ac_try;;
21888 esac
21889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21890   (eval "$ac_compile") 2>conftest.er1
21891   ac_status=$?
21892   grep -v '^ *+' conftest.er1 >conftest.err
21893   rm -f conftest.er1
21894   cat conftest.err >&5
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); } &&
21897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21898   { (case "(($ac_try" in
21899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900   *) ac_try_echo=$ac_try;;
21901 esac
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903   (eval "$ac_try") 2>&5
21904   ac_status=$?
21905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906   (exit $ac_status); }; } &&
21907          { ac_try='test -s conftest.$ac_objext'
21908   { (case "(($ac_try" in
21909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910   *) ac_try_echo=$ac_try;;
21911 esac
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913   (eval "$ac_try") 2>&5
21914   ac_status=$?
21915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916   (exit $ac_status); }; }; then
21917   ac_lo=0 ac_mid=0
21918   while :; do
21919     cat >conftest.$ac_ext <<_ACEOF
21920 /* confdefs.h.  */
21921 _ACEOF
21922 cat confdefs.h >>conftest.$ac_ext
21923 cat >>conftest.$ac_ext <<_ACEOF
21924 /* end confdefs.h.  */
21925 $ac_includes_default
21926                    typedef size_t ac__type_sizeof_;
21927 int
21928 main ()
21929 {
21930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21931 test_array [0] = 0
21932
21933   ;
21934   return 0;
21935 }
21936 _ACEOF
21937 rm -f conftest.$ac_objext
21938 if { (ac_try="$ac_compile"
21939 case "(($ac_try" in
21940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941   *) ac_try_echo=$ac_try;;
21942 esac
21943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944   (eval "$ac_compile") 2>conftest.er1
21945   ac_status=$?
21946   grep -v '^ *+' conftest.er1 >conftest.err
21947   rm -f conftest.er1
21948   cat conftest.err >&5
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); } &&
21951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21952   { (case "(($ac_try" in
21953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954   *) ac_try_echo=$ac_try;;
21955 esac
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957   (eval "$ac_try") 2>&5
21958   ac_status=$?
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); }; } &&
21961          { ac_try='test -s conftest.$ac_objext'
21962   { (case "(($ac_try" in
21963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964   *) ac_try_echo=$ac_try;;
21965 esac
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967   (eval "$ac_try") 2>&5
21968   ac_status=$?
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); }; }; then
21971   ac_hi=$ac_mid; break
21972 else
21973   echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21975
21976         ac_lo=`expr $ac_mid + 1`
21977                         if test $ac_lo -le $ac_mid; then
21978                           ac_lo= ac_hi=
21979                           break
21980                         fi
21981                         ac_mid=`expr 2 '*' $ac_mid + 1`
21982 fi
21983
21984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21985   done
21986 else
21987   echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21989
21990         cat >conftest.$ac_ext <<_ACEOF
21991 /* confdefs.h.  */
21992 _ACEOF
21993 cat confdefs.h >>conftest.$ac_ext
21994 cat >>conftest.$ac_ext <<_ACEOF
21995 /* end confdefs.h.  */
21996 $ac_includes_default
21997                    typedef size_t ac__type_sizeof_;
21998 int
21999 main ()
22000 {
22001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22002 test_array [0] = 0
22003
22004   ;
22005   return 0;
22006 }
22007 _ACEOF
22008 rm -f conftest.$ac_objext
22009 if { (ac_try="$ac_compile"
22010 case "(($ac_try" in
22011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012   *) ac_try_echo=$ac_try;;
22013 esac
22014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015   (eval "$ac_compile") 2>conftest.er1
22016   ac_status=$?
22017   grep -v '^ *+' conftest.er1 >conftest.err
22018   rm -f conftest.er1
22019   cat conftest.err >&5
22020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021   (exit $ac_status); } &&
22022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22023   { (case "(($ac_try" in
22024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22025   *) ac_try_echo=$ac_try;;
22026 esac
22027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22028   (eval "$ac_try") 2>&5
22029   ac_status=$?
22030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031   (exit $ac_status); }; } &&
22032          { ac_try='test -s conftest.$ac_objext'
22033   { (case "(($ac_try" in
22034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035   *) ac_try_echo=$ac_try;;
22036 esac
22037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038   (eval "$ac_try") 2>&5
22039   ac_status=$?
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); }; }; then
22042   ac_hi=-1 ac_mid=-1
22043   while :; do
22044     cat >conftest.$ac_ext <<_ACEOF
22045 /* confdefs.h.  */
22046 _ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h.  */
22050 $ac_includes_default
22051                    typedef size_t ac__type_sizeof_;
22052 int
22053 main ()
22054 {
22055 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22056 test_array [0] = 0
22057
22058   ;
22059   return 0;
22060 }
22061 _ACEOF
22062 rm -f conftest.$ac_objext
22063 if { (ac_try="$ac_compile"
22064 case "(($ac_try" in
22065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22066   *) ac_try_echo=$ac_try;;
22067 esac
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069   (eval "$ac_compile") 2>conftest.er1
22070   ac_status=$?
22071   grep -v '^ *+' conftest.er1 >conftest.err
22072   rm -f conftest.er1
22073   cat conftest.err >&5
22074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075   (exit $ac_status); } &&
22076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22077   { (case "(($ac_try" in
22078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079   *) ac_try_echo=$ac_try;;
22080 esac
22081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082   (eval "$ac_try") 2>&5
22083   ac_status=$?
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); }; } &&
22086          { ac_try='test -s conftest.$ac_objext'
22087   { (case "(($ac_try" in
22088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089   *) ac_try_echo=$ac_try;;
22090 esac
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092   (eval "$ac_try") 2>&5
22093   ac_status=$?
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); }; }; then
22096   ac_lo=$ac_mid; break
22097 else
22098   echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22100
22101         ac_hi=`expr '(' $ac_mid ')' - 1`
22102                         if test $ac_mid -le $ac_hi; then
22103                           ac_lo= ac_hi=
22104                           break
22105                         fi
22106                         ac_mid=`expr 2 '*' $ac_mid`
22107 fi
22108
22109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22110   done
22111 else
22112   echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22114
22115         ac_lo= ac_hi=
22116 fi
22117
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119 fi
22120
22121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22122 # Binary search between lo and hi bounds.
22123 while test "x$ac_lo" != "x$ac_hi"; do
22124   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22125   cat >conftest.$ac_ext <<_ACEOF
22126 /* confdefs.h.  */
22127 _ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h.  */
22131 $ac_includes_default
22132                    typedef size_t ac__type_sizeof_;
22133 int
22134 main ()
22135 {
22136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22137 test_array [0] = 0
22138
22139   ;
22140   return 0;
22141 }
22142 _ACEOF
22143 rm -f conftest.$ac_objext
22144 if { (ac_try="$ac_compile"
22145 case "(($ac_try" in
22146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147   *) ac_try_echo=$ac_try;;
22148 esac
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150   (eval "$ac_compile") 2>conftest.er1
22151   ac_status=$?
22152   grep -v '^ *+' conftest.er1 >conftest.err
22153   rm -f conftest.er1
22154   cat conftest.err >&5
22155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156   (exit $ac_status); } &&
22157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22158   { (case "(($ac_try" in
22159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160   *) ac_try_echo=$ac_try;;
22161 esac
22162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22163   (eval "$ac_try") 2>&5
22164   ac_status=$?
22165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166   (exit $ac_status); }; } &&
22167          { ac_try='test -s conftest.$ac_objext'
22168   { (case "(($ac_try" in
22169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170   *) ac_try_echo=$ac_try;;
22171 esac
22172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22173   (eval "$ac_try") 2>&5
22174   ac_status=$?
22175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176   (exit $ac_status); }; }; then
22177   ac_hi=$ac_mid
22178 else
22179   echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22181
22182         ac_lo=`expr '(' $ac_mid ')' + 1`
22183 fi
22184
22185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22186 done
22187 case $ac_lo in
22188 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22189 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22190 See \`config.log' for more details." >&5
22191 echo "$as_me: error: cannot compute sizeof (size_t)
22192 See \`config.log' for more details." >&2;}
22193    { (exit 77); exit 77; }; } ;;
22194 esac
22195 else
22196   cat >conftest.$ac_ext <<_ACEOF
22197 /* confdefs.h.  */
22198 _ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h.  */
22202 $ac_includes_default
22203                    typedef size_t ac__type_sizeof_;
22204 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22205 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22206 #include <stdio.h>
22207 #include <stdlib.h>
22208 int
22209 main ()
22210 {
22211
22212   FILE *f = fopen ("conftest.val", "w");
22213   if (! f)
22214     return 1;
22215   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22216     {
22217       long int i = longval ();
22218       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22219         return 1;
22220       fprintf (f, "%ld\n", i);
22221     }
22222   else
22223     {
22224       unsigned long int i = ulongval ();
22225       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22226         return 1;
22227       fprintf (f, "%lu\n", i);
22228     }
22229   return ferror (f) || fclose (f) != 0;
22230
22231   ;
22232   return 0;
22233 }
22234 _ACEOF
22235 rm -f conftest$ac_exeext
22236 if { (ac_try="$ac_link"
22237 case "(($ac_try" in
22238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239   *) ac_try_echo=$ac_try;;
22240 esac
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242   (eval "$ac_link") 2>&5
22243   ac_status=$?
22244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22246   { (case "(($ac_try" in
22247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248   *) ac_try_echo=$ac_try;;
22249 esac
22250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22251   (eval "$ac_try") 2>&5
22252   ac_status=$?
22253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254   (exit $ac_status); }; }; then
22255   ac_cv_sizeof_size_t=`cat conftest.val`
22256 else
22257   echo "$as_me: program exited with status $ac_status" >&5
22258 echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22260
22261 ( exit $ac_status )
22262 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22263 See \`config.log' for more details." >&5
22264 echo "$as_me: error: cannot compute sizeof (size_t)
22265 See \`config.log' for more details." >&2;}
22266    { (exit 77); exit 77; }; }
22267 fi
22268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22269 fi
22270 rm -f conftest.val
22271 else
22272   ac_cv_sizeof_size_t=0
22273 fi
22274 fi
22275 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22276 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22277 cat >>confdefs.h <<_ACEOF
22278 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22279 _ACEOF
22280
22281
22282
22283 case "${host}" in
22284     arm-*-linux* )
22285         { echo "$as_me:$LINENO: checking for long long" >&5
22286 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22287 if test "${ac_cv_type_long_long+set}" = set; then
22288   echo $ECHO_N "(cached) $ECHO_C" >&6
22289 else
22290   cat >conftest.$ac_ext <<_ACEOF
22291 /* confdefs.h.  */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h.  */
22296 $ac_includes_default
22297 typedef long long ac__type_new_;
22298 int
22299 main ()
22300 {
22301 if ((ac__type_new_ *) 0)
22302   return 0;
22303 if (sizeof (ac__type_new_))
22304   return 0;
22305   ;
22306   return 0;
22307 }
22308 _ACEOF
22309 rm -f conftest.$ac_objext
22310 if { (ac_try="$ac_compile"
22311 case "(($ac_try" in
22312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313   *) ac_try_echo=$ac_try;;
22314 esac
22315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316   (eval "$ac_compile") 2>conftest.er1
22317   ac_status=$?
22318   grep -v '^ *+' conftest.er1 >conftest.err
22319   rm -f conftest.er1
22320   cat conftest.err >&5
22321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322   (exit $ac_status); } &&
22323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22324   { (case "(($ac_try" in
22325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326   *) ac_try_echo=$ac_try;;
22327 esac
22328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22329   (eval "$ac_try") 2>&5
22330   ac_status=$?
22331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332   (exit $ac_status); }; } &&
22333          { ac_try='test -s conftest.$ac_objext'
22334   { (case "(($ac_try" in
22335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336   *) ac_try_echo=$ac_try;;
22337 esac
22338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22339   (eval "$ac_try") 2>&5
22340   ac_status=$?
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); }; }; then
22343   ac_cv_type_long_long=yes
22344 else
22345   echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348         ac_cv_type_long_long=no
22349 fi
22350
22351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352 fi
22353 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22354 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22355
22356 { echo "$as_me:$LINENO: checking size of long long" >&5
22357 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22358 if test "${ac_cv_sizeof_long_long+set}" = set; then
22359   echo $ECHO_N "(cached) $ECHO_C" >&6
22360 else
22361   if test "$ac_cv_type_long_long" = yes; then
22362   # The cast to long int works around a bug in the HP C Compiler
22363   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22364   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22365   # This bug is HP SR number 8606223364.
22366   if test "$cross_compiling" = yes; then
22367   # Depending upon the size, compute the lo and hi bounds.
22368 cat >conftest.$ac_ext <<_ACEOF
22369 /* confdefs.h.  */
22370 _ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h.  */
22374 $ac_includes_default
22375                    typedef long long ac__type_sizeof_;
22376 int
22377 main ()
22378 {
22379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22380 test_array [0] = 0
22381
22382   ;
22383   return 0;
22384 }
22385 _ACEOF
22386 rm -f conftest.$ac_objext
22387 if { (ac_try="$ac_compile"
22388 case "(($ac_try" in
22389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390   *) ac_try_echo=$ac_try;;
22391 esac
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393   (eval "$ac_compile") 2>conftest.er1
22394   ac_status=$?
22395   grep -v '^ *+' conftest.er1 >conftest.err
22396   rm -f conftest.er1
22397   cat conftest.err >&5
22398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399   (exit $ac_status); } &&
22400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22401   { (case "(($ac_try" in
22402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403   *) ac_try_echo=$ac_try;;
22404 esac
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406   (eval "$ac_try") 2>&5
22407   ac_status=$?
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); }; } &&
22410          { ac_try='test -s conftest.$ac_objext'
22411   { (case "(($ac_try" in
22412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413   *) ac_try_echo=$ac_try;;
22414 esac
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416   (eval "$ac_try") 2>&5
22417   ac_status=$?
22418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419   (exit $ac_status); }; }; then
22420   ac_lo=0 ac_mid=0
22421   while :; do
22422     cat >conftest.$ac_ext <<_ACEOF
22423 /* confdefs.h.  */
22424 _ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h.  */
22428 $ac_includes_default
22429                    typedef long long ac__type_sizeof_;
22430 int
22431 main ()
22432 {
22433 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22434 test_array [0] = 0
22435
22436   ;
22437   return 0;
22438 }
22439 _ACEOF
22440 rm -f conftest.$ac_objext
22441 if { (ac_try="$ac_compile"
22442 case "(($ac_try" in
22443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22444   *) ac_try_echo=$ac_try;;
22445 esac
22446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22447   (eval "$ac_compile") 2>conftest.er1
22448   ac_status=$?
22449   grep -v '^ *+' conftest.er1 >conftest.err
22450   rm -f conftest.er1
22451   cat conftest.err >&5
22452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); } &&
22454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22455   { (case "(($ac_try" in
22456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457   *) ac_try_echo=$ac_try;;
22458 esac
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460   (eval "$ac_try") 2>&5
22461   ac_status=$?
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); }; } &&
22464          { ac_try='test -s conftest.$ac_objext'
22465   { (case "(($ac_try" in
22466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22467   *) ac_try_echo=$ac_try;;
22468 esac
22469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22470   (eval "$ac_try") 2>&5
22471   ac_status=$?
22472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473   (exit $ac_status); }; }; then
22474   ac_hi=$ac_mid; break
22475 else
22476   echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22478
22479         ac_lo=`expr $ac_mid + 1`
22480                         if test $ac_lo -le $ac_mid; then
22481                           ac_lo= ac_hi=
22482                           break
22483                         fi
22484                         ac_mid=`expr 2 '*' $ac_mid + 1`
22485 fi
22486
22487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488   done
22489 else
22490   echo "$as_me: failed program was:" >&5
22491 sed 's/^/| /' conftest.$ac_ext >&5
22492
22493         cat >conftest.$ac_ext <<_ACEOF
22494 /* confdefs.h.  */
22495 _ACEOF
22496 cat confdefs.h >>conftest.$ac_ext
22497 cat >>conftest.$ac_ext <<_ACEOF
22498 /* end confdefs.h.  */
22499 $ac_includes_default
22500                    typedef long long ac__type_sizeof_;
22501 int
22502 main ()
22503 {
22504 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22505 test_array [0] = 0
22506
22507   ;
22508   return 0;
22509 }
22510 _ACEOF
22511 rm -f conftest.$ac_objext
22512 if { (ac_try="$ac_compile"
22513 case "(($ac_try" in
22514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515   *) ac_try_echo=$ac_try;;
22516 esac
22517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518   (eval "$ac_compile") 2>conftest.er1
22519   ac_status=$?
22520   grep -v '^ *+' conftest.er1 >conftest.err
22521   rm -f conftest.er1
22522   cat conftest.err >&5
22523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524   (exit $ac_status); } &&
22525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22526   { (case "(($ac_try" in
22527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528   *) ac_try_echo=$ac_try;;
22529 esac
22530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531   (eval "$ac_try") 2>&5
22532   ac_status=$?
22533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534   (exit $ac_status); }; } &&
22535          { ac_try='test -s conftest.$ac_objext'
22536   { (case "(($ac_try" in
22537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538   *) ac_try_echo=$ac_try;;
22539 esac
22540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541   (eval "$ac_try") 2>&5
22542   ac_status=$?
22543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544   (exit $ac_status); }; }; then
22545   ac_hi=-1 ac_mid=-1
22546   while :; do
22547     cat >conftest.$ac_ext <<_ACEOF
22548 /* confdefs.h.  */
22549 _ACEOF
22550 cat confdefs.h >>conftest.$ac_ext
22551 cat >>conftest.$ac_ext <<_ACEOF
22552 /* end confdefs.h.  */
22553 $ac_includes_default
22554                    typedef long long ac__type_sizeof_;
22555 int
22556 main ()
22557 {
22558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22559 test_array [0] = 0
22560
22561   ;
22562   return 0;
22563 }
22564 _ACEOF
22565 rm -f conftest.$ac_objext
22566 if { (ac_try="$ac_compile"
22567 case "(($ac_try" in
22568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22569   *) ac_try_echo=$ac_try;;
22570 esac
22571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22572   (eval "$ac_compile") 2>conftest.er1
22573   ac_status=$?
22574   grep -v '^ *+' conftest.er1 >conftest.err
22575   rm -f conftest.er1
22576   cat conftest.err >&5
22577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578   (exit $ac_status); } &&
22579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22580   { (case "(($ac_try" in
22581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22582   *) ac_try_echo=$ac_try;;
22583 esac
22584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22585   (eval "$ac_try") 2>&5
22586   ac_status=$?
22587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588   (exit $ac_status); }; } &&
22589          { ac_try='test -s conftest.$ac_objext'
22590   { (case "(($ac_try" in
22591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592   *) ac_try_echo=$ac_try;;
22593 esac
22594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22595   (eval "$ac_try") 2>&5
22596   ac_status=$?
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); }; }; then
22599   ac_lo=$ac_mid; break
22600 else
22601   echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22603
22604         ac_hi=`expr '(' $ac_mid ')' - 1`
22605                         if test $ac_mid -le $ac_hi; then
22606                           ac_lo= ac_hi=
22607                           break
22608                         fi
22609                         ac_mid=`expr 2 '*' $ac_mid`
22610 fi
22611
22612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22613   done
22614 else
22615   echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22617
22618         ac_lo= ac_hi=
22619 fi
22620
22621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22622 fi
22623
22624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22625 # Binary search between lo and hi bounds.
22626 while test "x$ac_lo" != "x$ac_hi"; do
22627   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22628   cat >conftest.$ac_ext <<_ACEOF
22629 /* confdefs.h.  */
22630 _ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h.  */
22634 $ac_includes_default
22635                    typedef long long ac__type_sizeof_;
22636 int
22637 main ()
22638 {
22639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22640 test_array [0] = 0
22641
22642   ;
22643   return 0;
22644 }
22645 _ACEOF
22646 rm -f conftest.$ac_objext
22647 if { (ac_try="$ac_compile"
22648 case "(($ac_try" in
22649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650   *) ac_try_echo=$ac_try;;
22651 esac
22652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22653   (eval "$ac_compile") 2>conftest.er1
22654   ac_status=$?
22655   grep -v '^ *+' conftest.er1 >conftest.err
22656   rm -f conftest.er1
22657   cat conftest.err >&5
22658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659   (exit $ac_status); } &&
22660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22661   { (case "(($ac_try" in
22662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22663   *) ac_try_echo=$ac_try;;
22664 esac
22665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22666   (eval "$ac_try") 2>&5
22667   ac_status=$?
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); }; } &&
22670          { ac_try='test -s conftest.$ac_objext'
22671   { (case "(($ac_try" in
22672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673   *) ac_try_echo=$ac_try;;
22674 esac
22675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22676   (eval "$ac_try") 2>&5
22677   ac_status=$?
22678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679   (exit $ac_status); }; }; then
22680   ac_hi=$ac_mid
22681 else
22682   echo "$as_me: failed program was:" >&5
22683 sed 's/^/| /' conftest.$ac_ext >&5
22684
22685         ac_lo=`expr '(' $ac_mid ')' + 1`
22686 fi
22687
22688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22689 done
22690 case $ac_lo in
22691 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22692 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22693 See \`config.log' for more details." >&5
22694 echo "$as_me: error: cannot compute sizeof (long long)
22695 See \`config.log' for more details." >&2;}
22696    { (exit 77); exit 77; }; } ;;
22697 esac
22698 else
22699   cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h.  */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h.  */
22705 $ac_includes_default
22706                    typedef long long ac__type_sizeof_;
22707 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22708 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22709 #include <stdio.h>
22710 #include <stdlib.h>
22711 int
22712 main ()
22713 {
22714
22715   FILE *f = fopen ("conftest.val", "w");
22716   if (! f)
22717     return 1;
22718   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22719     {
22720       long int i = longval ();
22721       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22722         return 1;
22723       fprintf (f, "%ld\n", i);
22724     }
22725   else
22726     {
22727       unsigned long int i = ulongval ();
22728       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22729         return 1;
22730       fprintf (f, "%lu\n", i);
22731     }
22732   return ferror (f) || fclose (f) != 0;
22733
22734   ;
22735   return 0;
22736 }
22737 _ACEOF
22738 rm -f conftest$ac_exeext
22739 if { (ac_try="$ac_link"
22740 case "(($ac_try" in
22741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742   *) ac_try_echo=$ac_try;;
22743 esac
22744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22745   (eval "$ac_link") 2>&5
22746   ac_status=$?
22747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22749   { (case "(($ac_try" in
22750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751   *) ac_try_echo=$ac_try;;
22752 esac
22753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754   (eval "$ac_try") 2>&5
22755   ac_status=$?
22756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22757   (exit $ac_status); }; }; then
22758   ac_cv_sizeof_long_long=`cat conftest.val`
22759 else
22760   echo "$as_me: program exited with status $ac_status" >&5
22761 echo "$as_me: failed program was:" >&5
22762 sed 's/^/| /' conftest.$ac_ext >&5
22763
22764 ( exit $ac_status )
22765 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22766 See \`config.log' for more details." >&5
22767 echo "$as_me: error: cannot compute sizeof (long long)
22768 See \`config.log' for more details." >&2;}
22769    { (exit 77); exit 77; }; }
22770 fi
22771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22772 fi
22773 rm -f conftest.val
22774 else
22775   ac_cv_sizeof_long_long=0
22776 fi
22777 fi
22778 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22779 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22780 cat >>confdefs.h <<_ACEOF
22781 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22782 _ACEOF
22783
22784
22785     ;;
22786     *-hp-hpux* )
22787         { echo "$as_me:$LINENO: checking for long long" >&5
22788 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22789 if test "${ac_cv_type_long_long+set}" = set; then
22790   echo $ECHO_N "(cached) $ECHO_C" >&6
22791 else
22792   cat >conftest.$ac_ext <<_ACEOF
22793 /* confdefs.h.  */
22794 _ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h.  */
22798 $ac_includes_default
22799 typedef long long ac__type_new_;
22800 int
22801 main ()
22802 {
22803 if ((ac__type_new_ *) 0)
22804   return 0;
22805 if (sizeof (ac__type_new_))
22806   return 0;
22807   ;
22808   return 0;
22809 }
22810 _ACEOF
22811 rm -f conftest.$ac_objext
22812 if { (ac_try="$ac_compile"
22813 case "(($ac_try" in
22814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815   *) ac_try_echo=$ac_try;;
22816 esac
22817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818   (eval "$ac_compile") 2>conftest.er1
22819   ac_status=$?
22820   grep -v '^ *+' conftest.er1 >conftest.err
22821   rm -f conftest.er1
22822   cat conftest.err >&5
22823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824   (exit $ac_status); } &&
22825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22826   { (case "(($ac_try" in
22827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828   *) ac_try_echo=$ac_try;;
22829 esac
22830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22831   (eval "$ac_try") 2>&5
22832   ac_status=$?
22833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); }; } &&
22835          { ac_try='test -s conftest.$ac_objext'
22836   { (case "(($ac_try" in
22837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838   *) ac_try_echo=$ac_try;;
22839 esac
22840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22841   (eval "$ac_try") 2>&5
22842   ac_status=$?
22843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844   (exit $ac_status); }; }; then
22845   ac_cv_type_long_long=yes
22846 else
22847   echo "$as_me: failed program was:" >&5
22848 sed 's/^/| /' conftest.$ac_ext >&5
22849
22850         ac_cv_type_long_long=no
22851 fi
22852
22853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22854 fi
22855 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22856 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22857
22858 { echo "$as_me:$LINENO: checking size of long long" >&5
22859 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22860 if test "${ac_cv_sizeof_long_long+set}" = set; then
22861   echo $ECHO_N "(cached) $ECHO_C" >&6
22862 else
22863   if test "$ac_cv_type_long_long" = yes; then
22864   # The cast to long int works around a bug in the HP C Compiler
22865   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22866   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22867   # This bug is HP SR number 8606223364.
22868   if test "$cross_compiling" = yes; then
22869   # Depending upon the size, compute the lo and hi bounds.
22870 cat >conftest.$ac_ext <<_ACEOF
22871 /* confdefs.h.  */
22872 _ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h.  */
22876 $ac_includes_default
22877                    typedef long long ac__type_sizeof_;
22878 int
22879 main ()
22880 {
22881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22882 test_array [0] = 0
22883
22884   ;
22885   return 0;
22886 }
22887 _ACEOF
22888 rm -f conftest.$ac_objext
22889 if { (ac_try="$ac_compile"
22890 case "(($ac_try" in
22891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22892   *) ac_try_echo=$ac_try;;
22893 esac
22894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22895   (eval "$ac_compile") 2>conftest.er1
22896   ac_status=$?
22897   grep -v '^ *+' conftest.er1 >conftest.err
22898   rm -f conftest.er1
22899   cat conftest.err >&5
22900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901   (exit $ac_status); } &&
22902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22903   { (case "(($ac_try" in
22904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905   *) ac_try_echo=$ac_try;;
22906 esac
22907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22908   (eval "$ac_try") 2>&5
22909   ac_status=$?
22910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911   (exit $ac_status); }; } &&
22912          { ac_try='test -s conftest.$ac_objext'
22913   { (case "(($ac_try" in
22914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915   *) ac_try_echo=$ac_try;;
22916 esac
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918   (eval "$ac_try") 2>&5
22919   ac_status=$?
22920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921   (exit $ac_status); }; }; then
22922   ac_lo=0 ac_mid=0
22923   while :; do
22924     cat >conftest.$ac_ext <<_ACEOF
22925 /* confdefs.h.  */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h.  */
22930 $ac_includes_default
22931                    typedef long long ac__type_sizeof_;
22932 int
22933 main ()
22934 {
22935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22936 test_array [0] = 0
22937
22938   ;
22939   return 0;
22940 }
22941 _ACEOF
22942 rm -f conftest.$ac_objext
22943 if { (ac_try="$ac_compile"
22944 case "(($ac_try" in
22945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946   *) ac_try_echo=$ac_try;;
22947 esac
22948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22949   (eval "$ac_compile") 2>conftest.er1
22950   ac_status=$?
22951   grep -v '^ *+' conftest.er1 >conftest.err
22952   rm -f conftest.er1
22953   cat conftest.err >&5
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); } &&
22956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22957   { (case "(($ac_try" in
22958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959   *) ac_try_echo=$ac_try;;
22960 esac
22961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962   (eval "$ac_try") 2>&5
22963   ac_status=$?
22964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965   (exit $ac_status); }; } &&
22966          { ac_try='test -s conftest.$ac_objext'
22967   { (case "(($ac_try" in
22968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969   *) ac_try_echo=$ac_try;;
22970 esac
22971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22972   (eval "$ac_try") 2>&5
22973   ac_status=$?
22974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975   (exit $ac_status); }; }; then
22976   ac_hi=$ac_mid; break
22977 else
22978   echo "$as_me: failed program was:" >&5
22979 sed 's/^/| /' conftest.$ac_ext >&5
22980
22981         ac_lo=`expr $ac_mid + 1`
22982                         if test $ac_lo -le $ac_mid; then
22983                           ac_lo= ac_hi=
22984                           break
22985                         fi
22986                         ac_mid=`expr 2 '*' $ac_mid + 1`
22987 fi
22988
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22990   done
22991 else
22992   echo "$as_me: failed program was:" >&5
22993 sed 's/^/| /' conftest.$ac_ext >&5
22994
22995         cat >conftest.$ac_ext <<_ACEOF
22996 /* confdefs.h.  */
22997 _ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h.  */
23001 $ac_includes_default
23002                    typedef long long ac__type_sizeof_;
23003 int
23004 main ()
23005 {
23006 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23007 test_array [0] = 0
23008
23009   ;
23010   return 0;
23011 }
23012 _ACEOF
23013 rm -f conftest.$ac_objext
23014 if { (ac_try="$ac_compile"
23015 case "(($ac_try" in
23016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23017   *) ac_try_echo=$ac_try;;
23018 esac
23019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23020   (eval "$ac_compile") 2>conftest.er1
23021   ac_status=$?
23022   grep -v '^ *+' conftest.er1 >conftest.err
23023   rm -f conftest.er1
23024   cat conftest.err >&5
23025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026   (exit $ac_status); } &&
23027          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23028   { (case "(($ac_try" in
23029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23030   *) ac_try_echo=$ac_try;;
23031 esac
23032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23033   (eval "$ac_try") 2>&5
23034   ac_status=$?
23035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036   (exit $ac_status); }; } &&
23037          { ac_try='test -s conftest.$ac_objext'
23038   { (case "(($ac_try" in
23039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23040   *) ac_try_echo=$ac_try;;
23041 esac
23042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23043   (eval "$ac_try") 2>&5
23044   ac_status=$?
23045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046   (exit $ac_status); }; }; then
23047   ac_hi=-1 ac_mid=-1
23048   while :; do
23049     cat >conftest.$ac_ext <<_ACEOF
23050 /* confdefs.h.  */
23051 _ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h.  */
23055 $ac_includes_default
23056                    typedef long long ac__type_sizeof_;
23057 int
23058 main ()
23059 {
23060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23061 test_array [0] = 0
23062
23063   ;
23064   return 0;
23065 }
23066 _ACEOF
23067 rm -f conftest.$ac_objext
23068 if { (ac_try="$ac_compile"
23069 case "(($ac_try" in
23070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071   *) ac_try_echo=$ac_try;;
23072 esac
23073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23074   (eval "$ac_compile") 2>conftest.er1
23075   ac_status=$?
23076   grep -v '^ *+' conftest.er1 >conftest.err
23077   rm -f conftest.er1
23078   cat conftest.err >&5
23079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080   (exit $ac_status); } &&
23081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23082   { (case "(($ac_try" in
23083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23084   *) ac_try_echo=$ac_try;;
23085 esac
23086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23087   (eval "$ac_try") 2>&5
23088   ac_status=$?
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); }; } &&
23091          { ac_try='test -s conftest.$ac_objext'
23092   { (case "(($ac_try" in
23093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23094   *) ac_try_echo=$ac_try;;
23095 esac
23096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23097   (eval "$ac_try") 2>&5
23098   ac_status=$?
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); }; }; then
23101   ac_lo=$ac_mid; break
23102 else
23103   echo "$as_me: failed program was:" >&5
23104 sed 's/^/| /' conftest.$ac_ext >&5
23105
23106         ac_hi=`expr '(' $ac_mid ')' - 1`
23107                         if test $ac_mid -le $ac_hi; then
23108                           ac_lo= ac_hi=
23109                           break
23110                         fi
23111                         ac_mid=`expr 2 '*' $ac_mid`
23112 fi
23113
23114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23115   done
23116 else
23117   echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23119
23120         ac_lo= ac_hi=
23121 fi
23122
23123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23124 fi
23125
23126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23127 # Binary search between lo and hi bounds.
23128 while test "x$ac_lo" != "x$ac_hi"; do
23129   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23130   cat >conftest.$ac_ext <<_ACEOF
23131 /* confdefs.h.  */
23132 _ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h.  */
23136 $ac_includes_default
23137                    typedef long long ac__type_sizeof_;
23138 int
23139 main ()
23140 {
23141 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23142 test_array [0] = 0
23143
23144   ;
23145   return 0;
23146 }
23147 _ACEOF
23148 rm -f conftest.$ac_objext
23149 if { (ac_try="$ac_compile"
23150 case "(($ac_try" in
23151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152   *) ac_try_echo=$ac_try;;
23153 esac
23154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23155   (eval "$ac_compile") 2>conftest.er1
23156   ac_status=$?
23157   grep -v '^ *+' conftest.er1 >conftest.err
23158   rm -f conftest.er1
23159   cat conftest.err >&5
23160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161   (exit $ac_status); } &&
23162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23163   { (case "(($ac_try" in
23164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165   *) ac_try_echo=$ac_try;;
23166 esac
23167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23168   (eval "$ac_try") 2>&5
23169   ac_status=$?
23170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171   (exit $ac_status); }; } &&
23172          { ac_try='test -s conftest.$ac_objext'
23173   { (case "(($ac_try" in
23174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23175   *) ac_try_echo=$ac_try;;
23176 esac
23177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23178   (eval "$ac_try") 2>&5
23179   ac_status=$?
23180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181   (exit $ac_status); }; }; then
23182   ac_hi=$ac_mid
23183 else
23184   echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23186
23187         ac_lo=`expr '(' $ac_mid ')' + 1`
23188 fi
23189
23190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23191 done
23192 case $ac_lo in
23193 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23194 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23195 See \`config.log' for more details." >&5
23196 echo "$as_me: error: cannot compute sizeof (long long)
23197 See \`config.log' for more details." >&2;}
23198    { (exit 77); exit 77; }; } ;;
23199 esac
23200 else
23201   cat >conftest.$ac_ext <<_ACEOF
23202 /* confdefs.h.  */
23203 _ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h.  */
23207 $ac_includes_default
23208                    typedef long long ac__type_sizeof_;
23209 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23210 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23211 #include <stdio.h>
23212 #include <stdlib.h>
23213 int
23214 main ()
23215 {
23216
23217   FILE *f = fopen ("conftest.val", "w");
23218   if (! f)
23219     return 1;
23220   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23221     {
23222       long int i = longval ();
23223       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23224         return 1;
23225       fprintf (f, "%ld\n", i);
23226     }
23227   else
23228     {
23229       unsigned long int i = ulongval ();
23230       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23231         return 1;
23232       fprintf (f, "%lu\n", i);
23233     }
23234   return ferror (f) || fclose (f) != 0;
23235
23236   ;
23237   return 0;
23238 }
23239 _ACEOF
23240 rm -f conftest$ac_exeext
23241 if { (ac_try="$ac_link"
23242 case "(($ac_try" in
23243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244   *) ac_try_echo=$ac_try;;
23245 esac
23246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23247   (eval "$ac_link") 2>&5
23248   ac_status=$?
23249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23251   { (case "(($ac_try" in
23252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253   *) ac_try_echo=$ac_try;;
23254 esac
23255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23256   (eval "$ac_try") 2>&5
23257   ac_status=$?
23258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259   (exit $ac_status); }; }; then
23260   ac_cv_sizeof_long_long=`cat conftest.val`
23261 else
23262   echo "$as_me: program exited with status $ac_status" >&5
23263 echo "$as_me: failed program was:" >&5
23264 sed 's/^/| /' conftest.$ac_ext >&5
23265
23266 ( exit $ac_status )
23267 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23268 See \`config.log' for more details." >&5
23269 echo "$as_me: error: cannot compute sizeof (long long)
23270 See \`config.log' for more details." >&2;}
23271    { (exit 77); exit 77; }; }
23272 fi
23273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23274 fi
23275 rm -f conftest.val
23276 else
23277   ac_cv_sizeof_long_long=0
23278 fi
23279 fi
23280 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23281 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23282 cat >>confdefs.h <<_ACEOF
23283 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23284 _ACEOF
23285
23286
23287         if test "$ac_cv_sizeof_long_long" != "0"; then
23288                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
23289         fi
23290     ;;
23291     * )
23292         { echo "$as_me:$LINENO: checking for long long" >&5
23293 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23294 if test "${ac_cv_type_long_long+set}" = set; then
23295   echo $ECHO_N "(cached) $ECHO_C" >&6
23296 else
23297   cat >conftest.$ac_ext <<_ACEOF
23298 /* confdefs.h.  */
23299 _ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h.  */
23303 $ac_includes_default
23304 typedef long long ac__type_new_;
23305 int
23306 main ()
23307 {
23308 if ((ac__type_new_ *) 0)
23309   return 0;
23310 if (sizeof (ac__type_new_))
23311   return 0;
23312   ;
23313   return 0;
23314 }
23315 _ACEOF
23316 rm -f conftest.$ac_objext
23317 if { (ac_try="$ac_compile"
23318 case "(($ac_try" in
23319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320   *) ac_try_echo=$ac_try;;
23321 esac
23322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23323   (eval "$ac_compile") 2>conftest.er1
23324   ac_status=$?
23325   grep -v '^ *+' conftest.er1 >conftest.err
23326   rm -f conftest.er1
23327   cat conftest.err >&5
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); } &&
23330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23331   { (case "(($ac_try" in
23332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23333   *) ac_try_echo=$ac_try;;
23334 esac
23335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23336   (eval "$ac_try") 2>&5
23337   ac_status=$?
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); }; } &&
23340          { ac_try='test -s conftest.$ac_objext'
23341   { (case "(($ac_try" in
23342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343   *) ac_try_echo=$ac_try;;
23344 esac
23345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23346   (eval "$ac_try") 2>&5
23347   ac_status=$?
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); }; }; then
23350   ac_cv_type_long_long=yes
23351 else
23352   echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23354
23355         ac_cv_type_long_long=no
23356 fi
23357
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 fi
23360 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23361 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23362
23363 { echo "$as_me:$LINENO: checking size of long long" >&5
23364 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23365 if test "${ac_cv_sizeof_long_long+set}" = set; then
23366   echo $ECHO_N "(cached) $ECHO_C" >&6
23367 else
23368   if test "$ac_cv_type_long_long" = yes; then
23369   # The cast to long int works around a bug in the HP C Compiler
23370   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23371   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23372   # This bug is HP SR number 8606223364.
23373   if test "$cross_compiling" = yes; then
23374   # Depending upon the size, compute the lo and hi bounds.
23375 cat >conftest.$ac_ext <<_ACEOF
23376 /* confdefs.h.  */
23377 _ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h.  */
23381 $ac_includes_default
23382                    typedef long long ac__type_sizeof_;
23383 int
23384 main ()
23385 {
23386 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23387 test_array [0] = 0
23388
23389   ;
23390   return 0;
23391 }
23392 _ACEOF
23393 rm -f conftest.$ac_objext
23394 if { (ac_try="$ac_compile"
23395 case "(($ac_try" in
23396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397   *) ac_try_echo=$ac_try;;
23398 esac
23399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23400   (eval "$ac_compile") 2>conftest.er1
23401   ac_status=$?
23402   grep -v '^ *+' conftest.er1 >conftest.err
23403   rm -f conftest.er1
23404   cat conftest.err >&5
23405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406   (exit $ac_status); } &&
23407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23408   { (case "(($ac_try" in
23409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410   *) ac_try_echo=$ac_try;;
23411 esac
23412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23413   (eval "$ac_try") 2>&5
23414   ac_status=$?
23415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416   (exit $ac_status); }; } &&
23417          { ac_try='test -s conftest.$ac_objext'
23418   { (case "(($ac_try" in
23419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23420   *) ac_try_echo=$ac_try;;
23421 esac
23422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23423   (eval "$ac_try") 2>&5
23424   ac_status=$?
23425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426   (exit $ac_status); }; }; then
23427   ac_lo=0 ac_mid=0
23428   while :; do
23429     cat >conftest.$ac_ext <<_ACEOF
23430 /* confdefs.h.  */
23431 _ACEOF
23432 cat confdefs.h >>conftest.$ac_ext
23433 cat >>conftest.$ac_ext <<_ACEOF
23434 /* end confdefs.h.  */
23435 $ac_includes_default
23436                    typedef long long ac__type_sizeof_;
23437 int
23438 main ()
23439 {
23440 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23441 test_array [0] = 0
23442
23443   ;
23444   return 0;
23445 }
23446 _ACEOF
23447 rm -f conftest.$ac_objext
23448 if { (ac_try="$ac_compile"
23449 case "(($ac_try" in
23450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23451   *) ac_try_echo=$ac_try;;
23452 esac
23453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23454   (eval "$ac_compile") 2>conftest.er1
23455   ac_status=$?
23456   grep -v '^ *+' conftest.er1 >conftest.err
23457   rm -f conftest.er1
23458   cat conftest.err >&5
23459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460   (exit $ac_status); } &&
23461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23462   { (case "(($ac_try" in
23463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464   *) ac_try_echo=$ac_try;;
23465 esac
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467   (eval "$ac_try") 2>&5
23468   ac_status=$?
23469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470   (exit $ac_status); }; } &&
23471          { ac_try='test -s conftest.$ac_objext'
23472   { (case "(($ac_try" in
23473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474   *) ac_try_echo=$ac_try;;
23475 esac
23476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23477   (eval "$ac_try") 2>&5
23478   ac_status=$?
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); }; }; then
23481   ac_hi=$ac_mid; break
23482 else
23483   echo "$as_me: failed program was:" >&5
23484 sed 's/^/| /' conftest.$ac_ext >&5
23485
23486         ac_lo=`expr $ac_mid + 1`
23487                         if test $ac_lo -le $ac_mid; then
23488                           ac_lo= ac_hi=
23489                           break
23490                         fi
23491                         ac_mid=`expr 2 '*' $ac_mid + 1`
23492 fi
23493
23494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23495   done
23496 else
23497   echo "$as_me: failed program was:" >&5
23498 sed 's/^/| /' conftest.$ac_ext >&5
23499
23500         cat >conftest.$ac_ext <<_ACEOF
23501 /* confdefs.h.  */
23502 _ACEOF
23503 cat confdefs.h >>conftest.$ac_ext
23504 cat >>conftest.$ac_ext <<_ACEOF
23505 /* end confdefs.h.  */
23506 $ac_includes_default
23507                    typedef long long ac__type_sizeof_;
23508 int
23509 main ()
23510 {
23511 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23512 test_array [0] = 0
23513
23514   ;
23515   return 0;
23516 }
23517 _ACEOF
23518 rm -f conftest.$ac_objext
23519 if { (ac_try="$ac_compile"
23520 case "(($ac_try" in
23521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522   *) ac_try_echo=$ac_try;;
23523 esac
23524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23525   (eval "$ac_compile") 2>conftest.er1
23526   ac_status=$?
23527   grep -v '^ *+' conftest.er1 >conftest.err
23528   rm -f conftest.er1
23529   cat conftest.err >&5
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); } &&
23532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23533   { (case "(($ac_try" in
23534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535   *) ac_try_echo=$ac_try;;
23536 esac
23537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538   (eval "$ac_try") 2>&5
23539   ac_status=$?
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); }; } &&
23542          { ac_try='test -s conftest.$ac_objext'
23543   { (case "(($ac_try" in
23544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23545   *) ac_try_echo=$ac_try;;
23546 esac
23547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23548   (eval "$ac_try") 2>&5
23549   ac_status=$?
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); }; }; then
23552   ac_hi=-1 ac_mid=-1
23553   while :; do
23554     cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h.  */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h.  */
23560 $ac_includes_default
23561                    typedef long long ac__type_sizeof_;
23562 int
23563 main ()
23564 {
23565 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23566 test_array [0] = 0
23567
23568   ;
23569   return 0;
23570 }
23571 _ACEOF
23572 rm -f conftest.$ac_objext
23573 if { (ac_try="$ac_compile"
23574 case "(($ac_try" in
23575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23576   *) ac_try_echo=$ac_try;;
23577 esac
23578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23579   (eval "$ac_compile") 2>conftest.er1
23580   ac_status=$?
23581   grep -v '^ *+' conftest.er1 >conftest.err
23582   rm -f conftest.er1
23583   cat conftest.err >&5
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); } &&
23586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23587   { (case "(($ac_try" in
23588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23589   *) ac_try_echo=$ac_try;;
23590 esac
23591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23592   (eval "$ac_try") 2>&5
23593   ac_status=$?
23594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595   (exit $ac_status); }; } &&
23596          { ac_try='test -s conftest.$ac_objext'
23597   { (case "(($ac_try" in
23598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23599   *) ac_try_echo=$ac_try;;
23600 esac
23601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23602   (eval "$ac_try") 2>&5
23603   ac_status=$?
23604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605   (exit $ac_status); }; }; then
23606   ac_lo=$ac_mid; break
23607 else
23608   echo "$as_me: failed program was:" >&5
23609 sed 's/^/| /' conftest.$ac_ext >&5
23610
23611         ac_hi=`expr '(' $ac_mid ')' - 1`
23612                         if test $ac_mid -le $ac_hi; then
23613                           ac_lo= ac_hi=
23614                           break
23615                         fi
23616                         ac_mid=`expr 2 '*' $ac_mid`
23617 fi
23618
23619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23620   done
23621 else
23622   echo "$as_me: failed program was:" >&5
23623 sed 's/^/| /' conftest.$ac_ext >&5
23624
23625         ac_lo= ac_hi=
23626 fi
23627
23628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23629 fi
23630
23631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23632 # Binary search between lo and hi bounds.
23633 while test "x$ac_lo" != "x$ac_hi"; do
23634   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23635   cat >conftest.$ac_ext <<_ACEOF
23636 /* confdefs.h.  */
23637 _ACEOF
23638 cat confdefs.h >>conftest.$ac_ext
23639 cat >>conftest.$ac_ext <<_ACEOF
23640 /* end confdefs.h.  */
23641 $ac_includes_default
23642                    typedef long long ac__type_sizeof_;
23643 int
23644 main ()
23645 {
23646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23647 test_array [0] = 0
23648
23649   ;
23650   return 0;
23651 }
23652 _ACEOF
23653 rm -f conftest.$ac_objext
23654 if { (ac_try="$ac_compile"
23655 case "(($ac_try" in
23656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23657   *) ac_try_echo=$ac_try;;
23658 esac
23659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23660   (eval "$ac_compile") 2>conftest.er1
23661   ac_status=$?
23662   grep -v '^ *+' conftest.er1 >conftest.err
23663   rm -f conftest.er1
23664   cat conftest.err >&5
23665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); } &&
23667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23668   { (case "(($ac_try" in
23669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670   *) ac_try_echo=$ac_try;;
23671 esac
23672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23673   (eval "$ac_try") 2>&5
23674   ac_status=$?
23675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676   (exit $ac_status); }; } &&
23677          { ac_try='test -s conftest.$ac_objext'
23678   { (case "(($ac_try" in
23679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680   *) ac_try_echo=$ac_try;;
23681 esac
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683   (eval "$ac_try") 2>&5
23684   ac_status=$?
23685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686   (exit $ac_status); }; }; then
23687   ac_hi=$ac_mid
23688 else
23689   echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23691
23692         ac_lo=`expr '(' $ac_mid ')' + 1`
23693 fi
23694
23695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23696 done
23697 case $ac_lo in
23698 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23699 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23700 See \`config.log' for more details." >&5
23701 echo "$as_me: error: cannot compute sizeof (long long)
23702 See \`config.log' for more details." >&2;}
23703    { (exit 77); exit 77; }; } ;;
23704 esac
23705 else
23706   cat >conftest.$ac_ext <<_ACEOF
23707 /* confdefs.h.  */
23708 _ACEOF
23709 cat confdefs.h >>conftest.$ac_ext
23710 cat >>conftest.$ac_ext <<_ACEOF
23711 /* end confdefs.h.  */
23712 $ac_includes_default
23713                    typedef long long ac__type_sizeof_;
23714 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23715 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23716 #include <stdio.h>
23717 #include <stdlib.h>
23718 int
23719 main ()
23720 {
23721
23722   FILE *f = fopen ("conftest.val", "w");
23723   if (! f)
23724     return 1;
23725   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23726     {
23727       long int i = longval ();
23728       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23729         return 1;
23730       fprintf (f, "%ld\n", i);
23731     }
23732   else
23733     {
23734       unsigned long int i = ulongval ();
23735       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23736         return 1;
23737       fprintf (f, "%lu\n", i);
23738     }
23739   return ferror (f) || fclose (f) != 0;
23740
23741   ;
23742   return 0;
23743 }
23744 _ACEOF
23745 rm -f conftest$ac_exeext
23746 if { (ac_try="$ac_link"
23747 case "(($ac_try" in
23748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23749   *) ac_try_echo=$ac_try;;
23750 esac
23751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23752   (eval "$ac_link") 2>&5
23753   ac_status=$?
23754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23756   { (case "(($ac_try" in
23757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758   *) ac_try_echo=$ac_try;;
23759 esac
23760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761   (eval "$ac_try") 2>&5
23762   ac_status=$?
23763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764   (exit $ac_status); }; }; then
23765   ac_cv_sizeof_long_long=`cat conftest.val`
23766 else
23767   echo "$as_me: program exited with status $ac_status" >&5
23768 echo "$as_me: failed program was:" >&5
23769 sed 's/^/| /' conftest.$ac_ext >&5
23770
23771 ( exit $ac_status )
23772 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23773 See \`config.log' for more details." >&5
23774 echo "$as_me: error: cannot compute sizeof (long long)
23775 See \`config.log' for more details." >&2;}
23776    { (exit 77); exit 77; }; }
23777 fi
23778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23779 fi
23780 rm -f conftest.val
23781 else
23782   ac_cv_sizeof_long_long=0
23783 fi
23784 fi
23785 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23786 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23787 cat >>confdefs.h <<_ACEOF
23788 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23789 _ACEOF
23790
23791
23792 esac
23793
23794 { echo "$as_me:$LINENO: checking for wchar_t" >&5
23795 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
23796 if test "${ac_cv_type_wchar_t+set}" = set; then
23797   echo $ECHO_N "(cached) $ECHO_C" >&6
23798 else
23799   cat >conftest.$ac_ext <<_ACEOF
23800 /* confdefs.h.  */
23801 _ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h.  */
23805
23806         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23807         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23808         #  error "fake wchar_t"
23809         #endif
23810         #ifdef HAVE_WCHAR_H
23811         #  ifdef __CYGWIN__
23812         #    include <stddef.h>
23813         #  endif
23814         #  include <wchar.h>
23815         #endif
23816         #ifdef HAVE_STDLIB_H
23817         #  include <stdlib.h>
23818         #endif
23819         #include <stdio.h>
23820
23821
23822
23823 typedef wchar_t ac__type_new_;
23824 int
23825 main ()
23826 {
23827 if ((ac__type_new_ *) 0)
23828   return 0;
23829 if (sizeof (ac__type_new_))
23830   return 0;
23831   ;
23832   return 0;
23833 }
23834 _ACEOF
23835 rm -f conftest.$ac_objext
23836 if { (ac_try="$ac_compile"
23837 case "(($ac_try" in
23838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23839   *) ac_try_echo=$ac_try;;
23840 esac
23841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23842   (eval "$ac_compile") 2>conftest.er1
23843   ac_status=$?
23844   grep -v '^ *+' conftest.er1 >conftest.err
23845   rm -f conftest.er1
23846   cat conftest.err >&5
23847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23848   (exit $ac_status); } &&
23849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23850   { (case "(($ac_try" in
23851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23852   *) ac_try_echo=$ac_try;;
23853 esac
23854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23855   (eval "$ac_try") 2>&5
23856   ac_status=$?
23857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858   (exit $ac_status); }; } &&
23859          { ac_try='test -s conftest.$ac_objext'
23860   { (case "(($ac_try" in
23861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23862   *) ac_try_echo=$ac_try;;
23863 esac
23864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23865   (eval "$ac_try") 2>&5
23866   ac_status=$?
23867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868   (exit $ac_status); }; }; then
23869   ac_cv_type_wchar_t=yes
23870 else
23871   echo "$as_me: failed program was:" >&5
23872 sed 's/^/| /' conftest.$ac_ext >&5
23873
23874         ac_cv_type_wchar_t=no
23875 fi
23876
23877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23878 fi
23879 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
23880 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
23881
23882 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
23883 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
23884 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
23885   echo $ECHO_N "(cached) $ECHO_C" >&6
23886 else
23887   if test "$ac_cv_type_wchar_t" = yes; then
23888   # The cast to long int works around a bug in the HP C Compiler
23889   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23890   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23891   # This bug is HP SR number 8606223364.
23892   if test "$cross_compiling" = yes; then
23893   # Depending upon the size, compute the lo and hi bounds.
23894 cat >conftest.$ac_ext <<_ACEOF
23895 /* confdefs.h.  */
23896 _ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h.  */
23900
23901         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23902         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23903         #  error "fake wchar_t"
23904         #endif
23905         #ifdef HAVE_WCHAR_H
23906         #  ifdef __CYGWIN__
23907         #    include <stddef.h>
23908         #  endif
23909         #  include <wchar.h>
23910         #endif
23911         #ifdef HAVE_STDLIB_H
23912         #  include <stdlib.h>
23913         #endif
23914         #include <stdio.h>
23915
23916
23917
23918                    typedef wchar_t ac__type_sizeof_;
23919 int
23920 main ()
23921 {
23922 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23923 test_array [0] = 0
23924
23925   ;
23926   return 0;
23927 }
23928 _ACEOF
23929 rm -f conftest.$ac_objext
23930 if { (ac_try="$ac_compile"
23931 case "(($ac_try" in
23932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23933   *) ac_try_echo=$ac_try;;
23934 esac
23935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23936   (eval "$ac_compile") 2>conftest.er1
23937   ac_status=$?
23938   grep -v '^ *+' conftest.er1 >conftest.err
23939   rm -f conftest.er1
23940   cat conftest.err >&5
23941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942   (exit $ac_status); } &&
23943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23944   { (case "(($ac_try" in
23945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23946   *) ac_try_echo=$ac_try;;
23947 esac
23948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23949   (eval "$ac_try") 2>&5
23950   ac_status=$?
23951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952   (exit $ac_status); }; } &&
23953          { ac_try='test -s conftest.$ac_objext'
23954   { (case "(($ac_try" in
23955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23956   *) ac_try_echo=$ac_try;;
23957 esac
23958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23959   (eval "$ac_try") 2>&5
23960   ac_status=$?
23961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962   (exit $ac_status); }; }; then
23963   ac_lo=0 ac_mid=0
23964   while :; do
23965     cat >conftest.$ac_ext <<_ACEOF
23966 /* confdefs.h.  */
23967 _ACEOF
23968 cat confdefs.h >>conftest.$ac_ext
23969 cat >>conftest.$ac_ext <<_ACEOF
23970 /* end confdefs.h.  */
23971
23972         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23973         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23974         #  error "fake wchar_t"
23975         #endif
23976         #ifdef HAVE_WCHAR_H
23977         #  ifdef __CYGWIN__
23978         #    include <stddef.h>
23979         #  endif
23980         #  include <wchar.h>
23981         #endif
23982         #ifdef HAVE_STDLIB_H
23983         #  include <stdlib.h>
23984         #endif
23985         #include <stdio.h>
23986
23987
23988
23989                    typedef wchar_t ac__type_sizeof_;
23990 int
23991 main ()
23992 {
23993 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23994 test_array [0] = 0
23995
23996   ;
23997   return 0;
23998 }
23999 _ACEOF
24000 rm -f conftest.$ac_objext
24001 if { (ac_try="$ac_compile"
24002 case "(($ac_try" in
24003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24004   *) ac_try_echo=$ac_try;;
24005 esac
24006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24007   (eval "$ac_compile") 2>conftest.er1
24008   ac_status=$?
24009   grep -v '^ *+' conftest.er1 >conftest.err
24010   rm -f conftest.er1
24011   cat conftest.err >&5
24012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013   (exit $ac_status); } &&
24014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24015   { (case "(($ac_try" in
24016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24017   *) ac_try_echo=$ac_try;;
24018 esac
24019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24020   (eval "$ac_try") 2>&5
24021   ac_status=$?
24022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023   (exit $ac_status); }; } &&
24024          { ac_try='test -s conftest.$ac_objext'
24025   { (case "(($ac_try" in
24026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24027   *) ac_try_echo=$ac_try;;
24028 esac
24029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24030   (eval "$ac_try") 2>&5
24031   ac_status=$?
24032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24033   (exit $ac_status); }; }; then
24034   ac_hi=$ac_mid; break
24035 else
24036   echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24038
24039         ac_lo=`expr $ac_mid + 1`
24040                         if test $ac_lo -le $ac_mid; then
24041                           ac_lo= ac_hi=
24042                           break
24043                         fi
24044                         ac_mid=`expr 2 '*' $ac_mid + 1`
24045 fi
24046
24047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24048   done
24049 else
24050   echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24052
24053         cat >conftest.$ac_ext <<_ACEOF
24054 /* confdefs.h.  */
24055 _ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h.  */
24059
24060         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24061         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24062         #  error "fake wchar_t"
24063         #endif
24064         #ifdef HAVE_WCHAR_H
24065         #  ifdef __CYGWIN__
24066         #    include <stddef.h>
24067         #  endif
24068         #  include <wchar.h>
24069         #endif
24070         #ifdef HAVE_STDLIB_H
24071         #  include <stdlib.h>
24072         #endif
24073         #include <stdio.h>
24074
24075
24076
24077                    typedef wchar_t ac__type_sizeof_;
24078 int
24079 main ()
24080 {
24081 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24082 test_array [0] = 0
24083
24084   ;
24085   return 0;
24086 }
24087 _ACEOF
24088 rm -f conftest.$ac_objext
24089 if { (ac_try="$ac_compile"
24090 case "(($ac_try" in
24091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092   *) ac_try_echo=$ac_try;;
24093 esac
24094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24095   (eval "$ac_compile") 2>conftest.er1
24096   ac_status=$?
24097   grep -v '^ *+' conftest.er1 >conftest.err
24098   rm -f conftest.er1
24099   cat conftest.err >&5
24100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101   (exit $ac_status); } &&
24102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24103   { (case "(($ac_try" in
24104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24105   *) ac_try_echo=$ac_try;;
24106 esac
24107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24108   (eval "$ac_try") 2>&5
24109   ac_status=$?
24110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111   (exit $ac_status); }; } &&
24112          { ac_try='test -s conftest.$ac_objext'
24113   { (case "(($ac_try" in
24114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115   *) ac_try_echo=$ac_try;;
24116 esac
24117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24118   (eval "$ac_try") 2>&5
24119   ac_status=$?
24120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121   (exit $ac_status); }; }; then
24122   ac_hi=-1 ac_mid=-1
24123   while :; do
24124     cat >conftest.$ac_ext <<_ACEOF
24125 /* confdefs.h.  */
24126 _ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h.  */
24130
24131         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24132         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24133         #  error "fake wchar_t"
24134         #endif
24135         #ifdef HAVE_WCHAR_H
24136         #  ifdef __CYGWIN__
24137         #    include <stddef.h>
24138         #  endif
24139         #  include <wchar.h>
24140         #endif
24141         #ifdef HAVE_STDLIB_H
24142         #  include <stdlib.h>
24143         #endif
24144         #include <stdio.h>
24145
24146
24147
24148                    typedef wchar_t ac__type_sizeof_;
24149 int
24150 main ()
24151 {
24152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24153 test_array [0] = 0
24154
24155   ;
24156   return 0;
24157 }
24158 _ACEOF
24159 rm -f conftest.$ac_objext
24160 if { (ac_try="$ac_compile"
24161 case "(($ac_try" in
24162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24163   *) ac_try_echo=$ac_try;;
24164 esac
24165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24166   (eval "$ac_compile") 2>conftest.er1
24167   ac_status=$?
24168   grep -v '^ *+' conftest.er1 >conftest.err
24169   rm -f conftest.er1
24170   cat conftest.err >&5
24171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172   (exit $ac_status); } &&
24173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24174   { (case "(($ac_try" in
24175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176   *) ac_try_echo=$ac_try;;
24177 esac
24178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24179   (eval "$ac_try") 2>&5
24180   ac_status=$?
24181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182   (exit $ac_status); }; } &&
24183          { ac_try='test -s conftest.$ac_objext'
24184   { (case "(($ac_try" in
24185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24186   *) ac_try_echo=$ac_try;;
24187 esac
24188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24189   (eval "$ac_try") 2>&5
24190   ac_status=$?
24191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192   (exit $ac_status); }; }; then
24193   ac_lo=$ac_mid; break
24194 else
24195   echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24197
24198         ac_hi=`expr '(' $ac_mid ')' - 1`
24199                         if test $ac_mid -le $ac_hi; then
24200                           ac_lo= ac_hi=
24201                           break
24202                         fi
24203                         ac_mid=`expr 2 '*' $ac_mid`
24204 fi
24205
24206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24207   done
24208 else
24209   echo "$as_me: failed program was:" >&5
24210 sed 's/^/| /' conftest.$ac_ext >&5
24211
24212         ac_lo= ac_hi=
24213 fi
24214
24215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24216 fi
24217
24218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24219 # Binary search between lo and hi bounds.
24220 while test "x$ac_lo" != "x$ac_hi"; do
24221   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24222   cat >conftest.$ac_ext <<_ACEOF
24223 /* confdefs.h.  */
24224 _ACEOF
24225 cat confdefs.h >>conftest.$ac_ext
24226 cat >>conftest.$ac_ext <<_ACEOF
24227 /* end confdefs.h.  */
24228
24229         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24230         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24231         #  error "fake wchar_t"
24232         #endif
24233         #ifdef HAVE_WCHAR_H
24234         #  ifdef __CYGWIN__
24235         #    include <stddef.h>
24236         #  endif
24237         #  include <wchar.h>
24238         #endif
24239         #ifdef HAVE_STDLIB_H
24240         #  include <stdlib.h>
24241         #endif
24242         #include <stdio.h>
24243
24244
24245
24246                    typedef wchar_t ac__type_sizeof_;
24247 int
24248 main ()
24249 {
24250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24251 test_array [0] = 0
24252
24253   ;
24254   return 0;
24255 }
24256 _ACEOF
24257 rm -f conftest.$ac_objext
24258 if { (ac_try="$ac_compile"
24259 case "(($ac_try" in
24260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24261   *) ac_try_echo=$ac_try;;
24262 esac
24263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24264   (eval "$ac_compile") 2>conftest.er1
24265   ac_status=$?
24266   grep -v '^ *+' conftest.er1 >conftest.err
24267   rm -f conftest.er1
24268   cat conftest.err >&5
24269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270   (exit $ac_status); } &&
24271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24272   { (case "(($ac_try" in
24273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274   *) ac_try_echo=$ac_try;;
24275 esac
24276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24277   (eval "$ac_try") 2>&5
24278   ac_status=$?
24279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280   (exit $ac_status); }; } &&
24281          { ac_try='test -s conftest.$ac_objext'
24282   { (case "(($ac_try" in
24283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24284   *) ac_try_echo=$ac_try;;
24285 esac
24286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24287   (eval "$ac_try") 2>&5
24288   ac_status=$?
24289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290   (exit $ac_status); }; }; then
24291   ac_hi=$ac_mid
24292 else
24293   echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24295
24296         ac_lo=`expr '(' $ac_mid ')' + 1`
24297 fi
24298
24299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24300 done
24301 case $ac_lo in
24302 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24303 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24304 See \`config.log' for more details." >&5
24305 echo "$as_me: error: cannot compute sizeof (wchar_t)
24306 See \`config.log' for more details." >&2;}
24307    { (exit 77); exit 77; }; } ;;
24308 esac
24309 else
24310   cat >conftest.$ac_ext <<_ACEOF
24311 /* confdefs.h.  */
24312 _ACEOF
24313 cat confdefs.h >>conftest.$ac_ext
24314 cat >>conftest.$ac_ext <<_ACEOF
24315 /* end confdefs.h.  */
24316
24317         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24318         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24319         #  error "fake wchar_t"
24320         #endif
24321         #ifdef HAVE_WCHAR_H
24322         #  ifdef __CYGWIN__
24323         #    include <stddef.h>
24324         #  endif
24325         #  include <wchar.h>
24326         #endif
24327         #ifdef HAVE_STDLIB_H
24328         #  include <stdlib.h>
24329         #endif
24330         #include <stdio.h>
24331
24332
24333
24334                    typedef wchar_t ac__type_sizeof_;
24335 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24336 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24337 #include <stdio.h>
24338 #include <stdlib.h>
24339 int
24340 main ()
24341 {
24342
24343   FILE *f = fopen ("conftest.val", "w");
24344   if (! f)
24345     return 1;
24346   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24347     {
24348       long int i = longval ();
24349       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24350         return 1;
24351       fprintf (f, "%ld\n", i);
24352     }
24353   else
24354     {
24355       unsigned long int i = ulongval ();
24356       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24357         return 1;
24358       fprintf (f, "%lu\n", i);
24359     }
24360   return ferror (f) || fclose (f) != 0;
24361
24362   ;
24363   return 0;
24364 }
24365 _ACEOF
24366 rm -f conftest$ac_exeext
24367 if { (ac_try="$ac_link"
24368 case "(($ac_try" in
24369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24370   *) ac_try_echo=$ac_try;;
24371 esac
24372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24373   (eval "$ac_link") 2>&5
24374   ac_status=$?
24375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24377   { (case "(($ac_try" in
24378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24379   *) ac_try_echo=$ac_try;;
24380 esac
24381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24382   (eval "$ac_try") 2>&5
24383   ac_status=$?
24384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); }; }; then
24386   ac_cv_sizeof_wchar_t=`cat conftest.val`
24387 else
24388   echo "$as_me: program exited with status $ac_status" >&5
24389 echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24391
24392 ( exit $ac_status )
24393 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24394 See \`config.log' for more details." >&5
24395 echo "$as_me: error: cannot compute sizeof (wchar_t)
24396 See \`config.log' for more details." >&2;}
24397    { (exit 77); exit 77; }; }
24398 fi
24399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24400 fi
24401 rm -f conftest.val
24402 else
24403   ac_cv_sizeof_wchar_t=0
24404 fi
24405 fi
24406 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24407 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24408 cat >>confdefs.h <<_ACEOF
24409 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24410 _ACEOF
24411
24412
24413 if test "$ac_cv_sizeof_wchar_t" != "0"; then
24414     wxUSE_WCHAR_T=yes
24415 else
24416     wxUSE_WCHAR_T=no
24417 fi
24418
24419 { echo "$as_me:$LINENO: checking for va_copy" >&5
24420 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
24421 if test "${wx_cv_func_va_copy+set}" = set; then
24422   echo $ECHO_N "(cached) $ECHO_C" >&6
24423 else
24424
24425         cat >conftest.$ac_ext <<_ACEOF
24426
24427             #include <stdarg.h>
24428             void foo(char *f, ...)
24429             {
24430                 va_list ap1, ap2;
24431                 va_start(ap1, f);
24432                 va_copy(ap2, ap1);
24433                 va_end(ap2);
24434                 va_end(ap1);
24435             }
24436             int main()
24437             {
24438                 foo("hi", 17);
24439                 return 0;
24440             }
24441 _ACEOF
24442 rm -f conftest.$ac_objext conftest$ac_exeext
24443 if { (ac_try="$ac_link"
24444 case "(($ac_try" in
24445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446   *) ac_try_echo=$ac_try;;
24447 esac
24448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24449   (eval "$ac_link") 2>conftest.er1
24450   ac_status=$?
24451   grep -v '^ *+' conftest.er1 >conftest.err
24452   rm -f conftest.er1
24453   cat conftest.err >&5
24454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455   (exit $ac_status); } &&
24456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24457   { (case "(($ac_try" in
24458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459   *) ac_try_echo=$ac_try;;
24460 esac
24461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24462   (eval "$ac_try") 2>&5
24463   ac_status=$?
24464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465   (exit $ac_status); }; } &&
24466          { ac_try='test -s conftest$ac_exeext'
24467   { (case "(($ac_try" in
24468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24469   *) ac_try_echo=$ac_try;;
24470 esac
24471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24472   (eval "$ac_try") 2>&5
24473   ac_status=$?
24474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475   (exit $ac_status); }; }; then
24476   wx_cv_func_va_copy=yes
24477 else
24478   echo "$as_me: failed program was:" >&5
24479 sed 's/^/| /' conftest.$ac_ext >&5
24480
24481         wx_cv_func_va_copy=no
24482
24483 fi
24484
24485 rm -f core conftest.err conftest.$ac_objext \
24486       conftest$ac_exeext conftest.$ac_ext
24487
24488
24489 fi
24490 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
24491 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
24492
24493 if test $wx_cv_func_va_copy = "yes"; then
24494     cat >>confdefs.h <<\_ACEOF
24495 #define HAVE_VA_COPY 1
24496 _ACEOF
24497
24498 else
24499         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
24500 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
24501 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
24502   echo $ECHO_N "(cached) $ECHO_C" >&6
24503 else
24504
24505             if test "$cross_compiling" = yes; then
24506                   wx_cv_type_va_list_lvalue=yes
24507
24508 else
24509   cat >conftest.$ac_ext <<_ACEOF
24510
24511                 #include <stdarg.h>
24512                 int foo(char *f, ...)
24513                 {
24514                     va_list ap1, ap2;
24515                     va_start(ap1, f);
24516                     ap2 = ap1;
24517                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
24518                         return 1;
24519                     va_end(ap2);
24520                     va_end(ap1);
24521                     return 0;
24522                 }
24523                 int main()
24524                 {
24525                     return foo("hi", 17);
24526                 }
24527 _ACEOF
24528 rm -f conftest$ac_exeext
24529 if { (ac_try="$ac_link"
24530 case "(($ac_try" in
24531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24532   *) ac_try_echo=$ac_try;;
24533 esac
24534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24535   (eval "$ac_link") 2>&5
24536   ac_status=$?
24537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24539   { (case "(($ac_try" in
24540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541   *) ac_try_echo=$ac_try;;
24542 esac
24543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544   (eval "$ac_try") 2>&5
24545   ac_status=$?
24546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547   (exit $ac_status); }; }; then
24548   wx_cv_type_va_list_lvalue=yes
24549 else
24550   echo "$as_me: program exited with status $ac_status" >&5
24551 echo "$as_me: failed program was:" >&5
24552 sed 's/^/| /' conftest.$ac_ext >&5
24553
24554 ( exit $ac_status )
24555 wx_cv_type_va_list_lvalue=no
24556 fi
24557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24558 fi
24559
24560
24561
24562
24563 fi
24564 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
24565 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
24566
24567     if test $wx_cv_type_va_list_lvalue != "yes"; then
24568                         cat >>confdefs.h <<\_ACEOF
24569 #define VA_LIST_IS_ARRAY 1
24570 _ACEOF
24571
24572     fi
24573 fi
24574
24575 if test "$wxUSE_VARARG_MACROS" = "yes"; then
24576
24577 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
24578 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
24579 if test "${wx_cv_have_variadic_macros+set}" = set; then
24580   echo $ECHO_N "(cached) $ECHO_C" >&6
24581 else
24582
24583                         ac_ext=cpp
24584 ac_cpp='$CXXCPP $CPPFLAGS'
24585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24588
24589         cat >conftest.$ac_ext <<_ACEOF
24590 /* confdefs.h.  */
24591 _ACEOF
24592 cat confdefs.h >>conftest.$ac_ext
24593 cat >>conftest.$ac_ext <<_ACEOF
24594 /* end confdefs.h.  */
24595
24596                     #include <stdio.h>
24597                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
24598
24599 int
24600 main ()
24601 {
24602
24603                     test("%s %d %p", "test", 1, 0);
24604
24605
24606   ;
24607   return 0;
24608 }
24609 _ACEOF
24610 rm -f conftest.$ac_objext
24611 if { (ac_try="$ac_compile"
24612 case "(($ac_try" in
24613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24614   *) ac_try_echo=$ac_try;;
24615 esac
24616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24617   (eval "$ac_compile") 2>conftest.er1
24618   ac_status=$?
24619   grep -v '^ *+' conftest.er1 >conftest.err
24620   rm -f conftest.er1
24621   cat conftest.err >&5
24622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24623   (exit $ac_status); } &&
24624          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24625   { (case "(($ac_try" in
24626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627   *) ac_try_echo=$ac_try;;
24628 esac
24629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24630   (eval "$ac_try") 2>&5
24631   ac_status=$?
24632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633   (exit $ac_status); }; } &&
24634          { ac_try='test -s conftest.$ac_objext'
24635   { (case "(($ac_try" in
24636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637   *) ac_try_echo=$ac_try;;
24638 esac
24639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24640   (eval "$ac_try") 2>&5
24641   ac_status=$?
24642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643   (exit $ac_status); }; }; then
24644   wx_cv_have_variadic_macros=yes
24645 else
24646   echo "$as_me: failed program was:" >&5
24647 sed 's/^/| /' conftest.$ac_ext >&5
24648
24649         wx_cv_have_variadic_macros=no
24650
24651 fi
24652
24653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24654         ac_ext=c
24655 ac_cpp='$CPP $CPPFLAGS'
24656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24659
24660
24661
24662 fi
24663 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
24664 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
24665
24666 if test $wx_cv_have_variadic_macros = "yes"; then
24667     cat >>confdefs.h <<\_ACEOF
24668 #define HAVE_VARIADIC_MACROS 1
24669 _ACEOF
24670
24671 fi
24672
24673 fi
24674 # Check whether --enable-largefile was given.
24675 if test "${enable_largefile+set}" = set; then
24676   enableval=$enable_largefile;
24677 fi
24678
24679 if test "$enable_largefile" != no; then
24680             wx_largefile=no
24681
24682     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24683 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24684 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24685   echo $ECHO_N "(cached) $ECHO_C" >&6
24686 else
24687
24688           cat >conftest.$ac_ext <<_ACEOF
24689 /* confdefs.h.  */
24690 _ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h.  */
24694 #define _FILE_OFFSET_BITS 64
24695                           #include <sys/types.h>
24696 int
24697 main ()
24698 {
24699 typedef struct {
24700     unsigned int field: sizeof(off_t) == 8;
24701 } wxlf;
24702
24703   ;
24704   return 0;
24705 }
24706 _ACEOF
24707 rm -f conftest.$ac_objext
24708 if { (ac_try="$ac_compile"
24709 case "(($ac_try" in
24710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24711   *) ac_try_echo=$ac_try;;
24712 esac
24713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24714   (eval "$ac_compile") 2>conftest.er1
24715   ac_status=$?
24716   grep -v '^ *+' conftest.er1 >conftest.err
24717   rm -f conftest.er1
24718   cat conftest.err >&5
24719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720   (exit $ac_status); } &&
24721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24722   { (case "(($ac_try" in
24723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24724   *) ac_try_echo=$ac_try;;
24725 esac
24726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24727   (eval "$ac_try") 2>&5
24728   ac_status=$?
24729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730   (exit $ac_status); }; } &&
24731          { ac_try='test -s conftest.$ac_objext'
24732   { (case "(($ac_try" in
24733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24734   *) ac_try_echo=$ac_try;;
24735 esac
24736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24737   (eval "$ac_try") 2>&5
24738   ac_status=$?
24739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740   (exit $ac_status); }; }; then
24741   ac_cv_sys_file_offset_bits=64
24742 else
24743   echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24745
24746         ac_cv_sys_file_offset_bits=no
24747 fi
24748
24749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24750
24751
24752 fi
24753 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24754 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24755
24756     if test "$ac_cv_sys_file_offset_bits" != no; then
24757         wx_largefile=yes
24758         cat >>confdefs.h <<_ACEOF
24759 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24760 _ACEOF
24761
24762     fi
24763
24764     if test "x$wx_largefile" != "xyes"; then
24765
24766     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24767 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24768 if test "${ac_cv_sys_large_files+set}" = set; then
24769   echo $ECHO_N "(cached) $ECHO_C" >&6
24770 else
24771
24772           cat >conftest.$ac_ext <<_ACEOF
24773 /* confdefs.h.  */
24774 _ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h.  */
24778 #define _LARGE_FILES 1
24779                           #include <sys/types.h>
24780 int
24781 main ()
24782 {
24783 typedef struct {
24784     unsigned int field: sizeof(off_t) == 8;
24785 } wxlf;
24786
24787   ;
24788   return 0;
24789 }
24790 _ACEOF
24791 rm -f conftest.$ac_objext
24792 if { (ac_try="$ac_compile"
24793 case "(($ac_try" in
24794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795   *) ac_try_echo=$ac_try;;
24796 esac
24797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24798   (eval "$ac_compile") 2>conftest.er1
24799   ac_status=$?
24800   grep -v '^ *+' conftest.er1 >conftest.err
24801   rm -f conftest.er1
24802   cat conftest.err >&5
24803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804   (exit $ac_status); } &&
24805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24806   { (case "(($ac_try" in
24807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808   *) ac_try_echo=$ac_try;;
24809 esac
24810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24811   (eval "$ac_try") 2>&5
24812   ac_status=$?
24813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814   (exit $ac_status); }; } &&
24815          { ac_try='test -s conftest.$ac_objext'
24816   { (case "(($ac_try" in
24817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24818   *) ac_try_echo=$ac_try;;
24819 esac
24820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24821   (eval "$ac_try") 2>&5
24822   ac_status=$?
24823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824   (exit $ac_status); }; }; then
24825   ac_cv_sys_large_files=1
24826 else
24827   echo "$as_me: failed program was:" >&5
24828 sed 's/^/| /' conftest.$ac_ext >&5
24829
24830         ac_cv_sys_large_files=no
24831 fi
24832
24833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24834
24835
24836 fi
24837 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24838 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24839
24840     if test "$ac_cv_sys_large_files" != no; then
24841         wx_largefile=yes
24842         cat >>confdefs.h <<_ACEOF
24843 #define _LARGE_FILES $ac_cv_sys_large_files
24844 _ACEOF
24845
24846     fi
24847
24848     fi
24849
24850     { echo "$as_me:$LINENO: checking if large file support is available" >&5
24851 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
24852     if test "x$wx_largefile" = "xyes"; then
24853         cat >>confdefs.h <<\_ACEOF
24854 #define HAVE_LARGEFILE_SUPPORT 1
24855 _ACEOF
24856
24857     fi
24858     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
24859 echo "${ECHO_T}$wx_largefile" >&6; }
24860 fi
24861
24862
24863 if test "x$wx_largefile" = "xyes"; then
24864     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
24865         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
24866
24867                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
24868             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
24869 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
24870 if test "${wx_cv_STDC_EXT_required+set}" = set; then
24871   echo $ECHO_N "(cached) $ECHO_C" >&6
24872 else
24873
24874                     ac_ext=cpp
24875 ac_cpp='$CXXCPP $CPPFLAGS'
24876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24879
24880                     cat >conftest.$ac_ext <<_ACEOF
24881 /* confdefs.h.  */
24882 _ACEOF
24883 cat confdefs.h >>conftest.$ac_ext
24884 cat >>conftest.$ac_ext <<_ACEOF
24885 /* end confdefs.h.  */
24886
24887 int
24888 main ()
24889 {
24890
24891                             #ifndef __STDC_EXT__
24892                                 choke me
24893                             #endif
24894
24895   ;
24896   return 0;
24897 }
24898 _ACEOF
24899 rm -f conftest.$ac_objext
24900 if { (ac_try="$ac_compile"
24901 case "(($ac_try" in
24902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903   *) ac_try_echo=$ac_try;;
24904 esac
24905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24906   (eval "$ac_compile") 2>conftest.er1
24907   ac_status=$?
24908   grep -v '^ *+' conftest.er1 >conftest.err
24909   rm -f conftest.er1
24910   cat conftest.err >&5
24911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912   (exit $ac_status); } &&
24913          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
24914   { (case "(($ac_try" in
24915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24916   *) ac_try_echo=$ac_try;;
24917 esac
24918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24919   (eval "$ac_try") 2>&5
24920   ac_status=$?
24921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922   (exit $ac_status); }; } &&
24923          { ac_try='test -s conftest.$ac_objext'
24924   { (case "(($ac_try" in
24925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926   *) ac_try_echo=$ac_try;;
24927 esac
24928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24929   (eval "$ac_try") 2>&5
24930   ac_status=$?
24931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932   (exit $ac_status); }; }; then
24933   wx_cv_STDC_EXT_required=no
24934 else
24935   echo "$as_me: failed program was:" >&5
24936 sed 's/^/| /' conftest.$ac_ext >&5
24937
24938         wx_cv_STDC_EXT_required=yes
24939
24940 fi
24941
24942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24943                     ac_ext=c
24944 ac_cpp='$CPP $CPPFLAGS'
24945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24948
24949
24950
24951 fi
24952 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
24953 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
24954             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
24955                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
24956             fi
24957         fi
24958     else
24959         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
24960     fi
24961         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
24962 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
24963 if test "${ac_cv_sys_largefile_source+set}" = set; then
24964   echo $ECHO_N "(cached) $ECHO_C" >&6
24965 else
24966   while :; do
24967   ac_cv_sys_largefile_source=no
24968   cat >conftest.$ac_ext <<_ACEOF
24969 /* confdefs.h.  */
24970 _ACEOF
24971 cat confdefs.h >>conftest.$ac_ext
24972 cat >>conftest.$ac_ext <<_ACEOF
24973 /* end confdefs.h.  */
24974 #include <stdio.h>
24975 int
24976 main ()
24977 {
24978 return !fseeko;
24979   ;
24980   return 0;
24981 }
24982 _ACEOF
24983 rm -f conftest.$ac_objext
24984 if { (ac_try="$ac_compile"
24985 case "(($ac_try" in
24986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24987   *) ac_try_echo=$ac_try;;
24988 esac
24989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24990   (eval "$ac_compile") 2>conftest.er1
24991   ac_status=$?
24992   grep -v '^ *+' conftest.er1 >conftest.err
24993   rm -f conftest.er1
24994   cat conftest.err >&5
24995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996   (exit $ac_status); } &&
24997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24998   { (case "(($ac_try" in
24999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25000   *) ac_try_echo=$ac_try;;
25001 esac
25002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25003   (eval "$ac_try") 2>&5
25004   ac_status=$?
25005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006   (exit $ac_status); }; } &&
25007          { ac_try='test -s conftest.$ac_objext'
25008   { (case "(($ac_try" in
25009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25010   *) ac_try_echo=$ac_try;;
25011 esac
25012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25013   (eval "$ac_try") 2>&5
25014   ac_status=$?
25015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016   (exit $ac_status); }; }; then
25017   break
25018 else
25019   echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25021
25022
25023 fi
25024
25025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25026   cat >conftest.$ac_ext <<_ACEOF
25027 /* confdefs.h.  */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h.  */
25032 #define _LARGEFILE_SOURCE 1
25033 #include <stdio.h>
25034 int
25035 main ()
25036 {
25037 return !fseeko;
25038   ;
25039   return 0;
25040 }
25041 _ACEOF
25042 rm -f conftest.$ac_objext
25043 if { (ac_try="$ac_compile"
25044 case "(($ac_try" in
25045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046   *) ac_try_echo=$ac_try;;
25047 esac
25048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25049   (eval "$ac_compile") 2>conftest.er1
25050   ac_status=$?
25051   grep -v '^ *+' conftest.er1 >conftest.err
25052   rm -f conftest.er1
25053   cat conftest.err >&5
25054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055   (exit $ac_status); } &&
25056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25057   { (case "(($ac_try" in
25058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25059   *) ac_try_echo=$ac_try;;
25060 esac
25061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25062   (eval "$ac_try") 2>&5
25063   ac_status=$?
25064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065   (exit $ac_status); }; } &&
25066          { ac_try='test -s conftest.$ac_objext'
25067   { (case "(($ac_try" in
25068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069   *) ac_try_echo=$ac_try;;
25070 esac
25071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25072   (eval "$ac_try") 2>&5
25073   ac_status=$?
25074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075   (exit $ac_status); }; }; then
25076   ac_cv_sys_largefile_source=1; break
25077 else
25078   echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25080
25081
25082 fi
25083
25084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25085   break
25086 done
25087 fi
25088 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25089 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25090 if test "$ac_cv_sys_largefile_source" != no; then
25091
25092 cat >>confdefs.h <<_ACEOF
25093 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25094 _ACEOF
25095
25096 fi
25097 rm -f conftest*
25098
25099 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25100 # in glibc 2.1.3, but that breaks too many other things.
25101 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25102 { echo "$as_me:$LINENO: checking for fseeko" >&5
25103 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
25104 if test "${ac_cv_func_fseeko+set}" = set; then
25105   echo $ECHO_N "(cached) $ECHO_C" >&6
25106 else
25107   cat >conftest.$ac_ext <<_ACEOF
25108 /* confdefs.h.  */
25109 _ACEOF
25110 cat confdefs.h >>conftest.$ac_ext
25111 cat >>conftest.$ac_ext <<_ACEOF
25112 /* end confdefs.h.  */
25113 #include <stdio.h>
25114 int
25115 main ()
25116 {
25117 return fseeko && fseeko (stdin, 0, 0);
25118   ;
25119   return 0;
25120 }
25121 _ACEOF
25122 rm -f conftest.$ac_objext conftest$ac_exeext
25123 if { (ac_try="$ac_link"
25124 case "(($ac_try" in
25125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25126   *) ac_try_echo=$ac_try;;
25127 esac
25128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25129   (eval "$ac_link") 2>conftest.er1
25130   ac_status=$?
25131   grep -v '^ *+' conftest.er1 >conftest.err
25132   rm -f conftest.er1
25133   cat conftest.err >&5
25134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135   (exit $ac_status); } &&
25136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25137   { (case "(($ac_try" in
25138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25139   *) ac_try_echo=$ac_try;;
25140 esac
25141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25142   (eval "$ac_try") 2>&5
25143   ac_status=$?
25144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145   (exit $ac_status); }; } &&
25146          { ac_try='test -s conftest$ac_exeext'
25147   { (case "(($ac_try" in
25148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25149   *) ac_try_echo=$ac_try;;
25150 esac
25151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25152   (eval "$ac_try") 2>&5
25153   ac_status=$?
25154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155   (exit $ac_status); }; }; then
25156   ac_cv_func_fseeko=yes
25157 else
25158   echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25160
25161         ac_cv_func_fseeko=no
25162 fi
25163
25164 rm -f core conftest.err conftest.$ac_objext \
25165       conftest$ac_exeext conftest.$ac_ext
25166 fi
25167 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
25168 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
25169 if test $ac_cv_func_fseeko = yes; then
25170
25171 cat >>confdefs.h <<\_ACEOF
25172 #define HAVE_FSEEKO 1
25173 _ACEOF
25174
25175 fi
25176
25177     if test "$ac_cv_sys_largefile_source" != no; then
25178         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25179     fi
25180 fi
25181
25182 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25183 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25184 if test "${ac_cv_c_bigendian+set}" = set; then
25185   echo $ECHO_N "(cached) $ECHO_C" >&6
25186 else
25187   ac_cv_c_bigendian=unknown
25188 # See if sys/param.h defines the BYTE_ORDER macro.
25189 cat >conftest.$ac_ext <<_ACEOF
25190 /* confdefs.h.  */
25191 _ACEOF
25192 cat confdefs.h >>conftest.$ac_ext
25193 cat >>conftest.$ac_ext <<_ACEOF
25194 /* end confdefs.h.  */
25195 #include <sys/types.h>
25196 #include <sys/param.h>
25197 int
25198 main ()
25199 {
25200
25201 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25202  bogus endian macros
25203 #endif
25204   ;
25205   return 0;
25206 }
25207 _ACEOF
25208 rm -f conftest.$ac_objext
25209 if { (ac_try="$ac_compile"
25210 case "(($ac_try" in
25211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212   *) ac_try_echo=$ac_try;;
25213 esac
25214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25215   (eval "$ac_compile") 2>conftest.er1
25216   ac_status=$?
25217   grep -v '^ *+' conftest.er1 >conftest.err
25218   rm -f conftest.er1
25219   cat conftest.err >&5
25220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221   (exit $ac_status); } &&
25222          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25223   { (case "(($ac_try" in
25224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225   *) ac_try_echo=$ac_try;;
25226 esac
25227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25228   (eval "$ac_try") 2>&5
25229   ac_status=$?
25230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231   (exit $ac_status); }; } &&
25232          { ac_try='test -s conftest.$ac_objext'
25233   { (case "(($ac_try" in
25234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25235   *) ac_try_echo=$ac_try;;
25236 esac
25237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25238   (eval "$ac_try") 2>&5
25239   ac_status=$?
25240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241   (exit $ac_status); }; }; then
25242   # It does; now see whether it defined to BIG_ENDIAN or not.
25243 cat >conftest.$ac_ext <<_ACEOF
25244 /* confdefs.h.  */
25245 _ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h.  */
25249 #include <sys/types.h>
25250 #include <sys/param.h>
25251 int
25252 main ()
25253 {
25254
25255 #if BYTE_ORDER != BIG_ENDIAN
25256  not big endian
25257 #endif
25258   ;
25259   return 0;
25260 }
25261 _ACEOF
25262 rm -f conftest.$ac_objext
25263 if { (ac_try="$ac_compile"
25264 case "(($ac_try" in
25265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266   *) ac_try_echo=$ac_try;;
25267 esac
25268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25269   (eval "$ac_compile") 2>conftest.er1
25270   ac_status=$?
25271   grep -v '^ *+' conftest.er1 >conftest.err
25272   rm -f conftest.er1
25273   cat conftest.err >&5
25274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275   (exit $ac_status); } &&
25276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25277   { (case "(($ac_try" in
25278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25279   *) ac_try_echo=$ac_try;;
25280 esac
25281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25282   (eval "$ac_try") 2>&5
25283   ac_status=$?
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); }; } &&
25286          { ac_try='test -s conftest.$ac_objext'
25287   { (case "(($ac_try" in
25288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25289   *) ac_try_echo=$ac_try;;
25290 esac
25291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25292   (eval "$ac_try") 2>&5
25293   ac_status=$?
25294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295   (exit $ac_status); }; }; then
25296   ac_cv_c_bigendian=yes
25297 else
25298   echo "$as_me: failed program was:" >&5
25299 sed 's/^/| /' conftest.$ac_ext >&5
25300
25301         ac_cv_c_bigendian=no
25302 fi
25303
25304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25305 else
25306   echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25308
25309
25310 fi
25311
25312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25313 if test $ac_cv_c_bigendian = unknown; then
25314 if test "$cross_compiling" = yes; then
25315   ac_cv_c_bigendian=unknown
25316 else
25317   cat >conftest.$ac_ext <<_ACEOF
25318 /* confdefs.h.  */
25319 _ACEOF
25320 cat confdefs.h >>conftest.$ac_ext
25321 cat >>conftest.$ac_ext <<_ACEOF
25322 /* end confdefs.h.  */
25323 main () {
25324   /* Are we little or big endian?  From Harbison&Steele.  */
25325   union
25326   {
25327     long l;
25328     char c[sizeof (long)];
25329   } u;
25330   u.l = 1;
25331   exit (u.c[sizeof (long) - 1] == 1);
25332 }
25333 _ACEOF
25334 rm -f conftest$ac_exeext
25335 if { (ac_try="$ac_link"
25336 case "(($ac_try" in
25337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338   *) ac_try_echo=$ac_try;;
25339 esac
25340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25341   (eval "$ac_link") 2>&5
25342   ac_status=$?
25343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25345   { (case "(($ac_try" in
25346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347   *) ac_try_echo=$ac_try;;
25348 esac
25349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25350   (eval "$ac_try") 2>&5
25351   ac_status=$?
25352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353   (exit $ac_status); }; }; then
25354   ac_cv_c_bigendian=no
25355 else
25356   echo "$as_me: program exited with status $ac_status" >&5
25357 echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25359
25360 ( exit $ac_status )
25361 ac_cv_c_bigendian=yes
25362 fi
25363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25364 fi
25365
25366
25367 fi
25368 fi
25369 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25370 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25371 if test $ac_cv_c_bigendian = unknown; then
25372   { 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
25373 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;}
25374 fi
25375 if test $ac_cv_c_bigendian = yes; then
25376   cat >>confdefs.h <<\_ACEOF
25377 #define WORDS_BIGENDIAN 1
25378 _ACEOF
25379
25380 fi
25381
25382
25383 ac_ext=cpp
25384 ac_cpp='$CXXCPP $CPPFLAGS'
25385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25388 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
25389 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
25390 if test -z "$CXXCPP"; then
25391   if test "${ac_cv_prog_CXXCPP+set}" = set; then
25392   echo $ECHO_N "(cached) $ECHO_C" >&6
25393 else
25394       # Double quotes because CXXCPP needs to be expanded
25395     for CXXCPP in "$CXX -E" "/lib/cpp"
25396     do
25397       ac_preproc_ok=false
25398 for ac_cxx_preproc_warn_flag in '' yes
25399 do
25400   # Use a header file that comes with gcc, so configuring glibc
25401   # with a fresh cross-compiler works.
25402   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25403   # <limits.h> exists even on freestanding compilers.
25404   # On the NeXT, cc -E runs the code through the compiler's parser,
25405   # not just through cpp. "Syntax error" is here to catch this case.
25406   cat >conftest.$ac_ext <<_ACEOF
25407 /* confdefs.h.  */
25408 _ACEOF
25409 cat confdefs.h >>conftest.$ac_ext
25410 cat >>conftest.$ac_ext <<_ACEOF
25411 /* end confdefs.h.  */
25412 #ifdef __STDC__
25413 # include <limits.h>
25414 #else
25415 # include <assert.h>
25416 #endif
25417                      Syntax error
25418 _ACEOF
25419 if { (ac_try="$ac_cpp conftest.$ac_ext"
25420 case "(($ac_try" in
25421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422   *) ac_try_echo=$ac_try;;
25423 esac
25424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25426   ac_status=$?
25427   grep -v '^ *+' conftest.er1 >conftest.err
25428   rm -f conftest.er1
25429   cat conftest.err >&5
25430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431   (exit $ac_status); } >/dev/null; then
25432   if test -s conftest.err; then
25433     ac_cpp_err=$ac_cxx_preproc_warn_flag
25434     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25435   else
25436     ac_cpp_err=
25437   fi
25438 else
25439   ac_cpp_err=yes
25440 fi
25441 if test -z "$ac_cpp_err"; then
25442   :
25443 else
25444   echo "$as_me: failed program was:" >&5
25445 sed 's/^/| /' conftest.$ac_ext >&5
25446
25447   # Broken: fails on valid input.
25448 continue
25449 fi
25450
25451 rm -f conftest.err conftest.$ac_ext
25452
25453   # OK, works on sane cases.  Now check whether nonexistent headers
25454   # can be detected and how.
25455   cat >conftest.$ac_ext <<_ACEOF
25456 /* confdefs.h.  */
25457 _ACEOF
25458 cat confdefs.h >>conftest.$ac_ext
25459 cat >>conftest.$ac_ext <<_ACEOF
25460 /* end confdefs.h.  */
25461 #include <ac_nonexistent.h>
25462 _ACEOF
25463 if { (ac_try="$ac_cpp conftest.$ac_ext"
25464 case "(($ac_try" in
25465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25466   *) ac_try_echo=$ac_try;;
25467 esac
25468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25469   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25470   ac_status=$?
25471   grep -v '^ *+' conftest.er1 >conftest.err
25472   rm -f conftest.er1
25473   cat conftest.err >&5
25474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475   (exit $ac_status); } >/dev/null; then
25476   if test -s conftest.err; then
25477     ac_cpp_err=$ac_cxx_preproc_warn_flag
25478     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25479   else
25480     ac_cpp_err=
25481   fi
25482 else
25483   ac_cpp_err=yes
25484 fi
25485 if test -z "$ac_cpp_err"; then
25486   # Broken: success on invalid input.
25487 continue
25488 else
25489   echo "$as_me: failed program was:" >&5
25490 sed 's/^/| /' conftest.$ac_ext >&5
25491
25492   # Passes both tests.
25493 ac_preproc_ok=:
25494 break
25495 fi
25496
25497 rm -f conftest.err conftest.$ac_ext
25498
25499 done
25500 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25501 rm -f conftest.err conftest.$ac_ext
25502 if $ac_preproc_ok; then
25503   break
25504 fi
25505
25506     done
25507     ac_cv_prog_CXXCPP=$CXXCPP
25508
25509 fi
25510   CXXCPP=$ac_cv_prog_CXXCPP
25511 else
25512   ac_cv_prog_CXXCPP=$CXXCPP
25513 fi
25514 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
25515 echo "${ECHO_T}$CXXCPP" >&6; }
25516 ac_preproc_ok=false
25517 for ac_cxx_preproc_warn_flag in '' yes
25518 do
25519   # Use a header file that comes with gcc, so configuring glibc
25520   # with a fresh cross-compiler works.
25521   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25522   # <limits.h> exists even on freestanding compilers.
25523   # On the NeXT, cc -E runs the code through the compiler's parser,
25524   # not just through cpp. "Syntax error" is here to catch this case.
25525   cat >conftest.$ac_ext <<_ACEOF
25526 /* confdefs.h.  */
25527 _ACEOF
25528 cat confdefs.h >>conftest.$ac_ext
25529 cat >>conftest.$ac_ext <<_ACEOF
25530 /* end confdefs.h.  */
25531 #ifdef __STDC__
25532 # include <limits.h>
25533 #else
25534 # include <assert.h>
25535 #endif
25536                      Syntax error
25537 _ACEOF
25538 if { (ac_try="$ac_cpp conftest.$ac_ext"
25539 case "(($ac_try" in
25540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25541   *) ac_try_echo=$ac_try;;
25542 esac
25543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25544   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25545   ac_status=$?
25546   grep -v '^ *+' conftest.er1 >conftest.err
25547   rm -f conftest.er1
25548   cat conftest.err >&5
25549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550   (exit $ac_status); } >/dev/null; then
25551   if test -s conftest.err; then
25552     ac_cpp_err=$ac_cxx_preproc_warn_flag
25553     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25554   else
25555     ac_cpp_err=
25556   fi
25557 else
25558   ac_cpp_err=yes
25559 fi
25560 if test -z "$ac_cpp_err"; then
25561   :
25562 else
25563   echo "$as_me: failed program was:" >&5
25564 sed 's/^/| /' conftest.$ac_ext >&5
25565
25566   # Broken: fails on valid input.
25567 continue
25568 fi
25569
25570 rm -f conftest.err conftest.$ac_ext
25571
25572   # OK, works on sane cases.  Now check whether nonexistent headers
25573   # can be detected and how.
25574   cat >conftest.$ac_ext <<_ACEOF
25575 /* confdefs.h.  */
25576 _ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h.  */
25580 #include <ac_nonexistent.h>
25581 _ACEOF
25582 if { (ac_try="$ac_cpp conftest.$ac_ext"
25583 case "(($ac_try" in
25584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25585   *) ac_try_echo=$ac_try;;
25586 esac
25587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25589   ac_status=$?
25590   grep -v '^ *+' conftest.er1 >conftest.err
25591   rm -f conftest.er1
25592   cat conftest.err >&5
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); } >/dev/null; then
25595   if test -s conftest.err; then
25596     ac_cpp_err=$ac_cxx_preproc_warn_flag
25597     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25598   else
25599     ac_cpp_err=
25600   fi
25601 else
25602   ac_cpp_err=yes
25603 fi
25604 if test -z "$ac_cpp_err"; then
25605   # Broken: success on invalid input.
25606 continue
25607 else
25608   echo "$as_me: failed program was:" >&5
25609 sed 's/^/| /' conftest.$ac_ext >&5
25610
25611   # Passes both tests.
25612 ac_preproc_ok=:
25613 break
25614 fi
25615
25616 rm -f conftest.err conftest.$ac_ext
25617
25618 done
25619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25620 rm -f conftest.err conftest.$ac_ext
25621 if $ac_preproc_ok; then
25622   :
25623 else
25624   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
25625 See \`config.log' for more details." >&5
25626 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
25627 See \`config.log' for more details." >&2;}
25628    { (exit 1); exit 1; }; }
25629 fi
25630
25631 ac_ext=cpp
25632 ac_cpp='$CXXCPP $CPPFLAGS'
25633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25636
25637
25638
25639
25640     ac_ext=cpp
25641 ac_cpp='$CXXCPP $CPPFLAGS'
25642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25645
25646
25647
25648 for ac_header in iostream
25649 do
25650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25652   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25655   echo $ECHO_N "(cached) $ECHO_C" >&6
25656 fi
25657 ac_res=`eval echo '${'$as_ac_Header'}'`
25658                { echo "$as_me:$LINENO: result: $ac_res" >&5
25659 echo "${ECHO_T}$ac_res" >&6; }
25660 else
25661   # Is the header compilable?
25662 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25664 cat >conftest.$ac_ext <<_ACEOF
25665 /* confdefs.h.  */
25666 _ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h.  */
25670 $ac_includes_default
25671 #include <$ac_header>
25672 _ACEOF
25673 rm -f conftest.$ac_objext
25674 if { (ac_try="$ac_compile"
25675 case "(($ac_try" in
25676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25677   *) ac_try_echo=$ac_try;;
25678 esac
25679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25680   (eval "$ac_compile") 2>conftest.er1
25681   ac_status=$?
25682   grep -v '^ *+' conftest.er1 >conftest.err
25683   rm -f conftest.er1
25684   cat conftest.err >&5
25685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686   (exit $ac_status); } &&
25687          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25688   { (case "(($ac_try" in
25689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25690   *) ac_try_echo=$ac_try;;
25691 esac
25692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25693   (eval "$ac_try") 2>&5
25694   ac_status=$?
25695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25696   (exit $ac_status); }; } &&
25697          { ac_try='test -s conftest.$ac_objext'
25698   { (case "(($ac_try" in
25699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700   *) ac_try_echo=$ac_try;;
25701 esac
25702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25703   (eval "$ac_try") 2>&5
25704   ac_status=$?
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); }; }; then
25707   ac_header_compiler=yes
25708 else
25709   echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25711
25712         ac_header_compiler=no
25713 fi
25714
25715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25717 echo "${ECHO_T}$ac_header_compiler" >&6; }
25718
25719 # Is the header present?
25720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25722 cat >conftest.$ac_ext <<_ACEOF
25723 /* confdefs.h.  */
25724 _ACEOF
25725 cat confdefs.h >>conftest.$ac_ext
25726 cat >>conftest.$ac_ext <<_ACEOF
25727 /* end confdefs.h.  */
25728 #include <$ac_header>
25729 _ACEOF
25730 if { (ac_try="$ac_cpp conftest.$ac_ext"
25731 case "(($ac_try" in
25732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25733   *) ac_try_echo=$ac_try;;
25734 esac
25735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25737   ac_status=$?
25738   grep -v '^ *+' conftest.er1 >conftest.err
25739   rm -f conftest.er1
25740   cat conftest.err >&5
25741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742   (exit $ac_status); } >/dev/null; then
25743   if test -s conftest.err; then
25744     ac_cpp_err=$ac_cxx_preproc_warn_flag
25745     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25746   else
25747     ac_cpp_err=
25748   fi
25749 else
25750   ac_cpp_err=yes
25751 fi
25752 if test -z "$ac_cpp_err"; then
25753   ac_header_preproc=yes
25754 else
25755   echo "$as_me: failed program was:" >&5
25756 sed 's/^/| /' conftest.$ac_ext >&5
25757
25758   ac_header_preproc=no
25759 fi
25760
25761 rm -f conftest.err conftest.$ac_ext
25762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25763 echo "${ECHO_T}$ac_header_preproc" >&6; }
25764
25765 # So?  What about this header?
25766 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25767   yes:no: )
25768     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25772     ac_header_preproc=yes
25773     ;;
25774   no:yes:* )
25775     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25777     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25778 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25779     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25781     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25782 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25785     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25787     ( cat <<\_ASBOX
25788 ## ----------------------------------------- ##
25789 ## Report this to wx-dev@lists.wxwidgets.org ##
25790 ## ----------------------------------------- ##
25791 _ASBOX
25792      ) | sed "s/^/$as_me: WARNING:     /" >&2
25793     ;;
25794 esac
25795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25798   echo $ECHO_N "(cached) $ECHO_C" >&6
25799 else
25800   eval "$as_ac_Header=\$ac_header_preproc"
25801 fi
25802 ac_res=`eval echo '${'$as_ac_Header'}'`
25803                { echo "$as_me:$LINENO: result: $ac_res" >&5
25804 echo "${ECHO_T}$ac_res" >&6; }
25805
25806 fi
25807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25808   cat >>confdefs.h <<_ACEOF
25809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25810 _ACEOF
25811
25812 fi
25813
25814 done
25815
25816
25817     if test "$ac_cv_header_iostream" = "yes" ; then
25818       :
25819     else
25820       cat >>confdefs.h <<\_ACEOF
25821 #define wxUSE_IOSTREAMH 1
25822 _ACEOF
25823
25824     fi
25825
25826     ac_ext=c
25827 ac_cpp='$CPP $CPPFLAGS'
25828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25831
25832
25833
25834
25835   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
25836 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
25837 if test "${wx_cv_cpp_bool+set}" = set; then
25838   echo $ECHO_N "(cached) $ECHO_C" >&6
25839 else
25840
25841
25842     ac_ext=cpp
25843 ac_cpp='$CXXCPP $CPPFLAGS'
25844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25847
25848
25849     cat >conftest.$ac_ext <<_ACEOF
25850 /* confdefs.h.  */
25851 _ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h.  */
25855
25856
25857 int
25858 main ()
25859 {
25860
25861         bool b = true;
25862
25863         return 0;
25864
25865   ;
25866   return 0;
25867 }
25868 _ACEOF
25869 rm -f conftest.$ac_objext
25870 if { (ac_try="$ac_compile"
25871 case "(($ac_try" in
25872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25873   *) ac_try_echo=$ac_try;;
25874 esac
25875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25876   (eval "$ac_compile") 2>conftest.er1
25877   ac_status=$?
25878   grep -v '^ *+' conftest.er1 >conftest.err
25879   rm -f conftest.er1
25880   cat conftest.err >&5
25881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882   (exit $ac_status); } &&
25883          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25884   { (case "(($ac_try" in
25885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25886   *) ac_try_echo=$ac_try;;
25887 esac
25888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25889   (eval "$ac_try") 2>&5
25890   ac_status=$?
25891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892   (exit $ac_status); }; } &&
25893          { ac_try='test -s conftest.$ac_objext'
25894   { (case "(($ac_try" in
25895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25896   *) ac_try_echo=$ac_try;;
25897 esac
25898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25899   (eval "$ac_try") 2>&5
25900   ac_status=$?
25901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902   (exit $ac_status); }; }; then
25903
25904         wx_cv_cpp_bool=yes
25905
25906 else
25907   echo "$as_me: failed program was:" >&5
25908 sed 's/^/| /' conftest.$ac_ext >&5
25909
25910
25911         wx_cv_cpp_bool=no
25912
25913
25914 fi
25915
25916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25917
25918     ac_ext=c
25919 ac_cpp='$CPP $CPPFLAGS'
25920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25923
25924
25925 fi
25926 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
25927 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
25928
25929   if test "$wx_cv_cpp_bool" = "yes"; then
25930     cat >>confdefs.h <<\_ACEOF
25931 #define HAVE_BOOL 1
25932 _ACEOF
25933
25934   fi
25935
25936
25937
25938   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25939 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25940 if test "${wx_cv_explicit+set}" = set; then
25941   echo $ECHO_N "(cached) $ECHO_C" >&6
25942 else
25943
25944
25945     ac_ext=cpp
25946 ac_cpp='$CXXCPP $CPPFLAGS'
25947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25950
25951
25952             cat >conftest.$ac_ext <<_ACEOF
25953 /* confdefs.h.  */
25954 _ACEOF
25955 cat confdefs.h >>conftest.$ac_ext
25956 cat >>conftest.$ac_ext <<_ACEOF
25957 /* end confdefs.h.  */
25958
25959         class Foo { public: explicit Foo(int) {} };
25960
25961 int
25962 main ()
25963 {
25964
25965         return 0;
25966
25967   ;
25968   return 0;
25969 }
25970 _ACEOF
25971 rm -f conftest.$ac_objext
25972 if { (ac_try="$ac_compile"
25973 case "(($ac_try" in
25974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25975   *) ac_try_echo=$ac_try;;
25976 esac
25977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25978   (eval "$ac_compile") 2>conftest.er1
25979   ac_status=$?
25980   grep -v '^ *+' conftest.er1 >conftest.err
25981   rm -f conftest.er1
25982   cat conftest.err >&5
25983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984   (exit $ac_status); } &&
25985          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
25986   { (case "(($ac_try" in
25987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25988   *) ac_try_echo=$ac_try;;
25989 esac
25990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25991   (eval "$ac_try") 2>&5
25992   ac_status=$?
25993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994   (exit $ac_status); }; } &&
25995          { ac_try='test -s conftest.$ac_objext'
25996   { (case "(($ac_try" in
25997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25998   *) ac_try_echo=$ac_try;;
25999 esac
26000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26001   (eval "$ac_try") 2>&5
26002   ac_status=$?
26003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004   (exit $ac_status); }; }; then
26005
26006         cat >conftest.$ac_ext <<_ACEOF
26007 /* confdefs.h.  */
26008 _ACEOF
26009 cat confdefs.h >>conftest.$ac_ext
26010 cat >>conftest.$ac_ext <<_ACEOF
26011 /* end confdefs.h.  */
26012
26013                 class Foo { public: explicit Foo(int) {} };
26014                 static void TakeFoo(const Foo& foo) { }
26015
26016 int
26017 main ()
26018 {
26019
26020                 TakeFoo(17);
26021                 return 0;
26022
26023   ;
26024   return 0;
26025 }
26026 _ACEOF
26027 rm -f conftest.$ac_objext
26028 if { (ac_try="$ac_compile"
26029 case "(($ac_try" in
26030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26031   *) ac_try_echo=$ac_try;;
26032 esac
26033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26034   (eval "$ac_compile") 2>conftest.er1
26035   ac_status=$?
26036   grep -v '^ *+' conftest.er1 >conftest.err
26037   rm -f conftest.er1
26038   cat conftest.err >&5
26039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040   (exit $ac_status); } &&
26041          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26042   { (case "(($ac_try" in
26043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26044   *) ac_try_echo=$ac_try;;
26045 esac
26046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26047   (eval "$ac_try") 2>&5
26048   ac_status=$?
26049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050   (exit $ac_status); }; } &&
26051          { ac_try='test -s conftest.$ac_objext'
26052   { (case "(($ac_try" in
26053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054   *) ac_try_echo=$ac_try;;
26055 esac
26056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057   (eval "$ac_try") 2>&5
26058   ac_status=$?
26059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060   (exit $ac_status); }; }; then
26061   wx_cv_explicit=no
26062 else
26063   echo "$as_me: failed program was:" >&5
26064 sed 's/^/| /' conftest.$ac_ext >&5
26065
26066         wx_cv_explicit=yes
26067
26068 fi
26069
26070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26071
26072 else
26073   echo "$as_me: failed program was:" >&5
26074 sed 's/^/| /' conftest.$ac_ext >&5
26075
26076         wx_cv_explicit=no
26077
26078 fi
26079
26080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26081
26082     ac_ext=c
26083 ac_cpp='$CPP $CPPFLAGS'
26084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26087
26088
26089 fi
26090 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
26091 echo "${ECHO_T}$wx_cv_explicit" >&6; }
26092
26093   if test "$wx_cv_explicit" = "yes"; then
26094     cat >>confdefs.h <<\_ACEOF
26095 #define HAVE_EXPLICIT 1
26096 _ACEOF
26097
26098   fi
26099
26100
26101 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
26102 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
26103 if test "${ac_cv_cxx_const_cast+set}" = set; then
26104   echo $ECHO_N "(cached) $ECHO_C" >&6
26105 else
26106
26107  ac_ext=cpp
26108 ac_cpp='$CXXCPP $CPPFLAGS'
26109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26112
26113  cat >conftest.$ac_ext <<_ACEOF
26114 /* confdefs.h.  */
26115 _ACEOF
26116 cat confdefs.h >>conftest.$ac_ext
26117 cat >>conftest.$ac_ext <<_ACEOF
26118 /* end confdefs.h.  */
26119
26120 int
26121 main ()
26122 {
26123 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
26124   ;
26125   return 0;
26126 }
26127 _ACEOF
26128 rm -f conftest.$ac_objext
26129 if { (ac_try="$ac_compile"
26130 case "(($ac_try" in
26131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26132   *) ac_try_echo=$ac_try;;
26133 esac
26134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26135   (eval "$ac_compile") 2>conftest.er1
26136   ac_status=$?
26137   grep -v '^ *+' conftest.er1 >conftest.err
26138   rm -f conftest.er1
26139   cat conftest.err >&5
26140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141   (exit $ac_status); } &&
26142          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26143   { (case "(($ac_try" in
26144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26145   *) ac_try_echo=$ac_try;;
26146 esac
26147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26148   (eval "$ac_try") 2>&5
26149   ac_status=$?
26150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151   (exit $ac_status); }; } &&
26152          { ac_try='test -s conftest.$ac_objext'
26153   { (case "(($ac_try" in
26154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26155   *) ac_try_echo=$ac_try;;
26156 esac
26157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26158   (eval "$ac_try") 2>&5
26159   ac_status=$?
26160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161   (exit $ac_status); }; }; then
26162   ac_cv_cxx_const_cast=yes
26163 else
26164   echo "$as_me: failed program was:" >&5
26165 sed 's/^/| /' conftest.$ac_ext >&5
26166
26167         ac_cv_cxx_const_cast=no
26168 fi
26169
26170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26171  ac_ext=c
26172 ac_cpp='$CPP $CPPFLAGS'
26173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26176
26177
26178 fi
26179 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
26180 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
26181 if test "$ac_cv_cxx_const_cast" = yes; then
26182
26183 cat >>confdefs.h <<\_ACEOF
26184 #define HAVE_CONST_CAST
26185 _ACEOF
26186
26187 fi
26188
26189 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
26190 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
26191 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
26192   echo $ECHO_N "(cached) $ECHO_C" >&6
26193 else
26194
26195  ac_ext=cpp
26196 ac_cpp='$CXXCPP $CPPFLAGS'
26197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26200
26201  cat >conftest.$ac_ext <<_ACEOF
26202 /* confdefs.h.  */
26203 _ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h.  */
26207 #include <typeinfo>
26208 class Base { public : Base () {} virtual void f () = 0;};
26209 class Derived : public Base { public : Derived () {} virtual void f () {} };
26210 class Unrelated { public : Unrelated () {} };
26211 int g (Unrelated&) { return 0; }
26212 int
26213 main ()
26214 {
26215
26216 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
26217   ;
26218   return 0;
26219 }
26220 _ACEOF
26221 rm -f conftest.$ac_objext
26222 if { (ac_try="$ac_compile"
26223 case "(($ac_try" in
26224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26225   *) ac_try_echo=$ac_try;;
26226 esac
26227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26228   (eval "$ac_compile") 2>conftest.er1
26229   ac_status=$?
26230   grep -v '^ *+' conftest.er1 >conftest.err
26231   rm -f conftest.er1
26232   cat conftest.err >&5
26233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234   (exit $ac_status); } &&
26235          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26236   { (case "(($ac_try" in
26237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26238   *) ac_try_echo=$ac_try;;
26239 esac
26240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26241   (eval "$ac_try") 2>&5
26242   ac_status=$?
26243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244   (exit $ac_status); }; } &&
26245          { ac_try='test -s conftest.$ac_objext'
26246   { (case "(($ac_try" in
26247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26248   *) ac_try_echo=$ac_try;;
26249 esac
26250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26251   (eval "$ac_try") 2>&5
26252   ac_status=$?
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); }; }; then
26255   ac_cv_cxx_reinterpret_cast=yes
26256 else
26257   echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26259
26260         ac_cv_cxx_reinterpret_cast=no
26261 fi
26262
26263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26264  ac_ext=c
26265 ac_cpp='$CPP $CPPFLAGS'
26266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26269
26270
26271 fi
26272 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
26273 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
26274 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
26275
26276 cat >>confdefs.h <<\_ACEOF
26277 #define HAVE_REINTERPRET_CAST
26278 _ACEOF
26279
26280 fi
26281
26282 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
26283 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
26284 if test "${ac_cv_cxx_static_cast+set}" = set; then
26285   echo $ECHO_N "(cached) $ECHO_C" >&6
26286 else
26287
26288  ac_ext=cpp
26289 ac_cpp='$CXXCPP $CPPFLAGS'
26290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26293
26294  cat >conftest.$ac_ext <<_ACEOF
26295 /* confdefs.h.  */
26296 _ACEOF
26297 cat confdefs.h >>conftest.$ac_ext
26298 cat >>conftest.$ac_ext <<_ACEOF
26299 /* end confdefs.h.  */
26300 #include <typeinfo>
26301 class Base { public : Base () {} virtual void f () = 0; };
26302 class Derived : public Base { public : Derived () {} virtual void f () {} };
26303 int g (Derived&) { return 0; }
26304 int
26305 main ()
26306 {
26307
26308 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
26309   ;
26310   return 0;
26311 }
26312 _ACEOF
26313 rm -f conftest.$ac_objext
26314 if { (ac_try="$ac_compile"
26315 case "(($ac_try" in
26316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26317   *) ac_try_echo=$ac_try;;
26318 esac
26319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26320   (eval "$ac_compile") 2>conftest.er1
26321   ac_status=$?
26322   grep -v '^ *+' conftest.er1 >conftest.err
26323   rm -f conftest.er1
26324   cat conftest.err >&5
26325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326   (exit $ac_status); } &&
26327          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26328   { (case "(($ac_try" in
26329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330   *) ac_try_echo=$ac_try;;
26331 esac
26332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333   (eval "$ac_try") 2>&5
26334   ac_status=$?
26335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336   (exit $ac_status); }; } &&
26337          { ac_try='test -s conftest.$ac_objext'
26338   { (case "(($ac_try" in
26339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26340   *) ac_try_echo=$ac_try;;
26341 esac
26342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26343   (eval "$ac_try") 2>&5
26344   ac_status=$?
26345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346   (exit $ac_status); }; }; then
26347   ac_cv_cxx_static_cast=yes
26348 else
26349   echo "$as_me: failed program was:" >&5
26350 sed 's/^/| /' conftest.$ac_ext >&5
26351
26352         ac_cv_cxx_static_cast=no
26353 fi
26354
26355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26356  ac_ext=c
26357 ac_cpp='$CPP $CPPFLAGS'
26358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26361
26362
26363 fi
26364 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
26365 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
26366 if test "$ac_cv_cxx_static_cast" = yes; then
26367
26368 cat >>confdefs.h <<\_ACEOF
26369 #define HAVE_STATIC_CAST
26370 _ACEOF
26371
26372 fi
26373
26374
26375 if test "x$SUNCXX" = xyes; then
26376     CXXFLAGS="-features=tmplife $CXXFLAGS"
26377 fi
26378
26379 if test "x$SUNCC" = xyes; then
26380     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
26381 fi
26382
26383 if test "x$SGICC" = "xyes"; then
26384     CFLAGS="-woff 3970 $CFLAGS"
26385 fi
26386 if test "x$SGICXX" = "xyes"; then
26387     CXXFLAGS="-woff 3970 $CXXFLAGS"
26388 fi
26389
26390 if test "x$HPCC" = "xyes"; then
26391                     CFLAGS="+W 2011,2450 $CFLAGS"
26392 fi
26393 if test "x$HPCXX" = "xyes"; then
26394             CXXFLAGS="+W 2340 $CXXFLAGS"
26395 fi
26396
26397 if test "x$COMPAQCXX" = "xyes"; then
26398                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
26399 fi
26400
26401 ac_ext=cpp
26402 ac_cpp='$CXXCPP $CPPFLAGS'
26403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26406
26407
26408 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
26409     if test "$wxUSE_UNICODE" = "yes"; then
26410         std_string="std::wstring"
26411         char_type="wchar_t"
26412     else
26413         std_string="std::string"
26414         char_type="char"
26415     fi
26416
26417         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
26418 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
26419 if test "${wx_cv_class_stdstring+set}" = set; then
26420   echo $ECHO_N "(cached) $ECHO_C" >&6
26421 else
26422
26423             cat >conftest.$ac_ext <<_ACEOF
26424 /* confdefs.h.  */
26425 _ACEOF
26426 cat confdefs.h >>conftest.$ac_ext
26427 cat >>conftest.$ac_ext <<_ACEOF
26428 /* end confdefs.h.  */
26429 #include <string>
26430 int
26431 main ()
26432 {
26433 $std_string foo;
26434   ;
26435   return 0;
26436 }
26437 _ACEOF
26438 rm -f conftest.$ac_objext
26439 if { (ac_try="$ac_compile"
26440 case "(($ac_try" in
26441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26442   *) ac_try_echo=$ac_try;;
26443 esac
26444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26445   (eval "$ac_compile") 2>conftest.er1
26446   ac_status=$?
26447   grep -v '^ *+' conftest.er1 >conftest.err
26448   rm -f conftest.er1
26449   cat conftest.err >&5
26450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451   (exit $ac_status); } &&
26452          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26453   { (case "(($ac_try" in
26454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26455   *) ac_try_echo=$ac_try;;
26456 esac
26457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26458   (eval "$ac_try") 2>&5
26459   ac_status=$?
26460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461   (exit $ac_status); }; } &&
26462          { ac_try='test -s conftest.$ac_objext'
26463   { (case "(($ac_try" in
26464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26465   *) ac_try_echo=$ac_try;;
26466 esac
26467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26468   (eval "$ac_try") 2>&5
26469   ac_status=$?
26470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471   (exit $ac_status); }; }; then
26472   wx_cv_class_stdstring=yes
26473 else
26474   echo "$as_me: failed program was:" >&5
26475 sed 's/^/| /' conftest.$ac_ext >&5
26476
26477         wx_cv_class_stdstring=no
26478
26479 fi
26480
26481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26482
26483
26484 fi
26485 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
26486 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
26487
26488     if test "$wx_cv_class_stdstring" = yes; then
26489         if test "$wxUSE_UNICODE" = "yes"; then
26490             cat >>confdefs.h <<\_ACEOF
26491 #define HAVE_STD_WSTRING 1
26492 _ACEOF
26493
26494         fi
26495                     else
26496         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
26497 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
26498 if test "${wx_cv_class_stdbasicstring+set}" = set; then
26499   echo $ECHO_N "(cached) $ECHO_C" >&6
26500 else
26501
26502                 cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h.  */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h.  */
26508
26509                     #ifdef HAVE_WCHAR_H
26510                     #  ifdef __CYGWIN__
26511                     #    include <stddef.h>
26512                     #  endif
26513                     #  include <wchar.h>
26514                     #endif
26515                     #ifdef HAVE_STDLIB_H
26516                     #  include <stdlib.h>
26517                     #endif
26518                     #include <stdio.h>
26519                     #include <string>
26520
26521 int
26522 main ()
26523 {
26524 std::basic_string<$char_type> foo;
26525                      const $char_type* dummy = foo.c_str();
26526   ;
26527   return 0;
26528 }
26529 _ACEOF
26530 rm -f conftest.$ac_objext
26531 if { (ac_try="$ac_compile"
26532 case "(($ac_try" in
26533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26534   *) ac_try_echo=$ac_try;;
26535 esac
26536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26537   (eval "$ac_compile") 2>conftest.er1
26538   ac_status=$?
26539   grep -v '^ *+' conftest.er1 >conftest.err
26540   rm -f conftest.er1
26541   cat conftest.err >&5
26542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543   (exit $ac_status); } &&
26544          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26545   { (case "(($ac_try" in
26546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26547   *) ac_try_echo=$ac_try;;
26548 esac
26549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26550   (eval "$ac_try") 2>&5
26551   ac_status=$?
26552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553   (exit $ac_status); }; } &&
26554          { ac_try='test -s conftest.$ac_objext'
26555   { (case "(($ac_try" in
26556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26557   *) ac_try_echo=$ac_try;;
26558 esac
26559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26560   (eval "$ac_try") 2>&5
26561   ac_status=$?
26562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563   (exit $ac_status); }; }; then
26564   wx_cv_class_stdbasicstring=yes
26565 else
26566   echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26568
26569         wx_cv_class_stdbasicstring=no
26570
26571 fi
26572
26573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26574
26575
26576 fi
26577 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
26578 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
26579
26580         if test "$wx_cv_class_stdbasicstring" != yes; then
26581             if test "$wxUSE_STL" = "yes"; then
26582                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
26583 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
26584    { (exit 1); exit 1; }; }
26585             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
26586                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
26587 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
26588    { (exit 1); exit 1; }; }
26589             else
26590                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
26591 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
26592                 wxUSE_STD_STRING=no
26593             fi
26594         fi
26595     fi
26596 fi
26597
26598 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
26599     { echo "$as_me:$LINENO: checking for std::istream" >&5
26600 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
26601 if test "${ac_cv_type_std__istream+set}" = set; then
26602   echo $ECHO_N "(cached) $ECHO_C" >&6
26603 else
26604   cat >conftest.$ac_ext <<_ACEOF
26605 /* confdefs.h.  */
26606 _ACEOF
26607 cat confdefs.h >>conftest.$ac_ext
26608 cat >>conftest.$ac_ext <<_ACEOF
26609 /* end confdefs.h.  */
26610 #include <iostream>
26611
26612 typedef std::istream ac__type_new_;
26613 int
26614 main ()
26615 {
26616 if ((ac__type_new_ *) 0)
26617   return 0;
26618 if (sizeof (ac__type_new_))
26619   return 0;
26620   ;
26621   return 0;
26622 }
26623 _ACEOF
26624 rm -f conftest.$ac_objext
26625 if { (ac_try="$ac_compile"
26626 case "(($ac_try" in
26627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628   *) ac_try_echo=$ac_try;;
26629 esac
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631   (eval "$ac_compile") 2>conftest.er1
26632   ac_status=$?
26633   grep -v '^ *+' conftest.er1 >conftest.err
26634   rm -f conftest.er1
26635   cat conftest.err >&5
26636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637   (exit $ac_status); } &&
26638          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26639   { (case "(($ac_try" in
26640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26641   *) ac_try_echo=$ac_try;;
26642 esac
26643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26644   (eval "$ac_try") 2>&5
26645   ac_status=$?
26646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647   (exit $ac_status); }; } &&
26648          { ac_try='test -s conftest.$ac_objext'
26649   { (case "(($ac_try" in
26650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26651   *) ac_try_echo=$ac_try;;
26652 esac
26653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26654   (eval "$ac_try") 2>&5
26655   ac_status=$?
26656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657   (exit $ac_status); }; }; then
26658   ac_cv_type_std__istream=yes
26659 else
26660   echo "$as_me: failed program was:" >&5
26661 sed 's/^/| /' conftest.$ac_ext >&5
26662
26663         ac_cv_type_std__istream=no
26664 fi
26665
26666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26667 fi
26668 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
26669 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
26670 if test $ac_cv_type_std__istream = yes; then
26671
26672 cat >>confdefs.h <<_ACEOF
26673 #define HAVE_STD__ISTREAM 1
26674 _ACEOF
26675
26676
26677 else
26678   wxUSE_STD_IOSTREAM=no
26679 fi
26680 { echo "$as_me:$LINENO: checking for std::ostream" >&5
26681 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
26682 if test "${ac_cv_type_std__ostream+set}" = set; then
26683   echo $ECHO_N "(cached) $ECHO_C" >&6
26684 else
26685   cat >conftest.$ac_ext <<_ACEOF
26686 /* confdefs.h.  */
26687 _ACEOF
26688 cat confdefs.h >>conftest.$ac_ext
26689 cat >>conftest.$ac_ext <<_ACEOF
26690 /* end confdefs.h.  */
26691 #include <iostream>
26692
26693 typedef std::ostream ac__type_new_;
26694 int
26695 main ()
26696 {
26697 if ((ac__type_new_ *) 0)
26698   return 0;
26699 if (sizeof (ac__type_new_))
26700   return 0;
26701   ;
26702   return 0;
26703 }
26704 _ACEOF
26705 rm -f conftest.$ac_objext
26706 if { (ac_try="$ac_compile"
26707 case "(($ac_try" in
26708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26709   *) ac_try_echo=$ac_try;;
26710 esac
26711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26712   (eval "$ac_compile") 2>conftest.er1
26713   ac_status=$?
26714   grep -v '^ *+' conftest.er1 >conftest.err
26715   rm -f conftest.er1
26716   cat conftest.err >&5
26717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26718   (exit $ac_status); } &&
26719          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26720   { (case "(($ac_try" in
26721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26722   *) ac_try_echo=$ac_try;;
26723 esac
26724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26725   (eval "$ac_try") 2>&5
26726   ac_status=$?
26727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728   (exit $ac_status); }; } &&
26729          { ac_try='test -s conftest.$ac_objext'
26730   { (case "(($ac_try" in
26731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26732   *) ac_try_echo=$ac_try;;
26733 esac
26734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26735   (eval "$ac_try") 2>&5
26736   ac_status=$?
26737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738   (exit $ac_status); }; }; then
26739   ac_cv_type_std__ostream=yes
26740 else
26741   echo "$as_me: failed program was:" >&5
26742 sed 's/^/| /' conftest.$ac_ext >&5
26743
26744         ac_cv_type_std__ostream=no
26745 fi
26746
26747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26748 fi
26749 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
26750 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
26751 if test $ac_cv_type_std__ostream = yes; then
26752
26753 cat >>confdefs.h <<_ACEOF
26754 #define HAVE_STD__OSTREAM 1
26755 _ACEOF
26756
26757
26758 else
26759   wxUSE_STD_IOSTREAM=no
26760 fi
26761
26762
26763     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
26764         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
26765             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
26766 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
26767    { (exit 1); exit 1; }; }
26768         else
26769             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
26770 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
26771         fi
26772     fi
26773 fi
26774
26775 if test "$wxUSE_STL" = "yes"; then
26776         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
26777 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
26778 if test "${wx_cv_lib_stl+set}" = set; then
26779   echo $ECHO_N "(cached) $ECHO_C" >&6
26780 else
26781   cat >conftest.$ac_ext <<_ACEOF
26782 /* confdefs.h.  */
26783 _ACEOF
26784 cat confdefs.h >>conftest.$ac_ext
26785 cat >>conftest.$ac_ext <<_ACEOF
26786 /* end confdefs.h.  */
26787 #include <string>
26788             #include <functional>
26789             #include <algorithm>
26790             #include <vector>
26791             #include <list>
26792 int
26793 main ()
26794 {
26795 std::vector<int> moo;
26796              std::list<int> foo;
26797              std::vector<int>::iterator it =
26798                  std::find_if(moo.begin(), moo.end(),
26799                               std::bind2nd(std::less<int>(), 3));
26800   ;
26801   return 0;
26802 }
26803 _ACEOF
26804 rm -f conftest.$ac_objext
26805 if { (ac_try="$ac_compile"
26806 case "(($ac_try" in
26807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26808   *) ac_try_echo=$ac_try;;
26809 esac
26810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26811   (eval "$ac_compile") 2>conftest.er1
26812   ac_status=$?
26813   grep -v '^ *+' conftest.er1 >conftest.err
26814   rm -f conftest.er1
26815   cat conftest.err >&5
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); } &&
26818          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26819   { (case "(($ac_try" in
26820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821   *) ac_try_echo=$ac_try;;
26822 esac
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824   (eval "$ac_try") 2>&5
26825   ac_status=$?
26826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); }; } &&
26828          { ac_try='test -s conftest.$ac_objext'
26829   { (case "(($ac_try" in
26830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26831   *) ac_try_echo=$ac_try;;
26832 esac
26833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26834   (eval "$ac_try") 2>&5
26835   ac_status=$?
26836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837   (exit $ac_status); }; }; then
26838   wx_cv_lib_stl=yes
26839 else
26840   echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26842
26843         wx_cv_lib_stl=no
26844
26845 fi
26846
26847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26848
26849 fi
26850 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
26851 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
26852
26853     if test "$wx_cv_lib_stl" != yes; then
26854          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
26855 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
26856    { (exit 1); exit 1; }; }
26857     fi
26858
26859         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
26860 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
26861 if test "${wx_cv_func_stdstring_compare+set}" = set; then
26862   echo $ECHO_N "(cached) $ECHO_C" >&6
26863 else
26864   cat >conftest.$ac_ext <<_ACEOF
26865 /* confdefs.h.  */
26866 _ACEOF
26867 cat confdefs.h >>conftest.$ac_ext
26868 cat >>conftest.$ac_ext <<_ACEOF
26869 /* end confdefs.h.  */
26870 #include <string>
26871 int
26872 main ()
26873 {
26874 std::string foo, bar;
26875             foo.compare(bar);
26876             foo.compare(1, 1, bar);
26877             foo.compare(1, 1, bar, 1, 1);
26878             foo.compare("");
26879             foo.compare(1, 1, "");
26880             foo.compare(1, 1, "", 2);
26881   ;
26882   return 0;
26883 }
26884 _ACEOF
26885 rm -f conftest.$ac_objext
26886 if { (ac_try="$ac_compile"
26887 case "(($ac_try" in
26888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26889   *) ac_try_echo=$ac_try;;
26890 esac
26891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26892   (eval "$ac_compile") 2>conftest.er1
26893   ac_status=$?
26894   grep -v '^ *+' conftest.er1 >conftest.err
26895   rm -f conftest.er1
26896   cat conftest.err >&5
26897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898   (exit $ac_status); } &&
26899          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26900   { (case "(($ac_try" in
26901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902   *) ac_try_echo=$ac_try;;
26903 esac
26904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905   (eval "$ac_try") 2>&5
26906   ac_status=$?
26907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); }; } &&
26909          { ac_try='test -s conftest.$ac_objext'
26910   { (case "(($ac_try" in
26911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26912   *) ac_try_echo=$ac_try;;
26913 esac
26914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26915   (eval "$ac_try") 2>&5
26916   ac_status=$?
26917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918   (exit $ac_status); }; }; then
26919   wx_cv_func_stdstring_compare=yes
26920 else
26921   echo "$as_me: failed program was:" >&5
26922 sed 's/^/| /' conftest.$ac_ext >&5
26923
26924         wx_cv_func_stdstring_compare=no
26925
26926 fi
26927
26928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26929
26930 fi
26931 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
26932 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
26933
26934     if test "$wx_cv_func_stdstring_compare" = yes; then
26935         cat >>confdefs.h <<\_ACEOF
26936 #define HAVE_STD_STRING_COMPARE 1
26937 _ACEOF
26938
26939     fi
26940
26941         if test "${ac_cv_header_hash_map+set}" = set; then
26942   { echo "$as_me:$LINENO: checking for hash_map" >&5
26943 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26944 if test "${ac_cv_header_hash_map+set}" = set; then
26945   echo $ECHO_N "(cached) $ECHO_C" >&6
26946 fi
26947 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26948 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26949 else
26950   # Is the header compilable?
26951 { echo "$as_me:$LINENO: checking hash_map usability" >&5
26952 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6; }
26953 cat >conftest.$ac_ext <<_ACEOF
26954 /* confdefs.h.  */
26955 _ACEOF
26956 cat confdefs.h >>conftest.$ac_ext
26957 cat >>conftest.$ac_ext <<_ACEOF
26958 /* end confdefs.h.  */
26959 $ac_includes_default
26960 #include <hash_map>
26961 _ACEOF
26962 rm -f conftest.$ac_objext
26963 if { (ac_try="$ac_compile"
26964 case "(($ac_try" in
26965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966   *) ac_try_echo=$ac_try;;
26967 esac
26968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969   (eval "$ac_compile") 2>conftest.er1
26970   ac_status=$?
26971   grep -v '^ *+' conftest.er1 >conftest.err
26972   rm -f conftest.er1
26973   cat conftest.err >&5
26974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975   (exit $ac_status); } &&
26976          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26977   { (case "(($ac_try" in
26978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979   *) ac_try_echo=$ac_try;;
26980 esac
26981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26982   (eval "$ac_try") 2>&5
26983   ac_status=$?
26984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985   (exit $ac_status); }; } &&
26986          { ac_try='test -s conftest.$ac_objext'
26987   { (case "(($ac_try" in
26988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26989   *) ac_try_echo=$ac_try;;
26990 esac
26991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26992   (eval "$ac_try") 2>&5
26993   ac_status=$?
26994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995   (exit $ac_status); }; }; then
26996   ac_header_compiler=yes
26997 else
26998   echo "$as_me: failed program was:" >&5
26999 sed 's/^/| /' conftest.$ac_ext >&5
27000
27001         ac_header_compiler=no
27002 fi
27003
27004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27006 echo "${ECHO_T}$ac_header_compiler" >&6; }
27007
27008 # Is the header present?
27009 { echo "$as_me:$LINENO: checking hash_map presence" >&5
27010 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6; }
27011 cat >conftest.$ac_ext <<_ACEOF
27012 /* confdefs.h.  */
27013 _ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h.  */
27017 #include <hash_map>
27018 _ACEOF
27019 if { (ac_try="$ac_cpp conftest.$ac_ext"
27020 case "(($ac_try" in
27021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022   *) ac_try_echo=$ac_try;;
27023 esac
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27026   ac_status=$?
27027   grep -v '^ *+' conftest.er1 >conftest.err
27028   rm -f conftest.er1
27029   cat conftest.err >&5
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); } >/dev/null; then
27032   if test -s conftest.err; then
27033     ac_cpp_err=$ac_cxx_preproc_warn_flag
27034     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27035   else
27036     ac_cpp_err=
27037   fi
27038 else
27039   ac_cpp_err=yes
27040 fi
27041 if test -z "$ac_cpp_err"; then
27042   ac_header_preproc=yes
27043 else
27044   echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27046
27047   ac_header_preproc=no
27048 fi
27049
27050 rm -f conftest.err conftest.$ac_ext
27051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27052 echo "${ECHO_T}$ac_header_preproc" >&6; }
27053
27054 # So?  What about this header?
27055 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27056   yes:no: )
27057     { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
27058 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
27059     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
27060 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
27061     ac_header_preproc=yes
27062     ;;
27063   no:yes:* )
27064     { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
27065 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
27066     { echo "$as_me:$LINENO: WARNING: hash_map:     check for missing prerequisite headers?" >&5
27067 echo "$as_me: WARNING: hash_map:     check for missing prerequisite headers?" >&2;}
27068     { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
27069 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
27070     { echo "$as_me:$LINENO: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&5
27071 echo "$as_me: WARNING: hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
27072     { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
27073 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
27074     { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
27075 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
27076     ( cat <<\_ASBOX
27077 ## ----------------------------------------- ##
27078 ## Report this to wx-dev@lists.wxwidgets.org ##
27079 ## ----------------------------------------- ##
27080 _ASBOX
27081      ) | sed "s/^/$as_me: WARNING:     /" >&2
27082     ;;
27083 esac
27084 { echo "$as_me:$LINENO: checking for hash_map" >&5
27085 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
27086 if test "${ac_cv_header_hash_map+set}" = set; then
27087   echo $ECHO_N "(cached) $ECHO_C" >&6
27088 else
27089   ac_cv_header_hash_map=$ac_header_preproc
27090 fi
27091 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
27092 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
27093
27094 fi
27095 if test $ac_cv_header_hash_map = yes; then
27096   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
27097 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
27098 if test "${wx_cv_class_stdhashmapset+set}" = set; then
27099   echo $ECHO_N "(cached) $ECHO_C" >&6
27100 else
27101   cat >conftest.$ac_ext <<_ACEOF
27102 /* confdefs.h.  */
27103 _ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h.  */
27107 #include <hash_map>
27108                 #include <hash_set>
27109 int
27110 main ()
27111 {
27112 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
27113                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
27114   ;
27115   return 0;
27116 }
27117 _ACEOF
27118 rm -f conftest.$ac_objext
27119 if { (ac_try="$ac_compile"
27120 case "(($ac_try" in
27121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122   *) ac_try_echo=$ac_try;;
27123 esac
27124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125   (eval "$ac_compile") 2>conftest.er1
27126   ac_status=$?
27127   grep -v '^ *+' conftest.er1 >conftest.err
27128   rm -f conftest.er1
27129   cat conftest.err >&5
27130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131   (exit $ac_status); } &&
27132          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27133   { (case "(($ac_try" in
27134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27135   *) ac_try_echo=$ac_try;;
27136 esac
27137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27138   (eval "$ac_try") 2>&5
27139   ac_status=$?
27140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141   (exit $ac_status); }; } &&
27142          { ac_try='test -s conftest.$ac_objext'
27143   { (case "(($ac_try" in
27144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145   *) ac_try_echo=$ac_try;;
27146 esac
27147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27148   (eval "$ac_try") 2>&5
27149   ac_status=$?
27150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151   (exit $ac_status); }; }; then
27152   wx_cv_class_stdhashmapset=yes
27153 else
27154   echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.$ac_ext >&5
27156
27157         wx_cv_class_stdhashmapset=no
27158 fi
27159
27160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27161
27162
27163 fi
27164 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
27165 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
27166
27167 fi
27168
27169
27170
27171     if test "$wx_cv_class_stdhashmapset" = yes; then
27172         cat >>confdefs.h <<\_ACEOF
27173 #define HAVE_HASH_MAP 1
27174 _ACEOF
27175
27176         cat >>confdefs.h <<\_ACEOF
27177 #define HAVE_STD_HASH_MAP 1
27178 _ACEOF
27179
27180     fi
27181
27182     if test "${ac_cv_header_ext_hash_map+set}" = set; then
27183   { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27184 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
27185 if test "${ac_cv_header_ext_hash_map+set}" = set; then
27186   echo $ECHO_N "(cached) $ECHO_C" >&6
27187 fi
27188 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27189 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
27190 else
27191   # Is the header compilable?
27192 { echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
27193 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6; }
27194 cat >conftest.$ac_ext <<_ACEOF
27195 /* confdefs.h.  */
27196 _ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h.  */
27200 $ac_includes_default
27201 #include <ext/hash_map>
27202 _ACEOF
27203 rm -f conftest.$ac_objext
27204 if { (ac_try="$ac_compile"
27205 case "(($ac_try" in
27206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207   *) ac_try_echo=$ac_try;;
27208 esac
27209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210   (eval "$ac_compile") 2>conftest.er1
27211   ac_status=$?
27212   grep -v '^ *+' conftest.er1 >conftest.err
27213   rm -f conftest.er1
27214   cat conftest.err >&5
27215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216   (exit $ac_status); } &&
27217          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27218   { (case "(($ac_try" in
27219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27220   *) ac_try_echo=$ac_try;;
27221 esac
27222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27223   (eval "$ac_try") 2>&5
27224   ac_status=$?
27225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226   (exit $ac_status); }; } &&
27227          { ac_try='test -s conftest.$ac_objext'
27228   { (case "(($ac_try" in
27229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230   *) ac_try_echo=$ac_try;;
27231 esac
27232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27233   (eval "$ac_try") 2>&5
27234   ac_status=$?
27235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236   (exit $ac_status); }; }; then
27237   ac_header_compiler=yes
27238 else
27239   echo "$as_me: failed program was:" >&5
27240 sed 's/^/| /' conftest.$ac_ext >&5
27241
27242         ac_header_compiler=no
27243 fi
27244
27245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27246 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27247 echo "${ECHO_T}$ac_header_compiler" >&6; }
27248
27249 # Is the header present?
27250 { echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
27251 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6; }
27252 cat >conftest.$ac_ext <<_ACEOF
27253 /* confdefs.h.  */
27254 _ACEOF
27255 cat confdefs.h >>conftest.$ac_ext
27256 cat >>conftest.$ac_ext <<_ACEOF
27257 /* end confdefs.h.  */
27258 #include <ext/hash_map>
27259 _ACEOF
27260 if { (ac_try="$ac_cpp conftest.$ac_ext"
27261 case "(($ac_try" in
27262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27263   *) ac_try_echo=$ac_try;;
27264 esac
27265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27266   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27267   ac_status=$?
27268   grep -v '^ *+' conftest.er1 >conftest.err
27269   rm -f conftest.er1
27270   cat conftest.err >&5
27271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272   (exit $ac_status); } >/dev/null; then
27273   if test -s conftest.err; then
27274     ac_cpp_err=$ac_cxx_preproc_warn_flag
27275     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27276   else
27277     ac_cpp_err=
27278   fi
27279 else
27280   ac_cpp_err=yes
27281 fi
27282 if test -z "$ac_cpp_err"; then
27283   ac_header_preproc=yes
27284 else
27285   echo "$as_me: failed program was:" >&5
27286 sed 's/^/| /' conftest.$ac_ext >&5
27287
27288   ac_header_preproc=no
27289 fi
27290
27291 rm -f conftest.err conftest.$ac_ext
27292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27293 echo "${ECHO_T}$ac_header_preproc" >&6; }
27294
27295 # So?  What about this header?
27296 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27297   yes:no: )
27298     { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
27299 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
27300     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
27301 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
27302     ac_header_preproc=yes
27303     ;;
27304   no:yes:* )
27305     { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
27306 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
27307     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&5
27308 echo "$as_me: WARNING: ext/hash_map:     check for missing prerequisite headers?" >&2;}
27309     { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
27310 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
27311     { echo "$as_me:$LINENO: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&5
27312 echo "$as_me: WARNING: ext/hash_map:     section \"Present But Cannot Be Compiled\"" >&2;}
27313     { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
27314 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
27315     { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
27316 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
27317     ( cat <<\_ASBOX
27318 ## ----------------------------------------- ##
27319 ## Report this to wx-dev@lists.wxwidgets.org ##
27320 ## ----------------------------------------- ##
27321 _ASBOX
27322      ) | sed "s/^/$as_me: WARNING:     /" >&2
27323     ;;
27324 esac
27325 { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27326 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
27327 if test "${ac_cv_header_ext_hash_map+set}" = set; then
27328   echo $ECHO_N "(cached) $ECHO_C" >&6
27329 else
27330   ac_cv_header_ext_hash_map=$ac_header_preproc
27331 fi
27332 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27333 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
27334
27335 fi
27336 if test $ac_cv_header_ext_hash_map = yes; then
27337   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
27338 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
27339 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
27340   echo $ECHO_N "(cached) $ECHO_C" >&6
27341 else
27342   cat >conftest.$ac_ext <<_ACEOF
27343 /* confdefs.h.  */
27344 _ACEOF
27345 cat confdefs.h >>conftest.$ac_ext
27346 cat >>conftest.$ac_ext <<_ACEOF
27347 /* end confdefs.h.  */
27348 #include <ext/hash_map>
27349                 #include <ext/hash_set>
27350 int
27351 main ()
27352 {
27353 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
27354                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
27355   ;
27356   return 0;
27357 }
27358 _ACEOF
27359 rm -f conftest.$ac_objext
27360 if { (ac_try="$ac_compile"
27361 case "(($ac_try" in
27362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363   *) ac_try_echo=$ac_try;;
27364 esac
27365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366   (eval "$ac_compile") 2>conftest.er1
27367   ac_status=$?
27368   grep -v '^ *+' conftest.er1 >conftest.err
27369   rm -f conftest.er1
27370   cat conftest.err >&5
27371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372   (exit $ac_status); } &&
27373          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
27374   { (case "(($ac_try" in
27375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376   *) ac_try_echo=$ac_try;;
27377 esac
27378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379   (eval "$ac_try") 2>&5
27380   ac_status=$?
27381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27382   (exit $ac_status); }; } &&
27383          { ac_try='test -s conftest.$ac_objext'
27384   { (case "(($ac_try" in
27385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386   *) ac_try_echo=$ac_try;;
27387 esac
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389   (eval "$ac_try") 2>&5
27390   ac_status=$?
27391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392   (exit $ac_status); }; }; then
27393   wx_cv_class_gnuhashmapset=yes
27394 else
27395   echo "$as_me: failed program was:" >&5
27396 sed 's/^/| /' conftest.$ac_ext >&5
27397
27398         wx_cv_class_gnuhashmapset=no
27399 fi
27400
27401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27402
27403
27404 fi
27405 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
27406 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
27407
27408 fi
27409
27410
27411
27412     if test "$wx_cv_class_gnuhashmapset" = yes; then
27413          cat >>confdefs.h <<\_ACEOF
27414 #define HAVE_EXT_HASH_MAP 1
27415 _ACEOF
27416
27417          cat >>confdefs.h <<\_ACEOF
27418 #define HAVE_GNU_CXX_HASH_MAP 1
27419 _ACEOF
27420
27421     fi
27422 fi
27423
27424 ac_ext=c
27425 ac_cpp='$CPP $CPPFLAGS'
27426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27429
27430
27431
27432 SEARCH_INCLUDE="\
27433     /usr/local/include        \
27434                               \
27435     /usr/Motif-2.1/include    \
27436     /usr/Motif-1.2/include    \
27437     /usr/include/Motif1.2     \
27438                               \
27439     /usr/dt/include           \
27440     /usr/openwin/include      \
27441                               \
27442     /usr/include/Xm           \
27443                               \
27444     /usr/X11R6/include        \
27445     /usr/X11R6.4/include      \
27446     /usr/X11R5/include        \
27447     /usr/X11R4/include        \
27448                               \
27449     /usr/include/X11R6        \
27450     /usr/include/X11R5        \
27451     /usr/include/X11R4        \
27452                               \
27453     /usr/local/X11R6/include  \
27454     /usr/local/X11R5/include  \
27455     /usr/local/X11R4/include  \
27456                               \
27457     /usr/local/include/X11R6  \
27458     /usr/local/include/X11R5  \
27459     /usr/local/include/X11R4  \
27460                               \
27461     /usr/X11/include          \
27462     /usr/include/X11          \
27463     /usr/local/X11/include    \
27464     /usr/local/include/X11    \
27465                               \
27466     /usr/XFree86/include/X11  \
27467     /usr/pkg/include          \
27468                               \
27469     /usr/openwin/share/include"
27470
27471 { echo "$as_me:$LINENO: checking for libraries directory" >&5
27472 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
27473
27474 case "${host}" in
27475     *-*-irix6* )
27476         if test "${wx_cv_std_libpath+set}" = set; then
27477   echo $ECHO_N "(cached) $ECHO_C" >&6
27478 else
27479
27480                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27481                     for e in a so sl dylib dll.a; do
27482                         libc="$d/libc.$e"
27483                         if test -f $libc; then
27484                             save_LIBS="$LIBS"
27485                             LIBS="$libc"
27486                             cat >conftest.$ac_ext <<_ACEOF
27487 int main() { return 0; }
27488 _ACEOF
27489 rm -f conftest.$ac_objext conftest$ac_exeext
27490 if { (ac_try="$ac_link"
27491 case "(($ac_try" in
27492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27493   *) ac_try_echo=$ac_try;;
27494 esac
27495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27496   (eval "$ac_link") 2>conftest.er1
27497   ac_status=$?
27498   grep -v '^ *+' conftest.er1 >conftest.err
27499   rm -f conftest.er1
27500   cat conftest.err >&5
27501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502   (exit $ac_status); } &&
27503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27504   { (case "(($ac_try" in
27505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27506   *) ac_try_echo=$ac_try;;
27507 esac
27508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27509   (eval "$ac_try") 2>&5
27510   ac_status=$?
27511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512   (exit $ac_status); }; } &&
27513          { ac_try='test -s conftest$ac_exeext'
27514   { (case "(($ac_try" in
27515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516   *) ac_try_echo=$ac_try;;
27517 esac
27518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27519   (eval "$ac_try") 2>&5
27520   ac_status=$?
27521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522   (exit $ac_status); }; }; then
27523   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27524 else
27525   echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27527
27528
27529 fi
27530
27531 rm -f core conftest.err conftest.$ac_objext \
27532       conftest$ac_exeext conftest.$ac_ext
27533                             LIBS="$save_LIBS"
27534                             if test "x$wx_cv_std_libpath" != "x"; then
27535                                 break 2
27536                             fi
27537                         fi
27538                     done
27539                 done
27540                 if test "x$wx_cv_std_libpath" = "x"; then
27541                     wx_cv_std_libpath="lib"
27542                 fi
27543
27544
27545 fi
27546
27547         ;;
27548
27549     *-*-solaris2* )
27550                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27551             wx_cv_std_libpath="lib/64"
27552         else
27553             wx_cv_std_libpath="lib"
27554         fi
27555         ;;
27556
27557     *-*-linux* )
27558                 if test "$ac_cv_sizeof_void_p" = 8 -a \
27559                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27560             wx_cv_std_libpath="lib64"
27561         else
27562             wx_cv_std_libpath="lib"
27563         fi
27564         ;;
27565
27566     *)
27567         wx_cv_std_libpath="lib";
27568         ;;
27569 esac
27570
27571 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27572 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
27573
27574 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
27575
27576 if test "$build" != "$host" -a "$GCC" = yes; then
27577                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27578         cross_root=`dirname $cross_root`
27579         cross_root=`dirname $cross_root`
27580
27581                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27582         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27583         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27584
27585                 if test -z "$PKG_CONFIG_PATH"; then
27586             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27587             export PKG_CONFIG_PATH
27588         fi
27589
27590                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27591
27592 ac_find_includes=
27593 for ac_dir in $SEARCH_INCLUDE /usr/include;
27594   do
27595     if test -f "$ac_dir/X11/Intrinsic.h"; then
27596       ac_find_includes=$ac_dir
27597       break
27598     fi
27599   done
27600
27601             x_includes=$ac_find_includes
27602         fi
27603         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27604
27605   ac_find_libraries=
27606   for ac_dir in $SEARCH_LIB;
27607   do
27608     for ac_extension in a so sl dylib dll.a; do
27609       if test -f "$ac_dir/libXt.$ac_extension"; then
27610         ac_find_libraries=$ac_dir
27611         break 2
27612       fi
27613     done
27614   done
27615
27616             x_libraries=$ac_find_libraries
27617         fi
27618     fi
27619 fi
27620
27621
27622 cat >confcache <<\_ACEOF
27623 # This file is a shell script that caches the results of configure
27624 # tests run on this system so they can be shared between configure
27625 # scripts and configure runs, see configure's option --config-cache.
27626 # It is not useful on other systems.  If it contains results you don't
27627 # want to keep, you may remove or edit it.
27628 #
27629 # config.status only pays attention to the cache file if you give it
27630 # the --recheck option to rerun configure.
27631 #
27632 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27633 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27634 # following values.
27635
27636 _ACEOF
27637
27638 # The following way of writing the cache mishandles newlines in values,
27639 # but we know of no workaround that is simple, portable, and efficient.
27640 # So, we kill variables containing newlines.
27641 # Ultrix sh set writes to stderr and can't be redirected directly,
27642 # and sets the high bit in the cache file unless we assign to the vars.
27643 (
27644   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27645     eval ac_val=\$$ac_var
27646     case $ac_val in #(
27647     *${as_nl}*)
27648       case $ac_var in #(
27649       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27650 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27651       esac
27652       case $ac_var in #(
27653       _ | IFS | as_nl) ;; #(
27654       *) $as_unset $ac_var ;;
27655       esac ;;
27656     esac
27657   done
27658
27659   (set) 2>&1 |
27660     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27661     *${as_nl}ac_space=\ *)
27662       # `set' does not quote correctly, so add quotes (double-quote
27663       # substitution turns \\\\ into \\, and sed turns \\ into \).
27664       sed -n \
27665         "s/'/'\\\\''/g;
27666           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27667       ;; #(
27668     *)
27669       # `set' quotes correctly as required by POSIX, so do not add quotes.
27670       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27671       ;;
27672     esac |
27673     sort
27674 ) |
27675   sed '
27676      /^ac_cv_env_/b end
27677      t clear
27678      :clear
27679      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27680      t end
27681      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27682      :end' >>confcache
27683 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27684   if test -w "$cache_file"; then
27685     test "x$cache_file" != "x/dev/null" &&
27686       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27687 echo "$as_me: updating cache $cache_file" >&6;}
27688     cat confcache >$cache_file
27689   else
27690     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27691 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27692   fi
27693 fi
27694 rm -f confcache
27695
27696 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27697     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27698 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27699 if test "${wx_cv_lib_glibc21+set}" = set; then
27700   echo $ECHO_N "(cached) $ECHO_C" >&6
27701 else
27702
27703         cat >conftest.$ac_ext <<_ACEOF
27704 /* confdefs.h.  */
27705 _ACEOF
27706 cat confdefs.h >>conftest.$ac_ext
27707 cat >>conftest.$ac_ext <<_ACEOF
27708 /* end confdefs.h.  */
27709 #include <features.h>
27710 int
27711 main ()
27712 {
27713
27714                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27715                 not glibc 2.1
27716                 #endif
27717
27718   ;
27719   return 0;
27720 }
27721 _ACEOF
27722 rm -f conftest.$ac_objext
27723 if { (ac_try="$ac_compile"
27724 case "(($ac_try" in
27725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726   *) ac_try_echo=$ac_try;;
27727 esac
27728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27729   (eval "$ac_compile") 2>conftest.er1
27730   ac_status=$?
27731   grep -v '^ *+' conftest.er1 >conftest.err
27732   rm -f conftest.er1
27733   cat conftest.err >&5
27734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735   (exit $ac_status); } &&
27736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27737   { (case "(($ac_try" in
27738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27739   *) ac_try_echo=$ac_try;;
27740 esac
27741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27742   (eval "$ac_try") 2>&5
27743   ac_status=$?
27744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745   (exit $ac_status); }; } &&
27746          { ac_try='test -s conftest.$ac_objext'
27747   { (case "(($ac_try" in
27748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27749   *) ac_try_echo=$ac_try;;
27750 esac
27751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27752   (eval "$ac_try") 2>&5
27753   ac_status=$?
27754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27755   (exit $ac_status); }; }; then
27756
27757                 wx_cv_lib_glibc21=yes
27758
27759 else
27760   echo "$as_me: failed program was:" >&5
27761 sed 's/^/| /' conftest.$ac_ext >&5
27762
27763
27764                 wx_cv_lib_glibc21=no
27765
27766
27767 fi
27768
27769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27770
27771 fi
27772 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27773 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27774     if test "$wx_cv_lib_glibc21" = "yes"; then
27775         cat >>confdefs.h <<\_ACEOF
27776 #define wxHAVE_GLIBC2 1
27777 _ACEOF
27778
27779     fi
27780 fi
27781
27782 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27783     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27784         cat >>confdefs.h <<\_ACEOF
27785 #define _GNU_SOURCE 1
27786 _ACEOF
27787
27788     fi
27789 fi
27790
27791 have_cos=0
27792 have_floor=0
27793
27794 for ac_func in cos
27795 do
27796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27800   echo $ECHO_N "(cached) $ECHO_C" >&6
27801 else
27802   cat >conftest.$ac_ext <<_ACEOF
27803 /* confdefs.h.  */
27804 _ACEOF
27805 cat confdefs.h >>conftest.$ac_ext
27806 cat >>conftest.$ac_ext <<_ACEOF
27807 /* end confdefs.h.  */
27808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27810 #define $ac_func innocuous_$ac_func
27811
27812 /* System header to define __stub macros and hopefully few prototypes,
27813     which can conflict with char $ac_func (); below.
27814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27815     <limits.h> exists even on freestanding compilers.  */
27816
27817 #ifdef __STDC__
27818 # include <limits.h>
27819 #else
27820 # include <assert.h>
27821 #endif
27822
27823 #undef $ac_func
27824
27825 /* Override any GCC internal prototype to avoid an error.
27826    Use char because int might match the return type of a GCC
27827    builtin and then its argument prototype would still apply.  */
27828 #ifdef __cplusplus
27829 extern "C"
27830 #endif
27831 char $ac_func ();
27832 /* The GNU C library defines this for functions which it implements
27833     to always fail with ENOSYS.  Some functions are actually named
27834     something starting with __ and the normal name is an alias.  */
27835 #if defined __stub_$ac_func || defined __stub___$ac_func
27836 choke me
27837 #endif
27838
27839 int
27840 main ()
27841 {
27842 return $ac_func ();
27843   ;
27844   return 0;
27845 }
27846 _ACEOF
27847 rm -f conftest.$ac_objext conftest$ac_exeext
27848 if { (ac_try="$ac_link"
27849 case "(($ac_try" in
27850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27851   *) ac_try_echo=$ac_try;;
27852 esac
27853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27854   (eval "$ac_link") 2>conftest.er1
27855   ac_status=$?
27856   grep -v '^ *+' conftest.er1 >conftest.err
27857   rm -f conftest.er1
27858   cat conftest.err >&5
27859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860   (exit $ac_status); } &&
27861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27862   { (case "(($ac_try" in
27863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27864   *) ac_try_echo=$ac_try;;
27865 esac
27866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27867   (eval "$ac_try") 2>&5
27868   ac_status=$?
27869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870   (exit $ac_status); }; } &&
27871          { ac_try='test -s conftest$ac_exeext'
27872   { (case "(($ac_try" in
27873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874   *) ac_try_echo=$ac_try;;
27875 esac
27876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877   (eval "$ac_try") 2>&5
27878   ac_status=$?
27879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880   (exit $ac_status); }; }; then
27881   eval "$as_ac_var=yes"
27882 else
27883   echo "$as_me: failed program was:" >&5
27884 sed 's/^/| /' conftest.$ac_ext >&5
27885
27886         eval "$as_ac_var=no"
27887 fi
27888
27889 rm -f core conftest.err conftest.$ac_objext \
27890       conftest$ac_exeext conftest.$ac_ext
27891 fi
27892 ac_res=`eval echo '${'$as_ac_var'}'`
27893                { echo "$as_me:$LINENO: result: $ac_res" >&5
27894 echo "${ECHO_T}$ac_res" >&6; }
27895 if test `eval echo '${'$as_ac_var'}'` = yes; then
27896   cat >>confdefs.h <<_ACEOF
27897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27898 _ACEOF
27899  have_cos=1
27900 fi
27901 done
27902
27903
27904 for ac_func in floor
27905 do
27906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27910   echo $ECHO_N "(cached) $ECHO_C" >&6
27911 else
27912   cat >conftest.$ac_ext <<_ACEOF
27913 /* confdefs.h.  */
27914 _ACEOF
27915 cat confdefs.h >>conftest.$ac_ext
27916 cat >>conftest.$ac_ext <<_ACEOF
27917 /* end confdefs.h.  */
27918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27920 #define $ac_func innocuous_$ac_func
27921
27922 /* System header to define __stub macros and hopefully few prototypes,
27923     which can conflict with char $ac_func (); below.
27924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27925     <limits.h> exists even on freestanding compilers.  */
27926
27927 #ifdef __STDC__
27928 # include <limits.h>
27929 #else
27930 # include <assert.h>
27931 #endif
27932
27933 #undef $ac_func
27934
27935 /* Override any GCC internal prototype to avoid an error.
27936    Use char because int might match the return type of a GCC
27937    builtin and then its argument prototype would still apply.  */
27938 #ifdef __cplusplus
27939 extern "C"
27940 #endif
27941 char $ac_func ();
27942 /* The GNU C library defines this for functions which it implements
27943     to always fail with ENOSYS.  Some functions are actually named
27944     something starting with __ and the normal name is an alias.  */
27945 #if defined __stub_$ac_func || defined __stub___$ac_func
27946 choke me
27947 #endif
27948
27949 int
27950 main ()
27951 {
27952 return $ac_func ();
27953   ;
27954   return 0;
27955 }
27956 _ACEOF
27957 rm -f conftest.$ac_objext conftest$ac_exeext
27958 if { (ac_try="$ac_link"
27959 case "(($ac_try" in
27960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961   *) ac_try_echo=$ac_try;;
27962 esac
27963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964   (eval "$ac_link") 2>conftest.er1
27965   ac_status=$?
27966   grep -v '^ *+' conftest.er1 >conftest.err
27967   rm -f conftest.er1
27968   cat conftest.err >&5
27969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970   (exit $ac_status); } &&
27971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27972   { (case "(($ac_try" in
27973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27974   *) ac_try_echo=$ac_try;;
27975 esac
27976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27977   (eval "$ac_try") 2>&5
27978   ac_status=$?
27979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980   (exit $ac_status); }; } &&
27981          { ac_try='test -s conftest$ac_exeext'
27982   { (case "(($ac_try" in
27983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984   *) ac_try_echo=$ac_try;;
27985 esac
27986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987   (eval "$ac_try") 2>&5
27988   ac_status=$?
27989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990   (exit $ac_status); }; }; then
27991   eval "$as_ac_var=yes"
27992 else
27993   echo "$as_me: failed program was:" >&5
27994 sed 's/^/| /' conftest.$ac_ext >&5
27995
27996         eval "$as_ac_var=no"
27997 fi
27998
27999 rm -f core conftest.err conftest.$ac_objext \
28000       conftest$ac_exeext conftest.$ac_ext
28001 fi
28002 ac_res=`eval echo '${'$as_ac_var'}'`
28003                { echo "$as_me:$LINENO: result: $ac_res" >&5
28004 echo "${ECHO_T}$ac_res" >&6; }
28005 if test `eval echo '${'$as_ac_var'}'` = yes; then
28006   cat >>confdefs.h <<_ACEOF
28007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28008 _ACEOF
28009  have_floor=1
28010 fi
28011 done
28012
28013 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
28014 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
28015 if test "$have_cos" = 1 -a "$have_floor" = 1; then
28016     { echo "$as_me:$LINENO: result: yes" >&5
28017 echo "${ECHO_T}yes" >&6; }
28018 else
28019     { echo "$as_me:$LINENO: result: no" >&5
28020 echo "${ECHO_T}no" >&6; }
28021     LIBS="$LIBS -lm"
28022     # use different functions to avoid configure caching
28023     have_sin=0
28024     have_ceil=0
28025
28026 for ac_func in sin
28027 do
28028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28032   echo $ECHO_N "(cached) $ECHO_C" >&6
28033 else
28034   cat >conftest.$ac_ext <<_ACEOF
28035 /* confdefs.h.  */
28036 _ACEOF
28037 cat confdefs.h >>conftest.$ac_ext
28038 cat >>conftest.$ac_ext <<_ACEOF
28039 /* end confdefs.h.  */
28040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28042 #define $ac_func innocuous_$ac_func
28043
28044 /* System header to define __stub macros and hopefully few prototypes,
28045     which can conflict with char $ac_func (); below.
28046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28047     <limits.h> exists even on freestanding compilers.  */
28048
28049 #ifdef __STDC__
28050 # include <limits.h>
28051 #else
28052 # include <assert.h>
28053 #endif
28054
28055 #undef $ac_func
28056
28057 /* Override any GCC internal prototype to avoid an error.
28058    Use char because int might match the return type of a GCC
28059    builtin and then its argument prototype would still apply.  */
28060 #ifdef __cplusplus
28061 extern "C"
28062 #endif
28063 char $ac_func ();
28064 /* The GNU C library defines this for functions which it implements
28065     to always fail with ENOSYS.  Some functions are actually named
28066     something starting with __ and the normal name is an alias.  */
28067 #if defined __stub_$ac_func || defined __stub___$ac_func
28068 choke me
28069 #endif
28070
28071 int
28072 main ()
28073 {
28074 return $ac_func ();
28075   ;
28076   return 0;
28077 }
28078 _ACEOF
28079 rm -f conftest.$ac_objext conftest$ac_exeext
28080 if { (ac_try="$ac_link"
28081 case "(($ac_try" in
28082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28083   *) ac_try_echo=$ac_try;;
28084 esac
28085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28086   (eval "$ac_link") 2>conftest.er1
28087   ac_status=$?
28088   grep -v '^ *+' conftest.er1 >conftest.err
28089   rm -f conftest.er1
28090   cat conftest.err >&5
28091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092   (exit $ac_status); } &&
28093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28094   { (case "(($ac_try" in
28095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096   *) ac_try_echo=$ac_try;;
28097 esac
28098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28099   (eval "$ac_try") 2>&5
28100   ac_status=$?
28101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102   (exit $ac_status); }; } &&
28103          { ac_try='test -s conftest$ac_exeext'
28104   { (case "(($ac_try" in
28105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106   *) ac_try_echo=$ac_try;;
28107 esac
28108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109   (eval "$ac_try") 2>&5
28110   ac_status=$?
28111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112   (exit $ac_status); }; }; then
28113   eval "$as_ac_var=yes"
28114 else
28115   echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28117
28118         eval "$as_ac_var=no"
28119 fi
28120
28121 rm -f core conftest.err conftest.$ac_objext \
28122       conftest$ac_exeext conftest.$ac_ext
28123 fi
28124 ac_res=`eval echo '${'$as_ac_var'}'`
28125                { echo "$as_me:$LINENO: result: $ac_res" >&5
28126 echo "${ECHO_T}$ac_res" >&6; }
28127 if test `eval echo '${'$as_ac_var'}'` = yes; then
28128   cat >>confdefs.h <<_ACEOF
28129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28130 _ACEOF
28131  have_sin=1
28132 fi
28133 done
28134
28135
28136 for ac_func in ceil
28137 do
28138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28142   echo $ECHO_N "(cached) $ECHO_C" >&6
28143 else
28144   cat >conftest.$ac_ext <<_ACEOF
28145 /* confdefs.h.  */
28146 _ACEOF
28147 cat confdefs.h >>conftest.$ac_ext
28148 cat >>conftest.$ac_ext <<_ACEOF
28149 /* end confdefs.h.  */
28150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28152 #define $ac_func innocuous_$ac_func
28153
28154 /* System header to define __stub macros and hopefully few prototypes,
28155     which can conflict with char $ac_func (); below.
28156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28157     <limits.h> exists even on freestanding compilers.  */
28158
28159 #ifdef __STDC__
28160 # include <limits.h>
28161 #else
28162 # include <assert.h>
28163 #endif
28164
28165 #undef $ac_func
28166
28167 /* Override any GCC internal prototype to avoid an error.
28168    Use char because int might match the return type of a GCC
28169    builtin and then its argument prototype would still apply.  */
28170 #ifdef __cplusplus
28171 extern "C"
28172 #endif
28173 char $ac_func ();
28174 /* The GNU C library defines this for functions which it implements
28175     to always fail with ENOSYS.  Some functions are actually named
28176     something starting with __ and the normal name is an alias.  */
28177 #if defined __stub_$ac_func || defined __stub___$ac_func
28178 choke me
28179 #endif
28180
28181 int
28182 main ()
28183 {
28184 return $ac_func ();
28185   ;
28186   return 0;
28187 }
28188 _ACEOF
28189 rm -f conftest.$ac_objext conftest$ac_exeext
28190 if { (ac_try="$ac_link"
28191 case "(($ac_try" in
28192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193   *) ac_try_echo=$ac_try;;
28194 esac
28195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28196   (eval "$ac_link") 2>conftest.er1
28197   ac_status=$?
28198   grep -v '^ *+' conftest.er1 >conftest.err
28199   rm -f conftest.er1
28200   cat conftest.err >&5
28201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202   (exit $ac_status); } &&
28203          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28204   { (case "(($ac_try" in
28205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28206   *) ac_try_echo=$ac_try;;
28207 esac
28208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28209   (eval "$ac_try") 2>&5
28210   ac_status=$?
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); }; } &&
28213          { ac_try='test -s conftest$ac_exeext'
28214   { (case "(($ac_try" in
28215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216   *) ac_try_echo=$ac_try;;
28217 esac
28218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219   (eval "$ac_try") 2>&5
28220   ac_status=$?
28221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222   (exit $ac_status); }; }; then
28223   eval "$as_ac_var=yes"
28224 else
28225   echo "$as_me: failed program was:" >&5
28226 sed 's/^/| /' conftest.$ac_ext >&5
28227
28228         eval "$as_ac_var=no"
28229 fi
28230
28231 rm -f core conftest.err conftest.$ac_objext \
28232       conftest$ac_exeext conftest.$ac_ext
28233 fi
28234 ac_res=`eval echo '${'$as_ac_var'}'`
28235                { echo "$as_me:$LINENO: result: $ac_res" >&5
28236 echo "${ECHO_T}$ac_res" >&6; }
28237 if test `eval echo '${'$as_ac_var'}'` = yes; then
28238   cat >>confdefs.h <<_ACEOF
28239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28240 _ACEOF
28241  have_ceil=1
28242 fi
28243 done
28244
28245     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
28246 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
28247     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28248         { echo "$as_me:$LINENO: result: yes" >&5
28249 echo "${ECHO_T}yes" >&6; }
28250     else
28251         { echo "$as_me:$LINENO: result: no" >&5
28252 echo "${ECHO_T}no" >&6; }
28253         # not sure we should warn the user, crash, etc.
28254     fi
28255 fi
28256
28257 ac_ext=cpp
28258 ac_cpp='$CXXCPP $CPPFLAGS'
28259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28262
28263 if test "wxUSE_UNICODE" = "yes"; then
28264
28265   for wx_func in wcstoull
28266   do
28267     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28268 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28269 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28270   echo $ECHO_N "(cached) $ECHO_C" >&6
28271 else
28272
28273         cat >conftest.$ac_ext <<_ACEOF
28274
28275             /* confdefs.h.  */
28276 _ACEOF
28277 cat confdefs.h >>conftest.$ac_ext
28278 cat >>conftest.$ac_ext <<_ACEOF
28279 /* end confdefs.h.  */
28280
28281
28282                 $ac_includes_default
28283
28284 int
28285 main ()
28286 {
28287
28288                 #ifndef $wx_func
28289                   &$wx_func;
28290                 #endif
28291
28292
28293   ;
28294   return 0;
28295 }
28296
28297 _ACEOF
28298 rm -f conftest.$ac_objext conftest$ac_exeext
28299 if { (ac_try="$ac_link"
28300 case "(($ac_try" in
28301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28302   *) ac_try_echo=$ac_try;;
28303 esac
28304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28305   (eval "$ac_link") 2>conftest.er1
28306   ac_status=$?
28307   grep -v '^ *+' conftest.er1 >conftest.err
28308   rm -f conftest.er1
28309   cat conftest.err >&5
28310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311   (exit $ac_status); } &&
28312          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28313   { (case "(($ac_try" in
28314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28315   *) ac_try_echo=$ac_try;;
28316 esac
28317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28318   (eval "$ac_try") 2>&5
28319   ac_status=$?
28320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321   (exit $ac_status); }; } &&
28322          { ac_try='test -s conftest$ac_exeext'
28323   { (case "(($ac_try" in
28324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28325   *) ac_try_echo=$ac_try;;
28326 esac
28327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28328   (eval "$ac_try") 2>&5
28329   ac_status=$?
28330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331   (exit $ac_status); }; }; then
28332   eval wx_cv_func_$wx_func=yes
28333 else
28334   echo "$as_me: failed program was:" >&5
28335 sed 's/^/| /' conftest.$ac_ext >&5
28336
28337         eval wx_cv_func_$wx_func=no
28338 fi
28339
28340 rm -f core conftest.err conftest.$ac_objext \
28341       conftest$ac_exeext conftest.$ac_ext
28342
28343 fi
28344 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28345                { echo "$as_me:$LINENO: result: $ac_res" >&5
28346 echo "${ECHO_T}$ac_res" >&6; }
28347
28348     if eval test \$wx_cv_func_$wx_func = yes
28349     then
28350       cat >>confdefs.h <<_ACEOF
28351 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28352 _ACEOF
28353
28354
28355     else
28356       :
28357
28358     fi
28359   done
28360
28361 else
28362
28363   for wx_func in strtoull
28364   do
28365     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28366 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28367 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28368   echo $ECHO_N "(cached) $ECHO_C" >&6
28369 else
28370
28371         cat >conftest.$ac_ext <<_ACEOF
28372
28373             /* confdefs.h.  */
28374 _ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h.  */
28378
28379
28380                 $ac_includes_default
28381
28382 int
28383 main ()
28384 {
28385
28386                 #ifndef $wx_func
28387                   &$wx_func;
28388                 #endif
28389
28390
28391   ;
28392   return 0;
28393 }
28394
28395 _ACEOF
28396 rm -f conftest.$ac_objext conftest$ac_exeext
28397 if { (ac_try="$ac_link"
28398 case "(($ac_try" in
28399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28400   *) ac_try_echo=$ac_try;;
28401 esac
28402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28403   (eval "$ac_link") 2>conftest.er1
28404   ac_status=$?
28405   grep -v '^ *+' conftest.er1 >conftest.err
28406   rm -f conftest.er1
28407   cat conftest.err >&5
28408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409   (exit $ac_status); } &&
28410          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28411   { (case "(($ac_try" in
28412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28413   *) ac_try_echo=$ac_try;;
28414 esac
28415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28416   (eval "$ac_try") 2>&5
28417   ac_status=$?
28418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419   (exit $ac_status); }; } &&
28420          { ac_try='test -s conftest$ac_exeext'
28421   { (case "(($ac_try" in
28422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423   *) ac_try_echo=$ac_try;;
28424 esac
28425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426   (eval "$ac_try") 2>&5
28427   ac_status=$?
28428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429   (exit $ac_status); }; }; then
28430   eval wx_cv_func_$wx_func=yes
28431 else
28432   echo "$as_me: failed program was:" >&5
28433 sed 's/^/| /' conftest.$ac_ext >&5
28434
28435         eval wx_cv_func_$wx_func=no
28436 fi
28437
28438 rm -f core conftest.err conftest.$ac_objext \
28439       conftest$ac_exeext conftest.$ac_ext
28440
28441 fi
28442 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28443                { echo "$as_me:$LINENO: result: $ac_res" >&5
28444 echo "${ECHO_T}$ac_res" >&6; }
28445
28446     if eval test \$wx_cv_func_$wx_func = yes
28447     then
28448       cat >>confdefs.h <<_ACEOF
28449 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28450 _ACEOF
28451
28452
28453     else
28454       :
28455
28456     fi
28457   done
28458
28459 fi
28460 ac_ext=c
28461 ac_cpp='$CPP $CPPFLAGS'
28462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28465
28466
28467
28468
28469 if test "$wxUSE_REGEX" != "no"; then
28470     cat >>confdefs.h <<\_ACEOF
28471 #define wxUSE_REGEX 1
28472 _ACEOF
28473
28474
28475     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28476         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
28477 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
28478         wxUSE_REGEX=builtin
28479     fi
28480
28481     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
28482                         if test "${ac_cv_header_regex_h+set}" = set; then
28483   { echo "$as_me:$LINENO: checking for regex.h" >&5
28484 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28485 if test "${ac_cv_header_regex_h+set}" = set; then
28486   echo $ECHO_N "(cached) $ECHO_C" >&6
28487 fi
28488 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28489 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28490 else
28491   # Is the header compilable?
28492 { echo "$as_me:$LINENO: checking regex.h usability" >&5
28493 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
28494 cat >conftest.$ac_ext <<_ACEOF
28495 /* confdefs.h.  */
28496 _ACEOF
28497 cat confdefs.h >>conftest.$ac_ext
28498 cat >>conftest.$ac_ext <<_ACEOF
28499 /* end confdefs.h.  */
28500 $ac_includes_default
28501 #include <regex.h>
28502 _ACEOF
28503 rm -f conftest.$ac_objext
28504 if { (ac_try="$ac_compile"
28505 case "(($ac_try" in
28506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28507   *) ac_try_echo=$ac_try;;
28508 esac
28509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28510   (eval "$ac_compile") 2>conftest.er1
28511   ac_status=$?
28512   grep -v '^ *+' conftest.er1 >conftest.err
28513   rm -f conftest.er1
28514   cat conftest.err >&5
28515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516   (exit $ac_status); } &&
28517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28518   { (case "(($ac_try" in
28519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28520   *) ac_try_echo=$ac_try;;
28521 esac
28522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28523   (eval "$ac_try") 2>&5
28524   ac_status=$?
28525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526   (exit $ac_status); }; } &&
28527          { ac_try='test -s conftest.$ac_objext'
28528   { (case "(($ac_try" in
28529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28530   *) ac_try_echo=$ac_try;;
28531 esac
28532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28533   (eval "$ac_try") 2>&5
28534   ac_status=$?
28535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536   (exit $ac_status); }; }; then
28537   ac_header_compiler=yes
28538 else
28539   echo "$as_me: failed program was:" >&5
28540 sed 's/^/| /' conftest.$ac_ext >&5
28541
28542         ac_header_compiler=no
28543 fi
28544
28545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28547 echo "${ECHO_T}$ac_header_compiler" >&6; }
28548
28549 # Is the header present?
28550 { echo "$as_me:$LINENO: checking regex.h presence" >&5
28551 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
28552 cat >conftest.$ac_ext <<_ACEOF
28553 /* confdefs.h.  */
28554 _ACEOF
28555 cat confdefs.h >>conftest.$ac_ext
28556 cat >>conftest.$ac_ext <<_ACEOF
28557 /* end confdefs.h.  */
28558 #include <regex.h>
28559 _ACEOF
28560 if { (ac_try="$ac_cpp conftest.$ac_ext"
28561 case "(($ac_try" in
28562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563   *) ac_try_echo=$ac_try;;
28564 esac
28565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28567   ac_status=$?
28568   grep -v '^ *+' conftest.er1 >conftest.err
28569   rm -f conftest.er1
28570   cat conftest.err >&5
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); } >/dev/null; then
28573   if test -s conftest.err; then
28574     ac_cpp_err=$ac_c_preproc_warn_flag
28575     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28576   else
28577     ac_cpp_err=
28578   fi
28579 else
28580   ac_cpp_err=yes
28581 fi
28582 if test -z "$ac_cpp_err"; then
28583   ac_header_preproc=yes
28584 else
28585   echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28587
28588   ac_header_preproc=no
28589 fi
28590
28591 rm -f conftest.err conftest.$ac_ext
28592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28593 echo "${ECHO_T}$ac_header_preproc" >&6; }
28594
28595 # So?  What about this header?
28596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28597   yes:no: )
28598     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
28599 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28600     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
28601 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
28602     ac_header_preproc=yes
28603     ;;
28604   no:yes:* )
28605     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
28606 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
28607     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
28608 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
28609     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
28610 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
28611     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
28612 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28613     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
28614 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
28615     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
28616 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
28617     ( cat <<\_ASBOX
28618 ## ----------------------------------------- ##
28619 ## Report this to wx-dev@lists.wxwidgets.org ##
28620 ## ----------------------------------------- ##
28621 _ASBOX
28622      ) | sed "s/^/$as_me: WARNING:     /" >&2
28623     ;;
28624 esac
28625 { echo "$as_me:$LINENO: checking for regex.h" >&5
28626 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28627 if test "${ac_cv_header_regex_h+set}" = set; then
28628   echo $ECHO_N "(cached) $ECHO_C" >&6
28629 else
28630   ac_cv_header_regex_h=$ac_header_preproc
28631 fi
28632 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28633 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28634
28635 fi
28636 if test $ac_cv_header_regex_h = yes; then
28637
28638
28639 for ac_func in regcomp re_search
28640 do
28641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28645   echo $ECHO_N "(cached) $ECHO_C" >&6
28646 else
28647   cat >conftest.$ac_ext <<_ACEOF
28648 /* confdefs.h.  */
28649 _ACEOF
28650 cat confdefs.h >>conftest.$ac_ext
28651 cat >>conftest.$ac_ext <<_ACEOF
28652 /* end confdefs.h.  */
28653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28655 #define $ac_func innocuous_$ac_func
28656
28657 /* System header to define __stub macros and hopefully few prototypes,
28658     which can conflict with char $ac_func (); below.
28659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28660     <limits.h> exists even on freestanding compilers.  */
28661
28662 #ifdef __STDC__
28663 # include <limits.h>
28664 #else
28665 # include <assert.h>
28666 #endif
28667
28668 #undef $ac_func
28669
28670 /* Override any GCC internal prototype to avoid an error.
28671    Use char because int might match the return type of a GCC
28672    builtin and then its argument prototype would still apply.  */
28673 #ifdef __cplusplus
28674 extern "C"
28675 #endif
28676 char $ac_func ();
28677 /* The GNU C library defines this for functions which it implements
28678     to always fail with ENOSYS.  Some functions are actually named
28679     something starting with __ and the normal name is an alias.  */
28680 #if defined __stub_$ac_func || defined __stub___$ac_func
28681 choke me
28682 #endif
28683
28684 int
28685 main ()
28686 {
28687 return $ac_func ();
28688   ;
28689   return 0;
28690 }
28691 _ACEOF
28692 rm -f conftest.$ac_objext conftest$ac_exeext
28693 if { (ac_try="$ac_link"
28694 case "(($ac_try" in
28695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28696   *) ac_try_echo=$ac_try;;
28697 esac
28698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28699   (eval "$ac_link") 2>conftest.er1
28700   ac_status=$?
28701   grep -v '^ *+' conftest.er1 >conftest.err
28702   rm -f conftest.er1
28703   cat conftest.err >&5
28704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705   (exit $ac_status); } &&
28706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28707   { (case "(($ac_try" in
28708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28709   *) ac_try_echo=$ac_try;;
28710 esac
28711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28712   (eval "$ac_try") 2>&5
28713   ac_status=$?
28714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715   (exit $ac_status); }; } &&
28716          { ac_try='test -s conftest$ac_exeext'
28717   { (case "(($ac_try" in
28718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28719   *) ac_try_echo=$ac_try;;
28720 esac
28721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28722   (eval "$ac_try") 2>&5
28723   ac_status=$?
28724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725   (exit $ac_status); }; }; then
28726   eval "$as_ac_var=yes"
28727 else
28728   echo "$as_me: failed program was:" >&5
28729 sed 's/^/| /' conftest.$ac_ext >&5
28730
28731         eval "$as_ac_var=no"
28732 fi
28733
28734 rm -f core conftest.err conftest.$ac_objext \
28735       conftest$ac_exeext conftest.$ac_ext
28736 fi
28737 ac_res=`eval echo '${'$as_ac_var'}'`
28738                { echo "$as_me:$LINENO: result: $ac_res" >&5
28739 echo "${ECHO_T}$ac_res" >&6; }
28740 if test `eval echo '${'$as_ac_var'}'` = yes; then
28741   cat >>confdefs.h <<_ACEOF
28742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28743 _ACEOF
28744
28745 fi
28746 done
28747
28748 fi
28749
28750
28751
28752         if test "x$ac_cv_func_regcomp" != "xyes"; then
28753             if test "$wxUSE_REGEX" = "sys" ; then
28754                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28755 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28756    { (exit 1); exit 1; }; }
28757             else
28758                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28759 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28760                 wxUSE_REGEX=builtin
28761             fi
28762         else
28763                         wxUSE_REGEX=sys
28764                         cat >>confdefs.h <<\_ACEOF
28765 #define WX_NO_REGEX_ADVANCED 1
28766 _ACEOF
28767
28768         fi
28769     fi
28770 fi
28771
28772
28773 ZLIB_LINK=
28774 if test "$wxUSE_ZLIB" != "no" ; then
28775     cat >>confdefs.h <<\_ACEOF
28776 #define wxUSE_ZLIB 1
28777 _ACEOF
28778
28779
28780     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28781                                                 if test "$USE_DARWIN" = 1; then
28782             system_zlib_h_ok="yes"
28783         else
28784                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28785 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28786 if test "${ac_cv_header_zlib_h+set}" = set; then
28787   echo $ECHO_N "(cached) $ECHO_C" >&6
28788 else
28789   if test "$cross_compiling" = yes; then
28790                       unset ac_cv_header_zlib_h
28791
28792 else
28793   cat >conftest.$ac_ext <<_ACEOF
28794 /* confdefs.h.  */
28795 _ACEOF
28796 cat confdefs.h >>conftest.$ac_ext
28797 cat >>conftest.$ac_ext <<_ACEOF
28798 /* end confdefs.h.  */
28799
28800                         #include <zlib.h>
28801                         #include <stdio.h>
28802
28803                         int main()
28804                         {
28805                             FILE *f=fopen("conftestval", "w");
28806                             if (!f) exit(1);
28807                             fprintf(f, "%s",
28808                                     ZLIB_VERSION[0] == '1' &&
28809                                     (ZLIB_VERSION[2] > '1' ||
28810                                     (ZLIB_VERSION[2] == '1' &&
28811                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28812                             exit(0);
28813                         }
28814
28815 _ACEOF
28816 rm -f conftest$ac_exeext
28817 if { (ac_try="$ac_link"
28818 case "(($ac_try" in
28819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28820   *) ac_try_echo=$ac_try;;
28821 esac
28822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28823   (eval "$ac_link") 2>&5
28824   ac_status=$?
28825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28827   { (case "(($ac_try" in
28828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28829   *) ac_try_echo=$ac_try;;
28830 esac
28831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28832   (eval "$ac_try") 2>&5
28833   ac_status=$?
28834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835   (exit $ac_status); }; }; then
28836   ac_cv_header_zlib_h=`cat conftestval`
28837 else
28838   echo "$as_me: program exited with status $ac_status" >&5
28839 echo "$as_me: failed program was:" >&5
28840 sed 's/^/| /' conftest.$ac_ext >&5
28841
28842 ( exit $ac_status )
28843 ac_cv_header_zlib_h=no
28844 fi
28845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28846 fi
28847
28848
28849
28850 fi
28851 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28852 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28853                                     if test "${ac_cv_header_zlib_h+set}" = set; then
28854   { echo "$as_me:$LINENO: checking for zlib.h" >&5
28855 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28856 if test "${ac_cv_header_zlib_h+set}" = set; then
28857   echo $ECHO_N "(cached) $ECHO_C" >&6
28858 fi
28859 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28860 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28861 else
28862   # Is the header compilable?
28863 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
28864 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
28865 cat >conftest.$ac_ext <<_ACEOF
28866 /* confdefs.h.  */
28867 _ACEOF
28868 cat confdefs.h >>conftest.$ac_ext
28869 cat >>conftest.$ac_ext <<_ACEOF
28870 /* end confdefs.h.  */
28871 $ac_includes_default
28872 #include <zlib.h>
28873 _ACEOF
28874 rm -f conftest.$ac_objext
28875 if { (ac_try="$ac_compile"
28876 case "(($ac_try" in
28877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28878   *) ac_try_echo=$ac_try;;
28879 esac
28880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28881   (eval "$ac_compile") 2>conftest.er1
28882   ac_status=$?
28883   grep -v '^ *+' conftest.er1 >conftest.err
28884   rm -f conftest.er1
28885   cat conftest.err >&5
28886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887   (exit $ac_status); } &&
28888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28889   { (case "(($ac_try" in
28890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28891   *) ac_try_echo=$ac_try;;
28892 esac
28893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28894   (eval "$ac_try") 2>&5
28895   ac_status=$?
28896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897   (exit $ac_status); }; } &&
28898          { ac_try='test -s conftest.$ac_objext'
28899   { (case "(($ac_try" in
28900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901   *) ac_try_echo=$ac_try;;
28902 esac
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904   (eval "$ac_try") 2>&5
28905   ac_status=$?
28906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); }; }; then
28908   ac_header_compiler=yes
28909 else
28910   echo "$as_me: failed program was:" >&5
28911 sed 's/^/| /' conftest.$ac_ext >&5
28912
28913         ac_header_compiler=no
28914 fi
28915
28916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28918 echo "${ECHO_T}$ac_header_compiler" >&6; }
28919
28920 # Is the header present?
28921 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
28922 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
28923 cat >conftest.$ac_ext <<_ACEOF
28924 /* confdefs.h.  */
28925 _ACEOF
28926 cat confdefs.h >>conftest.$ac_ext
28927 cat >>conftest.$ac_ext <<_ACEOF
28928 /* end confdefs.h.  */
28929 #include <zlib.h>
28930 _ACEOF
28931 if { (ac_try="$ac_cpp conftest.$ac_ext"
28932 case "(($ac_try" in
28933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28934   *) ac_try_echo=$ac_try;;
28935 esac
28936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28938   ac_status=$?
28939   grep -v '^ *+' conftest.er1 >conftest.err
28940   rm -f conftest.er1
28941   cat conftest.err >&5
28942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943   (exit $ac_status); } >/dev/null; then
28944   if test -s conftest.err; then
28945     ac_cpp_err=$ac_c_preproc_warn_flag
28946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28947   else
28948     ac_cpp_err=
28949   fi
28950 else
28951   ac_cpp_err=yes
28952 fi
28953 if test -z "$ac_cpp_err"; then
28954   ac_header_preproc=yes
28955 else
28956   echo "$as_me: failed program was:" >&5
28957 sed 's/^/| /' conftest.$ac_ext >&5
28958
28959   ac_header_preproc=no
28960 fi
28961
28962 rm -f conftest.err conftest.$ac_ext
28963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28964 echo "${ECHO_T}$ac_header_preproc" >&6; }
28965
28966 # So?  What about this header?
28967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28968   yes:no: )
28969     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
28970 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28971     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
28972 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
28973     ac_header_preproc=yes
28974     ;;
28975   no:yes:* )
28976     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
28977 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
28978     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
28979 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
28980     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
28981 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
28982     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
28983 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28984     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
28985 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
28986     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
28987 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
28988     ( cat <<\_ASBOX
28989 ## ----------------------------------------- ##
28990 ## Report this to wx-dev@lists.wxwidgets.org ##
28991 ## ----------------------------------------- ##
28992 _ASBOX
28993      ) | sed "s/^/$as_me: WARNING:     /" >&2
28994     ;;
28995 esac
28996 { echo "$as_me:$LINENO: checking for zlib.h" >&5
28997 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28998 if test "${ac_cv_header_zlib_h+set}" = set; then
28999   echo $ECHO_N "(cached) $ECHO_C" >&6
29000 else
29001   ac_cv_header_zlib_h=$ac_header_preproc
29002 fi
29003 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
29004 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
29005
29006 fi
29007
29008
29009
29010             system_zlib_h_ok=$ac_cv_header_zlib_h
29011         fi
29012
29013         if test "$system_zlib_h_ok" = "yes"; then
29014             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29015 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29016 if test "${ac_cv_lib_z_deflate+set}" = set; then
29017   echo $ECHO_N "(cached) $ECHO_C" >&6
29018 else
29019   ac_check_lib_save_LIBS=$LIBS
29020 LIBS="-lz  $LIBS"
29021 cat >conftest.$ac_ext <<_ACEOF
29022 /* confdefs.h.  */
29023 _ACEOF
29024 cat confdefs.h >>conftest.$ac_ext
29025 cat >>conftest.$ac_ext <<_ACEOF
29026 /* end confdefs.h.  */
29027
29028 /* Override any GCC internal prototype to avoid an error.
29029    Use char because int might match the return type of a GCC
29030    builtin and then its argument prototype would still apply.  */
29031 #ifdef __cplusplus
29032 extern "C"
29033 #endif
29034 char deflate ();
29035 int
29036 main ()
29037 {
29038 return deflate ();
29039   ;
29040   return 0;
29041 }
29042 _ACEOF
29043 rm -f conftest.$ac_objext conftest$ac_exeext
29044 if { (ac_try="$ac_link"
29045 case "(($ac_try" in
29046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29047   *) ac_try_echo=$ac_try;;
29048 esac
29049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29050   (eval "$ac_link") 2>conftest.er1
29051   ac_status=$?
29052   grep -v '^ *+' conftest.er1 >conftest.err
29053   rm -f conftest.er1
29054   cat conftest.err >&5
29055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29056   (exit $ac_status); } &&
29057          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29058   { (case "(($ac_try" in
29059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29060   *) ac_try_echo=$ac_try;;
29061 esac
29062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29063   (eval "$ac_try") 2>&5
29064   ac_status=$?
29065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29066   (exit $ac_status); }; } &&
29067          { ac_try='test -s conftest$ac_exeext'
29068   { (case "(($ac_try" in
29069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070   *) ac_try_echo=$ac_try;;
29071 esac
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073   (eval "$ac_try") 2>&5
29074   ac_status=$?
29075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076   (exit $ac_status); }; }; then
29077   ac_cv_lib_z_deflate=yes
29078 else
29079   echo "$as_me: failed program was:" >&5
29080 sed 's/^/| /' conftest.$ac_ext >&5
29081
29082         ac_cv_lib_z_deflate=no
29083 fi
29084
29085 rm -f core conftest.err conftest.$ac_objext \
29086       conftest$ac_exeext conftest.$ac_ext
29087 LIBS=$ac_check_lib_save_LIBS
29088 fi
29089 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29090 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29091 if test $ac_cv_lib_z_deflate = yes; then
29092   ZLIB_LINK=" -lz"
29093 fi
29094
29095         fi
29096
29097         if test "x$ZLIB_LINK" = "x" ; then
29098             if test "$wxUSE_ZLIB" = "sys" ; then
29099                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
29100 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
29101    { (exit 1); exit 1; }; }
29102             else
29103                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
29104 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
29105                 wxUSE_ZLIB=builtin
29106             fi
29107         else
29108                         wxUSE_ZLIB=sys
29109         fi
29110     fi
29111 fi
29112
29113
29114 PNG_LINK=
29115 if test "$wxUSE_LIBPNG" != "no" ; then
29116     cat >>confdefs.h <<\_ACEOF
29117 #define wxUSE_LIBPNG 1
29118 _ACEOF
29119
29120
29121     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
29122         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
29123 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
29124         wxUSE_LIBPNG=sys
29125     fi
29126
29127                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
29128         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
29129 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
29130         wxUSE_LIBPNG=builtin
29131     fi
29132
29133     if test "$wxUSE_MGL" != 1 ; then
29134                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
29135                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
29136 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
29137 if test "${ac_cv_header_png_h+set}" = set; then
29138   echo $ECHO_N "(cached) $ECHO_C" >&6
29139 else
29140   if test "$cross_compiling" = yes; then
29141                       unset ac_cv_header_png_h
29142
29143 else
29144   cat >conftest.$ac_ext <<_ACEOF
29145 /* confdefs.h.  */
29146 _ACEOF
29147 cat confdefs.h >>conftest.$ac_ext
29148 cat >>conftest.$ac_ext <<_ACEOF
29149 /* end confdefs.h.  */
29150
29151                         #include <png.h>
29152                         #include <stdio.h>
29153
29154                         int main()
29155                         {
29156                             FILE *f=fopen("conftestval", "w");
29157                             if (!f) exit(1);
29158                             fprintf(f, "%s",
29159                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
29160                             exit(0);
29161                         }
29162
29163 _ACEOF
29164 rm -f conftest$ac_exeext
29165 if { (ac_try="$ac_link"
29166 case "(($ac_try" in
29167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29168   *) ac_try_echo=$ac_try;;
29169 esac
29170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29171   (eval "$ac_link") 2>&5
29172   ac_status=$?
29173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29175   { (case "(($ac_try" in
29176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29177   *) ac_try_echo=$ac_try;;
29178 esac
29179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29180   (eval "$ac_try") 2>&5
29181   ac_status=$?
29182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183   (exit $ac_status); }; }; then
29184   ac_cv_header_png_h=`cat conftestval`
29185 else
29186   echo "$as_me: program exited with status $ac_status" >&5
29187 echo "$as_me: failed program was:" >&5
29188 sed 's/^/| /' conftest.$ac_ext >&5
29189
29190 ( exit $ac_status )
29191 ac_cv_header_png_h=no
29192 fi
29193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29194 fi
29195
29196
29197
29198 fi
29199 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29200 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29201             if test "${ac_cv_header_png_h+set}" = set; then
29202   { echo "$as_me:$LINENO: checking for png.h" >&5
29203 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
29204 if test "${ac_cv_header_png_h+set}" = set; then
29205   echo $ECHO_N "(cached) $ECHO_C" >&6
29206 fi
29207 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29208 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29209 else
29210   # Is the header compilable?
29211 { echo "$as_me:$LINENO: checking png.h usability" >&5
29212 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
29213 cat >conftest.$ac_ext <<_ACEOF
29214 /* confdefs.h.  */
29215 _ACEOF
29216 cat confdefs.h >>conftest.$ac_ext
29217 cat >>conftest.$ac_ext <<_ACEOF
29218 /* end confdefs.h.  */
29219 $ac_includes_default
29220 #include <png.h>
29221 _ACEOF
29222 rm -f conftest.$ac_objext
29223 if { (ac_try="$ac_compile"
29224 case "(($ac_try" in
29225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29226   *) ac_try_echo=$ac_try;;
29227 esac
29228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29229   (eval "$ac_compile") 2>conftest.er1
29230   ac_status=$?
29231   grep -v '^ *+' conftest.er1 >conftest.err
29232   rm -f conftest.er1
29233   cat conftest.err >&5
29234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235   (exit $ac_status); } &&
29236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29237   { (case "(($ac_try" in
29238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239   *) ac_try_echo=$ac_try;;
29240 esac
29241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242   (eval "$ac_try") 2>&5
29243   ac_status=$?
29244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245   (exit $ac_status); }; } &&
29246          { ac_try='test -s conftest.$ac_objext'
29247   { (case "(($ac_try" in
29248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249   *) ac_try_echo=$ac_try;;
29250 esac
29251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252   (eval "$ac_try") 2>&5
29253   ac_status=$?
29254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255   (exit $ac_status); }; }; then
29256   ac_header_compiler=yes
29257 else
29258   echo "$as_me: failed program was:" >&5
29259 sed 's/^/| /' conftest.$ac_ext >&5
29260
29261         ac_header_compiler=no
29262 fi
29263
29264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29266 echo "${ECHO_T}$ac_header_compiler" >&6; }
29267
29268 # Is the header present?
29269 { echo "$as_me:$LINENO: checking png.h presence" >&5
29270 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
29271 cat >conftest.$ac_ext <<_ACEOF
29272 /* confdefs.h.  */
29273 _ACEOF
29274 cat confdefs.h >>conftest.$ac_ext
29275 cat >>conftest.$ac_ext <<_ACEOF
29276 /* end confdefs.h.  */
29277 #include <png.h>
29278 _ACEOF
29279 if { (ac_try="$ac_cpp conftest.$ac_ext"
29280 case "(($ac_try" in
29281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29282   *) ac_try_echo=$ac_try;;
29283 esac
29284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29286   ac_status=$?
29287   grep -v '^ *+' conftest.er1 >conftest.err
29288   rm -f conftest.er1
29289   cat conftest.err >&5
29290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291   (exit $ac_status); } >/dev/null; then
29292   if test -s conftest.err; then
29293     ac_cpp_err=$ac_c_preproc_warn_flag
29294     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29295   else
29296     ac_cpp_err=
29297   fi
29298 else
29299   ac_cpp_err=yes
29300 fi
29301 if test -z "$ac_cpp_err"; then
29302   ac_header_preproc=yes
29303 else
29304   echo "$as_me: failed program was:" >&5
29305 sed 's/^/| /' conftest.$ac_ext >&5
29306
29307   ac_header_preproc=no
29308 fi
29309
29310 rm -f conftest.err conftest.$ac_ext
29311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29312 echo "${ECHO_T}$ac_header_preproc" >&6; }
29313
29314 # So?  What about this header?
29315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29316   yes:no: )
29317     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
29318 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29319     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
29320 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
29321     ac_header_preproc=yes
29322     ;;
29323   no:yes:* )
29324     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
29325 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
29326     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
29327 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
29328     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
29329 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
29330     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
29331 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29332     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
29333 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
29334     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
29335 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
29336     ( cat <<\_ASBOX
29337 ## ----------------------------------------- ##
29338 ## Report this to wx-dev@lists.wxwidgets.org ##
29339 ## ----------------------------------------- ##
29340 _ASBOX
29341      ) | sed "s/^/$as_me: WARNING:     /" >&2
29342     ;;
29343 esac
29344 { echo "$as_me:$LINENO: checking for png.h" >&5
29345 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
29346 if test "${ac_cv_header_png_h+set}" = set; then
29347   echo $ECHO_N "(cached) $ECHO_C" >&6
29348 else
29349   ac_cv_header_png_h=$ac_header_preproc
29350 fi
29351 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29352 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29353
29354 fi
29355
29356
29357
29358             if test "$ac_cv_header_png_h" = "yes"; then
29359                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
29360 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
29361 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
29362   echo $ECHO_N "(cached) $ECHO_C" >&6
29363 else
29364   ac_check_lib_save_LIBS=$LIBS
29365 LIBS="-lpng -lz -lm $LIBS"
29366 cat >conftest.$ac_ext <<_ACEOF
29367 /* confdefs.h.  */
29368 _ACEOF
29369 cat confdefs.h >>conftest.$ac_ext
29370 cat >>conftest.$ac_ext <<_ACEOF
29371 /* end confdefs.h.  */
29372
29373 /* Override any GCC internal prototype to avoid an error.
29374    Use char because int might match the return type of a GCC
29375    builtin and then its argument prototype would still apply.  */
29376 #ifdef __cplusplus
29377 extern "C"
29378 #endif
29379 char png_check_sig ();
29380 int
29381 main ()
29382 {
29383 return png_check_sig ();
29384   ;
29385   return 0;
29386 }
29387 _ACEOF
29388 rm -f conftest.$ac_objext conftest$ac_exeext
29389 if { (ac_try="$ac_link"
29390 case "(($ac_try" in
29391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392   *) ac_try_echo=$ac_try;;
29393 esac
29394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29395   (eval "$ac_link") 2>conftest.er1
29396   ac_status=$?
29397   grep -v '^ *+' conftest.er1 >conftest.err
29398   rm -f conftest.er1
29399   cat conftest.err >&5
29400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401   (exit $ac_status); } &&
29402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29403   { (case "(($ac_try" in
29404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405   *) ac_try_echo=$ac_try;;
29406 esac
29407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29408   (eval "$ac_try") 2>&5
29409   ac_status=$?
29410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411   (exit $ac_status); }; } &&
29412          { ac_try='test -s conftest$ac_exeext'
29413   { (case "(($ac_try" in
29414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415   *) ac_try_echo=$ac_try;;
29416 esac
29417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418   (eval "$ac_try") 2>&5
29419   ac_status=$?
29420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421   (exit $ac_status); }; }; then
29422   ac_cv_lib_png_png_check_sig=yes
29423 else
29424   echo "$as_me: failed program was:" >&5
29425 sed 's/^/| /' conftest.$ac_ext >&5
29426
29427         ac_cv_lib_png_png_check_sig=no
29428 fi
29429
29430 rm -f core conftest.err conftest.$ac_objext \
29431       conftest$ac_exeext conftest.$ac_ext
29432 LIBS=$ac_check_lib_save_LIBS
29433 fi
29434 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
29435 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
29436 if test $ac_cv_lib_png_png_check_sig = yes; then
29437   PNG_LINK=" -lpng -lz"
29438 fi
29439
29440             fi
29441
29442             if test "x$PNG_LINK" = "x" ; then
29443                 if test "$wxUSE_LIBPNG" = "sys" ; then
29444                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
29445 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
29446    { (exit 1); exit 1; }; }
29447                 else
29448                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
29449 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
29450                     wxUSE_LIBPNG=builtin
29451                 fi
29452             else
29453                                 wxUSE_LIBPNG=sys
29454             fi
29455         fi
29456     fi
29457
29458     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
29459 fi
29460
29461
29462 JPEG_LINK=
29463 if test "$wxUSE_LIBJPEG" != "no" ; then
29464     cat >>confdefs.h <<\_ACEOF
29465 #define wxUSE_LIBJPEG 1
29466 _ACEOF
29467
29468
29469     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
29470         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
29471 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
29472         wxUSE_LIBJPEG=sys
29473     fi
29474
29475     if test "$wxUSE_MGL" != 1 ; then
29476                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
29477                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
29478 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
29479             if test "${ac_cv_header_jpeglib_h+set}" = set; then
29480   echo $ECHO_N "(cached) $ECHO_C" >&6
29481 else
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                         #undef HAVE_STDLIB_H
29490                         #include <stdio.h>
29491                         #include <jpeglib.h>
29492
29493 int
29494 main ()
29495 {
29496
29497
29498   ;
29499   return 0;
29500 }
29501 _ACEOF
29502 rm -f conftest.$ac_objext
29503 if { (ac_try="$ac_compile"
29504 case "(($ac_try" in
29505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29506   *) ac_try_echo=$ac_try;;
29507 esac
29508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29509   (eval "$ac_compile") 2>conftest.er1
29510   ac_status=$?
29511   grep -v '^ *+' conftest.er1 >conftest.err
29512   rm -f conftest.er1
29513   cat conftest.err >&5
29514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515   (exit $ac_status); } &&
29516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29517   { (case "(($ac_try" in
29518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29519   *) ac_try_echo=$ac_try;;
29520 esac
29521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29522   (eval "$ac_try") 2>&5
29523   ac_status=$?
29524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525   (exit $ac_status); }; } &&
29526          { ac_try='test -s conftest.$ac_objext'
29527   { (case "(($ac_try" in
29528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529   *) ac_try_echo=$ac_try;;
29530 esac
29531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532   (eval "$ac_try") 2>&5
29533   ac_status=$?
29534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535   (exit $ac_status); }; }; then
29536   ac_cv_header_jpeglib_h=yes
29537 else
29538   echo "$as_me: failed program was:" >&5
29539 sed 's/^/| /' conftest.$ac_ext >&5
29540
29541         ac_cv_header_jpeglib_h=no
29542
29543 fi
29544
29545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29546
29547 fi
29548
29549             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
29550 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
29551
29552             if test "$ac_cv_header_jpeglib_h" = "yes"; then
29553                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
29554 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
29555 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
29556   echo $ECHO_N "(cached) $ECHO_C" >&6
29557 else
29558   ac_check_lib_save_LIBS=$LIBS
29559 LIBS="-ljpeg  $LIBS"
29560 cat >conftest.$ac_ext <<_ACEOF
29561 /* confdefs.h.  */
29562 _ACEOF
29563 cat confdefs.h >>conftest.$ac_ext
29564 cat >>conftest.$ac_ext <<_ACEOF
29565 /* end confdefs.h.  */
29566
29567 /* Override any GCC internal prototype to avoid an error.
29568    Use char because int might match the return type of a GCC
29569    builtin and then its argument prototype would still apply.  */
29570 #ifdef __cplusplus
29571 extern "C"
29572 #endif
29573 char jpeg_read_header ();
29574 int
29575 main ()
29576 {
29577 return jpeg_read_header ();
29578   ;
29579   return 0;
29580 }
29581 _ACEOF
29582 rm -f conftest.$ac_objext conftest$ac_exeext
29583 if { (ac_try="$ac_link"
29584 case "(($ac_try" in
29585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586   *) ac_try_echo=$ac_try;;
29587 esac
29588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589   (eval "$ac_link") 2>conftest.er1
29590   ac_status=$?
29591   grep -v '^ *+' conftest.er1 >conftest.err
29592   rm -f conftest.er1
29593   cat conftest.err >&5
29594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595   (exit $ac_status); } &&
29596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29597   { (case "(($ac_try" in
29598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599   *) ac_try_echo=$ac_try;;
29600 esac
29601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602   (eval "$ac_try") 2>&5
29603   ac_status=$?
29604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605   (exit $ac_status); }; } &&
29606          { ac_try='test -s conftest$ac_exeext'
29607   { (case "(($ac_try" in
29608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609   *) ac_try_echo=$ac_try;;
29610 esac
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612   (eval "$ac_try") 2>&5
29613   ac_status=$?
29614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615   (exit $ac_status); }; }; then
29616   ac_cv_lib_jpeg_jpeg_read_header=yes
29617 else
29618   echo "$as_me: failed program was:" >&5
29619 sed 's/^/| /' conftest.$ac_ext >&5
29620
29621         ac_cv_lib_jpeg_jpeg_read_header=no
29622 fi
29623
29624 rm -f core conftest.err conftest.$ac_objext \
29625       conftest$ac_exeext conftest.$ac_ext
29626 LIBS=$ac_check_lib_save_LIBS
29627 fi
29628 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29629 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29630 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
29631   JPEG_LINK=" -ljpeg"
29632 fi
29633
29634             fi
29635
29636             if test "x$JPEG_LINK" = "x" ; then
29637                 if test "$wxUSE_LIBJPEG" = "sys" ; then
29638                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
29639 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
29640    { (exit 1); exit 1; }; }
29641                 else
29642                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
29643 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
29644                     wxUSE_LIBJPEG=builtin
29645                 fi
29646             else
29647                                 wxUSE_LIBJPEG=sys
29648
29649                 if test "$wxUSE_MSW" = 1; then
29650                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
29651 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29652 if test "${ac_cv_type_boolean+set}" = set; then
29653   echo $ECHO_N "(cached) $ECHO_C" >&6
29654 else
29655   cat >conftest.$ac_ext <<_ACEOF
29656 /* confdefs.h.  */
29657 _ACEOF
29658 cat confdefs.h >>conftest.$ac_ext
29659 cat >>conftest.$ac_ext <<_ACEOF
29660 /* end confdefs.h.  */
29661 #include <windows.h>
29662
29663 typedef boolean ac__type_new_;
29664 int
29665 main ()
29666 {
29667 if ((ac__type_new_ *) 0)
29668   return 0;
29669 if (sizeof (ac__type_new_))
29670   return 0;
29671   ;
29672   return 0;
29673 }
29674 _ACEOF
29675 rm -f conftest.$ac_objext
29676 if { (ac_try="$ac_compile"
29677 case "(($ac_try" in
29678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679   *) ac_try_echo=$ac_try;;
29680 esac
29681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682   (eval "$ac_compile") 2>conftest.er1
29683   ac_status=$?
29684   grep -v '^ *+' conftest.er1 >conftest.err
29685   rm -f conftest.er1
29686   cat conftest.err >&5
29687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688   (exit $ac_status); } &&
29689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29690   { (case "(($ac_try" in
29691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29692   *) ac_try_echo=$ac_try;;
29693 esac
29694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29695   (eval "$ac_try") 2>&5
29696   ac_status=$?
29697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698   (exit $ac_status); }; } &&
29699          { ac_try='test -s conftest.$ac_objext'
29700   { (case "(($ac_try" in
29701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702   *) ac_try_echo=$ac_try;;
29703 esac
29704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705   (eval "$ac_try") 2>&5
29706   ac_status=$?
29707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708   (exit $ac_status); }; }; then
29709   ac_cv_type_boolean=yes
29710 else
29711   echo "$as_me: failed program was:" >&5
29712 sed 's/^/| /' conftest.$ac_ext >&5
29713
29714         ac_cv_type_boolean=no
29715 fi
29716
29717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29718 fi
29719 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29720 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29721 if test $ac_cv_type_boolean = yes; then
29722
29723 cat >>confdefs.h <<_ACEOF
29724 #define HAVE_BOOLEAN 1
29725 _ACEOF
29726
29727
29728                             { echo "$as_me:$LINENO: checking for boolean" >&5
29729 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29730 if test "${ac_cv_type_boolean+set}" = set; then
29731   echo $ECHO_N "(cached) $ECHO_C" >&6
29732 else
29733   cat >conftest.$ac_ext <<_ACEOF
29734 /* confdefs.h.  */
29735 _ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h.  */
29739
29740                                     #undef HAVE_BOOLEAN
29741                                     #include <stdio.h>
29742                                     #include <jpeglib.h>
29743
29744
29745 typedef boolean ac__type_new_;
29746 int
29747 main ()
29748 {
29749 if ((ac__type_new_ *) 0)
29750   return 0;
29751 if (sizeof (ac__type_new_))
29752   return 0;
29753   ;
29754   return 0;
29755 }
29756 _ACEOF
29757 rm -f conftest.$ac_objext
29758 if { (ac_try="$ac_compile"
29759 case "(($ac_try" in
29760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29761   *) ac_try_echo=$ac_try;;
29762 esac
29763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29764   (eval "$ac_compile") 2>conftest.er1
29765   ac_status=$?
29766   grep -v '^ *+' conftest.er1 >conftest.err
29767   rm -f conftest.er1
29768   cat conftest.err >&5
29769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770   (exit $ac_status); } &&
29771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29772   { (case "(($ac_try" in
29773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29774   *) ac_try_echo=$ac_try;;
29775 esac
29776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29777   (eval "$ac_try") 2>&5
29778   ac_status=$?
29779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780   (exit $ac_status); }; } &&
29781          { ac_try='test -s conftest.$ac_objext'
29782   { (case "(($ac_try" in
29783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784   *) ac_try_echo=$ac_try;;
29785 esac
29786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29787   (eval "$ac_try") 2>&5
29788   ac_status=$?
29789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790   (exit $ac_status); }; }; then
29791   ac_cv_type_boolean=yes
29792 else
29793   echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29795
29796         ac_cv_type_boolean=no
29797 fi
29798
29799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29800 fi
29801 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29802 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29803
29804 { echo "$as_me:$LINENO: checking size of boolean" >&5
29805 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
29806 if test "${ac_cv_sizeof_boolean+set}" = set; then
29807   echo $ECHO_N "(cached) $ECHO_C" >&6
29808 else
29809   if test "$ac_cv_type_boolean" = yes; then
29810   # The cast to long int works around a bug in the HP C Compiler
29811   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29812   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29813   # This bug is HP SR number 8606223364.
29814   if test "$cross_compiling" = yes; then
29815   # Depending upon the size, compute the lo and hi bounds.
29816 cat >conftest.$ac_ext <<_ACEOF
29817 /* confdefs.h.  */
29818 _ACEOF
29819 cat confdefs.h >>conftest.$ac_ext
29820 cat >>conftest.$ac_ext <<_ACEOF
29821 /* end confdefs.h.  */
29822
29823                                     #undef HAVE_BOOLEAN
29824                                     #include <stdio.h>
29825                                     #include <jpeglib.h>
29826
29827
29828                    typedef boolean ac__type_sizeof_;
29829 int
29830 main ()
29831 {
29832 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29833 test_array [0] = 0
29834
29835   ;
29836   return 0;
29837 }
29838 _ACEOF
29839 rm -f conftest.$ac_objext
29840 if { (ac_try="$ac_compile"
29841 case "(($ac_try" in
29842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843   *) ac_try_echo=$ac_try;;
29844 esac
29845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846   (eval "$ac_compile") 2>conftest.er1
29847   ac_status=$?
29848   grep -v '^ *+' conftest.er1 >conftest.err
29849   rm -f conftest.er1
29850   cat conftest.err >&5
29851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852   (exit $ac_status); } &&
29853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29854   { (case "(($ac_try" in
29855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856   *) ac_try_echo=$ac_try;;
29857 esac
29858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29859   (eval "$ac_try") 2>&5
29860   ac_status=$?
29861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862   (exit $ac_status); }; } &&
29863          { ac_try='test -s conftest.$ac_objext'
29864   { (case "(($ac_try" in
29865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866   *) ac_try_echo=$ac_try;;
29867 esac
29868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869   (eval "$ac_try") 2>&5
29870   ac_status=$?
29871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872   (exit $ac_status); }; }; then
29873   ac_lo=0 ac_mid=0
29874   while :; do
29875     cat >conftest.$ac_ext <<_ACEOF
29876 /* confdefs.h.  */
29877 _ACEOF
29878 cat confdefs.h >>conftest.$ac_ext
29879 cat >>conftest.$ac_ext <<_ACEOF
29880 /* end confdefs.h.  */
29881
29882                                     #undef HAVE_BOOLEAN
29883                                     #include <stdio.h>
29884                                     #include <jpeglib.h>
29885
29886
29887                    typedef boolean ac__type_sizeof_;
29888 int
29889 main ()
29890 {
29891 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29892 test_array [0] = 0
29893
29894   ;
29895   return 0;
29896 }
29897 _ACEOF
29898 rm -f conftest.$ac_objext
29899 if { (ac_try="$ac_compile"
29900 case "(($ac_try" in
29901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29902   *) ac_try_echo=$ac_try;;
29903 esac
29904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29905   (eval "$ac_compile") 2>conftest.er1
29906   ac_status=$?
29907   grep -v '^ *+' conftest.er1 >conftest.err
29908   rm -f conftest.er1
29909   cat conftest.err >&5
29910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911   (exit $ac_status); } &&
29912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29913   { (case "(($ac_try" in
29914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915   *) ac_try_echo=$ac_try;;
29916 esac
29917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918   (eval "$ac_try") 2>&5
29919   ac_status=$?
29920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921   (exit $ac_status); }; } &&
29922          { ac_try='test -s conftest.$ac_objext'
29923   { (case "(($ac_try" in
29924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29925   *) ac_try_echo=$ac_try;;
29926 esac
29927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29928   (eval "$ac_try") 2>&5
29929   ac_status=$?
29930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29931   (exit $ac_status); }; }; then
29932   ac_hi=$ac_mid; break
29933 else
29934   echo "$as_me: failed program was:" >&5
29935 sed 's/^/| /' conftest.$ac_ext >&5
29936
29937         ac_lo=`expr $ac_mid + 1`
29938                         if test $ac_lo -le $ac_mid; then
29939                           ac_lo= ac_hi=
29940                           break
29941                         fi
29942                         ac_mid=`expr 2 '*' $ac_mid + 1`
29943 fi
29944
29945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29946   done
29947 else
29948   echo "$as_me: failed program was:" >&5
29949 sed 's/^/| /' conftest.$ac_ext >&5
29950
29951         cat >conftest.$ac_ext <<_ACEOF
29952 /* confdefs.h.  */
29953 _ACEOF
29954 cat confdefs.h >>conftest.$ac_ext
29955 cat >>conftest.$ac_ext <<_ACEOF
29956 /* end confdefs.h.  */
29957
29958                                     #undef HAVE_BOOLEAN
29959                                     #include <stdio.h>
29960                                     #include <jpeglib.h>
29961
29962
29963                    typedef boolean ac__type_sizeof_;
29964 int
29965 main ()
29966 {
29967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29968 test_array [0] = 0
29969
29970   ;
29971   return 0;
29972 }
29973 _ACEOF
29974 rm -f conftest.$ac_objext
29975 if { (ac_try="$ac_compile"
29976 case "(($ac_try" in
29977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29978   *) ac_try_echo=$ac_try;;
29979 esac
29980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29981   (eval "$ac_compile") 2>conftest.er1
29982   ac_status=$?
29983   grep -v '^ *+' conftest.er1 >conftest.err
29984   rm -f conftest.er1
29985   cat conftest.err >&5
29986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987   (exit $ac_status); } &&
29988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29989   { (case "(($ac_try" in
29990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29991   *) ac_try_echo=$ac_try;;
29992 esac
29993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29994   (eval "$ac_try") 2>&5
29995   ac_status=$?
29996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29997   (exit $ac_status); }; } &&
29998          { ac_try='test -s conftest.$ac_objext'
29999   { (case "(($ac_try" in
30000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30001   *) ac_try_echo=$ac_try;;
30002 esac
30003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30004   (eval "$ac_try") 2>&5
30005   ac_status=$?
30006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007   (exit $ac_status); }; }; then
30008   ac_hi=-1 ac_mid=-1
30009   while :; do
30010     cat >conftest.$ac_ext <<_ACEOF
30011 /* confdefs.h.  */
30012 _ACEOF
30013 cat confdefs.h >>conftest.$ac_ext
30014 cat >>conftest.$ac_ext <<_ACEOF
30015 /* end confdefs.h.  */
30016
30017                                     #undef HAVE_BOOLEAN
30018                                     #include <stdio.h>
30019                                     #include <jpeglib.h>
30020
30021
30022                    typedef boolean ac__type_sizeof_;
30023 int
30024 main ()
30025 {
30026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
30027 test_array [0] = 0
30028
30029   ;
30030   return 0;
30031 }
30032 _ACEOF
30033 rm -f conftest.$ac_objext
30034 if { (ac_try="$ac_compile"
30035 case "(($ac_try" in
30036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037   *) ac_try_echo=$ac_try;;
30038 esac
30039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040   (eval "$ac_compile") 2>conftest.er1
30041   ac_status=$?
30042   grep -v '^ *+' conftest.er1 >conftest.err
30043   rm -f conftest.er1
30044   cat conftest.err >&5
30045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046   (exit $ac_status); } &&
30047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30048   { (case "(($ac_try" in
30049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050   *) ac_try_echo=$ac_try;;
30051 esac
30052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053   (eval "$ac_try") 2>&5
30054   ac_status=$?
30055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056   (exit $ac_status); }; } &&
30057          { ac_try='test -s conftest.$ac_objext'
30058   { (case "(($ac_try" in
30059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30060   *) ac_try_echo=$ac_try;;
30061 esac
30062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30063   (eval "$ac_try") 2>&5
30064   ac_status=$?
30065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066   (exit $ac_status); }; }; then
30067   ac_lo=$ac_mid; break
30068 else
30069   echo "$as_me: failed program was:" >&5
30070 sed 's/^/| /' conftest.$ac_ext >&5
30071
30072         ac_hi=`expr '(' $ac_mid ')' - 1`
30073                         if test $ac_mid -le $ac_hi; then
30074                           ac_lo= ac_hi=
30075                           break
30076                         fi
30077                         ac_mid=`expr 2 '*' $ac_mid`
30078 fi
30079
30080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30081   done
30082 else
30083   echo "$as_me: failed program was:" >&5
30084 sed 's/^/| /' conftest.$ac_ext >&5
30085
30086         ac_lo= ac_hi=
30087 fi
30088
30089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30090 fi
30091
30092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30093 # Binary search between lo and hi bounds.
30094 while test "x$ac_lo" != "x$ac_hi"; do
30095   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30096   cat >conftest.$ac_ext <<_ACEOF
30097 /* confdefs.h.  */
30098 _ACEOF
30099 cat confdefs.h >>conftest.$ac_ext
30100 cat >>conftest.$ac_ext <<_ACEOF
30101 /* end confdefs.h.  */
30102
30103                                     #undef HAVE_BOOLEAN
30104                                     #include <stdio.h>
30105                                     #include <jpeglib.h>
30106
30107
30108                    typedef boolean ac__type_sizeof_;
30109 int
30110 main ()
30111 {
30112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
30113 test_array [0] = 0
30114
30115   ;
30116   return 0;
30117 }
30118 _ACEOF
30119 rm -f conftest.$ac_objext
30120 if { (ac_try="$ac_compile"
30121 case "(($ac_try" in
30122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30123   *) ac_try_echo=$ac_try;;
30124 esac
30125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30126   (eval "$ac_compile") 2>conftest.er1
30127   ac_status=$?
30128   grep -v '^ *+' conftest.er1 >conftest.err
30129   rm -f conftest.er1
30130   cat conftest.err >&5
30131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132   (exit $ac_status); } &&
30133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30134   { (case "(($ac_try" in
30135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136   *) ac_try_echo=$ac_try;;
30137 esac
30138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139   (eval "$ac_try") 2>&5
30140   ac_status=$?
30141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142   (exit $ac_status); }; } &&
30143          { ac_try='test -s conftest.$ac_objext'
30144   { (case "(($ac_try" in
30145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30146   *) ac_try_echo=$ac_try;;
30147 esac
30148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30149   (eval "$ac_try") 2>&5
30150   ac_status=$?
30151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152   (exit $ac_status); }; }; then
30153   ac_hi=$ac_mid
30154 else
30155   echo "$as_me: failed program was:" >&5
30156 sed 's/^/| /' conftest.$ac_ext >&5
30157
30158         ac_lo=`expr '(' $ac_mid ')' + 1`
30159 fi
30160
30161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30162 done
30163 case $ac_lo in
30164 ?*) ac_cv_sizeof_boolean=$ac_lo;;
30165 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
30166 See \`config.log' for more details." >&5
30167 echo "$as_me: error: cannot compute sizeof (boolean)
30168 See \`config.log' for more details." >&2;}
30169    { (exit 77); exit 77; }; } ;;
30170 esac
30171 else
30172   cat >conftest.$ac_ext <<_ACEOF
30173 /* confdefs.h.  */
30174 _ACEOF
30175 cat confdefs.h >>conftest.$ac_ext
30176 cat >>conftest.$ac_ext <<_ACEOF
30177 /* end confdefs.h.  */
30178
30179                                     #undef HAVE_BOOLEAN
30180                                     #include <stdio.h>
30181                                     #include <jpeglib.h>
30182
30183
30184                    typedef boolean ac__type_sizeof_;
30185 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
30186 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
30187 #include <stdio.h>
30188 #include <stdlib.h>
30189 int
30190 main ()
30191 {
30192
30193   FILE *f = fopen ("conftest.val", "w");
30194   if (! f)
30195     return 1;
30196   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
30197     {
30198       long int i = longval ();
30199       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30200         return 1;
30201       fprintf (f, "%ld\n", i);
30202     }
30203   else
30204     {
30205       unsigned long int i = ulongval ();
30206       if (i != ((long int) (sizeof (ac__type_sizeof_))))
30207         return 1;
30208       fprintf (f, "%lu\n", i);
30209     }
30210   return ferror (f) || fclose (f) != 0;
30211
30212   ;
30213   return 0;
30214 }
30215 _ACEOF
30216 rm -f conftest$ac_exeext
30217 if { (ac_try="$ac_link"
30218 case "(($ac_try" in
30219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30220   *) ac_try_echo=$ac_try;;
30221 esac
30222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30223   (eval "$ac_link") 2>&5
30224   ac_status=$?
30225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30227   { (case "(($ac_try" in
30228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30229   *) ac_try_echo=$ac_try;;
30230 esac
30231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30232   (eval "$ac_try") 2>&5
30233   ac_status=$?
30234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235   (exit $ac_status); }; }; then
30236   ac_cv_sizeof_boolean=`cat conftest.val`
30237 else
30238   echo "$as_me: program exited with status $ac_status" >&5
30239 echo "$as_me: failed program was:" >&5
30240 sed 's/^/| /' conftest.$ac_ext >&5
30241
30242 ( exit $ac_status )
30243 { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
30244 See \`config.log' for more details." >&5
30245 echo "$as_me: error: cannot compute sizeof (boolean)
30246 See \`config.log' for more details." >&2;}
30247    { (exit 77); exit 77; }; }
30248 fi
30249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30250 fi
30251 rm -f conftest.val
30252 else
30253   ac_cv_sizeof_boolean=0
30254 fi
30255 fi
30256 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
30257 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
30258 cat >>confdefs.h <<_ACEOF
30259 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
30260 _ACEOF
30261
30262
30263                             cat >>confdefs.h <<_ACEOF
30264 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
30265 _ACEOF
30266
30267
30268 fi
30269
30270                 fi
30271             fi
30272         fi
30273     fi
30274 fi
30275
30276
30277 TIFF_LINK=
30278 TIFF_PREREQ_LINKS=-lm
30279 if test "$wxUSE_LIBTIFF" != "no" ; then
30280     cat >>confdefs.h <<\_ACEOF
30281 #define wxUSE_LIBTIFF 1
30282 _ACEOF
30283
30284
30285     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
30286                         if test "$wxUSE_LIBJPEG" = "sys"; then
30287             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
30288         fi
30289         if test "$wxUSE_ZLIB" = "sys"; then
30290             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
30291         fi
30292         if test "${ac_cv_header_tiffio_h+set}" = set; then
30293   { echo "$as_me:$LINENO: checking for tiffio.h" >&5
30294 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
30295 if test "${ac_cv_header_tiffio_h+set}" = set; then
30296   echo $ECHO_N "(cached) $ECHO_C" >&6
30297 fi
30298 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
30299 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
30300 else
30301   # Is the header compilable?
30302 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
30303 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
30304 cat >conftest.$ac_ext <<_ACEOF
30305 /* confdefs.h.  */
30306 _ACEOF
30307 cat confdefs.h >>conftest.$ac_ext
30308 cat >>conftest.$ac_ext <<_ACEOF
30309 /* end confdefs.h.  */
30310 $ac_includes_default
30311 #include <tiffio.h>
30312 _ACEOF
30313 rm -f conftest.$ac_objext
30314 if { (ac_try="$ac_compile"
30315 case "(($ac_try" in
30316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30317   *) ac_try_echo=$ac_try;;
30318 esac
30319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30320   (eval "$ac_compile") 2>conftest.er1
30321   ac_status=$?
30322   grep -v '^ *+' conftest.er1 >conftest.err
30323   rm -f conftest.er1
30324   cat conftest.err >&5
30325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326   (exit $ac_status); } &&
30327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30328   { (case "(($ac_try" in
30329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30330   *) ac_try_echo=$ac_try;;
30331 esac
30332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30333   (eval "$ac_try") 2>&5
30334   ac_status=$?
30335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336   (exit $ac_status); }; } &&
30337          { ac_try='test -s conftest.$ac_objext'
30338   { (case "(($ac_try" in
30339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30340   *) ac_try_echo=$ac_try;;
30341 esac
30342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30343   (eval "$ac_try") 2>&5
30344   ac_status=$?
30345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346   (exit $ac_status); }; }; then
30347   ac_header_compiler=yes
30348 else
30349   echo "$as_me: failed program was:" >&5
30350 sed 's/^/| /' conftest.$ac_ext >&5
30351
30352         ac_header_compiler=no
30353 fi
30354
30355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30357 echo "${ECHO_T}$ac_header_compiler" >&6; }
30358
30359 # Is the header present?
30360 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
30361 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
30362 cat >conftest.$ac_ext <<_ACEOF
30363 /* confdefs.h.  */
30364 _ACEOF
30365 cat confdefs.h >>conftest.$ac_ext
30366 cat >>conftest.$ac_ext <<_ACEOF
30367 /* end confdefs.h.  */
30368 #include <tiffio.h>
30369 _ACEOF
30370 if { (ac_try="$ac_cpp conftest.$ac_ext"
30371 case "(($ac_try" in
30372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30373   *) ac_try_echo=$ac_try;;
30374 esac
30375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30377   ac_status=$?
30378   grep -v '^ *+' conftest.er1 >conftest.err
30379   rm -f conftest.er1
30380   cat conftest.err >&5
30381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382   (exit $ac_status); } >/dev/null; then
30383   if test -s conftest.err; then
30384     ac_cpp_err=$ac_c_preproc_warn_flag
30385     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30386   else
30387     ac_cpp_err=
30388   fi
30389 else
30390   ac_cpp_err=yes
30391 fi
30392 if test -z "$ac_cpp_err"; then
30393   ac_header_preproc=yes
30394 else
30395   echo "$as_me: failed program was:" >&5
30396 sed 's/^/| /' conftest.$ac_ext >&5
30397
30398   ac_header_preproc=no
30399 fi
30400
30401 rm -f conftest.err conftest.$ac_ext
30402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30403 echo "${ECHO_T}$ac_header_preproc" >&6; }
30404
30405 # So?  What about this header?
30406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30407   yes:no: )
30408     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
30409 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30410     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
30411 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
30412     ac_header_preproc=yes
30413     ;;
30414   no:yes:* )
30415     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
30416 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
30417     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
30418 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
30419     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
30420 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
30421     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
30422 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30423     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
30424 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
30425     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
30426 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
30427     ( cat <<\_ASBOX
30428 ## ----------------------------------------- ##
30429 ## Report this to wx-dev@lists.wxwidgets.org ##
30430 ## ----------------------------------------- ##
30431 _ASBOX
30432      ) | sed "s/^/$as_me: WARNING:     /" >&2
30433     ;;
30434 esac
30435 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
30436 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
30437 if test "${ac_cv_header_tiffio_h+set}" = set; then
30438   echo $ECHO_N "(cached) $ECHO_C" >&6
30439 else
30440   ac_cv_header_tiffio_h=$ac_header_preproc
30441 fi
30442 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
30443 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
30444
30445 fi
30446 if test $ac_cv_header_tiffio_h = yes; then
30447
30448                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
30449 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
30450 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
30451   echo $ECHO_N "(cached) $ECHO_C" >&6
30452 else
30453   ac_check_lib_save_LIBS=$LIBS
30454 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
30455 cat >conftest.$ac_ext <<_ACEOF
30456 /* confdefs.h.  */
30457 _ACEOF
30458 cat confdefs.h >>conftest.$ac_ext
30459 cat >>conftest.$ac_ext <<_ACEOF
30460 /* end confdefs.h.  */
30461
30462 /* Override any GCC internal prototype to avoid an error.
30463    Use char because int might match the return type of a GCC
30464    builtin and then its argument prototype would still apply.  */
30465 #ifdef __cplusplus
30466 extern "C"
30467 #endif
30468 char TIFFError ();
30469 int
30470 main ()
30471 {
30472 return TIFFError ();
30473   ;
30474   return 0;
30475 }
30476 _ACEOF
30477 rm -f conftest.$ac_objext conftest$ac_exeext
30478 if { (ac_try="$ac_link"
30479 case "(($ac_try" in
30480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30481   *) ac_try_echo=$ac_try;;
30482 esac
30483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30484   (eval "$ac_link") 2>conftest.er1
30485   ac_status=$?
30486   grep -v '^ *+' conftest.er1 >conftest.err
30487   rm -f conftest.er1
30488   cat conftest.err >&5
30489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490   (exit $ac_status); } &&
30491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30492   { (case "(($ac_try" in
30493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30494   *) ac_try_echo=$ac_try;;
30495 esac
30496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30497   (eval "$ac_try") 2>&5
30498   ac_status=$?
30499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500   (exit $ac_status); }; } &&
30501          { ac_try='test -s conftest$ac_exeext'
30502   { (case "(($ac_try" in
30503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30504   *) ac_try_echo=$ac_try;;
30505 esac
30506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30507   (eval "$ac_try") 2>&5
30508   ac_status=$?
30509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510   (exit $ac_status); }; }; then
30511   ac_cv_lib_tiff_TIFFError=yes
30512 else
30513   echo "$as_me: failed program was:" >&5
30514 sed 's/^/| /' conftest.$ac_ext >&5
30515
30516         ac_cv_lib_tiff_TIFFError=no
30517 fi
30518
30519 rm -f core conftest.err conftest.$ac_objext \
30520       conftest$ac_exeext conftest.$ac_ext
30521 LIBS=$ac_check_lib_save_LIBS
30522 fi
30523 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
30524 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
30525 if test $ac_cv_lib_tiff_TIFFError = yes; then
30526   TIFF_LINK=" -ltiff"
30527 fi
30528
30529
30530
30531 fi
30532
30533
30534
30535         if test "x$TIFF_LINK" = "x" ; then
30536             if test "$wxUSE_LIBTIFF" = "sys" ; then
30537                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
30538 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
30539    { (exit 1); exit 1; }; }
30540             else
30541                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
30542 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
30543                 wxUSE_LIBTIFF=builtin
30544             fi
30545         else
30546                         wxUSE_LIBTIFF=sys
30547         fi
30548     fi
30549 fi
30550
30551
30552 if test "$wxUSE_WCHAR_T" != "yes"; then
30553     if test "$wxUSE_EXPAT" != "no"; then
30554         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
30555 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
30556         wxUSE_EXPAT=no
30557     fi
30558     if test "$wxUSE_XML" != "no"; then
30559         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
30560 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
30561         wxUSE_XML=no
30562     fi
30563 fi
30564
30565 if test "$wxUSE_EXPAT" != "no"; then
30566     wxUSE_XML=yes
30567     cat >>confdefs.h <<\_ACEOF
30568 #define wxUSE_EXPAT 1
30569 _ACEOF
30570
30571     cat >>confdefs.h <<\_ACEOF
30572 #define wxUSE_XML 1
30573 _ACEOF
30574
30575
30576     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
30577         if test "${ac_cv_header_expat_h+set}" = set; then
30578   { echo "$as_me:$LINENO: checking for expat.h" >&5
30579 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
30580 if test "${ac_cv_header_expat_h+set}" = set; then
30581   echo $ECHO_N "(cached) $ECHO_C" >&6
30582 fi
30583 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
30584 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
30585 else
30586   # Is the header compilable?
30587 { echo "$as_me:$LINENO: checking expat.h usability" >&5
30588 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6; }
30589 cat >conftest.$ac_ext <<_ACEOF
30590 /* confdefs.h.  */
30591 _ACEOF
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h.  */
30595 $ac_includes_default
30596 #include <expat.h>
30597 _ACEOF
30598 rm -f conftest.$ac_objext
30599 if { (ac_try="$ac_compile"
30600 case "(($ac_try" in
30601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30602   *) ac_try_echo=$ac_try;;
30603 esac
30604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30605   (eval "$ac_compile") 2>conftest.er1
30606   ac_status=$?
30607   grep -v '^ *+' conftest.er1 >conftest.err
30608   rm -f conftest.er1
30609   cat conftest.err >&5
30610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611   (exit $ac_status); } &&
30612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30613   { (case "(($ac_try" in
30614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30615   *) ac_try_echo=$ac_try;;
30616 esac
30617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30618   (eval "$ac_try") 2>&5
30619   ac_status=$?
30620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621   (exit $ac_status); }; } &&
30622          { ac_try='test -s conftest.$ac_objext'
30623   { (case "(($ac_try" in
30624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625   *) ac_try_echo=$ac_try;;
30626 esac
30627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30628   (eval "$ac_try") 2>&5
30629   ac_status=$?
30630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631   (exit $ac_status); }; }; then
30632   ac_header_compiler=yes
30633 else
30634   echo "$as_me: failed program was:" >&5
30635 sed 's/^/| /' conftest.$ac_ext >&5
30636
30637         ac_header_compiler=no
30638 fi
30639
30640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30642 echo "${ECHO_T}$ac_header_compiler" >&6; }
30643
30644 # Is the header present?
30645 { echo "$as_me:$LINENO: checking expat.h presence" >&5
30646 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6; }
30647 cat >conftest.$ac_ext <<_ACEOF
30648 /* confdefs.h.  */
30649 _ACEOF
30650 cat confdefs.h >>conftest.$ac_ext
30651 cat >>conftest.$ac_ext <<_ACEOF
30652 /* end confdefs.h.  */
30653 #include <expat.h>
30654 _ACEOF
30655 if { (ac_try="$ac_cpp conftest.$ac_ext"
30656 case "(($ac_try" in
30657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30658   *) ac_try_echo=$ac_try;;
30659 esac
30660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30662   ac_status=$?
30663   grep -v '^ *+' conftest.er1 >conftest.err
30664   rm -f conftest.er1
30665   cat conftest.err >&5
30666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667   (exit $ac_status); } >/dev/null; then
30668   if test -s conftest.err; then
30669     ac_cpp_err=$ac_c_preproc_warn_flag
30670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30671   else
30672     ac_cpp_err=
30673   fi
30674 else
30675   ac_cpp_err=yes
30676 fi
30677 if test -z "$ac_cpp_err"; then
30678   ac_header_preproc=yes
30679 else
30680   echo "$as_me: failed program was:" >&5
30681 sed 's/^/| /' conftest.$ac_ext >&5
30682
30683   ac_header_preproc=no
30684 fi
30685
30686 rm -f conftest.err conftest.$ac_ext
30687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30688 echo "${ECHO_T}$ac_header_preproc" >&6; }
30689
30690 # So?  What about this header?
30691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30692   yes:no: )
30693     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
30694 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30695     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
30696 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
30697     ac_header_preproc=yes
30698     ;;
30699   no:yes:* )
30700     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
30701 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
30702     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
30703 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
30704     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
30705 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
30706     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
30707 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30708     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
30709 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
30710     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
30711 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
30712     ( cat <<\_ASBOX
30713 ## ----------------------------------------- ##
30714 ## Report this to wx-dev@lists.wxwidgets.org ##
30715 ## ----------------------------------------- ##
30716 _ASBOX
30717      ) | sed "s/^/$as_me: WARNING:     /" >&2
30718     ;;
30719 esac
30720 { echo "$as_me:$LINENO: checking for expat.h" >&5
30721 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
30722 if test "${ac_cv_header_expat_h+set}" = set; then
30723   echo $ECHO_N "(cached) $ECHO_C" >&6
30724 else
30725   ac_cv_header_expat_h=$ac_header_preproc
30726 fi
30727 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
30728 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
30729
30730 fi
30731 if test $ac_cv_header_expat_h = yes; then
30732   found_expat_h=1
30733 fi
30734
30735
30736         if test "x$found_expat_h" = "x1"; then
30737                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
30738 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
30739 if test "${wx_cv_expat_is_not_broken+set}" = set; then
30740   echo $ECHO_N "(cached) $ECHO_C" >&6
30741 else
30742
30743                 ac_ext=cpp
30744 ac_cpp='$CXXCPP $CPPFLAGS'
30745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30748
30749                 cat >conftest.$ac_ext <<_ACEOF
30750 /* confdefs.h.  */
30751 _ACEOF
30752 cat confdefs.h >>conftest.$ac_ext
30753 cat >>conftest.$ac_ext <<_ACEOF
30754 /* end confdefs.h.  */
30755 #include <expat.h>
30756 int
30757 main ()
30758 {
30759
30760   ;
30761   return 0;
30762 }
30763 _ACEOF
30764 rm -f conftest.$ac_objext
30765 if { (ac_try="$ac_compile"
30766 case "(($ac_try" in
30767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30768   *) ac_try_echo=$ac_try;;
30769 esac
30770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30771   (eval "$ac_compile") 2>conftest.er1
30772   ac_status=$?
30773   grep -v '^ *+' conftest.er1 >conftest.err
30774   rm -f conftest.er1
30775   cat conftest.err >&5
30776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777   (exit $ac_status); } &&
30778          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30779   { (case "(($ac_try" in
30780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30781   *) ac_try_echo=$ac_try;;
30782 esac
30783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30784   (eval "$ac_try") 2>&5
30785   ac_status=$?
30786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787   (exit $ac_status); }; } &&
30788          { ac_try='test -s conftest.$ac_objext'
30789   { (case "(($ac_try" in
30790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30791   *) ac_try_echo=$ac_try;;
30792 esac
30793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30794   (eval "$ac_try") 2>&5
30795   ac_status=$?
30796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797   (exit $ac_status); }; }; then
30798   wx_cv_expat_is_not_broken=yes
30799 else
30800   echo "$as_me: failed program was:" >&5
30801 sed 's/^/| /' conftest.$ac_ext >&5
30802
30803         wx_cv_expat_is_not_broken=no
30804
30805 fi
30806
30807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30808                 ac_ext=c
30809 ac_cpp='$CPP $CPPFLAGS'
30810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30813
30814
30815
30816 fi
30817 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
30818 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
30819             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
30820                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
30821 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
30822 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
30823   echo $ECHO_N "(cached) $ECHO_C" >&6
30824 else
30825   ac_check_lib_save_LIBS=$LIBS
30826 LIBS="-lexpat  $LIBS"
30827 cat >conftest.$ac_ext <<_ACEOF
30828 /* confdefs.h.  */
30829 _ACEOF
30830 cat confdefs.h >>conftest.$ac_ext
30831 cat >>conftest.$ac_ext <<_ACEOF
30832 /* end confdefs.h.  */
30833
30834 /* Override any GCC internal prototype to avoid an error.
30835    Use char because int might match the return type of a GCC
30836    builtin and then its argument prototype would still apply.  */
30837 #ifdef __cplusplus
30838 extern "C"
30839 #endif
30840 char XML_ParserCreate ();
30841 int
30842 main ()
30843 {
30844 return XML_ParserCreate ();
30845   ;
30846   return 0;
30847 }
30848 _ACEOF
30849 rm -f conftest.$ac_objext conftest$ac_exeext
30850 if { (ac_try="$ac_link"
30851 case "(($ac_try" in
30852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30853   *) ac_try_echo=$ac_try;;
30854 esac
30855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30856   (eval "$ac_link") 2>conftest.er1
30857   ac_status=$?
30858   grep -v '^ *+' conftest.er1 >conftest.err
30859   rm -f conftest.er1
30860   cat conftest.err >&5
30861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30862   (exit $ac_status); } &&
30863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30864   { (case "(($ac_try" in
30865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30866   *) ac_try_echo=$ac_try;;
30867 esac
30868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30869   (eval "$ac_try") 2>&5
30870   ac_status=$?
30871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872   (exit $ac_status); }; } &&
30873          { ac_try='test -s conftest$ac_exeext'
30874   { (case "(($ac_try" in
30875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876   *) ac_try_echo=$ac_try;;
30877 esac
30878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30879   (eval "$ac_try") 2>&5
30880   ac_status=$?
30881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882   (exit $ac_status); }; }; then
30883   ac_cv_lib_expat_XML_ParserCreate=yes
30884 else
30885   echo "$as_me: failed program was:" >&5
30886 sed 's/^/| /' conftest.$ac_ext >&5
30887
30888         ac_cv_lib_expat_XML_ParserCreate=no
30889 fi
30890
30891 rm -f core conftest.err conftest.$ac_objext \
30892       conftest$ac_exeext conftest.$ac_ext
30893 LIBS=$ac_check_lib_save_LIBS
30894 fi
30895 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
30896 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
30897 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
30898   EXPAT_LINK=" -lexpat"
30899 fi
30900
30901             fi
30902         fi
30903         if test "x$EXPAT_LINK" = "x" ; then
30904             if test "$wxUSE_EXPAT" = "sys" ; then
30905                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
30906 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
30907    { (exit 1); exit 1; }; }
30908             else
30909                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
30910 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
30911                 wxUSE_EXPAT=builtin
30912             fi
30913         else
30914                         wxUSE_EXPAT=sys
30915         fi
30916     fi
30917     if test "$wxUSE_EXPAT" = "builtin" ; then
30918                 subdirs="$subdirs src/expat"
30919
30920     fi
30921 fi
30922
30923
30924
30925 if test "$wxUSE_LIBMSPACK" != "no"; then
30926     if test "${ac_cv_header_mspack_h+set}" = set; then
30927   { echo "$as_me:$LINENO: checking for mspack.h" >&5
30928 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
30929 if test "${ac_cv_header_mspack_h+set}" = set; then
30930   echo $ECHO_N "(cached) $ECHO_C" >&6
30931 fi
30932 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
30933 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
30934 else
30935   # Is the header compilable?
30936 { echo "$as_me:$LINENO: checking mspack.h usability" >&5
30937 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6; }
30938 cat >conftest.$ac_ext <<_ACEOF
30939 /* confdefs.h.  */
30940 _ACEOF
30941 cat confdefs.h >>conftest.$ac_ext
30942 cat >>conftest.$ac_ext <<_ACEOF
30943 /* end confdefs.h.  */
30944 $ac_includes_default
30945 #include <mspack.h>
30946 _ACEOF
30947 rm -f conftest.$ac_objext
30948 if { (ac_try="$ac_compile"
30949 case "(($ac_try" in
30950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951   *) ac_try_echo=$ac_try;;
30952 esac
30953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954   (eval "$ac_compile") 2>conftest.er1
30955   ac_status=$?
30956   grep -v '^ *+' conftest.er1 >conftest.err
30957   rm -f conftest.er1
30958   cat conftest.err >&5
30959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960   (exit $ac_status); } &&
30961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30962   { (case "(($ac_try" in
30963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30964   *) ac_try_echo=$ac_try;;
30965 esac
30966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30967   (eval "$ac_try") 2>&5
30968   ac_status=$?
30969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970   (exit $ac_status); }; } &&
30971          { ac_try='test -s conftest.$ac_objext'
30972   { (case "(($ac_try" in
30973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974   *) ac_try_echo=$ac_try;;
30975 esac
30976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977   (eval "$ac_try") 2>&5
30978   ac_status=$?
30979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980   (exit $ac_status); }; }; then
30981   ac_header_compiler=yes
30982 else
30983   echo "$as_me: failed program was:" >&5
30984 sed 's/^/| /' conftest.$ac_ext >&5
30985
30986         ac_header_compiler=no
30987 fi
30988
30989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30991 echo "${ECHO_T}$ac_header_compiler" >&6; }
30992
30993 # Is the header present?
30994 { echo "$as_me:$LINENO: checking mspack.h presence" >&5
30995 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6; }
30996 cat >conftest.$ac_ext <<_ACEOF
30997 /* confdefs.h.  */
30998 _ACEOF
30999 cat confdefs.h >>conftest.$ac_ext
31000 cat >>conftest.$ac_ext <<_ACEOF
31001 /* end confdefs.h.  */
31002 #include <mspack.h>
31003 _ACEOF
31004 if { (ac_try="$ac_cpp conftest.$ac_ext"
31005 case "(($ac_try" in
31006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007   *) ac_try_echo=$ac_try;;
31008 esac
31009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31011   ac_status=$?
31012   grep -v '^ *+' conftest.er1 >conftest.err
31013   rm -f conftest.er1
31014   cat conftest.err >&5
31015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31016   (exit $ac_status); } >/dev/null; then
31017   if test -s conftest.err; then
31018     ac_cpp_err=$ac_c_preproc_warn_flag
31019     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31020   else
31021     ac_cpp_err=
31022   fi
31023 else
31024   ac_cpp_err=yes
31025 fi
31026 if test -z "$ac_cpp_err"; then
31027   ac_header_preproc=yes
31028 else
31029   echo "$as_me: failed program was:" >&5
31030 sed 's/^/| /' conftest.$ac_ext >&5
31031
31032   ac_header_preproc=no
31033 fi
31034
31035 rm -f conftest.err conftest.$ac_ext
31036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31037 echo "${ECHO_T}$ac_header_preproc" >&6; }
31038
31039 # So?  What about this header?
31040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31041   yes:no: )
31042     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
31043 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31044     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
31045 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
31046     ac_header_preproc=yes
31047     ;;
31048   no:yes:* )
31049     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
31050 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
31051     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
31052 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
31053     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
31054 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
31055     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
31056 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31057     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
31058 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
31059     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
31060 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
31061     ( cat <<\_ASBOX
31062 ## ----------------------------------------- ##
31063 ## Report this to wx-dev@lists.wxwidgets.org ##
31064 ## ----------------------------------------- ##
31065 _ASBOX
31066      ) | sed "s/^/$as_me: WARNING:     /" >&2
31067     ;;
31068 esac
31069 { echo "$as_me:$LINENO: checking for mspack.h" >&5
31070 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
31071 if test "${ac_cv_header_mspack_h+set}" = set; then
31072   echo $ECHO_N "(cached) $ECHO_C" >&6
31073 else
31074   ac_cv_header_mspack_h=$ac_header_preproc
31075 fi
31076 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
31077 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
31078
31079 fi
31080 if test $ac_cv_header_mspack_h = yes; then
31081   found_mspack_h=1
31082 fi
31083
31084
31085     if test "x$found_mspack_h" = "x1"; then
31086         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
31087 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
31088 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
31089   echo $ECHO_N "(cached) $ECHO_C" >&6
31090 else
31091   ac_check_lib_save_LIBS=$LIBS
31092 LIBS="-lmspack  $LIBS"
31093 cat >conftest.$ac_ext <<_ACEOF
31094 /* confdefs.h.  */
31095 _ACEOF
31096 cat confdefs.h >>conftest.$ac_ext
31097 cat >>conftest.$ac_ext <<_ACEOF
31098 /* end confdefs.h.  */
31099
31100 /* Override any GCC internal prototype to avoid an error.
31101    Use char because int might match the return type of a GCC
31102    builtin and then its argument prototype would still apply.  */
31103 #ifdef __cplusplus
31104 extern "C"
31105 #endif
31106 char mspack_create_chm_decompressor ();
31107 int
31108 main ()
31109 {
31110 return mspack_create_chm_decompressor ();
31111   ;
31112   return 0;
31113 }
31114 _ACEOF
31115 rm -f conftest.$ac_objext conftest$ac_exeext
31116 if { (ac_try="$ac_link"
31117 case "(($ac_try" in
31118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119   *) ac_try_echo=$ac_try;;
31120 esac
31121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122   (eval "$ac_link") 2>conftest.er1
31123   ac_status=$?
31124   grep -v '^ *+' conftest.er1 >conftest.err
31125   rm -f conftest.er1
31126   cat conftest.err >&5
31127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128   (exit $ac_status); } &&
31129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31130   { (case "(($ac_try" in
31131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31132   *) ac_try_echo=$ac_try;;
31133 esac
31134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31135   (eval "$ac_try") 2>&5
31136   ac_status=$?
31137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138   (exit $ac_status); }; } &&
31139          { ac_try='test -s conftest$ac_exeext'
31140   { (case "(($ac_try" in
31141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31142   *) ac_try_echo=$ac_try;;
31143 esac
31144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31145   (eval "$ac_try") 2>&5
31146   ac_status=$?
31147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148   (exit $ac_status); }; }; then
31149   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
31150 else
31151   echo "$as_me: failed program was:" >&5
31152 sed 's/^/| /' conftest.$ac_ext >&5
31153
31154         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
31155 fi
31156
31157 rm -f core conftest.err conftest.$ac_objext \
31158       conftest$ac_exeext conftest.$ac_ext
31159 LIBS=$ac_check_lib_save_LIBS
31160 fi
31161 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
31162 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
31163 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
31164   MSPACK_LINK=" -lmspack"
31165 fi
31166
31167     fi
31168     if test "x$MSPACK_LINK" = "x" ; then
31169         wxUSE_LIBMSPACK=no
31170     fi
31171 fi
31172
31173 if test "$wxUSE_LIBMSPACK" != "no"; then
31174     cat >>confdefs.h <<\_ACEOF
31175 #define wxUSE_LIBMSPACK 1
31176 _ACEOF
31177
31178 fi
31179
31180
31181
31182 AFMINSTALL=
31183 WIN32INSTALL=
31184
31185 TOOLKIT=
31186 TOOLKIT_INCLUDE=
31187 WIDGET_SET=
31188
31189 if test "$USE_WIN32" = 1 ; then
31190
31191 for ac_header in w32api.h
31192 do
31193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31198   echo $ECHO_N "(cached) $ECHO_C" >&6
31199 fi
31200 ac_res=`eval echo '${'$as_ac_Header'}'`
31201                { echo "$as_me:$LINENO: result: $ac_res" >&5
31202 echo "${ECHO_T}$ac_res" >&6; }
31203 else
31204   # Is the header compilable?
31205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31207 cat >conftest.$ac_ext <<_ACEOF
31208 /* confdefs.h.  */
31209 _ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h.  */
31213 $ac_includes_default
31214 #include <$ac_header>
31215 _ACEOF
31216 rm -f conftest.$ac_objext
31217 if { (ac_try="$ac_compile"
31218 case "(($ac_try" in
31219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31220   *) ac_try_echo=$ac_try;;
31221 esac
31222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31223   (eval "$ac_compile") 2>conftest.er1
31224   ac_status=$?
31225   grep -v '^ *+' conftest.er1 >conftest.err
31226   rm -f conftest.er1
31227   cat conftest.err >&5
31228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229   (exit $ac_status); } &&
31230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31231   { (case "(($ac_try" in
31232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233   *) ac_try_echo=$ac_try;;
31234 esac
31235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236   (eval "$ac_try") 2>&5
31237   ac_status=$?
31238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239   (exit $ac_status); }; } &&
31240          { ac_try='test -s conftest.$ac_objext'
31241   { (case "(($ac_try" in
31242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31243   *) ac_try_echo=$ac_try;;
31244 esac
31245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31246   (eval "$ac_try") 2>&5
31247   ac_status=$?
31248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249   (exit $ac_status); }; }; then
31250   ac_header_compiler=yes
31251 else
31252   echo "$as_me: failed program was:" >&5
31253 sed 's/^/| /' conftest.$ac_ext >&5
31254
31255         ac_header_compiler=no
31256 fi
31257
31258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31260 echo "${ECHO_T}$ac_header_compiler" >&6; }
31261
31262 # Is the header present?
31263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31265 cat >conftest.$ac_ext <<_ACEOF
31266 /* confdefs.h.  */
31267 _ACEOF
31268 cat confdefs.h >>conftest.$ac_ext
31269 cat >>conftest.$ac_ext <<_ACEOF
31270 /* end confdefs.h.  */
31271 #include <$ac_header>
31272 _ACEOF
31273 if { (ac_try="$ac_cpp conftest.$ac_ext"
31274 case "(($ac_try" in
31275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31276   *) ac_try_echo=$ac_try;;
31277 esac
31278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31280   ac_status=$?
31281   grep -v '^ *+' conftest.er1 >conftest.err
31282   rm -f conftest.er1
31283   cat conftest.err >&5
31284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31285   (exit $ac_status); } >/dev/null; then
31286   if test -s conftest.err; then
31287     ac_cpp_err=$ac_c_preproc_warn_flag
31288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31289   else
31290     ac_cpp_err=
31291   fi
31292 else
31293   ac_cpp_err=yes
31294 fi
31295 if test -z "$ac_cpp_err"; then
31296   ac_header_preproc=yes
31297 else
31298   echo "$as_me: failed program was:" >&5
31299 sed 's/^/| /' conftest.$ac_ext >&5
31300
31301   ac_header_preproc=no
31302 fi
31303
31304 rm -f conftest.err conftest.$ac_ext
31305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31306 echo "${ECHO_T}$ac_header_preproc" >&6; }
31307
31308 # So?  What about this header?
31309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31310   yes:no: )
31311     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31315     ac_header_preproc=yes
31316     ;;
31317   no:yes:* )
31318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31320     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31321 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31322     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31324     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31325 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31328     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31330     ( cat <<\_ASBOX
31331 ## ----------------------------------------- ##
31332 ## Report this to wx-dev@lists.wxwidgets.org ##
31333 ## ----------------------------------------- ##
31334 _ASBOX
31335      ) | sed "s/^/$as_me: WARNING:     /" >&2
31336     ;;
31337 esac
31338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31341   echo $ECHO_N "(cached) $ECHO_C" >&6
31342 else
31343   eval "$as_ac_Header=\$ac_header_preproc"
31344 fi
31345 ac_res=`eval echo '${'$as_ac_Header'}'`
31346                { echo "$as_me:$LINENO: result: $ac_res" >&5
31347 echo "${ECHO_T}$ac_res" >&6; }
31348
31349 fi
31350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31351   cat >>confdefs.h <<_ACEOF
31352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31353 _ACEOF
31354
31355 fi
31356
31357 done
31358
31359     if test "${ac_cv_header_windows_h+set}" = set; then
31360   { echo "$as_me:$LINENO: checking for windows.h" >&5
31361 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
31362 if test "${ac_cv_header_windows_h+set}" = set; then
31363   echo $ECHO_N "(cached) $ECHO_C" >&6
31364 fi
31365 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
31366 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
31367 else
31368   # Is the header compilable?
31369 { echo "$as_me:$LINENO: checking windows.h usability" >&5
31370 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6; }
31371 cat >conftest.$ac_ext <<_ACEOF
31372 /* confdefs.h.  */
31373 _ACEOF
31374 cat confdefs.h >>conftest.$ac_ext
31375 cat >>conftest.$ac_ext <<_ACEOF
31376 /* end confdefs.h.  */
31377 $ac_includes_default
31378 #include <windows.h>
31379 _ACEOF
31380 rm -f conftest.$ac_objext
31381 if { (ac_try="$ac_compile"
31382 case "(($ac_try" in
31383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31384   *) ac_try_echo=$ac_try;;
31385 esac
31386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31387   (eval "$ac_compile") 2>conftest.er1
31388   ac_status=$?
31389   grep -v '^ *+' conftest.er1 >conftest.err
31390   rm -f conftest.er1
31391   cat conftest.err >&5
31392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393   (exit $ac_status); } &&
31394          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31395   { (case "(($ac_try" in
31396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31397   *) ac_try_echo=$ac_try;;
31398 esac
31399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31400   (eval "$ac_try") 2>&5
31401   ac_status=$?
31402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31403   (exit $ac_status); }; } &&
31404          { ac_try='test -s conftest.$ac_objext'
31405   { (case "(($ac_try" in
31406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31407   *) ac_try_echo=$ac_try;;
31408 esac
31409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31410   (eval "$ac_try") 2>&5
31411   ac_status=$?
31412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413   (exit $ac_status); }; }; then
31414   ac_header_compiler=yes
31415 else
31416   echo "$as_me: failed program was:" >&5
31417 sed 's/^/| /' conftest.$ac_ext >&5
31418
31419         ac_header_compiler=no
31420 fi
31421
31422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31424 echo "${ECHO_T}$ac_header_compiler" >&6; }
31425
31426 # Is the header present?
31427 { echo "$as_me:$LINENO: checking windows.h presence" >&5
31428 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6; }
31429 cat >conftest.$ac_ext <<_ACEOF
31430 /* confdefs.h.  */
31431 _ACEOF
31432 cat confdefs.h >>conftest.$ac_ext
31433 cat >>conftest.$ac_ext <<_ACEOF
31434 /* end confdefs.h.  */
31435 #include <windows.h>
31436 _ACEOF
31437 if { (ac_try="$ac_cpp conftest.$ac_ext"
31438 case "(($ac_try" in
31439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31440   *) ac_try_echo=$ac_try;;
31441 esac
31442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31443   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31444   ac_status=$?
31445   grep -v '^ *+' conftest.er1 >conftest.err
31446   rm -f conftest.er1
31447   cat conftest.err >&5
31448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449   (exit $ac_status); } >/dev/null; then
31450   if test -s conftest.err; then
31451     ac_cpp_err=$ac_c_preproc_warn_flag
31452     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31453   else
31454     ac_cpp_err=
31455   fi
31456 else
31457   ac_cpp_err=yes
31458 fi
31459 if test -z "$ac_cpp_err"; then
31460   ac_header_preproc=yes
31461 else
31462   echo "$as_me: failed program was:" >&5
31463 sed 's/^/| /' conftest.$ac_ext >&5
31464
31465   ac_header_preproc=no
31466 fi
31467
31468 rm -f conftest.err conftest.$ac_ext
31469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31470 echo "${ECHO_T}$ac_header_preproc" >&6; }
31471
31472 # So?  What about this header?
31473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31474   yes:no: )
31475     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
31476 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31477     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
31478 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
31479     ac_header_preproc=yes
31480     ;;
31481   no:yes:* )
31482     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
31483 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
31484     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
31485 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
31486     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
31487 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
31488     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
31489 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31490     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
31491 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
31492     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
31493 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
31494     ( cat <<\_ASBOX
31495 ## ----------------------------------------- ##
31496 ## Report this to wx-dev@lists.wxwidgets.org ##
31497 ## ----------------------------------------- ##
31498 _ASBOX
31499      ) | sed "s/^/$as_me: WARNING:     /" >&2
31500     ;;
31501 esac
31502 { echo "$as_me:$LINENO: checking for windows.h" >&5
31503 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
31504 if test "${ac_cv_header_windows_h+set}" = set; then
31505   echo $ECHO_N "(cached) $ECHO_C" >&6
31506 else
31507   ac_cv_header_windows_h=$ac_header_preproc
31508 fi
31509 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
31510 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
31511
31512 fi
31513 if test $ac_cv_header_windows_h = yes; then
31514   :
31515 else
31516
31517         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
31518 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
31519    { (exit 1); exit 1; }; }
31520
31521 fi
31522
31523
31524
31525             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
31526
31527     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
31528         LIBS="$LIBS -loleacc"
31529     fi
31530
31531     case "${host}" in
31532         *-*-cygwin* )
31533                         LIBS="$LIBS -lkernel32 -luser32"
31534     esac
31535
31536         if test "$wxUSE_ODBC" = "sys" ; then
31537         wxUSE_ODBC = "yes"
31538     fi
31539     if test "$wxUSE_ODBC" = "yes" ; then
31540         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
31541         cat >>confdefs.h <<\_ACEOF
31542 #define wxUSE_ODBC 1
31543 _ACEOF
31544
31545     fi
31546
31547         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
31548     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
31549
31550                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
31551
31552         WIN32INSTALL=win32install
31553
31554
31555 for ac_header in pbt.h
31556 do
31557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31559   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31562   echo $ECHO_N "(cached) $ECHO_C" >&6
31563 fi
31564 ac_res=`eval echo '${'$as_ac_Header'}'`
31565                { echo "$as_me:$LINENO: result: $ac_res" >&5
31566 echo "${ECHO_T}$ac_res" >&6; }
31567 else
31568   # Is the header compilable?
31569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31571 cat >conftest.$ac_ext <<_ACEOF
31572 /* confdefs.h.  */
31573 _ACEOF
31574 cat confdefs.h >>conftest.$ac_ext
31575 cat >>conftest.$ac_ext <<_ACEOF
31576 /* end confdefs.h.  */
31577 $ac_includes_default
31578 #include <$ac_header>
31579 _ACEOF
31580 rm -f conftest.$ac_objext
31581 if { (ac_try="$ac_compile"
31582 case "(($ac_try" in
31583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31584   *) ac_try_echo=$ac_try;;
31585 esac
31586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31587   (eval "$ac_compile") 2>conftest.er1
31588   ac_status=$?
31589   grep -v '^ *+' conftest.er1 >conftest.err
31590   rm -f conftest.er1
31591   cat conftest.err >&5
31592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593   (exit $ac_status); } &&
31594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31595   { (case "(($ac_try" in
31596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31597   *) ac_try_echo=$ac_try;;
31598 esac
31599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31600   (eval "$ac_try") 2>&5
31601   ac_status=$?
31602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31603   (exit $ac_status); }; } &&
31604          { ac_try='test -s conftest.$ac_objext'
31605   { (case "(($ac_try" in
31606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31607   *) ac_try_echo=$ac_try;;
31608 esac
31609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31610   (eval "$ac_try") 2>&5
31611   ac_status=$?
31612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31613   (exit $ac_status); }; }; then
31614   ac_header_compiler=yes
31615 else
31616   echo "$as_me: failed program was:" >&5
31617 sed 's/^/| /' conftest.$ac_ext >&5
31618
31619         ac_header_compiler=no
31620 fi
31621
31622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31624 echo "${ECHO_T}$ac_header_compiler" >&6; }
31625
31626 # Is the header present?
31627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31629 cat >conftest.$ac_ext <<_ACEOF
31630 /* confdefs.h.  */
31631 _ACEOF
31632 cat confdefs.h >>conftest.$ac_ext
31633 cat >>conftest.$ac_ext <<_ACEOF
31634 /* end confdefs.h.  */
31635 #include <$ac_header>
31636 _ACEOF
31637 if { (ac_try="$ac_cpp conftest.$ac_ext"
31638 case "(($ac_try" in
31639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31640   *) ac_try_echo=$ac_try;;
31641 esac
31642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31644   ac_status=$?
31645   grep -v '^ *+' conftest.er1 >conftest.err
31646   rm -f conftest.er1
31647   cat conftest.err >&5
31648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649   (exit $ac_status); } >/dev/null; then
31650   if test -s conftest.err; then
31651     ac_cpp_err=$ac_c_preproc_warn_flag
31652     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31653   else
31654     ac_cpp_err=
31655   fi
31656 else
31657   ac_cpp_err=yes
31658 fi
31659 if test -z "$ac_cpp_err"; then
31660   ac_header_preproc=yes
31661 else
31662   echo "$as_me: failed program was:" >&5
31663 sed 's/^/| /' conftest.$ac_ext >&5
31664
31665   ac_header_preproc=no
31666 fi
31667
31668 rm -f conftest.err conftest.$ac_ext
31669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31670 echo "${ECHO_T}$ac_header_preproc" >&6; }
31671
31672 # So?  What about this header?
31673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31674   yes:no: )
31675     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31679     ac_header_preproc=yes
31680     ;;
31681   no:yes:* )
31682     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31684     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31685 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31686     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31688     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31689 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31692     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31694     ( cat <<\_ASBOX
31695 ## ----------------------------------------- ##
31696 ## Report this to wx-dev@lists.wxwidgets.org ##
31697 ## ----------------------------------------- ##
31698 _ASBOX
31699      ) | sed "s/^/$as_me: WARNING:     /" >&2
31700     ;;
31701 esac
31702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31705   echo $ECHO_N "(cached) $ECHO_C" >&6
31706 else
31707   eval "$as_ac_Header=\$ac_header_preproc"
31708 fi
31709 ac_res=`eval echo '${'$as_ac_Header'}'`
31710                { echo "$as_me:$LINENO: result: $ac_res" >&5
31711 echo "${ECHO_T}$ac_res" >&6; }
31712
31713 fi
31714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31715   cat >>confdefs.h <<_ACEOF
31716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31717 _ACEOF
31718
31719 else
31720   cat >>confdefs.h <<\_ACEOF
31721 #define NEED_PBT_H 1
31722 _ACEOF
31723
31724 fi
31725
31726 done
31727
31728 fi
31729
31730 if test "$wxUSE_GUI" = "yes"; then
31731     USE_GUI=1
31732
31733     GUI_TK_LIBRARY=
31734
31735     WXGTK12=
31736     WXGTK127=
31737     WXGTK20=
31738     WXGPE=
31739
31740     if test "$wxUSE_COCOA" = 1 ; then
31741         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
31742             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
31743 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
31744             wxUSE_PRINTING_ARCHITECTURE=no
31745         fi
31746         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
31747             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
31748 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
31749             wxUSE_DRAG_AND_DROP=no
31750         fi
31751         if test "$wxUSE_DRAGIMAGE" = "yes"; then
31752             { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
31753 echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
31754             wxUSE_DRAGIMAGE=no
31755         fi
31756     fi
31757
31758     if test "$wxUSE_MSW" = 1 ; then
31759         TOOLKIT=MSW
31760         GUIDIST=MSW_DIST
31761
31762                 case "${host}" in
31763             *-*-mingw32* )
31764                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
31765         esac
31766     fi
31767
31768     if test "$wxUSE_GTK" = 1; then
31769                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
31770 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
31771
31772         gtk_version_cached=1
31773         if test "${wx_cv_lib_gtk+set}" = set; then
31774   echo $ECHO_N "(cached) $ECHO_C" >&6
31775 else
31776
31777                                                 gtk_version_cached=0
31778                 { echo "$as_me:$LINENO: result: " >&5
31779 echo "${ECHO_T}" >&6; }
31780
31781                                                 GTK_MODULES=
31782                 if test "$wxUSE_THREADS" = "yes"; then
31783                     GTK_MODULES=gthread
31784                 fi
31785
31786                                 wx_cv_lib_gtk=
31787                 if test "x$wxGTK_VERSION" != "x1"
31788                 then
31789                                                                                 case "${host}" in
31790                         *-*-solaris2* )
31791                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
31792                             enable_gtktest=no
31793                             fi
31794                     esac
31795
31796                     # Check whether --enable-gtktest was given.
31797 if test "${enable_gtktest+set}" = set; then
31798   enableval=$enable_gtktest;
31799 else
31800   enable_gtktest=yes
31801 fi
31802
31803
31804   pkg_config_args=gtk+-2.0
31805   for module in . $GTK_MODULES
31806   do
31807       case "$module" in
31808          gthread)
31809              pkg_config_args="$pkg_config_args gthread-2.0"
31810          ;;
31811       esac
31812   done
31813
31814   no_gtk=""
31815
31816   # Extract the first word of "pkg-config", so it can be a program name with args.
31817 set dummy pkg-config; ac_word=$2
31818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31820 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31821   echo $ECHO_N "(cached) $ECHO_C" >&6
31822 else
31823   case $PKG_CONFIG in
31824   [\\/]* | ?:[\\/]*)
31825   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31826   ;;
31827   *)
31828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31829 for as_dir in $PATH
31830 do
31831   IFS=$as_save_IFS
31832   test -z "$as_dir" && as_dir=.
31833   for ac_exec_ext in '' $ac_executable_extensions; do
31834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31835     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31837     break 2
31838   fi
31839 done
31840 done
31841 IFS=$as_save_IFS
31842
31843   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
31844   ;;
31845 esac
31846 fi
31847 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31848 if test -n "$PKG_CONFIG"; then
31849   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31850 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31851 else
31852   { echo "$as_me:$LINENO: result: no" >&5
31853 echo "${ECHO_T}no" >&6; }
31854 fi
31855
31856
31857
31858   if test x$PKG_CONFIG != xno ; then
31859     if pkg-config --atleast-pkgconfig-version 0.7 ; then
31860       :
31861     else
31862       echo "*** pkg-config too old; version 0.7 or better required."
31863       no_gtk=yes
31864       PKG_CONFIG=no
31865     fi
31866   else
31867     no_gtk=yes
31868   fi
31869
31870   min_gtk_version=2.0.0
31871   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
31872 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
31873
31874   if test x$PKG_CONFIG != xno ; then
31875     ## don't try to run the test against uninstalled libtool libs
31876     if $PKG_CONFIG --uninstalled $pkg_config_args; then
31877           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
31878           enable_gtktest=no
31879     fi
31880
31881     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
31882           :
31883     else
31884           no_gtk=yes
31885     fi
31886   fi
31887
31888   if test x"$no_gtk" = x ; then
31889     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
31890     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
31891     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
31892            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31893     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
31894            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31895     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
31896            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31897     if test "x$enable_gtktest" = "xyes" ; then
31898       ac_save_CFLAGS="$CFLAGS"
31899       ac_save_LIBS="$LIBS"
31900       CFLAGS="$CFLAGS $GTK_CFLAGS"
31901       LIBS="$GTK_LIBS $LIBS"
31902       rm -f conf.gtktest
31903       if test "$cross_compiling" = yes; then
31904   echo $ac_n "cross compiling; assumed OK... $ac_c"
31905 else
31906   cat >conftest.$ac_ext <<_ACEOF
31907 /* confdefs.h.  */
31908 _ACEOF
31909 cat confdefs.h >>conftest.$ac_ext
31910 cat >>conftest.$ac_ext <<_ACEOF
31911 /* end confdefs.h.  */
31912
31913 #include <gtk/gtk.h>
31914 #include <stdio.h>
31915 #include <stdlib.h>
31916
31917 int
31918 main ()
31919 {
31920   int major, minor, micro;
31921   char *tmp_version;
31922
31923   system ("touch conf.gtktest");
31924
31925   /* HP/UX 9 (%@#!) writes to sscanf strings */
31926   tmp_version = g_strdup("$min_gtk_version");
31927   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31928      printf("%s, bad version string\n", "$min_gtk_version");
31929      exit(1);
31930    }
31931
31932   if ((gtk_major_version != $gtk_config_major_version) ||
31933       (gtk_minor_version != $gtk_config_minor_version) ||
31934       (gtk_micro_version != $gtk_config_micro_version))
31935     {
31936       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31937              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31938              gtk_major_version, gtk_minor_version, gtk_micro_version);
31939       printf ("*** was found! If pkg-config was correct, then it is best\n");
31940       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31941       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31942       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31943       printf("*** required on your system.\n");
31944       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
31945       printf("*** to point to the correct configuration files\n");
31946     }
31947   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31948            (gtk_minor_version != GTK_MINOR_VERSION) ||
31949            (gtk_micro_version != GTK_MICRO_VERSION))
31950     {
31951       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31952              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31953       printf("*** library (version %d.%d.%d)\n",
31954              gtk_major_version, gtk_minor_version, gtk_micro_version);
31955     }
31956   else
31957     {
31958       if ((gtk_major_version > major) ||
31959         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31960         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31961       {
31962         return 0;
31963        }
31964      else
31965       {
31966         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31967                gtk_major_version, gtk_minor_version, gtk_micro_version);
31968         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31969                major, minor, micro);
31970         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31971         printf("***\n");
31972         printf("*** If you have already installed a sufficiently new version, this error\n");
31973         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
31974         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31975         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
31976         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
31977         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31978         printf("*** so that the correct libraries are found at run-time))\n");
31979       }
31980     }
31981   return 1;
31982 }
31983
31984 _ACEOF
31985 rm -f conftest$ac_exeext
31986 if { (ac_try="$ac_link"
31987 case "(($ac_try" in
31988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989   *) ac_try_echo=$ac_try;;
31990 esac
31991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992   (eval "$ac_link") 2>&5
31993   ac_status=$?
31994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31996   { (case "(($ac_try" in
31997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31998   *) ac_try_echo=$ac_try;;
31999 esac
32000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32001   (eval "$ac_try") 2>&5
32002   ac_status=$?
32003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004   (exit $ac_status); }; }; then
32005   :
32006 else
32007   echo "$as_me: program exited with status $ac_status" >&5
32008 echo "$as_me: failed program was:" >&5
32009 sed 's/^/| /' conftest.$ac_ext >&5
32010
32011 ( exit $ac_status )
32012 no_gtk=yes
32013 fi
32014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32015 fi
32016
32017
32018        CFLAGS="$ac_save_CFLAGS"
32019        LIBS="$ac_save_LIBS"
32020      fi
32021   fi
32022   if test "x$no_gtk" = x ; then
32023      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
32024 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
32025      wx_cv_lib_gtk=2.0
32026   else
32027      { echo "$as_me:$LINENO: result: no" >&5
32028 echo "${ECHO_T}no" >&6; }
32029      if test "$PKG_CONFIG" = "no" ; then
32030        echo "*** A new enough version of pkg-config was not found."
32031        echo "*** See http://pkgconfig.sourceforge.net"
32032      else
32033        if test -f conf.gtktest ; then
32034         :
32035        else
32036           echo "*** Could not run GTK+ test program, checking why..."
32037           ac_save_CFLAGS="$CFLAGS"
32038           ac_save_LIBS="$LIBS"
32039           CFLAGS="$CFLAGS $GTK_CFLAGS"
32040           LIBS="$LIBS $GTK_LIBS"
32041           cat >conftest.$ac_ext <<_ACEOF
32042 /* confdefs.h.  */
32043 _ACEOF
32044 cat confdefs.h >>conftest.$ac_ext
32045 cat >>conftest.$ac_ext <<_ACEOF
32046 /* end confdefs.h.  */
32047
32048 #include <gtk/gtk.h>
32049 #include <stdio.h>
32050
32051 int
32052 main ()
32053 {
32054  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
32055   ;
32056   return 0;
32057 }
32058 _ACEOF
32059 rm -f conftest.$ac_objext conftest$ac_exeext
32060 if { (ac_try="$ac_link"
32061 case "(($ac_try" in
32062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32063   *) ac_try_echo=$ac_try;;
32064 esac
32065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32066   (eval "$ac_link") 2>conftest.er1
32067   ac_status=$?
32068   grep -v '^ *+' conftest.er1 >conftest.err
32069   rm -f conftest.er1
32070   cat conftest.err >&5
32071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072   (exit $ac_status); } &&
32073          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32074   { (case "(($ac_try" in
32075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32076   *) ac_try_echo=$ac_try;;
32077 esac
32078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32079   (eval "$ac_try") 2>&5
32080   ac_status=$?
32081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082   (exit $ac_status); }; } &&
32083          { ac_try='test -s conftest$ac_exeext'
32084   { (case "(($ac_try" in
32085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32086   *) ac_try_echo=$ac_try;;
32087 esac
32088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32089   (eval "$ac_try") 2>&5
32090   ac_status=$?
32091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092   (exit $ac_status); }; }; then
32093    echo "*** The test program compiled, but did not run. This usually means"
32094           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
32095           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
32096           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
32097           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
32098           echo "*** is required on your system"
32099           echo "***"
32100           echo "*** If you have an old version installed, it is best to remove it, although"
32101           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
32102 else
32103   echo "$as_me: failed program was:" >&5
32104 sed 's/^/| /' conftest.$ac_ext >&5
32105
32106          echo "*** The test program failed to compile or link. See the file config.log for the"
32107           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
32108 fi
32109
32110 rm -f core conftest.err conftest.$ac_objext \
32111       conftest$ac_exeext conftest.$ac_ext
32112           CFLAGS="$ac_save_CFLAGS"
32113           LIBS="$ac_save_LIBS"
32114        fi
32115      fi
32116      GTK_CFLAGS=""
32117      GTK_LIBS=""
32118      :
32119   fi
32120
32121
32122   rm -f conf.gtktest
32123
32124
32125                                         case "${host}" in
32126                         *-*-solaris2* )
32127                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
32128                                 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
32129                                 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
32130                             fi
32131                                                         if test "$wxUSE_SHARED" != "yes"; then
32132                                 GTK_LIBS="$GTK_LIBS -lX11"
32133                             fi
32134                     esac
32135                 fi
32136
32137                                 if test -z "$wx_cv_lib_gtk"; then
32138                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
32139
32140 # Check whether --with-gtk-prefix was given.
32141 if test "${with_gtk_prefix+set}" = set; then
32142   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
32143 else
32144   gtk_config_prefix=""
32145 fi
32146
32147
32148 # Check whether --with-gtk-exec-prefix was given.
32149 if test "${with_gtk_exec_prefix+set}" = set; then
32150   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
32151 else
32152   gtk_config_exec_prefix=""
32153 fi
32154
32155 # Check whether --enable-gtktest was given.
32156 if test "${enable_gtktest+set}" = set; then
32157   enableval=$enable_gtktest;
32158 else
32159   enable_gtktest=yes
32160 fi
32161
32162
32163   for module in . $GTK_MODULES
32164   do
32165       case "$module" in
32166          gthread)
32167              gtk_config_args="$gtk_config_args gthread"
32168          ;;
32169       esac
32170   done
32171
32172   if test x$gtk_config_exec_prefix != x ; then
32173      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
32174      if test x${GTK_CONFIG+set} != xset ; then
32175         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
32176      fi
32177   fi
32178   if test x$gtk_config_prefix != x ; then
32179      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
32180      if test x${GTK_CONFIG+set} != xset ; then
32181         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
32182      fi
32183   fi
32184
32185   # Extract the first word of "gtk-config", so it can be a program name with args.
32186 set dummy gtk-config; ac_word=$2
32187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32189 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
32190   echo $ECHO_N "(cached) $ECHO_C" >&6
32191 else
32192   case $GTK_CONFIG in
32193   [\\/]* | ?:[\\/]*)
32194   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
32195   ;;
32196   *)
32197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32198 for as_dir in $PATH
32199 do
32200   IFS=$as_save_IFS
32201   test -z "$as_dir" && as_dir=.
32202   for ac_exec_ext in '' $ac_executable_extensions; do
32203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32204     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32206     break 2
32207   fi
32208 done
32209 done
32210 IFS=$as_save_IFS
32211
32212   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
32213   ;;
32214 esac
32215 fi
32216 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
32217 if test -n "$GTK_CONFIG"; then
32218   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
32219 echo "${ECHO_T}$GTK_CONFIG" >&6; }
32220 else
32221   { echo "$as_me:$LINENO: result: no" >&5
32222 echo "${ECHO_T}no" >&6; }
32223 fi
32224
32225
32226   min_gtk_version=1.2.7
32227   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
32228 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
32229   no_gtk=""
32230   if test "$GTK_CONFIG" = "no" ; then
32231     no_gtk=yes
32232   else
32233     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
32234     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
32235     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
32236            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32237     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
32238            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32239     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
32240            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32241     if test "x$enable_gtktest" = "xyes" ; then
32242       ac_save_CFLAGS="$CFLAGS"
32243       ac_save_LIBS="$LIBS"
32244       CFLAGS="$CFLAGS $GTK_CFLAGS"
32245       LIBS="$GTK_LIBS $LIBS"
32246       rm -f conf.gtktest
32247       if test "$cross_compiling" = yes; then
32248   echo $ac_n "cross compiling; assumed OK... $ac_c"
32249 else
32250   cat >conftest.$ac_ext <<_ACEOF
32251 /* confdefs.h.  */
32252 _ACEOF
32253 cat confdefs.h >>conftest.$ac_ext
32254 cat >>conftest.$ac_ext <<_ACEOF
32255 /* end confdefs.h.  */
32256
32257 #include <gtk/gtk.h>
32258 #include <stdio.h>
32259 #include <stdlib.h>
32260
32261 int
32262 main ()
32263 {
32264   int major, minor, micro;
32265   char *tmp_version;
32266
32267   system ("touch conf.gtktest");
32268
32269   /* HP/UX 9 (%@#!) writes to sscanf strings */
32270   tmp_version = g_strdup("$min_gtk_version");
32271   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
32272      printf("%s, bad version string\n", "$min_gtk_version");
32273      exit(1);
32274    }
32275
32276   if ((gtk_major_version != $gtk_config_major_version) ||
32277       (gtk_minor_version != $gtk_config_minor_version) ||
32278       (gtk_micro_version != $gtk_config_micro_version))
32279     {
32280       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
32281              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
32282              gtk_major_version, gtk_minor_version, gtk_micro_version);
32283       printf ("*** was found! If gtk-config was correct, then it is best\n");
32284       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
32285       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
32286       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
32287       printf("*** required on your system.\n");
32288       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
32289       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
32290       printf("*** before re-running configure\n");
32291     }
32292 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
32293   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
32294            (gtk_minor_version != GTK_MINOR_VERSION) ||
32295            (gtk_micro_version != GTK_MICRO_VERSION))
32296     {
32297       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
32298              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
32299       printf("*** library (version %d.%d.%d)\n",
32300              gtk_major_version, gtk_minor_version, gtk_micro_version);
32301     }
32302 #endif /* defined (GTK_MAJOR_VERSION) ... */
32303   else
32304     {
32305       if ((gtk_major_version > major) ||
32306         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
32307         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
32308       {
32309         return 0;
32310        }
32311      else
32312       {
32313         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
32314                gtk_major_version, gtk_minor_version, gtk_micro_version);
32315         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
32316                major, minor, micro);
32317         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
32318         printf("***\n");
32319         printf("*** If you have already installed a sufficiently new version, this error\n");
32320         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
32321         printf("*** being found. The easiest way to fix this is to remove the old version\n");
32322         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
32323         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
32324         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
32325         printf("*** so that the correct libraries are found at run-time))\n");
32326       }
32327     }
32328   return 1;
32329 }
32330
32331 _ACEOF
32332 rm -f conftest$ac_exeext
32333 if { (ac_try="$ac_link"
32334 case "(($ac_try" in
32335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32336   *) ac_try_echo=$ac_try;;
32337 esac
32338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32339   (eval "$ac_link") 2>&5
32340   ac_status=$?
32341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32343   { (case "(($ac_try" in
32344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32345   *) ac_try_echo=$ac_try;;
32346 esac
32347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32348   (eval "$ac_try") 2>&5
32349   ac_status=$?
32350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351   (exit $ac_status); }; }; then
32352   :
32353 else
32354   echo "$as_me: program exited with status $ac_status" >&5
32355 echo "$as_me: failed program was:" >&5
32356 sed 's/^/| /' conftest.$ac_ext >&5
32357
32358 ( exit $ac_status )
32359 no_gtk=yes
32360 fi
32361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32362 fi
32363
32364
32365        CFLAGS="$ac_save_CFLAGS"
32366        LIBS="$ac_save_LIBS"
32367      fi
32368   fi
32369   if test "x$no_gtk" = x ; then
32370      { echo "$as_me:$LINENO: result: yes" >&5
32371 echo "${ECHO_T}yes" >&6; }
32372      wx_cv_lib_gtk=1.2.7
32373   else
32374      { echo "$as_me:$LINENO: result: no" >&5
32375 echo "${ECHO_T}no" >&6; }
32376      if test "$GTK_CONFIG" = "no" ; then
32377        echo "*** The gtk-config script installed by GTK could not be found"
32378        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
32379        echo "*** your path, or set the GTK_CONFIG environment variable to the"
32380        echo "*** full path to gtk-config."
32381      else
32382        if test -f conf.gtktest ; then
32383         :
32384        else
32385           echo "*** Could not run GTK test program, checking why..."
32386           CFLAGS="$CFLAGS $GTK_CFLAGS"
32387           LIBS="$LIBS $GTK_LIBS"
32388           cat >conftest.$ac_ext <<_ACEOF
32389 /* confdefs.h.  */
32390 _ACEOF
32391 cat confdefs.h >>conftest.$ac_ext
32392 cat >>conftest.$ac_ext <<_ACEOF
32393 /* end confdefs.h.  */
32394
32395 #include <gtk/gtk.h>
32396 #include <stdio.h>
32397
32398 int
32399 main ()
32400 {
32401  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
32402   ;
32403   return 0;
32404 }
32405 _ACEOF
32406 rm -f conftest.$ac_objext conftest$ac_exeext
32407 if { (ac_try="$ac_link"
32408 case "(($ac_try" in
32409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32410   *) ac_try_echo=$ac_try;;
32411 esac
32412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32413   (eval "$ac_link") 2>conftest.er1
32414   ac_status=$?
32415   grep -v '^ *+' conftest.er1 >conftest.err
32416   rm -f conftest.er1
32417   cat conftest.err >&5
32418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419   (exit $ac_status); } &&
32420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32421   { (case "(($ac_try" in
32422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32423   *) ac_try_echo=$ac_try;;
32424 esac
32425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32426   (eval "$ac_try") 2>&5
32427   ac_status=$?
32428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32429   (exit $ac_status); }; } &&
32430          { ac_try='test -s conftest$ac_exeext'
32431   { (case "(($ac_try" in
32432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32433   *) ac_try_echo=$ac_try;;
32434 esac
32435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32436   (eval "$ac_try") 2>&5
32437   ac_status=$?
32438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439   (exit $ac_status); }; }; then
32440    echo "*** The test program compiled, but did not run. This usually means"
32441           echo "*** that the run-time linker is not finding GTK or finding the wrong"
32442           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
32443           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
32444           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
32445           echo "*** is required on your system"
32446           echo "***"
32447           echo "*** If you have an old version installed, it is best to remove it, although"
32448           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
32449           echo "***"
32450           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
32451           echo "*** came with the system with the command"
32452           echo "***"
32453           echo "***    rpm --erase --nodeps gtk gtk-devel"
32454 else
32455   echo "$as_me: failed program was:" >&5
32456 sed 's/^/| /' conftest.$ac_ext >&5
32457
32458          echo "*** The test program failed to compile or link. See the file config.log for the"
32459           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
32460           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
32461           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
32462 fi
32463
32464 rm -f core conftest.err conftest.$ac_objext \
32465       conftest$ac_exeext conftest.$ac_ext
32466           CFLAGS="$ac_save_CFLAGS"
32467           LIBS="$ac_save_LIBS"
32468        fi
32469      fi
32470      GTK_CFLAGS=""
32471      GTK_LIBS=""
32472      :
32473   fi
32474
32475
32476   rm -f conf.gtktest
32477
32478
32479                         if test -z "$wx_cv_lib_gtk"; then
32480
32481 # Check whether --with-gtk-prefix was given.
32482 if test "${with_gtk_prefix+set}" = set; then
32483   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
32484 else
32485   gtk_config_prefix=""
32486 fi
32487
32488
32489 # Check whether --with-gtk-exec-prefix was given.
32490 if test "${with_gtk_exec_prefix+set}" = set; then
32491   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
32492 else
32493   gtk_config_exec_prefix=""
32494 fi
32495
32496 # Check whether --enable-gtktest was given.
32497 if test "${enable_gtktest+set}" = set; then
32498   enableval=$enable_gtktest;
32499 else
32500   enable_gtktest=yes
32501 fi
32502
32503
32504   for module in . $GTK_MODULES
32505   do
32506       case "$module" in
32507          gthread)
32508              gtk_config_args="$gtk_config_args gthread"
32509          ;;
32510       esac
32511   done
32512
32513   if test x$gtk_config_exec_prefix != x ; then
32514      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
32515      if test x${GTK_CONFIG+set} != xset ; then
32516         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
32517      fi
32518   fi
32519   if test x$gtk_config_prefix != x ; then
32520      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
32521      if test x${GTK_CONFIG+set} != xset ; then
32522         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
32523      fi
32524   fi
32525
32526   # Extract the first word of "gtk-config", so it can be a program name with args.
32527 set dummy gtk-config; ac_word=$2
32528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32530 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
32531   echo $ECHO_N "(cached) $ECHO_C" >&6
32532 else
32533   case $GTK_CONFIG in
32534   [\\/]* | ?:[\\/]*)
32535   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
32536   ;;
32537   *)
32538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32539 for as_dir in $PATH
32540 do
32541   IFS=$as_save_IFS
32542   test -z "$as_dir" && as_dir=.
32543   for ac_exec_ext in '' $ac_executable_extensions; do
32544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32545     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32547     break 2
32548   fi
32549 done
32550 done
32551 IFS=$as_save_IFS
32552
32553   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
32554   ;;
32555 esac
32556 fi
32557 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
32558 if test -n "$GTK_CONFIG"; then
32559   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
32560 echo "${ECHO_T}$GTK_CONFIG" >&6; }
32561 else
32562   { echo "$as_me:$LINENO: result: no" >&5
32563 echo "${ECHO_T}no" >&6; }
32564 fi
32565
32566
32567   min_gtk_version=1.2.3
32568   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
32569 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
32570   no_gtk=""
32571   if test "$GTK_CONFIG" = "no" ; then
32572     no_gtk=yes
32573   else
32574     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
32575     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
32576     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
32577            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32578     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
32579            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32580     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
32581            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32582     if test "x$enable_gtktest" = "xyes" ; then
32583       ac_save_CFLAGS="$CFLAGS"
32584       ac_save_LIBS="$LIBS"
32585       CFLAGS="$CFLAGS $GTK_CFLAGS"
32586       LIBS="$GTK_LIBS $LIBS"
32587       rm -f conf.gtktest
32588       if test "$cross_compiling" = yes; then
32589   echo $ac_n "cross compiling; assumed OK... $ac_c"
32590 else
32591   cat >conftest.$ac_ext <<_ACEOF
32592 /* confdefs.h.  */
32593 _ACEOF
32594 cat confdefs.h >>conftest.$ac_ext
32595 cat >>conftest.$ac_ext <<_ACEOF
32596 /* end confdefs.h.  */
32597
32598 #include <gtk/gtk.h>
32599 #include <stdio.h>
32600 #include <stdlib.h>
32601
32602 int
32603 main ()
32604 {
32605   int major, minor, micro;
32606   char *tmp_version;
32607
32608   system ("touch conf.gtktest");
32609
32610   /* HP/UX 9 (%@#!) writes to sscanf strings */
32611   tmp_version = g_strdup("$min_gtk_version");
32612   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
32613      printf("%s, bad version string\n", "$min_gtk_version");
32614      exit(1);
32615    }
32616
32617   if ((gtk_major_version != $gtk_config_major_version) ||
32618       (gtk_minor_version != $gtk_config_minor_version) ||
32619       (gtk_micro_version != $gtk_config_micro_version))
32620     {
32621       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
32622              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
32623              gtk_major_version, gtk_minor_version, gtk_micro_version);
32624       printf ("*** was found! If gtk-config was correct, then it is best\n");
32625       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
32626       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
32627       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
32628       printf("*** required on your system.\n");
32629       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
32630       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
32631       printf("*** before re-running configure\n");
32632     }
32633 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
32634   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
32635            (gtk_minor_version != GTK_MINOR_VERSION) ||
32636            (gtk_micro_version != GTK_MICRO_VERSION))
32637     {
32638       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
32639              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
32640       printf("*** library (version %d.%d.%d)\n",
32641              gtk_major_version, gtk_minor_version, gtk_micro_version);
32642     }
32643 #endif /* defined (GTK_MAJOR_VERSION) ... */
32644   else
32645     {
32646       if ((gtk_major_version > major) ||
32647         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
32648         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
32649       {
32650         return 0;
32651        }
32652      else
32653       {
32654         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
32655                gtk_major_version, gtk_minor_version, gtk_micro_version);
32656         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
32657                major, minor, micro);
32658         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
32659         printf("***\n");
32660         printf("*** If you have already installed a sufficiently new version, this error\n");
32661         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
32662         printf("*** being found. The easiest way to fix this is to remove the old version\n");
32663         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
32664         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
32665         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
32666         printf("*** so that the correct libraries are found at run-time))\n");
32667       }
32668     }
32669   return 1;
32670 }
32671
32672 _ACEOF
32673 rm -f conftest$ac_exeext
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
32679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32680   (eval "$ac_link") 2>&5
32681   ac_status=$?
32682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32684   { (case "(($ac_try" in
32685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32686   *) ac_try_echo=$ac_try;;
32687 esac
32688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32689   (eval "$ac_try") 2>&5
32690   ac_status=$?
32691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692   (exit $ac_status); }; }; then
32693   :
32694 else
32695   echo "$as_me: program exited with status $ac_status" >&5
32696 echo "$as_me: failed program was:" >&5
32697 sed 's/^/| /' conftest.$ac_ext >&5
32698
32699 ( exit $ac_status )
32700 no_gtk=yes
32701 fi
32702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32703 fi
32704
32705
32706        CFLAGS="$ac_save_CFLAGS"
32707        LIBS="$ac_save_LIBS"
32708      fi
32709   fi
32710   if test "x$no_gtk" = x ; then
32711      { echo "$as_me:$LINENO: result: yes" >&5
32712 echo "${ECHO_T}yes" >&6; }
32713      wx_cv_lib_gtk=1.2.3
32714   else
32715      { echo "$as_me:$LINENO: result: no" >&5
32716 echo "${ECHO_T}no" >&6; }
32717      if test "$GTK_CONFIG" = "no" ; then
32718        echo "*** The gtk-config script installed by GTK could not be found"
32719        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
32720        echo "*** your path, or set the GTK_CONFIG environment variable to the"
32721        echo "*** full path to gtk-config."
32722      else
32723        if test -f conf.gtktest ; then
32724         :
32725        else
32726           echo "*** Could not run GTK test program, checking why..."
32727           CFLAGS="$CFLAGS $GTK_CFLAGS"
32728           LIBS="$LIBS $GTK_LIBS"
32729           cat >conftest.$ac_ext <<_ACEOF
32730 /* confdefs.h.  */
32731 _ACEOF
32732 cat confdefs.h >>conftest.$ac_ext
32733 cat >>conftest.$ac_ext <<_ACEOF
32734 /* end confdefs.h.  */
32735
32736 #include <gtk/gtk.h>
32737 #include <stdio.h>
32738
32739 int
32740 main ()
32741 {
32742  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
32743   ;
32744   return 0;
32745 }
32746 _ACEOF
32747 rm -f conftest.$ac_objext conftest$ac_exeext
32748 if { (ac_try="$ac_link"
32749 case "(($ac_try" in
32750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32751   *) ac_try_echo=$ac_try;;
32752 esac
32753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32754   (eval "$ac_link") 2>conftest.er1
32755   ac_status=$?
32756   grep -v '^ *+' conftest.er1 >conftest.err
32757   rm -f conftest.er1
32758   cat conftest.err >&5
32759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760   (exit $ac_status); } &&
32761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32762   { (case "(($ac_try" in
32763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32764   *) ac_try_echo=$ac_try;;
32765 esac
32766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32767   (eval "$ac_try") 2>&5
32768   ac_status=$?
32769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770   (exit $ac_status); }; } &&
32771          { ac_try='test -s conftest$ac_exeext'
32772   { (case "(($ac_try" in
32773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32774   *) ac_try_echo=$ac_try;;
32775 esac
32776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777   (eval "$ac_try") 2>&5
32778   ac_status=$?
32779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780   (exit $ac_status); }; }; then
32781    echo "*** The test program compiled, but did not run. This usually means"
32782           echo "*** that the run-time linker is not finding GTK or finding the wrong"
32783           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
32784           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
32785           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
32786           echo "*** is required on your system"
32787           echo "***"
32788           echo "*** If you have an old version installed, it is best to remove it, although"
32789           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
32790           echo "***"
32791           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
32792           echo "*** came with the system with the command"
32793           echo "***"
32794           echo "***    rpm --erase --nodeps gtk gtk-devel"
32795 else
32796   echo "$as_me: failed program was:" >&5
32797 sed 's/^/| /' conftest.$ac_ext >&5
32798
32799          echo "*** The test program failed to compile or link. See the file config.log for the"
32800           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
32801           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
32802           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
32803 fi
32804
32805 rm -f core conftest.err conftest.$ac_objext \
32806       conftest$ac_exeext conftest.$ac_ext
32807           CFLAGS="$ac_save_CFLAGS"
32808           LIBS="$ac_save_LIBS"
32809        fi
32810      fi
32811      GTK_CFLAGS=""
32812      GTK_LIBS=""
32813      :
32814   fi
32815
32816
32817   rm -f conf.gtktest
32818
32819                         fi
32820                     fi
32821                 fi
32822
32823                 if test -z "$wx_cv_lib_gtk"; then
32824                                         wx_cv_lib_gtk=none
32825                 else
32826                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
32827                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
32828                 fi
32829
32830
32831 fi
32832
32833
32834                         if test "$gtk_version_cached" = 1; then
32835             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
32836 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
32837         fi
32838
32839         case "$wx_cv_lib_gtk" in
32840             2.0)    WXGTK20=1
32841                     TOOLKIT_VERSION=2
32842                     ;;
32843             1.2.7)  WXGTK127=1
32844                     WXGTK12=1
32845                     ;;
32846             1.2.3)  WXGTK12=1
32847                     ;;
32848             *)      { { echo "$as_me:$LINENO: error:
32849 The development files for GTK+ were not found. For GTK+ 2, please
32850 ensure that pkg-config is in the path and that gtk+-2.0.pc is
32851 installed. For GTK+ 1.2 please check that gtk-config is in the path,
32852 and that the version is 1.2.3 or above. Also check that the
32853 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
32854 --libs' are in the LD_LIBRARY_PATH or equivalent.
32855                             " >&5
32856 echo "$as_me: error:
32857 The development files for GTK+ were not found. For GTK+ 2, please
32858 ensure that pkg-config is in the path and that gtk+-2.0.pc is
32859 installed. For GTK+ 1.2 please check that gtk-config is in the path,
32860 and that the version is 1.2.3 or above. Also check that the
32861 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
32862 --libs' are in the LD_LIBRARY_PATH or equivalent.
32863                             " >&2;}
32864    { (exit 1); exit 1; }; }
32865                     ;;
32866         esac
32867
32868         if test "$WXGTK20" = 1; then
32869             save_CFLAGS="$CFLAGS"
32870             save_LIBS="$LIBS"
32871             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
32872             LIBS="$LIBS $wx_cv_libs_gtk"
32873
32874                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
32875 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
32876 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
32877   echo $ECHO_N "(cached) $ECHO_C" >&6
32878 else
32879   cat >conftest.$ac_ext <<_ACEOF
32880 /* confdefs.h.  */
32881 _ACEOF
32882 cat confdefs.h >>conftest.$ac_ext
32883 cat >>conftest.$ac_ext <<_ACEOF
32884 /* end confdefs.h.  */
32885 #include <gtk/gtk.h>
32886
32887 int
32888 main ()
32889 {
32890 #ifndef gtk_icon_size_lookup
32891   char *p = (char *) gtk_icon_size_lookup;
32892   return !p;
32893 #endif
32894
32895   ;
32896   return 0;
32897 }
32898 _ACEOF
32899 rm -f conftest.$ac_objext
32900 if { (ac_try="$ac_compile"
32901 case "(($ac_try" in
32902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32903   *) ac_try_echo=$ac_try;;
32904 esac
32905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32906   (eval "$ac_compile") 2>conftest.er1
32907   ac_status=$?
32908   grep -v '^ *+' conftest.er1 >conftest.err
32909   rm -f conftest.er1
32910   cat conftest.err >&5
32911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912   (exit $ac_status); } &&
32913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32914   { (case "(($ac_try" in
32915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916   *) ac_try_echo=$ac_try;;
32917 esac
32918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32919   (eval "$ac_try") 2>&5
32920   ac_status=$?
32921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922   (exit $ac_status); }; } &&
32923          { ac_try='test -s conftest.$ac_objext'
32924   { (case "(($ac_try" in
32925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32926   *) ac_try_echo=$ac_try;;
32927 esac
32928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32929   (eval "$ac_try") 2>&5
32930   ac_status=$?
32931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932   (exit $ac_status); }; }; then
32933   ac_cv_have_decl_gtk_icon_size_lookup=yes
32934 else
32935   echo "$as_me: failed program was:" >&5
32936 sed 's/^/| /' conftest.$ac_ext >&5
32937
32938         ac_cv_have_decl_gtk_icon_size_lookup=no
32939 fi
32940
32941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32942 fi
32943 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
32944 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
32945 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
32946
32947 cat >>confdefs.h <<_ACEOF
32948 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
32949 _ACEOF
32950
32951
32952 else
32953   cat >>confdefs.h <<_ACEOF
32954 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
32955 _ACEOF
32956
32957 cat >>confdefs.h <<\_ACEOF
32958 #define NEED_GTK_ICON_SIZE_LOOKUP 1
32959 _ACEOF
32960
32961 fi
32962
32963
32964
32965                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
32966 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
32967             cat >conftest.$ac_ext <<_ACEOF
32968 /* confdefs.h.  */
32969 _ACEOF
32970 cat confdefs.h >>conftest.$ac_ext
32971 cat >>conftest.$ac_ext <<_ACEOF
32972 /* end confdefs.h.  */
32973
32974                             #include <gtk/gtk.h>
32975
32976 int
32977 main ()
32978 {
32979
32980                             #if !GTK_CHECK_VERSION(2,6,0)
32981                             Not GTK+ 2.6
32982                             #endif
32983
32984   ;
32985   return 0;
32986 }
32987 _ACEOF
32988 rm -f conftest.$ac_objext
32989 if { (ac_try="$ac_compile"
32990 case "(($ac_try" in
32991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32992   *) ac_try_echo=$ac_try;;
32993 esac
32994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32995   (eval "$ac_compile") 2>conftest.er1
32996   ac_status=$?
32997   grep -v '^ *+' conftest.er1 >conftest.err
32998   rm -f conftest.er1
32999   cat conftest.err >&5
33000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001   (exit $ac_status); } &&
33002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33003   { (case "(($ac_try" in
33004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005   *) ac_try_echo=$ac_try;;
33006 esac
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008   (eval "$ac_try") 2>&5
33009   ac_status=$?
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); }; } &&
33012          { ac_try='test -s conftest.$ac_objext'
33013   { (case "(($ac_try" in
33014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33015   *) ac_try_echo=$ac_try;;
33016 esac
33017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33018   (eval "$ac_try") 2>&5
33019   ac_status=$?
33020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021   (exit $ac_status); }; }; then
33022
33023                             cat >>confdefs.h <<\_ACEOF
33024 #define __WXGTK26__ 1
33025 _ACEOF
33026
33027                             cat >>confdefs.h <<\_ACEOF
33028 #define __WXGTK24__ 1
33029 _ACEOF
33030
33031                             { echo "$as_me:$LINENO: result: yes" >&5
33032 echo "${ECHO_T}yes" >&6; }
33033                             ac_wxgtk26=1
33034
33035 else
33036   echo "$as_me: failed program was:" >&5
33037 sed 's/^/| /' conftest.$ac_ext >&5
33038
33039
33040                             { echo "$as_me:$LINENO: result: no" >&5
33041 echo "${ECHO_T}no" >&6; }
33042                             ac_wxgtk26=0
33043
33044 fi
33045
33046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33047
33048             if test "$ac_wxgtk26" = 0; then
33049                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
33050 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
33051             cat >conftest.$ac_ext <<_ACEOF
33052 /* confdefs.h.  */
33053 _ACEOF
33054 cat confdefs.h >>conftest.$ac_ext
33055 cat >>conftest.$ac_ext <<_ACEOF
33056 /* end confdefs.h.  */
33057
33058                             #include <gtk/gtk.h>
33059
33060 int
33061 main ()
33062 {
33063
33064                             #if !GTK_CHECK_VERSION(2,4,0)
33065                             Not GTK+ 2.4
33066                             #endif
33067
33068   ;
33069   return 0;
33070 }
33071 _ACEOF
33072 rm -f conftest.$ac_objext
33073 if { (ac_try="$ac_compile"
33074 case "(($ac_try" in
33075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33076   *) ac_try_echo=$ac_try;;
33077 esac
33078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33079   (eval "$ac_compile") 2>conftest.er1
33080   ac_status=$?
33081   grep -v '^ *+' conftest.er1 >conftest.err
33082   rm -f conftest.er1
33083   cat conftest.err >&5
33084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085   (exit $ac_status); } &&
33086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33087   { (case "(($ac_try" in
33088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33089   *) ac_try_echo=$ac_try;;
33090 esac
33091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33092   (eval "$ac_try") 2>&5
33093   ac_status=$?
33094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095   (exit $ac_status); }; } &&
33096          { ac_try='test -s conftest.$ac_objext'
33097   { (case "(($ac_try" in
33098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33099   *) ac_try_echo=$ac_try;;
33100 esac
33101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33102   (eval "$ac_try") 2>&5
33103   ac_status=$?
33104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105   (exit $ac_status); }; }; then
33106
33107                             cat >>confdefs.h <<\_ACEOF
33108 #define __WXGTK24__ 1
33109 _ACEOF
33110
33111                             { echo "$as_me:$LINENO: result: yes" >&5
33112 echo "${ECHO_T}yes" >&6; }
33113
33114 else
33115   echo "$as_me: failed program was:" >&5
33116 sed 's/^/| /' conftest.$ac_ext >&5
33117
33118
33119                             { echo "$as_me:$LINENO: result: no" >&5
33120 echo "${ECHO_T}no" >&6; }
33121
33122 fi
33123
33124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33125             fi
33126
33127             CFLAGS="$save_CFLAGS"
33128             LIBS="$save_LIBS"
33129         else
33130             if test "$wxUSE_UNICODE" = "yes"; then
33131                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
33132 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
33133                 wxUSE_UNICODE=no
33134             fi
33135
33136                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
33137 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
33138 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
33139   echo $ECHO_N "(cached) $ECHO_C" >&6
33140 else
33141   ac_check_lib_save_LIBS=$LIBS
33142 LIBS="-lgdk  $LIBS"
33143 cat >conftest.$ac_ext <<_ACEOF
33144 /* confdefs.h.  */
33145 _ACEOF
33146 cat confdefs.h >>conftest.$ac_ext
33147 cat >>conftest.$ac_ext <<_ACEOF
33148 /* end confdefs.h.  */
33149
33150 /* Override any GCC internal prototype to avoid an error.
33151    Use char because int might match the return type of a GCC
33152    builtin and then its argument prototype would still apply.  */
33153 #ifdef __cplusplus
33154 extern "C"
33155 #endif
33156 char gdk_im_open ();
33157 int
33158 main ()
33159 {
33160 return gdk_im_open ();
33161   ;
33162   return 0;
33163 }
33164 _ACEOF
33165 rm -f conftest.$ac_objext conftest$ac_exeext
33166 if { (ac_try="$ac_link"
33167 case "(($ac_try" in
33168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33169   *) ac_try_echo=$ac_try;;
33170 esac
33171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33172   (eval "$ac_link") 2>conftest.er1
33173   ac_status=$?
33174   grep -v '^ *+' conftest.er1 >conftest.err
33175   rm -f conftest.er1
33176   cat conftest.err >&5
33177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33178   (exit $ac_status); } &&
33179          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33180   { (case "(($ac_try" in
33181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33182   *) ac_try_echo=$ac_try;;
33183 esac
33184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33185   (eval "$ac_try") 2>&5
33186   ac_status=$?
33187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188   (exit $ac_status); }; } &&
33189          { ac_try='test -s conftest$ac_exeext'
33190   { (case "(($ac_try" in
33191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33192   *) ac_try_echo=$ac_try;;
33193 esac
33194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33195   (eval "$ac_try") 2>&5
33196   ac_status=$?
33197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198   (exit $ac_status); }; }; then
33199   ac_cv_lib_gdk_gdk_im_open=yes
33200 else
33201   echo "$as_me: failed program was:" >&5
33202 sed 's/^/| /' conftest.$ac_ext >&5
33203
33204         ac_cv_lib_gdk_gdk_im_open=no
33205 fi
33206
33207 rm -f core conftest.err conftest.$ac_objext \
33208       conftest$ac_exeext conftest.$ac_ext
33209 LIBS=$ac_check_lib_save_LIBS
33210 fi
33211 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
33212 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
33213 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
33214   cat >>confdefs.h <<\_ACEOF
33215 #define HAVE_XIM 1
33216 _ACEOF
33217
33218 fi
33219
33220
33221                                     if test "$USE_DARWIN" != 1; then
33222
33223 for ac_func in poll
33224 do
33225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33229   echo $ECHO_N "(cached) $ECHO_C" >&6
33230 else
33231   cat >conftest.$ac_ext <<_ACEOF
33232 /* confdefs.h.  */
33233 _ACEOF
33234 cat confdefs.h >>conftest.$ac_ext
33235 cat >>conftest.$ac_ext <<_ACEOF
33236 /* end confdefs.h.  */
33237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33239 #define $ac_func innocuous_$ac_func
33240
33241 /* System header to define __stub macros and hopefully few prototypes,
33242     which can conflict with char $ac_func (); below.
33243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33244     <limits.h> exists even on freestanding compilers.  */
33245
33246 #ifdef __STDC__
33247 # include <limits.h>
33248 #else
33249 # include <assert.h>
33250 #endif
33251
33252 #undef $ac_func
33253
33254 /* Override any GCC internal prototype to avoid an error.
33255    Use char because int might match the return type of a GCC
33256    builtin and then its argument prototype would still apply.  */
33257 #ifdef __cplusplus
33258 extern "C"
33259 #endif
33260 char $ac_func ();
33261 /* The GNU C library defines this for functions which it implements
33262     to always fail with ENOSYS.  Some functions are actually named
33263     something starting with __ and the normal name is an alias.  */
33264 #if defined __stub_$ac_func || defined __stub___$ac_func
33265 choke me
33266 #endif
33267
33268 int
33269 main ()
33270 {
33271 return $ac_func ();
33272   ;
33273   return 0;
33274 }
33275 _ACEOF
33276 rm -f conftest.$ac_objext conftest$ac_exeext
33277 if { (ac_try="$ac_link"
33278 case "(($ac_try" in
33279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33280   *) ac_try_echo=$ac_try;;
33281 esac
33282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33283   (eval "$ac_link") 2>conftest.er1
33284   ac_status=$?
33285   grep -v '^ *+' conftest.er1 >conftest.err
33286   rm -f conftest.er1
33287   cat conftest.err >&5
33288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289   (exit $ac_status); } &&
33290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33291   { (case "(($ac_try" in
33292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293   *) ac_try_echo=$ac_try;;
33294 esac
33295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33296   (eval "$ac_try") 2>&5
33297   ac_status=$?
33298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299   (exit $ac_status); }; } &&
33300          { ac_try='test -s conftest$ac_exeext'
33301   { (case "(($ac_try" in
33302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33303   *) ac_try_echo=$ac_try;;
33304 esac
33305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33306   (eval "$ac_try") 2>&5
33307   ac_status=$?
33308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309   (exit $ac_status); }; }; then
33310   eval "$as_ac_var=yes"
33311 else
33312   echo "$as_me: failed program was:" >&5
33313 sed 's/^/| /' conftest.$ac_ext >&5
33314
33315         eval "$as_ac_var=no"
33316 fi
33317
33318 rm -f core conftest.err conftest.$ac_objext \
33319       conftest$ac_exeext conftest.$ac_ext
33320 fi
33321 ac_res=`eval echo '${'$as_ac_var'}'`
33322                { echo "$as_me:$LINENO: result: $ac_res" >&5
33323 echo "${ECHO_T}$ac_res" >&6; }
33324 if test `eval echo '${'$as_ac_var'}'` = yes; then
33325   cat >>confdefs.h <<_ACEOF
33326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33327 _ACEOF
33328
33329 fi
33330 done
33331
33332             fi
33333         fi
33334
33335         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
33336         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
33337
33338         AFMINSTALL=afminstall
33339         TOOLKIT=GTK
33340         GUIDIST=GTK_DIST
33341
33342                 if test "$wxUSE_GPE" = "yes"; then
33343             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
33344 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
33345
33346   ac_find_libraries=
33347   for ac_dir in $SEARCH_LIB;
33348   do
33349     for ac_extension in a so sl dylib dll.a; do
33350       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
33351         ac_find_libraries=$ac_dir
33352         break 2
33353       fi
33354     done
33355   done
33356
33357             if test "$ac_find_libraries" != "" ; then
33358
33359     if test "$ac_find_libraries" = "default location"; then
33360     ac_path_to_link=""
33361   else
33362     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33363     result=$?
33364     if test $result = 0; then
33365       ac_path_to_link=""
33366     else
33367       ac_path_to_link=" -L$ac_find_libraries"
33368     fi
33369   fi
33370
33371                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
33372                 WXGPE=1
33373                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33374 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33375             else
33376                 { echo "$as_me:$LINENO: result: not found" >&5
33377 echo "${ECHO_T}not found" >&6; }
33378             fi
33379
33380                                                                                                                     fi
33381     fi
33382
33383     if test "$wxUSE_MGL" = 1; then
33384        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
33385 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
33386         if test "x$MGL_ROOT" = x ; then
33387             { echo "$as_me:$LINENO: result: not found" >&5
33388 echo "${ECHO_T}not found" >&6; }
33389             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
33390 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
33391    { (exit 1); exit 1; }; }
33392         else
33393             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
33394 echo "${ECHO_T}$MGL_ROOT" >&6; }
33395         fi
33396
33397         { echo "$as_me:$LINENO: checking for libmgl location" >&5
33398 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
33399                                 case "${host}" in
33400             *-*-linux* )
33401                                           if test "x$wxUSE_SHARED" = xyes ; then
33402                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
33403               else
33404                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
33405               fi
33406               ;;
33407             *-pc-msdosdjgpp )
33408               mgl_os_candidates="dos32/dj2"
33409               ;;
33410             *)
33411               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
33412 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
33413    { (exit 1); exit 1; }; }
33414         esac
33415
33416         mgl_lib_type=""
33417         mgl_os=""
33418
33419         for mgl_os_i in $mgl_os_candidates ; do
33420             if test "x$mgl_os" = x ; then
33421                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
33422                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
33423                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
33424                         mgl_lib_type=debug
33425                         mgl_os=$mgl_os_i
33426                     fi
33427                 fi
33428                 if test "x$mgl_lib_type" = x ; then
33429                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
33430                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
33431                         mgl_lib_type=release
33432                         mgl_os=$mgl_os_i
33433                     fi
33434                 fi
33435             fi
33436         done
33437
33438         if test "x$mgl_os" = x ; then
33439             { echo "$as_me:$LINENO: result: not found" >&5
33440 echo "${ECHO_T}not found" >&6; }
33441             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
33442 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
33443    { (exit 1); exit 1; }; }
33444         fi
33445         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
33446 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
33447
33448         wxUSE_UNIVERSAL="yes"
33449
33450         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
33451         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
33452
33453         AFMINSTALL=afminstall
33454         TOOLKIT=MGL
33455         GUIDIST=MGL_DIST
33456     fi
33457
33458     if test "$wxUSE_DFB" = 1; then
33459
33460
33461 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33462         if test -n "$ac_tool_prefix"; then
33463   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33464 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33467 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33468   echo $ECHO_N "(cached) $ECHO_C" >&6
33469 else
33470   case $PKG_CONFIG in
33471   [\\/]* | ?:[\\/]*)
33472   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33473   ;;
33474   *)
33475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33476 for as_dir in $PATH
33477 do
33478   IFS=$as_save_IFS
33479   test -z "$as_dir" && as_dir=.
33480   for ac_exec_ext in '' $ac_executable_extensions; do
33481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33482     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33484     break 2
33485   fi
33486 done
33487 done
33488 IFS=$as_save_IFS
33489
33490   ;;
33491 esac
33492 fi
33493 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33494 if test -n "$PKG_CONFIG"; then
33495   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33496 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33497 else
33498   { echo "$as_me:$LINENO: result: no" >&5
33499 echo "${ECHO_T}no" >&6; }
33500 fi
33501
33502
33503 fi
33504 if test -z "$ac_cv_path_PKG_CONFIG"; then
33505   ac_pt_PKG_CONFIG=$PKG_CONFIG
33506   # Extract the first word of "pkg-config", so it can be a program name with args.
33507 set dummy pkg-config; ac_word=$2
33508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33510 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33511   echo $ECHO_N "(cached) $ECHO_C" >&6
33512 else
33513   case $ac_pt_PKG_CONFIG in
33514   [\\/]* | ?:[\\/]*)
33515   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33516   ;;
33517   *)
33518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33519 for as_dir in $PATH
33520 do
33521   IFS=$as_save_IFS
33522   test -z "$as_dir" && as_dir=.
33523   for ac_exec_ext in '' $ac_executable_extensions; do
33524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33525     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33527     break 2
33528   fi
33529 done
33530 done
33531 IFS=$as_save_IFS
33532
33533   ;;
33534 esac
33535 fi
33536 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33537 if test -n "$ac_pt_PKG_CONFIG"; then
33538   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33539 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33540 else
33541   { echo "$as_me:$LINENO: result: no" >&5
33542 echo "${ECHO_T}no" >&6; }
33543 fi
33544
33545   if test "x$ac_pt_PKG_CONFIG" = x; then
33546     PKG_CONFIG=""
33547   else
33548     case $cross_compiling:$ac_tool_warned in
33549 yes:)
33550 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33551 whose name does not start with the host triplet.  If you think this
33552 configuration is useful to you, please write to autoconf@gnu.org." >&5
33553 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33554 whose name does not start with the host triplet.  If you think this
33555 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33556 ac_tool_warned=yes ;;
33557 esac
33558     PKG_CONFIG=$ac_pt_PKG_CONFIG
33559   fi
33560 else
33561   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33562 fi
33563
33564 fi
33565 if test -n "$PKG_CONFIG"; then
33566         _pkg_min_version=0.9.0
33567         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33568 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33569         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33570                 { echo "$as_me:$LINENO: result: yes" >&5
33571 echo "${ECHO_T}yes" >&6; }
33572         else
33573                 { echo "$as_me:$LINENO: result: no" >&5
33574 echo "${ECHO_T}no" >&6; }
33575                 PKG_CONFIG=""
33576         fi
33577
33578 fi
33579
33580
33581 pkg_failed=no
33582 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
33583 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
33584
33585 if test -n "$PKG_CONFIG"; then
33586     if test -n "$DIRECTFB_CFLAGS"; then
33587         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
33588     else
33589         if test -n "$PKG_CONFIG" && \
33590     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
33591   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
33592   ac_status=$?
33593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594   (exit $ac_status); }; then
33595   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
33596 else
33597   pkg_failed=yes
33598 fi
33599     fi
33600 else
33601         pkg_failed=untried
33602 fi
33603 if test -n "$PKG_CONFIG"; then
33604     if test -n "$DIRECTFB_LIBS"; then
33605         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
33606     else
33607         if test -n "$PKG_CONFIG" && \
33608     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
33609   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
33610   ac_status=$?
33611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612   (exit $ac_status); }; then
33613   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
33614 else
33615   pkg_failed=yes
33616 fi
33617     fi
33618 else
33619         pkg_failed=untried
33620 fi
33621
33622
33623
33624 if test $pkg_failed = yes; then
33625
33626 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33627         _pkg_short_errors_supported=yes
33628 else
33629         _pkg_short_errors_supported=no
33630 fi
33631         if test $_pkg_short_errors_supported = yes; then
33632                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
33633         else
33634                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
33635         fi
33636         # Put the nasty error message in config.log where it belongs
33637         echo "$DIRECTFB_PKG_ERRORS" >&5
33638
33639
33640                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
33641 echo "$as_me: error: DirectFB not found." >&2;}
33642    { (exit 1); exit 1; }; }
33643
33644
33645 elif test $pkg_failed = untried; then
33646
33647                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
33648 echo "$as_me: error: DirectFB not found." >&2;}
33649    { (exit 1); exit 1; }; }
33650
33651
33652 else
33653         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
33654         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
33655         { echo "$as_me:$LINENO: result: yes" >&5
33656 echo "${ECHO_T}yes" >&6; }
33657
33658                            wxUSE_UNIVERSAL="yes"
33659                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
33660                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
33661                            TOOLKIT=DFB
33662                            GUIDIST=DFB_DIST
33663
33664 fi
33665     fi
33666
33667     if test "$wxUSE_MICROWIN" = 1; then
33668         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
33669 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
33670         if test "x$MICROWINDOWS" = x ; then
33671             { echo "$as_me:$LINENO: result: not found" >&5
33672 echo "${ECHO_T}not found" >&6; }
33673             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
33674 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
33675    { (exit 1); exit 1; }; }
33676         else
33677             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
33678 echo "${ECHO_T}$MICROWINDOWS" >&6; }
33679         fi
33680
33681         if test -f $MICROWINDOWS/lib/libmwin.a; then
33682             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
33683 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
33684         else
33685             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
33686 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
33687    { (exit 1); exit 1; }; }
33688         fi
33689
33690         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
33691         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
33692
33693         wxUSE_UNIVERSAL="yes"
33694
33695         AFMINSTALL=afminstall
33696         TOOLKIT=MICROWIN
33697         GUIDIST=MICROWIN_DIST
33698
33699         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
33700     fi
33701
33702         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
33703                                 { echo "$as_me:$LINENO: checking for X" >&5
33704 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
33705
33706
33707 # Check whether --with-x was given.
33708 if test "${with_x+set}" = set; then
33709   withval=$with_x;
33710 fi
33711
33712 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
33713 if test "x$with_x" = xno; then
33714   # The user explicitly disabled X.
33715   have_x=disabled
33716 else
33717   case $x_includes,$x_libraries in #(
33718     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
33719 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
33720    { (exit 1); exit 1; }; };; #(
33721     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
33722   echo $ECHO_N "(cached) $ECHO_C" >&6
33723 else
33724   # One or both of the vars are not set, and there is no cached value.
33725 ac_x_includes=no ac_x_libraries=no
33726 rm -f -r conftest.dir
33727 if mkdir conftest.dir; then
33728   cd conftest.dir
33729   cat >Imakefile <<'_ACEOF'
33730 incroot:
33731         @echo incroot='${INCROOT}'
33732 usrlibdir:
33733         @echo usrlibdir='${USRLIBDIR}'
33734 libdir:
33735         @echo libdir='${LIBDIR}'
33736 _ACEOF
33737   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
33738     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
33739     for ac_var in incroot usrlibdir libdir; do
33740       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
33741     done
33742     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
33743     for ac_extension in a so sl; do
33744       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
33745          test -f "$ac_im_libdir/libX11.$ac_extension"; then
33746         ac_im_usrlibdir=$ac_im_libdir; break
33747       fi
33748     done
33749     # Screen out bogus values from the imake configuration.  They are
33750     # bogus both because they are the default anyway, and because
33751     # using them would break gcc on systems where it needs fixed includes.
33752     case $ac_im_incroot in
33753         /usr/include) ac_x_includes= ;;
33754         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
33755     esac
33756     case $ac_im_usrlibdir in
33757         /usr/lib | /lib) ;;
33758         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
33759     esac
33760   fi
33761   cd ..
33762   rm -f -r conftest.dir
33763 fi
33764
33765 # Standard set of common directories for X headers.
33766 # Check X11 before X11Rn because it is often a symlink to the current release.
33767 ac_x_header_dirs='
33768 /usr/X11/include
33769 /usr/X11R6/include
33770 /usr/X11R5/include
33771 /usr/X11R4/include
33772
33773 /usr/include/X11
33774 /usr/include/X11R6
33775 /usr/include/X11R5
33776 /usr/include/X11R4
33777
33778 /usr/local/X11/include
33779 /usr/local/X11R6/include
33780 /usr/local/X11R5/include
33781 /usr/local/X11R4/include
33782
33783 /usr/local/include/X11
33784 /usr/local/include/X11R6
33785 /usr/local/include/X11R5
33786 /usr/local/include/X11R4
33787
33788 /usr/X386/include
33789 /usr/x386/include
33790 /usr/XFree86/include/X11
33791
33792 /usr/include
33793 /usr/local/include
33794 /usr/unsupported/include
33795 /usr/athena/include
33796 /usr/local/x11r5/include
33797 /usr/lpp/Xamples/include
33798
33799 /usr/openwin/include
33800 /usr/openwin/share/include'
33801
33802 if test "$ac_x_includes" = no; then
33803   # Guess where to find include files, by looking for Xlib.h.
33804   # First, try using that file with no special directory specified.
33805   cat >conftest.$ac_ext <<_ACEOF
33806 /* confdefs.h.  */
33807 _ACEOF
33808 cat confdefs.h >>conftest.$ac_ext
33809 cat >>conftest.$ac_ext <<_ACEOF
33810 /* end confdefs.h.  */
33811 #include <X11/Xlib.h>
33812 _ACEOF
33813 if { (ac_try="$ac_cpp conftest.$ac_ext"
33814 case "(($ac_try" in
33815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33816   *) ac_try_echo=$ac_try;;
33817 esac
33818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33820   ac_status=$?
33821   grep -v '^ *+' conftest.er1 >conftest.err
33822   rm -f conftest.er1
33823   cat conftest.err >&5
33824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825   (exit $ac_status); } >/dev/null; then
33826   if test -s conftest.err; then
33827     ac_cpp_err=$ac_c_preproc_warn_flag
33828     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33829   else
33830     ac_cpp_err=
33831   fi
33832 else
33833   ac_cpp_err=yes
33834 fi
33835 if test -z "$ac_cpp_err"; then
33836   # We can compile using X headers with no special include directory.
33837 ac_x_includes=
33838 else
33839   echo "$as_me: failed program was:" >&5
33840 sed 's/^/| /' conftest.$ac_ext >&5
33841
33842   for ac_dir in $ac_x_header_dirs; do
33843   if test -r "$ac_dir/X11/Xlib.h"; then
33844     ac_x_includes=$ac_dir
33845     break
33846   fi
33847 done
33848 fi
33849
33850 rm -f conftest.err conftest.$ac_ext
33851 fi # $ac_x_includes = no
33852
33853 if test "$ac_x_libraries" = no; then
33854   # Check for the libraries.
33855   # See if we find them without any special options.
33856   # Don't add to $LIBS permanently.
33857   ac_save_LIBS=$LIBS
33858   LIBS="-lXt $LIBS"
33859   cat >conftest.$ac_ext <<_ACEOF
33860 /* confdefs.h.  */
33861 _ACEOF
33862 cat confdefs.h >>conftest.$ac_ext
33863 cat >>conftest.$ac_ext <<_ACEOF
33864 /* end confdefs.h.  */
33865 #include <X11/Xlib.h>
33866 int
33867 main ()
33868 {
33869 XrmInitialize ()
33870   ;
33871   return 0;
33872 }
33873 _ACEOF
33874 rm -f conftest.$ac_objext conftest$ac_exeext
33875 if { (ac_try="$ac_link"
33876 case "(($ac_try" in
33877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33878   *) ac_try_echo=$ac_try;;
33879 esac
33880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33881   (eval "$ac_link") 2>conftest.er1
33882   ac_status=$?
33883   grep -v '^ *+' conftest.er1 >conftest.err
33884   rm -f conftest.er1
33885   cat conftest.err >&5
33886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887   (exit $ac_status); } &&
33888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33889   { (case "(($ac_try" in
33890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33891   *) ac_try_echo=$ac_try;;
33892 esac
33893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33894   (eval "$ac_try") 2>&5
33895   ac_status=$?
33896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897   (exit $ac_status); }; } &&
33898          { ac_try='test -s conftest$ac_exeext'
33899   { (case "(($ac_try" in
33900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33901   *) ac_try_echo=$ac_try;;
33902 esac
33903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33904   (eval "$ac_try") 2>&5
33905   ac_status=$?
33906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907   (exit $ac_status); }; }; then
33908   LIBS=$ac_save_LIBS
33909 # We can link X programs with no special library path.
33910 ac_x_libraries=
33911 else
33912   echo "$as_me: failed program was:" >&5
33913 sed 's/^/| /' conftest.$ac_ext >&5
33914
33915         LIBS=$ac_save_LIBS
33916 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
33917 do
33918   # Don't even attempt the hair of trying to link an X program!
33919   for ac_extension in a so sl; do
33920     if test -r "$ac_dir/libXt.$ac_extension"; then
33921       ac_x_libraries=$ac_dir
33922       break 2
33923     fi
33924   done
33925 done
33926 fi
33927
33928 rm -f core conftest.err conftest.$ac_objext \
33929       conftest$ac_exeext conftest.$ac_ext
33930 fi # $ac_x_libraries = no
33931
33932 case $ac_x_includes,$ac_x_libraries in #(
33933   no,* | *,no | *\'*)
33934     # Didn't find X, or a directory has "'" in its name.
33935     ac_cv_have_x="have_x=no";; #(
33936   *)
33937     # Record where we found X for the cache.
33938     ac_cv_have_x="have_x=yes\
33939         ac_x_includes='$ac_x_includes'\
33940         ac_x_libraries='$ac_x_libraries'"
33941 esac
33942 fi
33943 ;; #(
33944     *) have_x=yes;;
33945   esac
33946   eval "$ac_cv_have_x"
33947 fi # $with_x != no
33948
33949 if test "$have_x" != yes; then
33950   { echo "$as_me:$LINENO: result: $have_x" >&5
33951 echo "${ECHO_T}$have_x" >&6; }
33952   no_x=yes
33953 else
33954   # If each of the values was on the command line, it overrides each guess.
33955   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
33956   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
33957   # Update the cache value to reflect the command line values.
33958   ac_cv_have_x="have_x=yes\
33959         ac_x_includes='$x_includes'\
33960         ac_x_libraries='$x_libraries'"
33961   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
33962 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
33963 fi
33964
33965 if test "$no_x" = yes; then
33966   # Not all programs may use this symbol, but it does not hurt to define it.
33967
33968 cat >>confdefs.h <<\_ACEOF
33969 #define X_DISPLAY_MISSING 1
33970 _ACEOF
33971
33972   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
33973 else
33974   if test -n "$x_includes"; then
33975     X_CFLAGS="$X_CFLAGS -I$x_includes"
33976   fi
33977
33978   # It would also be nice to do this for all -L options, not just this one.
33979   if test -n "$x_libraries"; then
33980     X_LIBS="$X_LIBS -L$x_libraries"
33981     # For Solaris; some versions of Sun CC require a space after -R and
33982     # others require no space.  Words are not sufficient . . . .
33983     case `(uname -sr) 2>/dev/null` in
33984     "SunOS 5"*)
33985       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
33986 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
33987       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
33988       cat >conftest.$ac_ext <<_ACEOF
33989 /* confdefs.h.  */
33990 _ACEOF
33991 cat confdefs.h >>conftest.$ac_ext
33992 cat >>conftest.$ac_ext <<_ACEOF
33993 /* end confdefs.h.  */
33994
33995 int
33996 main ()
33997 {
33998
33999   ;
34000   return 0;
34001 }
34002 _ACEOF
34003 rm -f conftest.$ac_objext conftest$ac_exeext
34004 if { (ac_try="$ac_link"
34005 case "(($ac_try" in
34006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34007   *) ac_try_echo=$ac_try;;
34008 esac
34009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34010   (eval "$ac_link") 2>conftest.er1
34011   ac_status=$?
34012   grep -v '^ *+' conftest.er1 >conftest.err
34013   rm -f conftest.er1
34014   cat conftest.err >&5
34015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016   (exit $ac_status); } &&
34017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34018   { (case "(($ac_try" in
34019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34020   *) ac_try_echo=$ac_try;;
34021 esac
34022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34023   (eval "$ac_try") 2>&5
34024   ac_status=$?
34025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026   (exit $ac_status); }; } &&
34027          { ac_try='test -s conftest$ac_exeext'
34028   { (case "(($ac_try" in
34029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030   *) ac_try_echo=$ac_try;;
34031 esac
34032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34033   (eval "$ac_try") 2>&5
34034   ac_status=$?
34035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34036   (exit $ac_status); }; }; then
34037   ac_R_nospace=yes
34038 else
34039   echo "$as_me: failed program was:" >&5
34040 sed 's/^/| /' conftest.$ac_ext >&5
34041
34042         ac_R_nospace=no
34043 fi
34044
34045 rm -f core conftest.err conftest.$ac_objext \
34046       conftest$ac_exeext conftest.$ac_ext
34047       if test $ac_R_nospace = yes; then
34048         { echo "$as_me:$LINENO: result: no" >&5
34049 echo "${ECHO_T}no" >&6; }
34050         X_LIBS="$X_LIBS -R$x_libraries"
34051       else
34052         LIBS="$ac_xsave_LIBS -R $x_libraries"
34053         cat >conftest.$ac_ext <<_ACEOF
34054 /* confdefs.h.  */
34055 _ACEOF
34056 cat confdefs.h >>conftest.$ac_ext
34057 cat >>conftest.$ac_ext <<_ACEOF
34058 /* end confdefs.h.  */
34059
34060 int
34061 main ()
34062 {
34063
34064   ;
34065   return 0;
34066 }
34067 _ACEOF
34068 rm -f conftest.$ac_objext conftest$ac_exeext
34069 if { (ac_try="$ac_link"
34070 case "(($ac_try" in
34071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34072   *) ac_try_echo=$ac_try;;
34073 esac
34074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34075   (eval "$ac_link") 2>conftest.er1
34076   ac_status=$?
34077   grep -v '^ *+' conftest.er1 >conftest.err
34078   rm -f conftest.er1
34079   cat conftest.err >&5
34080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081   (exit $ac_status); } &&
34082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34083   { (case "(($ac_try" in
34084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34085   *) ac_try_echo=$ac_try;;
34086 esac
34087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34088   (eval "$ac_try") 2>&5
34089   ac_status=$?
34090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34091   (exit $ac_status); }; } &&
34092          { ac_try='test -s conftest$ac_exeext'
34093   { (case "(($ac_try" in
34094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34095   *) ac_try_echo=$ac_try;;
34096 esac
34097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34098   (eval "$ac_try") 2>&5
34099   ac_status=$?
34100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34101   (exit $ac_status); }; }; then
34102   ac_R_space=yes
34103 else
34104   echo "$as_me: failed program was:" >&5
34105 sed 's/^/| /' conftest.$ac_ext >&5
34106
34107         ac_R_space=no
34108 fi
34109
34110 rm -f core conftest.err conftest.$ac_objext \
34111       conftest$ac_exeext conftest.$ac_ext
34112         if test $ac_R_space = yes; then
34113           { echo "$as_me:$LINENO: result: yes" >&5
34114 echo "${ECHO_T}yes" >&6; }
34115           X_LIBS="$X_LIBS -R $x_libraries"
34116         else
34117           { echo "$as_me:$LINENO: result: neither works" >&5
34118 echo "${ECHO_T}neither works" >&6; }
34119         fi
34120       fi
34121       LIBS=$ac_xsave_LIBS
34122     esac
34123   fi
34124
34125   # Check for system-dependent libraries X programs must link with.
34126   # Do this before checking for the system-independent R6 libraries
34127   # (-lICE), since we may need -lsocket or whatever for X linking.
34128
34129   if test "$ISC" = yes; then
34130     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
34131   else
34132     # Martyn Johnson says this is needed for Ultrix, if the X
34133     # libraries were built with DECnet support.  And Karl Berry says
34134     # the Alpha needs dnet_stub (dnet does not exist).
34135     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
34136     cat >conftest.$ac_ext <<_ACEOF
34137 /* confdefs.h.  */
34138 _ACEOF
34139 cat confdefs.h >>conftest.$ac_ext
34140 cat >>conftest.$ac_ext <<_ACEOF
34141 /* end confdefs.h.  */
34142
34143 /* Override any GCC internal prototype to avoid an error.
34144    Use char because int might match the return type of a GCC
34145    builtin and then its argument prototype would still apply.  */
34146 #ifdef __cplusplus
34147 extern "C"
34148 #endif
34149 char XOpenDisplay ();
34150 int
34151 main ()
34152 {
34153 return XOpenDisplay ();
34154   ;
34155   return 0;
34156 }
34157 _ACEOF
34158 rm -f conftest.$ac_objext conftest$ac_exeext
34159 if { (ac_try="$ac_link"
34160 case "(($ac_try" in
34161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34162   *) ac_try_echo=$ac_try;;
34163 esac
34164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34165   (eval "$ac_link") 2>conftest.er1
34166   ac_status=$?
34167   grep -v '^ *+' conftest.er1 >conftest.err
34168   rm -f conftest.er1
34169   cat conftest.err >&5
34170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171   (exit $ac_status); } &&
34172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34173   { (case "(($ac_try" in
34174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34175   *) ac_try_echo=$ac_try;;
34176 esac
34177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34178   (eval "$ac_try") 2>&5
34179   ac_status=$?
34180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34181   (exit $ac_status); }; } &&
34182          { ac_try='test -s conftest$ac_exeext'
34183   { (case "(($ac_try" in
34184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34185   *) ac_try_echo=$ac_try;;
34186 esac
34187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34188   (eval "$ac_try") 2>&5
34189   ac_status=$?
34190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34191   (exit $ac_status); }; }; then
34192   :
34193 else
34194   echo "$as_me: failed program was:" >&5
34195 sed 's/^/| /' conftest.$ac_ext >&5
34196
34197         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
34198 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
34199 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
34200   echo $ECHO_N "(cached) $ECHO_C" >&6
34201 else
34202   ac_check_lib_save_LIBS=$LIBS
34203 LIBS="-ldnet  $LIBS"
34204 cat >conftest.$ac_ext <<_ACEOF
34205 /* confdefs.h.  */
34206 _ACEOF
34207 cat confdefs.h >>conftest.$ac_ext
34208 cat >>conftest.$ac_ext <<_ACEOF
34209 /* end confdefs.h.  */
34210
34211 /* Override any GCC internal prototype to avoid an error.
34212    Use char because int might match the return type of a GCC
34213    builtin and then its argument prototype would still apply.  */
34214 #ifdef __cplusplus
34215 extern "C"
34216 #endif
34217 char dnet_ntoa ();
34218 int
34219 main ()
34220 {
34221 return dnet_ntoa ();
34222   ;
34223   return 0;
34224 }
34225 _ACEOF
34226 rm -f conftest.$ac_objext conftest$ac_exeext
34227 if { (ac_try="$ac_link"
34228 case "(($ac_try" in
34229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34230   *) ac_try_echo=$ac_try;;
34231 esac
34232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34233   (eval "$ac_link") 2>conftest.er1
34234   ac_status=$?
34235   grep -v '^ *+' conftest.er1 >conftest.err
34236   rm -f conftest.er1
34237   cat conftest.err >&5
34238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34239   (exit $ac_status); } &&
34240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34241   { (case "(($ac_try" in
34242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34243   *) ac_try_echo=$ac_try;;
34244 esac
34245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34246   (eval "$ac_try") 2>&5
34247   ac_status=$?
34248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34249   (exit $ac_status); }; } &&
34250          { ac_try='test -s conftest$ac_exeext'
34251   { (case "(($ac_try" in
34252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34253   *) ac_try_echo=$ac_try;;
34254 esac
34255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34256   (eval "$ac_try") 2>&5
34257   ac_status=$?
34258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34259   (exit $ac_status); }; }; then
34260   ac_cv_lib_dnet_dnet_ntoa=yes
34261 else
34262   echo "$as_me: failed program was:" >&5
34263 sed 's/^/| /' conftest.$ac_ext >&5
34264
34265         ac_cv_lib_dnet_dnet_ntoa=no
34266 fi
34267
34268 rm -f core conftest.err conftest.$ac_objext \
34269       conftest$ac_exeext conftest.$ac_ext
34270 LIBS=$ac_check_lib_save_LIBS
34271 fi
34272 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
34273 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
34274 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
34275   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
34276 fi
34277
34278     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
34279       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
34280 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
34281 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
34282   echo $ECHO_N "(cached) $ECHO_C" >&6
34283 else
34284   ac_check_lib_save_LIBS=$LIBS
34285 LIBS="-ldnet_stub  $LIBS"
34286 cat >conftest.$ac_ext <<_ACEOF
34287 /* confdefs.h.  */
34288 _ACEOF
34289 cat confdefs.h >>conftest.$ac_ext
34290 cat >>conftest.$ac_ext <<_ACEOF
34291 /* end confdefs.h.  */
34292
34293 /* Override any GCC internal prototype to avoid an error.
34294    Use char because int might match the return type of a GCC
34295    builtin and then its argument prototype would still apply.  */
34296 #ifdef __cplusplus
34297 extern "C"
34298 #endif
34299 char dnet_ntoa ();
34300 int
34301 main ()
34302 {
34303 return dnet_ntoa ();
34304   ;
34305   return 0;
34306 }
34307 _ACEOF
34308 rm -f conftest.$ac_objext conftest$ac_exeext
34309 if { (ac_try="$ac_link"
34310 case "(($ac_try" in
34311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34312   *) ac_try_echo=$ac_try;;
34313 esac
34314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34315   (eval "$ac_link") 2>conftest.er1
34316   ac_status=$?
34317   grep -v '^ *+' conftest.er1 >conftest.err
34318   rm -f conftest.er1
34319   cat conftest.err >&5
34320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321   (exit $ac_status); } &&
34322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34323   { (case "(($ac_try" in
34324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34325   *) ac_try_echo=$ac_try;;
34326 esac
34327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34328   (eval "$ac_try") 2>&5
34329   ac_status=$?
34330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34331   (exit $ac_status); }; } &&
34332          { ac_try='test -s conftest$ac_exeext'
34333   { (case "(($ac_try" in
34334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34335   *) ac_try_echo=$ac_try;;
34336 esac
34337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34338   (eval "$ac_try") 2>&5
34339   ac_status=$?
34340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341   (exit $ac_status); }; }; then
34342   ac_cv_lib_dnet_stub_dnet_ntoa=yes
34343 else
34344   echo "$as_me: failed program was:" >&5
34345 sed 's/^/| /' conftest.$ac_ext >&5
34346
34347         ac_cv_lib_dnet_stub_dnet_ntoa=no
34348 fi
34349
34350 rm -f core conftest.err conftest.$ac_objext \
34351       conftest$ac_exeext conftest.$ac_ext
34352 LIBS=$ac_check_lib_save_LIBS
34353 fi
34354 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
34355 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
34356 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
34357   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
34358 fi
34359
34360     fi
34361 fi
34362
34363 rm -f core conftest.err conftest.$ac_objext \
34364       conftest$ac_exeext conftest.$ac_ext
34365     LIBS="$ac_xsave_LIBS"
34366
34367     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
34368     # to get the SysV transport functions.
34369     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
34370     # needs -lnsl.
34371     # The nsl library prevents programs from opening the X display
34372     # on Irix 5.2, according to T.E. Dickey.
34373     # The functions gethostbyname, getservbyname, and inet_addr are
34374     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
34375     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
34376 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
34377 if test "${ac_cv_func_gethostbyname+set}" = set; then
34378   echo $ECHO_N "(cached) $ECHO_C" >&6
34379 else
34380   cat >conftest.$ac_ext <<_ACEOF
34381 /* confdefs.h.  */
34382 _ACEOF
34383 cat confdefs.h >>conftest.$ac_ext
34384 cat >>conftest.$ac_ext <<_ACEOF
34385 /* end confdefs.h.  */
34386 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
34387    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34388 #define gethostbyname innocuous_gethostbyname
34389
34390 /* System header to define __stub macros and hopefully few prototypes,
34391     which can conflict with char gethostbyname (); below.
34392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34393     <limits.h> exists even on freestanding compilers.  */
34394
34395 #ifdef __STDC__
34396 # include <limits.h>
34397 #else
34398 # include <assert.h>
34399 #endif
34400
34401 #undef gethostbyname
34402
34403 /* Override any GCC internal prototype to avoid an error.
34404    Use char because int might match the return type of a GCC
34405    builtin and then its argument prototype would still apply.  */
34406 #ifdef __cplusplus
34407 extern "C"
34408 #endif
34409 char gethostbyname ();
34410 /* The GNU C library defines this for functions which it implements
34411     to always fail with ENOSYS.  Some functions are actually named
34412     something starting with __ and the normal name is an alias.  */
34413 #if defined __stub_gethostbyname || defined __stub___gethostbyname
34414 choke me
34415 #endif
34416
34417 int
34418 main ()
34419 {
34420 return gethostbyname ();
34421   ;
34422   return 0;
34423 }
34424 _ACEOF
34425 rm -f conftest.$ac_objext conftest$ac_exeext
34426 if { (ac_try="$ac_link"
34427 case "(($ac_try" in
34428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34429   *) ac_try_echo=$ac_try;;
34430 esac
34431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34432   (eval "$ac_link") 2>conftest.er1
34433   ac_status=$?
34434   grep -v '^ *+' conftest.er1 >conftest.err
34435   rm -f conftest.er1
34436   cat conftest.err >&5
34437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438   (exit $ac_status); } &&
34439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34440   { (case "(($ac_try" in
34441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34442   *) ac_try_echo=$ac_try;;
34443 esac
34444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34445   (eval "$ac_try") 2>&5
34446   ac_status=$?
34447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448   (exit $ac_status); }; } &&
34449          { ac_try='test -s conftest$ac_exeext'
34450   { (case "(($ac_try" in
34451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34452   *) ac_try_echo=$ac_try;;
34453 esac
34454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34455   (eval "$ac_try") 2>&5
34456   ac_status=$?
34457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458   (exit $ac_status); }; }; then
34459   ac_cv_func_gethostbyname=yes
34460 else
34461   echo "$as_me: failed program was:" >&5
34462 sed 's/^/| /' conftest.$ac_ext >&5
34463
34464         ac_cv_func_gethostbyname=no
34465 fi
34466
34467 rm -f core conftest.err conftest.$ac_objext \
34468       conftest$ac_exeext conftest.$ac_ext
34469 fi
34470 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
34471 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
34472
34473     if test $ac_cv_func_gethostbyname = no; then
34474       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
34475 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
34476 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
34477   echo $ECHO_N "(cached) $ECHO_C" >&6
34478 else
34479   ac_check_lib_save_LIBS=$LIBS
34480 LIBS="-lnsl  $LIBS"
34481 cat >conftest.$ac_ext <<_ACEOF
34482 /* confdefs.h.  */
34483 _ACEOF
34484 cat confdefs.h >>conftest.$ac_ext
34485 cat >>conftest.$ac_ext <<_ACEOF
34486 /* end confdefs.h.  */
34487
34488 /* Override any GCC internal prototype to avoid an error.
34489    Use char because int might match the return type of a GCC
34490    builtin and then its argument prototype would still apply.  */
34491 #ifdef __cplusplus
34492 extern "C"
34493 #endif
34494 char gethostbyname ();
34495 int
34496 main ()
34497 {
34498 return gethostbyname ();
34499   ;
34500   return 0;
34501 }
34502 _ACEOF
34503 rm -f conftest.$ac_objext conftest$ac_exeext
34504 if { (ac_try="$ac_link"
34505 case "(($ac_try" in
34506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34507   *) ac_try_echo=$ac_try;;
34508 esac
34509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34510   (eval "$ac_link") 2>conftest.er1
34511   ac_status=$?
34512   grep -v '^ *+' conftest.er1 >conftest.err
34513   rm -f conftest.er1
34514   cat conftest.err >&5
34515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516   (exit $ac_status); } &&
34517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34518   { (case "(($ac_try" in
34519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34520   *) ac_try_echo=$ac_try;;
34521 esac
34522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34523   (eval "$ac_try") 2>&5
34524   ac_status=$?
34525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34526   (exit $ac_status); }; } &&
34527          { ac_try='test -s conftest$ac_exeext'
34528   { (case "(($ac_try" in
34529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34530   *) ac_try_echo=$ac_try;;
34531 esac
34532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34533   (eval "$ac_try") 2>&5
34534   ac_status=$?
34535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536   (exit $ac_status); }; }; then
34537   ac_cv_lib_nsl_gethostbyname=yes
34538 else
34539   echo "$as_me: failed program was:" >&5
34540 sed 's/^/| /' conftest.$ac_ext >&5
34541
34542         ac_cv_lib_nsl_gethostbyname=no
34543 fi
34544
34545 rm -f core conftest.err conftest.$ac_objext \
34546       conftest$ac_exeext conftest.$ac_ext
34547 LIBS=$ac_check_lib_save_LIBS
34548 fi
34549 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
34550 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
34551 if test $ac_cv_lib_nsl_gethostbyname = yes; then
34552   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
34553 fi
34554
34555       if test $ac_cv_lib_nsl_gethostbyname = no; then
34556         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
34557 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
34558 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
34559   echo $ECHO_N "(cached) $ECHO_C" >&6
34560 else
34561   ac_check_lib_save_LIBS=$LIBS
34562 LIBS="-lbsd  $LIBS"
34563 cat >conftest.$ac_ext <<_ACEOF
34564 /* confdefs.h.  */
34565 _ACEOF
34566 cat confdefs.h >>conftest.$ac_ext
34567 cat >>conftest.$ac_ext <<_ACEOF
34568 /* end confdefs.h.  */
34569
34570 /* Override any GCC internal prototype to avoid an error.
34571    Use char because int might match the return type of a GCC
34572    builtin and then its argument prototype would still apply.  */
34573 #ifdef __cplusplus
34574 extern "C"
34575 #endif
34576 char gethostbyname ();
34577 int
34578 main ()
34579 {
34580 return gethostbyname ();
34581   ;
34582   return 0;
34583 }
34584 _ACEOF
34585 rm -f conftest.$ac_objext conftest$ac_exeext
34586 if { (ac_try="$ac_link"
34587 case "(($ac_try" in
34588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34589   *) ac_try_echo=$ac_try;;
34590 esac
34591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34592   (eval "$ac_link") 2>conftest.er1
34593   ac_status=$?
34594   grep -v '^ *+' conftest.er1 >conftest.err
34595   rm -f conftest.er1
34596   cat conftest.err >&5
34597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598   (exit $ac_status); } &&
34599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34600   { (case "(($ac_try" in
34601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34602   *) ac_try_echo=$ac_try;;
34603 esac
34604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34605   (eval "$ac_try") 2>&5
34606   ac_status=$?
34607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608   (exit $ac_status); }; } &&
34609          { ac_try='test -s conftest$ac_exeext'
34610   { (case "(($ac_try" in
34611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34612   *) ac_try_echo=$ac_try;;
34613 esac
34614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34615   (eval "$ac_try") 2>&5
34616   ac_status=$?
34617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618   (exit $ac_status); }; }; then
34619   ac_cv_lib_bsd_gethostbyname=yes
34620 else
34621   echo "$as_me: failed program was:" >&5
34622 sed 's/^/| /' conftest.$ac_ext >&5
34623
34624         ac_cv_lib_bsd_gethostbyname=no
34625 fi
34626
34627 rm -f core conftest.err conftest.$ac_objext \
34628       conftest$ac_exeext conftest.$ac_ext
34629 LIBS=$ac_check_lib_save_LIBS
34630 fi
34631 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
34632 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
34633 if test $ac_cv_lib_bsd_gethostbyname = yes; then
34634   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
34635 fi
34636
34637       fi
34638     fi
34639
34640     # lieder@skyler.mavd.honeywell.com says without -lsocket,
34641     # socket/setsockopt and other routines are undefined under SCO ODT
34642     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
34643     # on later versions), says Simon Leinen: it contains gethostby*
34644     # variants that don't use the name server (or something).  -lsocket
34645     # must be given before -lnsl if both are needed.  We assume that
34646     # if connect needs -lnsl, so does gethostbyname.
34647     { echo "$as_me:$LINENO: checking for connect" >&5
34648 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
34649 if test "${ac_cv_func_connect+set}" = set; then
34650   echo $ECHO_N "(cached) $ECHO_C" >&6
34651 else
34652   cat >conftest.$ac_ext <<_ACEOF
34653 /* confdefs.h.  */
34654 _ACEOF
34655 cat confdefs.h >>conftest.$ac_ext
34656 cat >>conftest.$ac_ext <<_ACEOF
34657 /* end confdefs.h.  */
34658 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
34659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34660 #define connect innocuous_connect
34661
34662 /* System header to define __stub macros and hopefully few prototypes,
34663     which can conflict with char connect (); below.
34664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34665     <limits.h> exists even on freestanding compilers.  */
34666
34667 #ifdef __STDC__
34668 # include <limits.h>
34669 #else
34670 # include <assert.h>
34671 #endif
34672
34673 #undef connect
34674
34675 /* Override any GCC internal prototype to avoid an error.
34676    Use char because int might match the return type of a GCC
34677    builtin and then its argument prototype would still apply.  */
34678 #ifdef __cplusplus
34679 extern "C"
34680 #endif
34681 char connect ();
34682 /* The GNU C library defines this for functions which it implements
34683     to always fail with ENOSYS.  Some functions are actually named
34684     something starting with __ and the normal name is an alias.  */
34685 #if defined __stub_connect || defined __stub___connect
34686 choke me
34687 #endif
34688
34689 int
34690 main ()
34691 {
34692 return connect ();
34693   ;
34694   return 0;
34695 }
34696 _ACEOF
34697 rm -f conftest.$ac_objext conftest$ac_exeext
34698 if { (ac_try="$ac_link"
34699 case "(($ac_try" in
34700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34701   *) ac_try_echo=$ac_try;;
34702 esac
34703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34704   (eval "$ac_link") 2>conftest.er1
34705   ac_status=$?
34706   grep -v '^ *+' conftest.er1 >conftest.err
34707   rm -f conftest.er1
34708   cat conftest.err >&5
34709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710   (exit $ac_status); } &&
34711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34712   { (case "(($ac_try" in
34713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34714   *) ac_try_echo=$ac_try;;
34715 esac
34716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34717   (eval "$ac_try") 2>&5
34718   ac_status=$?
34719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720   (exit $ac_status); }; } &&
34721          { ac_try='test -s conftest$ac_exeext'
34722   { (case "(($ac_try" in
34723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34724   *) ac_try_echo=$ac_try;;
34725 esac
34726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34727   (eval "$ac_try") 2>&5
34728   ac_status=$?
34729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730   (exit $ac_status); }; }; then
34731   ac_cv_func_connect=yes
34732 else
34733   echo "$as_me: failed program was:" >&5
34734 sed 's/^/| /' conftest.$ac_ext >&5
34735
34736         ac_cv_func_connect=no
34737 fi
34738
34739 rm -f core conftest.err conftest.$ac_objext \
34740       conftest$ac_exeext conftest.$ac_ext
34741 fi
34742 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
34743 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
34744
34745     if test $ac_cv_func_connect = no; then
34746       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
34747 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
34748 if test "${ac_cv_lib_socket_connect+set}" = set; then
34749   echo $ECHO_N "(cached) $ECHO_C" >&6
34750 else
34751   ac_check_lib_save_LIBS=$LIBS
34752 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
34753 cat >conftest.$ac_ext <<_ACEOF
34754 /* confdefs.h.  */
34755 _ACEOF
34756 cat confdefs.h >>conftest.$ac_ext
34757 cat >>conftest.$ac_ext <<_ACEOF
34758 /* end confdefs.h.  */
34759
34760 /* Override any GCC internal prototype to avoid an error.
34761    Use char because int might match the return type of a GCC
34762    builtin and then its argument prototype would still apply.  */
34763 #ifdef __cplusplus
34764 extern "C"
34765 #endif
34766 char connect ();
34767 int
34768 main ()
34769 {
34770 return connect ();
34771   ;
34772   return 0;
34773 }
34774 _ACEOF
34775 rm -f conftest.$ac_objext conftest$ac_exeext
34776 if { (ac_try="$ac_link"
34777 case "(($ac_try" in
34778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34779   *) ac_try_echo=$ac_try;;
34780 esac
34781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34782   (eval "$ac_link") 2>conftest.er1
34783   ac_status=$?
34784   grep -v '^ *+' conftest.er1 >conftest.err
34785   rm -f conftest.er1
34786   cat conftest.err >&5
34787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34788   (exit $ac_status); } &&
34789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34790   { (case "(($ac_try" in
34791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34792   *) ac_try_echo=$ac_try;;
34793 esac
34794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34795   (eval "$ac_try") 2>&5
34796   ac_status=$?
34797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34798   (exit $ac_status); }; } &&
34799          { ac_try='test -s conftest$ac_exeext'
34800   { (case "(($ac_try" in
34801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34802   *) ac_try_echo=$ac_try;;
34803 esac
34804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34805   (eval "$ac_try") 2>&5
34806   ac_status=$?
34807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808   (exit $ac_status); }; }; then
34809   ac_cv_lib_socket_connect=yes
34810 else
34811   echo "$as_me: failed program was:" >&5
34812 sed 's/^/| /' conftest.$ac_ext >&5
34813
34814         ac_cv_lib_socket_connect=no
34815 fi
34816
34817 rm -f core conftest.err conftest.$ac_objext \
34818       conftest$ac_exeext conftest.$ac_ext
34819 LIBS=$ac_check_lib_save_LIBS
34820 fi
34821 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
34822 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
34823 if test $ac_cv_lib_socket_connect = yes; then
34824   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
34825 fi
34826
34827     fi
34828
34829     # Guillermo Gomez says -lposix is necessary on A/UX.
34830     { echo "$as_me:$LINENO: checking for remove" >&5
34831 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
34832 if test "${ac_cv_func_remove+set}" = set; then
34833   echo $ECHO_N "(cached) $ECHO_C" >&6
34834 else
34835   cat >conftest.$ac_ext <<_ACEOF
34836 /* confdefs.h.  */
34837 _ACEOF
34838 cat confdefs.h >>conftest.$ac_ext
34839 cat >>conftest.$ac_ext <<_ACEOF
34840 /* end confdefs.h.  */
34841 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
34842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34843 #define remove innocuous_remove
34844
34845 /* System header to define __stub macros and hopefully few prototypes,
34846     which can conflict with char remove (); below.
34847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34848     <limits.h> exists even on freestanding compilers.  */
34849
34850 #ifdef __STDC__
34851 # include <limits.h>
34852 #else
34853 # include <assert.h>
34854 #endif
34855
34856 #undef remove
34857
34858 /* Override any GCC internal prototype to avoid an error.
34859    Use char because int might match the return type of a GCC
34860    builtin and then its argument prototype would still apply.  */
34861 #ifdef __cplusplus
34862 extern "C"
34863 #endif
34864 char remove ();
34865 /* The GNU C library defines this for functions which it implements
34866     to always fail with ENOSYS.  Some functions are actually named
34867     something starting with __ and the normal name is an alias.  */
34868 #if defined __stub_remove || defined __stub___remove
34869 choke me
34870 #endif
34871
34872 int
34873 main ()
34874 {
34875 return remove ();
34876   ;
34877   return 0;
34878 }
34879 _ACEOF
34880 rm -f conftest.$ac_objext conftest$ac_exeext
34881 if { (ac_try="$ac_link"
34882 case "(($ac_try" in
34883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34884   *) ac_try_echo=$ac_try;;
34885 esac
34886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34887   (eval "$ac_link") 2>conftest.er1
34888   ac_status=$?
34889   grep -v '^ *+' conftest.er1 >conftest.err
34890   rm -f conftest.er1
34891   cat conftest.err >&5
34892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34893   (exit $ac_status); } &&
34894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34895   { (case "(($ac_try" in
34896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34897   *) ac_try_echo=$ac_try;;
34898 esac
34899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34900   (eval "$ac_try") 2>&5
34901   ac_status=$?
34902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903   (exit $ac_status); }; } &&
34904          { ac_try='test -s conftest$ac_exeext'
34905   { (case "(($ac_try" in
34906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34907   *) ac_try_echo=$ac_try;;
34908 esac
34909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34910   (eval "$ac_try") 2>&5
34911   ac_status=$?
34912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913   (exit $ac_status); }; }; then
34914   ac_cv_func_remove=yes
34915 else
34916   echo "$as_me: failed program was:" >&5
34917 sed 's/^/| /' conftest.$ac_ext >&5
34918
34919         ac_cv_func_remove=no
34920 fi
34921
34922 rm -f core conftest.err conftest.$ac_objext \
34923       conftest$ac_exeext conftest.$ac_ext
34924 fi
34925 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
34926 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
34927
34928     if test $ac_cv_func_remove = no; then
34929       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
34930 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
34931 if test "${ac_cv_lib_posix_remove+set}" = set; then
34932   echo $ECHO_N "(cached) $ECHO_C" >&6
34933 else
34934   ac_check_lib_save_LIBS=$LIBS
34935 LIBS="-lposix  $LIBS"
34936 cat >conftest.$ac_ext <<_ACEOF
34937 /* confdefs.h.  */
34938 _ACEOF
34939 cat confdefs.h >>conftest.$ac_ext
34940 cat >>conftest.$ac_ext <<_ACEOF
34941 /* end confdefs.h.  */
34942
34943 /* Override any GCC internal prototype to avoid an error.
34944    Use char because int might match the return type of a GCC
34945    builtin and then its argument prototype would still apply.  */
34946 #ifdef __cplusplus
34947 extern "C"
34948 #endif
34949 char remove ();
34950 int
34951 main ()
34952 {
34953 return remove ();
34954   ;
34955   return 0;
34956 }
34957 _ACEOF
34958 rm -f conftest.$ac_objext conftest$ac_exeext
34959 if { (ac_try="$ac_link"
34960 case "(($ac_try" in
34961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34962   *) ac_try_echo=$ac_try;;
34963 esac
34964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34965   (eval "$ac_link") 2>conftest.er1
34966   ac_status=$?
34967   grep -v '^ *+' conftest.er1 >conftest.err
34968   rm -f conftest.er1
34969   cat conftest.err >&5
34970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971   (exit $ac_status); } &&
34972          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34973   { (case "(($ac_try" in
34974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34975   *) ac_try_echo=$ac_try;;
34976 esac
34977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34978   (eval "$ac_try") 2>&5
34979   ac_status=$?
34980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981   (exit $ac_status); }; } &&
34982          { ac_try='test -s conftest$ac_exeext'
34983   { (case "(($ac_try" in
34984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34985   *) ac_try_echo=$ac_try;;
34986 esac
34987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34988   (eval "$ac_try") 2>&5
34989   ac_status=$?
34990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34991   (exit $ac_status); }; }; then
34992   ac_cv_lib_posix_remove=yes
34993 else
34994   echo "$as_me: failed program was:" >&5
34995 sed 's/^/| /' conftest.$ac_ext >&5
34996
34997         ac_cv_lib_posix_remove=no
34998 fi
34999
35000 rm -f core conftest.err conftest.$ac_objext \
35001       conftest$ac_exeext conftest.$ac_ext
35002 LIBS=$ac_check_lib_save_LIBS
35003 fi
35004 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
35005 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
35006 if test $ac_cv_lib_posix_remove = yes; then
35007   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
35008 fi
35009
35010     fi
35011
35012     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
35013     { echo "$as_me:$LINENO: checking for shmat" >&5
35014 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
35015 if test "${ac_cv_func_shmat+set}" = set; then
35016   echo $ECHO_N "(cached) $ECHO_C" >&6
35017 else
35018   cat >conftest.$ac_ext <<_ACEOF
35019 /* confdefs.h.  */
35020 _ACEOF
35021 cat confdefs.h >>conftest.$ac_ext
35022 cat >>conftest.$ac_ext <<_ACEOF
35023 /* end confdefs.h.  */
35024 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
35025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35026 #define shmat innocuous_shmat
35027
35028 /* System header to define __stub macros and hopefully few prototypes,
35029     which can conflict with char shmat (); below.
35030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35031     <limits.h> exists even on freestanding compilers.  */
35032
35033 #ifdef __STDC__
35034 # include <limits.h>
35035 #else
35036 # include <assert.h>
35037 #endif
35038
35039 #undef shmat
35040
35041 /* Override any GCC internal prototype to avoid an error.
35042    Use char because int might match the return type of a GCC
35043    builtin and then its argument prototype would still apply.  */
35044 #ifdef __cplusplus
35045 extern "C"
35046 #endif
35047 char shmat ();
35048 /* The GNU C library defines this for functions which it implements
35049     to always fail with ENOSYS.  Some functions are actually named
35050     something starting with __ and the normal name is an alias.  */
35051 #if defined __stub_shmat || defined __stub___shmat
35052 choke me
35053 #endif
35054
35055 int
35056 main ()
35057 {
35058 return shmat ();
35059   ;
35060   return 0;
35061 }
35062 _ACEOF
35063 rm -f conftest.$ac_objext conftest$ac_exeext
35064 if { (ac_try="$ac_link"
35065 case "(($ac_try" in
35066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35067   *) ac_try_echo=$ac_try;;
35068 esac
35069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35070   (eval "$ac_link") 2>conftest.er1
35071   ac_status=$?
35072   grep -v '^ *+' conftest.er1 >conftest.err
35073   rm -f conftest.er1
35074   cat conftest.err >&5
35075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35076   (exit $ac_status); } &&
35077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35078   { (case "(($ac_try" in
35079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35080   *) ac_try_echo=$ac_try;;
35081 esac
35082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35083   (eval "$ac_try") 2>&5
35084   ac_status=$?
35085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35086   (exit $ac_status); }; } &&
35087          { ac_try='test -s conftest$ac_exeext'
35088   { (case "(($ac_try" in
35089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35090   *) ac_try_echo=$ac_try;;
35091 esac
35092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35093   (eval "$ac_try") 2>&5
35094   ac_status=$?
35095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096   (exit $ac_status); }; }; then
35097   ac_cv_func_shmat=yes
35098 else
35099   echo "$as_me: failed program was:" >&5
35100 sed 's/^/| /' conftest.$ac_ext >&5
35101
35102         ac_cv_func_shmat=no
35103 fi
35104
35105 rm -f core conftest.err conftest.$ac_objext \
35106       conftest$ac_exeext conftest.$ac_ext
35107 fi
35108 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
35109 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
35110
35111     if test $ac_cv_func_shmat = no; then
35112       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
35113 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
35114 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
35115   echo $ECHO_N "(cached) $ECHO_C" >&6
35116 else
35117   ac_check_lib_save_LIBS=$LIBS
35118 LIBS="-lipc  $LIBS"
35119 cat >conftest.$ac_ext <<_ACEOF
35120 /* confdefs.h.  */
35121 _ACEOF
35122 cat confdefs.h >>conftest.$ac_ext
35123 cat >>conftest.$ac_ext <<_ACEOF
35124 /* end confdefs.h.  */
35125
35126 /* Override any GCC internal prototype to avoid an error.
35127    Use char because int might match the return type of a GCC
35128    builtin and then its argument prototype would still apply.  */
35129 #ifdef __cplusplus
35130 extern "C"
35131 #endif
35132 char shmat ();
35133 int
35134 main ()
35135 {
35136 return shmat ();
35137   ;
35138   return 0;
35139 }
35140 _ACEOF
35141 rm -f conftest.$ac_objext conftest$ac_exeext
35142 if { (ac_try="$ac_link"
35143 case "(($ac_try" in
35144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35145   *) ac_try_echo=$ac_try;;
35146 esac
35147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35148   (eval "$ac_link") 2>conftest.er1
35149   ac_status=$?
35150   grep -v '^ *+' conftest.er1 >conftest.err
35151   rm -f conftest.er1
35152   cat conftest.err >&5
35153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35154   (exit $ac_status); } &&
35155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35156   { (case "(($ac_try" in
35157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35158   *) ac_try_echo=$ac_try;;
35159 esac
35160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35161   (eval "$ac_try") 2>&5
35162   ac_status=$?
35163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164   (exit $ac_status); }; } &&
35165          { ac_try='test -s conftest$ac_exeext'
35166   { (case "(($ac_try" in
35167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35168   *) ac_try_echo=$ac_try;;
35169 esac
35170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35171   (eval "$ac_try") 2>&5
35172   ac_status=$?
35173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174   (exit $ac_status); }; }; then
35175   ac_cv_lib_ipc_shmat=yes
35176 else
35177   echo "$as_me: failed program was:" >&5
35178 sed 's/^/| /' conftest.$ac_ext >&5
35179
35180         ac_cv_lib_ipc_shmat=no
35181 fi
35182
35183 rm -f core conftest.err conftest.$ac_objext \
35184       conftest$ac_exeext conftest.$ac_ext
35185 LIBS=$ac_check_lib_save_LIBS
35186 fi
35187 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
35188 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
35189 if test $ac_cv_lib_ipc_shmat = yes; then
35190   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
35191 fi
35192
35193     fi
35194   fi
35195
35196   # Check for libraries that X11R6 Xt/Xaw programs need.
35197   ac_save_LDFLAGS=$LDFLAGS
35198   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
35199   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
35200   # check for ICE first), but we must link in the order -lSM -lICE or
35201   # we get undefined symbols.  So assume we have SM if we have ICE.
35202   # These have to be linked with before -lX11, unlike the other
35203   # libraries we check for below, so use a different variable.
35204   # John Interrante, Karl Berry
35205   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
35206 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
35207 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
35208   echo $ECHO_N "(cached) $ECHO_C" >&6
35209 else
35210   ac_check_lib_save_LIBS=$LIBS
35211 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
35212 cat >conftest.$ac_ext <<_ACEOF
35213 /* confdefs.h.  */
35214 _ACEOF
35215 cat confdefs.h >>conftest.$ac_ext
35216 cat >>conftest.$ac_ext <<_ACEOF
35217 /* end confdefs.h.  */
35218
35219 /* Override any GCC internal prototype to avoid an error.
35220    Use char because int might match the return type of a GCC
35221    builtin and then its argument prototype would still apply.  */
35222 #ifdef __cplusplus
35223 extern "C"
35224 #endif
35225 char IceConnectionNumber ();
35226 int
35227 main ()
35228 {
35229 return IceConnectionNumber ();
35230   ;
35231   return 0;
35232 }
35233 _ACEOF
35234 rm -f conftest.$ac_objext conftest$ac_exeext
35235 if { (ac_try="$ac_link"
35236 case "(($ac_try" in
35237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35238   *) ac_try_echo=$ac_try;;
35239 esac
35240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35241   (eval "$ac_link") 2>conftest.er1
35242   ac_status=$?
35243   grep -v '^ *+' conftest.er1 >conftest.err
35244   rm -f conftest.er1
35245   cat conftest.err >&5
35246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35247   (exit $ac_status); } &&
35248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35249   { (case "(($ac_try" in
35250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35251   *) ac_try_echo=$ac_try;;
35252 esac
35253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35254   (eval "$ac_try") 2>&5
35255   ac_status=$?
35256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35257   (exit $ac_status); }; } &&
35258          { ac_try='test -s conftest$ac_exeext'
35259   { (case "(($ac_try" in
35260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35261   *) ac_try_echo=$ac_try;;
35262 esac
35263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35264   (eval "$ac_try") 2>&5
35265   ac_status=$?
35266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267   (exit $ac_status); }; }; then
35268   ac_cv_lib_ICE_IceConnectionNumber=yes
35269 else
35270   echo "$as_me: failed program was:" >&5
35271 sed 's/^/| /' conftest.$ac_ext >&5
35272
35273         ac_cv_lib_ICE_IceConnectionNumber=no
35274 fi
35275
35276 rm -f core conftest.err conftest.$ac_objext \
35277       conftest$ac_exeext conftest.$ac_ext
35278 LIBS=$ac_check_lib_save_LIBS
35279 fi
35280 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
35281 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
35282 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
35283   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
35284 fi
35285
35286   LDFLAGS=$ac_save_LDFLAGS
35287
35288 fi
35289
35290
35291         if test "$no_x" = "yes"; then
35292           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
35293 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
35294    { (exit 1); exit 1; }; }
35295         fi
35296
35297                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
35298         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
35299         AFMINSTALL=afminstall
35300         COMPILED_X_PROGRAM=0
35301
35302     fi
35303
35304     if test "$wxUSE_X11" = 1; then
35305         if test "$wxUSE_NANOX" = "yes"; then
35306             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
35307 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
35308             if test "x$MICROWIN" = x ; then
35309                 { echo "$as_me:$LINENO: result: not found" >&5
35310 echo "${ECHO_T}not found" >&6; }
35311                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
35312 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
35313    { (exit 1); exit 1; }; }
35314             else
35315                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
35316 echo "${ECHO_T}$MICROWIN" >&6; }
35317                 cat >>confdefs.h <<\_ACEOF
35318 #define wxUSE_NANOX 1
35319 _ACEOF
35320
35321             fi
35322         fi
35323
35324         if test "$wxUSE_UNICODE" = "yes"; then
35325
35326
35327 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
35328         if test -n "$ac_tool_prefix"; then
35329   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
35330 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
35331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35333 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35334   echo $ECHO_N "(cached) $ECHO_C" >&6
35335 else
35336   case $PKG_CONFIG in
35337   [\\/]* | ?:[\\/]*)
35338   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35339   ;;
35340   *)
35341   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35342 for as_dir in $PATH
35343 do
35344   IFS=$as_save_IFS
35345   test -z "$as_dir" && as_dir=.
35346   for ac_exec_ext in '' $ac_executable_extensions; do
35347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
35348     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35350     break 2
35351   fi
35352 done
35353 done
35354 IFS=$as_save_IFS
35355
35356   ;;
35357 esac
35358 fi
35359 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35360 if test -n "$PKG_CONFIG"; then
35361   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35362 echo "${ECHO_T}$PKG_CONFIG" >&6; }
35363 else
35364   { echo "$as_me:$LINENO: result: no" >&5
35365 echo "${ECHO_T}no" >&6; }
35366 fi
35367
35368
35369 fi
35370 if test -z "$ac_cv_path_PKG_CONFIG"; then
35371   ac_pt_PKG_CONFIG=$PKG_CONFIG
35372   # Extract the first word of "pkg-config", so it can be a program name with args.
35373 set dummy pkg-config; ac_word=$2
35374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
35375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
35376 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
35377   echo $ECHO_N "(cached) $ECHO_C" >&6
35378 else
35379   case $ac_pt_PKG_CONFIG in
35380   [\\/]* | ?:[\\/]*)
35381   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
35382   ;;
35383   *)
35384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35385 for as_dir in $PATH
35386 do
35387   IFS=$as_save_IFS
35388   test -z "$as_dir" && as_dir=.
35389   for ac_exec_ext in '' $ac_executable_extensions; do
35390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
35391     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35393     break 2
35394   fi
35395 done
35396 done
35397 IFS=$as_save_IFS
35398
35399   ;;
35400 esac
35401 fi
35402 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
35403 if test -n "$ac_pt_PKG_CONFIG"; then
35404   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
35405 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
35406 else
35407   { echo "$as_me:$LINENO: result: no" >&5
35408 echo "${ECHO_T}no" >&6; }
35409 fi
35410
35411   if test "x$ac_pt_PKG_CONFIG" = x; then
35412     PKG_CONFIG=""
35413   else
35414     case $cross_compiling:$ac_tool_warned in
35415 yes:)
35416 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
35417 whose name does not start with the host triplet.  If you think this
35418 configuration is useful to you, please write to autoconf@gnu.org." >&5
35419 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
35420 whose name does not start with the host triplet.  If you think this
35421 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
35422 ac_tool_warned=yes ;;
35423 esac
35424     PKG_CONFIG=$ac_pt_PKG_CONFIG
35425   fi
35426 else
35427   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
35428 fi
35429
35430 fi
35431 if test -n "$PKG_CONFIG"; then
35432         _pkg_min_version=0.9.0
35433         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
35434 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
35435         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
35436                 { echo "$as_me:$LINENO: result: yes" >&5
35437 echo "${ECHO_T}yes" >&6; }
35438         else
35439                 { echo "$as_me:$LINENO: result: no" >&5
35440 echo "${ECHO_T}no" >&6; }
35441                 PKG_CONFIG=""
35442         fi
35443
35444 fi
35445
35446
35447 pkg_failed=no
35448 { echo "$as_me:$LINENO: checking for PANGOX" >&5
35449 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
35450
35451 if test -n "$PKG_CONFIG"; then
35452     if test -n "$PANGOX_CFLAGS"; then
35453         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
35454     else
35455         if test -n "$PKG_CONFIG" && \
35456     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
35457   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
35458   ac_status=$?
35459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460   (exit $ac_status); }; then
35461   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
35462 else
35463   pkg_failed=yes
35464 fi
35465     fi
35466 else
35467         pkg_failed=untried
35468 fi
35469 if test -n "$PKG_CONFIG"; then
35470     if test -n "$PANGOX_LIBS"; then
35471         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
35472     else
35473         if test -n "$PKG_CONFIG" && \
35474     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
35475   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
35476   ac_status=$?
35477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35478   (exit $ac_status); }; then
35479   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
35480 else
35481   pkg_failed=yes
35482 fi
35483     fi
35484 else
35485         pkg_failed=untried
35486 fi
35487
35488
35489
35490 if test $pkg_failed = yes; then
35491
35492 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35493         _pkg_short_errors_supported=yes
35494 else
35495         _pkg_short_errors_supported=no
35496 fi
35497         if test $_pkg_short_errors_supported = yes; then
35498                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
35499         else
35500                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
35501         fi
35502         # Put the nasty error message in config.log where it belongs
35503         echo "$PANGOX_PKG_ERRORS" >&5
35504
35505
35506                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
35507 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
35508    { (exit 1); exit 1; }; }
35509
35510
35511 elif test $pkg_failed = untried; then
35512
35513                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
35514 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
35515    { (exit 1); exit 1; }; }
35516
35517
35518 else
35519         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
35520         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
35521         { echo "$as_me:$LINENO: result: yes" >&5
35522 echo "${ECHO_T}yes" >&6; }
35523
35524                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
35525                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
35526                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
35527
35528 fi
35529
35530 pkg_failed=no
35531 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
35532 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
35533
35534 if test -n "$PKG_CONFIG"; then
35535     if test -n "$PANGOFT2_CFLAGS"; then
35536         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
35537     else
35538         if test -n "$PKG_CONFIG" && \
35539     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
35540   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
35541   ac_status=$?
35542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543   (exit $ac_status); }; then
35544   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
35545 else
35546   pkg_failed=yes
35547 fi
35548     fi
35549 else
35550         pkg_failed=untried
35551 fi
35552 if test -n "$PKG_CONFIG"; then
35553     if test -n "$PANGOFT2_LIBS"; then
35554         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
35555     else
35556         if test -n "$PKG_CONFIG" && \
35557     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
35558   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
35559   ac_status=$?
35560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561   (exit $ac_status); }; then
35562   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
35563 else
35564   pkg_failed=yes
35565 fi
35566     fi
35567 else
35568         pkg_failed=untried
35569 fi
35570
35571
35572
35573 if test $pkg_failed = yes; then
35574
35575 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35576         _pkg_short_errors_supported=yes
35577 else
35578         _pkg_short_errors_supported=no
35579 fi
35580         if test $_pkg_short_errors_supported = yes; then
35581                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
35582         else
35583                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
35584         fi
35585         # Put the nasty error message in config.log where it belongs
35586         echo "$PANGOFT2_PKG_ERRORS" >&5
35587
35588
35589                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
35590 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
35591                     wxUSE_PRINTING_ARCHITECTURE="no"
35592
35593
35594 elif test $pkg_failed = untried; then
35595
35596                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
35597 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
35598                     wxUSE_PRINTING_ARCHITECTURE="no"
35599
35600
35601 else
35602         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
35603         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
35604         { echo "$as_me:$LINENO: result: yes" >&5
35605 echo "${ECHO_T}yes" >&6; }
35606
35607                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
35608                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
35609                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
35610
35611 fi
35612
35613 pkg_failed=no
35614 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
35615 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
35616
35617 if test -n "$PKG_CONFIG"; then
35618     if test -n "$PANGOXFT_CFLAGS"; then
35619         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
35620     else
35621         if test -n "$PKG_CONFIG" && \
35622     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
35623   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
35624   ac_status=$?
35625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626   (exit $ac_status); }; then
35627   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
35628 else
35629   pkg_failed=yes
35630 fi
35631     fi
35632 else
35633         pkg_failed=untried
35634 fi
35635 if test -n "$PKG_CONFIG"; then
35636     if test -n "$PANGOXFT_LIBS"; then
35637         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
35638     else
35639         if test -n "$PKG_CONFIG" && \
35640     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
35641   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
35642   ac_status=$?
35643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35644   (exit $ac_status); }; then
35645   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
35646 else
35647   pkg_failed=yes
35648 fi
35649     fi
35650 else
35651         pkg_failed=untried
35652 fi
35653
35654
35655
35656 if test $pkg_failed = yes; then
35657
35658 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35659         _pkg_short_errors_supported=yes
35660 else
35661         _pkg_short_errors_supported=no
35662 fi
35663         if test $_pkg_short_errors_supported = yes; then
35664                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
35665         else
35666                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
35667         fi
35668         # Put the nasty error message in config.log where it belongs
35669         echo "$PANGOXFT_PKG_ERRORS" >&5
35670
35671
35672                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
35673 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
35674
35675
35676 elif test $pkg_failed = untried; then
35677
35678                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
35679 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
35680
35681
35682 else
35683         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
35684         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
35685         { echo "$as_me:$LINENO: result: yes" >&5
35686 echo "${ECHO_T}yes" >&6; }
35687
35688                     cat >>confdefs.h <<\_ACEOF
35689 #define HAVE_PANGO_XFT 1
35690 _ACEOF
35691
35692                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
35693                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
35694                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
35695
35696 fi
35697             save_LIBS="$LIBS"
35698             LIBS="$LIBS $PANGOX_LIBS"
35699
35700 for ac_func in pango_font_family_is_monospace
35701 do
35702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35706   echo $ECHO_N "(cached) $ECHO_C" >&6
35707 else
35708   cat >conftest.$ac_ext <<_ACEOF
35709 /* confdefs.h.  */
35710 _ACEOF
35711 cat confdefs.h >>conftest.$ac_ext
35712 cat >>conftest.$ac_ext <<_ACEOF
35713 /* end confdefs.h.  */
35714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35716 #define $ac_func innocuous_$ac_func
35717
35718 /* System header to define __stub macros and hopefully few prototypes,
35719     which can conflict with char $ac_func (); below.
35720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35721     <limits.h> exists even on freestanding compilers.  */
35722
35723 #ifdef __STDC__
35724 # include <limits.h>
35725 #else
35726 # include <assert.h>
35727 #endif
35728
35729 #undef $ac_func
35730
35731 /* Override any GCC internal prototype to avoid an error.
35732    Use char because int might match the return type of a GCC
35733    builtin and then its argument prototype would still apply.  */
35734 #ifdef __cplusplus
35735 extern "C"
35736 #endif
35737 char $ac_func ();
35738 /* The GNU C library defines this for functions which it implements
35739     to always fail with ENOSYS.  Some functions are actually named
35740     something starting with __ and the normal name is an alias.  */
35741 #if defined __stub_$ac_func || defined __stub___$ac_func
35742 choke me
35743 #endif
35744
35745 int
35746 main ()
35747 {
35748 return $ac_func ();
35749   ;
35750   return 0;
35751 }
35752 _ACEOF
35753 rm -f conftest.$ac_objext conftest$ac_exeext
35754 if { (ac_try="$ac_link"
35755 case "(($ac_try" in
35756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35757   *) ac_try_echo=$ac_try;;
35758 esac
35759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35760   (eval "$ac_link") 2>conftest.er1
35761   ac_status=$?
35762   grep -v '^ *+' conftest.er1 >conftest.err
35763   rm -f conftest.er1
35764   cat conftest.err >&5
35765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766   (exit $ac_status); } &&
35767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35768   { (case "(($ac_try" in
35769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35770   *) ac_try_echo=$ac_try;;
35771 esac
35772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35773   (eval "$ac_try") 2>&5
35774   ac_status=$?
35775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35776   (exit $ac_status); }; } &&
35777          { ac_try='test -s conftest$ac_exeext'
35778   { (case "(($ac_try" in
35779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35780   *) ac_try_echo=$ac_try;;
35781 esac
35782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35783   (eval "$ac_try") 2>&5
35784   ac_status=$?
35785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35786   (exit $ac_status); }; }; then
35787   eval "$as_ac_var=yes"
35788 else
35789   echo "$as_me: failed program was:" >&5
35790 sed 's/^/| /' conftest.$ac_ext >&5
35791
35792         eval "$as_ac_var=no"
35793 fi
35794
35795 rm -f core conftest.err conftest.$ac_objext \
35796       conftest$ac_exeext conftest.$ac_ext
35797 fi
35798 ac_res=`eval echo '${'$as_ac_var'}'`
35799                { echo "$as_me:$LINENO: result: $ac_res" >&5
35800 echo "${ECHO_T}$ac_res" >&6; }
35801 if test `eval echo '${'$as_ac_var'}'` = yes; then
35802   cat >>confdefs.h <<_ACEOF
35803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35804 _ACEOF
35805
35806 fi
35807 done
35808
35809             LIBS="$save_LIBS"
35810         fi
35811
35812         wxUSE_UNIVERSAL="yes"
35813
35814         if test "$wxUSE_NANOX" = "yes"; then
35815             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
35816             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"
35817             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
35818         else
35819             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
35820         fi
35821
35822         TOOLKIT=X11
35823         GUIDIST=X11_DIST
35824     fi
35825
35826     if test "$wxUSE_MOTIF" = 1; then
35827         if test "$wxUSE_UNICODE" = "yes"; then
35828             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
35829 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
35830    { (exit 1); exit 1; }; }
35831         fi
35832
35833         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
35834 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
35835
35836 ac_find_includes=
35837 for ac_dir in $SEARCH_INCLUDE /usr/include;
35838   do
35839     if test -f "$ac_dir/Xm/Xm.h"; then
35840       ac_find_includes=$ac_dir
35841       break
35842     fi
35843   done
35844
35845         if test "$ac_find_includes" != "" ; then
35846             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35847 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35848
35849     if test "x$ac_find_includes" = "x/usr/include"; then
35850     ac_path_to_include=""
35851   else
35852     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
35853     result=$?
35854     if test $result = 0; then
35855       ac_path_to_include=""
35856     else
35857       ac_path_to_include=" -I$ac_find_includes"
35858     fi
35859   fi
35860
35861             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
35862         else
35863             save_CFLAGS=$CFLAGS
35864             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
35865
35866             cat >conftest.$ac_ext <<_ACEOF
35867 /* confdefs.h.  */
35868 _ACEOF
35869 cat confdefs.h >>conftest.$ac_ext
35870 cat >>conftest.$ac_ext <<_ACEOF
35871 /* end confdefs.h.  */
35872
35873                     #include <Xm/Xm.h>
35874
35875 int
35876 main ()
35877 {
35878
35879                     int version;
35880                     version = xmUseVersion;
35881
35882   ;
35883   return 0;
35884 }
35885 _ACEOF
35886 rm -f conftest.$ac_objext
35887 if { (ac_try="$ac_compile"
35888 case "(($ac_try" in
35889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35890   *) ac_try_echo=$ac_try;;
35891 esac
35892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35893   (eval "$ac_compile") 2>conftest.er1
35894   ac_status=$?
35895   grep -v '^ *+' conftest.er1 >conftest.err
35896   rm -f conftest.er1
35897   cat conftest.err >&5
35898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35899   (exit $ac_status); } &&
35900          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35901   { (case "(($ac_try" in
35902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35903   *) ac_try_echo=$ac_try;;
35904 esac
35905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35906   (eval "$ac_try") 2>&5
35907   ac_status=$?
35908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35909   (exit $ac_status); }; } &&
35910          { ac_try='test -s conftest.$ac_objext'
35911   { (case "(($ac_try" in
35912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35913   *) ac_try_echo=$ac_try;;
35914 esac
35915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35916   (eval "$ac_try") 2>&5
35917   ac_status=$?
35918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35919   (exit $ac_status); }; }; then
35920
35921                     { echo "$as_me:$LINENO: result: found in default search path" >&5
35922 echo "${ECHO_T}found in default search path" >&6; }
35923                     COMPILED_X_PROGRAM=1
35924
35925 else
35926   echo "$as_me: failed program was:" >&5
35927 sed 's/^/| /' conftest.$ac_ext >&5
35928
35929
35930                     { echo "$as_me:$LINENO: result: no" >&5
35931 echo "${ECHO_T}no" >&6; }
35932                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
35933 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
35934    { (exit 1); exit 1; }; }
35935
35936
35937 fi
35938
35939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35940
35941             CFLAGS=$save_CFLAGS
35942         fi
35943
35944
35945         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
35946 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
35947
35948   ac_find_libraries=
35949   for ac_dir in $SEARCH_LIB;
35950   do
35951     for ac_extension in a so sl dylib dll.a; do
35952       if test -f "$ac_dir/libXm.$ac_extension"; then
35953         ac_find_libraries=$ac_dir
35954         break 2
35955       fi
35956     done
35957   done
35958
35959
35960         if test "x$ac_find_libraries" != "x" ; then
35961             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
35962 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
35963
35964
35965     if test "$ac_find_libraries" = "default location"; then
35966     ac_path_to_link=""
35967   else
35968     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
35969     result=$?
35970     if test $result = 0; then
35971       ac_path_to_link=""
35972     else
35973       ac_path_to_link=" -L$ac_find_libraries"
35974     fi
35975   fi
35976
35977             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
35978         else
35979                                                 save_CFLAGS=$CFLAGS
35980             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
35981             save_LIBS="$LIBS"
35982             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
35983
35984             cat >conftest.$ac_ext <<_ACEOF
35985 /* confdefs.h.  */
35986 _ACEOF
35987 cat confdefs.h >>conftest.$ac_ext
35988 cat >>conftest.$ac_ext <<_ACEOF
35989 /* end confdefs.h.  */
35990
35991                     #include <Xm/Xm.h>
35992
35993 int
35994 main ()
35995 {
35996
35997                     int version;
35998                     version = xmUseVersion;
35999
36000   ;
36001   return 0;
36002 }
36003 _ACEOF
36004 rm -f conftest.$ac_objext conftest$ac_exeext
36005 if { (ac_try="$ac_link"
36006 case "(($ac_try" in
36007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36008   *) ac_try_echo=$ac_try;;
36009 esac
36010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36011   (eval "$ac_link") 2>conftest.er1
36012   ac_status=$?
36013   grep -v '^ *+' conftest.er1 >conftest.err
36014   rm -f conftest.er1
36015   cat conftest.err >&5
36016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36017   (exit $ac_status); } &&
36018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36019   { (case "(($ac_try" in
36020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36021   *) ac_try_echo=$ac_try;;
36022 esac
36023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36024   (eval "$ac_try") 2>&5
36025   ac_status=$?
36026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027   (exit $ac_status); }; } &&
36028          { ac_try='test -s conftest$ac_exeext'
36029   { (case "(($ac_try" in
36030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36031   *) ac_try_echo=$ac_try;;
36032 esac
36033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36034   (eval "$ac_try") 2>&5
36035   ac_status=$?
36036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36037   (exit $ac_status); }; }; then
36038
36039                     { echo "$as_me:$LINENO: result: found in default search path" >&5
36040 echo "${ECHO_T}found in default search path" >&6; }
36041                     COMPILED_X_PROGRAM=1
36042
36043 else
36044   echo "$as_me: failed program was:" >&5
36045 sed 's/^/| /' conftest.$ac_ext >&5
36046
36047
36048                     { echo "$as_me:$LINENO: result: no" >&5
36049 echo "${ECHO_T}no" >&6; }
36050                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
36051 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
36052    { (exit 1); exit 1; }; }
36053
36054
36055 fi
36056
36057 rm -f core conftest.err conftest.$ac_objext \
36058       conftest$ac_exeext conftest.$ac_ext
36059
36060             CFLAGS=$save_CFLAGS
36061             LIBS="$save_LIBS"
36062         fi
36063
36064         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
36065 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
36066         libp_link=""
36067         libsm_ice_link=""
36068         libs_found=0
36069         for libp in "" " -lXp"; do
36070             if test "$libs_found" = "0"; then
36071                 for libsm_ice in "" " -lSM -lICE"; do
36072                     if test "$libs_found" = "0"; then
36073                         save_LIBS="$LIBS"
36074                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
36075                         save_CFLAGS=$CFLAGS
36076                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
36077
36078                         cat >conftest.$ac_ext <<_ACEOF
36079 /* confdefs.h.  */
36080 _ACEOF
36081 cat confdefs.h >>conftest.$ac_ext
36082 cat >>conftest.$ac_ext <<_ACEOF
36083 /* end confdefs.h.  */
36084
36085                                 #include <Xm/Xm.h>
36086                                 #include <Xm/List.h>
36087
36088 int
36089 main ()
36090 {
36091
36092                                 XmString string = NULL;
36093                                 Widget w = NULL;
36094                                 int position = 0;
36095                                 XmListAddItem(w, string, position);
36096
36097   ;
36098   return 0;
36099 }
36100 _ACEOF
36101 rm -f conftest.$ac_objext conftest$ac_exeext
36102 if { (ac_try="$ac_link"
36103 case "(($ac_try" in
36104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36105   *) ac_try_echo=$ac_try;;
36106 esac
36107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36108   (eval "$ac_link") 2>conftest.er1
36109   ac_status=$?
36110   grep -v '^ *+' conftest.er1 >conftest.err
36111   rm -f conftest.er1
36112   cat conftest.err >&5
36113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36114   (exit $ac_status); } &&
36115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36116   { (case "(($ac_try" in
36117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36118   *) ac_try_echo=$ac_try;;
36119 esac
36120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36121   (eval "$ac_try") 2>&5
36122   ac_status=$?
36123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36124   (exit $ac_status); }; } &&
36125          { ac_try='test -s conftest$ac_exeext'
36126   { (case "(($ac_try" in
36127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36128   *) ac_try_echo=$ac_try;;
36129 esac
36130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36131   (eval "$ac_try") 2>&5
36132   ac_status=$?
36133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36134   (exit $ac_status); }; }; then
36135
36136                                 libp_link="$libp"
36137                                 libsm_ice_link="$libsm_ice"
36138                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
36139 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
36140                                 libs_found=1
36141
36142 else
36143   echo "$as_me: failed program was:" >&5
36144 sed 's/^/| /' conftest.$ac_ext >&5
36145
36146
36147
36148 fi
36149
36150 rm -f core conftest.err conftest.$ac_objext \
36151       conftest$ac_exeext conftest.$ac_ext
36152
36153                         LIBS="$save_LIBS"
36154                         CFLAGS=$save_CFLAGS
36155                     fi
36156                 done
36157             fi
36158         done
36159
36160         if test "$libs_found" = "0"; then
36161             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
36162 echo "${ECHO_T}can't find the right libraries" >&6; }
36163             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
36164 echo "$as_me: error: can't link a simple motif program" >&2;}
36165    { (exit 1); exit 1; }; }
36166         fi
36167
36168                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
36169 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
36170 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
36171   echo $ECHO_N "(cached) $ECHO_C" >&6
36172 else
36173   ac_check_lib_save_LIBS=$LIBS
36174 LIBS="-lSgm  $LIBS"
36175 cat >conftest.$ac_ext <<_ACEOF
36176 /* confdefs.h.  */
36177 _ACEOF
36178 cat confdefs.h >>conftest.$ac_ext
36179 cat >>conftest.$ac_ext <<_ACEOF
36180 /* end confdefs.h.  */
36181
36182 /* Override any GCC internal prototype to avoid an error.
36183    Use char because int might match the return type of a GCC
36184    builtin and then its argument prototype would still apply.  */
36185 #ifdef __cplusplus
36186 extern "C"
36187 #endif
36188 char SgCreateList ();
36189 int
36190 main ()
36191 {
36192 return SgCreateList ();
36193   ;
36194   return 0;
36195 }
36196 _ACEOF
36197 rm -f conftest.$ac_objext conftest$ac_exeext
36198 if { (ac_try="$ac_link"
36199 case "(($ac_try" in
36200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36201   *) ac_try_echo=$ac_try;;
36202 esac
36203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36204   (eval "$ac_link") 2>conftest.er1
36205   ac_status=$?
36206   grep -v '^ *+' conftest.er1 >conftest.err
36207   rm -f conftest.er1
36208   cat conftest.err >&5
36209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210   (exit $ac_status); } &&
36211          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36212   { (case "(($ac_try" in
36213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36214   *) ac_try_echo=$ac_try;;
36215 esac
36216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36217   (eval "$ac_try") 2>&5
36218   ac_status=$?
36219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36220   (exit $ac_status); }; } &&
36221          { ac_try='test -s conftest$ac_exeext'
36222   { (case "(($ac_try" in
36223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36224   *) ac_try_echo=$ac_try;;
36225 esac
36226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36227   (eval "$ac_try") 2>&5
36228   ac_status=$?
36229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230   (exit $ac_status); }; }; then
36231   ac_cv_lib_Sgm_SgCreateList=yes
36232 else
36233   echo "$as_me: failed program was:" >&5
36234 sed 's/^/| /' conftest.$ac_ext >&5
36235
36236         ac_cv_lib_Sgm_SgCreateList=no
36237 fi
36238
36239 rm -f core conftest.err conftest.$ac_objext \
36240       conftest$ac_exeext conftest.$ac_ext
36241 LIBS=$ac_check_lib_save_LIBS
36242 fi
36243 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
36244 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
36245 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
36246   libsgm_link=" -lSgm"
36247 fi
36248
36249
36250         save_CFLAGS=$CFLAGS
36251         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
36252
36253         { echo "$as_me:$LINENO: checking for Motif 2" >&5
36254 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
36255 if test "${wx_cv_lib_motif2+set}" = set; then
36256   echo $ECHO_N "(cached) $ECHO_C" >&6
36257 else
36258   cat >conftest.$ac_ext <<_ACEOF
36259 /* confdefs.h.  */
36260 _ACEOF
36261 cat confdefs.h >>conftest.$ac_ext
36262 cat >>conftest.$ac_ext <<_ACEOF
36263 /* end confdefs.h.  */
36264
36265                             #include <Xm/Xm.h>
36266
36267 int
36268 main ()
36269 {
36270
36271                             #if XmVersion < 2000
36272                             Not Motif 2
36273                             #endif
36274
36275   ;
36276   return 0;
36277 }
36278 _ACEOF
36279 rm -f conftest.$ac_objext
36280 if { (ac_try="$ac_compile"
36281 case "(($ac_try" in
36282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36283   *) ac_try_echo=$ac_try;;
36284 esac
36285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36286   (eval "$ac_compile") 2>conftest.er1
36287   ac_status=$?
36288   grep -v '^ *+' conftest.er1 >conftest.err
36289   rm -f conftest.er1
36290   cat conftest.err >&5
36291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292   (exit $ac_status); } &&
36293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36294   { (case "(($ac_try" in
36295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36296   *) ac_try_echo=$ac_try;;
36297 esac
36298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36299   (eval "$ac_try") 2>&5
36300   ac_status=$?
36301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302   (exit $ac_status); }; } &&
36303          { ac_try='test -s conftest.$ac_objext'
36304   { (case "(($ac_try" in
36305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36306   *) ac_try_echo=$ac_try;;
36307 esac
36308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36309   (eval "$ac_try") 2>&5
36310   ac_status=$?
36311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36312   (exit $ac_status); }; }; then
36313   wx_cv_lib_motif2="yes"
36314 else
36315   echo "$as_me: failed program was:" >&5
36316 sed 's/^/| /' conftest.$ac_ext >&5
36317
36318         wx_cv_lib_motif2="no"
36319 fi
36320
36321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36322 fi
36323 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
36324 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
36325         if test "$wx_cv_lib_motif2" = "yes"; then
36326             cat >>confdefs.h <<\_ACEOF
36327 #define __WXMOTIF20__ 1
36328 _ACEOF
36329
36330         else
36331             cat >>confdefs.h <<\_ACEOF
36332 #define __WXMOTIF20__ 0
36333 _ACEOF
36334
36335         fi
36336
36337         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
36338 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
36339 if test "${wx_cv_lib_lesstif+set}" = set; then
36340   echo $ECHO_N "(cached) $ECHO_C" >&6
36341 else
36342   cat >conftest.$ac_ext <<_ACEOF
36343 /* confdefs.h.  */
36344 _ACEOF
36345 cat confdefs.h >>conftest.$ac_ext
36346 cat >>conftest.$ac_ext <<_ACEOF
36347 /* end confdefs.h.  */
36348
36349                             #include <Xm/Xm.h>
36350
36351 int
36352 main ()
36353 {
36354
36355                             #if !defined(LesstifVersion) || LesstifVersion <= 0
36356                             Not Lesstif
36357                             #endif
36358
36359   ;
36360   return 0;
36361 }
36362 _ACEOF
36363 rm -f conftest.$ac_objext
36364 if { (ac_try="$ac_compile"
36365 case "(($ac_try" in
36366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36367   *) ac_try_echo=$ac_try;;
36368 esac
36369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36370   (eval "$ac_compile") 2>conftest.er1
36371   ac_status=$?
36372   grep -v '^ *+' conftest.er1 >conftest.err
36373   rm -f conftest.er1
36374   cat conftest.err >&5
36375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376   (exit $ac_status); } &&
36377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36378   { (case "(($ac_try" in
36379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36380   *) ac_try_echo=$ac_try;;
36381 esac
36382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36383   (eval "$ac_try") 2>&5
36384   ac_status=$?
36385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386   (exit $ac_status); }; } &&
36387          { ac_try='test -s conftest.$ac_objext'
36388   { (case "(($ac_try" in
36389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36390   *) ac_try_echo=$ac_try;;
36391 esac
36392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36393   (eval "$ac_try") 2>&5
36394   ac_status=$?
36395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36396   (exit $ac_status); }; }; then
36397   wx_cv_lib_lesstif="yes"
36398 else
36399   echo "$as_me: failed program was:" >&5
36400 sed 's/^/| /' conftest.$ac_ext >&5
36401
36402         wx_cv_lib_lesstif="no"
36403 fi
36404
36405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36406
36407 fi
36408 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
36409 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
36410         if test "$wx_cv_lib_lesstif" = "yes"; then
36411             cat >>confdefs.h <<\_ACEOF
36412 #define __WXLESSTIF__ 1
36413 _ACEOF
36414
36415         else
36416             cat >>confdefs.h <<\_ACEOF
36417 #define __WXLESSTIF__ 0
36418 _ACEOF
36419
36420         fi
36421
36422         CFLAGS=$save_CFLAGS
36423
36424         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
36425         TOOLKIT=MOTIF
36426         GUIDIST=MOTIF_DIST
36427     fi
36428
36429         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
36430                 if test "$wxUSE_LIBXPM" = "sys"; then
36431             { echo "$as_me:$LINENO: checking for Xpm library" >&5
36432 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
36433
36434   ac_find_libraries=
36435   for ac_dir in $SEARCH_LIB;
36436   do
36437     for ac_extension in a so sl dylib dll.a; do
36438       if test -f "$ac_dir/libXpm.$ac_extension"; then
36439         ac_find_libraries=$ac_dir
36440         break 2
36441       fi
36442     done
36443   done
36444
36445             if test "$ac_find_libraries" != "" ; then
36446
36447     if test "$ac_find_libraries" = "default location"; then
36448     ac_path_to_link=""
36449   else
36450     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
36451     result=$?
36452     if test $result = 0; then
36453       ac_path_to_link=""
36454     else
36455       ac_path_to_link=" -L$ac_find_libraries"
36456     fi
36457   fi
36458
36459                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
36460                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
36461 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
36462
36463                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
36464 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
36465 if test "${wx_cv_x11_xpm_h+set}" = set; then
36466   echo $ECHO_N "(cached) $ECHO_C" >&6
36467 else
36468
36469                         save_CFLAGS=$CFLAGS
36470                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
36471
36472                         cat >conftest.$ac_ext <<_ACEOF
36473 /* confdefs.h.  */
36474 _ACEOF
36475 cat confdefs.h >>conftest.$ac_ext
36476 cat >>conftest.$ac_ext <<_ACEOF
36477 /* end confdefs.h.  */
36478
36479                                 #include <X11/xpm.h>
36480
36481 int
36482 main ()
36483 {
36484
36485                                 int version;
36486                                 version = XpmLibraryVersion();
36487
36488   ;
36489   return 0;
36490 }
36491 _ACEOF
36492 rm -f conftest.$ac_objext
36493 if { (ac_try="$ac_compile"
36494 case "(($ac_try" in
36495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36496   *) ac_try_echo=$ac_try;;
36497 esac
36498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36499   (eval "$ac_compile") 2>conftest.er1
36500   ac_status=$?
36501   grep -v '^ *+' conftest.er1 >conftest.err
36502   rm -f conftest.er1
36503   cat conftest.err >&5
36504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36505   (exit $ac_status); } &&
36506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36507   { (case "(($ac_try" in
36508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36509   *) ac_try_echo=$ac_try;;
36510 esac
36511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36512   (eval "$ac_try") 2>&5
36513   ac_status=$?
36514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36515   (exit $ac_status); }; } &&
36516          { ac_try='test -s conftest.$ac_objext'
36517   { (case "(($ac_try" in
36518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36519   *) ac_try_echo=$ac_try;;
36520 esac
36521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36522   (eval "$ac_try") 2>&5
36523   ac_status=$?
36524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36525   (exit $ac_status); }; }; then
36526   wx_cv_x11_xpm_h=yes
36527 else
36528   echo "$as_me: failed program was:" >&5
36529 sed 's/^/| /' conftest.$ac_ext >&5
36530
36531         wx_cv_x11_xpm_h=no
36532
36533 fi
36534
36535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36536
36537                         CFLAGS=$save_CFLAGS
36538
36539
36540 fi
36541 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
36542 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
36543
36544                 if test $wx_cv_x11_xpm_h = "yes"; then
36545                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
36546                     cat >>confdefs.h <<\_ACEOF
36547 #define wxHAVE_LIB_XPM 1
36548 _ACEOF
36549
36550                 else
36551                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
36552 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
36553                 fi
36554             fi
36555
36556         fi
36557
36558                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
36559 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
36560 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
36561   echo $ECHO_N "(cached) $ECHO_C" >&6
36562 else
36563   ac_check_lib_save_LIBS=$LIBS
36564 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
36565 cat >conftest.$ac_ext <<_ACEOF
36566 /* confdefs.h.  */
36567 _ACEOF
36568 cat confdefs.h >>conftest.$ac_ext
36569 cat >>conftest.$ac_ext <<_ACEOF
36570 /* end confdefs.h.  */
36571
36572 /* Override any GCC internal prototype to avoid an error.
36573    Use char because int might match the return type of a GCC
36574    builtin and then its argument prototype would still apply.  */
36575 #ifdef __cplusplus
36576 extern "C"
36577 #endif
36578 char XShapeQueryExtension ();
36579 int
36580 main ()
36581 {
36582 return XShapeQueryExtension ();
36583   ;
36584   return 0;
36585 }
36586 _ACEOF
36587 rm -f conftest.$ac_objext conftest$ac_exeext
36588 if { (ac_try="$ac_link"
36589 case "(($ac_try" in
36590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36591   *) ac_try_echo=$ac_try;;
36592 esac
36593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36594   (eval "$ac_link") 2>conftest.er1
36595   ac_status=$?
36596   grep -v '^ *+' conftest.er1 >conftest.err
36597   rm -f conftest.er1
36598   cat conftest.err >&5
36599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36600   (exit $ac_status); } &&
36601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36602   { (case "(($ac_try" in
36603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36604   *) ac_try_echo=$ac_try;;
36605 esac
36606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36607   (eval "$ac_try") 2>&5
36608   ac_status=$?
36609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36610   (exit $ac_status); }; } &&
36611          { ac_try='test -s conftest$ac_exeext'
36612   { (case "(($ac_try" in
36613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36614   *) ac_try_echo=$ac_try;;
36615 esac
36616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36617   (eval "$ac_try") 2>&5
36618   ac_status=$?
36619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36620   (exit $ac_status); }; }; then
36621   ac_cv_lib_Xext_XShapeQueryExtension=yes
36622 else
36623   echo "$as_me: failed program was:" >&5
36624 sed 's/^/| /' conftest.$ac_ext >&5
36625
36626         ac_cv_lib_Xext_XShapeQueryExtension=no
36627 fi
36628
36629 rm -f core conftest.err conftest.$ac_objext \
36630       conftest$ac_exeext conftest.$ac_ext
36631 LIBS=$ac_check_lib_save_LIBS
36632 fi
36633 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
36634 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
36635 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
36636
36637                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
36638                       wxHAVE_XEXT_LIB=1
36639
36640 fi
36641
36642
36643         if test "$wxHAVE_XEXT_LIB" = 1; then
36644             save_CFLAGS="$CFLAGS"
36645             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
36646
36647             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
36648 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
36649             cat >conftest.$ac_ext <<_ACEOF
36650 /* confdefs.h.  */
36651 _ACEOF
36652 cat confdefs.h >>conftest.$ac_ext
36653 cat >>conftest.$ac_ext <<_ACEOF
36654 /* end confdefs.h.  */
36655
36656                             #include <X11/Xlib.h>
36657                             #include <X11/extensions/shape.h>
36658
36659 int
36660 main ()
36661 {
36662
36663                             int dummy1, dummy2;
36664                             XShapeQueryExtension((Display*)NULL,
36665                                                  (int*)NULL, (int*)NULL);
36666
36667   ;
36668   return 0;
36669 }
36670 _ACEOF
36671 rm -f conftest.$ac_objext
36672 if { (ac_try="$ac_compile"
36673 case "(($ac_try" in
36674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36675   *) ac_try_echo=$ac_try;;
36676 esac
36677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36678   (eval "$ac_compile") 2>conftest.er1
36679   ac_status=$?
36680   grep -v '^ *+' conftest.er1 >conftest.err
36681   rm -f conftest.er1
36682   cat conftest.err >&5
36683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36684   (exit $ac_status); } &&
36685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36686   { (case "(($ac_try" in
36687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36688   *) ac_try_echo=$ac_try;;
36689 esac
36690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36691   (eval "$ac_try") 2>&5
36692   ac_status=$?
36693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36694   (exit $ac_status); }; } &&
36695          { ac_try='test -s conftest.$ac_objext'
36696   { (case "(($ac_try" in
36697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36698   *) ac_try_echo=$ac_try;;
36699 esac
36700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36701   (eval "$ac_try") 2>&5
36702   ac_status=$?
36703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704   (exit $ac_status); }; }; then
36705
36706                             cat >>confdefs.h <<\_ACEOF
36707 #define HAVE_XSHAPE 1
36708 _ACEOF
36709
36710                             { echo "$as_me:$LINENO: result: found" >&5
36711 echo "${ECHO_T}found" >&6; }
36712
36713 else
36714   echo "$as_me: failed program was:" >&5
36715 sed 's/^/| /' conftest.$ac_ext >&5
36716
36717
36718                             { echo "$as_me:$LINENO: result: not found" >&5
36719 echo "${ECHO_T}not found" >&6; }
36720
36721 fi
36722
36723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36724             CFLAGS="$save_CFLAGS"
36725
36726         fi
36727     fi
36728
36729     if test "$wxUSE_MAC" = 1; then
36730         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
36731 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
36732         if test "$GCC" = yes; then
36733             { echo "$as_me:$LINENO: result: gcc" >&5
36734 echo "${ECHO_T}gcc" >&6; }
36735             CPPFLAGS_PASCAL="-fpascal-strings"
36736         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
36737             { echo "$as_me:$LINENO: result: xlc" >&5
36738 echo "${ECHO_T}xlc" >&6; }
36739             CPPFLAGS_PASCAL="-qmacpstr"
36740         else
36741             { echo "$as_me:$LINENO: result: none" >&5
36742 echo "${ECHO_T}none" >&6; }
36743         fi
36744
36745         if test "x$wxUSE_UNIX" = "xyes"; then
36746             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
36747         else
36748                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
36749         fi
36750
36751         TOOLKIT=MAC
36752                 GUIDIST=MACX_DIST
36753                         WXBASEPORT="_carbon"
36754     fi
36755
36756     if test "$wxUSE_COCOA" = 1; then
36757         TOOLKIT=COCOA
36758         GUIDIST=COCOA_DIST
36759     fi
36760
36761     if test "$wxUSE_PM" = 1; then
36762         TOOLKIT=PM
36763         GUIDIST=PM_DIST
36764         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
36765 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
36766 if test "${wx_cv_spbcdata+set}" = set; then
36767   echo $ECHO_N "(cached) $ECHO_C" >&6
36768 else
36769
36770                 cat >conftest.$ac_ext <<_ACEOF
36771 /* confdefs.h.  */
36772 _ACEOF
36773 cat confdefs.h >>conftest.$ac_ext
36774 cat >>conftest.$ac_ext <<_ACEOF
36775 /* end confdefs.h.  */
36776
36777                         #define INCL_PM
36778                         #include <os2.h>
36779
36780 int
36781 main ()
36782 {
36783
36784                         SPBCDATA test;
36785
36786   ;
36787   return 0;
36788 }
36789 _ACEOF
36790 rm -f conftest.$ac_objext
36791 if { (ac_try="$ac_compile"
36792 case "(($ac_try" in
36793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36794   *) ac_try_echo=$ac_try;;
36795 esac
36796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36797   (eval "$ac_compile") 2>conftest.er1
36798   ac_status=$?
36799   grep -v '^ *+' conftest.er1 >conftest.err
36800   rm -f conftest.er1
36801   cat conftest.err >&5
36802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36803   (exit $ac_status); } &&
36804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36805   { (case "(($ac_try" in
36806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36807   *) ac_try_echo=$ac_try;;
36808 esac
36809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36810   (eval "$ac_try") 2>&5
36811   ac_status=$?
36812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36813   (exit $ac_status); }; } &&
36814          { ac_try='test -s conftest.$ac_objext'
36815   { (case "(($ac_try" in
36816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36817   *) ac_try_echo=$ac_try;;
36818 esac
36819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36820   (eval "$ac_try") 2>&5
36821   ac_status=$?
36822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36823   (exit $ac_status); }; }; then
36824   wx_cv_spbcdata=yes
36825 else
36826   echo "$as_me: failed program was:" >&5
36827 sed 's/^/| /' conftest.$ac_ext >&5
36828
36829         wx_cv_spbcdata=no
36830
36831 fi
36832
36833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36834
36835
36836 fi
36837 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
36838 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
36839
36840         if test $wx_cv_spbcdata = "yes"; then
36841             cat >>confdefs.h <<\_ACEOF
36842 #define HAVE_SPBCDATA 1
36843 _ACEOF
36844
36845         fi
36846     fi
36847
36848         if test "$TOOLKIT" = "PM" ; then
36849         TOOLKIT_DIR="os2"
36850     else
36851         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
36852     fi
36853
36854     if test "$wxUSE_UNIVERSAL" = "yes"; then
36855         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
36856         WIDGET_SET=univ
36857     fi
36858
36859         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
36860     DISTDIR="wx\$(TOOLKIT)"
36861 else
36862     USE_GUI=0
36863
36864             TOOLKIT_DIR="base"
36865
36866         if test "$USE_WIN32" = 1 ; then
36867                         TOOLKIT="MSW"
36868     fi
36869
36870         GUIDIST="BASE_DIST"
36871     DISTDIR="wxBase"
36872 fi
36873
36874
36875 if test "$wxUSE_GUI" = "yes"; then
36876     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
36877
36878 for ac_header in X11/Xlib.h
36879 do
36880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36882   { echo "$as_me:$LINENO: checking for $ac_header" >&5
36883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36885   echo $ECHO_N "(cached) $ECHO_C" >&6
36886 fi
36887 ac_res=`eval echo '${'$as_ac_Header'}'`
36888                { echo "$as_me:$LINENO: result: $ac_res" >&5
36889 echo "${ECHO_T}$ac_res" >&6; }
36890 else
36891   # Is the header compilable?
36892 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36893 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36894 cat >conftest.$ac_ext <<_ACEOF
36895 /* confdefs.h.  */
36896 _ACEOF
36897 cat confdefs.h >>conftest.$ac_ext
36898 cat >>conftest.$ac_ext <<_ACEOF
36899 /* end confdefs.h.  */
36900 $ac_includes_default
36901 #include <$ac_header>
36902 _ACEOF
36903 rm -f conftest.$ac_objext
36904 if { (ac_try="$ac_compile"
36905 case "(($ac_try" in
36906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36907   *) ac_try_echo=$ac_try;;
36908 esac
36909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36910   (eval "$ac_compile") 2>conftest.er1
36911   ac_status=$?
36912   grep -v '^ *+' conftest.er1 >conftest.err
36913   rm -f conftest.er1
36914   cat conftest.err >&5
36915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36916   (exit $ac_status); } &&
36917          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36918   { (case "(($ac_try" in
36919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36920   *) ac_try_echo=$ac_try;;
36921 esac
36922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36923   (eval "$ac_try") 2>&5
36924   ac_status=$?
36925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36926   (exit $ac_status); }; } &&
36927          { ac_try='test -s conftest.$ac_objext'
36928   { (case "(($ac_try" in
36929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36930   *) ac_try_echo=$ac_try;;
36931 esac
36932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36933   (eval "$ac_try") 2>&5
36934   ac_status=$?
36935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36936   (exit $ac_status); }; }; then
36937   ac_header_compiler=yes
36938 else
36939   echo "$as_me: failed program was:" >&5
36940 sed 's/^/| /' conftest.$ac_ext >&5
36941
36942         ac_header_compiler=no
36943 fi
36944
36945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36947 echo "${ECHO_T}$ac_header_compiler" >&6; }
36948
36949 # Is the header present?
36950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36952 cat >conftest.$ac_ext <<_ACEOF
36953 /* confdefs.h.  */
36954 _ACEOF
36955 cat confdefs.h >>conftest.$ac_ext
36956 cat >>conftest.$ac_ext <<_ACEOF
36957 /* end confdefs.h.  */
36958 #include <$ac_header>
36959 _ACEOF
36960 if { (ac_try="$ac_cpp conftest.$ac_ext"
36961 case "(($ac_try" in
36962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36963   *) ac_try_echo=$ac_try;;
36964 esac
36965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36967   ac_status=$?
36968   grep -v '^ *+' conftest.er1 >conftest.err
36969   rm -f conftest.er1
36970   cat conftest.err >&5
36971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36972   (exit $ac_status); } >/dev/null; then
36973   if test -s conftest.err; then
36974     ac_cpp_err=$ac_c_preproc_warn_flag
36975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36976   else
36977     ac_cpp_err=
36978   fi
36979 else
36980   ac_cpp_err=yes
36981 fi
36982 if test -z "$ac_cpp_err"; then
36983   ac_header_preproc=yes
36984 else
36985   echo "$as_me: failed program was:" >&5
36986 sed 's/^/| /' conftest.$ac_ext >&5
36987
36988   ac_header_preproc=no
36989 fi
36990
36991 rm -f conftest.err conftest.$ac_ext
36992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36993 echo "${ECHO_T}$ac_header_preproc" >&6; }
36994
36995 # So?  What about this header?
36996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36997   yes:no: )
36998     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37002     ac_header_preproc=yes
37003     ;;
37004   no:yes:* )
37005     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37007     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37008 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37009     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37011     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37012 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37015     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37017     ( cat <<\_ASBOX
37018 ## ----------------------------------------- ##
37019 ## Report this to wx-dev@lists.wxwidgets.org ##
37020 ## ----------------------------------------- ##
37021 _ASBOX
37022      ) | sed "s/^/$as_me: WARNING:     /" >&2
37023     ;;
37024 esac
37025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37028   echo $ECHO_N "(cached) $ECHO_C" >&6
37029 else
37030   eval "$as_ac_Header=\$ac_header_preproc"
37031 fi
37032 ac_res=`eval echo '${'$as_ac_Header'}'`
37033                { echo "$as_me:$LINENO: result: $ac_res" >&5
37034 echo "${ECHO_T}$ac_res" >&6; }
37035
37036 fi
37037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37038   cat >>confdefs.h <<_ACEOF
37039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37040 _ACEOF
37041
37042 fi
37043
37044 done
37045
37046
37047 for ac_header in X11/XKBlib.h
37048 do
37049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37053   echo $ECHO_N "(cached) $ECHO_C" >&6
37054 else
37055   cat >conftest.$ac_ext <<_ACEOF
37056 /* confdefs.h.  */
37057 _ACEOF
37058 cat confdefs.h >>conftest.$ac_ext
37059 cat >>conftest.$ac_ext <<_ACEOF
37060 /* end confdefs.h.  */
37061
37062                           #if HAVE_X11_XLIB_H
37063                             #include <X11/Xlib.h>
37064                           #endif
37065
37066
37067 #include <$ac_header>
37068 _ACEOF
37069 rm -f conftest.$ac_objext
37070 if { (ac_try="$ac_compile"
37071 case "(($ac_try" in
37072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37073   *) ac_try_echo=$ac_try;;
37074 esac
37075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37076   (eval "$ac_compile") 2>conftest.er1
37077   ac_status=$?
37078   grep -v '^ *+' conftest.er1 >conftest.err
37079   rm -f conftest.er1
37080   cat conftest.err >&5
37081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082   (exit $ac_status); } &&
37083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37084   { (case "(($ac_try" in
37085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37086   *) ac_try_echo=$ac_try;;
37087 esac
37088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37089   (eval "$ac_try") 2>&5
37090   ac_status=$?
37091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37092   (exit $ac_status); }; } &&
37093          { ac_try='test -s conftest.$ac_objext'
37094   { (case "(($ac_try" in
37095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37096   *) ac_try_echo=$ac_try;;
37097 esac
37098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37099   (eval "$ac_try") 2>&5
37100   ac_status=$?
37101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102   (exit $ac_status); }; }; then
37103   eval "$as_ac_Header=yes"
37104 else
37105   echo "$as_me: failed program was:" >&5
37106 sed 's/^/| /' conftest.$ac_ext >&5
37107
37108         eval "$as_ac_Header=no"
37109 fi
37110
37111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37112 fi
37113 ac_res=`eval echo '${'$as_ac_Header'}'`
37114                { echo "$as_me:$LINENO: result: $ac_res" >&5
37115 echo "${ECHO_T}$ac_res" >&6; }
37116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37117   cat >>confdefs.h <<_ACEOF
37118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37119 _ACEOF
37120
37121 fi
37122
37123 done
37124
37125     fi
37126 fi
37127
37128
37129
37130 IODBC_C_SRC=""
37131
37132
37133 if test "$TOOLKIT" != "MSW" ; then
37134
37135     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
37136
37137         if test "${ac_cv_header_sql_h+set}" = set; then
37138   { echo "$as_me:$LINENO: checking for sql.h" >&5
37139 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
37140 if test "${ac_cv_header_sql_h+set}" = set; then
37141   echo $ECHO_N "(cached) $ECHO_C" >&6
37142 fi
37143 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
37144 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
37145 else
37146   # Is the header compilable?
37147 { echo "$as_me:$LINENO: checking sql.h usability" >&5
37148 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
37149 cat >conftest.$ac_ext <<_ACEOF
37150 /* confdefs.h.  */
37151 _ACEOF
37152 cat confdefs.h >>conftest.$ac_ext
37153 cat >>conftest.$ac_ext <<_ACEOF
37154 /* end confdefs.h.  */
37155 $ac_includes_default
37156 #include <sql.h>
37157 _ACEOF
37158 rm -f conftest.$ac_objext
37159 if { (ac_try="$ac_compile"
37160 case "(($ac_try" in
37161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37162   *) ac_try_echo=$ac_try;;
37163 esac
37164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37165   (eval "$ac_compile") 2>conftest.er1
37166   ac_status=$?
37167   grep -v '^ *+' conftest.er1 >conftest.err
37168   rm -f conftest.er1
37169   cat conftest.err >&5
37170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171   (exit $ac_status); } &&
37172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37173   { (case "(($ac_try" in
37174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37175   *) ac_try_echo=$ac_try;;
37176 esac
37177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37178   (eval "$ac_try") 2>&5
37179   ac_status=$?
37180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37181   (exit $ac_status); }; } &&
37182          { ac_try='test -s conftest.$ac_objext'
37183   { (case "(($ac_try" in
37184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37185   *) ac_try_echo=$ac_try;;
37186 esac
37187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37188   (eval "$ac_try") 2>&5
37189   ac_status=$?
37190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37191   (exit $ac_status); }; }; then
37192   ac_header_compiler=yes
37193 else
37194   echo "$as_me: failed program was:" >&5
37195 sed 's/^/| /' conftest.$ac_ext >&5
37196
37197         ac_header_compiler=no
37198 fi
37199
37200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37202 echo "${ECHO_T}$ac_header_compiler" >&6; }
37203
37204 # Is the header present?
37205 { echo "$as_me:$LINENO: checking sql.h presence" >&5
37206 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
37207 cat >conftest.$ac_ext <<_ACEOF
37208 /* confdefs.h.  */
37209 _ACEOF
37210 cat confdefs.h >>conftest.$ac_ext
37211 cat >>conftest.$ac_ext <<_ACEOF
37212 /* end confdefs.h.  */
37213 #include <sql.h>
37214 _ACEOF
37215 if { (ac_try="$ac_cpp conftest.$ac_ext"
37216 case "(($ac_try" in
37217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37218   *) ac_try_echo=$ac_try;;
37219 esac
37220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37222   ac_status=$?
37223   grep -v '^ *+' conftest.er1 >conftest.err
37224   rm -f conftest.er1
37225   cat conftest.err >&5
37226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37227   (exit $ac_status); } >/dev/null; then
37228   if test -s conftest.err; then
37229     ac_cpp_err=$ac_c_preproc_warn_flag
37230     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37231   else
37232     ac_cpp_err=
37233   fi
37234 else
37235   ac_cpp_err=yes
37236 fi
37237 if test -z "$ac_cpp_err"; then
37238   ac_header_preproc=yes
37239 else
37240   echo "$as_me: failed program was:" >&5
37241 sed 's/^/| /' conftest.$ac_ext >&5
37242
37243   ac_header_preproc=no
37244 fi
37245
37246 rm -f conftest.err conftest.$ac_ext
37247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37248 echo "${ECHO_T}$ac_header_preproc" >&6; }
37249
37250 # So?  What about this header?
37251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37252   yes:no: )
37253     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
37254 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37255     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
37256 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
37257     ac_header_preproc=yes
37258     ;;
37259   no:yes:* )
37260     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
37261 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
37262     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
37263 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
37264     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
37265 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
37266     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
37267 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
37268     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
37269 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
37270     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
37271 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
37272     ( cat <<\_ASBOX
37273 ## ----------------------------------------- ##
37274 ## Report this to wx-dev@lists.wxwidgets.org ##
37275 ## ----------------------------------------- ##
37276 _ASBOX
37277      ) | sed "s/^/$as_me: WARNING:     /" >&2
37278     ;;
37279 esac
37280 { echo "$as_me:$LINENO: checking for sql.h" >&5
37281 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
37282 if test "${ac_cv_header_sql_h+set}" = set; then
37283   echo $ECHO_N "(cached) $ECHO_C" >&6
37284 else
37285   ac_cv_header_sql_h=$ac_header_preproc
37286 fi
37287 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
37288 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
37289
37290 fi
37291 if test $ac_cv_header_sql_h = yes; then
37292   found_sql_h=1
37293 fi
37294
37295
37296         if test "x$found_sql_h" = "x1" ; then
37297             { echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
37298 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6; }
37299 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
37300   echo $ECHO_N "(cached) $ECHO_C" >&6
37301 else
37302   ac_check_lib_save_LIBS=$LIBS
37303 LIBS="-liodbc  $LIBS"
37304 cat >conftest.$ac_ext <<_ACEOF
37305 /* confdefs.h.  */
37306 _ACEOF
37307 cat confdefs.h >>conftest.$ac_ext
37308 cat >>conftest.$ac_ext <<_ACEOF
37309 /* end confdefs.h.  */
37310
37311 /* Override any GCC internal prototype to avoid an error.
37312    Use char because int might match the return type of a GCC
37313    builtin and then its argument prototype would still apply.  */
37314 #ifdef __cplusplus
37315 extern "C"
37316 #endif
37317 char SQLAllocEnv ();
37318 int
37319 main ()
37320 {
37321 return SQLAllocEnv ();
37322   ;
37323   return 0;
37324 }
37325 _ACEOF
37326 rm -f conftest.$ac_objext conftest$ac_exeext
37327 if { (ac_try="$ac_link"
37328 case "(($ac_try" in
37329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37330   *) ac_try_echo=$ac_try;;
37331 esac
37332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37333   (eval "$ac_link") 2>conftest.er1
37334   ac_status=$?
37335   grep -v '^ *+' conftest.er1 >conftest.err
37336   rm -f conftest.er1
37337   cat conftest.err >&5
37338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339   (exit $ac_status); } &&
37340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37341   { (case "(($ac_try" in
37342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37343   *) ac_try_echo=$ac_try;;
37344 esac
37345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37346   (eval "$ac_try") 2>&5
37347   ac_status=$?
37348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37349   (exit $ac_status); }; } &&
37350          { ac_try='test -s conftest$ac_exeext'
37351   { (case "(($ac_try" in
37352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37353   *) ac_try_echo=$ac_try;;
37354 esac
37355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37356   (eval "$ac_try") 2>&5
37357   ac_status=$?
37358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37359   (exit $ac_status); }; }; then
37360   ac_cv_lib_iodbc_SQLAllocEnv=yes
37361 else
37362   echo "$as_me: failed program was:" >&5
37363 sed 's/^/| /' conftest.$ac_ext >&5
37364
37365         ac_cv_lib_iodbc_SQLAllocEnv=no
37366 fi
37367
37368 rm -f core conftest.err conftest.$ac_objext \
37369       conftest$ac_exeext conftest.$ac_ext
37370 LIBS=$ac_check_lib_save_LIBS
37371 fi
37372 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
37373 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6; }
37374 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
37375   ODBC_LINK=" -liodbc"
37376 else
37377
37378                 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
37379 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6; }
37380 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
37381   echo $ECHO_N "(cached) $ECHO_C" >&6
37382 else
37383   ac_check_lib_save_LIBS=$LIBS
37384 LIBS="-lunixodbc  $LIBS"
37385 cat >conftest.$ac_ext <<_ACEOF
37386 /* confdefs.h.  */
37387 _ACEOF
37388 cat confdefs.h >>conftest.$ac_ext
37389 cat >>conftest.$ac_ext <<_ACEOF
37390 /* end confdefs.h.  */
37391
37392 /* Override any GCC internal prototype to avoid an error.
37393    Use char because int might match the return type of a GCC
37394    builtin and then its argument prototype would still apply.  */
37395 #ifdef __cplusplus
37396 extern "C"
37397 #endif
37398 char SQLAllocEnv ();
37399 int
37400 main ()
37401 {
37402 return SQLAllocEnv ();
37403   ;
37404   return 0;
37405 }
37406 _ACEOF
37407 rm -f conftest.$ac_objext conftest$ac_exeext
37408 if { (ac_try="$ac_link"
37409 case "(($ac_try" in
37410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37411   *) ac_try_echo=$ac_try;;
37412 esac
37413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37414   (eval "$ac_link") 2>conftest.er1
37415   ac_status=$?
37416   grep -v '^ *+' conftest.er1 >conftest.err
37417   rm -f conftest.er1
37418   cat conftest.err >&5
37419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420   (exit $ac_status); } &&
37421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37422   { (case "(($ac_try" in
37423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37424   *) ac_try_echo=$ac_try;;
37425 esac
37426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37427   (eval "$ac_try") 2>&5
37428   ac_status=$?
37429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430   (exit $ac_status); }; } &&
37431          { ac_try='test -s conftest$ac_exeext'
37432   { (case "(($ac_try" in
37433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37434   *) ac_try_echo=$ac_try;;
37435 esac
37436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37437   (eval "$ac_try") 2>&5
37438   ac_status=$?
37439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37440   (exit $ac_status); }; }; then
37441   ac_cv_lib_unixodbc_SQLAllocEnv=yes
37442 else
37443   echo "$as_me: failed program was:" >&5
37444 sed 's/^/| /' conftest.$ac_ext >&5
37445
37446         ac_cv_lib_unixodbc_SQLAllocEnv=no
37447 fi
37448
37449 rm -f core conftest.err conftest.$ac_objext \
37450       conftest$ac_exeext conftest.$ac_ext
37451 LIBS=$ac_check_lib_save_LIBS
37452 fi
37453 { echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
37454 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6; }
37455 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
37456   ODBC_LINK=" -lunixodbc"
37457 else
37458
37459                     { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
37460 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6; }
37461 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
37462   echo $ECHO_N "(cached) $ECHO_C" >&6
37463 else
37464   ac_check_lib_save_LIBS=$LIBS
37465 LIBS="-lodbc  $LIBS"
37466 cat >conftest.$ac_ext <<_ACEOF
37467 /* confdefs.h.  */
37468 _ACEOF
37469 cat confdefs.h >>conftest.$ac_ext
37470 cat >>conftest.$ac_ext <<_ACEOF
37471 /* end confdefs.h.  */
37472
37473 /* Override any GCC internal prototype to avoid an error.
37474    Use char because int might match the return type of a GCC
37475    builtin and then its argument prototype would still apply.  */
37476 #ifdef __cplusplus
37477 extern "C"
37478 #endif
37479 char SQLAllocEnv ();
37480 int
37481 main ()
37482 {
37483 return SQLAllocEnv ();
37484   ;
37485   return 0;
37486 }
37487 _ACEOF
37488 rm -f conftest.$ac_objext conftest$ac_exeext
37489 if { (ac_try="$ac_link"
37490 case "(($ac_try" in
37491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37492   *) ac_try_echo=$ac_try;;
37493 esac
37494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37495   (eval "$ac_link") 2>conftest.er1
37496   ac_status=$?
37497   grep -v '^ *+' conftest.er1 >conftest.err
37498   rm -f conftest.er1
37499   cat conftest.err >&5
37500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501   (exit $ac_status); } &&
37502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37503   { (case "(($ac_try" in
37504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37505   *) ac_try_echo=$ac_try;;
37506 esac
37507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37508   (eval "$ac_try") 2>&5
37509   ac_status=$?
37510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511   (exit $ac_status); }; } &&
37512          { ac_try='test -s conftest$ac_exeext'
37513   { (case "(($ac_try" in
37514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37515   *) ac_try_echo=$ac_try;;
37516 esac
37517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37518   (eval "$ac_try") 2>&5
37519   ac_status=$?
37520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37521   (exit $ac_status); }; }; then
37522   ac_cv_lib_odbc_SQLAllocEnv=yes
37523 else
37524   echo "$as_me: failed program was:" >&5
37525 sed 's/^/| /' conftest.$ac_ext >&5
37526
37527         ac_cv_lib_odbc_SQLAllocEnv=no
37528 fi
37529
37530 rm -f core conftest.err conftest.$ac_objext \
37531       conftest$ac_exeext conftest.$ac_ext
37532 LIBS=$ac_check_lib_save_LIBS
37533 fi
37534 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
37535 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6; }
37536 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
37537   ODBC_LINK=" -lodbc"
37538 fi
37539
37540
37541 fi
37542
37543
37544 fi
37545
37546         fi
37547         if test "x$ODBC_LINK" = "x" ; then
37548             if test "$wxUSE_ODBC" = "sys" ; then
37549                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
37550 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
37551    { (exit 1); exit 1; }; }
37552             else
37553                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
37554 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
37555                 wxUSE_ODBC=builtin
37556             fi
37557         else
37558                         wxUSE_ODBC=sys
37559         fi
37560     fi
37561
37562     if test "$wxUSE_ODBC" = "builtin" ; then
37563         cat >>confdefs.h <<\_ACEOF
37564 #define wxUSE_BUILTIN_IODBC 1
37565 _ACEOF
37566
37567     fi
37568 fi
37569
37570 if test "$wxUSE_ODBC" != "no" ; then
37571     cat >>confdefs.h <<\_ACEOF
37572 #define wxUSE_ODBC 1
37573 _ACEOF
37574
37575     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
37576
37577         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
37578 fi
37579
37580
37581 if test "$wxUSE_DISPLAY" = "yes"; then
37582     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
37583         { echo "$as_me:$LINENO: checking for Xinerama" >&5
37584 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
37585
37586   ac_find_libraries=
37587   for ac_dir in $SEARCH_LIB;
37588   do
37589     for ac_extension in a so sl dylib dll.a; do
37590       if test -f "$ac_dir/libXinerama.$ac_extension"; then
37591         ac_find_libraries=$ac_dir
37592         break 2
37593       fi
37594     done
37595   done
37596
37597         if test "$ac_find_libraries" != "" ; then
37598
37599     if test "$ac_find_libraries" = "default location"; then
37600     ac_path_to_link=""
37601   else
37602     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
37603     result=$?
37604     if test $result = 0; then
37605       ac_path_to_link=""
37606     else
37607       ac_path_to_link=" -L$ac_find_libraries"
37608     fi
37609   fi
37610
37611             if test "$ac_path_to_link" != " -L/usr/lib" ; then
37612                 LDFLAGS="$LDFLAGS $ac_path_to_link"
37613             fi
37614             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
37615             { echo "$as_me:$LINENO: result: yes" >&5
37616 echo "${ECHO_T}yes" >&6; }
37617
37618             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
37619 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
37620
37621   ac_find_libraries=
37622   for ac_dir in $SEARCH_LIB;
37623   do
37624     for ac_extension in a so sl dylib dll.a; do
37625       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
37626         ac_find_libraries=$ac_dir
37627         break 2
37628       fi
37629     done
37630   done
37631
37632             if test "$ac_find_libraries" != "" ; then
37633                 { echo "$as_me:$LINENO: result: yes" >&5
37634 echo "${ECHO_T}yes" >&6; }
37635
37636 for ac_header in X11/extensions/xf86vmode.h
37637 do
37638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37642   echo $ECHO_N "(cached) $ECHO_C" >&6
37643 else
37644   cat >conftest.$ac_ext <<_ACEOF
37645 /* confdefs.h.  */
37646 _ACEOF
37647 cat confdefs.h >>conftest.$ac_ext
37648 cat >>conftest.$ac_ext <<_ACEOF
37649 /* end confdefs.h.  */
37650
37651                                       #if HAVE_X11_XLIB_H
37652                                         #include <X11/Xlib.h>
37653                                       #endif
37654
37655
37656 #include <$ac_header>
37657 _ACEOF
37658 rm -f conftest.$ac_objext
37659 if { (ac_try="$ac_compile"
37660 case "(($ac_try" in
37661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37662   *) ac_try_echo=$ac_try;;
37663 esac
37664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37665   (eval "$ac_compile") 2>conftest.er1
37666   ac_status=$?
37667   grep -v '^ *+' conftest.er1 >conftest.err
37668   rm -f conftest.er1
37669   cat conftest.err >&5
37670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671   (exit $ac_status); } &&
37672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37673   { (case "(($ac_try" in
37674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37675   *) ac_try_echo=$ac_try;;
37676 esac
37677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37678   (eval "$ac_try") 2>&5
37679   ac_status=$?
37680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37681   (exit $ac_status); }; } &&
37682          { ac_try='test -s conftest.$ac_objext'
37683   { (case "(($ac_try" in
37684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37685   *) ac_try_echo=$ac_try;;
37686 esac
37687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37688   (eval "$ac_try") 2>&5
37689   ac_status=$?
37690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691   (exit $ac_status); }; }; then
37692   eval "$as_ac_Header=yes"
37693 else
37694   echo "$as_me: failed program was:" >&5
37695 sed 's/^/| /' conftest.$ac_ext >&5
37696
37697         eval "$as_ac_Header=no"
37698 fi
37699
37700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37701 fi
37702 ac_res=`eval echo '${'$as_ac_Header'}'`
37703                { echo "$as_me:$LINENO: result: $ac_res" >&5
37704 echo "${ECHO_T}$ac_res" >&6; }
37705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37706   cat >>confdefs.h <<_ACEOF
37707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37708 _ACEOF
37709
37710                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
37711
37712 fi
37713
37714 done
37715
37716             else
37717                 { echo "$as_me:$LINENO: result: no" >&5
37718 echo "${ECHO_T}no" >&6; }
37719             fi
37720
37721         else
37722             { echo "$as_me:$LINENO: result: no" >&5
37723 echo "${ECHO_T}no" >&6; }
37724             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
37725 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
37726             wxUSE_DISPLAY="no"
37727         fi
37728     elif test "$wxUSE_MSW" = 1; then
37729
37730 for ac_header in ddraw.h
37731 do
37732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37736   echo $ECHO_N "(cached) $ECHO_C" >&6
37737 else
37738   cat >conftest.$ac_ext <<_ACEOF
37739 /* confdefs.h.  */
37740 _ACEOF
37741 cat confdefs.h >>conftest.$ac_ext
37742 cat >>conftest.$ac_ext <<_ACEOF
37743 /* end confdefs.h.  */
37744 #include <windows.h>
37745
37746 #include <$ac_header>
37747 _ACEOF
37748 rm -f conftest.$ac_objext
37749 if { (ac_try="$ac_compile"
37750 case "(($ac_try" in
37751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37752   *) ac_try_echo=$ac_try;;
37753 esac
37754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37755   (eval "$ac_compile") 2>conftest.er1
37756   ac_status=$?
37757   grep -v '^ *+' conftest.er1 >conftest.err
37758   rm -f conftest.er1
37759   cat conftest.err >&5
37760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37761   (exit $ac_status); } &&
37762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37763   { (case "(($ac_try" in
37764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37765   *) ac_try_echo=$ac_try;;
37766 esac
37767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37768   (eval "$ac_try") 2>&5
37769   ac_status=$?
37770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37771   (exit $ac_status); }; } &&
37772          { ac_try='test -s conftest.$ac_objext'
37773   { (case "(($ac_try" in
37774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37775   *) ac_try_echo=$ac_try;;
37776 esac
37777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37778   (eval "$ac_try") 2>&5
37779   ac_status=$?
37780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37781   (exit $ac_status); }; }; then
37782   eval "$as_ac_Header=yes"
37783 else
37784   echo "$as_me: failed program was:" >&5
37785 sed 's/^/| /' conftest.$ac_ext >&5
37786
37787         eval "$as_ac_Header=no"
37788 fi
37789
37790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37791 fi
37792 ac_res=`eval echo '${'$as_ac_Header'}'`
37793                { echo "$as_me:$LINENO: result: $ac_res" >&5
37794 echo "${ECHO_T}$ac_res" >&6; }
37795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37796   cat >>confdefs.h <<_ACEOF
37797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37798 _ACEOF
37799
37800 fi
37801
37802 done
37803
37804     fi
37805 fi
37806
37807 if test "$wxUSE_DETECT_SM" = "yes"; then
37808     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
37809         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
37810 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
37811
37812   ac_find_libraries=
37813   for ac_dir in $SEARCH_LIB;
37814   do
37815     for ac_extension in a so sl dylib dll.a; do
37816       if test -f "$ac_dir/libSM.$ac_extension"; then
37817         ac_find_libraries=$ac_dir
37818         break 2
37819       fi
37820     done
37821   done
37822
37823         if test "$ac_find_libraries" != "" ; then
37824
37825     if test "$ac_find_libraries" = "default location"; then
37826     ac_path_to_link=""
37827   else
37828     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
37829     result=$?
37830     if test $result = 0; then
37831       ac_path_to_link=""
37832     else
37833       ac_path_to_link=" -L$ac_find_libraries"
37834     fi
37835   fi
37836
37837             if test "$ac_path_to_link" != " -L/usr/lib" ; then
37838                 LDFLAGS="$LDFLAGS $ac_path_to_link"
37839             fi
37840             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
37841             { echo "$as_me:$LINENO: result: yes" >&5
37842 echo "${ECHO_T}yes" >&6; }
37843         else
37844             { echo "$as_me:$LINENO: result: no" >&5
37845 echo "${ECHO_T}no" >&6; }
37846             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
37847 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
37848             wxUSE_DETECT_SM="no"
37849         fi
37850     else
37851         wxUSE_DETECT_SM="no"
37852     fi
37853 fi
37854
37855
37856
37857 USE_OPENGL=0
37858 if test "$wxUSE_OPENGL" = "yes"; then
37859     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
37860         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
37861 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
37862         wxUSE_OPENGL="no"
37863     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
37864         OPENGL_LIBS="-framework OpenGL -framework AGL"
37865     elif test "$wxUSE_MSW" = 1; then
37866         OPENGL_LIBS="-lopengl32 -lglu32"
37867     else
37868                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
37869 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
37870
37871 ac_find_includes=
37872 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
37873   do
37874     if test -f "$ac_dir/GL/gl.h"; then
37875       ac_find_includes=$ac_dir
37876       break
37877     fi
37878   done
37879
37880         if test "$ac_find_includes" != "" ; then
37881             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
37882 echo "${ECHO_T}found in $ac_find_includes" >&6; }
37883
37884     if test "x$ac_find_includes" = "x/usr/include"; then
37885     ac_path_to_include=""
37886   else
37887     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
37888     result=$?
37889     if test $result = 0; then
37890       ac_path_to_include=""
37891     else
37892       ac_path_to_include=" -I$ac_find_includes"
37893     fi
37894   fi
37895
37896             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
37897         else
37898             { echo "$as_me:$LINENO: result: not found" >&5
37899 echo "${ECHO_T}not found" >&6; }
37900         fi
37901
37902         if test "${ac_cv_header_GL_gl_h+set}" = set; then
37903   { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
37904 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
37905 if test "${ac_cv_header_GL_gl_h+set}" = set; then
37906   echo $ECHO_N "(cached) $ECHO_C" >&6
37907 fi
37908 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
37909 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
37910 else
37911   # Is the header compilable?
37912 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
37913 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
37914 cat >conftest.$ac_ext <<_ACEOF
37915 /* confdefs.h.  */
37916 _ACEOF
37917 cat confdefs.h >>conftest.$ac_ext
37918 cat >>conftest.$ac_ext <<_ACEOF
37919 /* end confdefs.h.  */
37920 $ac_includes_default
37921 #include <GL/gl.h>
37922 _ACEOF
37923 rm -f conftest.$ac_objext
37924 if { (ac_try="$ac_compile"
37925 case "(($ac_try" in
37926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37927   *) ac_try_echo=$ac_try;;
37928 esac
37929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37930   (eval "$ac_compile") 2>conftest.er1
37931   ac_status=$?
37932   grep -v '^ *+' conftest.er1 >conftest.err
37933   rm -f conftest.er1
37934   cat conftest.err >&5
37935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936   (exit $ac_status); } &&
37937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
37938   { (case "(($ac_try" in
37939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37940   *) ac_try_echo=$ac_try;;
37941 esac
37942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37943   (eval "$ac_try") 2>&5
37944   ac_status=$?
37945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37946   (exit $ac_status); }; } &&
37947          { ac_try='test -s conftest.$ac_objext'
37948   { (case "(($ac_try" in
37949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37950   *) ac_try_echo=$ac_try;;
37951 esac
37952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37953   (eval "$ac_try") 2>&5
37954   ac_status=$?
37955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956   (exit $ac_status); }; }; then
37957   ac_header_compiler=yes
37958 else
37959   echo "$as_me: failed program was:" >&5
37960 sed 's/^/| /' conftest.$ac_ext >&5
37961
37962         ac_header_compiler=no
37963 fi
37964
37965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37967 echo "${ECHO_T}$ac_header_compiler" >&6; }
37968
37969 # Is the header present?
37970 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
37971 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
37972 cat >conftest.$ac_ext <<_ACEOF
37973 /* confdefs.h.  */
37974 _ACEOF
37975 cat confdefs.h >>conftest.$ac_ext
37976 cat >>conftest.$ac_ext <<_ACEOF
37977 /* end confdefs.h.  */
37978 #include <GL/gl.h>
37979 _ACEOF
37980 if { (ac_try="$ac_cpp conftest.$ac_ext"
37981 case "(($ac_try" in
37982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37983   *) ac_try_echo=$ac_try;;
37984 esac
37985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37986   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37987   ac_status=$?
37988   grep -v '^ *+' conftest.er1 >conftest.err
37989   rm -f conftest.er1
37990   cat conftest.err >&5
37991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37992   (exit $ac_status); } >/dev/null; then
37993   if test -s conftest.err; then
37994     ac_cpp_err=$ac_c_preproc_warn_flag
37995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37996   else
37997     ac_cpp_err=
37998   fi
37999 else
38000   ac_cpp_err=yes
38001 fi
38002 if test -z "$ac_cpp_err"; then
38003   ac_header_preproc=yes
38004 else
38005   echo "$as_me: failed program was:" >&5
38006 sed 's/^/| /' conftest.$ac_ext >&5
38007
38008   ac_header_preproc=no
38009 fi
38010
38011 rm -f conftest.err conftest.$ac_ext
38012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38013 echo "${ECHO_T}$ac_header_preproc" >&6; }
38014
38015 # So?  What about this header?
38016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38017   yes:no: )
38018     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
38019 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38020     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
38021 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
38022     ac_header_preproc=yes
38023     ;;
38024   no:yes:* )
38025     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
38026 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
38027     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
38028 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
38029     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
38030 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
38031     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
38032 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38033     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
38034 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
38035     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
38036 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
38037     ( cat <<\_ASBOX
38038 ## ----------------------------------------- ##
38039 ## Report this to wx-dev@lists.wxwidgets.org ##
38040 ## ----------------------------------------- ##
38041 _ASBOX
38042      ) | sed "s/^/$as_me: WARNING:     /" >&2
38043     ;;
38044 esac
38045 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
38046 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
38047 if test "${ac_cv_header_GL_gl_h+set}" = set; then
38048   echo $ECHO_N "(cached) $ECHO_C" >&6
38049 else
38050   ac_cv_header_GL_gl_h=$ac_header_preproc
38051 fi
38052 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
38053 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
38054
38055 fi
38056 if test $ac_cv_header_GL_gl_h = yes; then
38057
38058             if test "${ac_cv_header_GL_glu_h+set}" = set; then
38059   { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
38060 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
38061 if test "${ac_cv_header_GL_glu_h+set}" = set; then
38062   echo $ECHO_N "(cached) $ECHO_C" >&6
38063 fi
38064 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
38065 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
38066 else
38067   # Is the header compilable?
38068 { echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
38069 echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6; }
38070 cat >conftest.$ac_ext <<_ACEOF
38071 /* confdefs.h.  */
38072 _ACEOF
38073 cat confdefs.h >>conftest.$ac_ext
38074 cat >>conftest.$ac_ext <<_ACEOF
38075 /* end confdefs.h.  */
38076 $ac_includes_default
38077 #include <GL/glu.h>
38078 _ACEOF
38079 rm -f conftest.$ac_objext
38080 if { (ac_try="$ac_compile"
38081 case "(($ac_try" in
38082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38083   *) ac_try_echo=$ac_try;;
38084 esac
38085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38086   (eval "$ac_compile") 2>conftest.er1
38087   ac_status=$?
38088   grep -v '^ *+' conftest.er1 >conftest.err
38089   rm -f conftest.er1
38090   cat conftest.err >&5
38091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38092   (exit $ac_status); } &&
38093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38094   { (case "(($ac_try" in
38095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38096   *) ac_try_echo=$ac_try;;
38097 esac
38098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38099   (eval "$ac_try") 2>&5
38100   ac_status=$?
38101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38102   (exit $ac_status); }; } &&
38103          { ac_try='test -s conftest.$ac_objext'
38104   { (case "(($ac_try" in
38105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38106   *) ac_try_echo=$ac_try;;
38107 esac
38108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38109   (eval "$ac_try") 2>&5
38110   ac_status=$?
38111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38112   (exit $ac_status); }; }; then
38113   ac_header_compiler=yes
38114 else
38115   echo "$as_me: failed program was:" >&5
38116 sed 's/^/| /' conftest.$ac_ext >&5
38117
38118         ac_header_compiler=no
38119 fi
38120
38121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38123 echo "${ECHO_T}$ac_header_compiler" >&6; }
38124
38125 # Is the header present?
38126 { echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
38127 echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6; }
38128 cat >conftest.$ac_ext <<_ACEOF
38129 /* confdefs.h.  */
38130 _ACEOF
38131 cat confdefs.h >>conftest.$ac_ext
38132 cat >>conftest.$ac_ext <<_ACEOF
38133 /* end confdefs.h.  */
38134 #include <GL/glu.h>
38135 _ACEOF
38136 if { (ac_try="$ac_cpp conftest.$ac_ext"
38137 case "(($ac_try" in
38138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38139   *) ac_try_echo=$ac_try;;
38140 esac
38141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38142   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38143   ac_status=$?
38144   grep -v '^ *+' conftest.er1 >conftest.err
38145   rm -f conftest.er1
38146   cat conftest.err >&5
38147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38148   (exit $ac_status); } >/dev/null; then
38149   if test -s conftest.err; then
38150     ac_cpp_err=$ac_c_preproc_warn_flag
38151     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38152   else
38153     ac_cpp_err=
38154   fi
38155 else
38156   ac_cpp_err=yes
38157 fi
38158 if test -z "$ac_cpp_err"; then
38159   ac_header_preproc=yes
38160 else
38161   echo "$as_me: failed program was:" >&5
38162 sed 's/^/| /' conftest.$ac_ext >&5
38163
38164   ac_header_preproc=no
38165 fi
38166
38167 rm -f conftest.err conftest.$ac_ext
38168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38169 echo "${ECHO_T}$ac_header_preproc" >&6; }
38170
38171 # So?  What about this header?
38172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38173   yes:no: )
38174     { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
38175 echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38176     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
38177 echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
38178     ac_header_preproc=yes
38179     ;;
38180   no:yes:* )
38181     { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
38182 echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
38183     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
38184 echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
38185     { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
38186 echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
38187     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
38188 echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
38189     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
38190 echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
38191     { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
38192 echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
38193     ( cat <<\_ASBOX
38194 ## ----------------------------------------- ##
38195 ## Report this to wx-dev@lists.wxwidgets.org ##
38196 ## ----------------------------------------- ##
38197 _ASBOX
38198      ) | sed "s/^/$as_me: WARNING:     /" >&2
38199     ;;
38200 esac
38201 { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
38202 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
38203 if test "${ac_cv_header_GL_glu_h+set}" = set; then
38204   echo $ECHO_N "(cached) $ECHO_C" >&6
38205 else
38206   ac_cv_header_GL_glu_h=$ac_header_preproc
38207 fi
38208 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
38209 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
38210
38211 fi
38212 if test $ac_cv_header_GL_glu_h = yes; then
38213
38214                 found_gl=0
38215
38216                 { echo "$as_me:$LINENO: checking for -lGL" >&5
38217 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
38218
38219   ac_find_libraries=
38220   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
38221   do
38222     for ac_extension in a so sl dylib dll.a; do
38223       if test -f "$ac_dir/libGL.$ac_extension"; then
38224         ac_find_libraries=$ac_dir
38225         break 2
38226       fi
38227     done
38228   done
38229
38230                 if test "$ac_find_libraries" != "" ; then
38231                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
38232 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
38233
38234
38235     if test "$ac_find_libraries" = "default location"; then
38236     ac_path_to_link=""
38237   else
38238     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
38239     result=$?
38240     if test $result = 0; then
38241       ac_path_to_link=""
38242     else
38243       ac_path_to_link=" -L$ac_find_libraries"
38244     fi
38245   fi
38246
38247                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
38248                         LDFLAGS_GL="$ac_path_to_link"
38249                     fi
38250
38251                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
38252 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
38253
38254   ac_find_libraries=
38255   for ac_dir in $SEARCH_LIB;
38256   do
38257     for ac_extension in a so sl dylib dll.a; do
38258       if test -f "$ac_dir/libGLU.$ac_extension"; then
38259         ac_find_libraries=$ac_dir
38260         break 2
38261       fi
38262     done
38263   done
38264
38265                     if test "$ac_find_libraries" != "" ; then
38266
38267     if test "$ac_find_libraries" = "default location"; then
38268     ac_path_to_link=""
38269   else
38270     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
38271     result=$?
38272     if test $result = 0; then
38273       ac_path_to_link=""
38274     else
38275       ac_path_to_link=" -L$ac_find_libraries"
38276     fi
38277   fi
38278
38279                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
38280                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
38281                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
38282                         fi
38283
38284                         found_gl=1
38285                         OPENGL_LIBS="-lGL -lGLU"
38286                         { echo "$as_me:$LINENO: result: yes" >&5
38287 echo "${ECHO_T}yes" >&6; }
38288                     else
38289                         { echo "$as_me:$LINENO: result: no" >&5
38290 echo "${ECHO_T}no" >&6; }
38291                     fi
38292                 else
38293                     { echo "$as_me:$LINENO: result: no" >&5
38294 echo "${ECHO_T}no" >&6; }
38295                 fi
38296
38297                 if test "$found_gl" != 1; then
38298                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
38299 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
38300
38301   ac_find_libraries=
38302   for ac_dir in $SEARCH_LIB;
38303   do
38304     for ac_extension in a so sl dylib dll.a; do
38305       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
38306         ac_find_libraries=$ac_dir
38307         break 2
38308       fi
38309     done
38310   done
38311
38312                     if test "$ac_find_libraries" != "" ; then
38313
38314     if test "$ac_find_libraries" = "default location"; then
38315     ac_path_to_link=""
38316   else
38317     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
38318     result=$?
38319     if test $result = 0; then
38320       ac_path_to_link=""
38321     else
38322       ac_path_to_link=" -L$ac_find_libraries"
38323     fi
38324   fi
38325
38326                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
38327                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
38328                         { echo "$as_me:$LINENO: result: yes" >&5
38329 echo "${ECHO_T}yes" >&6; }
38330                     else
38331                         { echo "$as_me:$LINENO: result: no" >&5
38332 echo "${ECHO_T}no" >&6; }
38333                     fi
38334                 fi
38335
38336 fi
38337
38338
38339
38340 fi
38341
38342
38343
38344         if test "x$OPENGL_LIBS" = "x"; then
38345                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
38346 echo "$as_me: error: OpenGL libraries not available" >&2;}
38347    { (exit 1); exit 1; }; }
38348         fi
38349     fi
38350
38351     if test "$wxUSE_OPENGL" = "yes"; then
38352         USE_OPENGL=1
38353         cat >>confdefs.h <<\_ACEOF
38354 #define wxUSE_OPENGL 1
38355 _ACEOF
38356
38357         cat >>confdefs.h <<\_ACEOF
38358 #define wxUSE_GLCANVAS 1
38359 _ACEOF
38360
38361         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
38362     fi
38363 fi
38364
38365
38366 if test -n "$TOOLKIT" ; then
38367     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
38368 fi
38369
38370
38371
38372 if test "$wxUSE_SHARED" = "yes"; then
38373     case "${host}" in
38374       *-pc-msdosdjgpp )
38375                 wxUSE_SHARED=no
38376         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
38377 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
38378       ;;
38379     esac
38380 fi
38381
38382 if test "$wxUSE_SHARED" = "yes"; then
38383
38384
38385     case "${host}" in
38386         *-*-cygwin* | *-*-mingw* )
38387                                                                                                 wx_cv_version_script=no
38388             ;;
38389
38390         *)
38391             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
38392 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
38393 if test "${wx_cv_version_script+set}" = set; then
38394   echo $ECHO_N "(cached) $ECHO_C" >&6
38395 else
38396
38397                 echo "VER_1 { *; };" >conftest.sym
38398                 echo "int main() { return 0; }" >conftest.cpp
38399
38400                 if { ac_try='
38401                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
38402                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
38403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38404   (eval $ac_try) 2>&5
38405   ac_status=$?
38406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38407   (exit $ac_status); }; } ; then
38408                   if test -s conftest.stderr ; then
38409                       wx_cv_version_script=no
38410                   else
38411                       wx_cv_version_script=yes
38412                   fi
38413                 else
38414                   wx_cv_version_script=no
38415                 fi
38416
38417                                                                                                                                                                                                 if test $wx_cv_version_script = yes
38418                 then
38419                   echo "struct B { virtual ~B() { } }; \
38420                         struct D : public B { }; \
38421                         void F() { D d; }" > conftest.cpp
38422
38423                   if { ac_try='
38424                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
38425                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
38426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38427   (eval $ac_try) 2>&5
38428   ac_status=$?
38429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38430   (exit $ac_status); }; } &&
38431                      { ac_try='
38432                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
38433                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
38434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38435   (eval $ac_try) 2>&5
38436   ac_status=$?
38437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38438   (exit $ac_status); }; }
38439                   then
38440                     if { ac_try='
38441                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
38442                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
38443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38444   (eval $ac_try) 2>&5
38445   ac_status=$?
38446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38447   (exit $ac_status); }; }
38448                     then
38449                       wx_cv_version_script=yes
38450                     else
38451                       wx_cv_version_script=no
38452                     fi
38453                   fi
38454                 fi
38455
38456                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
38457                 rm -f conftest1.output conftest2.output conftest3.output
38458
38459 fi
38460 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
38461 echo "${ECHO_T}$wx_cv_version_script" >&6; }
38462
38463             if test $wx_cv_version_script = yes ; then
38464                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
38465             fi
38466             ;;
38467     esac
38468
38469
38470     case "${host}" in
38471       *-*-linux* | *-*-gnu* )
38472         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
38473         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
38474         ;;
38475
38476       *-*-solaris2* )
38477         if test "$GCC" = yes ; then
38478                                     CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
38479
38480                                     saveLdflags="$LDFLAGS"
38481             LDFLAGS="$saveLdflags -Wl,-rpath,/"
38482             { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
38483 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
38484             cat >conftest.$ac_ext <<_ACEOF
38485 /* confdefs.h.  */
38486 _ACEOF
38487 cat confdefs.h >>conftest.$ac_ext
38488 cat >>conftest.$ac_ext <<_ACEOF
38489 /* end confdefs.h.  */
38490
38491 int
38492 main ()
38493 {
38494
38495   ;
38496   return 0;
38497 }
38498 _ACEOF
38499 rm -f conftest.$ac_objext conftest$ac_exeext
38500 if { (ac_try="$ac_link"
38501 case "(($ac_try" in
38502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38503   *) ac_try_echo=$ac_try;;
38504 esac
38505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38506   (eval "$ac_link") 2>conftest.er1
38507   ac_status=$?
38508   grep -v '^ *+' conftest.er1 >conftest.err
38509   rm -f conftest.er1
38510   cat conftest.err >&5
38511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512   (exit $ac_status); } &&
38513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38514   { (case "(($ac_try" in
38515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38516   *) ac_try_echo=$ac_try;;
38517 esac
38518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38519   (eval "$ac_try") 2>&5
38520   ac_status=$?
38521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38522   (exit $ac_status); }; } &&
38523          { ac_try='test -s conftest$ac_exeext'
38524   { (case "(($ac_try" in
38525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38526   *) ac_try_echo=$ac_try;;
38527 esac
38528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38529   (eval "$ac_try") 2>&5
38530   ac_status=$?
38531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38532   (exit $ac_status); }; }; then
38533
38534                     { echo "$as_me:$LINENO: result: yes" >&5
38535 echo "${ECHO_T}yes" >&6; }
38536                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
38537                     WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
38538
38539 else
38540   echo "$as_me: failed program was:" >&5
38541 sed 's/^/| /' conftest.$ac_ext >&5
38542
38543
38544                     { echo "$as_me:$LINENO: result: no" >&5
38545 echo "${ECHO_T}no" >&6; }
38546                     { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
38547 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
38548                     LDFLAGS="$saveLdflags -Wl,-R,/"
38549                     cat >conftest.$ac_ext <<_ACEOF
38550 /* confdefs.h.  */
38551 _ACEOF
38552 cat confdefs.h >>conftest.$ac_ext
38553 cat >>conftest.$ac_ext <<_ACEOF
38554 /* end confdefs.h.  */
38555
38556 int
38557 main ()
38558 {
38559
38560   ;
38561   return 0;
38562 }
38563 _ACEOF
38564 rm -f conftest.$ac_objext conftest$ac_exeext
38565 if { (ac_try="$ac_link"
38566 case "(($ac_try" in
38567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38568   *) ac_try_echo=$ac_try;;
38569 esac
38570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38571   (eval "$ac_link") 2>conftest.er1
38572   ac_status=$?
38573   grep -v '^ *+' conftest.er1 >conftest.err
38574   rm -f conftest.er1
38575   cat conftest.err >&5
38576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38577   (exit $ac_status); } &&
38578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38579   { (case "(($ac_try" in
38580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38581   *) ac_try_echo=$ac_try;;
38582 esac
38583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38584   (eval "$ac_try") 2>&5
38585   ac_status=$?
38586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38587   (exit $ac_status); }; } &&
38588          { ac_try='test -s conftest$ac_exeext'
38589   { (case "(($ac_try" in
38590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38591   *) ac_try_echo=$ac_try;;
38592 esac
38593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38594   (eval "$ac_try") 2>&5
38595   ac_status=$?
38596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597   (exit $ac_status); }; }; then
38598
38599                             { echo "$as_me:$LINENO: result: yes" >&5
38600 echo "${ECHO_T}yes" >&6; }
38601                             SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
38602                             WXCONFIG_RPATH="-Wl,-R,\$libdir"
38603
38604 else
38605   echo "$as_me: failed program was:" >&5
38606 sed 's/^/| /' conftest.$ac_ext >&5
38607
38608
38609                             { echo "$as_me:$LINENO: result: no" >&5
38610 echo "${ECHO_T}no" >&6; }
38611
38612 fi
38613
38614 rm -f core conftest.err conftest.$ac_objext \
38615       conftest$ac_exeext conftest.$ac_ext
38616
38617 fi
38618
38619 rm -f core conftest.err conftest.$ac_objext \
38620       conftest$ac_exeext conftest.$ac_ext
38621             LDFLAGS="$saveLdflags"
38622         else
38623             SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
38624             WXCONFIG_RPATH="-R\$libdir"
38625         fi
38626       ;;
38627
38628       *-*-darwin* )
38629         install_name_tool=`which install_name_tool`
38630         if test "$install_name_tool" -a -x "$install_name_tool"; then
38631             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
38632             cat <<EOF >change-install-names
38633 #!/bin/sh
38634 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
38635 inst_cmd="install_name_tool "
38636 for i in \${libnames} ; do
38637     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
38638 done
38639 \${inst_cmd} \${3}
38640 EOF
38641             chmod +x change-install-names
38642         fi
38643       ;;
38644
38645       *-*-cygwin* | *-*-mingw32* )
38646                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
38647         ;;
38648
38649       *-*-hpux* )
38650         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
38651         WXCONFIG_RPATH="-Wl,+b,\$libdir"
38652         ;;
38653
38654     esac
38655
38656     if test $wxUSE_RPATH = "no"; then
38657         SAMPLES_RPATH_FLAG=''
38658         SAMPLES_RPATH_POSTLINK=''
38659         WXCONFIG_RPATH=''
38660     fi
38661
38662     SHARED=1
38663
38664 else
38665
38666     config_linkage_component="-static"
38667     SHARED=0
38668
38669 fi
38670
38671
38672 UNICODE=0
38673 lib_unicode_suffix=
38674 WX_CHARTYPE="ansi"
38675 if test "$wxUSE_UNICODE" = "yes"; then
38676     lib_unicode_suffix=u
38677     WX_CHARTYPE="unicode"
38678     UNICODE=1
38679 fi
38680
38681 lib_debug_suffix=
38682 WX_DEBUGTYPE="release"
38683 DEBUG_FLAG=0
38684 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
38685     lib_debug_suffix=d
38686     WX_DEBUGTYPE="debug"
38687     DEBUG_FLAG=1
38688 fi
38689
38690 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
38691 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
38692
38693 DEBUG_INFO=0
38694 if test "$wxUSE_DEBUG_INFO" = "yes"; then
38695     DEBUG_INFO=1
38696 fi
38697
38698 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
38699
38700 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
38701
38702 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
38703
38704 if test "$cross_compiling" = "yes"; then
38705     HOST_SUFFIX="-$host_alias"
38706     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
38707     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
38708 fi
38709
38710 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
38711 if test "${TOOLKIT_DIR}" = "os2"; then
38712     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
38713 else
38714     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
38715 fi
38716
38717
38718
38719 if test "$wxUSE_COCOA" = 1; then
38720
38721     ac_ext=c
38722 ac_cpp='$CPP $CPPFLAGS'
38723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38726
38727 ac_ext=m
38728
38729     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
38730 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
38731     cat >conftest.$ac_ext <<_ACEOF
38732 /* confdefs.h.  */
38733 _ACEOF
38734 cat confdefs.h >>conftest.$ac_ext
38735 cat >>conftest.$ac_ext <<_ACEOF
38736 /* end confdefs.h.  */
38737 #include <AppKit/NSEvent.h>
38738 #include <CoreFoundation/CoreFoundation.h>
38739
38740 int
38741 main ()
38742 {
38743
38744   ;
38745   return 0;
38746 }
38747 _ACEOF
38748 rm -f conftest.$ac_objext
38749 if { (ac_try="$ac_compile"
38750 case "(($ac_try" in
38751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38752   *) ac_try_echo=$ac_try;;
38753 esac
38754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38755   (eval "$ac_compile") 2>conftest.er1
38756   ac_status=$?
38757   grep -v '^ *+' conftest.er1 >conftest.err
38758   rm -f conftest.er1
38759   cat conftest.err >&5
38760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38761   (exit $ac_status); } &&
38762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38763   { (case "(($ac_try" in
38764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38765   *) ac_try_echo=$ac_try;;
38766 esac
38767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38768   (eval "$ac_try") 2>&5
38769   ac_status=$?
38770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38771   (exit $ac_status); }; } &&
38772          { ac_try='test -s conftest.$ac_objext'
38773   { (case "(($ac_try" in
38774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38775   *) ac_try_echo=$ac_try;;
38776 esac
38777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38778   (eval "$ac_try") 2>&5
38779   ac_status=$?
38780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38781   (exit $ac_status); }; }; then
38782   { echo "$as_me:$LINENO: result: no" >&5
38783 echo "${ECHO_T}no" >&6; }
38784 else
38785   echo "$as_me: failed program was:" >&5
38786 sed 's/^/| /' conftest.$ac_ext >&5
38787
38788         { echo "$as_me:$LINENO: result: yes" >&5
38789 echo "${ECHO_T}yes" >&6; }
38790         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
38791 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
38792         cat >conftest.$ac_ext <<_ACEOF
38793 /* confdefs.h.  */
38794 _ACEOF
38795 cat confdefs.h >>conftest.$ac_ext
38796 cat >>conftest.$ac_ext <<_ACEOF
38797 /* end confdefs.h.  */
38798 #define __Point__ 1
38799 #include <AppKit/NSEvent.h>
38800 #include <CoreFoundation/CoreFoundation.h>
38801
38802 int
38803 main ()
38804 {
38805
38806   ;
38807   return 0;
38808 }
38809 _ACEOF
38810 rm -f conftest.$ac_objext
38811 if { (ac_try="$ac_compile"
38812 case "(($ac_try" in
38813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38814   *) ac_try_echo=$ac_try;;
38815 esac
38816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38817   (eval "$ac_compile") 2>conftest.er1
38818   ac_status=$?
38819   grep -v '^ *+' conftest.er1 >conftest.err
38820   rm -f conftest.er1
38821   cat conftest.err >&5
38822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823   (exit $ac_status); } &&
38824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38825   { (case "(($ac_try" in
38826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38827   *) ac_try_echo=$ac_try;;
38828 esac
38829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38830   (eval "$ac_try") 2>&5
38831   ac_status=$?
38832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38833   (exit $ac_status); }; } &&
38834          { ac_try='test -s conftest.$ac_objext'
38835   { (case "(($ac_try" in
38836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38837   *) ac_try_echo=$ac_try;;
38838 esac
38839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38840   (eval "$ac_try") 2>&5
38841   ac_status=$?
38842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843   (exit $ac_status); }; }; then
38844   { echo "$as_me:$LINENO: result: yes" >&5
38845 echo "${ECHO_T}yes" >&6; }
38846             cat >>confdefs.h <<\_ACEOF
38847 #define __Point__ 1
38848 _ACEOF
38849
38850
38851 else
38852   echo "$as_me: failed program was:" >&5
38853 sed 's/^/| /' conftest.$ac_ext >&5
38854
38855         { { echo "$as_me:$LINENO: error: no
38856 See \`config.log' for more details." >&5
38857 echo "$as_me: error: no
38858 See \`config.log' for more details." >&2;}
38859    { (exit 1); exit 1; }; }
38860
38861 fi
38862
38863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38864
38865 fi
38866
38867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38868     ac_ext=c
38869 ac_cpp='$CPP $CPPFLAGS'
38870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38873
38874 fi
38875
38876 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
38877             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
38878     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
38879
38880         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
38881
38882     # Extract the first word of "Rez", so it can be a program name with args.
38883 set dummy Rez; ac_word=$2
38884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38886 if test "${ac_cv_prog_REZ+set}" = set; then
38887   echo $ECHO_N "(cached) $ECHO_C" >&6
38888 else
38889   if test -n "$REZ"; then
38890   ac_cv_prog_REZ="$REZ" # Let the user override the test.
38891 else
38892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38893 for as_dir in $PATH
38894 do
38895   IFS=$as_save_IFS
38896   test -z "$as_dir" && as_dir=.
38897   for ac_exec_ext in '' $ac_executable_extensions; do
38898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38899     ac_cv_prog_REZ="Rez"
38900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38901     break 2
38902   fi
38903 done
38904 done
38905 IFS=$as_save_IFS
38906
38907   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
38908 fi
38909 fi
38910 REZ=$ac_cv_prog_REZ
38911 if test -n "$REZ"; then
38912   { echo "$as_me:$LINENO: result: $REZ" >&5
38913 echo "${ECHO_T}$REZ" >&6; }
38914 else
38915   { echo "$as_me:$LINENO: result: no" >&5
38916 echo "${ECHO_T}no" >&6; }
38917 fi
38918
38919
38920     # Extract the first word of "DeRez", so it can be a program name with args.
38921 set dummy DeRez; ac_word=$2
38922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38924 if test "${ac_cv_prog_DEREZ+set}" = set; then
38925   echo $ECHO_N "(cached) $ECHO_C" >&6
38926 else
38927   if test -n "$DEREZ"; then
38928   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
38929 else
38930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38931 for as_dir in $PATH
38932 do
38933   IFS=$as_save_IFS
38934   test -z "$as_dir" && as_dir=.
38935   for ac_exec_ext in '' $ac_executable_extensions; do
38936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38937     ac_cv_prog_DEREZ="DeRez"
38938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38939     break 2
38940   fi
38941 done
38942 done
38943 IFS=$as_save_IFS
38944
38945   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
38946 fi
38947 fi
38948 DEREZ=$ac_cv_prog_DEREZ
38949 if test -n "$DEREZ"; then
38950   { echo "$as_me:$LINENO: result: $DEREZ" >&5
38951 echo "${ECHO_T}$DEREZ" >&6; }
38952 else
38953   { echo "$as_me:$LINENO: result: no" >&5
38954 echo "${ECHO_T}no" >&6; }
38955 fi
38956
38957
38958     # Extract the first word of "SetFile", so it can be a program name with args.
38959 set dummy SetFile; ac_word=$2
38960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
38961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
38962 if test "${ac_cv_prog_SETFILE+set}" = set; then
38963   echo $ECHO_N "(cached) $ECHO_C" >&6
38964 else
38965   if test -n "$SETFILE"; then
38966   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
38967 else
38968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38969 for as_dir in $PATH
38970 do
38971   IFS=$as_save_IFS
38972   test -z "$as_dir" && as_dir=.
38973   for ac_exec_ext in '' $ac_executable_extensions; do
38974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
38975     ac_cv_prog_SETFILE="SetFile"
38976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38977     break 2
38978   fi
38979 done
38980 done
38981 IFS=$as_save_IFS
38982
38983   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
38984 fi
38985 fi
38986 SETFILE=$ac_cv_prog_SETFILE
38987 if test -n "$SETFILE"; then
38988   { echo "$as_me:$LINENO: result: $SETFILE" >&5
38989 echo "${ECHO_T}$SETFILE" >&6; }
38990 else
38991   { echo "$as_me:$LINENO: result: no" >&5
38992 echo "${ECHO_T}no" >&6; }
38993 fi
38994
38995
38996
38997     MACSETFILE="\$(SETFILE)"
38998
38999             if test "$wxUSE_MAC" = 1; then
39000         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
39001         RESCOMP="$REZ"
39002         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
39003     else
39004         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
39005         RESCOMP="echo -n \| $REZ"
39006         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
39007     fi
39008
39009 else
39010         MACSETFILE="@true"
39011
39012     if test "$wxUSE_PM" = 1; then
39013         RESCOMP="emxbind"
39014         WXCONFIG_RESFLAGS="-ep"
39015
39016                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
39017     else
39018         POSTLINK_COMMAND="@true"
39019     fi
39020
39021 fi
39022
39023
39024
39025 { echo "$as_me:$LINENO: checking for mode_t" >&5
39026 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
39027 if test "${ac_cv_type_mode_t+set}" = set; then
39028   echo $ECHO_N "(cached) $ECHO_C" >&6
39029 else
39030   cat >conftest.$ac_ext <<_ACEOF
39031 /* confdefs.h.  */
39032 _ACEOF
39033 cat confdefs.h >>conftest.$ac_ext
39034 cat >>conftest.$ac_ext <<_ACEOF
39035 /* end confdefs.h.  */
39036 $ac_includes_default
39037 typedef mode_t ac__type_new_;
39038 int
39039 main ()
39040 {
39041 if ((ac__type_new_ *) 0)
39042   return 0;
39043 if (sizeof (ac__type_new_))
39044   return 0;
39045   ;
39046   return 0;
39047 }
39048 _ACEOF
39049 rm -f conftest.$ac_objext
39050 if { (ac_try="$ac_compile"
39051 case "(($ac_try" in
39052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39053   *) ac_try_echo=$ac_try;;
39054 esac
39055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39056   (eval "$ac_compile") 2>conftest.er1
39057   ac_status=$?
39058   grep -v '^ *+' conftest.er1 >conftest.err
39059   rm -f conftest.er1
39060   cat conftest.err >&5
39061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39062   (exit $ac_status); } &&
39063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39064   { (case "(($ac_try" in
39065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39066   *) ac_try_echo=$ac_try;;
39067 esac
39068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39069   (eval "$ac_try") 2>&5
39070   ac_status=$?
39071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072   (exit $ac_status); }; } &&
39073          { ac_try='test -s conftest.$ac_objext'
39074   { (case "(($ac_try" in
39075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39076   *) ac_try_echo=$ac_try;;
39077 esac
39078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39079   (eval "$ac_try") 2>&5
39080   ac_status=$?
39081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39082   (exit $ac_status); }; }; then
39083   ac_cv_type_mode_t=yes
39084 else
39085   echo "$as_me: failed program was:" >&5
39086 sed 's/^/| /' conftest.$ac_ext >&5
39087
39088         ac_cv_type_mode_t=no
39089 fi
39090
39091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39092 fi
39093 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
39094 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
39095 if test $ac_cv_type_mode_t = yes; then
39096   :
39097 else
39098
39099 cat >>confdefs.h <<_ACEOF
39100 #define mode_t int
39101 _ACEOF
39102
39103 fi
39104
39105 { echo "$as_me:$LINENO: checking for off_t" >&5
39106 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
39107 if test "${ac_cv_type_off_t+set}" = set; then
39108   echo $ECHO_N "(cached) $ECHO_C" >&6
39109 else
39110   cat >conftest.$ac_ext <<_ACEOF
39111 /* confdefs.h.  */
39112 _ACEOF
39113 cat confdefs.h >>conftest.$ac_ext
39114 cat >>conftest.$ac_ext <<_ACEOF
39115 /* end confdefs.h.  */
39116 $ac_includes_default
39117 typedef off_t ac__type_new_;
39118 int
39119 main ()
39120 {
39121 if ((ac__type_new_ *) 0)
39122   return 0;
39123 if (sizeof (ac__type_new_))
39124   return 0;
39125   ;
39126   return 0;
39127 }
39128 _ACEOF
39129 rm -f conftest.$ac_objext
39130 if { (ac_try="$ac_compile"
39131 case "(($ac_try" in
39132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39133   *) ac_try_echo=$ac_try;;
39134 esac
39135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39136   (eval "$ac_compile") 2>conftest.er1
39137   ac_status=$?
39138   grep -v '^ *+' conftest.er1 >conftest.err
39139   rm -f conftest.er1
39140   cat conftest.err >&5
39141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39142   (exit $ac_status); } &&
39143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39144   { (case "(($ac_try" in
39145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39146   *) ac_try_echo=$ac_try;;
39147 esac
39148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39149   (eval "$ac_try") 2>&5
39150   ac_status=$?
39151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39152   (exit $ac_status); }; } &&
39153          { ac_try='test -s conftest.$ac_objext'
39154   { (case "(($ac_try" in
39155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39156   *) ac_try_echo=$ac_try;;
39157 esac
39158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39159   (eval "$ac_try") 2>&5
39160   ac_status=$?
39161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39162   (exit $ac_status); }; }; then
39163   ac_cv_type_off_t=yes
39164 else
39165   echo "$as_me: failed program was:" >&5
39166 sed 's/^/| /' conftest.$ac_ext >&5
39167
39168         ac_cv_type_off_t=no
39169 fi
39170
39171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39172 fi
39173 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
39174 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
39175 if test $ac_cv_type_off_t = yes; then
39176   :
39177 else
39178
39179 cat >>confdefs.h <<_ACEOF
39180 #define off_t long int
39181 _ACEOF
39182
39183 fi
39184
39185 { echo "$as_me:$LINENO: checking for pid_t" >&5
39186 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
39187 if test "${ac_cv_type_pid_t+set}" = set; then
39188   echo $ECHO_N "(cached) $ECHO_C" >&6
39189 else
39190   cat >conftest.$ac_ext <<_ACEOF
39191 /* confdefs.h.  */
39192 _ACEOF
39193 cat confdefs.h >>conftest.$ac_ext
39194 cat >>conftest.$ac_ext <<_ACEOF
39195 /* end confdefs.h.  */
39196 $ac_includes_default
39197 typedef pid_t ac__type_new_;
39198 int
39199 main ()
39200 {
39201 if ((ac__type_new_ *) 0)
39202   return 0;
39203 if (sizeof (ac__type_new_))
39204   return 0;
39205   ;
39206   return 0;
39207 }
39208 _ACEOF
39209 rm -f conftest.$ac_objext
39210 if { (ac_try="$ac_compile"
39211 case "(($ac_try" in
39212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39213   *) ac_try_echo=$ac_try;;
39214 esac
39215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39216   (eval "$ac_compile") 2>conftest.er1
39217   ac_status=$?
39218   grep -v '^ *+' conftest.er1 >conftest.err
39219   rm -f conftest.er1
39220   cat conftest.err >&5
39221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39222   (exit $ac_status); } &&
39223          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39224   { (case "(($ac_try" in
39225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39226   *) ac_try_echo=$ac_try;;
39227 esac
39228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39229   (eval "$ac_try") 2>&5
39230   ac_status=$?
39231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39232   (exit $ac_status); }; } &&
39233          { ac_try='test -s conftest.$ac_objext'
39234   { (case "(($ac_try" in
39235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39236   *) ac_try_echo=$ac_try;;
39237 esac
39238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39239   (eval "$ac_try") 2>&5
39240   ac_status=$?
39241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39242   (exit $ac_status); }; }; then
39243   ac_cv_type_pid_t=yes
39244 else
39245   echo "$as_me: failed program was:" >&5
39246 sed 's/^/| /' conftest.$ac_ext >&5
39247
39248         ac_cv_type_pid_t=no
39249 fi
39250
39251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39252 fi
39253 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
39254 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
39255 if test $ac_cv_type_pid_t = yes; then
39256   :
39257 else
39258
39259 cat >>confdefs.h <<_ACEOF
39260 #define pid_t int
39261 _ACEOF
39262
39263 fi
39264
39265 { echo "$as_me:$LINENO: checking for size_t" >&5
39266 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
39267 if test "${ac_cv_type_size_t+set}" = set; then
39268   echo $ECHO_N "(cached) $ECHO_C" >&6
39269 else
39270   cat >conftest.$ac_ext <<_ACEOF
39271 /* confdefs.h.  */
39272 _ACEOF
39273 cat confdefs.h >>conftest.$ac_ext
39274 cat >>conftest.$ac_ext <<_ACEOF
39275 /* end confdefs.h.  */
39276 $ac_includes_default
39277 typedef size_t ac__type_new_;
39278 int
39279 main ()
39280 {
39281 if ((ac__type_new_ *) 0)
39282   return 0;
39283 if (sizeof (ac__type_new_))
39284   return 0;
39285   ;
39286   return 0;
39287 }
39288 _ACEOF
39289 rm -f conftest.$ac_objext
39290 if { (ac_try="$ac_compile"
39291 case "(($ac_try" in
39292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39293   *) ac_try_echo=$ac_try;;
39294 esac
39295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39296   (eval "$ac_compile") 2>conftest.er1
39297   ac_status=$?
39298   grep -v '^ *+' conftest.er1 >conftest.err
39299   rm -f conftest.er1
39300   cat conftest.err >&5
39301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39302   (exit $ac_status); } &&
39303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39304   { (case "(($ac_try" in
39305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39306   *) ac_try_echo=$ac_try;;
39307 esac
39308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39309   (eval "$ac_try") 2>&5
39310   ac_status=$?
39311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39312   (exit $ac_status); }; } &&
39313          { ac_try='test -s conftest.$ac_objext'
39314   { (case "(($ac_try" in
39315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39316   *) ac_try_echo=$ac_try;;
39317 esac
39318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39319   (eval "$ac_try") 2>&5
39320   ac_status=$?
39321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39322   (exit $ac_status); }; }; then
39323   ac_cv_type_size_t=yes
39324 else
39325   echo "$as_me: failed program was:" >&5
39326 sed 's/^/| /' conftest.$ac_ext >&5
39327
39328         ac_cv_type_size_t=no
39329 fi
39330
39331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39332 fi
39333 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39334 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
39335 if test $ac_cv_type_size_t = yes; then
39336   :
39337 else
39338
39339 cat >>confdefs.h <<_ACEOF
39340 #define size_t unsigned int
39341 _ACEOF
39342
39343 fi
39344
39345 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39346 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
39347 if test "${ac_cv_type_uid_t+set}" = set; then
39348   echo $ECHO_N "(cached) $ECHO_C" >&6
39349 else
39350   cat >conftest.$ac_ext <<_ACEOF
39351 /* confdefs.h.  */
39352 _ACEOF
39353 cat confdefs.h >>conftest.$ac_ext
39354 cat >>conftest.$ac_ext <<_ACEOF
39355 /* end confdefs.h.  */
39356 #include <sys/types.h>
39357
39358 _ACEOF
39359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39360   $EGREP "uid_t" >/dev/null 2>&1; then
39361   ac_cv_type_uid_t=yes
39362 else
39363   ac_cv_type_uid_t=no
39364 fi
39365 rm -f conftest*
39366
39367 fi
39368 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39369 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
39370 if test $ac_cv_type_uid_t = no; then
39371
39372 cat >>confdefs.h <<\_ACEOF
39373 #define uid_t int
39374 _ACEOF
39375
39376
39377 cat >>confdefs.h <<\_ACEOF
39378 #define gid_t int
39379 _ACEOF
39380
39381 fi
39382
39383
39384 { echo "$as_me:$LINENO: checking for ssize_t" >&5
39385 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
39386 if test "${ac_cv_type_ssize_t+set}" = set; then
39387   echo $ECHO_N "(cached) $ECHO_C" >&6
39388 else
39389   cat >conftest.$ac_ext <<_ACEOF
39390 /* confdefs.h.  */
39391 _ACEOF
39392 cat confdefs.h >>conftest.$ac_ext
39393 cat >>conftest.$ac_ext <<_ACEOF
39394 /* end confdefs.h.  */
39395 $ac_includes_default
39396 typedef ssize_t ac__type_new_;
39397 int
39398 main ()
39399 {
39400 if ((ac__type_new_ *) 0)
39401   return 0;
39402 if (sizeof (ac__type_new_))
39403   return 0;
39404   ;
39405   return 0;
39406 }
39407 _ACEOF
39408 rm -f conftest.$ac_objext
39409 if { (ac_try="$ac_compile"
39410 case "(($ac_try" in
39411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39412   *) ac_try_echo=$ac_try;;
39413 esac
39414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39415   (eval "$ac_compile") 2>conftest.er1
39416   ac_status=$?
39417   grep -v '^ *+' conftest.er1 >conftest.err
39418   rm -f conftest.er1
39419   cat conftest.err >&5
39420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39421   (exit $ac_status); } &&
39422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39423   { (case "(($ac_try" in
39424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39425   *) ac_try_echo=$ac_try;;
39426 esac
39427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39428   (eval "$ac_try") 2>&5
39429   ac_status=$?
39430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39431   (exit $ac_status); }; } &&
39432          { ac_try='test -s conftest.$ac_objext'
39433   { (case "(($ac_try" in
39434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39435   *) ac_try_echo=$ac_try;;
39436 esac
39437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39438   (eval "$ac_try") 2>&5
39439   ac_status=$?
39440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39441   (exit $ac_status); }; }; then
39442   ac_cv_type_ssize_t=yes
39443 else
39444   echo "$as_me: failed program was:" >&5
39445 sed 's/^/| /' conftest.$ac_ext >&5
39446
39447         ac_cv_type_ssize_t=no
39448 fi
39449
39450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39451 fi
39452 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39453 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
39454 if test $ac_cv_type_ssize_t = yes; then
39455
39456 cat >>confdefs.h <<_ACEOF
39457 #define HAVE_SSIZE_T 1
39458 _ACEOF
39459
39460
39461 fi
39462
39463
39464 ac_ext=cpp
39465 ac_cpp='$CXXCPP $CPPFLAGS'
39466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39469  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
39470 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
39471 if test "${wx_cv_size_t_is_uint+set}" = set; then
39472   echo $ECHO_N "(cached) $ECHO_C" >&6
39473 else
39474
39475                             cat >conftest.$ac_ext <<_ACEOF
39476 /* confdefs.h.  */
39477 _ACEOF
39478 cat confdefs.h >>conftest.$ac_ext
39479 cat >>conftest.$ac_ext <<_ACEOF
39480 /* end confdefs.h.  */
39481 #include <stddef.h>
39482 int
39483 main ()
39484 {
39485
39486             return 0; }
39487
39488             struct Foo { void foo(size_t); void foo(unsigned int); };
39489
39490             int bar() {
39491
39492   ;
39493   return 0;
39494 }
39495 _ACEOF
39496 rm -f conftest.$ac_objext
39497 if { (ac_try="$ac_compile"
39498 case "(($ac_try" in
39499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39500   *) ac_try_echo=$ac_try;;
39501 esac
39502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39503   (eval "$ac_compile") 2>conftest.er1
39504   ac_status=$?
39505   grep -v '^ *+' conftest.er1 >conftest.err
39506   rm -f conftest.er1
39507   cat conftest.err >&5
39508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39509   (exit $ac_status); } &&
39510          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39511   { (case "(($ac_try" in
39512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39513   *) ac_try_echo=$ac_try;;
39514 esac
39515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39516   (eval "$ac_try") 2>&5
39517   ac_status=$?
39518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519   (exit $ac_status); }; } &&
39520          { ac_try='test -s conftest.$ac_objext'
39521   { (case "(($ac_try" in
39522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39523   *) ac_try_echo=$ac_try;;
39524 esac
39525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39526   (eval "$ac_try") 2>&5
39527   ac_status=$?
39528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39529   (exit $ac_status); }; }; then
39530   wx_cv_size_t_is_uint=no
39531 else
39532   echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39534
39535         wx_cv_size_t_is_uint=yes
39536
39537 fi
39538
39539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39540
39541
39542 fi
39543 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
39544 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
39545
39546 if test "$wx_cv_size_t_is_uint" = "yes"; then
39547     cat >>confdefs.h <<\_ACEOF
39548 #define wxSIZE_T_IS_UINT 1
39549 _ACEOF
39550
39551 else
39552     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
39553 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
39554 if test "${wx_cv_size_t_is_ulong+set}" = set; then
39555   echo $ECHO_N "(cached) $ECHO_C" >&6
39556 else
39557   cat >conftest.$ac_ext <<_ACEOF
39558 /* confdefs.h.  */
39559 _ACEOF
39560 cat confdefs.h >>conftest.$ac_ext
39561 cat >>conftest.$ac_ext <<_ACEOF
39562 /* end confdefs.h.  */
39563 #include <stddef.h>
39564 int
39565 main ()
39566 {
39567
39568                 return 0; }
39569
39570                 struct Foo { void foo(size_t); void foo(unsigned long); };
39571
39572                 int bar() {
39573
39574   ;
39575   return 0;
39576 }
39577 _ACEOF
39578 rm -f conftest.$ac_objext
39579 if { (ac_try="$ac_compile"
39580 case "(($ac_try" in
39581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39582   *) ac_try_echo=$ac_try;;
39583 esac
39584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39585   (eval "$ac_compile") 2>conftest.er1
39586   ac_status=$?
39587   grep -v '^ *+' conftest.er1 >conftest.err
39588   rm -f conftest.er1
39589   cat conftest.err >&5
39590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39591   (exit $ac_status); } &&
39592          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
39593   { (case "(($ac_try" in
39594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39595   *) ac_try_echo=$ac_try;;
39596 esac
39597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39598   (eval "$ac_try") 2>&5
39599   ac_status=$?
39600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39601   (exit $ac_status); }; } &&
39602          { ac_try='test -s conftest.$ac_objext'
39603   { (case "(($ac_try" in
39604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39605   *) ac_try_echo=$ac_try;;
39606 esac
39607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39608   (eval "$ac_try") 2>&5
39609   ac_status=$?
39610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39611   (exit $ac_status); }; }; then
39612   wx_cv_size_t_is_ulong=no
39613 else
39614   echo "$as_me: failed program was:" >&5
39615 sed 's/^/| /' conftest.$ac_ext >&5
39616
39617         wx_cv_size_t_is_ulong=yes
39618
39619 fi
39620
39621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39622
39623 fi
39624 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
39625 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
39626
39627     if test "$wx_cv_size_t_is_ulong" = "yes"; then
39628         cat >>confdefs.h <<\_ACEOF
39629 #define wxSIZE_T_IS_ULONG 1
39630 _ACEOF
39631
39632     fi
39633 fi
39634
39635 ac_ext=c
39636 ac_cpp='$CPP $CPPFLAGS'
39637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39640
39641
39642 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
39643 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
39644 if test "${wx_cv_struct_pw_gecos+set}" = set; then
39645   echo $ECHO_N "(cached) $ECHO_C" >&6
39646 else
39647
39648         cat >conftest.$ac_ext <<_ACEOF
39649 /* confdefs.h.  */
39650 _ACEOF
39651 cat confdefs.h >>conftest.$ac_ext
39652 cat >>conftest.$ac_ext <<_ACEOF
39653 /* end confdefs.h.  */
39654 #include <pwd.h>
39655 int
39656 main ()
39657 {
39658
39659                 char *p;
39660                 struct passwd *pw;
39661                 p = pw->pw_gecos;
39662
39663   ;
39664   return 0;
39665 }
39666 _ACEOF
39667 rm -f conftest.$ac_objext
39668 if { (ac_try="$ac_compile"
39669 case "(($ac_try" in
39670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39671   *) ac_try_echo=$ac_try;;
39672 esac
39673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39674   (eval "$ac_compile") 2>conftest.er1
39675   ac_status=$?
39676   grep -v '^ *+' conftest.er1 >conftest.err
39677   rm -f conftest.er1
39678   cat conftest.err >&5
39679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39680   (exit $ac_status); } &&
39681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39682   { (case "(($ac_try" in
39683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39684   *) ac_try_echo=$ac_try;;
39685 esac
39686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39687   (eval "$ac_try") 2>&5
39688   ac_status=$?
39689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39690   (exit $ac_status); }; } &&
39691          { ac_try='test -s conftest.$ac_objext'
39692   { (case "(($ac_try" in
39693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39694   *) ac_try_echo=$ac_try;;
39695 esac
39696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39697   (eval "$ac_try") 2>&5
39698   ac_status=$?
39699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39700   (exit $ac_status); }; }; then
39701
39702                 wx_cv_struct_pw_gecos=yes
39703
39704 else
39705   echo "$as_me: failed program was:" >&5
39706 sed 's/^/| /' conftest.$ac_ext >&5
39707
39708
39709                 wx_cv_struct_pw_gecos=no
39710
39711
39712 fi
39713
39714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39715
39716
39717 fi
39718 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
39719 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
39720
39721 if test "$wx_cv_struct_pw_gecos" = "yes"; then
39722     cat >>confdefs.h <<\_ACEOF
39723 #define HAVE_PW_GECOS 1
39724 _ACEOF
39725
39726 fi
39727
39728
39729 if test "$wxUSE_WCHAR_T" = "yes"; then
39730     cat >>confdefs.h <<\_ACEOF
39731 #define wxUSE_WCHAR_T 1
39732 _ACEOF
39733
39734
39735         WCSLEN_FOUND=0
39736     WCHAR_LINK=
39737
39738 for ac_func in wcslen
39739 do
39740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39744   echo $ECHO_N "(cached) $ECHO_C" >&6
39745 else
39746   cat >conftest.$ac_ext <<_ACEOF
39747 /* confdefs.h.  */
39748 _ACEOF
39749 cat confdefs.h >>conftest.$ac_ext
39750 cat >>conftest.$ac_ext <<_ACEOF
39751 /* end confdefs.h.  */
39752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39754 #define $ac_func innocuous_$ac_func
39755
39756 /* System header to define __stub macros and hopefully few prototypes,
39757     which can conflict with char $ac_func (); below.
39758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39759     <limits.h> exists even on freestanding compilers.  */
39760
39761 #ifdef __STDC__
39762 # include <limits.h>
39763 #else
39764 # include <assert.h>
39765 #endif
39766
39767 #undef $ac_func
39768
39769 /* Override any GCC internal prototype to avoid an error.
39770    Use char because int might match the return type of a GCC
39771    builtin and then its argument prototype would still apply.  */
39772 #ifdef __cplusplus
39773 extern "C"
39774 #endif
39775 char $ac_func ();
39776 /* The GNU C library defines this for functions which it implements
39777     to always fail with ENOSYS.  Some functions are actually named
39778     something starting with __ and the normal name is an alias.  */
39779 #if defined __stub_$ac_func || defined __stub___$ac_func
39780 choke me
39781 #endif
39782
39783 int
39784 main ()
39785 {
39786 return $ac_func ();
39787   ;
39788   return 0;
39789 }
39790 _ACEOF
39791 rm -f conftest.$ac_objext conftest$ac_exeext
39792 if { (ac_try="$ac_link"
39793 case "(($ac_try" in
39794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39795   *) ac_try_echo=$ac_try;;
39796 esac
39797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39798   (eval "$ac_link") 2>conftest.er1
39799   ac_status=$?
39800   grep -v '^ *+' conftest.er1 >conftest.err
39801   rm -f conftest.er1
39802   cat conftest.err >&5
39803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804   (exit $ac_status); } &&
39805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39806   { (case "(($ac_try" in
39807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39808   *) ac_try_echo=$ac_try;;
39809 esac
39810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39811   (eval "$ac_try") 2>&5
39812   ac_status=$?
39813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39814   (exit $ac_status); }; } &&
39815          { ac_try='test -s conftest$ac_exeext'
39816   { (case "(($ac_try" in
39817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39818   *) ac_try_echo=$ac_try;;
39819 esac
39820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39821   (eval "$ac_try") 2>&5
39822   ac_status=$?
39823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824   (exit $ac_status); }; }; then
39825   eval "$as_ac_var=yes"
39826 else
39827   echo "$as_me: failed program was:" >&5
39828 sed 's/^/| /' conftest.$ac_ext >&5
39829
39830         eval "$as_ac_var=no"
39831 fi
39832
39833 rm -f core conftest.err conftest.$ac_objext \
39834       conftest$ac_exeext conftest.$ac_ext
39835 fi
39836 ac_res=`eval echo '${'$as_ac_var'}'`
39837                { echo "$as_me:$LINENO: result: $ac_res" >&5
39838 echo "${ECHO_T}$ac_res" >&6; }
39839 if test `eval echo '${'$as_ac_var'}'` = yes; then
39840   cat >>confdefs.h <<_ACEOF
39841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39842 _ACEOF
39843  WCSLEN_FOUND=1
39844 fi
39845 done
39846
39847
39848     if test "$WCSLEN_FOUND" = 0; then
39849         if test "$TOOLKIT" = "MSW"; then
39850             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
39851 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
39852 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
39853   echo $ECHO_N "(cached) $ECHO_C" >&6
39854 else
39855   ac_check_lib_save_LIBS=$LIBS
39856 LIBS="-lmsvcrt  $LIBS"
39857 cat >conftest.$ac_ext <<_ACEOF
39858 /* confdefs.h.  */
39859 _ACEOF
39860 cat confdefs.h >>conftest.$ac_ext
39861 cat >>conftest.$ac_ext <<_ACEOF
39862 /* end confdefs.h.  */
39863
39864 /* Override any GCC internal prototype to avoid an error.
39865    Use char because int might match the return type of a GCC
39866    builtin and then its argument prototype would still apply.  */
39867 #ifdef __cplusplus
39868 extern "C"
39869 #endif
39870 char wcslen ();
39871 int
39872 main ()
39873 {
39874 return wcslen ();
39875   ;
39876   return 0;
39877 }
39878 _ACEOF
39879 rm -f conftest.$ac_objext conftest$ac_exeext
39880 if { (ac_try="$ac_link"
39881 case "(($ac_try" in
39882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39883   *) ac_try_echo=$ac_try;;
39884 esac
39885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39886   (eval "$ac_link") 2>conftest.er1
39887   ac_status=$?
39888   grep -v '^ *+' conftest.er1 >conftest.err
39889   rm -f conftest.er1
39890   cat conftest.err >&5
39891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39892   (exit $ac_status); } &&
39893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39894   { (case "(($ac_try" in
39895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39896   *) ac_try_echo=$ac_try;;
39897 esac
39898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39899   (eval "$ac_try") 2>&5
39900   ac_status=$?
39901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39902   (exit $ac_status); }; } &&
39903          { ac_try='test -s conftest$ac_exeext'
39904   { (case "(($ac_try" in
39905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39906   *) ac_try_echo=$ac_try;;
39907 esac
39908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39909   (eval "$ac_try") 2>&5
39910   ac_status=$?
39911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39912   (exit $ac_status); }; }; then
39913   ac_cv_lib_msvcrt_wcslen=yes
39914 else
39915   echo "$as_me: failed program was:" >&5
39916 sed 's/^/| /' conftest.$ac_ext >&5
39917
39918         ac_cv_lib_msvcrt_wcslen=no
39919 fi
39920
39921 rm -f core conftest.err conftest.$ac_objext \
39922       conftest$ac_exeext conftest.$ac_ext
39923 LIBS=$ac_check_lib_save_LIBS
39924 fi
39925 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
39926 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
39927 if test $ac_cv_lib_msvcrt_wcslen = yes; then
39928   WCHAR_OK=1
39929 fi
39930
39931         else
39932             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
39933 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
39934 if test "${ac_cv_lib_w_wcslen+set}" = set; then
39935   echo $ECHO_N "(cached) $ECHO_C" >&6
39936 else
39937   ac_check_lib_save_LIBS=$LIBS
39938 LIBS="-lw  $LIBS"
39939 cat >conftest.$ac_ext <<_ACEOF
39940 /* confdefs.h.  */
39941 _ACEOF
39942 cat confdefs.h >>conftest.$ac_ext
39943 cat >>conftest.$ac_ext <<_ACEOF
39944 /* end confdefs.h.  */
39945
39946 /* Override any GCC internal prototype to avoid an error.
39947    Use char because int might match the return type of a GCC
39948    builtin and then its argument prototype would still apply.  */
39949 #ifdef __cplusplus
39950 extern "C"
39951 #endif
39952 char wcslen ();
39953 int
39954 main ()
39955 {
39956 return wcslen ();
39957   ;
39958   return 0;
39959 }
39960 _ACEOF
39961 rm -f conftest.$ac_objext conftest$ac_exeext
39962 if { (ac_try="$ac_link"
39963 case "(($ac_try" in
39964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39965   *) ac_try_echo=$ac_try;;
39966 esac
39967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39968   (eval "$ac_link") 2>conftest.er1
39969   ac_status=$?
39970   grep -v '^ *+' conftest.er1 >conftest.err
39971   rm -f conftest.er1
39972   cat conftest.err >&5
39973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39974   (exit $ac_status); } &&
39975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39976   { (case "(($ac_try" in
39977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39978   *) ac_try_echo=$ac_try;;
39979 esac
39980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39981   (eval "$ac_try") 2>&5
39982   ac_status=$?
39983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984   (exit $ac_status); }; } &&
39985          { ac_try='test -s conftest$ac_exeext'
39986   { (case "(($ac_try" in
39987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39988   *) ac_try_echo=$ac_try;;
39989 esac
39990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39991   (eval "$ac_try") 2>&5
39992   ac_status=$?
39993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39994   (exit $ac_status); }; }; then
39995   ac_cv_lib_w_wcslen=yes
39996 else
39997   echo "$as_me: failed program was:" >&5
39998 sed 's/^/| /' conftest.$ac_ext >&5
39999
40000         ac_cv_lib_w_wcslen=no
40001 fi
40002
40003 rm -f core conftest.err conftest.$ac_objext \
40004       conftest$ac_exeext conftest.$ac_ext
40005 LIBS=$ac_check_lib_save_LIBS
40006 fi
40007 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
40008 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
40009 if test $ac_cv_lib_w_wcslen = yes; then
40010
40011                             WCHAR_LINK=" -lw"
40012                             WCSLEN_FOUND=1
40013
40014 fi
40015
40016         fi
40017     fi
40018
40019     if test "$WCSLEN_FOUND" = 1; then
40020         cat >>confdefs.h <<\_ACEOF
40021 #define HAVE_WCSLEN 1
40022 _ACEOF
40023
40024     fi
40025
40026                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
40027         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
40028     fi
40029
40030                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
40031 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
40032 if test "${ac_cv_type_mbstate_t+set}" = set; then
40033   echo $ECHO_N "(cached) $ECHO_C" >&6
40034 else
40035   cat >conftest.$ac_ext <<_ACEOF
40036 /* confdefs.h.  */
40037 _ACEOF
40038 cat confdefs.h >>conftest.$ac_ext
40039 cat >>conftest.$ac_ext <<_ACEOF
40040 /* end confdefs.h.  */
40041 #include <wchar.h>
40042
40043 typedef mbstate_t ac__type_new_;
40044 int
40045 main ()
40046 {
40047 if ((ac__type_new_ *) 0)
40048   return 0;
40049 if (sizeof (ac__type_new_))
40050   return 0;
40051   ;
40052   return 0;
40053 }
40054 _ACEOF
40055 rm -f conftest.$ac_objext
40056 if { (ac_try="$ac_compile"
40057 case "(($ac_try" in
40058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40059   *) ac_try_echo=$ac_try;;
40060 esac
40061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40062   (eval "$ac_compile") 2>conftest.er1
40063   ac_status=$?
40064   grep -v '^ *+' conftest.er1 >conftest.err
40065   rm -f conftest.er1
40066   cat conftest.err >&5
40067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40068   (exit $ac_status); } &&
40069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40070   { (case "(($ac_try" in
40071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40072   *) ac_try_echo=$ac_try;;
40073 esac
40074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40075   (eval "$ac_try") 2>&5
40076   ac_status=$?
40077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40078   (exit $ac_status); }; } &&
40079          { ac_try='test -s conftest.$ac_objext'
40080   { (case "(($ac_try" in
40081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40082   *) ac_try_echo=$ac_try;;
40083 esac
40084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40085   (eval "$ac_try") 2>&5
40086   ac_status=$?
40087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40088   (exit $ac_status); }; }; then
40089   ac_cv_type_mbstate_t=yes
40090 else
40091   echo "$as_me: failed program was:" >&5
40092 sed 's/^/| /' conftest.$ac_ext >&5
40093
40094         ac_cv_type_mbstate_t=no
40095 fi
40096
40097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40098 fi
40099 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
40100 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
40101 if test $ac_cv_type_mbstate_t = yes; then
40102
40103 cat >>confdefs.h <<_ACEOF
40104 #define HAVE_MBSTATE_T 1
40105 _ACEOF
40106
40107
40108 for ac_func in wcsrtombs
40109 do
40110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40111 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40114   echo $ECHO_N "(cached) $ECHO_C" >&6
40115 else
40116   cat >conftest.$ac_ext <<_ACEOF
40117 /* confdefs.h.  */
40118 _ACEOF
40119 cat confdefs.h >>conftest.$ac_ext
40120 cat >>conftest.$ac_ext <<_ACEOF
40121 /* end confdefs.h.  */
40122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40124 #define $ac_func innocuous_$ac_func
40125
40126 /* System header to define __stub macros and hopefully few prototypes,
40127     which can conflict with char $ac_func (); below.
40128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40129     <limits.h> exists even on freestanding compilers.  */
40130
40131 #ifdef __STDC__
40132 # include <limits.h>
40133 #else
40134 # include <assert.h>
40135 #endif
40136
40137 #undef $ac_func
40138
40139 /* Override any GCC internal prototype to avoid an error.
40140    Use char because int might match the return type of a GCC
40141    builtin and then its argument prototype would still apply.  */
40142 #ifdef __cplusplus
40143 extern "C"
40144 #endif
40145 char $ac_func ();
40146 /* The GNU C library defines this for functions which it implements
40147     to always fail with ENOSYS.  Some functions are actually named
40148     something starting with __ and the normal name is an alias.  */
40149 #if defined __stub_$ac_func || defined __stub___$ac_func
40150 choke me
40151 #endif
40152
40153 int
40154 main ()
40155 {
40156 return $ac_func ();
40157   ;
40158   return 0;
40159 }
40160 _ACEOF
40161 rm -f conftest.$ac_objext conftest$ac_exeext
40162 if { (ac_try="$ac_link"
40163 case "(($ac_try" in
40164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40165   *) ac_try_echo=$ac_try;;
40166 esac
40167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40168   (eval "$ac_link") 2>conftest.er1
40169   ac_status=$?
40170   grep -v '^ *+' conftest.er1 >conftest.err
40171   rm -f conftest.er1
40172   cat conftest.err >&5
40173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174   (exit $ac_status); } &&
40175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40176   { (case "(($ac_try" in
40177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40178   *) ac_try_echo=$ac_try;;
40179 esac
40180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40181   (eval "$ac_try") 2>&5
40182   ac_status=$?
40183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184   (exit $ac_status); }; } &&
40185          { ac_try='test -s conftest$ac_exeext'
40186   { (case "(($ac_try" in
40187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40188   *) ac_try_echo=$ac_try;;
40189 esac
40190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40191   (eval "$ac_try") 2>&5
40192   ac_status=$?
40193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40194   (exit $ac_status); }; }; then
40195   eval "$as_ac_var=yes"
40196 else
40197   echo "$as_me: failed program was:" >&5
40198 sed 's/^/| /' conftest.$ac_ext >&5
40199
40200         eval "$as_ac_var=no"
40201 fi
40202
40203 rm -f core conftest.err conftest.$ac_objext \
40204       conftest$ac_exeext conftest.$ac_ext
40205 fi
40206 ac_res=`eval echo '${'$as_ac_var'}'`
40207                { echo "$as_me:$LINENO: result: $ac_res" >&5
40208 echo "${ECHO_T}$ac_res" >&6; }
40209 if test `eval echo '${'$as_ac_var'}'` = yes; then
40210   cat >>confdefs.h <<_ACEOF
40211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40212 _ACEOF
40213
40214 fi
40215 done
40216
40217 fi
40218
40219 else
40220     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
40221 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
40222 fi
40223
40224
40225
40226 for ac_func in snprintf vsnprintf
40227 do
40228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40232   echo $ECHO_N "(cached) $ECHO_C" >&6
40233 else
40234   cat >conftest.$ac_ext <<_ACEOF
40235 /* confdefs.h.  */
40236 _ACEOF
40237 cat confdefs.h >>conftest.$ac_ext
40238 cat >>conftest.$ac_ext <<_ACEOF
40239 /* end confdefs.h.  */
40240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40242 #define $ac_func innocuous_$ac_func
40243
40244 /* System header to define __stub macros and hopefully few prototypes,
40245     which can conflict with char $ac_func (); below.
40246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40247     <limits.h> exists even on freestanding compilers.  */
40248
40249 #ifdef __STDC__
40250 # include <limits.h>
40251 #else
40252 # include <assert.h>
40253 #endif
40254
40255 #undef $ac_func
40256
40257 /* Override any GCC internal prototype to avoid an error.
40258    Use char because int might match the return type of a GCC
40259    builtin and then its argument prototype would still apply.  */
40260 #ifdef __cplusplus
40261 extern "C"
40262 #endif
40263 char $ac_func ();
40264 /* The GNU C library defines this for functions which it implements
40265     to always fail with ENOSYS.  Some functions are actually named
40266     something starting with __ and the normal name is an alias.  */
40267 #if defined __stub_$ac_func || defined __stub___$ac_func
40268 choke me
40269 #endif
40270
40271 int
40272 main ()
40273 {
40274 return $ac_func ();
40275   ;
40276   return 0;
40277 }
40278 _ACEOF
40279 rm -f conftest.$ac_objext conftest$ac_exeext
40280 if { (ac_try="$ac_link"
40281 case "(($ac_try" in
40282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40283   *) ac_try_echo=$ac_try;;
40284 esac
40285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40286   (eval "$ac_link") 2>conftest.er1
40287   ac_status=$?
40288   grep -v '^ *+' conftest.er1 >conftest.err
40289   rm -f conftest.er1
40290   cat conftest.err >&5
40291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40292   (exit $ac_status); } &&
40293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40294   { (case "(($ac_try" in
40295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40296   *) ac_try_echo=$ac_try;;
40297 esac
40298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40299   (eval "$ac_try") 2>&5
40300   ac_status=$?
40301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40302   (exit $ac_status); }; } &&
40303          { ac_try='test -s conftest$ac_exeext'
40304   { (case "(($ac_try" in
40305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40306   *) ac_try_echo=$ac_try;;
40307 esac
40308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40309   (eval "$ac_try") 2>&5
40310   ac_status=$?
40311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40312   (exit $ac_status); }; }; then
40313   eval "$as_ac_var=yes"
40314 else
40315   echo "$as_me: failed program was:" >&5
40316 sed 's/^/| /' conftest.$ac_ext >&5
40317
40318         eval "$as_ac_var=no"
40319 fi
40320
40321 rm -f core conftest.err conftest.$ac_objext \
40322       conftest$ac_exeext conftest.$ac_ext
40323 fi
40324 ac_res=`eval echo '${'$as_ac_var'}'`
40325                { echo "$as_me:$LINENO: result: $ac_res" >&5
40326 echo "${ECHO_T}$ac_res" >&6; }
40327 if test `eval echo '${'$as_ac_var'}'` = yes; then
40328   cat >>confdefs.h <<_ACEOF
40329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40330 _ACEOF
40331
40332 fi
40333 done
40334
40335
40336 if test "$ac_cv_func_vsnprintf" = "yes"; then
40337         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
40338 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
40339 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
40340   echo $ECHO_N "(cached) $ECHO_C" >&6
40341 else
40342
40343                                                             cat >conftest.$ac_ext <<_ACEOF
40344 /* confdefs.h.  */
40345 _ACEOF
40346 cat confdefs.h >>conftest.$ac_ext
40347 cat >>conftest.$ac_ext <<_ACEOF
40348 /* end confdefs.h.  */
40349
40350                     #include <stdio.h>
40351                     #include <stdarg.h>
40352                     #ifdef __MSL__
40353                     #if __MSL__ >= 0x6000
40354                     namespace std {}
40355                     using namespace std;
40356                     #endif
40357                     #endif
40358
40359 int
40360 main ()
40361 {
40362
40363                     char *buf;
40364                     va_list ap;
40365                     vsnprintf(buf, 10u, "%s", ap);
40366
40367   ;
40368   return 0;
40369 }
40370 _ACEOF
40371 rm -f conftest.$ac_objext
40372 if { (ac_try="$ac_compile"
40373 case "(($ac_try" in
40374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40375   *) ac_try_echo=$ac_try;;
40376 esac
40377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40378   (eval "$ac_compile") 2>conftest.er1
40379   ac_status=$?
40380   grep -v '^ *+' conftest.er1 >conftest.err
40381   rm -f conftest.er1
40382   cat conftest.err >&5
40383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40384   (exit $ac_status); } &&
40385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40386   { (case "(($ac_try" in
40387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40388   *) ac_try_echo=$ac_try;;
40389 esac
40390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40391   (eval "$ac_try") 2>&5
40392   ac_status=$?
40393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40394   (exit $ac_status); }; } &&
40395          { ac_try='test -s conftest.$ac_objext'
40396   { (case "(($ac_try" in
40397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40398   *) ac_try_echo=$ac_try;;
40399 esac
40400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40401   (eval "$ac_try") 2>&5
40402   ac_status=$?
40403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40404   (exit $ac_status); }; }; then
40405   wx_cv_func_vsnprintf_decl=yes
40406 else
40407   echo "$as_me: failed program was:" >&5
40408 sed 's/^/| /' conftest.$ac_ext >&5
40409
40410         wx_cv_func_vsnprintf_decl=no
40411
40412 fi
40413
40414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40415
40416
40417 fi
40418 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
40419 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
40420
40421     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
40422         cat >>confdefs.h <<\_ACEOF
40423 #define HAVE_VSNPRINTF_DECL 1
40424 _ACEOF
40425
40426
40427                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
40428 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
40429 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
40430   echo $ECHO_N "(cached) $ECHO_C" >&6
40431 else
40432
40433                 cat >conftest.$ac_ext <<_ACEOF
40434 /* confdefs.h.  */
40435 _ACEOF
40436 cat confdefs.h >>conftest.$ac_ext
40437 cat >>conftest.$ac_ext <<_ACEOF
40438 /* end confdefs.h.  */
40439
40440                         #include <stdio.h>
40441                         #include <stdarg.h>
40442                         #ifdef __MSL__
40443                         #if __MSL__ >= 0x6000
40444                         namespace std {}
40445                         using namespace std;
40446                         #endif
40447                         #endif
40448
40449 int
40450 main ()
40451 {
40452
40453                         char *buf;
40454                         va_list ap;
40455                         const char *fmt = "%s";
40456                         vsnprintf(buf, 10u, fmt, ap);
40457
40458   ;
40459   return 0;
40460 }
40461 _ACEOF
40462 rm -f conftest.$ac_objext
40463 if { (ac_try="$ac_compile"
40464 case "(($ac_try" in
40465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40466   *) ac_try_echo=$ac_try;;
40467 esac
40468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40469   (eval "$ac_compile") 2>conftest.er1
40470   ac_status=$?
40471   grep -v '^ *+' conftest.er1 >conftest.err
40472   rm -f conftest.er1
40473   cat conftest.err >&5
40474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40475   (exit $ac_status); } &&
40476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40477   { (case "(($ac_try" in
40478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40479   *) ac_try_echo=$ac_try;;
40480 esac
40481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40482   (eval "$ac_try") 2>&5
40483   ac_status=$?
40484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485   (exit $ac_status); }; } &&
40486          { ac_try='test -s conftest.$ac_objext'
40487   { (case "(($ac_try" in
40488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40489   *) ac_try_echo=$ac_try;;
40490 esac
40491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40492   (eval "$ac_try") 2>&5
40493   ac_status=$?
40494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40495   (exit $ac_status); }; }; then
40496   wx_cv_func_broken_vsnprintf_decl=no
40497 else
40498   echo "$as_me: failed program was:" >&5
40499 sed 's/^/| /' conftest.$ac_ext >&5
40500
40501         wx_cv_func_broken_vsnprintf_decl=yes
40502
40503 fi
40504
40505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40506
40507
40508 fi
40509 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
40510 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
40511
40512         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
40513             cat >>confdefs.h <<\_ACEOF
40514 #define HAVE_BROKEN_VSNPRINTF_DECL 1
40515 _ACEOF
40516
40517         fi
40518     fi
40519 fi
40520
40521 if test "$ac_cv_func_snprintf" = "yes"; then
40522     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
40523 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
40524 if test "${wx_cv_func_snprintf_decl+set}" = set; then
40525   echo $ECHO_N "(cached) $ECHO_C" >&6
40526 else
40527
40528             cat >conftest.$ac_ext <<_ACEOF
40529 /* confdefs.h.  */
40530 _ACEOF
40531 cat confdefs.h >>conftest.$ac_ext
40532 cat >>conftest.$ac_ext <<_ACEOF
40533 /* end confdefs.h.  */
40534
40535                     #include <stdio.h>
40536                     #include <stdarg.h>
40537                     #ifdef __MSL__
40538                     #if __MSL__ >= 0x6000
40539                     namespace std {}
40540                     using namespace std;
40541                     #endif
40542                     #endif
40543
40544 int
40545 main ()
40546 {
40547
40548                     char *buf;
40549                     snprintf(buf, 10u, "%s", "wx");
40550
40551   ;
40552   return 0;
40553 }
40554 _ACEOF
40555 rm -f conftest.$ac_objext
40556 if { (ac_try="$ac_compile"
40557 case "(($ac_try" in
40558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40559   *) ac_try_echo=$ac_try;;
40560 esac
40561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40562   (eval "$ac_compile") 2>conftest.er1
40563   ac_status=$?
40564   grep -v '^ *+' conftest.er1 >conftest.err
40565   rm -f conftest.er1
40566   cat conftest.err >&5
40567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40568   (exit $ac_status); } &&
40569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40570   { (case "(($ac_try" in
40571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40572   *) ac_try_echo=$ac_try;;
40573 esac
40574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40575   (eval "$ac_try") 2>&5
40576   ac_status=$?
40577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40578   (exit $ac_status); }; } &&
40579          { ac_try='test -s conftest.$ac_objext'
40580   { (case "(($ac_try" in
40581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40582   *) ac_try_echo=$ac_try;;
40583 esac
40584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40585   (eval "$ac_try") 2>&5
40586   ac_status=$?
40587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40588   (exit $ac_status); }; }; then
40589   wx_cv_func_snprintf_decl=yes
40590 else
40591   echo "$as_me: failed program was:" >&5
40592 sed 's/^/| /' conftest.$ac_ext >&5
40593
40594         wx_cv_func_snprintf_decl=no
40595
40596 fi
40597
40598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40599
40600
40601 fi
40602 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
40603 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
40604
40605     if test "$wx_cv_func_snprintf_decl" = "yes"; then
40606         cat >>confdefs.h <<\_ACEOF
40607 #define HAVE_SNPRINTF_DECL 1
40608 _ACEOF
40609
40610
40611                         { echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
40612 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6; }
40613 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
40614   echo $ECHO_N "(cached) $ECHO_C" >&6
40615 else
40616
40617                 cat >conftest.$ac_ext <<_ACEOF
40618 /* confdefs.h.  */
40619 _ACEOF
40620 cat confdefs.h >>conftest.$ac_ext
40621 cat >>conftest.$ac_ext <<_ACEOF
40622 /* end confdefs.h.  */
40623
40624                         #include <stdio.h>
40625                         #include <stdarg.h>
40626                         #ifdef __MSL__
40627                         #if __MSL__ >= 0x6000
40628                         namespace std {}
40629                         using namespace std;
40630                         #endif
40631                         #endif
40632
40633 int
40634 main ()
40635 {
40636
40637                         char *buf;
40638                         const char *fmt = "%s";
40639                         snprintf(buf, 10u, fmt, "wx");
40640
40641   ;
40642   return 0;
40643 }
40644 _ACEOF
40645 rm -f conftest.$ac_objext
40646 if { (ac_try="$ac_compile"
40647 case "(($ac_try" in
40648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40649   *) ac_try_echo=$ac_try;;
40650 esac
40651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40652   (eval "$ac_compile") 2>conftest.er1
40653   ac_status=$?
40654   grep -v '^ *+' conftest.er1 >conftest.err
40655   rm -f conftest.er1
40656   cat conftest.err >&5
40657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40658   (exit $ac_status); } &&
40659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40660   { (case "(($ac_try" in
40661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40662   *) ac_try_echo=$ac_try;;
40663 esac
40664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40665   (eval "$ac_try") 2>&5
40666   ac_status=$?
40667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40668   (exit $ac_status); }; } &&
40669          { ac_try='test -s conftest.$ac_objext'
40670   { (case "(($ac_try" in
40671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40672   *) ac_try_echo=$ac_try;;
40673 esac
40674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40675   (eval "$ac_try") 2>&5
40676   ac_status=$?
40677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40678   (exit $ac_status); }; }; then
40679   wx_cv_func_broken_snprintf_decl=no
40680 else
40681   echo "$as_me: failed program was:" >&5
40682 sed 's/^/| /' conftest.$ac_ext >&5
40683
40684         wx_cv_func_broken_snprintf_decl=yes
40685
40686 fi
40687
40688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40689
40690
40691 fi
40692 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
40693 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6; }
40694
40695         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
40696             cat >>confdefs.h <<\_ACEOF
40697 #define HAVE_BROKEN_SNPRINTF_DECL 1
40698 _ACEOF
40699
40700         fi
40701     fi
40702
40703     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
40704
40705                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
40706 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
40707 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
40708   echo $ECHO_N "(cached) $ECHO_C" >&6
40709 else
40710
40711                 if test "$cross_compiling" = yes; then
40712
40713                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
40714 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
40715 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
40716 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
40717                         wx_cv_func_snprintf_pos_params=no
40718
40719
40720 else
40721   cat >conftest.$ac_ext <<_ACEOF
40722 /* confdefs.h.  */
40723 _ACEOF
40724 cat confdefs.h >>conftest.$ac_ext
40725 cat >>conftest.$ac_ext <<_ACEOF
40726 /* end confdefs.h.  */
40727
40728                         #include <stdio.h>
40729
40730                         int main (void)
40731                         {
40732                             char buffer[128];
40733                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
40734                             if (strcmp ("2 3 1", buffer) == 0)
40735                                 exit (0);
40736                             exit (1);
40737                         }
40738
40739 _ACEOF
40740 rm -f conftest$ac_exeext
40741 if { (ac_try="$ac_link"
40742 case "(($ac_try" in
40743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40744   *) ac_try_echo=$ac_try;;
40745 esac
40746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40747   (eval "$ac_link") 2>&5
40748   ac_status=$?
40749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40750   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40751   { (case "(($ac_try" in
40752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40753   *) ac_try_echo=$ac_try;;
40754 esac
40755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40756   (eval "$ac_try") 2>&5
40757   ac_status=$?
40758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40759   (exit $ac_status); }; }; then
40760   wx_cv_func_snprintf_pos_params=no
40761 else
40762   echo "$as_me: program exited with status $ac_status" >&5
40763 echo "$as_me: failed program was:" >&5
40764 sed 's/^/| /' conftest.$ac_ext >&5
40765
40766 ( exit $ac_status )
40767 wx_cv_func_snprintf_pos_params=yes
40768 fi
40769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40770 fi
40771
40772
40773
40774
40775 fi
40776 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
40777 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
40778
40779         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
40780             cat >>confdefs.h <<\_ACEOF
40781 #define HAVE_UNIX98_PRINTF 1
40782 _ACEOF
40783
40784         fi
40785     fi
40786 fi
40787
40788 if test "$wxUSE_UNICODE" = yes; then
40789
40790
40791 for ac_func in swprintf
40792 do
40793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40797   echo $ECHO_N "(cached) $ECHO_C" >&6
40798 else
40799   cat >conftest.$ac_ext <<_ACEOF
40800 /* confdefs.h.  */
40801 _ACEOF
40802 cat confdefs.h >>conftest.$ac_ext
40803 cat >>conftest.$ac_ext <<_ACEOF
40804 /* end confdefs.h.  */
40805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40807 #define $ac_func innocuous_$ac_func
40808
40809 /* System header to define __stub macros and hopefully few prototypes,
40810     which can conflict with char $ac_func (); below.
40811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40812     <limits.h> exists even on freestanding compilers.  */
40813
40814 #ifdef __STDC__
40815 # include <limits.h>
40816 #else
40817 # include <assert.h>
40818 #endif
40819
40820 #undef $ac_func
40821
40822 /* Override any GCC internal prototype to avoid an error.
40823    Use char because int might match the return type of a GCC
40824    builtin and then its argument prototype would still apply.  */
40825 #ifdef __cplusplus
40826 extern "C"
40827 #endif
40828 char $ac_func ();
40829 /* The GNU C library defines this for functions which it implements
40830     to always fail with ENOSYS.  Some functions are actually named
40831     something starting with __ and the normal name is an alias.  */
40832 #if defined __stub_$ac_func || defined __stub___$ac_func
40833 choke me
40834 #endif
40835
40836 int
40837 main ()
40838 {
40839 return $ac_func ();
40840   ;
40841   return 0;
40842 }
40843 _ACEOF
40844 rm -f conftest.$ac_objext conftest$ac_exeext
40845 if { (ac_try="$ac_link"
40846 case "(($ac_try" in
40847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40848   *) ac_try_echo=$ac_try;;
40849 esac
40850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40851   (eval "$ac_link") 2>conftest.er1
40852   ac_status=$?
40853   grep -v '^ *+' conftest.er1 >conftest.err
40854   rm -f conftest.er1
40855   cat conftest.err >&5
40856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40857   (exit $ac_status); } &&
40858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40859   { (case "(($ac_try" in
40860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40861   *) ac_try_echo=$ac_try;;
40862 esac
40863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40864   (eval "$ac_try") 2>&5
40865   ac_status=$?
40866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40867   (exit $ac_status); }; } &&
40868          { ac_try='test -s conftest$ac_exeext'
40869   { (case "(($ac_try" in
40870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40871   *) ac_try_echo=$ac_try;;
40872 esac
40873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40874   (eval "$ac_try") 2>&5
40875   ac_status=$?
40876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40877   (exit $ac_status); }; }; then
40878   eval "$as_ac_var=yes"
40879 else
40880   echo "$as_me: failed program was:" >&5
40881 sed 's/^/| /' conftest.$ac_ext >&5
40882
40883         eval "$as_ac_var=no"
40884 fi
40885
40886 rm -f core conftest.err conftest.$ac_objext \
40887       conftest$ac_exeext conftest.$ac_ext
40888 fi
40889 ac_res=`eval echo '${'$as_ac_var'}'`
40890                { echo "$as_me:$LINENO: result: $ac_res" >&5
40891 echo "${ECHO_T}$ac_res" >&6; }
40892 if test `eval echo '${'$as_ac_var'}'` = yes; then
40893   cat >>confdefs.h <<_ACEOF
40894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40895 _ACEOF
40896
40897 fi
40898 done
40899
40900
40901     if test "$ac_cv_func_swprintf" = "yes"; then
40902         { echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
40903 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6; }
40904 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
40905   echo $ECHO_N "(cached) $ECHO_C" >&6
40906 else
40907
40908                 cat >conftest.$ac_ext <<_ACEOF
40909 /* confdefs.h.  */
40910 _ACEOF
40911 cat confdefs.h >>conftest.$ac_ext
40912 cat >>conftest.$ac_ext <<_ACEOF
40913 /* end confdefs.h.  */
40914
40915                         #include <stdio.h>
40916                         #include <stdarg.h>
40917                         #include <wchar.h>
40918
40919 int
40920 main ()
40921 {
40922
40923                         wchar_t *buf;
40924                         const wchar_t *fmt = L"test";
40925                         swprintf(buf, 10u, fmt);
40926
40927   ;
40928   return 0;
40929 }
40930 _ACEOF
40931 rm -f conftest.$ac_objext
40932 if { (ac_try="$ac_compile"
40933 case "(($ac_try" in
40934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40935   *) ac_try_echo=$ac_try;;
40936 esac
40937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40938   (eval "$ac_compile") 2>conftest.er1
40939   ac_status=$?
40940   grep -v '^ *+' conftest.er1 >conftest.err
40941   rm -f conftest.er1
40942   cat conftest.err >&5
40943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40944   (exit $ac_status); } &&
40945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
40946   { (case "(($ac_try" in
40947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40948   *) ac_try_echo=$ac_try;;
40949 esac
40950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40951   (eval "$ac_try") 2>&5
40952   ac_status=$?
40953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40954   (exit $ac_status); }; } &&
40955          { ac_try='test -s conftest.$ac_objext'
40956   { (case "(($ac_try" in
40957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40958   *) ac_try_echo=$ac_try;;
40959 esac
40960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40961   (eval "$ac_try") 2>&5
40962   ac_status=$?
40963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964   (exit $ac_status); }; }; then
40965   wx_cv_func_broken_swprintf_decl=no
40966 else
40967   echo "$as_me: failed program was:" >&5
40968 sed 's/^/| /' conftest.$ac_ext >&5
40969
40970         wx_cv_func_broken_swprintf_decl=yes
40971
40972 fi
40973
40974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40975
40976
40977 fi
40978 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
40979 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6; }
40980
40981         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
40982             cat >>confdefs.h <<\_ACEOF
40983 #define HAVE_BROKEN_SWPRINTF_DECL 1
40984 _ACEOF
40985
40986         fi
40987     fi
40988
40989             wchar_headers="#include <stdio.h>
40990 #include <wchar.h>"
40991     case "${host}" in
40992         *-*-solaris2* )
40993
40994 for ac_header in widec.h
40995 do
40996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40998   { echo "$as_me:$LINENO: checking for $ac_header" >&5
40999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41001   echo $ECHO_N "(cached) $ECHO_C" >&6
41002 fi
41003 ac_res=`eval echo '${'$as_ac_Header'}'`
41004                { echo "$as_me:$LINENO: result: $ac_res" >&5
41005 echo "${ECHO_T}$ac_res" >&6; }
41006 else
41007   # Is the header compilable?
41008 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
41009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
41010 cat >conftest.$ac_ext <<_ACEOF
41011 /* confdefs.h.  */
41012 _ACEOF
41013 cat confdefs.h >>conftest.$ac_ext
41014 cat >>conftest.$ac_ext <<_ACEOF
41015 /* end confdefs.h.  */
41016 $ac_includes_default
41017 #include <$ac_header>
41018 _ACEOF
41019 rm -f conftest.$ac_objext
41020 if { (ac_try="$ac_compile"
41021 case "(($ac_try" in
41022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41023   *) ac_try_echo=$ac_try;;
41024 esac
41025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41026   (eval "$ac_compile") 2>conftest.er1
41027   ac_status=$?
41028   grep -v '^ *+' conftest.er1 >conftest.err
41029   rm -f conftest.er1
41030   cat conftest.err >&5
41031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41032   (exit $ac_status); } &&
41033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41034   { (case "(($ac_try" in
41035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41036   *) ac_try_echo=$ac_try;;
41037 esac
41038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41039   (eval "$ac_try") 2>&5
41040   ac_status=$?
41041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41042   (exit $ac_status); }; } &&
41043          { ac_try='test -s conftest.$ac_objext'
41044   { (case "(($ac_try" in
41045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41046   *) ac_try_echo=$ac_try;;
41047 esac
41048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41049   (eval "$ac_try") 2>&5
41050   ac_status=$?
41051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41052   (exit $ac_status); }; }; then
41053   ac_header_compiler=yes
41054 else
41055   echo "$as_me: failed program was:" >&5
41056 sed 's/^/| /' conftest.$ac_ext >&5
41057
41058         ac_header_compiler=no
41059 fi
41060
41061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41062 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41063 echo "${ECHO_T}$ac_header_compiler" >&6; }
41064
41065 # Is the header present?
41066 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
41067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
41068 cat >conftest.$ac_ext <<_ACEOF
41069 /* confdefs.h.  */
41070 _ACEOF
41071 cat confdefs.h >>conftest.$ac_ext
41072 cat >>conftest.$ac_ext <<_ACEOF
41073 /* end confdefs.h.  */
41074 #include <$ac_header>
41075 _ACEOF
41076 if { (ac_try="$ac_cpp conftest.$ac_ext"
41077 case "(($ac_try" in
41078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41079   *) ac_try_echo=$ac_try;;
41080 esac
41081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41082   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41083   ac_status=$?
41084   grep -v '^ *+' conftest.er1 >conftest.err
41085   rm -f conftest.er1
41086   cat conftest.err >&5
41087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41088   (exit $ac_status); } >/dev/null; then
41089   if test -s conftest.err; then
41090     ac_cpp_err=$ac_c_preproc_warn_flag
41091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41092   else
41093     ac_cpp_err=
41094   fi
41095 else
41096   ac_cpp_err=yes
41097 fi
41098 if test -z "$ac_cpp_err"; then
41099   ac_header_preproc=yes
41100 else
41101   echo "$as_me: failed program was:" >&5
41102 sed 's/^/| /' conftest.$ac_ext >&5
41103
41104   ac_header_preproc=no
41105 fi
41106
41107 rm -f conftest.err conftest.$ac_ext
41108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41109 echo "${ECHO_T}$ac_header_preproc" >&6; }
41110
41111 # So?  What about this header?
41112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41113   yes:no: )
41114     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41116     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41118     ac_header_preproc=yes
41119     ;;
41120   no:yes:* )
41121     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41123     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41124 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41125     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41127     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41128 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41131     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41133     ( cat <<\_ASBOX
41134 ## ----------------------------------------- ##
41135 ## Report this to wx-dev@lists.wxwidgets.org ##
41136 ## ----------------------------------------- ##
41137 _ASBOX
41138      ) | sed "s/^/$as_me: WARNING:     /" >&2
41139     ;;
41140 esac
41141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41144   echo $ECHO_N "(cached) $ECHO_C" >&6
41145 else
41146   eval "$as_ac_Header=\$ac_header_preproc"
41147 fi
41148 ac_res=`eval echo '${'$as_ac_Header'}'`
41149                { echo "$as_me:$LINENO: result: $ac_res" >&5
41150 echo "${ECHO_T}$ac_res" >&6; }
41151
41152 fi
41153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41154   cat >>confdefs.h <<_ACEOF
41155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41156 _ACEOF
41157
41158 fi
41159
41160 done
41161
41162             if test "$ac_cv_header_widec_h" = "yes"; then
41163                 wchar_headers="$wchar_headers
41164 #include <widec.h>"
41165             fi
41166     esac
41167
41168
41169   for wx_func in wputc wputchar putws fputws wprintf vswprintf
41170   do
41171     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41172 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41173 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41174   echo $ECHO_N "(cached) $ECHO_C" >&6
41175 else
41176
41177         cat >conftest.$ac_ext <<_ACEOF
41178
41179             /* confdefs.h.  */
41180 _ACEOF
41181 cat confdefs.h >>conftest.$ac_ext
41182 cat >>conftest.$ac_ext <<_ACEOF
41183 /* end confdefs.h.  */
41184
41185                 $wchar_headers
41186                 $ac_includes_default
41187
41188 int
41189 main ()
41190 {
41191
41192                 #ifndef $wx_func
41193                   &$wx_func;
41194                 #endif
41195
41196
41197   ;
41198   return 0;
41199 }
41200
41201 _ACEOF
41202 rm -f conftest.$ac_objext conftest$ac_exeext
41203 if { (ac_try="$ac_link"
41204 case "(($ac_try" in
41205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41206   *) ac_try_echo=$ac_try;;
41207 esac
41208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41209   (eval "$ac_link") 2>conftest.er1
41210   ac_status=$?
41211   grep -v '^ *+' conftest.er1 >conftest.err
41212   rm -f conftest.er1
41213   cat conftest.err >&5
41214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41215   (exit $ac_status); } &&
41216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41217   { (case "(($ac_try" in
41218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41219   *) ac_try_echo=$ac_try;;
41220 esac
41221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41222   (eval "$ac_try") 2>&5
41223   ac_status=$?
41224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41225   (exit $ac_status); }; } &&
41226          { ac_try='test -s conftest$ac_exeext'
41227   { (case "(($ac_try" in
41228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41229   *) ac_try_echo=$ac_try;;
41230 esac
41231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41232   (eval "$ac_try") 2>&5
41233   ac_status=$?
41234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41235   (exit $ac_status); }; }; then
41236   eval wx_cv_func_$wx_func=yes
41237 else
41238   echo "$as_me: failed program was:" >&5
41239 sed 's/^/| /' conftest.$ac_ext >&5
41240
41241         eval wx_cv_func_$wx_func=no
41242 fi
41243
41244 rm -f core conftest.err conftest.$ac_objext \
41245       conftest$ac_exeext conftest.$ac_ext
41246
41247 fi
41248 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41249                { echo "$as_me:$LINENO: result: $ac_res" >&5
41250 echo "${ECHO_T}$ac_res" >&6; }
41251
41252     if eval test \$wx_cv_func_$wx_func = yes
41253     then
41254       cat >>confdefs.h <<_ACEOF
41255 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41256 _ACEOF
41257
41258
41259     else
41260       :
41261
41262     fi
41263   done
41264
41265
41266                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
41267 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
41268     cat >conftest.$ac_ext <<_ACEOF
41269 /* confdefs.h.  */
41270 _ACEOF
41271 cat confdefs.h >>conftest.$ac_ext
41272 cat >>conftest.$ac_ext <<_ACEOF
41273 /* end confdefs.h.  */
41274 #include <wchar.h>
41275 int
41276 main ()
41277 {
41278 &_vsnwprintf;
41279   ;
41280   return 0;
41281 }
41282 _ACEOF
41283 rm -f conftest.$ac_objext
41284 if { (ac_try="$ac_compile"
41285 case "(($ac_try" in
41286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41287   *) ac_try_echo=$ac_try;;
41288 esac
41289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41290   (eval "$ac_compile") 2>conftest.er1
41291   ac_status=$?
41292   grep -v '^ *+' conftest.er1 >conftest.err
41293   rm -f conftest.er1
41294   cat conftest.err >&5
41295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41296   (exit $ac_status); } &&
41297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41298   { (case "(($ac_try" in
41299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41300   *) ac_try_echo=$ac_try;;
41301 esac
41302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41303   (eval "$ac_try") 2>&5
41304   ac_status=$?
41305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41306   (exit $ac_status); }; } &&
41307          { ac_try='test -s conftest.$ac_objext'
41308   { (case "(($ac_try" in
41309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41310   *) ac_try_echo=$ac_try;;
41311 esac
41312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41313   (eval "$ac_try") 2>&5
41314   ac_status=$?
41315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41316   (exit $ac_status); }; }; then
41317   { echo "$as_me:$LINENO: result: yes" >&5
41318 echo "${ECHO_T}yes" >&6; }
41319                     cat >>confdefs.h <<\_ACEOF
41320 #define HAVE__VSNWPRINTF 1
41321 _ACEOF
41322
41323 else
41324   echo "$as_me: failed program was:" >&5
41325 sed 's/^/| /' conftest.$ac_ext >&5
41326
41327         { echo "$as_me:$LINENO: result: no" >&5
41328 echo "${ECHO_T}no" >&6; }
41329 fi
41330
41331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
41332 fi
41333
41334 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
41335
41336   for wx_func in fnmatch
41337   do
41338     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41339 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41340 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41341   echo $ECHO_N "(cached) $ECHO_C" >&6
41342 else
41343
41344         cat >conftest.$ac_ext <<_ACEOF
41345
41346             /* confdefs.h.  */
41347 _ACEOF
41348 cat confdefs.h >>conftest.$ac_ext
41349 cat >>conftest.$ac_ext <<_ACEOF
41350 /* end confdefs.h.  */
41351
41352                 #include <fnmatch.h>
41353                 $ac_includes_default
41354
41355 int
41356 main ()
41357 {
41358
41359                 #ifndef $wx_func
41360                   &$wx_func;
41361                 #endif
41362
41363
41364   ;
41365   return 0;
41366 }
41367
41368 _ACEOF
41369 rm -f conftest.$ac_objext conftest$ac_exeext
41370 if { (ac_try="$ac_link"
41371 case "(($ac_try" in
41372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41373   *) ac_try_echo=$ac_try;;
41374 esac
41375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41376   (eval "$ac_link") 2>conftest.er1
41377   ac_status=$?
41378   grep -v '^ *+' conftest.er1 >conftest.err
41379   rm -f conftest.er1
41380   cat conftest.err >&5
41381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41382   (exit $ac_status); } &&
41383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41384   { (case "(($ac_try" in
41385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41386   *) ac_try_echo=$ac_try;;
41387 esac
41388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41389   (eval "$ac_try") 2>&5
41390   ac_status=$?
41391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41392   (exit $ac_status); }; } &&
41393          { ac_try='test -s conftest$ac_exeext'
41394   { (case "(($ac_try" in
41395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41396   *) ac_try_echo=$ac_try;;
41397 esac
41398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41399   (eval "$ac_try") 2>&5
41400   ac_status=$?
41401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41402   (exit $ac_status); }; }; then
41403   eval wx_cv_func_$wx_func=yes
41404 else
41405   echo "$as_me: failed program was:" >&5
41406 sed 's/^/| /' conftest.$ac_ext >&5
41407
41408         eval wx_cv_func_$wx_func=no
41409 fi
41410
41411 rm -f core conftest.err conftest.$ac_objext \
41412       conftest$ac_exeext conftest.$ac_ext
41413
41414 fi
41415 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41416                { echo "$as_me:$LINENO: result: $ac_res" >&5
41417 echo "${ECHO_T}$ac_res" >&6; }
41418
41419     if eval test \$wx_cv_func_$wx_func = yes
41420     then
41421       cat >>confdefs.h <<_ACEOF
41422 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41423 _ACEOF
41424
41425
41426     else
41427       :
41428
41429     fi
41430   done
41431
41432 fi
41433
41434 if test "$wxUSE_FILE" = "yes"; then
41435
41436   for wx_func in fsync
41437   do
41438     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41439 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41440 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41441   echo $ECHO_N "(cached) $ECHO_C" >&6
41442 else
41443
41444         cat >conftest.$ac_ext <<_ACEOF
41445
41446             /* confdefs.h.  */
41447 _ACEOF
41448 cat confdefs.h >>conftest.$ac_ext
41449 cat >>conftest.$ac_ext <<_ACEOF
41450 /* end confdefs.h.  */
41451
41452
41453                 $ac_includes_default
41454
41455 int
41456 main ()
41457 {
41458
41459                 #ifndef $wx_func
41460                   &$wx_func;
41461                 #endif
41462
41463
41464   ;
41465   return 0;
41466 }
41467
41468 _ACEOF
41469 rm -f conftest.$ac_objext conftest$ac_exeext
41470 if { (ac_try="$ac_link"
41471 case "(($ac_try" in
41472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41473   *) ac_try_echo=$ac_try;;
41474 esac
41475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41476   (eval "$ac_link") 2>conftest.er1
41477   ac_status=$?
41478   grep -v '^ *+' conftest.er1 >conftest.err
41479   rm -f conftest.er1
41480   cat conftest.err >&5
41481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482   (exit $ac_status); } &&
41483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41484   { (case "(($ac_try" in
41485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41486   *) ac_try_echo=$ac_try;;
41487 esac
41488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41489   (eval "$ac_try") 2>&5
41490   ac_status=$?
41491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41492   (exit $ac_status); }; } &&
41493          { ac_try='test -s conftest$ac_exeext'
41494   { (case "(($ac_try" in
41495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41496   *) ac_try_echo=$ac_try;;
41497 esac
41498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41499   (eval "$ac_try") 2>&5
41500   ac_status=$?
41501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41502   (exit $ac_status); }; }; then
41503   eval wx_cv_func_$wx_func=yes
41504 else
41505   echo "$as_me: failed program was:" >&5
41506 sed 's/^/| /' conftest.$ac_ext >&5
41507
41508         eval wx_cv_func_$wx_func=no
41509 fi
41510
41511 rm -f core conftest.err conftest.$ac_objext \
41512       conftest$ac_exeext conftest.$ac_ext
41513
41514 fi
41515 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41516                { echo "$as_me:$LINENO: result: $ac_res" >&5
41517 echo "${ECHO_T}$ac_res" >&6; }
41518
41519     if eval test \$wx_cv_func_$wx_func = yes
41520     then
41521       cat >>confdefs.h <<_ACEOF
41522 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41523 _ACEOF
41524
41525
41526     else
41527       :
41528
41529     fi
41530   done
41531
41532 fi
41533
41534
41535   for wx_func in round
41536   do
41537     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41538 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41539 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41540   echo $ECHO_N "(cached) $ECHO_C" >&6
41541 else
41542
41543         cat >conftest.$ac_ext <<_ACEOF
41544
41545             /* confdefs.h.  */
41546 _ACEOF
41547 cat confdefs.h >>conftest.$ac_ext
41548 cat >>conftest.$ac_ext <<_ACEOF
41549 /* end confdefs.h.  */
41550
41551                 #include <math.h>
41552                 $ac_includes_default
41553
41554 int
41555 main ()
41556 {
41557
41558                 #ifndef $wx_func
41559                   &$wx_func;
41560                 #endif
41561
41562
41563   ;
41564   return 0;
41565 }
41566
41567 _ACEOF
41568 rm -f conftest.$ac_objext conftest$ac_exeext
41569 if { (ac_try="$ac_link"
41570 case "(($ac_try" in
41571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41572   *) ac_try_echo=$ac_try;;
41573 esac
41574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41575   (eval "$ac_link") 2>conftest.er1
41576   ac_status=$?
41577   grep -v '^ *+' conftest.er1 >conftest.err
41578   rm -f conftest.er1
41579   cat conftest.err >&5
41580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41581   (exit $ac_status); } &&
41582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41583   { (case "(($ac_try" in
41584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41585   *) ac_try_echo=$ac_try;;
41586 esac
41587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41588   (eval "$ac_try") 2>&5
41589   ac_status=$?
41590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41591   (exit $ac_status); }; } &&
41592          { ac_try='test -s conftest$ac_exeext'
41593   { (case "(($ac_try" in
41594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41595   *) ac_try_echo=$ac_try;;
41596 esac
41597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41598   (eval "$ac_try") 2>&5
41599   ac_status=$?
41600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41601   (exit $ac_status); }; }; then
41602   eval wx_cv_func_$wx_func=yes
41603 else
41604   echo "$as_me: failed program was:" >&5
41605 sed 's/^/| /' conftest.$ac_ext >&5
41606
41607         eval wx_cv_func_$wx_func=no
41608 fi
41609
41610 rm -f core conftest.err conftest.$ac_objext \
41611       conftest$ac_exeext conftest.$ac_ext
41612
41613 fi
41614 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41615                { echo "$as_me:$LINENO: result: $ac_res" >&5
41616 echo "${ECHO_T}$ac_res" >&6; }
41617
41618     if eval test \$wx_cv_func_$wx_func = yes
41619     then
41620       cat >>confdefs.h <<_ACEOF
41621 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41622 _ACEOF
41623
41624
41625     else
41626       :
41627
41628     fi
41629   done
41630
41631
41632 if test "$TOOLKIT" != "MSW"; then
41633
41634
41635
41636
41637
41638 # Check whether --with-libiconv-prefix was given.
41639 if test "${with_libiconv_prefix+set}" = set; then
41640   withval=$with_libiconv_prefix;
41641     for dir in `echo "$withval" | tr : ' '`; do
41642       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
41643       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
41644     done
41645
41646 fi
41647
41648
41649   { echo "$as_me:$LINENO: checking for iconv" >&5
41650 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
41651 if test "${am_cv_func_iconv+set}" = set; then
41652   echo $ECHO_N "(cached) $ECHO_C" >&6
41653 else
41654
41655     am_cv_func_iconv="no, consider installing GNU libiconv"
41656     am_cv_lib_iconv=no
41657     cat >conftest.$ac_ext <<_ACEOF
41658 /* confdefs.h.  */
41659 _ACEOF
41660 cat confdefs.h >>conftest.$ac_ext
41661 cat >>conftest.$ac_ext <<_ACEOF
41662 /* end confdefs.h.  */
41663 #include <stdlib.h>
41664 #include <iconv.h>
41665 int
41666 main ()
41667 {
41668 iconv_t cd = iconv_open("","");
41669        iconv(cd,NULL,NULL,NULL,NULL);
41670        iconv_close(cd);
41671   ;
41672   return 0;
41673 }
41674 _ACEOF
41675 rm -f conftest.$ac_objext conftest$ac_exeext
41676 if { (ac_try="$ac_link"
41677 case "(($ac_try" in
41678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41679   *) ac_try_echo=$ac_try;;
41680 esac
41681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41682   (eval "$ac_link") 2>conftest.er1
41683   ac_status=$?
41684   grep -v '^ *+' conftest.er1 >conftest.err
41685   rm -f conftest.er1
41686   cat conftest.err >&5
41687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41688   (exit $ac_status); } &&
41689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41690   { (case "(($ac_try" in
41691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41692   *) ac_try_echo=$ac_try;;
41693 esac
41694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41695   (eval "$ac_try") 2>&5
41696   ac_status=$?
41697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41698   (exit $ac_status); }; } &&
41699          { ac_try='test -s conftest$ac_exeext'
41700   { (case "(($ac_try" in
41701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41702   *) ac_try_echo=$ac_try;;
41703 esac
41704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41705   (eval "$ac_try") 2>&5
41706   ac_status=$?
41707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41708   (exit $ac_status); }; }; then
41709   am_cv_func_iconv=yes
41710 else
41711   echo "$as_me: failed program was:" >&5
41712 sed 's/^/| /' conftest.$ac_ext >&5
41713
41714
41715 fi
41716
41717 rm -f core conftest.err conftest.$ac_objext \
41718       conftest$ac_exeext conftest.$ac_ext
41719     if test "$am_cv_func_iconv" != yes; then
41720       am_save_LIBS="$LIBS"
41721       LIBS="$LIBS -liconv"
41722       cat >conftest.$ac_ext <<_ACEOF
41723 /* confdefs.h.  */
41724 _ACEOF
41725 cat confdefs.h >>conftest.$ac_ext
41726 cat >>conftest.$ac_ext <<_ACEOF
41727 /* end confdefs.h.  */
41728 #include <stdlib.h>
41729 #include <iconv.h>
41730 int
41731 main ()
41732 {
41733 iconv_t cd = iconv_open("","");
41734          iconv(cd,NULL,NULL,NULL,NULL);
41735          iconv_close(cd);
41736   ;
41737   return 0;
41738 }
41739 _ACEOF
41740 rm -f conftest.$ac_objext conftest$ac_exeext
41741 if { (ac_try="$ac_link"
41742 case "(($ac_try" in
41743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41744   *) ac_try_echo=$ac_try;;
41745 esac
41746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41747   (eval "$ac_link") 2>conftest.er1
41748   ac_status=$?
41749   grep -v '^ *+' conftest.er1 >conftest.err
41750   rm -f conftest.er1
41751   cat conftest.err >&5
41752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41753   (exit $ac_status); } &&
41754          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41755   { (case "(($ac_try" in
41756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41757   *) ac_try_echo=$ac_try;;
41758 esac
41759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41760   (eval "$ac_try") 2>&5
41761   ac_status=$?
41762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41763   (exit $ac_status); }; } &&
41764          { ac_try='test -s conftest$ac_exeext'
41765   { (case "(($ac_try" in
41766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41767   *) ac_try_echo=$ac_try;;
41768 esac
41769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41770   (eval "$ac_try") 2>&5
41771   ac_status=$?
41772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41773   (exit $ac_status); }; }; then
41774   am_cv_lib_iconv=yes
41775         am_cv_func_iconv=yes
41776 else
41777   echo "$as_me: failed program was:" >&5
41778 sed 's/^/| /' conftest.$ac_ext >&5
41779
41780
41781 fi
41782
41783 rm -f core conftest.err conftest.$ac_objext \
41784       conftest$ac_exeext conftest.$ac_ext
41785       LIBS="$am_save_LIBS"
41786     fi
41787
41788 fi
41789 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
41790 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
41791   if test "$am_cv_func_iconv" = yes; then
41792
41793 cat >>confdefs.h <<\_ACEOF
41794 #define HAVE_ICONV 1
41795 _ACEOF
41796
41797     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
41798 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
41799 if test "${wx_cv_func_iconv_const+set}" = set; then
41800   echo $ECHO_N "(cached) $ECHO_C" >&6
41801 else
41802   cat >conftest.$ac_ext <<_ACEOF
41803 /* confdefs.h.  */
41804 _ACEOF
41805 cat confdefs.h >>conftest.$ac_ext
41806 cat >>conftest.$ac_ext <<_ACEOF
41807 /* end confdefs.h.  */
41808
41809 #include <stdlib.h>
41810 #include <iconv.h>
41811 extern
41812 #ifdef __cplusplus
41813 "C"
41814 #endif
41815 #if defined(__STDC__) || defined(__cplusplus)
41816 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
41817 #else
41818 size_t iconv();
41819 #endif
41820
41821 int
41822 main ()
41823 {
41824
41825   ;
41826   return 0;
41827 }
41828 _ACEOF
41829 rm -f conftest.$ac_objext
41830 if { (ac_try="$ac_compile"
41831 case "(($ac_try" in
41832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41833   *) ac_try_echo=$ac_try;;
41834 esac
41835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41836   (eval "$ac_compile") 2>conftest.er1
41837   ac_status=$?
41838   grep -v '^ *+' conftest.er1 >conftest.err
41839   rm -f conftest.er1
41840   cat conftest.err >&5
41841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41842   (exit $ac_status); } &&
41843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41844   { (case "(($ac_try" in
41845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41846   *) ac_try_echo=$ac_try;;
41847 esac
41848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41849   (eval "$ac_try") 2>&5
41850   ac_status=$?
41851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41852   (exit $ac_status); }; } &&
41853          { ac_try='test -s conftest.$ac_objext'
41854   { (case "(($ac_try" in
41855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41856   *) ac_try_echo=$ac_try;;
41857 esac
41858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41859   (eval "$ac_try") 2>&5
41860   ac_status=$?
41861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41862   (exit $ac_status); }; }; then
41863   wx_cv_func_iconv_const="no"
41864 else
41865   echo "$as_me: failed program was:" >&5
41866 sed 's/^/| /' conftest.$ac_ext >&5
41867
41868         wx_cv_func_iconv_const="yes"
41869
41870 fi
41871
41872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41873
41874 fi
41875 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
41876 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
41877
41878     iconv_const=
41879     if test "x$wx_cv_func_iconv_const" = "xyes"; then
41880         iconv_const="const"
41881     fi
41882
41883
41884 cat >>confdefs.h <<_ACEOF
41885 #define ICONV_CONST $iconv_const
41886 _ACEOF
41887
41888   fi
41889   LIBICONV=
41890   if test "$am_cv_lib_iconv" = yes; then
41891     LIBICONV="-liconv"
41892   fi
41893
41894
41895 LIBS="$LIBICONV $LIBS"
41896
41897 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
41898
41899 for ac_func in sigaction
41900 do
41901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41905   echo $ECHO_N "(cached) $ECHO_C" >&6
41906 else
41907   cat >conftest.$ac_ext <<_ACEOF
41908 /* confdefs.h.  */
41909 _ACEOF
41910 cat confdefs.h >>conftest.$ac_ext
41911 cat >>conftest.$ac_ext <<_ACEOF
41912 /* end confdefs.h.  */
41913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41915 #define $ac_func innocuous_$ac_func
41916
41917 /* System header to define __stub macros and hopefully few prototypes,
41918     which can conflict with char $ac_func (); below.
41919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41920     <limits.h> exists even on freestanding compilers.  */
41921
41922 #ifdef __STDC__
41923 # include <limits.h>
41924 #else
41925 # include <assert.h>
41926 #endif
41927
41928 #undef $ac_func
41929
41930 /* Override any GCC internal prototype to avoid an error.
41931    Use char because int might match the return type of a GCC
41932    builtin and then its argument prototype would still apply.  */
41933 #ifdef __cplusplus
41934 extern "C"
41935 #endif
41936 char $ac_func ();
41937 /* The GNU C library defines this for functions which it implements
41938     to always fail with ENOSYS.  Some functions are actually named
41939     something starting with __ and the normal name is an alias.  */
41940 #if defined __stub_$ac_func || defined __stub___$ac_func
41941 choke me
41942 #endif
41943
41944 int
41945 main ()
41946 {
41947 return $ac_func ();
41948   ;
41949   return 0;
41950 }
41951 _ACEOF
41952 rm -f conftest.$ac_objext conftest$ac_exeext
41953 if { (ac_try="$ac_link"
41954 case "(($ac_try" in
41955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41956   *) ac_try_echo=$ac_try;;
41957 esac
41958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41959   (eval "$ac_link") 2>conftest.er1
41960   ac_status=$?
41961   grep -v '^ *+' conftest.er1 >conftest.err
41962   rm -f conftest.er1
41963   cat conftest.err >&5
41964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41965   (exit $ac_status); } &&
41966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
41967   { (case "(($ac_try" in
41968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41969   *) ac_try_echo=$ac_try;;
41970 esac
41971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41972   (eval "$ac_try") 2>&5
41973   ac_status=$?
41974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41975   (exit $ac_status); }; } &&
41976          { ac_try='test -s conftest$ac_exeext'
41977   { (case "(($ac_try" in
41978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41979   *) ac_try_echo=$ac_try;;
41980 esac
41981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41982   (eval "$ac_try") 2>&5
41983   ac_status=$?
41984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41985   (exit $ac_status); }; }; then
41986   eval "$as_ac_var=yes"
41987 else
41988   echo "$as_me: failed program was:" >&5
41989 sed 's/^/| /' conftest.$ac_ext >&5
41990
41991         eval "$as_ac_var=no"
41992 fi
41993
41994 rm -f core conftest.err conftest.$ac_objext \
41995       conftest$ac_exeext conftest.$ac_ext
41996 fi
41997 ac_res=`eval echo '${'$as_ac_var'}'`
41998                { echo "$as_me:$LINENO: result: $ac_res" >&5
41999 echo "${ECHO_T}$ac_res" >&6; }
42000 if test `eval echo '${'$as_ac_var'}'` = yes; then
42001   cat >>confdefs.h <<_ACEOF
42002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42003 _ACEOF
42004
42005 fi
42006 done
42007
42008
42009     if test "$ac_cv_func_sigaction" = "no"; then
42010         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
42011 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
42012         wxUSE_ON_FATAL_EXCEPTION=no
42013     fi
42014
42015     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42016       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
42017 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
42018 if test "${wx_cv_type_sa_handler+set}" = set; then
42019   echo $ECHO_N "(cached) $ECHO_C" >&6
42020 else
42021
42022                 ac_ext=cpp
42023 ac_cpp='$CXXCPP $CPPFLAGS'
42024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42027
42028         cat >conftest.$ac_ext <<_ACEOF
42029 /* confdefs.h.  */
42030 _ACEOF
42031 cat confdefs.h >>conftest.$ac_ext
42032 cat >>conftest.$ac_ext <<_ACEOF
42033 /* end confdefs.h.  */
42034 #include <signal.h>
42035 int
42036 main ()
42037 {
42038
42039                         extern void testSigHandler(int);
42040
42041                         struct sigaction sa;
42042                         sa.sa_handler = testSigHandler;
42043
42044   ;
42045   return 0;
42046 }
42047 _ACEOF
42048 rm -f conftest.$ac_objext
42049 if { (ac_try="$ac_compile"
42050 case "(($ac_try" in
42051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42052   *) ac_try_echo=$ac_try;;
42053 esac
42054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42055   (eval "$ac_compile") 2>conftest.er1
42056   ac_status=$?
42057   grep -v '^ *+' conftest.er1 >conftest.err
42058   rm -f conftest.er1
42059   cat conftest.err >&5
42060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061   (exit $ac_status); } &&
42062          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42063   { (case "(($ac_try" in
42064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42065   *) ac_try_echo=$ac_try;;
42066 esac
42067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42068   (eval "$ac_try") 2>&5
42069   ac_status=$?
42070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42071   (exit $ac_status); }; } &&
42072          { ac_try='test -s conftest.$ac_objext'
42073   { (case "(($ac_try" in
42074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42075   *) ac_try_echo=$ac_try;;
42076 esac
42077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42078   (eval "$ac_try") 2>&5
42079   ac_status=$?
42080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42081   (exit $ac_status); }; }; then
42082
42083                         wx_cv_type_sa_handler=int
42084
42085 else
42086   echo "$as_me: failed program was:" >&5
42087 sed 's/^/| /' conftest.$ac_ext >&5
42088
42089
42090                         wx_cv_type_sa_handler=void
42091
42092 fi
42093
42094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42095         ac_ext=c
42096 ac_cpp='$CPP $CPPFLAGS'
42097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42100
42101
42102 fi
42103 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
42104 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
42105
42106       cat >>confdefs.h <<_ACEOF
42107 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
42108 _ACEOF
42109
42110     fi
42111 fi
42112
42113 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
42114     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
42115 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
42116 if test "${wx_cv_func_backtrace+set}" = set; then
42117   echo $ECHO_N "(cached) $ECHO_C" >&6
42118 else
42119
42120             ac_ext=cpp
42121 ac_cpp='$CXXCPP $CPPFLAGS'
42122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42125
42126             cat >conftest.$ac_ext <<_ACEOF
42127 /* confdefs.h.  */
42128 _ACEOF
42129 cat confdefs.h >>conftest.$ac_ext
42130 cat >>conftest.$ac_ext <<_ACEOF
42131 /* end confdefs.h.  */
42132 #include <execinfo.h>
42133 int
42134 main ()
42135 {
42136
42137                     void *trace[1];
42138                     char **messages;
42139
42140                     backtrace(trace, 1);
42141                     messages = backtrace_symbols(trace, 1);
42142
42143   ;
42144   return 0;
42145 }
42146 _ACEOF
42147 rm -f conftest.$ac_objext
42148 if { (ac_try="$ac_compile"
42149 case "(($ac_try" in
42150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42151   *) ac_try_echo=$ac_try;;
42152 esac
42153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42154   (eval "$ac_compile") 2>conftest.er1
42155   ac_status=$?
42156   grep -v '^ *+' conftest.er1 >conftest.err
42157   rm -f conftest.er1
42158   cat conftest.err >&5
42159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42160   (exit $ac_status); } &&
42161          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42162   { (case "(($ac_try" in
42163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42164   *) ac_try_echo=$ac_try;;
42165 esac
42166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42167   (eval "$ac_try") 2>&5
42168   ac_status=$?
42169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42170   (exit $ac_status); }; } &&
42171          { ac_try='test -s conftest.$ac_objext'
42172   { (case "(($ac_try" in
42173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42174   *) ac_try_echo=$ac_try;;
42175 esac
42176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42177   (eval "$ac_try") 2>&5
42178   ac_status=$?
42179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42180   (exit $ac_status); }; }; then
42181   wx_cv_func_backtrace=yes
42182 else
42183   echo "$as_me: failed program was:" >&5
42184 sed 's/^/| /' conftest.$ac_ext >&5
42185
42186         wx_cv_func_backtrace=no
42187
42188 fi
42189
42190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42191             ac_ext=c
42192 ac_cpp='$CPP $CPPFLAGS'
42193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42196
42197
42198
42199 fi
42200 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
42201 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
42202
42203
42204     if test "$wx_cv_func_backtrace" = "no"; then
42205         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
42206 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
42207         wxUSE_STACKWALKER=no
42208     else
42209         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
42210 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
42211 if test "${wx_cv_func_cxa_demangle+set}" = set; then
42212   echo $ECHO_N "(cached) $ECHO_C" >&6
42213 else
42214
42215                 ac_ext=cpp
42216 ac_cpp='$CXXCPP $CPPFLAGS'
42217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42220
42221                 cat >conftest.$ac_ext <<_ACEOF
42222 /* confdefs.h.  */
42223 _ACEOF
42224 cat confdefs.h >>conftest.$ac_ext
42225 cat >>conftest.$ac_ext <<_ACEOF
42226 /* end confdefs.h.  */
42227 #include <cxxabi.h>
42228 int
42229 main ()
42230 {
42231
42232                         int rc;
42233                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
42234
42235   ;
42236   return 0;
42237 }
42238 _ACEOF
42239 rm -f conftest.$ac_objext conftest$ac_exeext
42240 if { (ac_try="$ac_link"
42241 case "(($ac_try" in
42242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42243   *) ac_try_echo=$ac_try;;
42244 esac
42245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42246   (eval "$ac_link") 2>conftest.er1
42247   ac_status=$?
42248   grep -v '^ *+' conftest.er1 >conftest.err
42249   rm -f conftest.er1
42250   cat conftest.err >&5
42251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42252   (exit $ac_status); } &&
42253          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42254   { (case "(($ac_try" in
42255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42256   *) ac_try_echo=$ac_try;;
42257 esac
42258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42259   (eval "$ac_try") 2>&5
42260   ac_status=$?
42261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42262   (exit $ac_status); }; } &&
42263          { ac_try='test -s conftest$ac_exeext'
42264   { (case "(($ac_try" in
42265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42266   *) ac_try_echo=$ac_try;;
42267 esac
42268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42269   (eval "$ac_try") 2>&5
42270   ac_status=$?
42271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42272   (exit $ac_status); }; }; then
42273   wx_cv_func_cxa_demangle=yes
42274 else
42275   echo "$as_me: failed program was:" >&5
42276 sed 's/^/| /' conftest.$ac_ext >&5
42277
42278         wx_cv_func_cxa_demangle=no
42279
42280 fi
42281
42282 rm -f core conftest.err conftest.$ac_objext \
42283       conftest$ac_exeext conftest.$ac_ext
42284                 ac_ext=c
42285 ac_cpp='$CPP $CPPFLAGS'
42286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42289
42290
42291
42292 fi
42293 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
42294 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
42295
42296         if test "$wx_cv_func_cxa_demangle" = "yes"; then
42297             cat >>confdefs.h <<\_ACEOF
42298 #define HAVE_CXA_DEMANGLE 1
42299 _ACEOF
42300
42301         fi
42302     fi
42303 fi
42304
42305 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
42306     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
42307 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
42308     wxUSE_STACKWALKER=no
42309 fi
42310
42311
42312
42313
42314 for ac_func in mkstemp mktemp
42315 do
42316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42320   echo $ECHO_N "(cached) $ECHO_C" >&6
42321 else
42322   cat >conftest.$ac_ext <<_ACEOF
42323 /* confdefs.h.  */
42324 _ACEOF
42325 cat confdefs.h >>conftest.$ac_ext
42326 cat >>conftest.$ac_ext <<_ACEOF
42327 /* end confdefs.h.  */
42328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42330 #define $ac_func innocuous_$ac_func
42331
42332 /* System header to define __stub macros and hopefully few prototypes,
42333     which can conflict with char $ac_func (); below.
42334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42335     <limits.h> exists even on freestanding compilers.  */
42336
42337 #ifdef __STDC__
42338 # include <limits.h>
42339 #else
42340 # include <assert.h>
42341 #endif
42342
42343 #undef $ac_func
42344
42345 /* Override any GCC internal prototype to avoid an error.
42346    Use char because int might match the return type of a GCC
42347    builtin and then its argument prototype would still apply.  */
42348 #ifdef __cplusplus
42349 extern "C"
42350 #endif
42351 char $ac_func ();
42352 /* The GNU C library defines this for functions which it implements
42353     to always fail with ENOSYS.  Some functions are actually named
42354     something starting with __ and the normal name is an alias.  */
42355 #if defined __stub_$ac_func || defined __stub___$ac_func
42356 choke me
42357 #endif
42358
42359 int
42360 main ()
42361 {
42362 return $ac_func ();
42363   ;
42364   return 0;
42365 }
42366 _ACEOF
42367 rm -f conftest.$ac_objext conftest$ac_exeext
42368 if { (ac_try="$ac_link"
42369 case "(($ac_try" in
42370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42371   *) ac_try_echo=$ac_try;;
42372 esac
42373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42374   (eval "$ac_link") 2>conftest.er1
42375   ac_status=$?
42376   grep -v '^ *+' conftest.er1 >conftest.err
42377   rm -f conftest.er1
42378   cat conftest.err >&5
42379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42380   (exit $ac_status); } &&
42381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42382   { (case "(($ac_try" in
42383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42384   *) ac_try_echo=$ac_try;;
42385 esac
42386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42387   (eval "$ac_try") 2>&5
42388   ac_status=$?
42389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42390   (exit $ac_status); }; } &&
42391          { ac_try='test -s conftest$ac_exeext'
42392   { (case "(($ac_try" in
42393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42394   *) ac_try_echo=$ac_try;;
42395 esac
42396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42397   (eval "$ac_try") 2>&5
42398   ac_status=$?
42399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42400   (exit $ac_status); }; }; then
42401   eval "$as_ac_var=yes"
42402 else
42403   echo "$as_me: failed program was:" >&5
42404 sed 's/^/| /' conftest.$ac_ext >&5
42405
42406         eval "$as_ac_var=no"
42407 fi
42408
42409 rm -f core conftest.err conftest.$ac_objext \
42410       conftest$ac_exeext conftest.$ac_ext
42411 fi
42412 ac_res=`eval echo '${'$as_ac_var'}'`
42413                { echo "$as_me:$LINENO: result: $ac_res" >&5
42414 echo "${ECHO_T}$ac_res" >&6; }
42415 if test `eval echo '${'$as_ac_var'}'` = yes; then
42416   cat >>confdefs.h <<_ACEOF
42417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42418 _ACEOF
42419  break
42420 fi
42421 done
42422
42423
42424 { echo "$as_me:$LINENO: checking for statfs" >&5
42425 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
42426 if test "${wx_cv_func_statfs+set}" = set; then
42427   echo $ECHO_N "(cached) $ECHO_C" >&6
42428 else
42429   cat >conftest.$ac_ext <<_ACEOF
42430 /* confdefs.h.  */
42431 _ACEOF
42432 cat confdefs.h >>conftest.$ac_ext
42433 cat >>conftest.$ac_ext <<_ACEOF
42434 /* end confdefs.h.  */
42435
42436              #if defined(__BSD__)
42437              #include <sys/param.h>
42438              #include <sys/mount.h>
42439              #else
42440              #include <sys/vfs.h>
42441              #endif
42442
42443 int
42444 main ()
42445 {
42446
42447              long l;
42448              struct statfs fs;
42449              statfs("/", &fs);
42450              l = fs.f_bsize;
42451              l += fs.f_blocks;
42452              l += fs.f_bavail;
42453
42454   ;
42455   return 0;
42456 }
42457 _ACEOF
42458 rm -f conftest.$ac_objext
42459 if { (ac_try="$ac_compile"
42460 case "(($ac_try" in
42461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42462   *) ac_try_echo=$ac_try;;
42463 esac
42464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42465   (eval "$ac_compile") 2>conftest.er1
42466   ac_status=$?
42467   grep -v '^ *+' conftest.er1 >conftest.err
42468   rm -f conftest.er1
42469   cat conftest.err >&5
42470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42471   (exit $ac_status); } &&
42472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42473   { (case "(($ac_try" in
42474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42475   *) ac_try_echo=$ac_try;;
42476 esac
42477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42478   (eval "$ac_try") 2>&5
42479   ac_status=$?
42480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42481   (exit $ac_status); }; } &&
42482          { ac_try='test -s conftest.$ac_objext'
42483   { (case "(($ac_try" in
42484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42485   *) ac_try_echo=$ac_try;;
42486 esac
42487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42488   (eval "$ac_try") 2>&5
42489   ac_status=$?
42490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42491   (exit $ac_status); }; }; then
42492   wx_cv_func_statfs=yes
42493 else
42494   echo "$as_me: failed program was:" >&5
42495 sed 's/^/| /' conftest.$ac_ext >&5
42496
42497         wx_cv_func_statfs=no
42498
42499 fi
42500
42501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42502
42503 fi
42504 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
42505 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
42506
42507 if test "$wx_cv_func_statfs" = "yes"; then
42508         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
42509 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
42510 if test "${wx_cv_func_statfs_decl+set}" = set; then
42511   echo $ECHO_N "(cached) $ECHO_C" >&6
42512 else
42513   ac_ext=cpp
42514 ac_cpp='$CXXCPP $CPPFLAGS'
42515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42518
42519         cat >conftest.$ac_ext <<_ACEOF
42520 /* confdefs.h.  */
42521 _ACEOF
42522 cat confdefs.h >>conftest.$ac_ext
42523 cat >>conftest.$ac_ext <<_ACEOF
42524 /* end confdefs.h.  */
42525
42526                  #if defined(__BSD__)
42527                  #include <sys/param.h>
42528                  #include <sys/mount.h>
42529                  #else
42530                  #include <sys/vfs.h>
42531                  #endif
42532
42533 int
42534 main ()
42535 {
42536
42537                 struct statfs fs;
42538                 statfs("", &fs);
42539
42540   ;
42541   return 0;
42542 }
42543 _ACEOF
42544 rm -f conftest.$ac_objext
42545 if { (ac_try="$ac_compile"
42546 case "(($ac_try" in
42547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42548   *) ac_try_echo=$ac_try;;
42549 esac
42550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42551   (eval "$ac_compile") 2>conftest.er1
42552   ac_status=$?
42553   grep -v '^ *+' conftest.er1 >conftest.err
42554   rm -f conftest.er1
42555   cat conftest.err >&5
42556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42557   (exit $ac_status); } &&
42558          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42559   { (case "(($ac_try" in
42560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42561   *) ac_try_echo=$ac_try;;
42562 esac
42563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42564   (eval "$ac_try") 2>&5
42565   ac_status=$?
42566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42567   (exit $ac_status); }; } &&
42568          { ac_try='test -s conftest.$ac_objext'
42569   { (case "(($ac_try" in
42570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42571   *) ac_try_echo=$ac_try;;
42572 esac
42573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42574   (eval "$ac_try") 2>&5
42575   ac_status=$?
42576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42577   (exit $ac_status); }; }; then
42578   wx_cv_func_statfs_decl=yes
42579 else
42580   echo "$as_me: failed program was:" >&5
42581 sed 's/^/| /' conftest.$ac_ext >&5
42582
42583         wx_cv_func_statfs_decl=no
42584
42585 fi
42586
42587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42588         ac_ext=c
42589 ac_cpp='$CPP $CPPFLAGS'
42590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42593
42594
42595 fi
42596 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
42597 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
42598
42599     if test "$wx_cv_func_statfs_decl" = "yes"; then
42600         cat >>confdefs.h <<\_ACEOF
42601 #define HAVE_STATFS_DECL 1
42602 _ACEOF
42603
42604     fi
42605
42606     wx_cv_type_statvfs_t="struct statfs"
42607     cat >>confdefs.h <<\_ACEOF
42608 #define HAVE_STATFS 1
42609 _ACEOF
42610
42611 else
42612     { echo "$as_me:$LINENO: checking for statvfs" >&5
42613 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
42614 if test "${wx_cv_func_statvfs+set}" = set; then
42615   echo $ECHO_N "(cached) $ECHO_C" >&6
42616 else
42617   cat >conftest.$ac_ext <<_ACEOF
42618 /* confdefs.h.  */
42619 _ACEOF
42620 cat confdefs.h >>conftest.$ac_ext
42621 cat >>conftest.$ac_ext <<_ACEOF
42622 /* end confdefs.h.  */
42623
42624                 #include <stddef.h>
42625                 #include <sys/statvfs.h>
42626
42627 int
42628 main ()
42629 {
42630
42631                 statvfs("/", NULL);
42632
42633   ;
42634   return 0;
42635 }
42636 _ACEOF
42637 rm -f conftest.$ac_objext
42638 if { (ac_try="$ac_compile"
42639 case "(($ac_try" in
42640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42641   *) ac_try_echo=$ac_try;;
42642 esac
42643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42644   (eval "$ac_compile") 2>conftest.er1
42645   ac_status=$?
42646   grep -v '^ *+' conftest.er1 >conftest.err
42647   rm -f conftest.er1
42648   cat conftest.err >&5
42649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42650   (exit $ac_status); } &&
42651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42652   { (case "(($ac_try" in
42653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42654   *) ac_try_echo=$ac_try;;
42655 esac
42656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42657   (eval "$ac_try") 2>&5
42658   ac_status=$?
42659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42660   (exit $ac_status); }; } &&
42661          { ac_try='test -s conftest.$ac_objext'
42662   { (case "(($ac_try" in
42663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42664   *) ac_try_echo=$ac_try;;
42665 esac
42666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42667   (eval "$ac_try") 2>&5
42668   ac_status=$?
42669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42670   (exit $ac_status); }; }; then
42671   wx_cv_func_statvfs=yes
42672 else
42673   echo "$as_me: failed program was:" >&5
42674 sed 's/^/| /' conftest.$ac_ext >&5
42675
42676         wx_cv_func_statvfs=no
42677
42678 fi
42679
42680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42681
42682 fi
42683 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
42684 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
42685
42686     if test "$wx_cv_func_statvfs" = "yes"; then
42687                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
42688 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
42689 if test "${wx_cv_type_statvfs_t+set}" = set; then
42690   echo $ECHO_N "(cached) $ECHO_C" >&6
42691 else
42692   ac_ext=cpp
42693 ac_cpp='$CXXCPP $CPPFLAGS'
42694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42697
42698             cat >conftest.$ac_ext <<_ACEOF
42699 /* confdefs.h.  */
42700 _ACEOF
42701 cat confdefs.h >>conftest.$ac_ext
42702 cat >>conftest.$ac_ext <<_ACEOF
42703 /* end confdefs.h.  */
42704
42705                     #include <sys/statvfs.h>
42706
42707 int
42708 main ()
42709 {
42710
42711                     long l;
42712                     statvfs_t fs;
42713                     statvfs("/", &fs);
42714                     l = fs.f_bsize;
42715                     l += fs.f_blocks;
42716                     l += fs.f_bavail;
42717
42718   ;
42719   return 0;
42720 }
42721 _ACEOF
42722 rm -f conftest.$ac_objext
42723 if { (ac_try="$ac_compile"
42724 case "(($ac_try" in
42725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42726   *) ac_try_echo=$ac_try;;
42727 esac
42728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42729   (eval "$ac_compile") 2>conftest.er1
42730   ac_status=$?
42731   grep -v '^ *+' conftest.er1 >conftest.err
42732   rm -f conftest.er1
42733   cat conftest.err >&5
42734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42735   (exit $ac_status); } &&
42736          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42737   { (case "(($ac_try" in
42738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42739   *) ac_try_echo=$ac_try;;
42740 esac
42741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42742   (eval "$ac_try") 2>&5
42743   ac_status=$?
42744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42745   (exit $ac_status); }; } &&
42746          { ac_try='test -s conftest.$ac_objext'
42747   { (case "(($ac_try" in
42748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42749   *) ac_try_echo=$ac_try;;
42750 esac
42751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42752   (eval "$ac_try") 2>&5
42753   ac_status=$?
42754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42755   (exit $ac_status); }; }; then
42756   wx_cv_type_statvfs_t=statvfs_t
42757 else
42758   echo "$as_me: failed program was:" >&5
42759 sed 's/^/| /' conftest.$ac_ext >&5
42760
42761
42762                     cat >conftest.$ac_ext <<_ACEOF
42763 /* confdefs.h.  */
42764 _ACEOF
42765 cat confdefs.h >>conftest.$ac_ext
42766 cat >>conftest.$ac_ext <<_ACEOF
42767 /* end confdefs.h.  */
42768
42769                             #include <sys/statvfs.h>
42770
42771 int
42772 main ()
42773 {
42774
42775                             long l;
42776                             struct statvfs fs;
42777                             statvfs("/", &fs);
42778                             l = fs.f_bsize;
42779                             l += fs.f_blocks;
42780                             l += fs.f_bavail;
42781
42782   ;
42783   return 0;
42784 }
42785 _ACEOF
42786 rm -f conftest.$ac_objext
42787 if { (ac_try="$ac_compile"
42788 case "(($ac_try" in
42789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42790   *) ac_try_echo=$ac_try;;
42791 esac
42792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42793   (eval "$ac_compile") 2>conftest.er1
42794   ac_status=$?
42795   grep -v '^ *+' conftest.er1 >conftest.err
42796   rm -f conftest.er1
42797   cat conftest.err >&5
42798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42799   (exit $ac_status); } &&
42800          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
42801   { (case "(($ac_try" in
42802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42803   *) ac_try_echo=$ac_try;;
42804 esac
42805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42806   (eval "$ac_try") 2>&5
42807   ac_status=$?
42808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42809   (exit $ac_status); }; } &&
42810          { ac_try='test -s conftest.$ac_objext'
42811   { (case "(($ac_try" in
42812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42813   *) ac_try_echo=$ac_try;;
42814 esac
42815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42816   (eval "$ac_try") 2>&5
42817   ac_status=$?
42818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42819   (exit $ac_status); }; }; then
42820   wx_cv_type_statvfs_t="struct statvfs"
42821 else
42822   echo "$as_me: failed program was:" >&5
42823 sed 's/^/| /' conftest.$ac_ext >&5
42824
42825         wx_cv_type_statvfs_t="unknown"
42826
42827 fi
42828
42829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42830
42831
42832 fi
42833
42834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42835             ac_ext=c
42836 ac_cpp='$CPP $CPPFLAGS'
42837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42840
42841
42842 fi
42843 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
42844 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
42845
42846         if test "$wx_cv_type_statvfs_t" != "unknown"; then
42847             cat >>confdefs.h <<\_ACEOF
42848 #define HAVE_STATVFS 1
42849 _ACEOF
42850
42851         fi
42852     else
42853                 wx_cv_type_statvfs_t="unknown"
42854     fi
42855 fi
42856
42857 if test "$wx_cv_type_statvfs_t" != "unknown"; then
42858     cat >>confdefs.h <<_ACEOF
42859 #define WX_STATFS_T $wx_cv_type_statvfs_t
42860 _ACEOF
42861
42862 else
42863     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
42864 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
42865 fi
42866
42867 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42868
42869
42870 for ac_func in fcntl flock
42871 do
42872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42876   echo $ECHO_N "(cached) $ECHO_C" >&6
42877 else
42878   cat >conftest.$ac_ext <<_ACEOF
42879 /* confdefs.h.  */
42880 _ACEOF
42881 cat confdefs.h >>conftest.$ac_ext
42882 cat >>conftest.$ac_ext <<_ACEOF
42883 /* end confdefs.h.  */
42884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42886 #define $ac_func innocuous_$ac_func
42887
42888 /* System header to define __stub macros and hopefully few prototypes,
42889     which can conflict with char $ac_func (); below.
42890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42891     <limits.h> exists even on freestanding compilers.  */
42892
42893 #ifdef __STDC__
42894 # include <limits.h>
42895 #else
42896 # include <assert.h>
42897 #endif
42898
42899 #undef $ac_func
42900
42901 /* Override any GCC internal prototype to avoid an error.
42902    Use char because int might match the return type of a GCC
42903    builtin and then its argument prototype would still apply.  */
42904 #ifdef __cplusplus
42905 extern "C"
42906 #endif
42907 char $ac_func ();
42908 /* The GNU C library defines this for functions which it implements
42909     to always fail with ENOSYS.  Some functions are actually named
42910     something starting with __ and the normal name is an alias.  */
42911 #if defined __stub_$ac_func || defined __stub___$ac_func
42912 choke me
42913 #endif
42914
42915 int
42916 main ()
42917 {
42918 return $ac_func ();
42919   ;
42920   return 0;
42921 }
42922 _ACEOF
42923 rm -f conftest.$ac_objext conftest$ac_exeext
42924 if { (ac_try="$ac_link"
42925 case "(($ac_try" in
42926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42927   *) ac_try_echo=$ac_try;;
42928 esac
42929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42930   (eval "$ac_link") 2>conftest.er1
42931   ac_status=$?
42932   grep -v '^ *+' conftest.er1 >conftest.err
42933   rm -f conftest.er1
42934   cat conftest.err >&5
42935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42936   (exit $ac_status); } &&
42937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
42938   { (case "(($ac_try" in
42939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42940   *) ac_try_echo=$ac_try;;
42941 esac
42942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42943   (eval "$ac_try") 2>&5
42944   ac_status=$?
42945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42946   (exit $ac_status); }; } &&
42947          { ac_try='test -s conftest$ac_exeext'
42948   { (case "(($ac_try" in
42949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42950   *) ac_try_echo=$ac_try;;
42951 esac
42952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42953   (eval "$ac_try") 2>&5
42954   ac_status=$?
42955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42956   (exit $ac_status); }; }; then
42957   eval "$as_ac_var=yes"
42958 else
42959   echo "$as_me: failed program was:" >&5
42960 sed 's/^/| /' conftest.$ac_ext >&5
42961
42962         eval "$as_ac_var=no"
42963 fi
42964
42965 rm -f core conftest.err conftest.$ac_objext \
42966       conftest$ac_exeext conftest.$ac_ext
42967 fi
42968 ac_res=`eval echo '${'$as_ac_var'}'`
42969                { echo "$as_me:$LINENO: result: $ac_res" >&5
42970 echo "${ECHO_T}$ac_res" >&6; }
42971 if test `eval echo '${'$as_ac_var'}'` = yes; then
42972   cat >>confdefs.h <<_ACEOF
42973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42974 _ACEOF
42975  break
42976 fi
42977 done
42978
42979
42980     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
42981         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
42982 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
42983         wxUSE_SNGLINST_CHECKER=no
42984     fi
42985 fi
42986
42987
42988 for ac_func in timegm
42989 do
42990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42994   echo $ECHO_N "(cached) $ECHO_C" >&6
42995 else
42996   cat >conftest.$ac_ext <<_ACEOF
42997 /* confdefs.h.  */
42998 _ACEOF
42999 cat confdefs.h >>conftest.$ac_ext
43000 cat >>conftest.$ac_ext <<_ACEOF
43001 /* end confdefs.h.  */
43002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43004 #define $ac_func innocuous_$ac_func
43005
43006 /* System header to define __stub macros and hopefully few prototypes,
43007     which can conflict with char $ac_func (); below.
43008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43009     <limits.h> exists even on freestanding compilers.  */
43010
43011 #ifdef __STDC__
43012 # include <limits.h>
43013 #else
43014 # include <assert.h>
43015 #endif
43016
43017 #undef $ac_func
43018
43019 /* Override any GCC internal prototype to avoid an error.
43020    Use char because int might match the return type of a GCC
43021    builtin and then its argument prototype would still apply.  */
43022 #ifdef __cplusplus
43023 extern "C"
43024 #endif
43025 char $ac_func ();
43026 /* The GNU C library defines this for functions which it implements
43027     to always fail with ENOSYS.  Some functions are actually named
43028     something starting with __ and the normal name is an alias.  */
43029 #if defined __stub_$ac_func || defined __stub___$ac_func
43030 choke me
43031 #endif
43032
43033 int
43034 main ()
43035 {
43036 return $ac_func ();
43037   ;
43038   return 0;
43039 }
43040 _ACEOF
43041 rm -f conftest.$ac_objext conftest$ac_exeext
43042 if { (ac_try="$ac_link"
43043 case "(($ac_try" in
43044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43045   *) ac_try_echo=$ac_try;;
43046 esac
43047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43048   (eval "$ac_link") 2>conftest.er1
43049   ac_status=$?
43050   grep -v '^ *+' conftest.er1 >conftest.err
43051   rm -f conftest.er1
43052   cat conftest.err >&5
43053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43054   (exit $ac_status); } &&
43055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43056   { (case "(($ac_try" in
43057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43058   *) ac_try_echo=$ac_try;;
43059 esac
43060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43061   (eval "$ac_try") 2>&5
43062   ac_status=$?
43063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43064   (exit $ac_status); }; } &&
43065          { ac_try='test -s conftest$ac_exeext'
43066   { (case "(($ac_try" in
43067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43068   *) ac_try_echo=$ac_try;;
43069 esac
43070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43071   (eval "$ac_try") 2>&5
43072   ac_status=$?
43073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43074   (exit $ac_status); }; }; then
43075   eval "$as_ac_var=yes"
43076 else
43077   echo "$as_me: failed program was:" >&5
43078 sed 's/^/| /' conftest.$ac_ext >&5
43079
43080         eval "$as_ac_var=no"
43081 fi
43082
43083 rm -f core conftest.err conftest.$ac_objext \
43084       conftest$ac_exeext conftest.$ac_ext
43085 fi
43086 ac_res=`eval echo '${'$as_ac_var'}'`
43087                { echo "$as_me:$LINENO: result: $ac_res" >&5
43088 echo "${ECHO_T}$ac_res" >&6; }
43089 if test `eval echo '${'$as_ac_var'}'` = yes; then
43090   cat >>confdefs.h <<_ACEOF
43091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43092 _ACEOF
43093
43094 fi
43095 done
43096
43097
43098
43099
43100 for ac_func in putenv setenv
43101 do
43102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43106   echo $ECHO_N "(cached) $ECHO_C" >&6
43107 else
43108   cat >conftest.$ac_ext <<_ACEOF
43109 /* confdefs.h.  */
43110 _ACEOF
43111 cat confdefs.h >>conftest.$ac_ext
43112 cat >>conftest.$ac_ext <<_ACEOF
43113 /* end confdefs.h.  */
43114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43116 #define $ac_func innocuous_$ac_func
43117
43118 /* System header to define __stub macros and hopefully few prototypes,
43119     which can conflict with char $ac_func (); below.
43120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43121     <limits.h> exists even on freestanding compilers.  */
43122
43123 #ifdef __STDC__
43124 # include <limits.h>
43125 #else
43126 # include <assert.h>
43127 #endif
43128
43129 #undef $ac_func
43130
43131 /* Override any GCC internal prototype to avoid an error.
43132    Use char because int might match the return type of a GCC
43133    builtin and then its argument prototype would still apply.  */
43134 #ifdef __cplusplus
43135 extern "C"
43136 #endif
43137 char $ac_func ();
43138 /* The GNU C library defines this for functions which it implements
43139     to always fail with ENOSYS.  Some functions are actually named
43140     something starting with __ and the normal name is an alias.  */
43141 #if defined __stub_$ac_func || defined __stub___$ac_func
43142 choke me
43143 #endif
43144
43145 int
43146 main ()
43147 {
43148 return $ac_func ();
43149   ;
43150   return 0;
43151 }
43152 _ACEOF
43153 rm -f conftest.$ac_objext conftest$ac_exeext
43154 if { (ac_try="$ac_link"
43155 case "(($ac_try" in
43156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43157   *) ac_try_echo=$ac_try;;
43158 esac
43159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43160   (eval "$ac_link") 2>conftest.er1
43161   ac_status=$?
43162   grep -v '^ *+' conftest.er1 >conftest.err
43163   rm -f conftest.er1
43164   cat conftest.err >&5
43165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43166   (exit $ac_status); } &&
43167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43168   { (case "(($ac_try" in
43169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43170   *) ac_try_echo=$ac_try;;
43171 esac
43172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43173   (eval "$ac_try") 2>&5
43174   ac_status=$?
43175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43176   (exit $ac_status); }; } &&
43177          { ac_try='test -s conftest$ac_exeext'
43178   { (case "(($ac_try" in
43179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43180   *) ac_try_echo=$ac_try;;
43181 esac
43182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43183   (eval "$ac_try") 2>&5
43184   ac_status=$?
43185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43186   (exit $ac_status); }; }; then
43187   eval "$as_ac_var=yes"
43188 else
43189   echo "$as_me: failed program was:" >&5
43190 sed 's/^/| /' conftest.$ac_ext >&5
43191
43192         eval "$as_ac_var=no"
43193 fi
43194
43195 rm -f core conftest.err conftest.$ac_objext \
43196       conftest$ac_exeext conftest.$ac_ext
43197 fi
43198 ac_res=`eval echo '${'$as_ac_var'}'`
43199                { echo "$as_me:$LINENO: result: $ac_res" >&5
43200 echo "${ECHO_T}$ac_res" >&6; }
43201 if test `eval echo '${'$as_ac_var'}'` = yes; then
43202   cat >>confdefs.h <<_ACEOF
43203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43204 _ACEOF
43205  break
43206 fi
43207 done
43208
43209
43210 HAVE_SOME_SLEEP_FUNC=0
43211 if test "$USE_BEOS" = 1; then
43212             cat >>confdefs.h <<\_ACEOF
43213 #define HAVE_SLEEP 1
43214 _ACEOF
43215
43216     HAVE_SOME_SLEEP_FUNC=1
43217 fi
43218
43219 if test "$USE_DARWIN" = 1; then
43220             cat >>confdefs.h <<\_ACEOF
43221 #define HAVE_USLEEP 1
43222 _ACEOF
43223
43224     HAVE_SOME_SLEEP_FUNC=1
43225 fi
43226
43227 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
43228         POSIX4_LINK=
43229
43230 for ac_func in nanosleep
43231 do
43232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43236   echo $ECHO_N "(cached) $ECHO_C" >&6
43237 else
43238   cat >conftest.$ac_ext <<_ACEOF
43239 /* confdefs.h.  */
43240 _ACEOF
43241 cat confdefs.h >>conftest.$ac_ext
43242 cat >>conftest.$ac_ext <<_ACEOF
43243 /* end confdefs.h.  */
43244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43246 #define $ac_func innocuous_$ac_func
43247
43248 /* System header to define __stub macros and hopefully few prototypes,
43249     which can conflict with char $ac_func (); below.
43250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43251     <limits.h> exists even on freestanding compilers.  */
43252
43253 #ifdef __STDC__
43254 # include <limits.h>
43255 #else
43256 # include <assert.h>
43257 #endif
43258
43259 #undef $ac_func
43260
43261 /* Override any GCC internal prototype to avoid an error.
43262    Use char because int might match the return type of a GCC
43263    builtin and then its argument prototype would still apply.  */
43264 #ifdef __cplusplus
43265 extern "C"
43266 #endif
43267 char $ac_func ();
43268 /* The GNU C library defines this for functions which it implements
43269     to always fail with ENOSYS.  Some functions are actually named
43270     something starting with __ and the normal name is an alias.  */
43271 #if defined __stub_$ac_func || defined __stub___$ac_func
43272 choke me
43273 #endif
43274
43275 int
43276 main ()
43277 {
43278 return $ac_func ();
43279   ;
43280   return 0;
43281 }
43282 _ACEOF
43283 rm -f conftest.$ac_objext conftest$ac_exeext
43284 if { (ac_try="$ac_link"
43285 case "(($ac_try" in
43286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43287   *) ac_try_echo=$ac_try;;
43288 esac
43289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43290   (eval "$ac_link") 2>conftest.er1
43291   ac_status=$?
43292   grep -v '^ *+' conftest.er1 >conftest.err
43293   rm -f conftest.er1
43294   cat conftest.err >&5
43295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43296   (exit $ac_status); } &&
43297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43298   { (case "(($ac_try" in
43299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43300   *) ac_try_echo=$ac_try;;
43301 esac
43302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43303   (eval "$ac_try") 2>&5
43304   ac_status=$?
43305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43306   (exit $ac_status); }; } &&
43307          { ac_try='test -s conftest$ac_exeext'
43308   { (case "(($ac_try" in
43309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43310   *) ac_try_echo=$ac_try;;
43311 esac
43312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43313   (eval "$ac_try") 2>&5
43314   ac_status=$?
43315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43316   (exit $ac_status); }; }; then
43317   eval "$as_ac_var=yes"
43318 else
43319   echo "$as_me: failed program was:" >&5
43320 sed 's/^/| /' conftest.$ac_ext >&5
43321
43322         eval "$as_ac_var=no"
43323 fi
43324
43325 rm -f core conftest.err conftest.$ac_objext \
43326       conftest$ac_exeext conftest.$ac_ext
43327 fi
43328 ac_res=`eval echo '${'$as_ac_var'}'`
43329                { echo "$as_me:$LINENO: result: $ac_res" >&5
43330 echo "${ECHO_T}$ac_res" >&6; }
43331 if test `eval echo '${'$as_ac_var'}'` = yes; then
43332   cat >>confdefs.h <<_ACEOF
43333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43334 _ACEOF
43335  cat >>confdefs.h <<\_ACEOF
43336 #define HAVE_NANOSLEEP 1
43337 _ACEOF
43338
43339 else
43340
43341             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
43342 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
43343 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
43344   echo $ECHO_N "(cached) $ECHO_C" >&6
43345 else
43346   ac_check_lib_save_LIBS=$LIBS
43347 LIBS="-lposix4  $LIBS"
43348 cat >conftest.$ac_ext <<_ACEOF
43349 /* confdefs.h.  */
43350 _ACEOF
43351 cat confdefs.h >>conftest.$ac_ext
43352 cat >>conftest.$ac_ext <<_ACEOF
43353 /* end confdefs.h.  */
43354
43355 /* Override any GCC internal prototype to avoid an error.
43356    Use char because int might match the return type of a GCC
43357    builtin and then its argument prototype would still apply.  */
43358 #ifdef __cplusplus
43359 extern "C"
43360 #endif
43361 char nanosleep ();
43362 int
43363 main ()
43364 {
43365 return nanosleep ();
43366   ;
43367   return 0;
43368 }
43369 _ACEOF
43370 rm -f conftest.$ac_objext conftest$ac_exeext
43371 if { (ac_try="$ac_link"
43372 case "(($ac_try" in
43373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43374   *) ac_try_echo=$ac_try;;
43375 esac
43376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43377   (eval "$ac_link") 2>conftest.er1
43378   ac_status=$?
43379   grep -v '^ *+' conftest.er1 >conftest.err
43380   rm -f conftest.er1
43381   cat conftest.err >&5
43382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43383   (exit $ac_status); } &&
43384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43385   { (case "(($ac_try" in
43386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43387   *) ac_try_echo=$ac_try;;
43388 esac
43389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43390   (eval "$ac_try") 2>&5
43391   ac_status=$?
43392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43393   (exit $ac_status); }; } &&
43394          { ac_try='test -s conftest$ac_exeext'
43395   { (case "(($ac_try" in
43396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43397   *) ac_try_echo=$ac_try;;
43398 esac
43399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43400   (eval "$ac_try") 2>&5
43401   ac_status=$?
43402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43403   (exit $ac_status); }; }; then
43404   ac_cv_lib_posix4_nanosleep=yes
43405 else
43406   echo "$as_me: failed program was:" >&5
43407 sed 's/^/| /' conftest.$ac_ext >&5
43408
43409         ac_cv_lib_posix4_nanosleep=no
43410 fi
43411
43412 rm -f core conftest.err conftest.$ac_objext \
43413       conftest$ac_exeext conftest.$ac_ext
43414 LIBS=$ac_check_lib_save_LIBS
43415 fi
43416 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
43417 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
43418 if test $ac_cv_lib_posix4_nanosleep = yes; then
43419
43420                     cat >>confdefs.h <<\_ACEOF
43421 #define HAVE_NANOSLEEP 1
43422 _ACEOF
43423
43424                     POSIX4_LINK=" -lposix4"
43425
43426 else
43427
43428
43429   for wx_func in usleep
43430   do
43431     { echo "$as_me:$LINENO: checking for $wx_func" >&5
43432 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
43433 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
43434   echo $ECHO_N "(cached) $ECHO_C" >&6
43435 else
43436
43437         cat >conftest.$ac_ext <<_ACEOF
43438
43439             /* confdefs.h.  */
43440 _ACEOF
43441 cat confdefs.h >>conftest.$ac_ext
43442 cat >>conftest.$ac_ext <<_ACEOF
43443 /* end confdefs.h.  */
43444
43445
43446                 $ac_includes_default
43447
43448 int
43449 main ()
43450 {
43451
43452                 #ifndef $wx_func
43453                   &$wx_func;
43454                 #endif
43455
43456
43457   ;
43458   return 0;
43459 }
43460
43461 _ACEOF
43462 rm -f conftest.$ac_objext conftest$ac_exeext
43463 if { (ac_try="$ac_link"
43464 case "(($ac_try" in
43465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43466   *) ac_try_echo=$ac_try;;
43467 esac
43468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43469   (eval "$ac_link") 2>conftest.er1
43470   ac_status=$?
43471   grep -v '^ *+' conftest.er1 >conftest.err
43472   rm -f conftest.er1
43473   cat conftest.err >&5
43474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43475   (exit $ac_status); } &&
43476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43477   { (case "(($ac_try" in
43478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43479   *) ac_try_echo=$ac_try;;
43480 esac
43481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43482   (eval "$ac_try") 2>&5
43483   ac_status=$?
43484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43485   (exit $ac_status); }; } &&
43486          { ac_try='test -s conftest$ac_exeext'
43487   { (case "(($ac_try" in
43488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43489   *) ac_try_echo=$ac_try;;
43490 esac
43491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43492   (eval "$ac_try") 2>&5
43493   ac_status=$?
43494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43495   (exit $ac_status); }; }; then
43496   eval wx_cv_func_$wx_func=yes
43497 else
43498   echo "$as_me: failed program was:" >&5
43499 sed 's/^/| /' conftest.$ac_ext >&5
43500
43501         eval wx_cv_func_$wx_func=no
43502 fi
43503
43504 rm -f core conftest.err conftest.$ac_objext \
43505       conftest$ac_exeext conftest.$ac_ext
43506
43507 fi
43508 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
43509                { echo "$as_me:$LINENO: result: $ac_res" >&5
43510 echo "${ECHO_T}$ac_res" >&6; }
43511
43512     if eval test \$wx_cv_func_$wx_func = yes
43513     then
43514       cat >>confdefs.h <<_ACEOF
43515 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
43516 _ACEOF
43517
43518
43519     else
43520       :
43521       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
43522 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
43523
43524     fi
43525   done
43526
43527
43528
43529 fi
43530
43531
43532
43533 fi
43534 done
43535
43536 fi
43537
43538
43539   for wx_func in uname
43540   do
43541     { echo "$as_me:$LINENO: checking for $wx_func" >&5
43542 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
43543 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
43544   echo $ECHO_N "(cached) $ECHO_C" >&6
43545 else
43546
43547         cat >conftest.$ac_ext <<_ACEOF
43548
43549             /* confdefs.h.  */
43550 _ACEOF
43551 cat confdefs.h >>conftest.$ac_ext
43552 cat >>conftest.$ac_ext <<_ACEOF
43553 /* end confdefs.h.  */
43554
43555                 #include <sys/utsname.h>
43556                 $ac_includes_default
43557
43558 int
43559 main ()
43560 {
43561
43562                 #ifndef $wx_func
43563                   &$wx_func;
43564                 #endif
43565
43566
43567   ;
43568   return 0;
43569 }
43570
43571 _ACEOF
43572 rm -f conftest.$ac_objext conftest$ac_exeext
43573 if { (ac_try="$ac_link"
43574 case "(($ac_try" in
43575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43576   *) ac_try_echo=$ac_try;;
43577 esac
43578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43579   (eval "$ac_link") 2>conftest.er1
43580   ac_status=$?
43581   grep -v '^ *+' conftest.er1 >conftest.err
43582   rm -f conftest.er1
43583   cat conftest.err >&5
43584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43585   (exit $ac_status); } &&
43586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43587   { (case "(($ac_try" in
43588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43589   *) ac_try_echo=$ac_try;;
43590 esac
43591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43592   (eval "$ac_try") 2>&5
43593   ac_status=$?
43594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43595   (exit $ac_status); }; } &&
43596          { ac_try='test -s conftest$ac_exeext'
43597   { (case "(($ac_try" in
43598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43599   *) ac_try_echo=$ac_try;;
43600 esac
43601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43602   (eval "$ac_try") 2>&5
43603   ac_status=$?
43604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43605   (exit $ac_status); }; }; then
43606   eval wx_cv_func_$wx_func=yes
43607 else
43608   echo "$as_me: failed program was:" >&5
43609 sed 's/^/| /' conftest.$ac_ext >&5
43610
43611         eval wx_cv_func_$wx_func=no
43612 fi
43613
43614 rm -f core conftest.err conftest.$ac_objext \
43615       conftest$ac_exeext conftest.$ac_ext
43616
43617 fi
43618 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
43619                { echo "$as_me:$LINENO: result: $ac_res" >&5
43620 echo "${ECHO_T}$ac_res" >&6; }
43621
43622     if eval test \$wx_cv_func_$wx_func = yes
43623     then
43624       cat >>confdefs.h <<_ACEOF
43625 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
43626 _ACEOF
43627
43628
43629     else
43630       :
43631
43632     fi
43633   done
43634
43635 if test "$wx_cv_func_uname" != yes; then
43636
43637   for wx_func in gethostname
43638   do
43639     { echo "$as_me:$LINENO: checking for $wx_func" >&5
43640 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
43641 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
43642   echo $ECHO_N "(cached) $ECHO_C" >&6
43643 else
43644
43645         cat >conftest.$ac_ext <<_ACEOF
43646
43647             /* confdefs.h.  */
43648 _ACEOF
43649 cat confdefs.h >>conftest.$ac_ext
43650 cat >>conftest.$ac_ext <<_ACEOF
43651 /* end confdefs.h.  */
43652
43653
43654                 $ac_includes_default
43655
43656 int
43657 main ()
43658 {
43659
43660                 #ifndef $wx_func
43661                   &$wx_func;
43662                 #endif
43663
43664
43665   ;
43666   return 0;
43667 }
43668
43669 _ACEOF
43670 rm -f conftest.$ac_objext conftest$ac_exeext
43671 if { (ac_try="$ac_link"
43672 case "(($ac_try" in
43673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43674   *) ac_try_echo=$ac_try;;
43675 esac
43676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43677   (eval "$ac_link") 2>conftest.er1
43678   ac_status=$?
43679   grep -v '^ *+' conftest.er1 >conftest.err
43680   rm -f conftest.er1
43681   cat conftest.err >&5
43682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43683   (exit $ac_status); } &&
43684          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43685   { (case "(($ac_try" in
43686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43687   *) ac_try_echo=$ac_try;;
43688 esac
43689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43690   (eval "$ac_try") 2>&5
43691   ac_status=$?
43692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43693   (exit $ac_status); }; } &&
43694          { ac_try='test -s conftest$ac_exeext'
43695   { (case "(($ac_try" in
43696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43697   *) ac_try_echo=$ac_try;;
43698 esac
43699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43700   (eval "$ac_try") 2>&5
43701   ac_status=$?
43702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43703   (exit $ac_status); }; }; then
43704   eval wx_cv_func_$wx_func=yes
43705 else
43706   echo "$as_me: failed program was:" >&5
43707 sed 's/^/| /' conftest.$ac_ext >&5
43708
43709         eval wx_cv_func_$wx_func=no
43710 fi
43711
43712 rm -f core conftest.err conftest.$ac_objext \
43713       conftest$ac_exeext conftest.$ac_ext
43714
43715 fi
43716 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
43717                { echo "$as_me:$LINENO: result: $ac_res" >&5
43718 echo "${ECHO_T}$ac_res" >&6; }
43719
43720     if eval test \$wx_cv_func_$wx_func = yes
43721     then
43722       cat >>confdefs.h <<_ACEOF
43723 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
43724 _ACEOF
43725
43726
43727     else
43728       :
43729
43730     fi
43731   done
43732
43733 fi
43734
43735
43736   for wx_func in strtok_r
43737   do
43738     { echo "$as_me:$LINENO: checking for $wx_func" >&5
43739 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
43740 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
43741   echo $ECHO_N "(cached) $ECHO_C" >&6
43742 else
43743
43744         cat >conftest.$ac_ext <<_ACEOF
43745
43746             /* confdefs.h.  */
43747 _ACEOF
43748 cat confdefs.h >>conftest.$ac_ext
43749 cat >>conftest.$ac_ext <<_ACEOF
43750 /* end confdefs.h.  */
43751
43752                 #define _REENTRANT
43753                 $ac_includes_default
43754
43755 int
43756 main ()
43757 {
43758
43759                 #ifndef $wx_func
43760                   &$wx_func;
43761                 #endif
43762
43763
43764   ;
43765   return 0;
43766 }
43767
43768 _ACEOF
43769 rm -f conftest.$ac_objext conftest$ac_exeext
43770 if { (ac_try="$ac_link"
43771 case "(($ac_try" in
43772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43773   *) ac_try_echo=$ac_try;;
43774 esac
43775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43776   (eval "$ac_link") 2>conftest.er1
43777   ac_status=$?
43778   grep -v '^ *+' conftest.er1 >conftest.err
43779   rm -f conftest.er1
43780   cat conftest.err >&5
43781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43782   (exit $ac_status); } &&
43783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43784   { (case "(($ac_try" in
43785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43786   *) ac_try_echo=$ac_try;;
43787 esac
43788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43789   (eval "$ac_try") 2>&5
43790   ac_status=$?
43791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43792   (exit $ac_status); }; } &&
43793          { ac_try='test -s conftest$ac_exeext'
43794   { (case "(($ac_try" in
43795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43796   *) ac_try_echo=$ac_try;;
43797 esac
43798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43799   (eval "$ac_try") 2>&5
43800   ac_status=$?
43801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43802   (exit $ac_status); }; }; then
43803   eval wx_cv_func_$wx_func=yes
43804 else
43805   echo "$as_me: failed program was:" >&5
43806 sed 's/^/| /' conftest.$ac_ext >&5
43807
43808         eval wx_cv_func_$wx_func=no
43809 fi
43810
43811 rm -f core conftest.err conftest.$ac_objext \
43812       conftest$ac_exeext conftest.$ac_ext
43813
43814 fi
43815 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
43816                { echo "$as_me:$LINENO: result: $ac_res" >&5
43817 echo "${ECHO_T}$ac_res" >&6; }
43818
43819     if eval test \$wx_cv_func_$wx_func = yes
43820     then
43821       cat >>confdefs.h <<_ACEOF
43822 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
43823 _ACEOF
43824
43825
43826     else
43827       :
43828
43829     fi
43830   done
43831
43832
43833 INET_LINK=
43834
43835 for ac_func in inet_addr
43836 do
43837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43841   echo $ECHO_N "(cached) $ECHO_C" >&6
43842 else
43843   cat >conftest.$ac_ext <<_ACEOF
43844 /* confdefs.h.  */
43845 _ACEOF
43846 cat confdefs.h >>conftest.$ac_ext
43847 cat >>conftest.$ac_ext <<_ACEOF
43848 /* end confdefs.h.  */
43849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43851 #define $ac_func innocuous_$ac_func
43852
43853 /* System header to define __stub macros and hopefully few prototypes,
43854     which can conflict with char $ac_func (); below.
43855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43856     <limits.h> exists even on freestanding compilers.  */
43857
43858 #ifdef __STDC__
43859 # include <limits.h>
43860 #else
43861 # include <assert.h>
43862 #endif
43863
43864 #undef $ac_func
43865
43866 /* Override any GCC internal prototype to avoid an error.
43867    Use char because int might match the return type of a GCC
43868    builtin and then its argument prototype would still apply.  */
43869 #ifdef __cplusplus
43870 extern "C"
43871 #endif
43872 char $ac_func ();
43873 /* The GNU C library defines this for functions which it implements
43874     to always fail with ENOSYS.  Some functions are actually named
43875     something starting with __ and the normal name is an alias.  */
43876 #if defined __stub_$ac_func || defined __stub___$ac_func
43877 choke me
43878 #endif
43879
43880 int
43881 main ()
43882 {
43883 return $ac_func ();
43884   ;
43885   return 0;
43886 }
43887 _ACEOF
43888 rm -f conftest.$ac_objext conftest$ac_exeext
43889 if { (ac_try="$ac_link"
43890 case "(($ac_try" in
43891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43892   *) ac_try_echo=$ac_try;;
43893 esac
43894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43895   (eval "$ac_link") 2>conftest.er1
43896   ac_status=$?
43897   grep -v '^ *+' conftest.er1 >conftest.err
43898   rm -f conftest.er1
43899   cat conftest.err >&5
43900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43901   (exit $ac_status); } &&
43902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43903   { (case "(($ac_try" in
43904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43905   *) ac_try_echo=$ac_try;;
43906 esac
43907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43908   (eval "$ac_try") 2>&5
43909   ac_status=$?
43910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43911   (exit $ac_status); }; } &&
43912          { ac_try='test -s conftest$ac_exeext'
43913   { (case "(($ac_try" in
43914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43915   *) ac_try_echo=$ac_try;;
43916 esac
43917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43918   (eval "$ac_try") 2>&5
43919   ac_status=$?
43920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43921   (exit $ac_status); }; }; then
43922   eval "$as_ac_var=yes"
43923 else
43924   echo "$as_me: failed program was:" >&5
43925 sed 's/^/| /' conftest.$ac_ext >&5
43926
43927         eval "$as_ac_var=no"
43928 fi
43929
43930 rm -f core conftest.err conftest.$ac_objext \
43931       conftest$ac_exeext conftest.$ac_ext
43932 fi
43933 ac_res=`eval echo '${'$as_ac_var'}'`
43934                { echo "$as_me:$LINENO: result: $ac_res" >&5
43935 echo "${ECHO_T}$ac_res" >&6; }
43936 if test `eval echo '${'$as_ac_var'}'` = yes; then
43937   cat >>confdefs.h <<_ACEOF
43938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43939 _ACEOF
43940  cat >>confdefs.h <<\_ACEOF
43941 #define HAVE_INET_ADDR 1
43942 _ACEOF
43943
43944 else
43945
43946         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
43947 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
43948 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
43949   echo $ECHO_N "(cached) $ECHO_C" >&6
43950 else
43951   ac_check_lib_save_LIBS=$LIBS
43952 LIBS="-lnsl  $LIBS"
43953 cat >conftest.$ac_ext <<_ACEOF
43954 /* confdefs.h.  */
43955 _ACEOF
43956 cat confdefs.h >>conftest.$ac_ext
43957 cat >>conftest.$ac_ext <<_ACEOF
43958 /* end confdefs.h.  */
43959
43960 /* Override any GCC internal prototype to avoid an error.
43961    Use char because int might match the return type of a GCC
43962    builtin and then its argument prototype would still apply.  */
43963 #ifdef __cplusplus
43964 extern "C"
43965 #endif
43966 char inet_addr ();
43967 int
43968 main ()
43969 {
43970 return inet_addr ();
43971   ;
43972   return 0;
43973 }
43974 _ACEOF
43975 rm -f conftest.$ac_objext conftest$ac_exeext
43976 if { (ac_try="$ac_link"
43977 case "(($ac_try" in
43978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43979   *) ac_try_echo=$ac_try;;
43980 esac
43981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43982   (eval "$ac_link") 2>conftest.er1
43983   ac_status=$?
43984   grep -v '^ *+' conftest.er1 >conftest.err
43985   rm -f conftest.er1
43986   cat conftest.err >&5
43987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43988   (exit $ac_status); } &&
43989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
43990   { (case "(($ac_try" in
43991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43992   *) ac_try_echo=$ac_try;;
43993 esac
43994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43995   (eval "$ac_try") 2>&5
43996   ac_status=$?
43997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43998   (exit $ac_status); }; } &&
43999          { ac_try='test -s conftest$ac_exeext'
44000   { (case "(($ac_try" in
44001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44002   *) ac_try_echo=$ac_try;;
44003 esac
44004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44005   (eval "$ac_try") 2>&5
44006   ac_status=$?
44007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44008   (exit $ac_status); }; }; then
44009   ac_cv_lib_nsl_inet_addr=yes
44010 else
44011   echo "$as_me: failed program was:" >&5
44012 sed 's/^/| /' conftest.$ac_ext >&5
44013
44014         ac_cv_lib_nsl_inet_addr=no
44015 fi
44016
44017 rm -f core conftest.err conftest.$ac_objext \
44018       conftest$ac_exeext conftest.$ac_ext
44019 LIBS=$ac_check_lib_save_LIBS
44020 fi
44021 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
44022 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
44023 if test $ac_cv_lib_nsl_inet_addr = yes; then
44024   INET_LINK="nsl"
44025 else
44026
44027                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
44028 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
44029 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
44030   echo $ECHO_N "(cached) $ECHO_C" >&6
44031 else
44032   ac_check_lib_save_LIBS=$LIBS
44033 LIBS="-lresolv  $LIBS"
44034 cat >conftest.$ac_ext <<_ACEOF
44035 /* confdefs.h.  */
44036 _ACEOF
44037 cat confdefs.h >>conftest.$ac_ext
44038 cat >>conftest.$ac_ext <<_ACEOF
44039 /* end confdefs.h.  */
44040
44041 /* Override any GCC internal prototype to avoid an error.
44042    Use char because int might match the return type of a GCC
44043    builtin and then its argument prototype would still apply.  */
44044 #ifdef __cplusplus
44045 extern "C"
44046 #endif
44047 char inet_addr ();
44048 int
44049 main ()
44050 {
44051 return inet_addr ();
44052   ;
44053   return 0;
44054 }
44055 _ACEOF
44056 rm -f conftest.$ac_objext conftest$ac_exeext
44057 if { (ac_try="$ac_link"
44058 case "(($ac_try" in
44059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44060   *) ac_try_echo=$ac_try;;
44061 esac
44062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44063   (eval "$ac_link") 2>conftest.er1
44064   ac_status=$?
44065   grep -v '^ *+' conftest.er1 >conftest.err
44066   rm -f conftest.er1
44067   cat conftest.err >&5
44068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44069   (exit $ac_status); } &&
44070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44071   { (case "(($ac_try" in
44072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44073   *) ac_try_echo=$ac_try;;
44074 esac
44075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44076   (eval "$ac_try") 2>&5
44077   ac_status=$?
44078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44079   (exit $ac_status); }; } &&
44080          { ac_try='test -s conftest$ac_exeext'
44081   { (case "(($ac_try" in
44082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44083   *) ac_try_echo=$ac_try;;
44084 esac
44085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44086   (eval "$ac_try") 2>&5
44087   ac_status=$?
44088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44089   (exit $ac_status); }; }; then
44090   ac_cv_lib_resolv_inet_addr=yes
44091 else
44092   echo "$as_me: failed program was:" >&5
44093 sed 's/^/| /' conftest.$ac_ext >&5
44094
44095         ac_cv_lib_resolv_inet_addr=no
44096 fi
44097
44098 rm -f core conftest.err conftest.$ac_objext \
44099       conftest$ac_exeext conftest.$ac_ext
44100 LIBS=$ac_check_lib_save_LIBS
44101 fi
44102 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
44103 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
44104 if test $ac_cv_lib_resolv_inet_addr = yes; then
44105   INET_LINK="resolv"
44106 else
44107
44108                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
44109 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
44110 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
44111   echo $ECHO_N "(cached) $ECHO_C" >&6
44112 else
44113   ac_check_lib_save_LIBS=$LIBS
44114 LIBS="-lsocket  $LIBS"
44115 cat >conftest.$ac_ext <<_ACEOF
44116 /* confdefs.h.  */
44117 _ACEOF
44118 cat confdefs.h >>conftest.$ac_ext
44119 cat >>conftest.$ac_ext <<_ACEOF
44120 /* end confdefs.h.  */
44121
44122 /* Override any GCC internal prototype to avoid an error.
44123    Use char because int might match the return type of a GCC
44124    builtin and then its argument prototype would still apply.  */
44125 #ifdef __cplusplus
44126 extern "C"
44127 #endif
44128 char inet_addr ();
44129 int
44130 main ()
44131 {
44132 return inet_addr ();
44133   ;
44134   return 0;
44135 }
44136 _ACEOF
44137 rm -f conftest.$ac_objext conftest$ac_exeext
44138 if { (ac_try="$ac_link"
44139 case "(($ac_try" in
44140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44141   *) ac_try_echo=$ac_try;;
44142 esac
44143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44144   (eval "$ac_link") 2>conftest.er1
44145   ac_status=$?
44146   grep -v '^ *+' conftest.er1 >conftest.err
44147   rm -f conftest.er1
44148   cat conftest.err >&5
44149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44150   (exit $ac_status); } &&
44151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44152   { (case "(($ac_try" in
44153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44154   *) ac_try_echo=$ac_try;;
44155 esac
44156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44157   (eval "$ac_try") 2>&5
44158   ac_status=$?
44159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44160   (exit $ac_status); }; } &&
44161          { ac_try='test -s conftest$ac_exeext'
44162   { (case "(($ac_try" in
44163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44164   *) ac_try_echo=$ac_try;;
44165 esac
44166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44167   (eval "$ac_try") 2>&5
44168   ac_status=$?
44169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44170   (exit $ac_status); }; }; then
44171   ac_cv_lib_socket_inet_addr=yes
44172 else
44173   echo "$as_me: failed program was:" >&5
44174 sed 's/^/| /' conftest.$ac_ext >&5
44175
44176         ac_cv_lib_socket_inet_addr=no
44177 fi
44178
44179 rm -f core conftest.err conftest.$ac_objext \
44180       conftest$ac_exeext conftest.$ac_ext
44181 LIBS=$ac_check_lib_save_LIBS
44182 fi
44183 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
44184 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
44185 if test $ac_cv_lib_socket_inet_addr = yes; then
44186   INET_LINK="socket"
44187
44188 fi
44189
44190
44191
44192 fi
44193
44194
44195
44196 fi
44197
44198
44199
44200 fi
44201 done
44202
44203
44204
44205 for ac_func in inet_aton
44206 do
44207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44211   echo $ECHO_N "(cached) $ECHO_C" >&6
44212 else
44213   cat >conftest.$ac_ext <<_ACEOF
44214 /* confdefs.h.  */
44215 _ACEOF
44216 cat confdefs.h >>conftest.$ac_ext
44217 cat >>conftest.$ac_ext <<_ACEOF
44218 /* end confdefs.h.  */
44219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44221 #define $ac_func innocuous_$ac_func
44222
44223 /* System header to define __stub macros and hopefully few prototypes,
44224     which can conflict with char $ac_func (); below.
44225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44226     <limits.h> exists even on freestanding compilers.  */
44227
44228 #ifdef __STDC__
44229 # include <limits.h>
44230 #else
44231 # include <assert.h>
44232 #endif
44233
44234 #undef $ac_func
44235
44236 /* Override any GCC internal prototype to avoid an error.
44237    Use char because int might match the return type of a GCC
44238    builtin and then its argument prototype would still apply.  */
44239 #ifdef __cplusplus
44240 extern "C"
44241 #endif
44242 char $ac_func ();
44243 /* The GNU C library defines this for functions which it implements
44244     to always fail with ENOSYS.  Some functions are actually named
44245     something starting with __ and the normal name is an alias.  */
44246 #if defined __stub_$ac_func || defined __stub___$ac_func
44247 choke me
44248 #endif
44249
44250 int
44251 main ()
44252 {
44253 return $ac_func ();
44254   ;
44255   return 0;
44256 }
44257 _ACEOF
44258 rm -f conftest.$ac_objext conftest$ac_exeext
44259 if { (ac_try="$ac_link"
44260 case "(($ac_try" in
44261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44262   *) ac_try_echo=$ac_try;;
44263 esac
44264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44265   (eval "$ac_link") 2>conftest.er1
44266   ac_status=$?
44267   grep -v '^ *+' conftest.er1 >conftest.err
44268   rm -f conftest.er1
44269   cat conftest.err >&5
44270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44271   (exit $ac_status); } &&
44272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44273   { (case "(($ac_try" in
44274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44275   *) ac_try_echo=$ac_try;;
44276 esac
44277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44278   (eval "$ac_try") 2>&5
44279   ac_status=$?
44280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44281   (exit $ac_status); }; } &&
44282          { ac_try='test -s conftest$ac_exeext'
44283   { (case "(($ac_try" in
44284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44285   *) ac_try_echo=$ac_try;;
44286 esac
44287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44288   (eval "$ac_try") 2>&5
44289   ac_status=$?
44290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44291   (exit $ac_status); }; }; then
44292   eval "$as_ac_var=yes"
44293 else
44294   echo "$as_me: failed program was:" >&5
44295 sed 's/^/| /' conftest.$ac_ext >&5
44296
44297         eval "$as_ac_var=no"
44298 fi
44299
44300 rm -f core conftest.err conftest.$ac_objext \
44301       conftest$ac_exeext conftest.$ac_ext
44302 fi
44303 ac_res=`eval echo '${'$as_ac_var'}'`
44304                { echo "$as_me:$LINENO: result: $ac_res" >&5
44305 echo "${ECHO_T}$ac_res" >&6; }
44306 if test `eval echo '${'$as_ac_var'}'` = yes; then
44307   cat >>confdefs.h <<_ACEOF
44308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44309 _ACEOF
44310  cat >>confdefs.h <<\_ACEOF
44311 #define HAVE_INET_ATON 1
44312 _ACEOF
44313
44314 else
44315
44316                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
44317 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
44318 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
44319 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
44320   echo $ECHO_N "(cached) $ECHO_C" >&6
44321 else
44322   ac_check_lib_save_LIBS=$LIBS
44323 LIBS="-l$INET_LINK  $LIBS"
44324 cat >conftest.$ac_ext <<_ACEOF
44325 /* confdefs.h.  */
44326 _ACEOF
44327 cat confdefs.h >>conftest.$ac_ext
44328 cat >>conftest.$ac_ext <<_ACEOF
44329 /* end confdefs.h.  */
44330
44331 /* Override any GCC internal prototype to avoid an error.
44332    Use char because int might match the return type of a GCC
44333    builtin and then its argument prototype would still apply.  */
44334 #ifdef __cplusplus
44335 extern "C"
44336 #endif
44337 char inet_aton ();
44338 int
44339 main ()
44340 {
44341 return inet_aton ();
44342   ;
44343   return 0;
44344 }
44345 _ACEOF
44346 rm -f conftest.$ac_objext conftest$ac_exeext
44347 if { (ac_try="$ac_link"
44348 case "(($ac_try" in
44349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44350   *) ac_try_echo=$ac_try;;
44351 esac
44352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44353   (eval "$ac_link") 2>conftest.er1
44354   ac_status=$?
44355   grep -v '^ *+' conftest.er1 >conftest.err
44356   rm -f conftest.er1
44357   cat conftest.err >&5
44358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44359   (exit $ac_status); } &&
44360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44361   { (case "(($ac_try" in
44362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44363   *) ac_try_echo=$ac_try;;
44364 esac
44365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44366   (eval "$ac_try") 2>&5
44367   ac_status=$?
44368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44369   (exit $ac_status); }; } &&
44370          { ac_try='test -s conftest$ac_exeext'
44371   { (case "(($ac_try" in
44372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44373   *) ac_try_echo=$ac_try;;
44374 esac
44375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44376   (eval "$ac_try") 2>&5
44377   ac_status=$?
44378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44379   (exit $ac_status); }; }; then
44380   eval "$as_ac_Lib=yes"
44381 else
44382   echo "$as_me: failed program was:" >&5
44383 sed 's/^/| /' conftest.$ac_ext >&5
44384
44385         eval "$as_ac_Lib=no"
44386 fi
44387
44388 rm -f core conftest.err conftest.$ac_objext \
44389       conftest$ac_exeext conftest.$ac_ext
44390 LIBS=$ac_check_lib_save_LIBS
44391 fi
44392 ac_res=`eval echo '${'$as_ac_Lib'}'`
44393                { echo "$as_me:$LINENO: result: $ac_res" >&5
44394 echo "${ECHO_T}$ac_res" >&6; }
44395 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
44396   cat >>confdefs.h <<\_ACEOF
44397 #define HAVE_INET_ATON 1
44398 _ACEOF
44399
44400 fi
44401
44402
44403 fi
44404 done
44405
44406
44407 if test "x$INET_LINK" != "x"; then
44408     cat >>confdefs.h <<\_ACEOF
44409 #define HAVE_INET_ADDR 1
44410 _ACEOF
44411
44412     INET_LINK=" -l$INET_LINK"
44413 fi
44414
44415
44416   for wx_func in fdopen
44417   do
44418     { echo "$as_me:$LINENO: checking for $wx_func" >&5
44419 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
44420 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
44421   echo $ECHO_N "(cached) $ECHO_C" >&6
44422 else
44423
44424         cat >conftest.$ac_ext <<_ACEOF
44425
44426             /* confdefs.h.  */
44427 _ACEOF
44428 cat confdefs.h >>conftest.$ac_ext
44429 cat >>conftest.$ac_ext <<_ACEOF
44430 /* end confdefs.h.  */
44431
44432
44433                 $ac_includes_default
44434
44435 int
44436 main ()
44437 {
44438
44439                 #ifndef $wx_func
44440                   &$wx_func;
44441                 #endif
44442
44443
44444   ;
44445   return 0;
44446 }
44447
44448 _ACEOF
44449 rm -f conftest.$ac_objext conftest$ac_exeext
44450 if { (ac_try="$ac_link"
44451 case "(($ac_try" in
44452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44453   *) ac_try_echo=$ac_try;;
44454 esac
44455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44456   (eval "$ac_link") 2>conftest.er1
44457   ac_status=$?
44458   grep -v '^ *+' conftest.er1 >conftest.err
44459   rm -f conftest.er1
44460   cat conftest.err >&5
44461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44462   (exit $ac_status); } &&
44463          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44464   { (case "(($ac_try" in
44465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44466   *) ac_try_echo=$ac_try;;
44467 esac
44468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44469   (eval "$ac_try") 2>&5
44470   ac_status=$?
44471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44472   (exit $ac_status); }; } &&
44473          { ac_try='test -s conftest$ac_exeext'
44474   { (case "(($ac_try" in
44475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44476   *) ac_try_echo=$ac_try;;
44477 esac
44478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44479   (eval "$ac_try") 2>&5
44480   ac_status=$?
44481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44482   (exit $ac_status); }; }; then
44483   eval wx_cv_func_$wx_func=yes
44484 else
44485   echo "$as_me: failed program was:" >&5
44486 sed 's/^/| /' conftest.$ac_ext >&5
44487
44488         eval wx_cv_func_$wx_func=no
44489 fi
44490
44491 rm -f core conftest.err conftest.$ac_objext \
44492       conftest$ac_exeext conftest.$ac_ext
44493
44494 fi
44495 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
44496                { echo "$as_me:$LINENO: result: $ac_res" >&5
44497 echo "${ECHO_T}$ac_res" >&6; }
44498
44499     if eval test \$wx_cv_func_$wx_func = yes
44500     then
44501       cat >>confdefs.h <<_ACEOF
44502 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
44503 _ACEOF
44504
44505
44506     else
44507       :
44508
44509     fi
44510   done
44511
44512
44513 fi
44514
44515
44516
44517
44518 EXTRALIBS_ESD=
44519 { echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
44520 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6; }
44521 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
44522   echo $ECHO_N "(cached) $ECHO_C" >&6
44523 else
44524   ac_check_lib_save_LIBS=$LIBS
44525 LIBS="-lesd  $LIBS"
44526 cat >conftest.$ac_ext <<_ACEOF
44527 /* confdefs.h.  */
44528 _ACEOF
44529 cat confdefs.h >>conftest.$ac_ext
44530 cat >>conftest.$ac_ext <<_ACEOF
44531 /* end confdefs.h.  */
44532
44533 /* Override any GCC internal prototype to avoid an error.
44534    Use char because int might match the return type of a GCC
44535    builtin and then its argument prototype would still apply.  */
44536 #ifdef __cplusplus
44537 extern "C"
44538 #endif
44539 char esd_close ();
44540 int
44541 main ()
44542 {
44543 return esd_close ();
44544   ;
44545   return 0;
44546 }
44547 _ACEOF
44548 rm -f conftest.$ac_objext conftest$ac_exeext
44549 if { (ac_try="$ac_link"
44550 case "(($ac_try" in
44551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44552   *) ac_try_echo=$ac_try;;
44553 esac
44554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44555   (eval "$ac_link") 2>conftest.er1
44556   ac_status=$?
44557   grep -v '^ *+' conftest.er1 >conftest.err
44558   rm -f conftest.er1
44559   cat conftest.err >&5
44560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44561   (exit $ac_status); } &&
44562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44563   { (case "(($ac_try" in
44564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44565   *) ac_try_echo=$ac_try;;
44566 esac
44567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44568   (eval "$ac_try") 2>&5
44569   ac_status=$?
44570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44571   (exit $ac_status); }; } &&
44572          { ac_try='test -s conftest$ac_exeext'
44573   { (case "(($ac_try" in
44574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44575   *) ac_try_echo=$ac_try;;
44576 esac
44577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44578   (eval "$ac_try") 2>&5
44579   ac_status=$?
44580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44581   (exit $ac_status); }; }; then
44582   ac_cv_lib_esd_esd_close=yes
44583 else
44584   echo "$as_me: failed program was:" >&5
44585 sed 's/^/| /' conftest.$ac_ext >&5
44586
44587         ac_cv_lib_esd_esd_close=no
44588 fi
44589
44590 rm -f core conftest.err conftest.$ac_objext \
44591       conftest$ac_exeext conftest.$ac_ext
44592 LIBS=$ac_check_lib_save_LIBS
44593 fi
44594 { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
44595 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6; }
44596 if test $ac_cv_lib_esd_esd_close = yes; then
44597
44598
44599 for ac_header in esd.h
44600 do
44601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44603   { echo "$as_me:$LINENO: checking for $ac_header" >&5
44604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44606   echo $ECHO_N "(cached) $ECHO_C" >&6
44607 fi
44608 ac_res=`eval echo '${'$as_ac_Header'}'`
44609                { echo "$as_me:$LINENO: result: $ac_res" >&5
44610 echo "${ECHO_T}$ac_res" >&6; }
44611 else
44612   # Is the header compilable?
44613 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
44614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
44615 cat >conftest.$ac_ext <<_ACEOF
44616 /* confdefs.h.  */
44617 _ACEOF
44618 cat confdefs.h >>conftest.$ac_ext
44619 cat >>conftest.$ac_ext <<_ACEOF
44620 /* end confdefs.h.  */
44621 $ac_includes_default
44622 #include <$ac_header>
44623 _ACEOF
44624 rm -f conftest.$ac_objext
44625 if { (ac_try="$ac_compile"
44626 case "(($ac_try" in
44627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44628   *) ac_try_echo=$ac_try;;
44629 esac
44630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44631   (eval "$ac_compile") 2>conftest.er1
44632   ac_status=$?
44633   grep -v '^ *+' conftest.er1 >conftest.err
44634   rm -f conftest.er1
44635   cat conftest.err >&5
44636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44637   (exit $ac_status); } &&
44638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44639   { (case "(($ac_try" in
44640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44641   *) ac_try_echo=$ac_try;;
44642 esac
44643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44644   (eval "$ac_try") 2>&5
44645   ac_status=$?
44646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44647   (exit $ac_status); }; } &&
44648          { ac_try='test -s conftest.$ac_objext'
44649   { (case "(($ac_try" in
44650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44651   *) ac_try_echo=$ac_try;;
44652 esac
44653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44654   (eval "$ac_try") 2>&5
44655   ac_status=$?
44656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44657   (exit $ac_status); }; }; then
44658   ac_header_compiler=yes
44659 else
44660   echo "$as_me: failed program was:" >&5
44661 sed 's/^/| /' conftest.$ac_ext >&5
44662
44663         ac_header_compiler=no
44664 fi
44665
44666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44668 echo "${ECHO_T}$ac_header_compiler" >&6; }
44669
44670 # Is the header present?
44671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
44672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
44673 cat >conftest.$ac_ext <<_ACEOF
44674 /* confdefs.h.  */
44675 _ACEOF
44676 cat confdefs.h >>conftest.$ac_ext
44677 cat >>conftest.$ac_ext <<_ACEOF
44678 /* end confdefs.h.  */
44679 #include <$ac_header>
44680 _ACEOF
44681 if { (ac_try="$ac_cpp conftest.$ac_ext"
44682 case "(($ac_try" in
44683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44684   *) ac_try_echo=$ac_try;;
44685 esac
44686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
44688   ac_status=$?
44689   grep -v '^ *+' conftest.er1 >conftest.err
44690   rm -f conftest.er1
44691   cat conftest.err >&5
44692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44693   (exit $ac_status); } >/dev/null; then
44694   if test -s conftest.err; then
44695     ac_cpp_err=$ac_c_preproc_warn_flag
44696     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44697   else
44698     ac_cpp_err=
44699   fi
44700 else
44701   ac_cpp_err=yes
44702 fi
44703 if test -z "$ac_cpp_err"; then
44704   ac_header_preproc=yes
44705 else
44706   echo "$as_me: failed program was:" >&5
44707 sed 's/^/| /' conftest.$ac_ext >&5
44708
44709   ac_header_preproc=no
44710 fi
44711
44712 rm -f conftest.err conftest.$ac_ext
44713 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44714 echo "${ECHO_T}$ac_header_preproc" >&6; }
44715
44716 # So?  What about this header?
44717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44718   yes:no: )
44719     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44723     ac_header_preproc=yes
44724     ;;
44725   no:yes:* )
44726     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44728     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44729 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44730     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44732     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44733 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44736     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44738     ( cat <<\_ASBOX
44739 ## ----------------------------------------- ##
44740 ## Report this to wx-dev@lists.wxwidgets.org ##
44741 ## ----------------------------------------- ##
44742 _ASBOX
44743      ) | sed "s/^/$as_me: WARNING:     /" >&2
44744     ;;
44745 esac
44746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
44747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
44748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44749   echo $ECHO_N "(cached) $ECHO_C" >&6
44750 else
44751   eval "$as_ac_Header=\$ac_header_preproc"
44752 fi
44753 ac_res=`eval echo '${'$as_ac_Header'}'`
44754                { echo "$as_me:$LINENO: result: $ac_res" >&5
44755 echo "${ECHO_T}$ac_res" >&6; }
44756
44757 fi
44758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44759   cat >>confdefs.h <<_ACEOF
44760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44761 _ACEOF
44762
44763     EXTRALIBS_ESD="-lesd"
44764
44765 fi
44766
44767 done
44768
44769
44770 fi
44771
44772
44773
44774 { echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
44775 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6; }
44776 cat >conftest.$ac_ext <<_ACEOF
44777 /* confdefs.h.  */
44778 _ACEOF
44779 cat confdefs.h >>conftest.$ac_ext
44780 cat >>conftest.$ac_ext <<_ACEOF
44781 /* end confdefs.h.  */
44782 #ifdef __linux__
44783                 #include <linux/cdrom.h>
44784                 #else
44785                 /* For Solaris */
44786                 #include <sys/cdio.h>
44787                 #endif
44788
44789 int
44790 main ()
44791 {
44792 struct cdrom_tocentry entry, old_entry;
44793   ;
44794   return 0;
44795 }
44796 _ACEOF
44797 rm -f conftest.$ac_objext
44798 if { (ac_try="$ac_compile"
44799 case "(($ac_try" in
44800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44801   *) ac_try_echo=$ac_try;;
44802 esac
44803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44804   (eval "$ac_compile") 2>conftest.er1
44805   ac_status=$?
44806   grep -v '^ *+' conftest.er1 >conftest.err
44807   rm -f conftest.er1
44808   cat conftest.err >&5
44809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44810   (exit $ac_status); } &&
44811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
44812   { (case "(($ac_try" in
44813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44814   *) ac_try_echo=$ac_try;;
44815 esac
44816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44817   (eval "$ac_try") 2>&5
44818   ac_status=$?
44819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44820   (exit $ac_status); }; } &&
44821          { ac_try='test -s conftest.$ac_objext'
44822   { (case "(($ac_try" in
44823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44824   *) ac_try_echo=$ac_try;;
44825 esac
44826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44827   (eval "$ac_try") 2>&5
44828   ac_status=$?
44829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44830   (exit $ac_status); }; }; then
44831   { echo "$as_me:$LINENO: result: yes" >&5
44832 echo "${ECHO_T}yes" >&6; }
44833                 cat >>confdefs.h <<\_ACEOF
44834 #define HAVE_KNOWN_CDROM_INTERFACE 1
44835 _ACEOF
44836
44837 else
44838   echo "$as_me: failed program was:" >&5
44839 sed 's/^/| /' conftest.$ac_ext >&5
44840
44841         { echo "$as_me:$LINENO: result: no" >&5
44842 echo "${ECHO_T}no" >&6; }
44843 fi
44844
44845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44846
44847
44848 cat >confcache <<\_ACEOF
44849 # This file is a shell script that caches the results of configure
44850 # tests run on this system so they can be shared between configure
44851 # scripts and configure runs, see configure's option --config-cache.
44852 # It is not useful on other systems.  If it contains results you don't
44853 # want to keep, you may remove or edit it.
44854 #
44855 # config.status only pays attention to the cache file if you give it
44856 # the --recheck option to rerun configure.
44857 #
44858 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44859 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44860 # following values.
44861
44862 _ACEOF
44863
44864 # The following way of writing the cache mishandles newlines in values,
44865 # but we know of no workaround that is simple, portable, and efficient.
44866 # So, we kill variables containing newlines.
44867 # Ultrix sh set writes to stderr and can't be redirected directly,
44868 # and sets the high bit in the cache file unless we assign to the vars.
44869 (
44870   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44871     eval ac_val=\$$ac_var
44872     case $ac_val in #(
44873     *${as_nl}*)
44874       case $ac_var in #(
44875       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44876 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44877       esac
44878       case $ac_var in #(
44879       _ | IFS | as_nl) ;; #(
44880       *) $as_unset $ac_var ;;
44881       esac ;;
44882     esac
44883   done
44884
44885   (set) 2>&1 |
44886     case $as_nl`(ac_space=' '; set) 2>&1` in #(
44887     *${as_nl}ac_space=\ *)
44888       # `set' does not quote correctly, so add quotes (double-quote
44889       # substitution turns \\\\ into \\, and sed turns \\ into \).
44890       sed -n \
44891         "s/'/'\\\\''/g;
44892           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44893       ;; #(
44894     *)
44895       # `set' quotes correctly as required by POSIX, so do not add quotes.
44896       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44897       ;;
44898     esac |
44899     sort
44900 ) |
44901   sed '
44902      /^ac_cv_env_/b end
44903      t clear
44904      :clear
44905      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44906      t end
44907      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44908      :end' >>confcache
44909 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44910   if test -w "$cache_file"; then
44911     test "x$cache_file" != "x/dev/null" &&
44912       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44913 echo "$as_me: updating cache $cache_file" >&6;}
44914     cat confcache >$cache_file
44915   else
44916     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44917 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44918   fi
44919 fi
44920 rm -f confcache
44921
44922
44923 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
44924
44925
44926     THREADS_LINK=
44927     THREADS_CFLAGS=
44928
44929     if test "$wxUSE_THREADS" = "yes" ; then
44930         if test "$USE_BEOS" = 1; then
44931             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
44932 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
44933             wxUSE_THREADS="no"
44934         fi
44935     fi
44936
44937     if test "$wxUSE_THREADS" = "yes" ; then
44938
44939
44940                                 THREAD_OPTS="-pthread"
44941         case "${host}" in
44942           *-*-solaris2* | *-*-sunos4* )
44943                 if test "x$GCC" = "xyes"; then
44944                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
44945                 else
44946                     THREAD_OPTS="-mt $THREAD_OPTS"
44947                 fi
44948                 ;;
44949           *-*-freebsd*)
44950                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
44951                 ;;
44952           *-*-darwin* | *-*-cygwin* )
44953                                                 THREAD_OPTS=""
44954                 ;;
44955           *-*-aix*)
44956                                 THREAD_OPTS="pthreads"
44957                 ;;
44958           *-hp-hpux* )
44959                 if test "x$GCC" = "xyes"; then
44960                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
44961                         THREAD_OPTS=""
44962                 else
44963                                                             THREAD_OPTS="-mt"
44964                 fi
44965                 ;;
44966
44967           *-*-irix* )
44968                                                                 if test "x$GCC" = "xyes"; then
44969                     THREAD_OPTS=""
44970                 fi
44971                 ;;
44972
44973           *-*-*UnixWare*)
44974                                 if test "x$GCC" != "xyes"; then
44975                     THREAD_OPTS="-Ethread"
44976                 fi
44977                 ;;
44978         esac
44979
44980                                 THREAD_OPTS="$THREAD_OPTS pthread none"
44981
44982                 THREADS_OK=no
44983         for flag in $THREAD_OPTS; do
44984             case $flag in
44985                 none)
44986                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
44987 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
44988                     ;;
44989
44990                 -*)
44991                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
44992 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
44993                     THREADS_CFLAGS="$flag"
44994                     ;;
44995
44996                 *)
44997                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
44998 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
44999                     THREADS_LINK="-l$flag"
45000                     ;;
45001               esac
45002
45003               save_LIBS="$LIBS"
45004               save_CFLAGS="$CFLAGS"
45005               LIBS="$THREADS_LINK $LIBS"
45006               CFLAGS="$THREADS_CFLAGS $CFLAGS"
45007
45008               cat >conftest.$ac_ext <<_ACEOF
45009 /* confdefs.h.  */
45010 _ACEOF
45011 cat confdefs.h >>conftest.$ac_ext
45012 cat >>conftest.$ac_ext <<_ACEOF
45013 /* end confdefs.h.  */
45014 #include <pthread.h>
45015 int
45016 main ()
45017 {
45018 pthread_create(0,0,0,0);
45019   ;
45020   return 0;
45021 }
45022 _ACEOF
45023 rm -f conftest.$ac_objext conftest$ac_exeext
45024 if { (ac_try="$ac_link"
45025 case "(($ac_try" in
45026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45027   *) ac_try_echo=$ac_try;;
45028 esac
45029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45030   (eval "$ac_link") 2>conftest.er1
45031   ac_status=$?
45032   grep -v '^ *+' conftest.er1 >conftest.err
45033   rm -f conftest.er1
45034   cat conftest.err >&5
45035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45036   (exit $ac_status); } &&
45037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45038   { (case "(($ac_try" in
45039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45040   *) ac_try_echo=$ac_try;;
45041 esac
45042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45043   (eval "$ac_try") 2>&5
45044   ac_status=$?
45045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45046   (exit $ac_status); }; } &&
45047          { ac_try='test -s conftest$ac_exeext'
45048   { (case "(($ac_try" in
45049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45050   *) ac_try_echo=$ac_try;;
45051 esac
45052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45053   (eval "$ac_try") 2>&5
45054   ac_status=$?
45055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45056   (exit $ac_status); }; }; then
45057   THREADS_OK=yes
45058 else
45059   echo "$as_me: failed program was:" >&5
45060 sed 's/^/| /' conftest.$ac_ext >&5
45061
45062
45063 fi
45064
45065 rm -f core conftest.err conftest.$ac_objext \
45066       conftest$ac_exeext conftest.$ac_ext
45067
45068               LIBS="$save_LIBS"
45069               CFLAGS="$save_CFLAGS"
45070
45071               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
45072 echo "${ECHO_T}$THREADS_OK" >&6; }
45073               if test "x$THREADS_OK" = "xyes"; then
45074                       break;
45075               fi
45076
45077               THREADS_LINK=""
45078               THREADS_CFLAGS=""
45079       done
45080
45081       if test "x$THREADS_OK" != "xyes"; then
45082           wxUSE_THREADS=no
45083           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
45084 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
45085       else
45086                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
45087           LIBS="$THREADS_LINK $LIBS"
45088
45089           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
45090 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
45091           flag=no
45092           case "${host}" in
45093             *-aix*)
45094                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
45095                 flag="-D_THREAD_SAFE"
45096                 ;;
45097             *-freebsd*)
45098                 flag="-D_THREAD_SAFE"
45099                 ;;
45100             *-hp-hpux* )
45101                 flag="-D_REENTRANT"
45102                 if test "x$GCC" != "xyes"; then
45103                                         flag="$flag -D_RWSTD_MULTI_THREAD"
45104                 fi
45105                 ;;
45106             *solaris* | alpha*-osf*)
45107                 flag="-D_REENTRANT"
45108                 ;;
45109           esac
45110           { echo "$as_me:$LINENO: result: ${flag}" >&5
45111 echo "${ECHO_T}${flag}" >&6; }
45112           if test "x$flag" != xno; then
45113               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
45114           fi
45115
45116                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
45117       fi
45118     fi
45119
45120         if test "$wxUSE_THREADS" = "yes" ; then
45121
45122 for ac_func in thr_setconcurrency
45123 do
45124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45128   echo $ECHO_N "(cached) $ECHO_C" >&6
45129 else
45130   cat >conftest.$ac_ext <<_ACEOF
45131 /* confdefs.h.  */
45132 _ACEOF
45133 cat confdefs.h >>conftest.$ac_ext
45134 cat >>conftest.$ac_ext <<_ACEOF
45135 /* end confdefs.h.  */
45136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45138 #define $ac_func innocuous_$ac_func
45139
45140 /* System header to define __stub macros and hopefully few prototypes,
45141     which can conflict with char $ac_func (); below.
45142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45143     <limits.h> exists even on freestanding compilers.  */
45144
45145 #ifdef __STDC__
45146 # include <limits.h>
45147 #else
45148 # include <assert.h>
45149 #endif
45150
45151 #undef $ac_func
45152
45153 /* Override any GCC internal prototype to avoid an error.
45154    Use char because int might match the return type of a GCC
45155    builtin and then its argument prototype would still apply.  */
45156 #ifdef __cplusplus
45157 extern "C"
45158 #endif
45159 char $ac_func ();
45160 /* The GNU C library defines this for functions which it implements
45161     to always fail with ENOSYS.  Some functions are actually named
45162     something starting with __ and the normal name is an alias.  */
45163 #if defined __stub_$ac_func || defined __stub___$ac_func
45164 choke me
45165 #endif
45166
45167 int
45168 main ()
45169 {
45170 return $ac_func ();
45171   ;
45172   return 0;
45173 }
45174 _ACEOF
45175 rm -f conftest.$ac_objext conftest$ac_exeext
45176 if { (ac_try="$ac_link"
45177 case "(($ac_try" in
45178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45179   *) ac_try_echo=$ac_try;;
45180 esac
45181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45182   (eval "$ac_link") 2>conftest.er1
45183   ac_status=$?
45184   grep -v '^ *+' conftest.er1 >conftest.err
45185   rm -f conftest.er1
45186   cat conftest.err >&5
45187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45188   (exit $ac_status); } &&
45189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45190   { (case "(($ac_try" in
45191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45192   *) ac_try_echo=$ac_try;;
45193 esac
45194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45195   (eval "$ac_try") 2>&5
45196   ac_status=$?
45197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45198   (exit $ac_status); }; } &&
45199          { ac_try='test -s conftest$ac_exeext'
45200   { (case "(($ac_try" in
45201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45202   *) ac_try_echo=$ac_try;;
45203 esac
45204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45205   (eval "$ac_try") 2>&5
45206   ac_status=$?
45207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45208   (exit $ac_status); }; }; then
45209   eval "$as_ac_var=yes"
45210 else
45211   echo "$as_me: failed program was:" >&5
45212 sed 's/^/| /' conftest.$ac_ext >&5
45213
45214         eval "$as_ac_var=no"
45215 fi
45216
45217 rm -f core conftest.err conftest.$ac_objext \
45218       conftest$ac_exeext conftest.$ac_ext
45219 fi
45220 ac_res=`eval echo '${'$as_ac_var'}'`
45221                { echo "$as_me:$LINENO: result: $ac_res" >&5
45222 echo "${ECHO_T}$ac_res" >&6; }
45223 if test `eval echo '${'$as_ac_var'}'` = yes; then
45224   cat >>confdefs.h <<_ACEOF
45225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45226 _ACEOF
45227
45228 fi
45229 done
45230
45231
45232                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
45233 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
45234 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
45235   echo $ECHO_N "(cached) $ECHO_C" >&6
45236 else
45237
45238         cat >conftest.$ac_ext <<_ACEOF
45239 /* confdefs.h.  */
45240 _ACEOF
45241 cat confdefs.h >>conftest.$ac_ext
45242 cat >>conftest.$ac_ext <<_ACEOF
45243 /* end confdefs.h.  */
45244 #include <pthread.h>
45245                void ThreadCleanupFunc(void *p);
45246
45247 int
45248 main ()
45249 {
45250
45251                 void *p;
45252                 pthread_cleanup_push(ThreadCleanupFunc, p);
45253                 pthread_cleanup_pop(0);
45254
45255   ;
45256   return 0;
45257 }
45258 _ACEOF
45259 rm -f conftest.$ac_objext
45260 if { (ac_try="$ac_compile"
45261 case "(($ac_try" in
45262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45263   *) ac_try_echo=$ac_try;;
45264 esac
45265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45266   (eval "$ac_compile") 2>conftest.er1
45267   ac_status=$?
45268   grep -v '^ *+' conftest.er1 >conftest.err
45269   rm -f conftest.er1
45270   cat conftest.err >&5
45271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45272   (exit $ac_status); } &&
45273          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45274   { (case "(($ac_try" in
45275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45276   *) ac_try_echo=$ac_try;;
45277 esac
45278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45279   (eval "$ac_try") 2>&5
45280   ac_status=$?
45281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45282   (exit $ac_status); }; } &&
45283          { ac_try='test -s conftest.$ac_objext'
45284   { (case "(($ac_try" in
45285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45286   *) ac_try_echo=$ac_try;;
45287 esac
45288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45289   (eval "$ac_try") 2>&5
45290   ac_status=$?
45291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45292   (exit $ac_status); }; }; then
45293
45294                wx_cv_func_pthread_cleanup=yes
45295
45296 else
45297   echo "$as_me: failed program was:" >&5
45298 sed 's/^/| /' conftest.$ac_ext >&5
45299
45300
45301                wx_cv_func_pthread_cleanup=no
45302
45303
45304 fi
45305
45306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45307
45308 fi
45309 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
45310 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
45311       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
45312         cat >>confdefs.h <<\_ACEOF
45313 #define wxHAVE_PTHREAD_CLEANUP 1
45314 _ACEOF
45315
45316       fi
45317
45318
45319 for ac_header in sched.h
45320 do
45321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45323   { echo "$as_me:$LINENO: checking for $ac_header" >&5
45324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45326   echo $ECHO_N "(cached) $ECHO_C" >&6
45327 fi
45328 ac_res=`eval echo '${'$as_ac_Header'}'`
45329                { echo "$as_me:$LINENO: result: $ac_res" >&5
45330 echo "${ECHO_T}$ac_res" >&6; }
45331 else
45332   # Is the header compilable?
45333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
45334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
45335 cat >conftest.$ac_ext <<_ACEOF
45336 /* confdefs.h.  */
45337 _ACEOF
45338 cat confdefs.h >>conftest.$ac_ext
45339 cat >>conftest.$ac_ext <<_ACEOF
45340 /* end confdefs.h.  */
45341 $ac_includes_default
45342 #include <$ac_header>
45343 _ACEOF
45344 rm -f conftest.$ac_objext
45345 if { (ac_try="$ac_compile"
45346 case "(($ac_try" in
45347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45348   *) ac_try_echo=$ac_try;;
45349 esac
45350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45351   (eval "$ac_compile") 2>conftest.er1
45352   ac_status=$?
45353   grep -v '^ *+' conftest.er1 >conftest.err
45354   rm -f conftest.er1
45355   cat conftest.err >&5
45356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45357   (exit $ac_status); } &&
45358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45359   { (case "(($ac_try" in
45360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45361   *) ac_try_echo=$ac_try;;
45362 esac
45363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45364   (eval "$ac_try") 2>&5
45365   ac_status=$?
45366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45367   (exit $ac_status); }; } &&
45368          { ac_try='test -s conftest.$ac_objext'
45369   { (case "(($ac_try" in
45370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45371   *) ac_try_echo=$ac_try;;
45372 esac
45373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45374   (eval "$ac_try") 2>&5
45375   ac_status=$?
45376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45377   (exit $ac_status); }; }; then
45378   ac_header_compiler=yes
45379 else
45380   echo "$as_me: failed program was:" >&5
45381 sed 's/^/| /' conftest.$ac_ext >&5
45382
45383         ac_header_compiler=no
45384 fi
45385
45386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45388 echo "${ECHO_T}$ac_header_compiler" >&6; }
45389
45390 # Is the header present?
45391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
45392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
45393 cat >conftest.$ac_ext <<_ACEOF
45394 /* confdefs.h.  */
45395 _ACEOF
45396 cat confdefs.h >>conftest.$ac_ext
45397 cat >>conftest.$ac_ext <<_ACEOF
45398 /* end confdefs.h.  */
45399 #include <$ac_header>
45400 _ACEOF
45401 if { (ac_try="$ac_cpp conftest.$ac_ext"
45402 case "(($ac_try" in
45403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45404   *) ac_try_echo=$ac_try;;
45405 esac
45406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45408   ac_status=$?
45409   grep -v '^ *+' conftest.er1 >conftest.err
45410   rm -f conftest.er1
45411   cat conftest.err >&5
45412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45413   (exit $ac_status); } >/dev/null; then
45414   if test -s conftest.err; then
45415     ac_cpp_err=$ac_c_preproc_warn_flag
45416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45417   else
45418     ac_cpp_err=
45419   fi
45420 else
45421   ac_cpp_err=yes
45422 fi
45423 if test -z "$ac_cpp_err"; then
45424   ac_header_preproc=yes
45425 else
45426   echo "$as_me: failed program was:" >&5
45427 sed 's/^/| /' conftest.$ac_ext >&5
45428
45429   ac_header_preproc=no
45430 fi
45431
45432 rm -f conftest.err conftest.$ac_ext
45433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45434 echo "${ECHO_T}$ac_header_preproc" >&6; }
45435
45436 # So?  What about this header?
45437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45438   yes:no: )
45439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45443     ac_header_preproc=yes
45444     ;;
45445   no:yes:* )
45446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45458     ( cat <<\_ASBOX
45459 ## ----------------------------------------- ##
45460 ## Report this to wx-dev@lists.wxwidgets.org ##
45461 ## ----------------------------------------- ##
45462 _ASBOX
45463      ) | sed "s/^/$as_me: WARNING:     /" >&2
45464     ;;
45465 esac
45466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45469   echo $ECHO_N "(cached) $ECHO_C" >&6
45470 else
45471   eval "$as_ac_Header=\$ac_header_preproc"
45472 fi
45473 ac_res=`eval echo '${'$as_ac_Header'}'`
45474                { echo "$as_me:$LINENO: result: $ac_res" >&5
45475 echo "${ECHO_T}$ac_res" >&6; }
45476
45477 fi
45478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45479   cat >>confdefs.h <<_ACEOF
45480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45481 _ACEOF
45482
45483 fi
45484
45485 done
45486
45487       if test "$ac_cv_header_sched_h" = "yes"; then
45488           { echo "$as_me:$LINENO: checking for sched_yield" >&5
45489 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
45490 if test "${ac_cv_func_sched_yield+set}" = set; then
45491   echo $ECHO_N "(cached) $ECHO_C" >&6
45492 else
45493   cat >conftest.$ac_ext <<_ACEOF
45494 /* confdefs.h.  */
45495 _ACEOF
45496 cat confdefs.h >>conftest.$ac_ext
45497 cat >>conftest.$ac_ext <<_ACEOF
45498 /* end confdefs.h.  */
45499 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
45500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45501 #define sched_yield innocuous_sched_yield
45502
45503 /* System header to define __stub macros and hopefully few prototypes,
45504     which can conflict with char sched_yield (); below.
45505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45506     <limits.h> exists even on freestanding compilers.  */
45507
45508 #ifdef __STDC__
45509 # include <limits.h>
45510 #else
45511 # include <assert.h>
45512 #endif
45513
45514 #undef sched_yield
45515
45516 /* Override any GCC internal prototype to avoid an error.
45517    Use char because int might match the return type of a GCC
45518    builtin and then its argument prototype would still apply.  */
45519 #ifdef __cplusplus
45520 extern "C"
45521 #endif
45522 char sched_yield ();
45523 /* The GNU C library defines this for functions which it implements
45524     to always fail with ENOSYS.  Some functions are actually named
45525     something starting with __ and the normal name is an alias.  */
45526 #if defined __stub_sched_yield || defined __stub___sched_yield
45527 choke me
45528 #endif
45529
45530 int
45531 main ()
45532 {
45533 return sched_yield ();
45534   ;
45535   return 0;
45536 }
45537 _ACEOF
45538 rm -f conftest.$ac_objext conftest$ac_exeext
45539 if { (ac_try="$ac_link"
45540 case "(($ac_try" in
45541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45542   *) ac_try_echo=$ac_try;;
45543 esac
45544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45545   (eval "$ac_link") 2>conftest.er1
45546   ac_status=$?
45547   grep -v '^ *+' conftest.er1 >conftest.err
45548   rm -f conftest.er1
45549   cat conftest.err >&5
45550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45551   (exit $ac_status); } &&
45552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45553   { (case "(($ac_try" in
45554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45555   *) ac_try_echo=$ac_try;;
45556 esac
45557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45558   (eval "$ac_try") 2>&5
45559   ac_status=$?
45560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45561   (exit $ac_status); }; } &&
45562          { ac_try='test -s conftest$ac_exeext'
45563   { (case "(($ac_try" in
45564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45565   *) ac_try_echo=$ac_try;;
45566 esac
45567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45568   (eval "$ac_try") 2>&5
45569   ac_status=$?
45570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45571   (exit $ac_status); }; }; then
45572   ac_cv_func_sched_yield=yes
45573 else
45574   echo "$as_me: failed program was:" >&5
45575 sed 's/^/| /' conftest.$ac_ext >&5
45576
45577         ac_cv_func_sched_yield=no
45578 fi
45579
45580 rm -f core conftest.err conftest.$ac_objext \
45581       conftest$ac_exeext conftest.$ac_ext
45582 fi
45583 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
45584 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
45585 if test $ac_cv_func_sched_yield = yes; then
45586   cat >>confdefs.h <<\_ACEOF
45587 #define HAVE_SCHED_YIELD 1
45588 _ACEOF
45589
45590 else
45591
45592                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
45593 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
45594 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
45595   echo $ECHO_N "(cached) $ECHO_C" >&6
45596 else
45597   ac_check_lib_save_LIBS=$LIBS
45598 LIBS="-lposix4  $LIBS"
45599 cat >conftest.$ac_ext <<_ACEOF
45600 /* confdefs.h.  */
45601 _ACEOF
45602 cat confdefs.h >>conftest.$ac_ext
45603 cat >>conftest.$ac_ext <<_ACEOF
45604 /* end confdefs.h.  */
45605
45606 /* Override any GCC internal prototype to avoid an error.
45607    Use char because int might match the return type of a GCC
45608    builtin and then its argument prototype would still apply.  */
45609 #ifdef __cplusplus
45610 extern "C"
45611 #endif
45612 char sched_yield ();
45613 int
45614 main ()
45615 {
45616 return sched_yield ();
45617   ;
45618   return 0;
45619 }
45620 _ACEOF
45621 rm -f conftest.$ac_objext conftest$ac_exeext
45622 if { (ac_try="$ac_link"
45623 case "(($ac_try" in
45624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45625   *) ac_try_echo=$ac_try;;
45626 esac
45627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45628   (eval "$ac_link") 2>conftest.er1
45629   ac_status=$?
45630   grep -v '^ *+' conftest.er1 >conftest.err
45631   rm -f conftest.er1
45632   cat conftest.err >&5
45633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45634   (exit $ac_status); } &&
45635          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45636   { (case "(($ac_try" in
45637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45638   *) ac_try_echo=$ac_try;;
45639 esac
45640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45641   (eval "$ac_try") 2>&5
45642   ac_status=$?
45643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45644   (exit $ac_status); }; } &&
45645          { ac_try='test -s conftest$ac_exeext'
45646   { (case "(($ac_try" in
45647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45648   *) ac_try_echo=$ac_try;;
45649 esac
45650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45651   (eval "$ac_try") 2>&5
45652   ac_status=$?
45653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45654   (exit $ac_status); }; }; then
45655   ac_cv_lib_posix4_sched_yield=yes
45656 else
45657   echo "$as_me: failed program was:" >&5
45658 sed 's/^/| /' conftest.$ac_ext >&5
45659
45660         ac_cv_lib_posix4_sched_yield=no
45661 fi
45662
45663 rm -f core conftest.err conftest.$ac_objext \
45664       conftest$ac_exeext conftest.$ac_ext
45665 LIBS=$ac_check_lib_save_LIBS
45666 fi
45667 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
45668 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
45669 if test $ac_cv_lib_posix4_sched_yield = yes; then
45670   cat >>confdefs.h <<\_ACEOF
45671 #define HAVE_SCHED_YIELD 1
45672 _ACEOF
45673  POSIX4_LINK=" -lposix4"
45674 else
45675   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
45676 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
45677
45678 fi
45679
45680
45681
45682 fi
45683
45684       fi
45685
45686                                           HAVE_PRIOR_FUNCS=0
45687       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
45688 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
45689 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
45690   echo $ECHO_N "(cached) $ECHO_C" >&6
45691 else
45692   cat >conftest.$ac_ext <<_ACEOF
45693 /* confdefs.h.  */
45694 _ACEOF
45695 cat confdefs.h >>conftest.$ac_ext
45696 cat >>conftest.$ac_ext <<_ACEOF
45697 /* end confdefs.h.  */
45698 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
45699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45700 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
45701
45702 /* System header to define __stub macros and hopefully few prototypes,
45703     which can conflict with char pthread_attr_getschedpolicy (); below.
45704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45705     <limits.h> exists even on freestanding compilers.  */
45706
45707 #ifdef __STDC__
45708 # include <limits.h>
45709 #else
45710 # include <assert.h>
45711 #endif
45712
45713 #undef pthread_attr_getschedpolicy
45714
45715 /* Override any GCC internal prototype to avoid an error.
45716    Use char because int might match the return type of a GCC
45717    builtin and then its argument prototype would still apply.  */
45718 #ifdef __cplusplus
45719 extern "C"
45720 #endif
45721 char pthread_attr_getschedpolicy ();
45722 /* The GNU C library defines this for functions which it implements
45723     to always fail with ENOSYS.  Some functions are actually named
45724     something starting with __ and the normal name is an alias.  */
45725 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
45726 choke me
45727 #endif
45728
45729 int
45730 main ()
45731 {
45732 return pthread_attr_getschedpolicy ();
45733   ;
45734   return 0;
45735 }
45736 _ACEOF
45737 rm -f conftest.$ac_objext conftest$ac_exeext
45738 if { (ac_try="$ac_link"
45739 case "(($ac_try" in
45740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45741   *) ac_try_echo=$ac_try;;
45742 esac
45743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45744   (eval "$ac_link") 2>conftest.er1
45745   ac_status=$?
45746   grep -v '^ *+' conftest.er1 >conftest.err
45747   rm -f conftest.er1
45748   cat conftest.err >&5
45749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45750   (exit $ac_status); } &&
45751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45752   { (case "(($ac_try" in
45753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45754   *) ac_try_echo=$ac_try;;
45755 esac
45756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45757   (eval "$ac_try") 2>&5
45758   ac_status=$?
45759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45760   (exit $ac_status); }; } &&
45761          { ac_try='test -s conftest$ac_exeext'
45762   { (case "(($ac_try" in
45763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45764   *) ac_try_echo=$ac_try;;
45765 esac
45766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45767   (eval "$ac_try") 2>&5
45768   ac_status=$?
45769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45770   (exit $ac_status); }; }; then
45771   ac_cv_func_pthread_attr_getschedpolicy=yes
45772 else
45773   echo "$as_me: failed program was:" >&5
45774 sed 's/^/| /' conftest.$ac_ext >&5
45775
45776         ac_cv_func_pthread_attr_getschedpolicy=no
45777 fi
45778
45779 rm -f core conftest.err conftest.$ac_objext \
45780       conftest$ac_exeext conftest.$ac_ext
45781 fi
45782 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
45783 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
45784 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
45785   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
45786 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
45787 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
45788   echo $ECHO_N "(cached) $ECHO_C" >&6
45789 else
45790   cat >conftest.$ac_ext <<_ACEOF
45791 /* confdefs.h.  */
45792 _ACEOF
45793 cat confdefs.h >>conftest.$ac_ext
45794 cat >>conftest.$ac_ext <<_ACEOF
45795 /* end confdefs.h.  */
45796 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
45797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45798 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
45799
45800 /* System header to define __stub macros and hopefully few prototypes,
45801     which can conflict with char pthread_attr_setschedparam (); below.
45802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45803     <limits.h> exists even on freestanding compilers.  */
45804
45805 #ifdef __STDC__
45806 # include <limits.h>
45807 #else
45808 # include <assert.h>
45809 #endif
45810
45811 #undef pthread_attr_setschedparam
45812
45813 /* Override any GCC internal prototype to avoid an error.
45814    Use char because int might match the return type of a GCC
45815    builtin and then its argument prototype would still apply.  */
45816 #ifdef __cplusplus
45817 extern "C"
45818 #endif
45819 char pthread_attr_setschedparam ();
45820 /* The GNU C library defines this for functions which it implements
45821     to always fail with ENOSYS.  Some functions are actually named
45822     something starting with __ and the normal name is an alias.  */
45823 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
45824 choke me
45825 #endif
45826
45827 int
45828 main ()
45829 {
45830 return pthread_attr_setschedparam ();
45831   ;
45832   return 0;
45833 }
45834 _ACEOF
45835 rm -f conftest.$ac_objext conftest$ac_exeext
45836 if { (ac_try="$ac_link"
45837 case "(($ac_try" in
45838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45839   *) ac_try_echo=$ac_try;;
45840 esac
45841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45842   (eval "$ac_link") 2>conftest.er1
45843   ac_status=$?
45844   grep -v '^ *+' conftest.er1 >conftest.err
45845   rm -f conftest.er1
45846   cat conftest.err >&5
45847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45848   (exit $ac_status); } &&
45849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45850   { (case "(($ac_try" in
45851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45852   *) ac_try_echo=$ac_try;;
45853 esac
45854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45855   (eval "$ac_try") 2>&5
45856   ac_status=$?
45857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45858   (exit $ac_status); }; } &&
45859          { ac_try='test -s conftest$ac_exeext'
45860   { (case "(($ac_try" in
45861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45862   *) ac_try_echo=$ac_try;;
45863 esac
45864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45865   (eval "$ac_try") 2>&5
45866   ac_status=$?
45867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45868   (exit $ac_status); }; }; then
45869   ac_cv_func_pthread_attr_setschedparam=yes
45870 else
45871   echo "$as_me: failed program was:" >&5
45872 sed 's/^/| /' conftest.$ac_ext >&5
45873
45874         ac_cv_func_pthread_attr_setschedparam=no
45875 fi
45876
45877 rm -f core conftest.err conftest.$ac_objext \
45878       conftest$ac_exeext conftest.$ac_ext
45879 fi
45880 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
45881 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
45882 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
45883   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
45884 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
45885 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
45886   echo $ECHO_N "(cached) $ECHO_C" >&6
45887 else
45888   cat >conftest.$ac_ext <<_ACEOF
45889 /* confdefs.h.  */
45890 _ACEOF
45891 cat confdefs.h >>conftest.$ac_ext
45892 cat >>conftest.$ac_ext <<_ACEOF
45893 /* end confdefs.h.  */
45894 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
45895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45896 #define sched_get_priority_max innocuous_sched_get_priority_max
45897
45898 /* System header to define __stub macros and hopefully few prototypes,
45899     which can conflict with char sched_get_priority_max (); below.
45900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45901     <limits.h> exists even on freestanding compilers.  */
45902
45903 #ifdef __STDC__
45904 # include <limits.h>
45905 #else
45906 # include <assert.h>
45907 #endif
45908
45909 #undef sched_get_priority_max
45910
45911 /* Override any GCC internal prototype to avoid an error.
45912    Use char because int might match the return type of a GCC
45913    builtin and then its argument prototype would still apply.  */
45914 #ifdef __cplusplus
45915 extern "C"
45916 #endif
45917 char sched_get_priority_max ();
45918 /* The GNU C library defines this for functions which it implements
45919     to always fail with ENOSYS.  Some functions are actually named
45920     something starting with __ and the normal name is an alias.  */
45921 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
45922 choke me
45923 #endif
45924
45925 int
45926 main ()
45927 {
45928 return sched_get_priority_max ();
45929   ;
45930   return 0;
45931 }
45932 _ACEOF
45933 rm -f conftest.$ac_objext conftest$ac_exeext
45934 if { (ac_try="$ac_link"
45935 case "(($ac_try" in
45936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45937   *) ac_try_echo=$ac_try;;
45938 esac
45939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45940   (eval "$ac_link") 2>conftest.er1
45941   ac_status=$?
45942   grep -v '^ *+' conftest.er1 >conftest.err
45943   rm -f conftest.er1
45944   cat conftest.err >&5
45945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45946   (exit $ac_status); } &&
45947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
45948   { (case "(($ac_try" in
45949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45950   *) ac_try_echo=$ac_try;;
45951 esac
45952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45953   (eval "$ac_try") 2>&5
45954   ac_status=$?
45955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45956   (exit $ac_status); }; } &&
45957          { ac_try='test -s conftest$ac_exeext'
45958   { (case "(($ac_try" in
45959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45960   *) ac_try_echo=$ac_try;;
45961 esac
45962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45963   (eval "$ac_try") 2>&5
45964   ac_status=$?
45965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45966   (exit $ac_status); }; }; then
45967   ac_cv_func_sched_get_priority_max=yes
45968 else
45969   echo "$as_me: failed program was:" >&5
45970 sed 's/^/| /' conftest.$ac_ext >&5
45971
45972         ac_cv_func_sched_get_priority_max=no
45973 fi
45974
45975 rm -f core conftest.err conftest.$ac_objext \
45976       conftest$ac_exeext conftest.$ac_ext
45977 fi
45978 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
45979 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
45980 if test $ac_cv_func_sched_get_priority_max = yes; then
45981   HAVE_PRIOR_FUNCS=1
45982 else
45983   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
45984 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
45985 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
45986   echo $ECHO_N "(cached) $ECHO_C" >&6
45987 else
45988   ac_check_lib_save_LIBS=$LIBS
45989 LIBS="-lposix4  $LIBS"
45990 cat >conftest.$ac_ext <<_ACEOF
45991 /* confdefs.h.  */
45992 _ACEOF
45993 cat confdefs.h >>conftest.$ac_ext
45994 cat >>conftest.$ac_ext <<_ACEOF
45995 /* end confdefs.h.  */
45996
45997 /* Override any GCC internal prototype to avoid an error.
45998    Use char because int might match the return type of a GCC
45999    builtin and then its argument prototype would still apply.  */
46000 #ifdef __cplusplus
46001 extern "C"
46002 #endif
46003 char sched_get_priority_max ();
46004 int
46005 main ()
46006 {
46007 return sched_get_priority_max ();
46008   ;
46009   return 0;
46010 }
46011 _ACEOF
46012 rm -f conftest.$ac_objext conftest$ac_exeext
46013 if { (ac_try="$ac_link"
46014 case "(($ac_try" in
46015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46016   *) ac_try_echo=$ac_try;;
46017 esac
46018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46019   (eval "$ac_link") 2>conftest.er1
46020   ac_status=$?
46021   grep -v '^ *+' conftest.er1 >conftest.err
46022   rm -f conftest.er1
46023   cat conftest.err >&5
46024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46025   (exit $ac_status); } &&
46026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46027   { (case "(($ac_try" in
46028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46029   *) ac_try_echo=$ac_try;;
46030 esac
46031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46032   (eval "$ac_try") 2>&5
46033   ac_status=$?
46034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46035   (exit $ac_status); }; } &&
46036          { ac_try='test -s conftest$ac_exeext'
46037   { (case "(($ac_try" in
46038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46039   *) ac_try_echo=$ac_try;;
46040 esac
46041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46042   (eval "$ac_try") 2>&5
46043   ac_status=$?
46044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46045   (exit $ac_status); }; }; then
46046   ac_cv_lib_posix4_sched_get_priority_max=yes
46047 else
46048   echo "$as_me: failed program was:" >&5
46049 sed 's/^/| /' conftest.$ac_ext >&5
46050
46051         ac_cv_lib_posix4_sched_get_priority_max=no
46052 fi
46053
46054 rm -f core conftest.err conftest.$ac_objext \
46055       conftest$ac_exeext conftest.$ac_ext
46056 LIBS=$ac_check_lib_save_LIBS
46057 fi
46058 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
46059 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
46060 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
46061
46062                                 HAVE_PRIOR_FUNCS=1
46063                                 POSIX4_LINK=" -lposix4"
46064
46065 fi
46066
46067
46068 fi
46069
46070
46071 fi
46072
46073
46074 fi
46075
46076
46077       if test "$HAVE_PRIOR_FUNCS" = 1; then
46078         cat >>confdefs.h <<\_ACEOF
46079 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
46080 _ACEOF
46081
46082       else
46083         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
46084 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
46085       fi
46086
46087       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
46088 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
46089 if test "${ac_cv_func_pthread_cancel+set}" = set; then
46090   echo $ECHO_N "(cached) $ECHO_C" >&6
46091 else
46092   cat >conftest.$ac_ext <<_ACEOF
46093 /* confdefs.h.  */
46094 _ACEOF
46095 cat confdefs.h >>conftest.$ac_ext
46096 cat >>conftest.$ac_ext <<_ACEOF
46097 /* end confdefs.h.  */
46098 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
46099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46100 #define pthread_cancel innocuous_pthread_cancel
46101
46102 /* System header to define __stub macros and hopefully few prototypes,
46103     which can conflict with char pthread_cancel (); below.
46104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46105     <limits.h> exists even on freestanding compilers.  */
46106
46107 #ifdef __STDC__
46108 # include <limits.h>
46109 #else
46110 # include <assert.h>
46111 #endif
46112
46113 #undef pthread_cancel
46114
46115 /* Override any GCC internal prototype to avoid an error.
46116    Use char because int might match the return type of a GCC
46117    builtin and then its argument prototype would still apply.  */
46118 #ifdef __cplusplus
46119 extern "C"
46120 #endif
46121 char pthread_cancel ();
46122 /* The GNU C library defines this for functions which it implements
46123     to always fail with ENOSYS.  Some functions are actually named
46124     something starting with __ and the normal name is an alias.  */
46125 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
46126 choke me
46127 #endif
46128
46129 int
46130 main ()
46131 {
46132 return pthread_cancel ();
46133   ;
46134   return 0;
46135 }
46136 _ACEOF
46137 rm -f conftest.$ac_objext conftest$ac_exeext
46138 if { (ac_try="$ac_link"
46139 case "(($ac_try" in
46140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46141   *) ac_try_echo=$ac_try;;
46142 esac
46143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46144   (eval "$ac_link") 2>conftest.er1
46145   ac_status=$?
46146   grep -v '^ *+' conftest.er1 >conftest.err
46147   rm -f conftest.er1
46148   cat conftest.err >&5
46149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46150   (exit $ac_status); } &&
46151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46152   { (case "(($ac_try" in
46153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46154   *) ac_try_echo=$ac_try;;
46155 esac
46156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46157   (eval "$ac_try") 2>&5
46158   ac_status=$?
46159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46160   (exit $ac_status); }; } &&
46161          { ac_try='test -s conftest$ac_exeext'
46162   { (case "(($ac_try" in
46163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46164   *) ac_try_echo=$ac_try;;
46165 esac
46166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46167   (eval "$ac_try") 2>&5
46168   ac_status=$?
46169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46170   (exit $ac_status); }; }; then
46171   ac_cv_func_pthread_cancel=yes
46172 else
46173   echo "$as_me: failed program was:" >&5
46174 sed 's/^/| /' conftest.$ac_ext >&5
46175
46176         ac_cv_func_pthread_cancel=no
46177 fi
46178
46179 rm -f core conftest.err conftest.$ac_objext \
46180       conftest$ac_exeext conftest.$ac_ext
46181 fi
46182 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
46183 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
46184 if test $ac_cv_func_pthread_cancel = yes; then
46185   cat >>confdefs.h <<\_ACEOF
46186 #define HAVE_PTHREAD_CANCEL 1
46187 _ACEOF
46188
46189 else
46190   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
46191 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
46192 fi
46193
46194
46195       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
46196 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
46197 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
46198   echo $ECHO_N "(cached) $ECHO_C" >&6
46199 else
46200   cat >conftest.$ac_ext <<_ACEOF
46201 /* confdefs.h.  */
46202 _ACEOF
46203 cat confdefs.h >>conftest.$ac_ext
46204 cat >>conftest.$ac_ext <<_ACEOF
46205 /* end confdefs.h.  */
46206 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
46207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46208 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
46209
46210 /* System header to define __stub macros and hopefully few prototypes,
46211     which can conflict with char pthread_attr_setstacksize (); below.
46212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46213     <limits.h> exists even on freestanding compilers.  */
46214
46215 #ifdef __STDC__
46216 # include <limits.h>
46217 #else
46218 # include <assert.h>
46219 #endif
46220
46221 #undef pthread_attr_setstacksize
46222
46223 /* Override any GCC internal prototype to avoid an error.
46224    Use char because int might match the return type of a GCC
46225    builtin and then its argument prototype would still apply.  */
46226 #ifdef __cplusplus
46227 extern "C"
46228 #endif
46229 char pthread_attr_setstacksize ();
46230 /* The GNU C library defines this for functions which it implements
46231     to always fail with ENOSYS.  Some functions are actually named
46232     something starting with __ and the normal name is an alias.  */
46233 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
46234 choke me
46235 #endif
46236
46237 int
46238 main ()
46239 {
46240 return pthread_attr_setstacksize ();
46241   ;
46242   return 0;
46243 }
46244 _ACEOF
46245 rm -f conftest.$ac_objext conftest$ac_exeext
46246 if { (ac_try="$ac_link"
46247 case "(($ac_try" in
46248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46249   *) ac_try_echo=$ac_try;;
46250 esac
46251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46252   (eval "$ac_link") 2>conftest.er1
46253   ac_status=$?
46254   grep -v '^ *+' conftest.er1 >conftest.err
46255   rm -f conftest.er1
46256   cat conftest.err >&5
46257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46258   (exit $ac_status); } &&
46259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46260   { (case "(($ac_try" in
46261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46262   *) ac_try_echo=$ac_try;;
46263 esac
46264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46265   (eval "$ac_try") 2>&5
46266   ac_status=$?
46267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46268   (exit $ac_status); }; } &&
46269          { ac_try='test -s conftest$ac_exeext'
46270   { (case "(($ac_try" in
46271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46272   *) ac_try_echo=$ac_try;;
46273 esac
46274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46275   (eval "$ac_try") 2>&5
46276   ac_status=$?
46277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46278   (exit $ac_status); }; }; then
46279   ac_cv_func_pthread_attr_setstacksize=yes
46280 else
46281   echo "$as_me: failed program was:" >&5
46282 sed 's/^/| /' conftest.$ac_ext >&5
46283
46284         ac_cv_func_pthread_attr_setstacksize=no
46285 fi
46286
46287 rm -f core conftest.err conftest.$ac_objext \
46288       conftest$ac_exeext conftest.$ac_ext
46289 fi
46290 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
46291 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
46292 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
46293   cat >>confdefs.h <<\_ACEOF
46294 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
46295 _ACEOF
46296
46297 fi
46298
46299
46300
46301       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
46302 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
46303 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
46304   echo $ECHO_N "(cached) $ECHO_C" >&6
46305 else
46306
46307         cat >conftest.$ac_ext <<_ACEOF
46308 /* confdefs.h.  */
46309 _ACEOF
46310 cat confdefs.h >>conftest.$ac_ext
46311 cat >>conftest.$ac_ext <<_ACEOF
46312 /* end confdefs.h.  */
46313 #include <pthread.h>
46314 int
46315 main ()
46316 {
46317
46318                pthread_mutexattr_t attr;
46319                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
46320
46321   ;
46322   return 0;
46323 }
46324 _ACEOF
46325 rm -f conftest.$ac_objext
46326 if { (ac_try="$ac_compile"
46327 case "(($ac_try" in
46328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46329   *) ac_try_echo=$ac_try;;
46330 esac
46331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46332   (eval "$ac_compile") 2>conftest.er1
46333   ac_status=$?
46334   grep -v '^ *+' conftest.er1 >conftest.err
46335   rm -f conftest.er1
46336   cat conftest.err >&5
46337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46338   (exit $ac_status); } &&
46339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46340   { (case "(($ac_try" in
46341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46342   *) ac_try_echo=$ac_try;;
46343 esac
46344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46345   (eval "$ac_try") 2>&5
46346   ac_status=$?
46347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46348   (exit $ac_status); }; } &&
46349          { ac_try='test -s conftest.$ac_objext'
46350   { (case "(($ac_try" in
46351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46352   *) ac_try_echo=$ac_try;;
46353 esac
46354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46355   (eval "$ac_try") 2>&5
46356   ac_status=$?
46357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46358   (exit $ac_status); }; }; then
46359   wx_cv_type_pthread_mutexattr_t=yes
46360 else
46361   echo "$as_me: failed program was:" >&5
46362 sed 's/^/| /' conftest.$ac_ext >&5
46363
46364         wx_cv_type_pthread_mutexattr_t=no
46365
46366 fi
46367
46368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46369
46370 fi
46371 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
46372 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
46373
46374       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
46375         cat >>confdefs.h <<\_ACEOF
46376 #define HAVE_PTHREAD_MUTEXATTR_T 1
46377 _ACEOF
46378
46379
46380                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
46381 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
46382 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
46383   echo $ECHO_N "(cached) $ECHO_C" >&6
46384 else
46385
46386                        cat >conftest.$ac_ext <<_ACEOF
46387 /* confdefs.h.  */
46388 _ACEOF
46389 cat confdefs.h >>conftest.$ac_ext
46390 cat >>conftest.$ac_ext <<_ACEOF
46391 /* end confdefs.h.  */
46392 #include <pthread.h>
46393 int
46394 main ()
46395 {
46396
46397                                pthread_mutexattr_t attr;
46398                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
46399
46400   ;
46401   return 0;
46402 }
46403 _ACEOF
46404 rm -f conftest.$ac_objext
46405 if { (ac_try="$ac_compile"
46406 case "(($ac_try" in
46407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46408   *) ac_try_echo=$ac_try;;
46409 esac
46410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46411   (eval "$ac_compile") 2>conftest.er1
46412   ac_status=$?
46413   grep -v '^ *+' conftest.er1 >conftest.err
46414   rm -f conftest.er1
46415   cat conftest.err >&5
46416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46417   (exit $ac_status); } &&
46418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46419   { (case "(($ac_try" in
46420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46421   *) ac_try_echo=$ac_try;;
46422 esac
46423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46424   (eval "$ac_try") 2>&5
46425   ac_status=$?
46426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46427   (exit $ac_status); }; } &&
46428          { ac_try='test -s conftest.$ac_objext'
46429   { (case "(($ac_try" in
46430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46431   *) ac_try_echo=$ac_try;;
46432 esac
46433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46434   (eval "$ac_try") 2>&5
46435   ac_status=$?
46436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46437   (exit $ac_status); }; }; then
46438   wx_cv_func_pthread_mutexattr_settype_decl=yes
46439 else
46440   echo "$as_me: failed program was:" >&5
46441 sed 's/^/| /' conftest.$ac_ext >&5
46442
46443         wx_cv_func_pthread_mutexattr_settype_decl=no
46444
46445 fi
46446
46447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46448
46449 fi
46450 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
46451 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
46452         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
46453             cat >>confdefs.h <<\_ACEOF
46454 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
46455 _ACEOF
46456
46457         fi
46458       else
46459                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
46460 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
46461 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
46462   echo $ECHO_N "(cached) $ECHO_C" >&6
46463 else
46464
46465             cat >conftest.$ac_ext <<_ACEOF
46466 /* confdefs.h.  */
46467 _ACEOF
46468 cat confdefs.h >>conftest.$ac_ext
46469 cat >>conftest.$ac_ext <<_ACEOF
46470 /* end confdefs.h.  */
46471 #include <pthread.h>
46472 int
46473 main ()
46474 {
46475
46476                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
46477
46478   ;
46479   return 0;
46480 }
46481 _ACEOF
46482 rm -f conftest.$ac_objext
46483 if { (ac_try="$ac_compile"
46484 case "(($ac_try" in
46485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46486   *) ac_try_echo=$ac_try;;
46487 esac
46488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46489   (eval "$ac_compile") 2>conftest.er1
46490   ac_status=$?
46491   grep -v '^ *+' conftest.er1 >conftest.err
46492   rm -f conftest.er1
46493   cat conftest.err >&5
46494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46495   (exit $ac_status); } &&
46496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46497   { (case "(($ac_try" in
46498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46499   *) ac_try_echo=$ac_try;;
46500 esac
46501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46502   (eval "$ac_try") 2>&5
46503   ac_status=$?
46504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46505   (exit $ac_status); }; } &&
46506          { ac_try='test -s conftest.$ac_objext'
46507   { (case "(($ac_try" in
46508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46509   *) ac_try_echo=$ac_try;;
46510 esac
46511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46512   (eval "$ac_try") 2>&5
46513   ac_status=$?
46514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46515   (exit $ac_status); }; }; then
46516
46517                     wx_cv_type_pthread_rec_mutex_init=yes
46518
46519 else
46520   echo "$as_me: failed program was:" >&5
46521 sed 's/^/| /' conftest.$ac_ext >&5
46522
46523
46524                     wx_cv_type_pthread_rec_mutex_init=no
46525
46526
46527 fi
46528
46529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46530
46531 fi
46532 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
46533 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
46534         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
46535           cat >>confdefs.h <<\_ACEOF
46536 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
46537 _ACEOF
46538
46539         else
46540                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
46541 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
46542         fi
46543       fi
46544     fi
46545
46546 else
46547     if test "$wxUSE_THREADS" = "yes" ; then
46548       case "${host}" in
46549         *-*-mingw32* )
46550                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
46551 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
46552 if test "${wx_cv_cflags_mthread+set}" = set; then
46553   echo $ECHO_N "(cached) $ECHO_C" >&6
46554 else
46555
46556                     CFLAGS_OLD="$CFLAGS"
46557                     CFLAGS="-mthreads $CFLAGS"
46558                     cat >conftest.$ac_ext <<_ACEOF
46559 /* confdefs.h.  */
46560 _ACEOF
46561 cat confdefs.h >>conftest.$ac_ext
46562 cat >>conftest.$ac_ext <<_ACEOF
46563 /* end confdefs.h.  */
46564
46565 int
46566 main ()
46567 {
46568
46569   ;
46570   return 0;
46571 }
46572 _ACEOF
46573 rm -f conftest.$ac_objext
46574 if { (ac_try="$ac_compile"
46575 case "(($ac_try" in
46576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46577   *) ac_try_echo=$ac_try;;
46578 esac
46579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46580   (eval "$ac_compile") 2>conftest.er1
46581   ac_status=$?
46582   grep -v '^ *+' conftest.er1 >conftest.err
46583   rm -f conftest.er1
46584   cat conftest.err >&5
46585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46586   (exit $ac_status); } &&
46587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46588   { (case "(($ac_try" in
46589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46590   *) ac_try_echo=$ac_try;;
46591 esac
46592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46593   (eval "$ac_try") 2>&5
46594   ac_status=$?
46595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46596   (exit $ac_status); }; } &&
46597          { ac_try='test -s conftest.$ac_objext'
46598   { (case "(($ac_try" in
46599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46600   *) ac_try_echo=$ac_try;;
46601 esac
46602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46603   (eval "$ac_try") 2>&5
46604   ac_status=$?
46605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46606   (exit $ac_status); }; }; then
46607   wx_cv_cflags_mthread=yes
46608 else
46609   echo "$as_me: failed program was:" >&5
46610 sed 's/^/| /' conftest.$ac_ext >&5
46611
46612         wx_cv_cflags_mthread=no
46613
46614 fi
46615
46616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46617
46618
46619 fi
46620 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
46621 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
46622
46623             if test "$wx_cv_cflags_mthread" = "yes"; then
46624                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
46625                 LDFLAGS="$LDFLAGS -mthreads"
46626             else
46627                                 CFLAGS="$CFLAGS_OLD"
46628             fi
46629         ;;
46630         *-pc-os2*emx )
46631             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
46632             LDFLAGS="$LDFLAGS -Zmt"
46633         ;;
46634       esac
46635     fi
46636 fi
46637
46638 { echo "$as_me:$LINENO: checking for localtime_r" >&5
46639 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
46640 if test "${ac_cv_func_localtime_r+set}" = set; then
46641   echo $ECHO_N "(cached) $ECHO_C" >&6
46642 else
46643   cat >conftest.$ac_ext <<_ACEOF
46644 /* confdefs.h.  */
46645 _ACEOF
46646 cat confdefs.h >>conftest.$ac_ext
46647 cat >>conftest.$ac_ext <<_ACEOF
46648 /* end confdefs.h.  */
46649 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
46650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46651 #define localtime_r innocuous_localtime_r
46652
46653 /* System header to define __stub macros and hopefully few prototypes,
46654     which can conflict with char localtime_r (); below.
46655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46656     <limits.h> exists even on freestanding compilers.  */
46657
46658 #ifdef __STDC__
46659 # include <limits.h>
46660 #else
46661 # include <assert.h>
46662 #endif
46663
46664 #undef localtime_r
46665
46666 /* Override any GCC internal prototype to avoid an error.
46667    Use char because int might match the return type of a GCC
46668    builtin and then its argument prototype would still apply.  */
46669 #ifdef __cplusplus
46670 extern "C"
46671 #endif
46672 char localtime_r ();
46673 /* The GNU C library defines this for functions which it implements
46674     to always fail with ENOSYS.  Some functions are actually named
46675     something starting with __ and the normal name is an alias.  */
46676 #if defined __stub_localtime_r || defined __stub___localtime_r
46677 choke me
46678 #endif
46679
46680 int
46681 main ()
46682 {
46683 return localtime_r ();
46684   ;
46685   return 0;
46686 }
46687 _ACEOF
46688 rm -f conftest.$ac_objext conftest$ac_exeext
46689 if { (ac_try="$ac_link"
46690 case "(($ac_try" in
46691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46692   *) ac_try_echo=$ac_try;;
46693 esac
46694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46695   (eval "$ac_link") 2>conftest.er1
46696   ac_status=$?
46697   grep -v '^ *+' conftest.er1 >conftest.err
46698   rm -f conftest.er1
46699   cat conftest.err >&5
46700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46701   (exit $ac_status); } &&
46702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46703   { (case "(($ac_try" in
46704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46705   *) ac_try_echo=$ac_try;;
46706 esac
46707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46708   (eval "$ac_try") 2>&5
46709   ac_status=$?
46710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46711   (exit $ac_status); }; } &&
46712          { ac_try='test -s conftest$ac_exeext'
46713   { (case "(($ac_try" in
46714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46715   *) ac_try_echo=$ac_try;;
46716 esac
46717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46718   (eval "$ac_try") 2>&5
46719   ac_status=$?
46720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46721   (exit $ac_status); }; }; then
46722   ac_cv_func_localtime_r=yes
46723 else
46724   echo "$as_me: failed program was:" >&5
46725 sed 's/^/| /' conftest.$ac_ext >&5
46726
46727         ac_cv_func_localtime_r=no
46728 fi
46729
46730 rm -f core conftest.err conftest.$ac_objext \
46731       conftest$ac_exeext conftest.$ac_ext
46732 fi
46733 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
46734 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
46735 if test $ac_cv_func_localtime_r = yes; then
46736    cat >>confdefs.h <<\_ACEOF
46737 #define HAVE_LOCALTIME_R 1
46738 _ACEOF
46739
46740 fi
46741
46742 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
46743 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
46744 if test "${ac_cv_func_gmtime_r+set}" = set; then
46745   echo $ECHO_N "(cached) $ECHO_C" >&6
46746 else
46747   cat >conftest.$ac_ext <<_ACEOF
46748 /* confdefs.h.  */
46749 _ACEOF
46750 cat confdefs.h >>conftest.$ac_ext
46751 cat >>conftest.$ac_ext <<_ACEOF
46752 /* end confdefs.h.  */
46753 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
46754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46755 #define gmtime_r innocuous_gmtime_r
46756
46757 /* System header to define __stub macros and hopefully few prototypes,
46758     which can conflict with char gmtime_r (); below.
46759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46760     <limits.h> exists even on freestanding compilers.  */
46761
46762 #ifdef __STDC__
46763 # include <limits.h>
46764 #else
46765 # include <assert.h>
46766 #endif
46767
46768 #undef gmtime_r
46769
46770 /* Override any GCC internal prototype to avoid an error.
46771    Use char because int might match the return type of a GCC
46772    builtin and then its argument prototype would still apply.  */
46773 #ifdef __cplusplus
46774 extern "C"
46775 #endif
46776 char gmtime_r ();
46777 /* The GNU C library defines this for functions which it implements
46778     to always fail with ENOSYS.  Some functions are actually named
46779     something starting with __ and the normal name is an alias.  */
46780 #if defined __stub_gmtime_r || defined __stub___gmtime_r
46781 choke me
46782 #endif
46783
46784 int
46785 main ()
46786 {
46787 return gmtime_r ();
46788   ;
46789   return 0;
46790 }
46791 _ACEOF
46792 rm -f conftest.$ac_objext conftest$ac_exeext
46793 if { (ac_try="$ac_link"
46794 case "(($ac_try" in
46795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46796   *) ac_try_echo=$ac_try;;
46797 esac
46798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46799   (eval "$ac_link") 2>conftest.er1
46800   ac_status=$?
46801   grep -v '^ *+' conftest.er1 >conftest.err
46802   rm -f conftest.er1
46803   cat conftest.err >&5
46804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46805   (exit $ac_status); } &&
46806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46807   { (case "(($ac_try" in
46808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46809   *) ac_try_echo=$ac_try;;
46810 esac
46811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46812   (eval "$ac_try") 2>&5
46813   ac_status=$?
46814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46815   (exit $ac_status); }; } &&
46816          { ac_try='test -s conftest$ac_exeext'
46817   { (case "(($ac_try" in
46818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46819   *) ac_try_echo=$ac_try;;
46820 esac
46821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46822   (eval "$ac_try") 2>&5
46823   ac_status=$?
46824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46825   (exit $ac_status); }; }; then
46826   ac_cv_func_gmtime_r=yes
46827 else
46828   echo "$as_me: failed program was:" >&5
46829 sed 's/^/| /' conftest.$ac_ext >&5
46830
46831         ac_cv_func_gmtime_r=no
46832 fi
46833
46834 rm -f core conftest.err conftest.$ac_objext \
46835       conftest$ac_exeext conftest.$ac_ext
46836 fi
46837 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
46838 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
46839 if test $ac_cv_func_gmtime_r = yes; then
46840    cat >>confdefs.h <<\_ACEOF
46841 #define HAVE_GMTIME_R 1
46842 _ACEOF
46843
46844 fi
46845
46846 { echo "$as_me:$LINENO: checking for readdir_r" >&5
46847 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
46848 if test "${ac_cv_func_readdir_r+set}" = set; then
46849   echo $ECHO_N "(cached) $ECHO_C" >&6
46850 else
46851   cat >conftest.$ac_ext <<_ACEOF
46852 /* confdefs.h.  */
46853 _ACEOF
46854 cat confdefs.h >>conftest.$ac_ext
46855 cat >>conftest.$ac_ext <<_ACEOF
46856 /* end confdefs.h.  */
46857 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
46858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46859 #define readdir_r innocuous_readdir_r
46860
46861 /* System header to define __stub macros and hopefully few prototypes,
46862     which can conflict with char readdir_r (); below.
46863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46864     <limits.h> exists even on freestanding compilers.  */
46865
46866 #ifdef __STDC__
46867 # include <limits.h>
46868 #else
46869 # include <assert.h>
46870 #endif
46871
46872 #undef readdir_r
46873
46874 /* Override any GCC internal prototype to avoid an error.
46875    Use char because int might match the return type of a GCC
46876    builtin and then its argument prototype would still apply.  */
46877 #ifdef __cplusplus
46878 extern "C"
46879 #endif
46880 char readdir_r ();
46881 /* The GNU C library defines this for functions which it implements
46882     to always fail with ENOSYS.  Some functions are actually named
46883     something starting with __ and the normal name is an alias.  */
46884 #if defined __stub_readdir_r || defined __stub___readdir_r
46885 choke me
46886 #endif
46887
46888 int
46889 main ()
46890 {
46891 return readdir_r ();
46892   ;
46893   return 0;
46894 }
46895 _ACEOF
46896 rm -f conftest.$ac_objext conftest$ac_exeext
46897 if { (ac_try="$ac_link"
46898 case "(($ac_try" in
46899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46900   *) ac_try_echo=$ac_try;;
46901 esac
46902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46903   (eval "$ac_link") 2>conftest.er1
46904   ac_status=$?
46905   grep -v '^ *+' conftest.er1 >conftest.err
46906   rm -f conftest.er1
46907   cat conftest.err >&5
46908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46909   (exit $ac_status); } &&
46910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
46911   { (case "(($ac_try" in
46912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46913   *) ac_try_echo=$ac_try;;
46914 esac
46915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46916   (eval "$ac_try") 2>&5
46917   ac_status=$?
46918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46919   (exit $ac_status); }; } &&
46920          { ac_try='test -s conftest$ac_exeext'
46921   { (case "(($ac_try" in
46922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46923   *) ac_try_echo=$ac_try;;
46924 esac
46925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46926   (eval "$ac_try") 2>&5
46927   ac_status=$?
46928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46929   (exit $ac_status); }; }; then
46930   ac_cv_func_readdir_r=yes
46931 else
46932   echo "$as_me: failed program was:" >&5
46933 sed 's/^/| /' conftest.$ac_ext >&5
46934
46935         ac_cv_func_readdir_r=no
46936 fi
46937
46938 rm -f core conftest.err conftest.$ac_objext \
46939       conftest$ac_exeext conftest.$ac_ext
46940 fi
46941 { echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
46942 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6; }
46943 if test $ac_cv_func_readdir_r = yes; then
46944    cat >>confdefs.h <<\_ACEOF
46945 #define HAVE_READDIR_R 1
46946 _ACEOF
46947
46948 fi
46949
46950
46951
46952
46953     ac_ext=c
46954 ac_cpp='$CPP $CPPFLAGS'
46955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46958
46959     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
46960 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
46961
46962     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
46963   echo $ECHO_N "(cached) $ECHO_C" >&6
46964 else
46965
46966
46967 ################################################################
46968
46969 ac_cv_func_which_gethostbyname_r=unknown
46970
46971 #
46972 # ONE ARGUMENT (sanity check)
46973 #
46974
46975 # This should fail, as there is no variant of gethostbyname_r() that takes
46976 # a single argument. If it actually compiles, then we can assume that
46977 # netdb.h is not declaring the function, and the compiler is thereby
46978 # assuming an implicit prototype. In which case, we're out of luck.
46979 #
46980 cat >conftest.$ac_ext <<_ACEOF
46981 /* confdefs.h.  */
46982 _ACEOF
46983 cat confdefs.h >>conftest.$ac_ext
46984 cat >>conftest.$ac_ext <<_ACEOF
46985 /* end confdefs.h.  */
46986 #include <netdb.h>
46987 int
46988 main ()
46989 {
46990
46991             char *name = "www.gnu.org";
46992             (void)gethostbyname_r(name) /* ; */
46993
46994   ;
46995   return 0;
46996 }
46997 _ACEOF
46998 rm -f conftest.$ac_objext
46999 if { (ac_try="$ac_compile"
47000 case "(($ac_try" in
47001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47002   *) ac_try_echo=$ac_try;;
47003 esac
47004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47005   (eval "$ac_compile") 2>conftest.er1
47006   ac_status=$?
47007   grep -v '^ *+' conftest.er1 >conftest.err
47008   rm -f conftest.er1
47009   cat conftest.err >&5
47010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47011   (exit $ac_status); } &&
47012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47013   { (case "(($ac_try" in
47014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47015   *) ac_try_echo=$ac_try;;
47016 esac
47017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47018   (eval "$ac_try") 2>&5
47019   ac_status=$?
47020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47021   (exit $ac_status); }; } &&
47022          { ac_try='test -s conftest.$ac_objext'
47023   { (case "(($ac_try" in
47024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47025   *) ac_try_echo=$ac_try;;
47026 esac
47027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47028   (eval "$ac_try") 2>&5
47029   ac_status=$?
47030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47031   (exit $ac_status); }; }; then
47032   ac_cv_func_which_gethostbyname_r=no
47033 else
47034   echo "$as_me: failed program was:" >&5
47035 sed 's/^/| /' conftest.$ac_ext >&5
47036
47037
47038 fi
47039
47040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47041
47042 #
47043 # SIX ARGUMENTS
47044 # (e.g. Linux)
47045 #
47046
47047 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
47048
47049 cat >conftest.$ac_ext <<_ACEOF
47050 /* confdefs.h.  */
47051 _ACEOF
47052 cat confdefs.h >>conftest.$ac_ext
47053 cat >>conftest.$ac_ext <<_ACEOF
47054 /* end confdefs.h.  */
47055 #include <netdb.h>
47056 int
47057 main ()
47058 {
47059
47060             char *name = "www.gnu.org";
47061             struct hostent ret, *retp;
47062             char buf[1024];
47063             int buflen = 1024;
47064             int my_h_errno;
47065             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
47066
47067   ;
47068   return 0;
47069 }
47070 _ACEOF
47071 rm -f conftest.$ac_objext
47072 if { (ac_try="$ac_compile"
47073 case "(($ac_try" in
47074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47075   *) ac_try_echo=$ac_try;;
47076 esac
47077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47078   (eval "$ac_compile") 2>conftest.er1
47079   ac_status=$?
47080   grep -v '^ *+' conftest.er1 >conftest.err
47081   rm -f conftest.er1
47082   cat conftest.err >&5
47083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47084   (exit $ac_status); } &&
47085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47086   { (case "(($ac_try" in
47087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47088   *) ac_try_echo=$ac_try;;
47089 esac
47090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47091   (eval "$ac_try") 2>&5
47092   ac_status=$?
47093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47094   (exit $ac_status); }; } &&
47095          { ac_try='test -s conftest.$ac_objext'
47096   { (case "(($ac_try" in
47097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47098   *) ac_try_echo=$ac_try;;
47099 esac
47100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47101   (eval "$ac_try") 2>&5
47102   ac_status=$?
47103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47104   (exit $ac_status); }; }; then
47105   ac_cv_func_which_gethostbyname_r=six
47106 else
47107   echo "$as_me: failed program was:" >&5
47108 sed 's/^/| /' conftest.$ac_ext >&5
47109
47110
47111 fi
47112
47113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47114
47115 fi
47116
47117 #
47118 # FIVE ARGUMENTS
47119 # (e.g. Solaris)
47120 #
47121
47122 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
47123
47124 cat >conftest.$ac_ext <<_ACEOF
47125 /* confdefs.h.  */
47126 _ACEOF
47127 cat confdefs.h >>conftest.$ac_ext
47128 cat >>conftest.$ac_ext <<_ACEOF
47129 /* end confdefs.h.  */
47130 #include <netdb.h>
47131 int
47132 main ()
47133 {
47134
47135             char *name = "www.gnu.org";
47136             struct hostent ret;
47137             char buf[1024];
47138             int buflen = 1024;
47139             int my_h_errno;
47140             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
47141
47142   ;
47143   return 0;
47144 }
47145 _ACEOF
47146 rm -f conftest.$ac_objext
47147 if { (ac_try="$ac_compile"
47148 case "(($ac_try" in
47149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47150   *) ac_try_echo=$ac_try;;
47151 esac
47152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47153   (eval "$ac_compile") 2>conftest.er1
47154   ac_status=$?
47155   grep -v '^ *+' conftest.er1 >conftest.err
47156   rm -f conftest.er1
47157   cat conftest.err >&5
47158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47159   (exit $ac_status); } &&
47160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47161   { (case "(($ac_try" in
47162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47163   *) ac_try_echo=$ac_try;;
47164 esac
47165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47166   (eval "$ac_try") 2>&5
47167   ac_status=$?
47168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47169   (exit $ac_status); }; } &&
47170          { ac_try='test -s conftest.$ac_objext'
47171   { (case "(($ac_try" in
47172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47173   *) ac_try_echo=$ac_try;;
47174 esac
47175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47176   (eval "$ac_try") 2>&5
47177   ac_status=$?
47178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47179   (exit $ac_status); }; }; then
47180   ac_cv_func_which_gethostbyname_r=five
47181 else
47182   echo "$as_me: failed program was:" >&5
47183 sed 's/^/| /' conftest.$ac_ext >&5
47184
47185
47186 fi
47187
47188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47189
47190 fi
47191
47192 #
47193 # THREE ARGUMENTS
47194 # (e.g. AIX, HP-UX, Tru64)
47195 #
47196
47197 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
47198
47199 cat >conftest.$ac_ext <<_ACEOF
47200 /* confdefs.h.  */
47201 _ACEOF
47202 cat confdefs.h >>conftest.$ac_ext
47203 cat >>conftest.$ac_ext <<_ACEOF
47204 /* end confdefs.h.  */
47205 #include <netdb.h>
47206 int
47207 main ()
47208 {
47209
47210             char *name = "www.gnu.org";
47211             struct hostent ret;
47212             struct hostent_data data;
47213             (void)gethostbyname_r(name, &ret, &data) /* ; */
47214
47215   ;
47216   return 0;
47217 }
47218 _ACEOF
47219 rm -f conftest.$ac_objext
47220 if { (ac_try="$ac_compile"
47221 case "(($ac_try" in
47222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47223   *) ac_try_echo=$ac_try;;
47224 esac
47225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47226   (eval "$ac_compile") 2>conftest.er1
47227   ac_status=$?
47228   grep -v '^ *+' conftest.er1 >conftest.err
47229   rm -f conftest.er1
47230   cat conftest.err >&5
47231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47232   (exit $ac_status); } &&
47233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47234   { (case "(($ac_try" in
47235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47236   *) ac_try_echo=$ac_try;;
47237 esac
47238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47239   (eval "$ac_try") 2>&5
47240   ac_status=$?
47241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47242   (exit $ac_status); }; } &&
47243          { ac_try='test -s conftest.$ac_objext'
47244   { (case "(($ac_try" in
47245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47246   *) ac_try_echo=$ac_try;;
47247 esac
47248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47249   (eval "$ac_try") 2>&5
47250   ac_status=$?
47251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47252   (exit $ac_status); }; }; then
47253   ac_cv_func_which_gethostbyname_r=three
47254 else
47255   echo "$as_me: failed program was:" >&5
47256 sed 's/^/| /' conftest.$ac_ext >&5
47257
47258
47259 fi
47260
47261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47262
47263 fi
47264
47265 ################################################################
47266
47267
47268 fi
47269
47270 case "$ac_cv_func_which_gethostbyname_r" in
47271     three)
47272     { echo "$as_me:$LINENO: result: three" >&5
47273 echo "${ECHO_T}three" >&6; }
47274     cat >>confdefs.h <<\_ACEOF
47275 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
47276 _ACEOF
47277
47278     ;;
47279
47280     five)
47281     { echo "$as_me:$LINENO: result: five" >&5
47282 echo "${ECHO_T}five" >&6; }
47283     cat >>confdefs.h <<\_ACEOF
47284 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
47285 _ACEOF
47286
47287     ;;
47288
47289     six)
47290     { echo "$as_me:$LINENO: result: six" >&5
47291 echo "${ECHO_T}six" >&6; }
47292     cat >>confdefs.h <<\_ACEOF
47293 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
47294 _ACEOF
47295
47296     ;;
47297
47298     no)
47299     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
47300 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
47301     ;;
47302
47303     unknown)
47304     { echo "$as_me:$LINENO: result: can't tell" >&5
47305 echo "${ECHO_T}can't tell" >&6; }
47306     ;;
47307
47308     *)
47309     { { echo "$as_me:$LINENO: error: internal error" >&5
47310 echo "$as_me: error: internal error" >&2;}
47311    { (exit 1); exit 1; }; }
47312     ;;
47313 esac
47314
47315 ac_ext=c
47316 ac_cpp='$CPP $CPPFLAGS'
47317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47320
47321
47322
47323       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
47324               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
47325           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
47326 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
47327 if test "${ac_cv_func_gethostbyname+set}" = set; then
47328   echo $ECHO_N "(cached) $ECHO_C" >&6
47329 else
47330   cat >conftest.$ac_ext <<_ACEOF
47331 /* confdefs.h.  */
47332 _ACEOF
47333 cat confdefs.h >>conftest.$ac_ext
47334 cat >>conftest.$ac_ext <<_ACEOF
47335 /* end confdefs.h.  */
47336 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
47337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47338 #define gethostbyname innocuous_gethostbyname
47339
47340 /* System header to define __stub macros and hopefully few prototypes,
47341     which can conflict with char gethostbyname (); below.
47342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47343     <limits.h> exists even on freestanding compilers.  */
47344
47345 #ifdef __STDC__
47346 # include <limits.h>
47347 #else
47348 # include <assert.h>
47349 #endif
47350
47351 #undef gethostbyname
47352
47353 /* Override any GCC internal prototype to avoid an error.
47354    Use char because int might match the return type of a GCC
47355    builtin and then its argument prototype would still apply.  */
47356 #ifdef __cplusplus
47357 extern "C"
47358 #endif
47359 char gethostbyname ();
47360 /* The GNU C library defines this for functions which it implements
47361     to always fail with ENOSYS.  Some functions are actually named
47362     something starting with __ and the normal name is an alias.  */
47363 #if defined __stub_gethostbyname || defined __stub___gethostbyname
47364 choke me
47365 #endif
47366
47367 int
47368 main ()
47369 {
47370 return gethostbyname ();
47371   ;
47372   return 0;
47373 }
47374 _ACEOF
47375 rm -f conftest.$ac_objext conftest$ac_exeext
47376 if { (ac_try="$ac_link"
47377 case "(($ac_try" in
47378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47379   *) ac_try_echo=$ac_try;;
47380 esac
47381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47382   (eval "$ac_link") 2>conftest.er1
47383   ac_status=$?
47384   grep -v '^ *+' conftest.er1 >conftest.err
47385   rm -f conftest.er1
47386   cat conftest.err >&5
47387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47388   (exit $ac_status); } &&
47389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47390   { (case "(($ac_try" in
47391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47392   *) ac_try_echo=$ac_try;;
47393 esac
47394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47395   (eval "$ac_try") 2>&5
47396   ac_status=$?
47397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47398   (exit $ac_status); }; } &&
47399          { ac_try='test -s conftest$ac_exeext'
47400   { (case "(($ac_try" in
47401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47402   *) ac_try_echo=$ac_try;;
47403 esac
47404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47405   (eval "$ac_try") 2>&5
47406   ac_status=$?
47407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47408   (exit $ac_status); }; }; then
47409   ac_cv_func_gethostbyname=yes
47410 else
47411   echo "$as_me: failed program was:" >&5
47412 sed 's/^/| /' conftest.$ac_ext >&5
47413
47414         ac_cv_func_gethostbyname=no
47415 fi
47416
47417 rm -f core conftest.err conftest.$ac_objext \
47418       conftest$ac_exeext conftest.$ac_ext
47419 fi
47420 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
47421 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
47422 if test $ac_cv_func_gethostbyname = yes; then
47423    cat >>confdefs.h <<\_ACEOF
47424 #define HAVE_GETHOSTBYNAME 1
47425 _ACEOF
47426
47427 fi
47428
47429       fi
47430
47431 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
47432 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
47433 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
47434   echo $ECHO_N "(cached) $ECHO_C" >&6
47435 else
47436
47437                 ac_ext=cpp
47438 ac_cpp='$CXXCPP $CPPFLAGS'
47439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47442
47443
47444         cat >conftest.$ac_ext <<_ACEOF
47445 /* confdefs.h.  */
47446 _ACEOF
47447 cat confdefs.h >>conftest.$ac_ext
47448 cat >>conftest.$ac_ext <<_ACEOF
47449 /* end confdefs.h.  */
47450 #include <netdb.h>
47451 int
47452 main ()
47453 {
47454
47455                 char *name;
47456                 char *proto;
47457                 struct servent *se, *res;
47458                 char buffer[2048];
47459                 int buflen = 2048;
47460                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
47461
47462   ;
47463   return 0;
47464 }
47465 _ACEOF
47466 rm -f conftest.$ac_objext
47467 if { (ac_try="$ac_compile"
47468 case "(($ac_try" in
47469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47470   *) ac_try_echo=$ac_try;;
47471 esac
47472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47473   (eval "$ac_compile") 2>conftest.er1
47474   ac_status=$?
47475   grep -v '^ *+' conftest.er1 >conftest.err
47476   rm -f conftest.er1
47477   cat conftest.err >&5
47478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47479   (exit $ac_status); } &&
47480          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
47481   { (case "(($ac_try" in
47482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47483   *) ac_try_echo=$ac_try;;
47484 esac
47485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47486   (eval "$ac_try") 2>&5
47487   ac_status=$?
47488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47489   (exit $ac_status); }; } &&
47490          { ac_try='test -s conftest.$ac_objext'
47491   { (case "(($ac_try" in
47492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47493   *) ac_try_echo=$ac_try;;
47494 esac
47495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47496   (eval "$ac_try") 2>&5
47497   ac_status=$?
47498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47499   (exit $ac_status); }; }; then
47500   ac_cv_func_which_getservbyname_r=six
47501 else
47502   echo "$as_me: failed program was:" >&5
47503 sed 's/^/| /' conftest.$ac_ext >&5
47504
47505
47506                 cat >conftest.$ac_ext <<_ACEOF
47507 /* confdefs.h.  */
47508 _ACEOF
47509 cat confdefs.h >>conftest.$ac_ext
47510 cat >>conftest.$ac_ext <<_ACEOF
47511 /* end confdefs.h.  */
47512 #include <netdb.h>
47513 int
47514 main ()
47515 {
47516
47517                         char *name;
47518                         char *proto;
47519                         struct servent *se;
47520                         char buffer[2048];
47521                         int buflen = 2048;
47522                         (void) getservbyname_r(name, proto, se, buffer, buflen)
47523
47524   ;
47525   return 0;
47526 }
47527 _ACEOF
47528 rm -f conftest.$ac_objext
47529 if { (ac_try="$ac_compile"
47530 case "(($ac_try" in
47531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47532   *) ac_try_echo=$ac_try;;
47533 esac
47534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47535   (eval "$ac_compile") 2>conftest.er1
47536   ac_status=$?
47537   grep -v '^ *+' conftest.er1 >conftest.err
47538   rm -f conftest.er1
47539   cat conftest.err >&5
47540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47541   (exit $ac_status); } &&
47542          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
47543   { (case "(($ac_try" in
47544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47545   *) ac_try_echo=$ac_try;;
47546 esac
47547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47548   (eval "$ac_try") 2>&5
47549   ac_status=$?
47550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47551   (exit $ac_status); }; } &&
47552          { ac_try='test -s conftest.$ac_objext'
47553   { (case "(($ac_try" in
47554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47555   *) ac_try_echo=$ac_try;;
47556 esac
47557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47558   (eval "$ac_try") 2>&5
47559   ac_status=$?
47560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47561   (exit $ac_status); }; }; then
47562   ac_cv_func_which_getservbyname_r=five
47563 else
47564   echo "$as_me: failed program was:" >&5
47565 sed 's/^/| /' conftest.$ac_ext >&5
47566
47567
47568                         cat >conftest.$ac_ext <<_ACEOF
47569 /* confdefs.h.  */
47570 _ACEOF
47571 cat confdefs.h >>conftest.$ac_ext
47572 cat >>conftest.$ac_ext <<_ACEOF
47573 /* end confdefs.h.  */
47574 #include <netdb.h>
47575 int
47576 main ()
47577 {
47578
47579                                 char *name;
47580                                 char *proto;
47581                                 struct servent *se;
47582                                 struct servent_data data;
47583                                 (void) getservbyname_r(name, proto, se, &data);
47584
47585   ;
47586   return 0;
47587 }
47588 _ACEOF
47589 rm -f conftest.$ac_objext
47590 if { (ac_try="$ac_compile"
47591 case "(($ac_try" in
47592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47593   *) ac_try_echo=$ac_try;;
47594 esac
47595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47596   (eval "$ac_compile") 2>conftest.er1
47597   ac_status=$?
47598   grep -v '^ *+' conftest.er1 >conftest.err
47599   rm -f conftest.er1
47600   cat conftest.err >&5
47601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47602   (exit $ac_status); } &&
47603          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
47604   { (case "(($ac_try" in
47605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47606   *) ac_try_echo=$ac_try;;
47607 esac
47608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47609   (eval "$ac_try") 2>&5
47610   ac_status=$?
47611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47612   (exit $ac_status); }; } &&
47613          { ac_try='test -s conftest.$ac_objext'
47614   { (case "(($ac_try" in
47615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47616   *) ac_try_echo=$ac_try;;
47617 esac
47618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47619   (eval "$ac_try") 2>&5
47620   ac_status=$?
47621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47622   (exit $ac_status); }; }; then
47623   ac_cv_func_which_getservbyname_r=four
47624 else
47625   echo "$as_me: failed program was:" >&5
47626 sed 's/^/| /' conftest.$ac_ext >&5
47627
47628         ac_cv_func_which_getservbyname_r=no
47629
47630 fi
47631
47632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47633
47634
47635 fi
47636
47637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47638
47639
47640 fi
47641
47642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47643         ac_ext=c
47644 ac_cpp='$CPP $CPPFLAGS'
47645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47648
47649
47650
47651 fi
47652 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
47653 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
47654
47655 if test $ac_cv_func_which_getservbyname_r = six; then
47656   cat >>confdefs.h <<\_ACEOF
47657 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
47658 _ACEOF
47659
47660 elif test $ac_cv_func_which_getservbyname_r = five; then
47661   cat >>confdefs.h <<\_ACEOF
47662 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
47663 _ACEOF
47664
47665 elif test $ac_cv_func_which_getservbyname_r = four; then
47666   cat >>confdefs.h <<\_ACEOF
47667 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
47668 _ACEOF
47669
47670 fi
47671
47672
47673       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
47674               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
47675
47676 for ac_func in getservbyname
47677 do
47678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47682   echo $ECHO_N "(cached) $ECHO_C" >&6
47683 else
47684   cat >conftest.$ac_ext <<_ACEOF
47685 /* confdefs.h.  */
47686 _ACEOF
47687 cat confdefs.h >>conftest.$ac_ext
47688 cat >>conftest.$ac_ext <<_ACEOF
47689 /* end confdefs.h.  */
47690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47692 #define $ac_func innocuous_$ac_func
47693
47694 /* System header to define __stub macros and hopefully few prototypes,
47695     which can conflict with char $ac_func (); below.
47696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47697     <limits.h> exists even on freestanding compilers.  */
47698
47699 #ifdef __STDC__
47700 # include <limits.h>
47701 #else
47702 # include <assert.h>
47703 #endif
47704
47705 #undef $ac_func
47706
47707 /* Override any GCC internal prototype to avoid an error.
47708    Use char because int might match the return type of a GCC
47709    builtin and then its argument prototype would still apply.  */
47710 #ifdef __cplusplus
47711 extern "C"
47712 #endif
47713 char $ac_func ();
47714 /* The GNU C library defines this for functions which it implements
47715     to always fail with ENOSYS.  Some functions are actually named
47716     something starting with __ and the normal name is an alias.  */
47717 #if defined __stub_$ac_func || defined __stub___$ac_func
47718 choke me
47719 #endif
47720
47721 int
47722 main ()
47723 {
47724 return $ac_func ();
47725   ;
47726   return 0;
47727 }
47728 _ACEOF
47729 rm -f conftest.$ac_objext conftest$ac_exeext
47730 if { (ac_try="$ac_link"
47731 case "(($ac_try" in
47732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47733   *) ac_try_echo=$ac_try;;
47734 esac
47735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47736   (eval "$ac_link") 2>conftest.er1
47737   ac_status=$?
47738   grep -v '^ *+' conftest.er1 >conftest.err
47739   rm -f conftest.er1
47740   cat conftest.err >&5
47741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47742   (exit $ac_status); } &&
47743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
47744   { (case "(($ac_try" in
47745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47746   *) ac_try_echo=$ac_try;;
47747 esac
47748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47749   (eval "$ac_try") 2>&5
47750   ac_status=$?
47751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47752   (exit $ac_status); }; } &&
47753          { ac_try='test -s conftest$ac_exeext'
47754   { (case "(($ac_try" in
47755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47756   *) ac_try_echo=$ac_try;;
47757 esac
47758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47759   (eval "$ac_try") 2>&5
47760   ac_status=$?
47761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47762   (exit $ac_status); }; }; then
47763   eval "$as_ac_var=yes"
47764 else
47765   echo "$as_me: failed program was:" >&5
47766 sed 's/^/| /' conftest.$ac_ext >&5
47767
47768         eval "$as_ac_var=no"
47769 fi
47770
47771 rm -f core conftest.err conftest.$ac_objext \
47772       conftest$ac_exeext conftest.$ac_ext
47773 fi
47774 ac_res=`eval echo '${'$as_ac_var'}'`
47775                { echo "$as_me:$LINENO: result: $ac_res" >&5
47776 echo "${ECHO_T}$ac_res" >&6; }
47777 if test `eval echo '${'$as_ac_var'}'` = yes; then
47778   cat >>confdefs.h <<_ACEOF
47779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47780 _ACEOF
47781   cat >>confdefs.h <<\_ACEOF
47782 #define HAVE_GETSERVBYNAME 1
47783 _ACEOF
47784
47785 fi
47786 done
47787
47788       fi
47789
47790 if test "$wxUSE_THREADS" = "yes"; then
47791   cat >>confdefs.h <<\_ACEOF
47792 #define wxUSE_THREADS 1
47793 _ACEOF
47794
47795
47796   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
47797 else
47798       if test "$wx_cv_func_strtok_r" = "yes"; then
47799     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
47800 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
47801     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
47802         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
47803         { echo "$as_me:$LINENO: result: yes" >&5
47804 echo "${ECHO_T}yes" >&6; }
47805     else
47806         { echo "$as_me:$LINENO: result: no" >&5
47807 echo "${ECHO_T}no" >&6; }
47808     fi
47809   fi
47810 fi
47811
47812 if test "$WXGTK20" = 1 ; then
47813   cat >>confdefs.h <<_ACEOF
47814 #define __WXGTK20__ $WXGTK20
47815 _ACEOF
47816
47817   WXGTK12=1
47818 fi
47819
47820 if test "$WXGTK12" = 1 ; then
47821   cat >>confdefs.h <<_ACEOF
47822 #define __WXGTK12__ $WXGTK12
47823 _ACEOF
47824
47825 fi
47826
47827 if test "$WXGTK127" = 1 ; then
47828   cat >>confdefs.h <<_ACEOF
47829 #define __WXGTK127__ $WXGTK127
47830 _ACEOF
47831
47832 fi
47833
47834 if test "$WXGPE" = 1 ; then
47835   cat >>confdefs.h <<_ACEOF
47836 #define __WXGPE__ $WXGPE
47837 _ACEOF
47838
47839 fi
47840
47841 DEBUG_CFLAGS=
47842 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
47843     DEBUG_CFLAGS="-g"
47844     wxUSE_OPTIMISE=no
47845 fi
47846
47847 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
47848     wxUSE_DEBUG_INFO=yes
47849     if test "$GCC" = yes; then
47850         DEBUG_CFLAGS="-ggdb"
47851     fi
47852 fi
47853
47854 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
47855     cat >>confdefs.h <<\_ACEOF
47856 #define WXDEBUG 1
47857 _ACEOF
47858
47859     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
47860 else
47861     if test "$wxUSE_GTK" = 1 ; then
47862         if test "x$wxGTK_VERSION" = "x1" ; then
47863             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
47864         fi
47865     fi
47866 fi
47867
47868 if test "$wxUSE_MEM_TRACING" = "yes" ; then
47869     cat >>confdefs.h <<\_ACEOF
47870 #define wxUSE_MEMORY_TRACING 1
47871 _ACEOF
47872
47873     cat >>confdefs.h <<\_ACEOF
47874 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47875 _ACEOF
47876
47877     cat >>confdefs.h <<\_ACEOF
47878 #define wxUSE_DEBUG_NEW_ALWAYS 1
47879 _ACEOF
47880
47881     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
47882 fi
47883
47884 if test "$wxUSE_DMALLOC" = "yes" ; then
47885     DMALLOC_LIBS="-ldmallocthcxx"
47886 fi
47887
47888 PROFILE_FLAGS=
47889 if test "$wxUSE_PROFILE" = "yes" ; then
47890     PROFILE_FLAGS=" -pg"
47891 fi
47892
47893 if test "$GCC" = "yes" ; then
47894     if test "$wxUSE_NO_RTTI" = "yes" ; then
47895         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
47896     fi
47897     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
47898         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
47899     fi
47900     if test "$wxUSE_PERMISSIVE" = "yes" ; then
47901         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
47902     fi
47903
47904                                                 case "${host}" in
47905       powerpc*-*-aix* )
47906         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
47907         ;;
47908       *-hppa* )
47909         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
47910         ;;
47911     esac
47912 fi
47913
47914 OPTIMISE_CFLAGS=
47915 if test "$wxUSE_OPTIMISE" = "no" ; then
47916     if test "$GCC" = yes ; then
47917                         OPTIMISE_CFLAGS="-O0"
47918     fi
47919 else
47920     if test "$GCC" = yes ; then
47921         case "${host}" in
47922             *-pc-os2_emx | *-pc-os2-emx )
47923                                                 OPTIMISE_CFLAGS="-O2"
47924             ;;
47925             *)
47926                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
47927             ;;
47928         esac
47929     else
47930         OPTIMISE_CFLAGS="-O"
47931     fi
47932 fi
47933
47934
47935 if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
47936     cat >>confdefs.h <<\_ACEOF
47937 #define WXWIN_COMPATIBILITY_2_4 1
47938 _ACEOF
47939
47940
47941     WXWIN_COMPATIBILITY_2_6="yes"
47942 fi
47943
47944 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
47945     cat >>confdefs.h <<\_ACEOF
47946 #define WXWIN_COMPATIBILITY_2_6 1
47947 _ACEOF
47948
47949
47950     WXWIN_COMPATIBILITY_2_8="yes"
47951 fi
47952
47953 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
47954     cat >>confdefs.h <<\_ACEOF
47955 #define WXWIN_COMPATIBILITY_2_8 1
47956 _ACEOF
47957
47958 fi
47959
47960
47961 if test "$wxUSE_GUI" = "yes"; then
47962     cat >>confdefs.h <<\_ACEOF
47963 #define wxUSE_GUI 1
47964 _ACEOF
47965
47966
47967                                             fi
47968
47969
47970 if test "$wxUSE_UNIX" = "yes"; then
47971   cat >>confdefs.h <<\_ACEOF
47972 #define wxUSE_UNIX 1
47973 _ACEOF
47974
47975 fi
47976
47977
47978 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
47979
47980     HAVE_DL_FUNCS=0
47981     HAVE_SHL_FUNCS=0
47982     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
47983         if test "$USE_DARWIN" = 1; then
47984                         HAVE_DL_FUNCS=1
47985         elif test "$USE_DOS" = 1; then
47986             HAVE_DL_FUNCS=0
47987         else
47988
47989 for ac_func in dlopen
47990 do
47991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47995   echo $ECHO_N "(cached) $ECHO_C" >&6
47996 else
47997   cat >conftest.$ac_ext <<_ACEOF
47998 /* confdefs.h.  */
47999 _ACEOF
48000 cat confdefs.h >>conftest.$ac_ext
48001 cat >>conftest.$ac_ext <<_ACEOF
48002 /* end confdefs.h.  */
48003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48005 #define $ac_func innocuous_$ac_func
48006
48007 /* System header to define __stub macros and hopefully few prototypes,
48008     which can conflict with char $ac_func (); below.
48009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48010     <limits.h> exists even on freestanding compilers.  */
48011
48012 #ifdef __STDC__
48013 # include <limits.h>
48014 #else
48015 # include <assert.h>
48016 #endif
48017
48018 #undef $ac_func
48019
48020 /* Override any GCC internal prototype to avoid an error.
48021    Use char because int might match the return type of a GCC
48022    builtin and then its argument prototype would still apply.  */
48023 #ifdef __cplusplus
48024 extern "C"
48025 #endif
48026 char $ac_func ();
48027 /* The GNU C library defines this for functions which it implements
48028     to always fail with ENOSYS.  Some functions are actually named
48029     something starting with __ and the normal name is an alias.  */
48030 #if defined __stub_$ac_func || defined __stub___$ac_func
48031 choke me
48032 #endif
48033
48034 int
48035 main ()
48036 {
48037 return $ac_func ();
48038   ;
48039   return 0;
48040 }
48041 _ACEOF
48042 rm -f conftest.$ac_objext conftest$ac_exeext
48043 if { (ac_try="$ac_link"
48044 case "(($ac_try" in
48045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48046   *) ac_try_echo=$ac_try;;
48047 esac
48048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48049   (eval "$ac_link") 2>conftest.er1
48050   ac_status=$?
48051   grep -v '^ *+' conftest.er1 >conftest.err
48052   rm -f conftest.er1
48053   cat conftest.err >&5
48054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48055   (exit $ac_status); } &&
48056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48057   { (case "(($ac_try" in
48058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48059   *) ac_try_echo=$ac_try;;
48060 esac
48061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48062   (eval "$ac_try") 2>&5
48063   ac_status=$?
48064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48065   (exit $ac_status); }; } &&
48066          { ac_try='test -s conftest$ac_exeext'
48067   { (case "(($ac_try" in
48068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48069   *) ac_try_echo=$ac_try;;
48070 esac
48071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48072   (eval "$ac_try") 2>&5
48073   ac_status=$?
48074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48075   (exit $ac_status); }; }; then
48076   eval "$as_ac_var=yes"
48077 else
48078   echo "$as_me: failed program was:" >&5
48079 sed 's/^/| /' conftest.$ac_ext >&5
48080
48081         eval "$as_ac_var=no"
48082 fi
48083
48084 rm -f core conftest.err conftest.$ac_objext \
48085       conftest$ac_exeext conftest.$ac_ext
48086 fi
48087 ac_res=`eval echo '${'$as_ac_var'}'`
48088                { echo "$as_me:$LINENO: result: $ac_res" >&5
48089 echo "${ECHO_T}$ac_res" >&6; }
48090 if test `eval echo '${'$as_ac_var'}'` = yes; then
48091   cat >>confdefs.h <<_ACEOF
48092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48093 _ACEOF
48094
48095                 cat >>confdefs.h <<\_ACEOF
48096 #define HAVE_DLOPEN 1
48097 _ACEOF
48098
48099                 HAVE_DL_FUNCS=1
48100
48101 else
48102
48103                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
48104 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
48105 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
48106   echo $ECHO_N "(cached) $ECHO_C" >&6
48107 else
48108   ac_check_lib_save_LIBS=$LIBS
48109 LIBS="-ldl  $LIBS"
48110 cat >conftest.$ac_ext <<_ACEOF
48111 /* confdefs.h.  */
48112 _ACEOF
48113 cat confdefs.h >>conftest.$ac_ext
48114 cat >>conftest.$ac_ext <<_ACEOF
48115 /* end confdefs.h.  */
48116
48117 /* Override any GCC internal prototype to avoid an error.
48118    Use char because int might match the return type of a GCC
48119    builtin and then its argument prototype would still apply.  */
48120 #ifdef __cplusplus
48121 extern "C"
48122 #endif
48123 char dlopen ();
48124 int
48125 main ()
48126 {
48127 return dlopen ();
48128   ;
48129   return 0;
48130 }
48131 _ACEOF
48132 rm -f conftest.$ac_objext conftest$ac_exeext
48133 if { (ac_try="$ac_link"
48134 case "(($ac_try" in
48135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48136   *) ac_try_echo=$ac_try;;
48137 esac
48138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48139   (eval "$ac_link") 2>conftest.er1
48140   ac_status=$?
48141   grep -v '^ *+' conftest.er1 >conftest.err
48142   rm -f conftest.er1
48143   cat conftest.err >&5
48144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48145   (exit $ac_status); } &&
48146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48147   { (case "(($ac_try" in
48148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48149   *) ac_try_echo=$ac_try;;
48150 esac
48151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48152   (eval "$ac_try") 2>&5
48153   ac_status=$?
48154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48155   (exit $ac_status); }; } &&
48156          { ac_try='test -s conftest$ac_exeext'
48157   { (case "(($ac_try" in
48158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48159   *) ac_try_echo=$ac_try;;
48160 esac
48161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48162   (eval "$ac_try") 2>&5
48163   ac_status=$?
48164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48165   (exit $ac_status); }; }; then
48166   ac_cv_lib_dl_dlopen=yes
48167 else
48168   echo "$as_me: failed program was:" >&5
48169 sed 's/^/| /' conftest.$ac_ext >&5
48170
48171         ac_cv_lib_dl_dlopen=no
48172 fi
48173
48174 rm -f core conftest.err conftest.$ac_objext \
48175       conftest$ac_exeext conftest.$ac_ext
48176 LIBS=$ac_check_lib_save_LIBS
48177 fi
48178 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
48179 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
48180 if test $ac_cv_lib_dl_dlopen = yes; then
48181
48182                                 cat >>confdefs.h <<\_ACEOF
48183 #define HAVE_DLOPEN 1
48184 _ACEOF
48185
48186                                 HAVE_DL_FUNCS=1
48187                                 DL_LINK=" -ldl$DL_LINK"
48188
48189 else
48190
48191
48192 for ac_func in shl_load
48193 do
48194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48195 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48198   echo $ECHO_N "(cached) $ECHO_C" >&6
48199 else
48200   cat >conftest.$ac_ext <<_ACEOF
48201 /* confdefs.h.  */
48202 _ACEOF
48203 cat confdefs.h >>conftest.$ac_ext
48204 cat >>conftest.$ac_ext <<_ACEOF
48205 /* end confdefs.h.  */
48206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48208 #define $ac_func innocuous_$ac_func
48209
48210 /* System header to define __stub macros and hopefully few prototypes,
48211     which can conflict with char $ac_func (); below.
48212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48213     <limits.h> exists even on freestanding compilers.  */
48214
48215 #ifdef __STDC__
48216 # include <limits.h>
48217 #else
48218 # include <assert.h>
48219 #endif
48220
48221 #undef $ac_func
48222
48223 /* Override any GCC internal prototype to avoid an error.
48224    Use char because int might match the return type of a GCC
48225    builtin and then its argument prototype would still apply.  */
48226 #ifdef __cplusplus
48227 extern "C"
48228 #endif
48229 char $ac_func ();
48230 /* The GNU C library defines this for functions which it implements
48231     to always fail with ENOSYS.  Some functions are actually named
48232     something starting with __ and the normal name is an alias.  */
48233 #if defined __stub_$ac_func || defined __stub___$ac_func
48234 choke me
48235 #endif
48236
48237 int
48238 main ()
48239 {
48240 return $ac_func ();
48241   ;
48242   return 0;
48243 }
48244 _ACEOF
48245 rm -f conftest.$ac_objext conftest$ac_exeext
48246 if { (ac_try="$ac_link"
48247 case "(($ac_try" in
48248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48249   *) ac_try_echo=$ac_try;;
48250 esac
48251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48252   (eval "$ac_link") 2>conftest.er1
48253   ac_status=$?
48254   grep -v '^ *+' conftest.er1 >conftest.err
48255   rm -f conftest.er1
48256   cat conftest.err >&5
48257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48258   (exit $ac_status); } &&
48259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48260   { (case "(($ac_try" in
48261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48262   *) ac_try_echo=$ac_try;;
48263 esac
48264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48265   (eval "$ac_try") 2>&5
48266   ac_status=$?
48267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48268   (exit $ac_status); }; } &&
48269          { ac_try='test -s conftest$ac_exeext'
48270   { (case "(($ac_try" in
48271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48272   *) ac_try_echo=$ac_try;;
48273 esac
48274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48275   (eval "$ac_try") 2>&5
48276   ac_status=$?
48277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48278   (exit $ac_status); }; }; then
48279   eval "$as_ac_var=yes"
48280 else
48281   echo "$as_me: failed program was:" >&5
48282 sed 's/^/| /' conftest.$ac_ext >&5
48283
48284         eval "$as_ac_var=no"
48285 fi
48286
48287 rm -f core conftest.err conftest.$ac_objext \
48288       conftest$ac_exeext conftest.$ac_ext
48289 fi
48290 ac_res=`eval echo '${'$as_ac_var'}'`
48291                { echo "$as_me:$LINENO: result: $ac_res" >&5
48292 echo "${ECHO_T}$ac_res" >&6; }
48293 if test `eval echo '${'$as_ac_var'}'` = yes; then
48294   cat >>confdefs.h <<_ACEOF
48295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48296 _ACEOF
48297
48298                                                 cat >>confdefs.h <<\_ACEOF
48299 #define HAVE_SHL_LOAD 1
48300 _ACEOF
48301
48302                                                 HAVE_SHL_FUNCS=1
48303
48304 else
48305
48306                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
48307 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
48308 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
48309   echo $ECHO_N "(cached) $ECHO_C" >&6
48310 else
48311   ac_check_lib_save_LIBS=$LIBS
48312 LIBS="-lshl_load  $LIBS"
48313 cat >conftest.$ac_ext <<_ACEOF
48314 /* confdefs.h.  */
48315 _ACEOF
48316 cat confdefs.h >>conftest.$ac_ext
48317 cat >>conftest.$ac_ext <<_ACEOF
48318 /* end confdefs.h.  */
48319
48320 /* Override any GCC internal prototype to avoid an error.
48321    Use char because int might match the return type of a GCC
48322    builtin and then its argument prototype would still apply.  */
48323 #ifdef __cplusplus
48324 extern "C"
48325 #endif
48326 char dld ();
48327 int
48328 main ()
48329 {
48330 return dld ();
48331   ;
48332   return 0;
48333 }
48334 _ACEOF
48335 rm -f conftest.$ac_objext conftest$ac_exeext
48336 if { (ac_try="$ac_link"
48337 case "(($ac_try" in
48338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48339   *) ac_try_echo=$ac_try;;
48340 esac
48341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48342   (eval "$ac_link") 2>conftest.er1
48343   ac_status=$?
48344   grep -v '^ *+' conftest.er1 >conftest.err
48345   rm -f conftest.er1
48346   cat conftest.err >&5
48347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48348   (exit $ac_status); } &&
48349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48350   { (case "(($ac_try" in
48351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48352   *) ac_try_echo=$ac_try;;
48353 esac
48354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48355   (eval "$ac_try") 2>&5
48356   ac_status=$?
48357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48358   (exit $ac_status); }; } &&
48359          { ac_try='test -s conftest$ac_exeext'
48360   { (case "(($ac_try" in
48361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48362   *) ac_try_echo=$ac_try;;
48363 esac
48364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48365   (eval "$ac_try") 2>&5
48366   ac_status=$?
48367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48368   (exit $ac_status); }; }; then
48369   ac_cv_lib_shl_load_dld=yes
48370 else
48371   echo "$as_me: failed program was:" >&5
48372 sed 's/^/| /' conftest.$ac_ext >&5
48373
48374         ac_cv_lib_shl_load_dld=no
48375 fi
48376
48377 rm -f core conftest.err conftest.$ac_objext \
48378       conftest$ac_exeext conftest.$ac_ext
48379 LIBS=$ac_check_lib_save_LIBS
48380 fi
48381 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
48382 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
48383 if test $ac_cv_lib_shl_load_dld = yes; then
48384
48385                                                                 HAVE_SHL_FUNCS=1
48386                                                                 DL_LINK=" -ldld$DL_LINK"
48387
48388 fi
48389
48390
48391 fi
48392 done
48393
48394
48395 fi
48396
48397
48398 fi
48399 done
48400
48401
48402                 if test "$HAVE_DL_FUNCS" = 1; then
48403
48404 for ac_func in dlerror
48405 do
48406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
48408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
48409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48410   echo $ECHO_N "(cached) $ECHO_C" >&6
48411 else
48412   cat >conftest.$ac_ext <<_ACEOF
48413 /* confdefs.h.  */
48414 _ACEOF
48415 cat confdefs.h >>conftest.$ac_ext
48416 cat >>conftest.$ac_ext <<_ACEOF
48417 /* end confdefs.h.  */
48418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48420 #define $ac_func innocuous_$ac_func
48421
48422 /* System header to define __stub macros and hopefully few prototypes,
48423     which can conflict with char $ac_func (); below.
48424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48425     <limits.h> exists even on freestanding compilers.  */
48426
48427 #ifdef __STDC__
48428 # include <limits.h>
48429 #else
48430 # include <assert.h>
48431 #endif
48432
48433 #undef $ac_func
48434
48435 /* Override any GCC internal prototype to avoid an error.
48436    Use char because int might match the return type of a GCC
48437    builtin and then its argument prototype would still apply.  */
48438 #ifdef __cplusplus
48439 extern "C"
48440 #endif
48441 char $ac_func ();
48442 /* The GNU C library defines this for functions which it implements
48443     to always fail with ENOSYS.  Some functions are actually named
48444     something starting with __ and the normal name is an alias.  */
48445 #if defined __stub_$ac_func || defined __stub___$ac_func
48446 choke me
48447 #endif
48448
48449 int
48450 main ()
48451 {
48452 return $ac_func ();
48453   ;
48454   return 0;
48455 }
48456 _ACEOF
48457 rm -f conftest.$ac_objext conftest$ac_exeext
48458 if { (ac_try="$ac_link"
48459 case "(($ac_try" in
48460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48461   *) ac_try_echo=$ac_try;;
48462 esac
48463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48464   (eval "$ac_link") 2>conftest.er1
48465   ac_status=$?
48466   grep -v '^ *+' conftest.er1 >conftest.err
48467   rm -f conftest.er1
48468   cat conftest.err >&5
48469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48470   (exit $ac_status); } &&
48471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48472   { (case "(($ac_try" in
48473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48474   *) ac_try_echo=$ac_try;;
48475 esac
48476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48477   (eval "$ac_try") 2>&5
48478   ac_status=$?
48479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48480   (exit $ac_status); }; } &&
48481          { ac_try='test -s conftest$ac_exeext'
48482   { (case "(($ac_try" in
48483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48484   *) ac_try_echo=$ac_try;;
48485 esac
48486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48487   (eval "$ac_try") 2>&5
48488   ac_status=$?
48489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48490   (exit $ac_status); }; }; then
48491   eval "$as_ac_var=yes"
48492 else
48493   echo "$as_me: failed program was:" >&5
48494 sed 's/^/| /' conftest.$ac_ext >&5
48495
48496         eval "$as_ac_var=no"
48497 fi
48498
48499 rm -f core conftest.err conftest.$ac_objext \
48500       conftest$ac_exeext conftest.$ac_ext
48501 fi
48502 ac_res=`eval echo '${'$as_ac_var'}'`
48503                { echo "$as_me:$LINENO: result: $ac_res" >&5
48504 echo "${ECHO_T}$ac_res" >&6; }
48505 if test `eval echo '${'$as_ac_var'}'` = yes; then
48506   cat >>confdefs.h <<_ACEOF
48507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48508 _ACEOF
48509  cat >>confdefs.h <<\_ACEOF
48510 #define HAVE_DLERROR 1
48511 _ACEOF
48512
48513 else
48514
48515                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
48516 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
48517 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
48518   echo $ECHO_N "(cached) $ECHO_C" >&6
48519 else
48520   ac_check_lib_save_LIBS=$LIBS
48521 LIBS="-ldl  $LIBS"
48522 cat >conftest.$ac_ext <<_ACEOF
48523 /* confdefs.h.  */
48524 _ACEOF
48525 cat confdefs.h >>conftest.$ac_ext
48526 cat >>conftest.$ac_ext <<_ACEOF
48527 /* end confdefs.h.  */
48528
48529 /* Override any GCC internal prototype to avoid an error.
48530    Use char because int might match the return type of a GCC
48531    builtin and then its argument prototype would still apply.  */
48532 #ifdef __cplusplus
48533 extern "C"
48534 #endif
48535 char dlerror ();
48536 int
48537 main ()
48538 {
48539 return dlerror ();
48540   ;
48541   return 0;
48542 }
48543 _ACEOF
48544 rm -f conftest.$ac_objext conftest$ac_exeext
48545 if { (ac_try="$ac_link"
48546 case "(($ac_try" in
48547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48548   *) ac_try_echo=$ac_try;;
48549 esac
48550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48551   (eval "$ac_link") 2>conftest.er1
48552   ac_status=$?
48553   grep -v '^ *+' conftest.er1 >conftest.err
48554   rm -f conftest.er1
48555   cat conftest.err >&5
48556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48557   (exit $ac_status); } &&
48558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48559   { (case "(($ac_try" in
48560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48561   *) ac_try_echo=$ac_try;;
48562 esac
48563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48564   (eval "$ac_try") 2>&5
48565   ac_status=$?
48566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48567   (exit $ac_status); }; } &&
48568          { ac_try='test -s conftest$ac_exeext'
48569   { (case "(($ac_try" in
48570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48571   *) ac_try_echo=$ac_try;;
48572 esac
48573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48574   (eval "$ac_try") 2>&5
48575   ac_status=$?
48576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48577   (exit $ac_status); }; }; then
48578   ac_cv_lib_dl_dlerror=yes
48579 else
48580   echo "$as_me: failed program was:" >&5
48581 sed 's/^/| /' conftest.$ac_ext >&5
48582
48583         ac_cv_lib_dl_dlerror=no
48584 fi
48585
48586 rm -f core conftest.err conftest.$ac_objext \
48587       conftest$ac_exeext conftest.$ac_ext
48588 LIBS=$ac_check_lib_save_LIBS
48589 fi
48590 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
48591 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
48592 if test $ac_cv_lib_dl_dlerror = yes; then
48593   cat >>confdefs.h <<\_ACEOF
48594 #define HAVE_DLERROR 1
48595 _ACEOF
48596
48597 fi
48598
48599
48600
48601 fi
48602 done
48603
48604         fi
48605         fi
48606
48607         if test "$HAVE_DL_FUNCS" = 0; then
48608             if test "$HAVE_SHL_FUNCS" = 0; then
48609               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
48610                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
48611 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
48612                   wxUSE_DYNAMIC_LOADER=no
48613                   wxUSE_DYNLIB_CLASS=no
48614               else
48615                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
48616 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
48617               fi
48618             fi
48619         fi
48620     fi
48621 fi
48622
48623 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
48624     cat >>confdefs.h <<\_ACEOF
48625 #define wxUSE_DYNAMIC_LOADER 1
48626 _ACEOF
48627
48628 fi
48629 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
48630     cat >>confdefs.h <<\_ACEOF
48631 #define wxUSE_DYNLIB_CLASS 1
48632 _ACEOF
48633
48634 fi
48635
48636
48637
48638 if test "$wxUSE_PLUGINS" = "yes" ; then
48639     if test "$wxUSE_SHARED" = "no" ; then
48640         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
48641 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
48642         wxUSE_PLUGINS=no
48643     fi
48644     if test "$wxUSE_MONOLITHIC" = "yes" ; then
48645         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
48646 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
48647         wxUSE_PLUGINS=no
48648     fi
48649     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
48650         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
48651 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
48652         wxUSE_PLUGINS=no
48653     fi
48654     if test "$wxUSE_PLUGINS" = "yes" ; then
48655         cat >>confdefs.h <<\_ACEOF
48656 #define wxUSE_PLUGINS 1
48657 _ACEOF
48658
48659     fi
48660 fi
48661
48662
48663 if test "$wxUSE_STL" = "yes"; then
48664   cat >>confdefs.h <<\_ACEOF
48665 #define wxUSE_STL 1
48666 _ACEOF
48667
48668 fi
48669
48670 if test "$wxUSE_APPLE_IEEE" = "yes"; then
48671   cat >>confdefs.h <<\_ACEOF
48672 #define wxUSE_APPLE_IEEE 1
48673 _ACEOF
48674
48675 fi
48676
48677 if test "$wxUSE_TIMER" = "yes"; then
48678   cat >>confdefs.h <<\_ACEOF
48679 #define wxUSE_TIMER 1
48680 _ACEOF
48681
48682 fi
48683
48684 if test "$USE_UNIX" = "1" ; then
48685         if test "$wxUSE_MGL" != 1; then
48686                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
48687 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
48688 if test "${ac_cv_header_sys_soundcard+set}" = set; then
48689   echo $ECHO_N "(cached) $ECHO_C" >&6
48690 else
48691
48692             cat >conftest.$ac_ext <<_ACEOF
48693 /* confdefs.h.  */
48694 _ACEOF
48695 cat confdefs.h >>conftest.$ac_ext
48696 cat >>conftest.$ac_ext <<_ACEOF
48697 /* end confdefs.h.  */
48698
48699                     #include <sys/ioctl.h>
48700                     #include <sys/soundcard.h>
48701
48702 int
48703 main ()
48704 {
48705
48706                     ioctl(0, SNDCTL_DSP_SPEED, 0);
48707
48708   ;
48709   return 0;
48710 }
48711 _ACEOF
48712 rm -f conftest.$ac_objext conftest$ac_exeext
48713 if { (ac_try="$ac_link"
48714 case "(($ac_try" in
48715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48716   *) ac_try_echo=$ac_try;;
48717 esac
48718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48719   (eval "$ac_link") 2>conftest.er1
48720   ac_status=$?
48721   grep -v '^ *+' conftest.er1 >conftest.err
48722   rm -f conftest.er1
48723   cat conftest.err >&5
48724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48725   (exit $ac_status); } &&
48726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48727   { (case "(($ac_try" in
48728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48729   *) ac_try_echo=$ac_try;;
48730 esac
48731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48732   (eval "$ac_try") 2>&5
48733   ac_status=$?
48734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48735   (exit $ac_status); }; } &&
48736          { ac_try='test -s conftest$ac_exeext'
48737   { (case "(($ac_try" in
48738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48739   *) ac_try_echo=$ac_try;;
48740 esac
48741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48742   (eval "$ac_try") 2>&5
48743   ac_status=$?
48744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48745   (exit $ac_status); }; }; then
48746   ac_cv_header_sys_soundcard=yes
48747 else
48748   echo "$as_me: failed program was:" >&5
48749 sed 's/^/| /' conftest.$ac_ext >&5
48750
48751
48752                     saveLibs="$LIBS"
48753                     LIBS="$saveLibs -lossaudio"
48754                     cat >conftest.$ac_ext <<_ACEOF
48755 /* confdefs.h.  */
48756 _ACEOF
48757 cat confdefs.h >>conftest.$ac_ext
48758 cat >>conftest.$ac_ext <<_ACEOF
48759 /* end confdefs.h.  */
48760
48761                             #include <sys/ioctl.h>
48762                             #include <sys/soundcard.h>
48763
48764 int
48765 main ()
48766 {
48767
48768                             ioctl(0, SNDCTL_DSP_SPEED, 0);
48769
48770   ;
48771   return 0;
48772 }
48773 _ACEOF
48774 rm -f conftest.$ac_objext conftest$ac_exeext
48775 if { (ac_try="$ac_link"
48776 case "(($ac_try" in
48777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48778   *) ac_try_echo=$ac_try;;
48779 esac
48780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48781   (eval "$ac_link") 2>conftest.er1
48782   ac_status=$?
48783   grep -v '^ *+' conftest.er1 >conftest.err
48784   rm -f conftest.er1
48785   cat conftest.err >&5
48786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48787   (exit $ac_status); } &&
48788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
48789   { (case "(($ac_try" in
48790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48791   *) ac_try_echo=$ac_try;;
48792 esac
48793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48794   (eval "$ac_try") 2>&5
48795   ac_status=$?
48796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48797   (exit $ac_status); }; } &&
48798          { ac_try='test -s conftest$ac_exeext'
48799   { (case "(($ac_try" in
48800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48801   *) ac_try_echo=$ac_try;;
48802 esac
48803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48804   (eval "$ac_try") 2>&5
48805   ac_status=$?
48806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48807   (exit $ac_status); }; }; then
48808   ac_cv_header_sys_soundcard=yes
48809 else
48810   echo "$as_me: failed program was:" >&5
48811 sed 's/^/| /' conftest.$ac_ext >&5
48812
48813
48814                             LIBS="$saveLibs"
48815                             ac_cv_header_sys_soundcard=no
48816
48817
48818 fi
48819
48820 rm -f core conftest.err conftest.$ac_objext \
48821       conftest$ac_exeext conftest.$ac_ext
48822
48823
48824 fi
48825
48826 rm -f core conftest.err conftest.$ac_objext \
48827       conftest$ac_exeext conftest.$ac_ext
48828
48829 fi
48830 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
48831 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
48832     fi
48833
48834     if test "$ac_cv_header_sys_soundcard" = "yes"; then
48835         cat >>confdefs.h <<\_ACEOF
48836 #define HAVE_SYS_SOUNDCARD_H 1
48837 _ACEOF
48838
48839     else
48840         DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
48841     fi
48842 fi
48843
48844 WITH_PLUGIN_SDL=0
48845 if test "$wxUSE_SOUND" = "yes"; then
48846   if test "$USE_UNIX" = "1" ; then
48847     if test "$wxUSE_LIBSDL" != "no"; then
48848
48849 # Check whether --with-sdl-prefix was given.
48850 if test "${with_sdl_prefix+set}" = set; then
48851   withval=$with_sdl_prefix; sdl_prefix="$withval"
48852 else
48853   sdl_prefix=""
48854 fi
48855
48856
48857 # Check whether --with-sdl-exec-prefix was given.
48858 if test "${with_sdl_exec_prefix+set}" = set; then
48859   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
48860 else
48861   sdl_exec_prefix=""
48862 fi
48863
48864 # Check whether --enable-sdltest was given.
48865 if test "${enable_sdltest+set}" = set; then
48866   enableval=$enable_sdltest;
48867 else
48868   enable_sdltest=yes
48869 fi
48870
48871
48872   if test x$sdl_exec_prefix != x ; then
48873     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
48874     if test x${SDL_CONFIG+set} != xset ; then
48875       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
48876     fi
48877   fi
48878   if test x$sdl_prefix != x ; then
48879     sdl_args="$sdl_args --prefix=$sdl_prefix"
48880     if test x${SDL_CONFIG+set} != xset ; then
48881       SDL_CONFIG=$sdl_prefix/bin/sdl-config
48882     fi
48883   fi
48884
48885   if test "x$prefix" != xNONE; then
48886     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
48887   fi
48888   # Extract the first word of "sdl-config", so it can be a program name with args.
48889 set dummy sdl-config; ac_word=$2
48890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48892 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
48893   echo $ECHO_N "(cached) $ECHO_C" >&6
48894 else
48895   case $SDL_CONFIG in
48896   [\\/]* | ?:[\\/]*)
48897   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
48898   ;;
48899   *)
48900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48901 for as_dir in $PATH
48902 do
48903   IFS=$as_save_IFS
48904   test -z "$as_dir" && as_dir=.
48905   for ac_exec_ext in '' $ac_executable_extensions; do
48906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
48907     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48909     break 2
48910   fi
48911 done
48912 done
48913 IFS=$as_save_IFS
48914
48915   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
48916   ;;
48917 esac
48918 fi
48919 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
48920 if test -n "$SDL_CONFIG"; then
48921   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
48922 echo "${ECHO_T}$SDL_CONFIG" >&6; }
48923 else
48924   { echo "$as_me:$LINENO: result: no" >&5
48925 echo "${ECHO_T}no" >&6; }
48926 fi
48927
48928
48929   min_sdl_version=1.2.0
48930   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
48931 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
48932   no_sdl=""
48933   if test "$SDL_CONFIG" = "no" ; then
48934     no_sdl=yes
48935   else
48936     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
48937     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
48938
48939     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
48940            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48941     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
48942            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48943     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
48944            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48945     if test "x$enable_sdltest" = "xyes" ; then
48946       ac_save_CFLAGS="$CFLAGS"
48947       ac_save_CXXFLAGS="$CXXFLAGS"
48948       ac_save_LIBS="$LIBS"
48949       CFLAGS="$CFLAGS $SDL_CFLAGS"
48950       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
48951       LIBS="$LIBS $SDL_LIBS"
48952       rm -f conf.sdltest
48953       if test "$cross_compiling" = yes; then
48954   echo $ac_n "cross compiling; assumed OK... $ac_c"
48955 else
48956   cat >conftest.$ac_ext <<_ACEOF
48957 /* confdefs.h.  */
48958 _ACEOF
48959 cat confdefs.h >>conftest.$ac_ext
48960 cat >>conftest.$ac_ext <<_ACEOF
48961 /* end confdefs.h.  */
48962
48963 #include <stdio.h>
48964 #include <stdlib.h>
48965 #include <string.h>
48966 #include "SDL.h"
48967
48968 char*
48969 my_strdup (char *str)
48970 {
48971   char *new_str;
48972
48973   if (str)
48974     {
48975       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
48976       strcpy (new_str, str);
48977     }
48978   else
48979     new_str = NULL;
48980
48981   return new_str;
48982 }
48983
48984 int main (int argc, char *argv[])
48985 {
48986   int major, minor, micro;
48987   char *tmp_version;
48988
48989   /* This hangs on some systems (?)
48990   system ("touch conf.sdltest");
48991   */
48992   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
48993
48994   /* HP/UX 9 (%@#!) writes to sscanf strings */
48995   tmp_version = my_strdup("$min_sdl_version");
48996   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
48997      printf("%s, bad version string\n", "$min_sdl_version");
48998      exit(1);
48999    }
49000
49001    if (($sdl_major_version > major) ||
49002       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
49003       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
49004     {
49005       return 0;
49006     }
49007   else
49008     {
49009       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
49010       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
49011       printf("*** best to upgrade to the required version.\n");
49012       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
49013       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
49014       printf("*** config.cache before re-running configure\n");
49015       return 1;
49016     }
49017 }
49018
49019
49020 _ACEOF
49021 rm -f conftest$ac_exeext
49022 if { (ac_try="$ac_link"
49023 case "(($ac_try" in
49024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49025   *) ac_try_echo=$ac_try;;
49026 esac
49027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49028   (eval "$ac_link") 2>&5
49029   ac_status=$?
49030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49032   { (case "(($ac_try" in
49033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49034   *) ac_try_echo=$ac_try;;
49035 esac
49036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49037   (eval "$ac_try") 2>&5
49038   ac_status=$?
49039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49040   (exit $ac_status); }; }; then
49041   :
49042 else
49043   echo "$as_me: program exited with status $ac_status" >&5
49044 echo "$as_me: failed program was:" >&5
49045 sed 's/^/| /' conftest.$ac_ext >&5
49046
49047 ( exit $ac_status )
49048 no_sdl=yes
49049 fi
49050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49051 fi
49052
49053
49054        CFLAGS="$ac_save_CFLAGS"
49055        CXXFLAGS="$ac_save_CXXFLAGS"
49056        LIBS="$ac_save_LIBS"
49057      fi
49058   fi
49059   if test "x$no_sdl" = x ; then
49060      { echo "$as_me:$LINENO: result: yes" >&5
49061 echo "${ECHO_T}yes" >&6; }
49062
49063                     EXTRALIBS_SDL="$SDL_LIBS"
49064                     CFLAGS="$SDL_CFLAGS $CFLAGS"
49065                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
49066                     cat >>confdefs.h <<\_ACEOF
49067 #define wxUSE_LIBSDL 1
49068 _ACEOF
49069
49070
49071   else
49072      { echo "$as_me:$LINENO: result: no" >&5
49073 echo "${ECHO_T}no" >&6; }
49074      if test "$SDL_CONFIG" = "no" ; then
49075        echo "*** The sdl-config script installed by SDL could not be found"
49076        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
49077        echo "*** your path, or set the SDL_CONFIG environment variable to the"
49078        echo "*** full path to sdl-config."
49079      else
49080        if test -f conf.sdltest ; then
49081         :
49082        else
49083           echo "*** Could not run SDL test program, checking why..."
49084           CFLAGS="$CFLAGS $SDL_CFLAGS"
49085           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
49086           LIBS="$LIBS $SDL_LIBS"
49087           cat >conftest.$ac_ext <<_ACEOF
49088 /* confdefs.h.  */
49089 _ACEOF
49090 cat confdefs.h >>conftest.$ac_ext
49091 cat >>conftest.$ac_ext <<_ACEOF
49092 /* end confdefs.h.  */
49093
49094 #include <stdio.h>
49095 #include "SDL.h"
49096
49097 int main(int argc, char *argv[])
49098 { return 0; }
49099 #undef  main
49100 #define main K_and_R_C_main
49101
49102 int
49103 main ()
49104 {
49105  return 0;
49106   ;
49107   return 0;
49108 }
49109 _ACEOF
49110 rm -f conftest.$ac_objext conftest$ac_exeext
49111 if { (ac_try="$ac_link"
49112 case "(($ac_try" in
49113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49114   *) ac_try_echo=$ac_try;;
49115 esac
49116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49117   (eval "$ac_link") 2>conftest.er1
49118   ac_status=$?
49119   grep -v '^ *+' conftest.er1 >conftest.err
49120   rm -f conftest.er1
49121   cat conftest.err >&5
49122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49123   (exit $ac_status); } &&
49124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49125   { (case "(($ac_try" in
49126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49127   *) ac_try_echo=$ac_try;;
49128 esac
49129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49130   (eval "$ac_try") 2>&5
49131   ac_status=$?
49132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49133   (exit $ac_status); }; } &&
49134          { ac_try='test -s conftest$ac_exeext'
49135   { (case "(($ac_try" in
49136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49137   *) ac_try_echo=$ac_try;;
49138 esac
49139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49140   (eval "$ac_try") 2>&5
49141   ac_status=$?
49142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49143   (exit $ac_status); }; }; then
49144    echo "*** The test program compiled, but did not run. This usually means"
49145           echo "*** that the run-time linker is not finding SDL or finding the wrong"
49146           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
49147           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
49148           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
49149           echo "*** is required on your system"
49150           echo "***"
49151           echo "*** If you have an old version installed, it is best to remove it, although"
49152           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
49153 else
49154   echo "$as_me: failed program was:" >&5
49155 sed 's/^/| /' conftest.$ac_ext >&5
49156
49157          echo "*** The test program failed to compile or link. See the file config.log for the"
49158           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
49159           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
49160           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
49161 fi
49162
49163 rm -f core conftest.err conftest.$ac_objext \
49164       conftest$ac_exeext conftest.$ac_ext
49165           CFLAGS="$ac_save_CFLAGS"
49166           CXXFLAGS="$ac_save_CXXFLAGS"
49167           LIBS="$ac_save_LIBS"
49168        fi
49169      fi
49170      SDL_CFLAGS=""
49171      SDL_LIBS=""
49172      wxUSE_LIBSDL="no"
49173   fi
49174
49175
49176   rm -f conf.sdltest
49177
49178       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
49179         WITH_PLUGIN_SDL=1
49180       fi
49181     fi
49182   else
49183         if test "$wxUSE_MGL" = 1; then
49184         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
49185 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
49186         wxUSE_SOUND="no"
49187     fi
49188   fi
49189 fi
49190
49191 if test "$wxUSE_SOUND" = "yes"; then
49192   cat >>confdefs.h <<\_ACEOF
49193 #define wxUSE_SOUND 1
49194 _ACEOF
49195
49196   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
49197 fi
49198
49199 if test "$WXGTK20" = 1; then
49200
49201
49202 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
49203         if test -n "$ac_tool_prefix"; then
49204   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
49205 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
49206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49208 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
49209   echo $ECHO_N "(cached) $ECHO_C" >&6
49210 else
49211   case $PKG_CONFIG in
49212   [\\/]* | ?:[\\/]*)
49213   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
49214   ;;
49215   *)
49216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49217 for as_dir in $PATH
49218 do
49219   IFS=$as_save_IFS
49220   test -z "$as_dir" && as_dir=.
49221   for ac_exec_ext in '' $ac_executable_extensions; do
49222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
49223     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49225     break 2
49226   fi
49227 done
49228 done
49229 IFS=$as_save_IFS
49230
49231   ;;
49232 esac
49233 fi
49234 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
49235 if test -n "$PKG_CONFIG"; then
49236   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
49237 echo "${ECHO_T}$PKG_CONFIG" >&6; }
49238 else
49239   { echo "$as_me:$LINENO: result: no" >&5
49240 echo "${ECHO_T}no" >&6; }
49241 fi
49242
49243
49244 fi
49245 if test -z "$ac_cv_path_PKG_CONFIG"; then
49246   ac_pt_PKG_CONFIG=$PKG_CONFIG
49247   # Extract the first word of "pkg-config", so it can be a program name with args.
49248 set dummy pkg-config; ac_word=$2
49249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49251 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
49252   echo $ECHO_N "(cached) $ECHO_C" >&6
49253 else
49254   case $ac_pt_PKG_CONFIG in
49255   [\\/]* | ?:[\\/]*)
49256   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
49257   ;;
49258   *)
49259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49260 for as_dir in $PATH
49261 do
49262   IFS=$as_save_IFS
49263   test -z "$as_dir" && as_dir=.
49264   for ac_exec_ext in '' $ac_executable_extensions; do
49265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
49266     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
49267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49268     break 2
49269   fi
49270 done
49271 done
49272 IFS=$as_save_IFS
49273
49274   ;;
49275 esac
49276 fi
49277 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
49278 if test -n "$ac_pt_PKG_CONFIG"; then
49279   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
49280 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
49281 else
49282   { echo "$as_me:$LINENO: result: no" >&5
49283 echo "${ECHO_T}no" >&6; }
49284 fi
49285
49286   if test "x$ac_pt_PKG_CONFIG" = x; then
49287     PKG_CONFIG=""
49288   else
49289     case $cross_compiling:$ac_tool_warned in
49290 yes:)
49291 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49292 whose name does not start with the host triplet.  If you think this
49293 configuration is useful to you, please write to autoconf@gnu.org." >&5
49294 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49295 whose name does not start with the host triplet.  If you think this
49296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49297 ac_tool_warned=yes ;;
49298 esac
49299     PKG_CONFIG=$ac_pt_PKG_CONFIG
49300   fi
49301 else
49302   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
49303 fi
49304
49305 fi
49306 if test -n "$PKG_CONFIG"; then
49307         _pkg_min_version=0.9.0
49308         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
49309 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
49310         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
49311                 { echo "$as_me:$LINENO: result: yes" >&5
49312 echo "${ECHO_T}yes" >&6; }
49313         else
49314                 { echo "$as_me:$LINENO: result: no" >&5
49315 echo "${ECHO_T}no" >&6; }
49316                 PKG_CONFIG=""
49317         fi
49318
49319 fi
49320
49321     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
49322         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49323
49324
49325 pkg_failed=no
49326 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
49327 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
49328
49329 if test -n "$PKG_CONFIG"; then
49330     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
49331         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
49332     else
49333         if test -n "$PKG_CONFIG" && \
49334     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
49335   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
49336   ac_status=$?
49337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49338   (exit $ac_status); }; then
49339   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
49340 else
49341   pkg_failed=yes
49342 fi
49343     fi
49344 else
49345         pkg_failed=untried
49346 fi
49347 if test -n "$PKG_CONFIG"; then
49348     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
49349         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
49350     else
49351         if test -n "$PKG_CONFIG" && \
49352     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
49353   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
49354   ac_status=$?
49355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49356   (exit $ac_status); }; then
49357   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
49358 else
49359   pkg_failed=yes
49360 fi
49361     fi
49362 else
49363         pkg_failed=untried
49364 fi
49365
49366
49367
49368 if test $pkg_failed = yes; then
49369
49370 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49371         _pkg_short_errors_supported=yes
49372 else
49373         _pkg_short_errors_supported=no
49374 fi
49375         if test $_pkg_short_errors_supported = yes; then
49376                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
49377         else
49378                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
49379         fi
49380         # Put the nasty error message in config.log where it belongs
49381         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
49382
49383
49384                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
49385 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
49386                         wxUSE_LIBGNOMEPRINT="no"
49387
49388
49389 elif test $pkg_failed = untried; then
49390
49391                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
49392 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
49393                         wxUSE_LIBGNOMEPRINT="no"
49394
49395
49396 else
49397         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
49398         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
49399         { echo "$as_me:$LINENO: result: yes" >&5
49400 echo "${ECHO_T}yes" >&6; }
49401
49402                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
49403                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
49404                         cat >>confdefs.h <<\_ACEOF
49405 #define wxUSE_LIBGNOMEPRINT 1
49406 _ACEOF
49407
49408
49409 fi
49410         fi
49411     fi
49412
49413     if test "$wxUSE_MIMETYPE" = "yes" ; then
49414         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49415
49416
49417 pkg_failed=no
49418 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
49419 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
49420
49421 if test -n "$PKG_CONFIG"; then
49422     if test -n "$GNOMEVFS_CFLAGS"; then
49423         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
49424     else
49425         if test -n "$PKG_CONFIG" && \
49426     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
49427   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
49428   ac_status=$?
49429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49430   (exit $ac_status); }; then
49431   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
49432 else
49433   pkg_failed=yes
49434 fi
49435     fi
49436 else
49437         pkg_failed=untried
49438 fi
49439 if test -n "$PKG_CONFIG"; then
49440     if test -n "$GNOMEVFS_LIBS"; then
49441         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
49442     else
49443         if test -n "$PKG_CONFIG" && \
49444     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
49445   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
49446   ac_status=$?
49447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49448   (exit $ac_status); }; then
49449   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
49450 else
49451   pkg_failed=yes
49452 fi
49453     fi
49454 else
49455         pkg_failed=untried
49456 fi
49457
49458
49459
49460 if test $pkg_failed = yes; then
49461
49462 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49463         _pkg_short_errors_supported=yes
49464 else
49465         _pkg_short_errors_supported=no
49466 fi
49467         if test $_pkg_short_errors_supported = yes; then
49468                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
49469         else
49470                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
49471         fi
49472         # Put the nasty error message in config.log where it belongs
49473         echo "$GNOMEVFS_PKG_ERRORS" >&5
49474
49475
49476                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
49477 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
49478                         wxUSE_LIBGNOMEVFS="no"
49479
49480
49481 elif test $pkg_failed = untried; then
49482
49483                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
49484 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
49485                         wxUSE_LIBGNOMEVFS="no"
49486
49487
49488 else
49489         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
49490         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
49491         { echo "$as_me:$LINENO: result: yes" >&5
49492 echo "${ECHO_T}yes" >&6; }
49493
49494                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
49495                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
49496                         cat >>confdefs.h <<\_ACEOF
49497 #define wxUSE_LIBGNOMEVFS 1
49498 _ACEOF
49499
49500
49501 fi
49502         fi
49503     fi
49504
49505     if test "$wxUSE_LIBHILDON" = "yes" ; then
49506
49507 pkg_failed=no
49508 { echo "$as_me:$LINENO: checking for HILDON" >&5
49509 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
49510
49511 if test -n "$PKG_CONFIG"; then
49512     if test -n "$HILDON_CFLAGS"; then
49513         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
49514     else
49515         if test -n "$PKG_CONFIG" && \
49516     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
49517   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
49518   ac_status=$?
49519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49520   (exit $ac_status); }; then
49521   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
49522 else
49523   pkg_failed=yes
49524 fi
49525     fi
49526 else
49527         pkg_failed=untried
49528 fi
49529 if test -n "$PKG_CONFIG"; then
49530     if test -n "$HILDON_LIBS"; then
49531         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
49532     else
49533         if test -n "$PKG_CONFIG" && \
49534     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
49535   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
49536   ac_status=$?
49537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49538   (exit $ac_status); }; then
49539   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
49540 else
49541   pkg_failed=yes
49542 fi
49543     fi
49544 else
49545         pkg_failed=untried
49546 fi
49547
49548
49549
49550 if test $pkg_failed = yes; then
49551
49552 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49553         _pkg_short_errors_supported=yes
49554 else
49555         _pkg_short_errors_supported=no
49556 fi
49557         if test $_pkg_short_errors_supported = yes; then
49558                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
49559         else
49560                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
49561         fi
49562         # Put the nasty error message in config.log where it belongs
49563         echo "$HILDON_PKG_ERRORS" >&5
49564
49565
49566                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
49567 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
49568                         wxUSE_LIBHILDON="no"
49569
49570
49571 elif test $pkg_failed = untried; then
49572
49573                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
49574 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
49575                         wxUSE_LIBHILDON="no"
49576
49577
49578 else
49579         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
49580         HILDON_LIBS=$pkg_cv_HILDON_LIBS
49581         { echo "$as_me:$LINENO: result: yes" >&5
49582 echo "${ECHO_T}yes" >&6; }
49583
49584                 EXTRALIBS_HILDON="$HILDON_LIBS"
49585                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
49586                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
49587                 cat >>confdefs.h <<\_ACEOF
49588 #define wxUSE_LIBHILDON 1
49589 _ACEOF
49590
49591
49592 fi
49593     fi
49594 fi
49595
49596 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
49597   cat >>confdefs.h <<\_ACEOF
49598 #define wxUSE_CMDLINE_PARSER 1
49599 _ACEOF
49600
49601 fi
49602
49603 if test "$wxUSE_STOPWATCH" = "yes"; then
49604   cat >>confdefs.h <<\_ACEOF
49605 #define wxUSE_STOPWATCH 1
49606 _ACEOF
49607
49608 fi
49609
49610 if test "$wxUSE_DATETIME" = "yes"; then
49611   cat >>confdefs.h <<\_ACEOF
49612 #define wxUSE_DATETIME 1
49613 _ACEOF
49614
49615 fi
49616
49617 if test "$wxUSE_FILE" = "yes"; then
49618   cat >>confdefs.h <<\_ACEOF
49619 #define wxUSE_FILE 1
49620 _ACEOF
49621
49622 fi
49623
49624 if test "$wxUSE_FFILE" = "yes"; then
49625   cat >>confdefs.h <<\_ACEOF
49626 #define wxUSE_FFILE 1
49627 _ACEOF
49628
49629 fi
49630
49631 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
49632   if test "$wxUSE_STREAMS" != yes; then
49633     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
49634 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
49635     wxUSE_ARCHIVE_STREAMS=no
49636   else
49637     cat >>confdefs.h <<\_ACEOF
49638 #define wxUSE_ARCHIVE_STREAMS 1
49639 _ACEOF
49640
49641   fi
49642 fi
49643
49644 if test "$wxUSE_ZIPSTREAM" = "yes"; then
49645   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
49646     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
49647 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
49648   elif test "$wxUSE_ZLIB" = "no"; then
49649     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
49650 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
49651   else
49652     cat >>confdefs.h <<\_ACEOF
49653 #define wxUSE_ZIPSTREAM 1
49654 _ACEOF
49655
49656   fi
49657 fi
49658
49659 if test "$wxUSE_TARSTREAM" = "yes"; then
49660   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
49661     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
49662 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
49663   else
49664     cat >>confdefs.h <<\_ACEOF
49665 #define wxUSE_TARSTREAM 1
49666 _ACEOF
49667
49668   fi
49669 fi
49670
49671 if test "$wxUSE_FILESYSTEM" = "yes"; then
49672   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
49673     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
49674 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
49675     wxUSE_FILESYSTEM=no
49676   else
49677     cat >>confdefs.h <<\_ACEOF
49678 #define wxUSE_FILESYSTEM 1
49679 _ACEOF
49680
49681   fi
49682 fi
49683
49684 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
49685   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
49686     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
49687 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
49688   else
49689     cat >>confdefs.h <<\_ACEOF
49690 #define wxUSE_FS_ARCHIVE 1
49691 _ACEOF
49692
49693   fi
49694 fi
49695
49696 if test "$wxUSE_FS_ZIP" = "yes"; then
49697   if test "$wxUSE_FS_ARCHIVE" != yes; then
49698     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
49699 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
49700   else
49701     cat >>confdefs.h <<\_ACEOF
49702 #define wxUSE_FS_ZIP 1
49703 _ACEOF
49704
49705   fi
49706 fi
49707
49708 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
49709   if test "$USE_UNIX" != 1; then
49710     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
49711 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
49712     wxUSE_ON_FATAL_EXCEPTION=no
49713   else
49714     cat >>confdefs.h <<\_ACEOF
49715 #define wxUSE_ON_FATAL_EXCEPTION 1
49716 _ACEOF
49717
49718   fi
49719 fi
49720
49721 if test "$wxUSE_STACKWALKER" = "yes"; then
49722     cat >>confdefs.h <<\_ACEOF
49723 #define wxUSE_STACKWALKER 1
49724 _ACEOF
49725
49726 fi
49727
49728 if test "$wxUSE_DEBUGREPORT" = "yes"; then
49729     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
49730         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
49731 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
49732         wxUSE_DEBUGREPORT=no
49733     else
49734         cat >>confdefs.h <<\_ACEOF
49735 #define wxUSE_DEBUGREPORT 1
49736 _ACEOF
49737
49738         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
49739             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
49740         fi
49741     fi
49742 fi
49743
49744 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
49745   cat >>confdefs.h <<\_ACEOF
49746 #define wxUSE_SNGLINST_CHECKER 1
49747 _ACEOF
49748
49749 fi
49750
49751 if test "$wxUSE_BUSYINFO" = "yes"; then
49752   cat >>confdefs.h <<\_ACEOF
49753 #define wxUSE_BUSYINFO 1
49754 _ACEOF
49755
49756 fi
49757
49758 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
49759   cat >>confdefs.h <<\_ACEOF
49760 #define wxUSE_STD_IOSTREAM 1
49761 _ACEOF
49762
49763 fi
49764
49765 if test "$wxUSE_STD_STRING" = "yes"; then
49766   cat >>confdefs.h <<\_ACEOF
49767 #define wxUSE_STD_STRING 1
49768 _ACEOF
49769
49770 fi
49771
49772 if test "$wxUSE_STDPATHS" = "yes"; then
49773   cat >>confdefs.h <<\_ACEOF
49774 #define wxUSE_STDPATHS 1
49775 _ACEOF
49776
49777 fi
49778
49779 if test "$wxUSE_TEXTBUFFER" = "yes"; then
49780     cat >>confdefs.h <<\_ACEOF
49781 #define wxUSE_TEXTBUFFER 1
49782 _ACEOF
49783
49784 fi
49785
49786 if test "$wxUSE_TEXTFILE" = "yes"; then
49787   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
49788     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
49789 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
49790   else
49791     cat >>confdefs.h <<\_ACEOF
49792 #define wxUSE_TEXTFILE 1
49793 _ACEOF
49794
49795   fi
49796 fi
49797
49798 if test "$wxUSE_CONFIG" = "yes" ; then
49799   if test "$wxUSE_TEXTFILE" != "yes"; then
49800     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
49801 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
49802   else
49803     cat >>confdefs.h <<\_ACEOF
49804 #define wxUSE_CONFIG 1
49805 _ACEOF
49806
49807     cat >>confdefs.h <<\_ACEOF
49808 #define wxUSE_CONFIG_NATIVE 1
49809 _ACEOF
49810
49811     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
49812   fi
49813 fi
49814
49815 if test "$wxUSE_INTL" = "yes" ; then
49816   if test "$wxUSE_FILE" != "yes"; then
49817     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
49818 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
49819   else
49820     cat >>confdefs.h <<\_ACEOF
49821 #define wxUSE_INTL 1
49822 _ACEOF
49823
49824     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
49825     GUIDIST="$GUIDIST INTL_DIST"
49826   fi
49827 fi
49828
49829 if test "$wxUSE_LOG" = "yes"; then
49830   cat >>confdefs.h <<\_ACEOF
49831 #define wxUSE_LOG 1
49832 _ACEOF
49833
49834
49835     if test "$wxUSE_LOGGUI" = "yes"; then
49836       cat >>confdefs.h <<\_ACEOF
49837 #define wxUSE_LOGGUI 1
49838 _ACEOF
49839
49840     fi
49841
49842     if test "$wxUSE_LOGWINDOW" = "yes"; then
49843       cat >>confdefs.h <<\_ACEOF
49844 #define wxUSE_LOGWINDOW 1
49845 _ACEOF
49846
49847     fi
49848
49849     if test "$wxUSE_LOGDIALOG" = "yes"; then
49850       cat >>confdefs.h <<\_ACEOF
49851 #define wxUSE_LOG_DIALOG 1
49852 _ACEOF
49853
49854     fi
49855
49856         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
49857 fi
49858
49859 if test "$wxUSE_LONGLONG" = "yes"; then
49860   cat >>confdefs.h <<\_ACEOF
49861 #define wxUSE_LONGLONG 1
49862 _ACEOF
49863
49864 fi
49865
49866 if test "$wxUSE_GEOMETRY" = "yes"; then
49867   cat >>confdefs.h <<\_ACEOF
49868 #define wxUSE_GEOMETRY 1
49869 _ACEOF
49870
49871 fi
49872
49873 if test "$wxUSE_STREAMS" = "yes" ; then
49874   cat >>confdefs.h <<\_ACEOF
49875 #define wxUSE_STREAMS 1
49876 _ACEOF
49877
49878 fi
49879
49880 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
49881   cat >>confdefs.h <<\_ACEOF
49882 #define wxUSE_PRINTF_POS_PARAMS 1
49883 _ACEOF
49884
49885 fi
49886
49887
49888
49889 if test "$wxUSE_DATETIME" = "yes"; then
49890
49891 for ac_func in strptime
49892 do
49893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
49895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
49896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49897   echo $ECHO_N "(cached) $ECHO_C" >&6
49898 else
49899   cat >conftest.$ac_ext <<_ACEOF
49900 /* confdefs.h.  */
49901 _ACEOF
49902 cat confdefs.h >>conftest.$ac_ext
49903 cat >>conftest.$ac_ext <<_ACEOF
49904 /* end confdefs.h.  */
49905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49907 #define $ac_func innocuous_$ac_func
49908
49909 /* System header to define __stub macros and hopefully few prototypes,
49910     which can conflict with char $ac_func (); below.
49911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49912     <limits.h> exists even on freestanding compilers.  */
49913
49914 #ifdef __STDC__
49915 # include <limits.h>
49916 #else
49917 # include <assert.h>
49918 #endif
49919
49920 #undef $ac_func
49921
49922 /* Override any GCC internal prototype to avoid an error.
49923    Use char because int might match the return type of a GCC
49924    builtin and then its argument prototype would still apply.  */
49925 #ifdef __cplusplus
49926 extern "C"
49927 #endif
49928 char $ac_func ();
49929 /* The GNU C library defines this for functions which it implements
49930     to always fail with ENOSYS.  Some functions are actually named
49931     something starting with __ and the normal name is an alias.  */
49932 #if defined __stub_$ac_func || defined __stub___$ac_func
49933 choke me
49934 #endif
49935
49936 int
49937 main ()
49938 {
49939 return $ac_func ();
49940   ;
49941   return 0;
49942 }
49943 _ACEOF
49944 rm -f conftest.$ac_objext conftest$ac_exeext
49945 if { (ac_try="$ac_link"
49946 case "(($ac_try" in
49947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49948   *) ac_try_echo=$ac_try;;
49949 esac
49950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49951   (eval "$ac_link") 2>conftest.er1
49952   ac_status=$?
49953   grep -v '^ *+' conftest.er1 >conftest.err
49954   rm -f conftest.er1
49955   cat conftest.err >&5
49956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49957   (exit $ac_status); } &&
49958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
49959   { (case "(($ac_try" in
49960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49961   *) ac_try_echo=$ac_try;;
49962 esac
49963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49964   (eval "$ac_try") 2>&5
49965   ac_status=$?
49966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49967   (exit $ac_status); }; } &&
49968          { ac_try='test -s conftest$ac_exeext'
49969   { (case "(($ac_try" in
49970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49971   *) ac_try_echo=$ac_try;;
49972 esac
49973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49974   (eval "$ac_try") 2>&5
49975   ac_status=$?
49976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49977   (exit $ac_status); }; }; then
49978   eval "$as_ac_var=yes"
49979 else
49980   echo "$as_me: failed program was:" >&5
49981 sed 's/^/| /' conftest.$ac_ext >&5
49982
49983         eval "$as_ac_var=no"
49984 fi
49985
49986 rm -f core conftest.err conftest.$ac_objext \
49987       conftest$ac_exeext conftest.$ac_ext
49988 fi
49989 ac_res=`eval echo '${'$as_ac_var'}'`
49990                { echo "$as_me:$LINENO: result: $ac_res" >&5
49991 echo "${ECHO_T}$ac_res" >&6; }
49992 if test `eval echo '${'$as_ac_var'}'` = yes; then
49993   cat >>confdefs.h <<_ACEOF
49994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49995 _ACEOF
49996
49997 fi
49998 done
49999
50000     if test "$ac_cv_func_strptime" = "yes"; then
50001         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
50002 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
50003 if test "${wx_cv_func_strptime_decl+set}" = set; then
50004   echo $ECHO_N "(cached) $ECHO_C" >&6
50005 else
50006
50007                 ac_ext=cpp
50008 ac_cpp='$CXXCPP $CPPFLAGS'
50009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50012
50013                 cat >conftest.$ac_ext <<_ACEOF
50014 /* confdefs.h.  */
50015 _ACEOF
50016 cat confdefs.h >>conftest.$ac_ext
50017 cat >>conftest.$ac_ext <<_ACEOF
50018 /* end confdefs.h.  */
50019
50020                         #include <time.h>
50021
50022 int
50023 main ()
50024 {
50025
50026                         struct tm t;
50027                         strptime("foo", "bar", &t);
50028
50029   ;
50030   return 0;
50031 }
50032 _ACEOF
50033 rm -f conftest.$ac_objext
50034 if { (ac_try="$ac_compile"
50035 case "(($ac_try" in
50036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50037   *) ac_try_echo=$ac_try;;
50038 esac
50039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50040   (eval "$ac_compile") 2>conftest.er1
50041   ac_status=$?
50042   grep -v '^ *+' conftest.er1 >conftest.err
50043   rm -f conftest.er1
50044   cat conftest.err >&5
50045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50046   (exit $ac_status); } &&
50047          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
50048   { (case "(($ac_try" in
50049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50050   *) ac_try_echo=$ac_try;;
50051 esac
50052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50053   (eval "$ac_try") 2>&5
50054   ac_status=$?
50055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50056   (exit $ac_status); }; } &&
50057          { ac_try='test -s conftest.$ac_objext'
50058   { (case "(($ac_try" in
50059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50060   *) ac_try_echo=$ac_try;;
50061 esac
50062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50063   (eval "$ac_try") 2>&5
50064   ac_status=$?
50065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50066   (exit $ac_status); }; }; then
50067   wx_cv_func_strptime_decl=yes
50068 else
50069   echo "$as_me: failed program was:" >&5
50070 sed 's/^/| /' conftest.$ac_ext >&5
50071
50072         wx_cv_func_strptime_decl=no
50073
50074 fi
50075
50076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50077                 ac_ext=c
50078 ac_cpp='$CPP $CPPFLAGS'
50079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50082
50083
50084
50085 fi
50086 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
50087 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
50088     fi
50089     if test "$wx_cv_func_strptime_decl" = "yes"; then
50090         cat >>confdefs.h <<\_ACEOF
50091 #define HAVE_STRPTIME_DECL 1
50092 _ACEOF
50093
50094     fi
50095
50096             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
50097 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
50098 if test "${wx_cv_var_timezone+set}" = set; then
50099   echo $ECHO_N "(cached) $ECHO_C" >&6
50100 else
50101
50102                         ac_ext=cpp
50103 ac_cpp='$CXXCPP $CPPFLAGS'
50104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50107
50108                         cat >conftest.$ac_ext <<_ACEOF
50109 /* confdefs.h.  */
50110 _ACEOF
50111 cat confdefs.h >>conftest.$ac_ext
50112 cat >>conftest.$ac_ext <<_ACEOF
50113 /* end confdefs.h.  */
50114
50115                                 #include <time.h>
50116
50117 int
50118 main ()
50119 {
50120
50121                                 int tz;
50122                                 tz = timezone;
50123
50124   ;
50125   return 0;
50126 }
50127 _ACEOF
50128 rm -f conftest.$ac_objext
50129 if { (ac_try="$ac_compile"
50130 case "(($ac_try" in
50131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50132   *) ac_try_echo=$ac_try;;
50133 esac
50134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50135   (eval "$ac_compile") 2>conftest.er1
50136   ac_status=$?
50137   grep -v '^ *+' conftest.er1 >conftest.err
50138   rm -f conftest.er1
50139   cat conftest.err >&5
50140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50141   (exit $ac_status); } &&
50142          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
50143   { (case "(($ac_try" in
50144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50145   *) ac_try_echo=$ac_try;;
50146 esac
50147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50148   (eval "$ac_try") 2>&5
50149   ac_status=$?
50150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50151   (exit $ac_status); }; } &&
50152          { ac_try='test -s conftest.$ac_objext'
50153   { (case "(($ac_try" in
50154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50155   *) ac_try_echo=$ac_try;;
50156 esac
50157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50158   (eval "$ac_try") 2>&5
50159   ac_status=$?
50160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50161   (exit $ac_status); }; }; then
50162
50163                                 wx_cv_var_timezone=timezone
50164
50165 else
50166   echo "$as_me: failed program was:" >&5
50167 sed 's/^/| /' conftest.$ac_ext >&5
50168
50169
50170                                 cat >conftest.$ac_ext <<_ACEOF
50171 /* confdefs.h.  */
50172 _ACEOF
50173 cat confdefs.h >>conftest.$ac_ext
50174 cat >>conftest.$ac_ext <<_ACEOF
50175 /* end confdefs.h.  */
50176
50177                                         #include <time.h>
50178
50179 int
50180 main ()
50181 {
50182
50183                                         int tz;
50184                                         tz = _timezone;
50185
50186   ;
50187   return 0;
50188 }
50189 _ACEOF
50190 rm -f conftest.$ac_objext
50191 if { (ac_try="$ac_compile"
50192 case "(($ac_try" in
50193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50194   *) ac_try_echo=$ac_try;;
50195 esac
50196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50197   (eval "$ac_compile") 2>conftest.er1
50198   ac_status=$?
50199   grep -v '^ *+' conftest.er1 >conftest.err
50200   rm -f conftest.er1
50201   cat conftest.err >&5
50202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50203   (exit $ac_status); } &&
50204          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
50205   { (case "(($ac_try" in
50206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50207   *) ac_try_echo=$ac_try;;
50208 esac
50209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50210   (eval "$ac_try") 2>&5
50211   ac_status=$?
50212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50213   (exit $ac_status); }; } &&
50214          { ac_try='test -s conftest.$ac_objext'
50215   { (case "(($ac_try" in
50216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50217   *) ac_try_echo=$ac_try;;
50218 esac
50219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50220   (eval "$ac_try") 2>&5
50221   ac_status=$?
50222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50223   (exit $ac_status); }; }; then
50224
50225                                         wx_cv_var_timezone=_timezone
50226
50227 else
50228   echo "$as_me: failed program was:" >&5
50229 sed 's/^/| /' conftest.$ac_ext >&5
50230
50231
50232                                         cat >conftest.$ac_ext <<_ACEOF
50233 /* confdefs.h.  */
50234 _ACEOF
50235 cat confdefs.h >>conftest.$ac_ext
50236 cat >>conftest.$ac_ext <<_ACEOF
50237 /* end confdefs.h.  */
50238
50239                                                 #include <time.h>
50240
50241 int
50242 main ()
50243 {
50244
50245                                                 int tz;
50246                                                 tz = __timezone;
50247
50248   ;
50249   return 0;
50250 }
50251 _ACEOF
50252 rm -f conftest.$ac_objext
50253 if { (ac_try="$ac_compile"
50254 case "(($ac_try" in
50255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50256   *) ac_try_echo=$ac_try;;
50257 esac
50258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50259   (eval "$ac_compile") 2>conftest.er1
50260   ac_status=$?
50261   grep -v '^ *+' conftest.er1 >conftest.err
50262   rm -f conftest.er1
50263   cat conftest.err >&5
50264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50265   (exit $ac_status); } &&
50266          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
50267   { (case "(($ac_try" in
50268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50269   *) ac_try_echo=$ac_try;;
50270 esac
50271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50272   (eval "$ac_try") 2>&5
50273   ac_status=$?
50274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50275   (exit $ac_status); }; } &&
50276          { ac_try='test -s conftest.$ac_objext'
50277   { (case "(($ac_try" in
50278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50279   *) ac_try_echo=$ac_try;;
50280 esac
50281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50282   (eval "$ac_try") 2>&5
50283   ac_status=$?
50284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50285   (exit $ac_status); }; }; then
50286
50287                                                 wx_cv_var_timezone=__timezone
50288
50289 else
50290   echo "$as_me: failed program was:" >&5
50291 sed 's/^/| /' conftest.$ac_ext >&5
50292
50293
50294                                                 if test "$USE_DOS" = 0 ; then
50295                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
50296 echo "$as_me: WARNING: no timezone variable" >&2;}
50297                                                 fi
50298
50299
50300 fi
50301
50302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50303
50304
50305 fi
50306
50307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50308
50309
50310 fi
50311
50312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50313                         ac_ext=c
50314 ac_cpp='$CPP $CPPFLAGS'
50315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50318
50319
50320
50321 fi
50322 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
50323 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
50324
50325         if test "x$wx_cv_var_timezone" != x ; then
50326         cat >>confdefs.h <<_ACEOF
50327 #define WX_TIMEZONE $wx_cv_var_timezone
50328 _ACEOF
50329
50330     fi
50331
50332
50333 for ac_func in localtime
50334 do
50335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
50337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
50338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50339   echo $ECHO_N "(cached) $ECHO_C" >&6
50340 else
50341   cat >conftest.$ac_ext <<_ACEOF
50342 /* confdefs.h.  */
50343 _ACEOF
50344 cat confdefs.h >>conftest.$ac_ext
50345 cat >>conftest.$ac_ext <<_ACEOF
50346 /* end confdefs.h.  */
50347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50349 #define $ac_func innocuous_$ac_func
50350
50351 /* System header to define __stub macros and hopefully few prototypes,
50352     which can conflict with char $ac_func (); below.
50353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50354     <limits.h> exists even on freestanding compilers.  */
50355
50356 #ifdef __STDC__
50357 # include <limits.h>
50358 #else
50359 # include <assert.h>
50360 #endif
50361
50362 #undef $ac_func
50363
50364 /* Override any GCC internal prototype to avoid an error.
50365    Use char because int might match the return type of a GCC
50366    builtin and then its argument prototype would still apply.  */
50367 #ifdef __cplusplus
50368 extern "C"
50369 #endif
50370 char $ac_func ();
50371 /* The GNU C library defines this for functions which it implements
50372     to always fail with ENOSYS.  Some functions are actually named
50373     something starting with __ and the normal name is an alias.  */
50374 #if defined __stub_$ac_func || defined __stub___$ac_func
50375 choke me
50376 #endif
50377
50378 int
50379 main ()
50380 {
50381 return $ac_func ();
50382   ;
50383   return 0;
50384 }
50385 _ACEOF
50386 rm -f conftest.$ac_objext conftest$ac_exeext
50387 if { (ac_try="$ac_link"
50388 case "(($ac_try" in
50389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50390   *) ac_try_echo=$ac_try;;
50391 esac
50392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50393   (eval "$ac_link") 2>conftest.er1
50394   ac_status=$?
50395   grep -v '^ *+' conftest.er1 >conftest.err
50396   rm -f conftest.er1
50397   cat conftest.err >&5
50398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50399   (exit $ac_status); } &&
50400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50401   { (case "(($ac_try" in
50402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50403   *) ac_try_echo=$ac_try;;
50404 esac
50405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50406   (eval "$ac_try") 2>&5
50407   ac_status=$?
50408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50409   (exit $ac_status); }; } &&
50410          { ac_try='test -s conftest$ac_exeext'
50411   { (case "(($ac_try" in
50412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50413   *) ac_try_echo=$ac_try;;
50414 esac
50415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50416   (eval "$ac_try") 2>&5
50417   ac_status=$?
50418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50419   (exit $ac_status); }; }; then
50420   eval "$as_ac_var=yes"
50421 else
50422   echo "$as_me: failed program was:" >&5
50423 sed 's/^/| /' conftest.$ac_ext >&5
50424
50425         eval "$as_ac_var=no"
50426 fi
50427
50428 rm -f core conftest.err conftest.$ac_objext \
50429       conftest$ac_exeext conftest.$ac_ext
50430 fi
50431 ac_res=`eval echo '${'$as_ac_var'}'`
50432                { echo "$as_me:$LINENO: result: $ac_res" >&5
50433 echo "${ECHO_T}$ac_res" >&6; }
50434 if test `eval echo '${'$as_ac_var'}'` = yes; then
50435   cat >>confdefs.h <<_ACEOF
50436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50437 _ACEOF
50438
50439 fi
50440 done
50441
50442
50443     if test "$ac_cv_func_localtime" = "yes"; then
50444         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
50445 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
50446 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
50447   echo $ECHO_N "(cached) $ECHO_C" >&6
50448 else
50449
50450             cat >conftest.$ac_ext <<_ACEOF
50451 /* confdefs.h.  */
50452 _ACEOF
50453 cat confdefs.h >>conftest.$ac_ext
50454 cat >>conftest.$ac_ext <<_ACEOF
50455 /* end confdefs.h.  */
50456
50457                     #include <time.h>
50458
50459 int
50460 main ()
50461 {
50462
50463                     struct tm tm;
50464                     tm.tm_gmtoff++;
50465
50466   ;
50467   return 0;
50468 }
50469 _ACEOF
50470 rm -f conftest.$ac_objext
50471 if { (ac_try="$ac_compile"
50472 case "(($ac_try" in
50473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50474   *) ac_try_echo=$ac_try;;
50475 esac
50476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50477   (eval "$ac_compile") 2>conftest.er1
50478   ac_status=$?
50479   grep -v '^ *+' conftest.er1 >conftest.err
50480   rm -f conftest.er1
50481   cat conftest.err >&5
50482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50483   (exit $ac_status); } &&
50484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50485   { (case "(($ac_try" in
50486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50487   *) ac_try_echo=$ac_try;;
50488 esac
50489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50490   (eval "$ac_try") 2>&5
50491   ac_status=$?
50492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50493   (exit $ac_status); }; } &&
50494          { ac_try='test -s conftest.$ac_objext'
50495   { (case "(($ac_try" in
50496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50497   *) ac_try_echo=$ac_try;;
50498 esac
50499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50500   (eval "$ac_try") 2>&5
50501   ac_status=$?
50502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50503   (exit $ac_status); }; }; then
50504
50505                     wx_cv_struct_tm_has_gmtoff=yes
50506
50507 else
50508   echo "$as_me: failed program was:" >&5
50509 sed 's/^/| /' conftest.$ac_ext >&5
50510
50511         wx_cv_struct_tm_has_gmtoff=no
50512
50513 fi
50514
50515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50516
50517 fi
50518 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
50519 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
50520     fi
50521
50522     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
50523         cat >>confdefs.h <<\_ACEOF
50524 #define WX_GMTOFF_IN_TM 1
50525 _ACEOF
50526
50527     fi
50528
50529
50530
50531 for ac_func in gettimeofday ftime
50532 do
50533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
50535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
50536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50537   echo $ECHO_N "(cached) $ECHO_C" >&6
50538 else
50539   cat >conftest.$ac_ext <<_ACEOF
50540 /* confdefs.h.  */
50541 _ACEOF
50542 cat confdefs.h >>conftest.$ac_ext
50543 cat >>conftest.$ac_ext <<_ACEOF
50544 /* end confdefs.h.  */
50545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50547 #define $ac_func innocuous_$ac_func
50548
50549 /* System header to define __stub macros and hopefully few prototypes,
50550     which can conflict with char $ac_func (); below.
50551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50552     <limits.h> exists even on freestanding compilers.  */
50553
50554 #ifdef __STDC__
50555 # include <limits.h>
50556 #else
50557 # include <assert.h>
50558 #endif
50559
50560 #undef $ac_func
50561
50562 /* Override any GCC internal prototype to avoid an error.
50563    Use char because int might match the return type of a GCC
50564    builtin and then its argument prototype would still apply.  */
50565 #ifdef __cplusplus
50566 extern "C"
50567 #endif
50568 char $ac_func ();
50569 /* The GNU C library defines this for functions which it implements
50570     to always fail with ENOSYS.  Some functions are actually named
50571     something starting with __ and the normal name is an alias.  */
50572 #if defined __stub_$ac_func || defined __stub___$ac_func
50573 choke me
50574 #endif
50575
50576 int
50577 main ()
50578 {
50579 return $ac_func ();
50580   ;
50581   return 0;
50582 }
50583 _ACEOF
50584 rm -f conftest.$ac_objext conftest$ac_exeext
50585 if { (ac_try="$ac_link"
50586 case "(($ac_try" in
50587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50588   *) ac_try_echo=$ac_try;;
50589 esac
50590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50591   (eval "$ac_link") 2>conftest.er1
50592   ac_status=$?
50593   grep -v '^ *+' conftest.er1 >conftest.err
50594   rm -f conftest.er1
50595   cat conftest.err >&5
50596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50597   (exit $ac_status); } &&
50598          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50599   { (case "(($ac_try" in
50600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50601   *) ac_try_echo=$ac_try;;
50602 esac
50603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50604   (eval "$ac_try") 2>&5
50605   ac_status=$?
50606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50607   (exit $ac_status); }; } &&
50608          { ac_try='test -s conftest$ac_exeext'
50609   { (case "(($ac_try" in
50610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50611   *) ac_try_echo=$ac_try;;
50612 esac
50613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50614   (eval "$ac_try") 2>&5
50615   ac_status=$?
50616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50617   (exit $ac_status); }; }; then
50618   eval "$as_ac_var=yes"
50619 else
50620   echo "$as_me: failed program was:" >&5
50621 sed 's/^/| /' conftest.$ac_ext >&5
50622
50623         eval "$as_ac_var=no"
50624 fi
50625
50626 rm -f core conftest.err conftest.$ac_objext \
50627       conftest$ac_exeext conftest.$ac_ext
50628 fi
50629 ac_res=`eval echo '${'$as_ac_var'}'`
50630                { echo "$as_me:$LINENO: result: $ac_res" >&5
50631 echo "${ECHO_T}$ac_res" >&6; }
50632 if test `eval echo '${'$as_ac_var'}'` = yes; then
50633   cat >>confdefs.h <<_ACEOF
50634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50635 _ACEOF
50636  break
50637 fi
50638 done
50639
50640
50641     if test "$ac_cv_func_gettimeofday" = "yes"; then
50642         { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
50643 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
50644 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
50645   echo $ECHO_N "(cached) $ECHO_C" >&6
50646 else
50647
50648                         cat >conftest.$ac_ext <<_ACEOF
50649 /* confdefs.h.  */
50650 _ACEOF
50651 cat confdefs.h >>conftest.$ac_ext
50652 cat >>conftest.$ac_ext <<_ACEOF
50653 /* end confdefs.h.  */
50654
50655                     #include <sys/time.h>
50656                     #include <unistd.h>
50657
50658 int
50659 main ()
50660 {
50661
50662                     struct timeval tv;
50663                     gettimeofday(&tv, NULL);
50664
50665   ;
50666   return 0;
50667 }
50668 _ACEOF
50669 rm -f conftest.$ac_objext
50670 if { (ac_try="$ac_compile"
50671 case "(($ac_try" in
50672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50673   *) ac_try_echo=$ac_try;;
50674 esac
50675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50676   (eval "$ac_compile") 2>conftest.er1
50677   ac_status=$?
50678   grep -v '^ *+' conftest.er1 >conftest.err
50679   rm -f conftest.er1
50680   cat conftest.err >&5
50681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50682   (exit $ac_status); } &&
50683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50684   { (case "(($ac_try" in
50685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50686   *) ac_try_echo=$ac_try;;
50687 esac
50688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50689   (eval "$ac_try") 2>&5
50690   ac_status=$?
50691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50692   (exit $ac_status); }; } &&
50693          { ac_try='test -s conftest.$ac_objext'
50694   { (case "(($ac_try" in
50695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50696   *) ac_try_echo=$ac_try;;
50697 esac
50698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50699   (eval "$ac_try") 2>&5
50700   ac_status=$?
50701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50702   (exit $ac_status); }; }; then
50703   wx_cv_func_gettimeofday_has_2_args=yes
50704 else
50705   echo "$as_me: failed program was:" >&5
50706 sed 's/^/| /' conftest.$ac_ext >&5
50707
50708         cat >conftest.$ac_ext <<_ACEOF
50709 /* confdefs.h.  */
50710 _ACEOF
50711 cat confdefs.h >>conftest.$ac_ext
50712 cat >>conftest.$ac_ext <<_ACEOF
50713 /* end confdefs.h.  */
50714
50715                         #include <sys/time.h>
50716                         #include <unistd.h>
50717
50718 int
50719 main ()
50720 {
50721
50722                         struct timeval tv;
50723                         gettimeofday(&tv);
50724
50725   ;
50726   return 0;
50727 }
50728 _ACEOF
50729 rm -f conftest.$ac_objext
50730 if { (ac_try="$ac_compile"
50731 case "(($ac_try" in
50732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50733   *) ac_try_echo=$ac_try;;
50734 esac
50735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50736   (eval "$ac_compile") 2>conftest.er1
50737   ac_status=$?
50738   grep -v '^ *+' conftest.er1 >conftest.err
50739   rm -f conftest.er1
50740   cat conftest.err >&5
50741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50742   (exit $ac_status); } &&
50743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50744   { (case "(($ac_try" in
50745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50746   *) ac_try_echo=$ac_try;;
50747 esac
50748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50749   (eval "$ac_try") 2>&5
50750   ac_status=$?
50751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50752   (exit $ac_status); }; } &&
50753          { ac_try='test -s conftest.$ac_objext'
50754   { (case "(($ac_try" in
50755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50756   *) ac_try_echo=$ac_try;;
50757 esac
50758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50759   (eval "$ac_try") 2>&5
50760   ac_status=$?
50761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50762   (exit $ac_status); }; }; then
50763   wx_cv_func_gettimeofday_has_2_args=no
50764 else
50765   echo "$as_me: failed program was:" >&5
50766 sed 's/^/| /' conftest.$ac_ext >&5
50767
50768
50769                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
50770 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
50771                         wx_cv_func_gettimeofday_has_2_args=unknown
50772
50773
50774 fi
50775
50776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50777
50778 fi
50779
50780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50781
50782 fi
50783 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
50784 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
50785
50786         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
50787             cat >>confdefs.h <<\_ACEOF
50788 #define WX_GETTIMEOFDAY_NO_TZ 1
50789 _ACEOF
50790
50791         fi
50792     fi
50793
50794     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
50795 fi
50796
50797
50798 if test "$wxUSE_SOCKETS" = "yes"; then
50799     if test "$wxUSE_MGL" = "1"; then
50800         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
50801 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
50802         wxUSE_SOCKETS="no"
50803     fi
50804 fi
50805
50806 if test "$wxUSE_SOCKETS" = "yes"; then
50807         if test "$TOOLKIT" != "MSW"; then
50808                 { echo "$as_me:$LINENO: checking for socket" >&5
50809 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
50810 if test "${ac_cv_func_socket+set}" = set; then
50811   echo $ECHO_N "(cached) $ECHO_C" >&6
50812 else
50813   cat >conftest.$ac_ext <<_ACEOF
50814 /* confdefs.h.  */
50815 _ACEOF
50816 cat confdefs.h >>conftest.$ac_ext
50817 cat >>conftest.$ac_ext <<_ACEOF
50818 /* end confdefs.h.  */
50819 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
50820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50821 #define socket innocuous_socket
50822
50823 /* System header to define __stub macros and hopefully few prototypes,
50824     which can conflict with char socket (); below.
50825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50826     <limits.h> exists even on freestanding compilers.  */
50827
50828 #ifdef __STDC__
50829 # include <limits.h>
50830 #else
50831 # include <assert.h>
50832 #endif
50833
50834 #undef socket
50835
50836 /* Override any GCC internal prototype to avoid an error.
50837    Use char because int might match the return type of a GCC
50838    builtin and then its argument prototype would still apply.  */
50839 #ifdef __cplusplus
50840 extern "C"
50841 #endif
50842 char socket ();
50843 /* The GNU C library defines this for functions which it implements
50844     to always fail with ENOSYS.  Some functions are actually named
50845     something starting with __ and the normal name is an alias.  */
50846 #if defined __stub_socket || defined __stub___socket
50847 choke me
50848 #endif
50849
50850 int
50851 main ()
50852 {
50853 return socket ();
50854   ;
50855   return 0;
50856 }
50857 _ACEOF
50858 rm -f conftest.$ac_objext conftest$ac_exeext
50859 if { (ac_try="$ac_link"
50860 case "(($ac_try" in
50861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50862   *) ac_try_echo=$ac_try;;
50863 esac
50864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50865   (eval "$ac_link") 2>conftest.er1
50866   ac_status=$?
50867   grep -v '^ *+' conftest.er1 >conftest.err
50868   rm -f conftest.er1
50869   cat conftest.err >&5
50870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50871   (exit $ac_status); } &&
50872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50873   { (case "(($ac_try" in
50874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50875   *) ac_try_echo=$ac_try;;
50876 esac
50877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50878   (eval "$ac_try") 2>&5
50879   ac_status=$?
50880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50881   (exit $ac_status); }; } &&
50882          { ac_try='test -s conftest$ac_exeext'
50883   { (case "(($ac_try" in
50884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50885   *) ac_try_echo=$ac_try;;
50886 esac
50887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50888   (eval "$ac_try") 2>&5
50889   ac_status=$?
50890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50891   (exit $ac_status); }; }; then
50892   ac_cv_func_socket=yes
50893 else
50894   echo "$as_me: failed program was:" >&5
50895 sed 's/^/| /' conftest.$ac_ext >&5
50896
50897         ac_cv_func_socket=no
50898 fi
50899
50900 rm -f core conftest.err conftest.$ac_objext \
50901       conftest$ac_exeext conftest.$ac_ext
50902 fi
50903 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
50904 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
50905 if test $ac_cv_func_socket = yes; then
50906   :
50907 else
50908
50909                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
50910 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
50911 if test "${ac_cv_lib_socket_socket+set}" = set; then
50912   echo $ECHO_N "(cached) $ECHO_C" >&6
50913 else
50914   ac_check_lib_save_LIBS=$LIBS
50915 LIBS="-lsocket  $LIBS"
50916 cat >conftest.$ac_ext <<_ACEOF
50917 /* confdefs.h.  */
50918 _ACEOF
50919 cat confdefs.h >>conftest.$ac_ext
50920 cat >>conftest.$ac_ext <<_ACEOF
50921 /* end confdefs.h.  */
50922
50923 /* Override any GCC internal prototype to avoid an error.
50924    Use char because int might match the return type of a GCC
50925    builtin and then its argument prototype would still apply.  */
50926 #ifdef __cplusplus
50927 extern "C"
50928 #endif
50929 char socket ();
50930 int
50931 main ()
50932 {
50933 return socket ();
50934   ;
50935   return 0;
50936 }
50937 _ACEOF
50938 rm -f conftest.$ac_objext conftest$ac_exeext
50939 if { (ac_try="$ac_link"
50940 case "(($ac_try" in
50941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50942   *) ac_try_echo=$ac_try;;
50943 esac
50944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50945   (eval "$ac_link") 2>conftest.er1
50946   ac_status=$?
50947   grep -v '^ *+' conftest.er1 >conftest.err
50948   rm -f conftest.er1
50949   cat conftest.err >&5
50950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50951   (exit $ac_status); } &&
50952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
50953   { (case "(($ac_try" in
50954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50955   *) ac_try_echo=$ac_try;;
50956 esac
50957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50958   (eval "$ac_try") 2>&5
50959   ac_status=$?
50960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50961   (exit $ac_status); }; } &&
50962          { ac_try='test -s conftest$ac_exeext'
50963   { (case "(($ac_try" in
50964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50965   *) ac_try_echo=$ac_try;;
50966 esac
50967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50968   (eval "$ac_try") 2>&5
50969   ac_status=$?
50970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50971   (exit $ac_status); }; }; then
50972   ac_cv_lib_socket_socket=yes
50973 else
50974   echo "$as_me: failed program was:" >&5
50975 sed 's/^/| /' conftest.$ac_ext >&5
50976
50977         ac_cv_lib_socket_socket=no
50978 fi
50979
50980 rm -f core conftest.err conftest.$ac_objext \
50981       conftest$ac_exeext conftest.$ac_ext
50982 LIBS=$ac_check_lib_save_LIBS
50983 fi
50984 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
50985 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
50986 if test $ac_cv_lib_socket_socket = yes; then
50987   if test "$INET_LINK" != " -lsocket"; then
50988                         INET_LINK="$INET_LINK -lsocket"
50989                     fi
50990 else
50991
50992                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
50993 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
50994                         wxUSE_SOCKETS=no
50995
50996
50997 fi
50998
50999
51000
51001 fi
51002
51003     fi
51004 fi
51005
51006 if test "$wxUSE_SOCKETS" = "yes" ; then
51007                 if test "$TOOLKIT" != "MSW"; then
51008                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
51009 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
51010 if test "${wx_cv_type_getsockname3+set}" = set; then
51011   echo $ECHO_N "(cached) $ECHO_C" >&6
51012 else
51013
51014                 ac_ext=cpp
51015 ac_cpp='$CXXCPP $CPPFLAGS'
51016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51019
51020                 cat >conftest.$ac_ext <<_ACEOF
51021 /* confdefs.h.  */
51022 _ACEOF
51023 cat confdefs.h >>conftest.$ac_ext
51024 cat >>conftest.$ac_ext <<_ACEOF
51025 /* end confdefs.h.  */
51026
51027                         #include <sys/types.h>
51028                         #include <sys/socket.h>
51029
51030 int
51031 main ()
51032 {
51033
51034                         socklen_t len;
51035                         getsockname(0, 0, &len);
51036
51037   ;
51038   return 0;
51039 }
51040 _ACEOF
51041 rm -f conftest.$ac_objext
51042 if { (ac_try="$ac_compile"
51043 case "(($ac_try" in
51044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51045   *) ac_try_echo=$ac_try;;
51046 esac
51047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51048   (eval "$ac_compile") 2>conftest.er1
51049   ac_status=$?
51050   grep -v '^ *+' conftest.er1 >conftest.err
51051   rm -f conftest.er1
51052   cat conftest.err >&5
51053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51054   (exit $ac_status); } &&
51055          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
51056   { (case "(($ac_try" in
51057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51058   *) ac_try_echo=$ac_try;;
51059 esac
51060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51061   (eval "$ac_try") 2>&5
51062   ac_status=$?
51063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51064   (exit $ac_status); }; } &&
51065          { ac_try='test -s conftest.$ac_objext'
51066   { (case "(($ac_try" in
51067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51068   *) ac_try_echo=$ac_try;;
51069 esac
51070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51071   (eval "$ac_try") 2>&5
51072   ac_status=$?
51073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51074   (exit $ac_status); }; }; then
51075   wx_cv_type_getsockname3=socklen_t
51076 else
51077   echo "$as_me: failed program was:" >&5
51078 sed 's/^/| /' conftest.$ac_ext >&5
51079
51080
51081                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
51082                         if test "$GCC" = yes ; then
51083                             CFLAGS="-Werror $CFLAGS"
51084                         fi
51085
51086                         cat >conftest.$ac_ext <<_ACEOF
51087 /* confdefs.h.  */
51088 _ACEOF
51089 cat confdefs.h >>conftest.$ac_ext
51090 cat >>conftest.$ac_ext <<_ACEOF
51091 /* end confdefs.h.  */
51092
51093                                 #include <sys/types.h>
51094                                 #include <sys/socket.h>
51095
51096 int
51097 main ()
51098 {
51099
51100                                 size_t len;
51101                                 getsockname(0, 0, &len);
51102
51103   ;
51104   return 0;
51105 }
51106 _ACEOF
51107 rm -f conftest.$ac_objext
51108 if { (ac_try="$ac_compile"
51109 case "(($ac_try" in
51110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51111   *) ac_try_echo=$ac_try;;
51112 esac
51113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51114   (eval "$ac_compile") 2>conftest.er1
51115   ac_status=$?
51116   grep -v '^ *+' conftest.er1 >conftest.err
51117   rm -f conftest.er1
51118   cat conftest.err >&5
51119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51120   (exit $ac_status); } &&
51121          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
51122   { (case "(($ac_try" in
51123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51124   *) ac_try_echo=$ac_try;;
51125 esac
51126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51127   (eval "$ac_try") 2>&5
51128   ac_status=$?
51129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51130   (exit $ac_status); }; } &&
51131          { ac_try='test -s conftest.$ac_objext'
51132   { (case "(($ac_try" in
51133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51134   *) ac_try_echo=$ac_try;;
51135 esac
51136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51137   (eval "$ac_try") 2>&5
51138   ac_status=$?
51139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51140   (exit $ac_status); }; }; then
51141   wx_cv_type_getsockname3=size_t
51142 else
51143   echo "$as_me: failed program was:" >&5
51144 sed 's/^/| /' conftest.$ac_ext >&5
51145
51146         cat >conftest.$ac_ext <<_ACEOF
51147 /* confdefs.h.  */
51148 _ACEOF
51149 cat confdefs.h >>conftest.$ac_ext
51150 cat >>conftest.$ac_ext <<_ACEOF
51151 /* end confdefs.h.  */
51152
51153                                     #include <sys/types.h>
51154                                     #include <sys/socket.h>
51155
51156 int
51157 main ()
51158 {
51159
51160                                     int len;
51161                                     getsockname(0, 0, &len);
51162
51163   ;
51164   return 0;
51165 }
51166 _ACEOF
51167 rm -f conftest.$ac_objext
51168 if { (ac_try="$ac_compile"
51169 case "(($ac_try" in
51170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51171   *) ac_try_echo=$ac_try;;
51172 esac
51173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51174   (eval "$ac_compile") 2>conftest.er1
51175   ac_status=$?
51176   grep -v '^ *+' conftest.er1 >conftest.err
51177   rm -f conftest.er1
51178   cat conftest.err >&5
51179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51180   (exit $ac_status); } &&
51181          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
51182   { (case "(($ac_try" in
51183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51184   *) ac_try_echo=$ac_try;;
51185 esac
51186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51187   (eval "$ac_try") 2>&5
51188   ac_status=$?
51189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51190   (exit $ac_status); }; } &&
51191          { ac_try='test -s conftest.$ac_objext'
51192   { (case "(($ac_try" in
51193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51194   *) ac_try_echo=$ac_try;;
51195 esac
51196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51197   (eval "$ac_try") 2>&5
51198   ac_status=$?
51199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51200   (exit $ac_status); }; }; then
51201   wx_cv_type_getsockname3=int
51202 else
51203   echo "$as_me: failed program was:" >&5
51204 sed 's/^/| /' conftest.$ac_ext >&5
51205
51206         wx_cv_type_getsockname3=unknown
51207
51208 fi
51209
51210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51211
51212 fi
51213
51214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51215
51216                         CFLAGS="$CFLAGS_OLD"
51217
51218
51219 fi
51220
51221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51222                 ac_ext=c
51223 ac_cpp='$CPP $CPPFLAGS'
51224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51227
51228
51229 fi
51230 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
51231 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
51232
51233         if test "$wx_cv_type_getsockname3" = "unknown"; then
51234             wxUSE_SOCKETS=no
51235             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
51236 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
51237         else
51238             cat >>confdefs.h <<_ACEOF
51239 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
51240 _ACEOF
51241
51242         fi
51243                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
51244 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
51245 if test "${wx_cv_type_getsockopt5+set}" = set; then
51246   echo $ECHO_N "(cached) $ECHO_C" >&6
51247 else
51248
51249                 cat >conftest.$ac_ext <<_ACEOF
51250 /* confdefs.h.  */
51251 _ACEOF
51252 cat confdefs.h >>conftest.$ac_ext
51253 cat >>conftest.$ac_ext <<_ACEOF
51254 /* end confdefs.h.  */
51255
51256                         #include <sys/types.h>
51257                         #include <sys/socket.h>
51258
51259 int
51260 main ()
51261 {
51262
51263                         socklen_t len;
51264                         getsockopt(0, 0, 0, 0, &len);
51265
51266   ;
51267   return 0;
51268 }
51269 _ACEOF
51270 rm -f conftest.$ac_objext
51271 if { (ac_try="$ac_compile"
51272 case "(($ac_try" in
51273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51274   *) ac_try_echo=$ac_try;;
51275 esac
51276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51277   (eval "$ac_compile") 2>conftest.er1
51278   ac_status=$?
51279   grep -v '^ *+' conftest.er1 >conftest.err
51280   rm -f conftest.er1
51281   cat conftest.err >&5
51282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51283   (exit $ac_status); } &&
51284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51285   { (case "(($ac_try" in
51286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51287   *) ac_try_echo=$ac_try;;
51288 esac
51289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51290   (eval "$ac_try") 2>&5
51291   ac_status=$?
51292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51293   (exit $ac_status); }; } &&
51294          { ac_try='test -s conftest.$ac_objext'
51295   { (case "(($ac_try" in
51296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51297   *) ac_try_echo=$ac_try;;
51298 esac
51299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51300   (eval "$ac_try") 2>&5
51301   ac_status=$?
51302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51303   (exit $ac_status); }; }; then
51304   wx_cv_type_getsockopt5=socklen_t
51305 else
51306   echo "$as_me: failed program was:" >&5
51307 sed 's/^/| /' conftest.$ac_ext >&5
51308
51309
51310                                                                                                                                                 ac_ext=cpp
51311 ac_cpp='$CXXCPP $CPPFLAGS'
51312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51315
51316                         cat >conftest.$ac_ext <<_ACEOF
51317 /* confdefs.h.  */
51318 _ACEOF
51319 cat confdefs.h >>conftest.$ac_ext
51320 cat >>conftest.$ac_ext <<_ACEOF
51321 /* end confdefs.h.  */
51322
51323                                 #include <sys/types.h>
51324                                 #include <sys/socket.h>
51325
51326 int
51327 main ()
51328 {
51329
51330                                 size_t len;
51331                                 getsockopt(0, 0, 0, 0, &len);
51332
51333   ;
51334   return 0;
51335 }
51336 _ACEOF
51337 rm -f conftest.$ac_objext
51338 if { (ac_try="$ac_compile"
51339 case "(($ac_try" in
51340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51341   *) ac_try_echo=$ac_try;;
51342 esac
51343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51344   (eval "$ac_compile") 2>conftest.er1
51345   ac_status=$?
51346   grep -v '^ *+' conftest.er1 >conftest.err
51347   rm -f conftest.er1
51348   cat conftest.err >&5
51349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51350   (exit $ac_status); } &&
51351          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
51352   { (case "(($ac_try" in
51353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51354   *) ac_try_echo=$ac_try;;
51355 esac
51356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51357   (eval "$ac_try") 2>&5
51358   ac_status=$?
51359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51360   (exit $ac_status); }; } &&
51361          { ac_try='test -s conftest.$ac_objext'
51362   { (case "(($ac_try" in
51363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51364   *) ac_try_echo=$ac_try;;
51365 esac
51366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51367   (eval "$ac_try") 2>&5
51368   ac_status=$?
51369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51370   (exit $ac_status); }; }; then
51371   wx_cv_type_getsockopt5=size_t
51372 else
51373   echo "$as_me: failed program was:" >&5
51374 sed 's/^/| /' conftest.$ac_ext >&5
51375
51376         cat >conftest.$ac_ext <<_ACEOF
51377 /* confdefs.h.  */
51378 _ACEOF
51379 cat confdefs.h >>conftest.$ac_ext
51380 cat >>conftest.$ac_ext <<_ACEOF
51381 /* end confdefs.h.  */
51382
51383                                     #include <sys/types.h>
51384                                     #include <sys/socket.h>
51385
51386 int
51387 main ()
51388 {
51389
51390                                     int len;
51391                                     getsockopt(0, 0, 0, 0, &len);
51392
51393   ;
51394   return 0;
51395 }
51396 _ACEOF
51397 rm -f conftest.$ac_objext
51398 if { (ac_try="$ac_compile"
51399 case "(($ac_try" in
51400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51401   *) ac_try_echo=$ac_try;;
51402 esac
51403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51404   (eval "$ac_compile") 2>conftest.er1
51405   ac_status=$?
51406   grep -v '^ *+' conftest.er1 >conftest.err
51407   rm -f conftest.er1
51408   cat conftest.err >&5
51409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51410   (exit $ac_status); } &&
51411          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
51412   { (case "(($ac_try" in
51413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51414   *) ac_try_echo=$ac_try;;
51415 esac
51416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51417   (eval "$ac_try") 2>&5
51418   ac_status=$?
51419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51420   (exit $ac_status); }; } &&
51421          { ac_try='test -s conftest.$ac_objext'
51422   { (case "(($ac_try" in
51423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51424   *) ac_try_echo=$ac_try;;
51425 esac
51426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51427   (eval "$ac_try") 2>&5
51428   ac_status=$?
51429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51430   (exit $ac_status); }; }; then
51431   wx_cv_type_getsockopt5=int
51432 else
51433   echo "$as_me: failed program was:" >&5
51434 sed 's/^/| /' conftest.$ac_ext >&5
51435
51436         wx_cv_type_getsockopt5=unknown
51437
51438 fi
51439
51440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51441
51442 fi
51443
51444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51445                         ac_ext=c
51446 ac_cpp='$CPP $CPPFLAGS'
51447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51450
51451
51452
51453 fi
51454
51455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51456
51457 fi
51458 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
51459 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
51460
51461         if test "$wx_cv_type_getsockopt5" = "unknown"; then
51462             wxUSE_SOCKETS=no
51463             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
51464 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
51465         else
51466             cat >>confdefs.h <<_ACEOF
51467 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
51468 _ACEOF
51469
51470         fi
51471     fi
51472 fi
51473
51474 if test "$wxUSE_SOCKETS" = "yes" ; then
51475     cat >>confdefs.h <<\_ACEOF
51476 #define wxUSE_SOCKETS 1
51477 _ACEOF
51478
51479     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
51480 fi
51481
51482 if test "$wxUSE_PROTOCOL" = "yes"; then
51483     if test "$wxUSE_SOCKETS" != "yes"; then
51484         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
51485 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
51486         wxUSE_PROTOCOL=no
51487     fi
51488 fi
51489
51490 if test "$wxUSE_PROTOCOL" = "yes"; then
51491     cat >>confdefs.h <<\_ACEOF
51492 #define wxUSE_PROTOCOL 1
51493 _ACEOF
51494
51495
51496     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
51497         cat >>confdefs.h <<\_ACEOF
51498 #define wxUSE_PROTOCOL_HTTP 1
51499 _ACEOF
51500
51501     fi
51502     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
51503         cat >>confdefs.h <<\_ACEOF
51504 #define wxUSE_PROTOCOL_FTP 1
51505 _ACEOF
51506
51507     fi
51508     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
51509         cat >>confdefs.h <<\_ACEOF
51510 #define wxUSE_PROTOCOL_FILE 1
51511 _ACEOF
51512
51513     fi
51514 else
51515     if test "$wxUSE_FS_INET" = "yes"; then
51516         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
51517 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
51518         wxUSE_FS_INET="no"
51519     fi
51520 fi
51521
51522 if test "$wxUSE_URL" = "yes"; then
51523     if test "$wxUSE_PROTOCOL" != "yes"; then
51524         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
51525 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
51526         wxUSE_URL=no
51527     fi
51528     if test "$wxUSE_URL" = "yes"; then
51529         cat >>confdefs.h <<\_ACEOF
51530 #define wxUSE_URL 1
51531 _ACEOF
51532
51533     fi
51534 fi
51535
51536 if test "$wxUSE_VARIANT" = "yes"; then
51537     cat >>confdefs.h <<\_ACEOF
51538 #define wxUSE_VARIANT 1
51539 _ACEOF
51540
51541 fi
51542
51543 if test "$wxUSE_FS_INET" = "yes"; then
51544   cat >>confdefs.h <<\_ACEOF
51545 #define wxUSE_FS_INET 1
51546 _ACEOF
51547
51548 fi
51549
51550
51551 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
51552     wxUSE_JOYSTICK=no
51553
51554         if test "$TOOLKIT" = "MSW"; then
51555         wxUSE_JOYSTICK=yes
51556
51557         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
51558         if test "$USE_DARWIN" = 1; then
51559                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
51560 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
51561             ac_ext=cpp
51562 ac_cpp='$CXXCPP $CPPFLAGS'
51563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51566
51567             cat >conftest.$ac_ext <<_ACEOF
51568 /* confdefs.h.  */
51569 _ACEOF
51570 cat confdefs.h >>conftest.$ac_ext
51571 cat >>conftest.$ac_ext <<_ACEOF
51572 /* end confdefs.h.  */
51573  #include <IOKit/hid/IOHIDLib.h>
51574 int
51575 main ()
51576 {
51577  IOHIDQueueInterface *qi = NULL;
51578                               IOHIDCallbackFunction cb = NULL;
51579                               qi->setEventCallout(NULL, cb, NULL, NULL);
51580   ;
51581   return 0;
51582 }
51583 _ACEOF
51584 rm -f conftest.$ac_objext
51585 if { (ac_try="$ac_compile"
51586 case "(($ac_try" in
51587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51588   *) ac_try_echo=$ac_try;;
51589 esac
51590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51591   (eval "$ac_compile") 2>conftest.er1
51592   ac_status=$?
51593   grep -v '^ *+' conftest.er1 >conftest.err
51594   rm -f conftest.er1
51595   cat conftest.err >&5
51596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51597   (exit $ac_status); } &&
51598          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
51599   { (case "(($ac_try" in
51600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51601   *) ac_try_echo=$ac_try;;
51602 esac
51603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51604   (eval "$ac_try") 2>&5
51605   ac_status=$?
51606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51607   (exit $ac_status); }; } &&
51608          { ac_try='test -s conftest.$ac_objext'
51609   { (case "(($ac_try" in
51610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51611   *) ac_try_echo=$ac_try;;
51612 esac
51613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51614   (eval "$ac_try") 2>&5
51615   ac_status=$?
51616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51617   (exit $ac_status); }; }; then
51618    wxUSE_JOYSTICK=yes
51619
51620 else
51621   echo "$as_me: failed program was:" >&5
51622 sed 's/^/| /' conftest.$ac_ext >&5
51623
51624
51625 fi
51626
51627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51628             ac_ext=c
51629 ac_cpp='$CPP $CPPFLAGS'
51630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51633
51634             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
51635 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
51636         fi
51637
51638         else
51639                 if test "$wxUSE_MGL" != "1"; then
51640                                                                                     { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
51641 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
51642 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
51643   echo $ECHO_N "(cached) $ECHO_C" >&6
51644 else
51645   cat >conftest.$ac_ext <<_ACEOF
51646 /* confdefs.h.  */
51647 _ACEOF
51648 cat confdefs.h >>conftest.$ac_ext
51649 cat >>conftest.$ac_ext <<_ACEOF
51650 /* end confdefs.h.  */
51651 #include <stdio.h>
51652
51653 #include <linux/joystick.h>
51654 _ACEOF
51655 rm -f conftest.$ac_objext
51656 if { (ac_try="$ac_compile"
51657 case "(($ac_try" in
51658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51659   *) ac_try_echo=$ac_try;;
51660 esac
51661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51662   (eval "$ac_compile") 2>conftest.er1
51663   ac_status=$?
51664   grep -v '^ *+' conftest.er1 >conftest.err
51665   rm -f conftest.er1
51666   cat conftest.err >&5
51667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51668   (exit $ac_status); } &&
51669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51670   { (case "(($ac_try" in
51671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51672   *) ac_try_echo=$ac_try;;
51673 esac
51674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51675   (eval "$ac_try") 2>&5
51676   ac_status=$?
51677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51678   (exit $ac_status); }; } &&
51679          { ac_try='test -s conftest.$ac_objext'
51680   { (case "(($ac_try" in
51681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51682   *) ac_try_echo=$ac_try;;
51683 esac
51684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51685   (eval "$ac_try") 2>&5
51686   ac_status=$?
51687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51688   (exit $ac_status); }; }; then
51689   ac_cv_header_linux_joystick_h=yes
51690 else
51691   echo "$as_me: failed program was:" >&5
51692 sed 's/^/| /' conftest.$ac_ext >&5
51693
51694         ac_cv_header_linux_joystick_h=no
51695 fi
51696
51697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51698 fi
51699 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
51700 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
51701 if test $ac_cv_header_linux_joystick_h = yes; then
51702   wxUSE_JOYSTICK=yes
51703 fi
51704
51705
51706         fi
51707     fi
51708
51709     if test "$wxUSE_JOYSTICK" = "yes"; then
51710         cat >>confdefs.h <<\_ACEOF
51711 #define wxUSE_JOYSTICK 1
51712 _ACEOF
51713
51714         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
51715     else
51716         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
51717 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
51718     fi
51719 fi
51720
51721
51722
51723 if test "$wxUSE_FONTMAP" = "yes" ; then
51724   cat >>confdefs.h <<\_ACEOF
51725 #define wxUSE_FONTMAP 1
51726 _ACEOF
51727
51728 fi
51729
51730 if test "$wxUSE_UNICODE" = "yes" ; then
51731   cat >>confdefs.h <<\_ACEOF
51732 #define wxUSE_UNICODE 1
51733 _ACEOF
51734
51735
51736   if test "$USE_WIN32" != 1; then
51737       wxUSE_UNICODE_MSLU=no
51738   fi
51739
51740   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
51741         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
51742 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
51743 if test "${ac_cv_lib_unicows_main+set}" = set; then
51744   echo $ECHO_N "(cached) $ECHO_C" >&6
51745 else
51746   ac_check_lib_save_LIBS=$LIBS
51747 LIBS="-lunicows  $LIBS"
51748 cat >conftest.$ac_ext <<_ACEOF
51749 /* confdefs.h.  */
51750 _ACEOF
51751 cat confdefs.h >>conftest.$ac_ext
51752 cat >>conftest.$ac_ext <<_ACEOF
51753 /* end confdefs.h.  */
51754
51755
51756 int
51757 main ()
51758 {
51759 return main ();
51760   ;
51761   return 0;
51762 }
51763 _ACEOF
51764 rm -f conftest.$ac_objext conftest$ac_exeext
51765 if { (ac_try="$ac_link"
51766 case "(($ac_try" in
51767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51768   *) ac_try_echo=$ac_try;;
51769 esac
51770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51771   (eval "$ac_link") 2>conftest.er1
51772   ac_status=$?
51773   grep -v '^ *+' conftest.er1 >conftest.err
51774   rm -f conftest.er1
51775   cat conftest.err >&5
51776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51777   (exit $ac_status); } &&
51778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51779   { (case "(($ac_try" in
51780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51781   *) ac_try_echo=$ac_try;;
51782 esac
51783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51784   (eval "$ac_try") 2>&5
51785   ac_status=$?
51786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51787   (exit $ac_status); }; } &&
51788          { ac_try='test -s conftest$ac_exeext'
51789   { (case "(($ac_try" in
51790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51791   *) ac_try_echo=$ac_try;;
51792 esac
51793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51794   (eval "$ac_try") 2>&5
51795   ac_status=$?
51796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51797   (exit $ac_status); }; }; then
51798   ac_cv_lib_unicows_main=yes
51799 else
51800   echo "$as_me: failed program was:" >&5
51801 sed 's/^/| /' conftest.$ac_ext >&5
51802
51803         ac_cv_lib_unicows_main=no
51804 fi
51805
51806 rm -f core conftest.err conftest.$ac_objext \
51807       conftest$ac_exeext conftest.$ac_ext
51808 LIBS=$ac_check_lib_save_LIBS
51809 fi
51810 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
51811 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
51812 if test $ac_cv_lib_unicows_main = yes; then
51813
51814                 cat >>confdefs.h <<\_ACEOF
51815 #define wxUSE_UNICODE_MSLU 1
51816 _ACEOF
51817
51818
51819 else
51820
51821                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
51822                              Applications will only run on Windows NT/2000/XP!" >&5
51823 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
51824                              Applications will only run on Windows NT/2000/XP!" >&2;}
51825                 wxUSE_UNICODE_MSLU=no
51826
51827 fi
51828
51829     fi
51830 fi
51831
51832 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
51833   cat >>confdefs.h <<\_ACEOF
51834 #define wxUSE_EXPERIMENTAL_PRINTF 1
51835 _ACEOF
51836
51837 fi
51838
51839
51840 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
51841   cat >>confdefs.h <<\_ACEOF
51842 #define wxUSE_POSTSCRIPT 1
51843 _ACEOF
51844
51845 fi
51846
51847 cat >>confdefs.h <<\_ACEOF
51848 #define wxUSE_AFM_FOR_POSTSCRIPT 1
51849 _ACEOF
51850
51851
51852 cat >>confdefs.h <<\_ACEOF
51853 #define wxUSE_NORMALIZED_PS_FONTS 1
51854 _ACEOF
51855
51856
51857
51858 if test "$wxUSE_CONSTRAINTS" = "yes"; then
51859     cat >>confdefs.h <<\_ACEOF
51860 #define wxUSE_CONSTRAINTS 1
51861 _ACEOF
51862
51863     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
51864 fi
51865
51866 if test "$wxUSE_MDI" = "yes"; then
51867     cat >>confdefs.h <<\_ACEOF
51868 #define wxUSE_MDI 1
51869 _ACEOF
51870
51871
51872     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
51873         cat >>confdefs.h <<\_ACEOF
51874 #define wxUSE_MDI_ARCHITECTURE 1
51875 _ACEOF
51876
51877         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
51878     fi
51879 fi
51880
51881 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
51882     cat >>confdefs.h <<\_ACEOF
51883 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
51884 _ACEOF
51885
51886     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
51887     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
51888         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
51889     fi
51890 fi
51891
51892 if test "$wxUSE_HELP" = "yes"; then
51893     cat >>confdefs.h <<\_ACEOF
51894 #define wxUSE_HELP 1
51895 _ACEOF
51896
51897     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
51898
51899     if test "$wxUSE_MSW" = 1; then
51900       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
51901         cat >>confdefs.h <<\_ACEOF
51902 #define wxUSE_MS_HTML_HELP 1
51903 _ACEOF
51904
51905       fi
51906     fi
51907
51908     if test "$wxUSE_WXHTML_HELP" = "yes"; then
51909       if test "$wxUSE_HTML" = "yes"; then
51910         cat >>confdefs.h <<\_ACEOF
51911 #define wxUSE_WXHTML_HELP 1
51912 _ACEOF
51913
51914       else
51915         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
51916 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
51917         wxUSE_WXHTML_HELP=no
51918       fi
51919     fi
51920 fi
51921
51922 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
51923     if test "$wxUSE_CONSTRAINTS" != "yes"; then
51924         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
51925 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
51926     else
51927         cat >>confdefs.h <<\_ACEOF
51928 #define wxUSE_PRINTING_ARCHITECTURE 1
51929 _ACEOF
51930
51931     fi
51932     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
51933 fi
51934
51935 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
51936     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
51937 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
51938    { (exit 1); exit 1; }; }
51939 fi
51940
51941
51942 if test "$wxUSE_METAFILE" = "yes"; then
51943     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
51944         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
51945 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
51946         wxUSE_METAFILE=no
51947     fi
51948 fi
51949
51950
51951 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
51952                           -o "$wxUSE_CLIPBOARD"     = "yes" \
51953                           -o "$wxUSE_OLE"     = "yes" \
51954                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
51955
51956 for ac_header in ole2.h
51957 do
51958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51960   { echo "$as_me:$LINENO: checking for $ac_header" >&5
51961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
51962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51963   echo $ECHO_N "(cached) $ECHO_C" >&6
51964 fi
51965 ac_res=`eval echo '${'$as_ac_Header'}'`
51966                { echo "$as_me:$LINENO: result: $ac_res" >&5
51967 echo "${ECHO_T}$ac_res" >&6; }
51968 else
51969   # Is the header compilable?
51970 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
51971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
51972 cat >conftest.$ac_ext <<_ACEOF
51973 /* confdefs.h.  */
51974 _ACEOF
51975 cat confdefs.h >>conftest.$ac_ext
51976 cat >>conftest.$ac_ext <<_ACEOF
51977 /* end confdefs.h.  */
51978 $ac_includes_default
51979 #include <$ac_header>
51980 _ACEOF
51981 rm -f conftest.$ac_objext
51982 if { (ac_try="$ac_compile"
51983 case "(($ac_try" in
51984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51985   *) ac_try_echo=$ac_try;;
51986 esac
51987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51988   (eval "$ac_compile") 2>conftest.er1
51989   ac_status=$?
51990   grep -v '^ *+' conftest.er1 >conftest.err
51991   rm -f conftest.er1
51992   cat conftest.err >&5
51993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51994   (exit $ac_status); } &&
51995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
51996   { (case "(($ac_try" in
51997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51998   *) ac_try_echo=$ac_try;;
51999 esac
52000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52001   (eval "$ac_try") 2>&5
52002   ac_status=$?
52003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52004   (exit $ac_status); }; } &&
52005          { ac_try='test -s conftest.$ac_objext'
52006   { (case "(($ac_try" in
52007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52008   *) ac_try_echo=$ac_try;;
52009 esac
52010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52011   (eval "$ac_try") 2>&5
52012   ac_status=$?
52013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52014   (exit $ac_status); }; }; then
52015   ac_header_compiler=yes
52016 else
52017   echo "$as_me: failed program was:" >&5
52018 sed 's/^/| /' conftest.$ac_ext >&5
52019
52020         ac_header_compiler=no
52021 fi
52022
52023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52025 echo "${ECHO_T}$ac_header_compiler" >&6; }
52026
52027 # Is the header present?
52028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
52029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
52030 cat >conftest.$ac_ext <<_ACEOF
52031 /* confdefs.h.  */
52032 _ACEOF
52033 cat confdefs.h >>conftest.$ac_ext
52034 cat >>conftest.$ac_ext <<_ACEOF
52035 /* end confdefs.h.  */
52036 #include <$ac_header>
52037 _ACEOF
52038 if { (ac_try="$ac_cpp conftest.$ac_ext"
52039 case "(($ac_try" in
52040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52041   *) ac_try_echo=$ac_try;;
52042 esac
52043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52045   ac_status=$?
52046   grep -v '^ *+' conftest.er1 >conftest.err
52047   rm -f conftest.er1
52048   cat conftest.err >&5
52049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52050   (exit $ac_status); } >/dev/null; then
52051   if test -s conftest.err; then
52052     ac_cpp_err=$ac_c_preproc_warn_flag
52053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52054   else
52055     ac_cpp_err=
52056   fi
52057 else
52058   ac_cpp_err=yes
52059 fi
52060 if test -z "$ac_cpp_err"; then
52061   ac_header_preproc=yes
52062 else
52063   echo "$as_me: failed program was:" >&5
52064 sed 's/^/| /' conftest.$ac_ext >&5
52065
52066   ac_header_preproc=no
52067 fi
52068
52069 rm -f conftest.err conftest.$ac_ext
52070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52071 echo "${ECHO_T}$ac_header_preproc" >&6; }
52072
52073 # So?  What about this header?
52074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52075   yes:no: )
52076     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52080     ac_header_preproc=yes
52081     ;;
52082   no:yes:* )
52083     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52085     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52086 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52087     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52089     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52090 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52093     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52095     ( cat <<\_ASBOX
52096 ## ----------------------------------------- ##
52097 ## Report this to wx-dev@lists.wxwidgets.org ##
52098 ## ----------------------------------------- ##
52099 _ASBOX
52100      ) | sed "s/^/$as_me: WARNING:     /" >&2
52101     ;;
52102 esac
52103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
52104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
52105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52106   echo $ECHO_N "(cached) $ECHO_C" >&6
52107 else
52108   eval "$as_ac_Header=\$ac_header_preproc"
52109 fi
52110 ac_res=`eval echo '${'$as_ac_Header'}'`
52111                { echo "$as_me:$LINENO: result: $ac_res" >&5
52112 echo "${ECHO_T}$ac_res" >&6; }
52113
52114 fi
52115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52116   cat >>confdefs.h <<_ACEOF
52117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52118 _ACEOF
52119
52120 fi
52121
52122 done
52123
52124
52125     if test "$ac_cv_header_ole2_h" = "yes" ; then
52126         if test "$GCC" = yes ; then
52127             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
52128 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
52129             cat >conftest.$ac_ext <<_ACEOF
52130 /* confdefs.h.  */
52131 _ACEOF
52132 cat confdefs.h >>conftest.$ac_ext
52133 cat >>conftest.$ac_ext <<_ACEOF
52134 /* end confdefs.h.  */
52135 #include <windows.h>
52136                             #include <ole2.h>
52137 int
52138 main ()
52139 {
52140
52141   ;
52142   return 0;
52143 }
52144 _ACEOF
52145 rm -f conftest.$ac_objext
52146 if { (ac_try="$ac_compile"
52147 case "(($ac_try" in
52148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52149   *) ac_try_echo=$ac_try;;
52150 esac
52151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52152   (eval "$ac_compile") 2>conftest.er1
52153   ac_status=$?
52154   grep -v '^ *+' conftest.er1 >conftest.err
52155   rm -f conftest.er1
52156   cat conftest.err >&5
52157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52158   (exit $ac_status); } &&
52159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52160   { (case "(($ac_try" in
52161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52162   *) ac_try_echo=$ac_try;;
52163 esac
52164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52165   (eval "$ac_try") 2>&5
52166   ac_status=$?
52167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52168   (exit $ac_status); }; } &&
52169          { ac_try='test -s conftest.$ac_objext'
52170   { (case "(($ac_try" in
52171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52172   *) ac_try_echo=$ac_try;;
52173 esac
52174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52175   (eval "$ac_try") 2>&5
52176   ac_status=$?
52177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52178   (exit $ac_status); }; }; then
52179   { echo "$as_me:$LINENO: result: no" >&5
52180 echo "${ECHO_T}no" >&6; }
52181 else
52182   echo "$as_me: failed program was:" >&5
52183 sed 's/^/| /' conftest.$ac_ext >&5
52184
52185         { echo "$as_me:$LINENO: result: yes" >&5
52186 echo "${ECHO_T}yes" >&6; }
52187                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
52188 fi
52189
52190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52191             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
52192             if test "$wxUSE_OLE" = "yes" ; then
52193                 cat >>confdefs.h <<\_ACEOF
52194 #define wxUSE_OLE 1
52195 _ACEOF
52196
52197                 cat >>confdefs.h <<\_ACEOF
52198 #define wxUSE_OLE_AUTOMATION 1
52199 _ACEOF
52200
52201                 cat >>confdefs.h <<\_ACEOF
52202 #define wxUSE_ACTIVEX 1
52203 _ACEOF
52204
52205                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
52206             fi
52207         fi
52208
52209                 if test "$wxUSE_DATAOBJ" = "yes" ; then
52210             cat >>confdefs.h <<\_ACEOF
52211 #define wxUSE_DATAOBJ 1
52212 _ACEOF
52213
52214         fi
52215     else
52216         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
52217 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
52218
52219         wxUSE_CLIPBOARD=no
52220         wxUSE_DRAG_AND_DROP=no
52221         wxUSE_DATAOBJ=no
52222         wxUSE_OLE=no
52223     fi
52224
52225     if test "$wxUSE_METAFILE" = "yes"; then
52226         cat >>confdefs.h <<\_ACEOF
52227 #define wxUSE_METAFILE 1
52228 _ACEOF
52229
52230
52231                 cat >>confdefs.h <<\_ACEOF
52232 #define wxUSE_ENH_METAFILE 1
52233 _ACEOF
52234
52235     fi
52236 fi
52237
52238 if test "$wxUSE_IPC" = "yes"; then
52239     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
52240         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
52241 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
52242         wxUSE_IPC=no
52243     fi
52244
52245     if test "$wxUSE_IPC" = "yes"; then
52246         cat >>confdefs.h <<\_ACEOF
52247 #define wxUSE_IPC 1
52248 _ACEOF
52249
52250         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
52251     fi
52252 fi
52253
52254 if test "$wxUSE_DATAOBJ" = "yes"; then
52255     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
52256         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
52257 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
52258         wxUSE_DATAOBJ=no
52259     else
52260         cat >>confdefs.h <<\_ACEOF
52261 #define wxUSE_DATAOBJ 1
52262 _ACEOF
52263
52264     fi
52265 else
52266     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
52267 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
52268     wxUSE_CLIPBOARD=no
52269     wxUSE_DRAG_AND_DROP=no
52270 fi
52271
52272 if test "$wxUSE_CLIPBOARD" = "yes"; then
52273     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
52274         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
52275 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
52276         wxUSE_CLIPBOARD=no
52277     fi
52278
52279     if test "$wxUSE_CLIPBOARD" = "yes"; then
52280         cat >>confdefs.h <<\_ACEOF
52281 #define wxUSE_CLIPBOARD 1
52282 _ACEOF
52283
52284     fi
52285 fi
52286
52287 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
52288     if test "$wxUSE_GTK" = 1; then
52289         if test "$WXGTK12" != 1; then
52290             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
52291 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
52292             wxUSE_DRAG_AND_DROP=no
52293         fi
52294     fi
52295
52296     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
52297             "$wxUSE_DFB" = 1; then
52298         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
52299 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
52300         wxUSE_DRAG_AND_DROP=no
52301     fi
52302
52303     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
52304         cat >>confdefs.h <<\_ACEOF
52305 #define wxUSE_DRAG_AND_DROP 1
52306 _ACEOF
52307
52308     fi
52309
52310 fi
52311
52312 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
52313     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
52314 fi
52315
52316 if test "$wxUSE_SPLINES" = "yes" ; then
52317   cat >>confdefs.h <<\_ACEOF
52318 #define wxUSE_SPLINES 1
52319 _ACEOF
52320
52321 fi
52322
52323 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
52324   cat >>confdefs.h <<\_ACEOF
52325 #define wxUSE_MOUSEWHEEL 1
52326 _ACEOF
52327
52328 fi
52329
52330
52331 USES_CONTROLS=0
52332 if test "$wxUSE_CONTROLS" = "yes"; then
52333   USES_CONTROLS=1
52334 fi
52335
52336 if test "$wxUSE_ACCEL" = "yes"; then
52337   cat >>confdefs.h <<\_ACEOF
52338 #define wxUSE_ACCEL 1
52339 _ACEOF
52340
52341   USES_CONTROLS=1
52342 fi
52343
52344 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
52345   cat >>confdefs.h <<\_ACEOF
52346 #define wxUSE_ANIMATIONCTRL 1
52347 _ACEOF
52348
52349   USES_CONTROLS=1
52350   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
52351 fi
52352
52353 if test "$wxUSE_BUTTON" = "yes"; then
52354   cat >>confdefs.h <<\_ACEOF
52355 #define wxUSE_BUTTON 1
52356 _ACEOF
52357
52358   USES_CONTROLS=1
52359 fi
52360
52361 if test "$wxUSE_BMPBUTTON" = "yes"; then
52362   cat >>confdefs.h <<\_ACEOF
52363 #define wxUSE_BMPBUTTON 1
52364 _ACEOF
52365
52366   USES_CONTROLS=1
52367 fi
52368
52369 if test "$wxUSE_CALCTRL" = "yes"; then
52370   cat >>confdefs.h <<\_ACEOF
52371 #define wxUSE_CALENDARCTRL 1
52372 _ACEOF
52373
52374   USES_CONTROLS=1
52375   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
52376 fi
52377
52378 if test "$wxUSE_CARET" = "yes"; then
52379   cat >>confdefs.h <<\_ACEOF
52380 #define wxUSE_CARET 1
52381 _ACEOF
52382
52383   USES_CONTROLS=1
52384   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
52385 fi
52386
52387 if test "$wxUSE_COLLPANE" = "yes"; then
52388     cat >>confdefs.h <<\_ACEOF
52389 #define wxUSE_COLLPANE 1
52390 _ACEOF
52391
52392     USES_CONTROLS=1
52393     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
52394 fi
52395
52396 if test "$wxUSE_COMBOBOX" = "yes"; then
52397   cat >>confdefs.h <<\_ACEOF
52398 #define wxUSE_COMBOBOX 1
52399 _ACEOF
52400
52401   USES_CONTROLS=1
52402 fi
52403
52404 if test "$wxUSE_COMBOCTRL" = "yes"; then
52405   cat >>confdefs.h <<\_ACEOF
52406 #define wxUSE_COMBOCTRL 1
52407 _ACEOF
52408
52409   USES_CONTROLS=1
52410 fi
52411
52412 if test "$wxUSE_CHOICE" = "yes"; then
52413   cat >>confdefs.h <<\_ACEOF
52414 #define wxUSE_CHOICE 1
52415 _ACEOF
52416
52417   USES_CONTROLS=1
52418 fi
52419
52420 if test "$wxUSE_CHOICEBOOK" = "yes"; then
52421     cat >>confdefs.h <<\_ACEOF
52422 #define wxUSE_CHOICEBOOK 1
52423 _ACEOF
52424
52425     USES_CONTROLS=1
52426 fi
52427
52428 if test "$wxUSE_CHECKBOX" = "yes"; then
52429   cat >>confdefs.h <<\_ACEOF
52430 #define wxUSE_CHECKBOX 1
52431 _ACEOF
52432
52433   USES_CONTROLS=1
52434 fi
52435
52436 if test "$wxUSE_CHECKLST" = "yes"; then
52437   cat >>confdefs.h <<\_ACEOF
52438 #define wxUSE_CHECKLISTBOX 1
52439 _ACEOF
52440
52441   USES_CONTROLS=1
52442   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
52443 fi
52444
52445 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
52446   cat >>confdefs.h <<\_ACEOF
52447 #define wxUSE_COLOURPICKERCTRL 1
52448 _ACEOF
52449
52450   USES_CONTROLS=1
52451 fi
52452
52453 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
52454   cat >>confdefs.h <<\_ACEOF
52455 #define wxUSE_DATEPICKCTRL 1
52456 _ACEOF
52457
52458   USES_CONTROLS=1
52459 fi
52460
52461 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
52462   cat >>confdefs.h <<\_ACEOF
52463 #define wxUSE_DIRPICKERCTRL 1
52464 _ACEOF
52465
52466   USES_CONTROLS=1
52467 fi
52468
52469 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
52470   cat >>confdefs.h <<\_ACEOF
52471 #define wxUSE_FILEPICKERCTRL 1
52472 _ACEOF
52473
52474   USES_CONTROLS=1
52475 fi
52476
52477 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
52478   cat >>confdefs.h <<\_ACEOF
52479 #define wxUSE_FONTPICKERCTRL 1
52480 _ACEOF
52481
52482   USES_CONTROLS=1
52483 fi
52484
52485 if test "$wxUSE_DISPLAY" = "yes"; then
52486     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
52487         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
52488 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
52489         wxUSE_DISPLAY=no
52490     else
52491         cat >>confdefs.h <<\_ACEOF
52492 #define wxUSE_DISPLAY 1
52493 _ACEOF
52494
52495         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
52496     fi
52497 fi
52498
52499 if test "$wxUSE_DETECT_SM" = "yes"; then
52500     cat >>confdefs.h <<\_ACEOF
52501 #define wxUSE_DETECT_SM 1
52502 _ACEOF
52503
52504 fi
52505
52506 if test "$wxUSE_GAUGE" = "yes"; then
52507   cat >>confdefs.h <<\_ACEOF
52508 #define wxUSE_GAUGE 1
52509 _ACEOF
52510
52511   USES_CONTROLS=1
52512 fi
52513
52514 if test "$wxUSE_GRID" = "yes"; then
52515   cat >>confdefs.h <<\_ACEOF
52516 #define wxUSE_GRID 1
52517 _ACEOF
52518
52519   USES_CONTROLS=1
52520   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
52521 fi
52522
52523 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
52524   cat >>confdefs.h <<\_ACEOF
52525 #define wxUSE_HYPERLINKCTRL 1
52526 _ACEOF
52527
52528   USES_CONTROLS=1
52529 fi
52530
52531 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
52532   cat >>confdefs.h <<\_ACEOF
52533 #define wxUSE_BITMAPCOMBOBOX 1
52534 _ACEOF
52535
52536   USES_CONTROLS=1
52537 fi
52538
52539 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
52540   cat >>confdefs.h <<\_ACEOF
52541 #define wxUSE_DATAVIEWCTRL 1
52542 _ACEOF
52543
52544   USES_CONTROLS=1
52545   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
52546 fi
52547
52548 if test "$wxUSE_IMAGLIST" = "yes"; then
52549     cat >>confdefs.h <<\_ACEOF
52550 #define wxUSE_IMAGLIST 1
52551 _ACEOF
52552
52553 fi
52554
52555 if test "$wxUSE_LISTBOOK" = "yes"; then
52556     cat >>confdefs.h <<\_ACEOF
52557 #define wxUSE_LISTBOOK 1
52558 _ACEOF
52559
52560     USES_CONTROLS=1
52561 fi
52562
52563 if test "$wxUSE_LISTBOX" = "yes"; then
52564     cat >>confdefs.h <<\_ACEOF
52565 #define wxUSE_LISTBOX 1
52566 _ACEOF
52567
52568     USES_CONTROLS=1
52569     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
52570 fi
52571
52572 if test "$wxUSE_LISTCTRL" = "yes"; then
52573     if test "$wxUSE_IMAGLIST" = "yes"; then
52574         cat >>confdefs.h <<\_ACEOF
52575 #define wxUSE_LISTCTRL 1
52576 _ACEOF
52577
52578         USES_CONTROLS=1
52579         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
52580     else
52581         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
52582 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
52583     fi
52584 fi
52585
52586 if test "$wxUSE_NOTEBOOK" = "yes"; then
52587     cat >>confdefs.h <<\_ACEOF
52588 #define wxUSE_NOTEBOOK 1
52589 _ACEOF
52590
52591     USES_CONTROLS=1
52592     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
52593 fi
52594
52595 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
52596   cat >>confdefs.h <<\_ACEOF
52597 #define wxUSE_ODCOMBOBOX 1
52598 _ACEOF
52599
52600   USES_CONTROLS=1
52601   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
52602 fi
52603
52604
52605 if test "$wxUSE_RADIOBOX" = "yes"; then
52606     cat >>confdefs.h <<\_ACEOF
52607 #define wxUSE_RADIOBOX 1
52608 _ACEOF
52609
52610     USES_CONTROLS=1
52611 fi
52612
52613 if test "$wxUSE_RADIOBTN" = "yes"; then
52614     cat >>confdefs.h <<\_ACEOF
52615 #define wxUSE_RADIOBTN 1
52616 _ACEOF
52617
52618     USES_CONTROLS=1
52619 fi
52620
52621 if test "$wxUSE_SASH" = "yes"; then
52622     cat >>confdefs.h <<\_ACEOF
52623 #define wxUSE_SASH 1
52624 _ACEOF
52625
52626     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
52627 fi
52628
52629 if test "$wxUSE_SCROLLBAR" = "yes"; then
52630     cat >>confdefs.h <<\_ACEOF
52631 #define wxUSE_SCROLLBAR 1
52632 _ACEOF
52633
52634     USES_CONTROLS=1
52635     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
52636 fi
52637
52638 if test "$wxUSE_SEARCHCTRL" = "yes"; then
52639     cat >>confdefs.h <<\_ACEOF
52640 #define wxUSE_SEARCHCTRL 1
52641 _ACEOF
52642
52643     USES_CONTROLS=1
52644 fi
52645
52646 if test "$wxUSE_SLIDER" = "yes"; then
52647     cat >>confdefs.h <<\_ACEOF
52648 #define wxUSE_SLIDER 1
52649 _ACEOF
52650
52651     USES_CONTROLS=1
52652 fi
52653
52654 if test "$wxUSE_SPINBTN" = "yes"; then
52655     cat >>confdefs.h <<\_ACEOF
52656 #define wxUSE_SPINBTN 1
52657 _ACEOF
52658
52659     USES_CONTROLS=1
52660 fi
52661
52662 if test "$wxUSE_SPINCTRL" = "yes"; then
52663     cat >>confdefs.h <<\_ACEOF
52664 #define wxUSE_SPINCTRL 1
52665 _ACEOF
52666
52667     USES_CONTROLS=1
52668 fi
52669
52670 if test "$wxUSE_SPLITTER" = "yes"; then
52671     cat >>confdefs.h <<\_ACEOF
52672 #define wxUSE_SPLITTER 1
52673 _ACEOF
52674
52675     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
52676 fi
52677
52678 if test "$wxUSE_STATBMP" = "yes"; then
52679     cat >>confdefs.h <<\_ACEOF
52680 #define wxUSE_STATBMP 1
52681 _ACEOF
52682
52683     USES_CONTROLS=1
52684 fi
52685
52686 if test "$wxUSE_STATBOX" = "yes"; then
52687     cat >>confdefs.h <<\_ACEOF
52688 #define wxUSE_STATBOX 1
52689 _ACEOF
52690
52691     USES_CONTROLS=1
52692 fi
52693
52694 if test "$wxUSE_STATTEXT" = "yes"; then
52695     cat >>confdefs.h <<\_ACEOF
52696 #define wxUSE_STATTEXT 1
52697 _ACEOF
52698
52699     USES_CONTROLS=1
52700 fi
52701
52702 if test "$wxUSE_STATLINE" = "yes"; then
52703     cat >>confdefs.h <<\_ACEOF
52704 #define wxUSE_STATLINE 1
52705 _ACEOF
52706
52707     USES_CONTROLS=1
52708 fi
52709
52710 if test "$wxUSE_STATUSBAR" = "yes"; then
52711         cat >>confdefs.h <<\_ACEOF
52712 #define wxUSE_NATIVE_STATUSBAR 1
52713 _ACEOF
52714
52715     cat >>confdefs.h <<\_ACEOF
52716 #define wxUSE_STATUSBAR 1
52717 _ACEOF
52718
52719     USES_CONTROLS=1
52720
52721     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
52722 fi
52723
52724 if test "$wxUSE_TAB_DIALOG" = "yes"; then
52725     cat >>confdefs.h <<\_ACEOF
52726 #define wxUSE_TAB_DIALOG 1
52727 _ACEOF
52728
52729 fi
52730
52731 if test "$wxUSE_TEXTCTRL" = "yes"; then
52732     cat >>confdefs.h <<\_ACEOF
52733 #define wxUSE_TEXTCTRL 1
52734 _ACEOF
52735
52736     USES_CONTROLS=1
52737     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
52738 fi
52739
52740 if test "$wxUSE_TOGGLEBTN" = "yes"; then
52741     if test "$wxUSE_COCOA" = 1 ; then
52742         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
52743 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
52744         wxUSE_TOGGLEBTN=no
52745     fi
52746
52747     if test "$wxUSE_TOGGLEBTN" = "yes"; then
52748         cat >>confdefs.h <<\_ACEOF
52749 #define wxUSE_TOGGLEBTN 1
52750 _ACEOF
52751
52752         USES_CONTROLS=1
52753     fi
52754 fi
52755
52756 if test "$wxUSE_TOOLBAR" = "yes"; then
52757     cat >>confdefs.h <<\_ACEOF
52758 #define wxUSE_TOOLBAR 1
52759 _ACEOF
52760
52761     USES_CONTROLS=1
52762
52763     if test "$wxUSE_UNIVERSAL" = "yes"; then
52764         wxUSE_TOOLBAR_NATIVE="no"
52765     else
52766         wxUSE_TOOLBAR_NATIVE="yes"
52767         cat >>confdefs.h <<\_ACEOF
52768 #define wxUSE_TOOLBAR_NATIVE 1
52769 _ACEOF
52770
52771     fi
52772
52773     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
52774 fi
52775
52776 if test "$wxUSE_TOOLTIPS" = "yes"; then
52777     if test "$wxUSE_MOTIF" = 1; then
52778         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
52779 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
52780     else
52781         if test "$wxUSE_UNIVERSAL" = "yes"; then
52782             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
52783 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
52784         else
52785             cat >>confdefs.h <<\_ACEOF
52786 #define wxUSE_TOOLTIPS 1
52787 _ACEOF
52788
52789         fi
52790     fi
52791 fi
52792
52793 if test "$wxUSE_TREEBOOK" = "yes"; then
52794     cat >>confdefs.h <<\_ACEOF
52795 #define wxUSE_TREEBOOK 1
52796 _ACEOF
52797
52798     USES_CONTROLS=1
52799 fi
52800
52801 if test "$wxUSE_TOOLBOOK" = "yes"; then
52802     cat >>confdefs.h <<\_ACEOF
52803 #define wxUSE_TOOLBOOK 1
52804 _ACEOF
52805
52806     USES_CONTROLS=1
52807 fi
52808
52809 if test "$wxUSE_TREECTRL" = "yes"; then
52810     if test "$wxUSE_IMAGLIST" = "yes"; then
52811         cat >>confdefs.h <<\_ACEOF
52812 #define wxUSE_TREECTRL 1
52813 _ACEOF
52814
52815         USES_CONTROLS=1
52816         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
52817     else
52818         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
52819 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
52820     fi
52821 fi
52822
52823 if test "$wxUSE_POPUPWIN" = "yes"; then
52824     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
52825         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
52826 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
52827     else
52828         if test "$wxUSE_PM" = 1; then
52829             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
52830 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
52831         else
52832             cat >>confdefs.h <<\_ACEOF
52833 #define wxUSE_POPUPWIN 1
52834 _ACEOF
52835
52836             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
52837
52838             USES_CONTROLS=1
52839         fi
52840     fi
52841 fi
52842
52843 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
52844     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
52845         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
52846 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
52847     else
52848         cat >>confdefs.h <<\_ACEOF
52849 #define wxUSE_DIALUP_MANAGER 1
52850 _ACEOF
52851
52852         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
52853     fi
52854 fi
52855
52856 if test "$wxUSE_TIPWINDOW" = "yes"; then
52857     if test "$wxUSE_PM" = 1; then
52858         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
52859 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
52860     else
52861         cat >>confdefs.h <<\_ACEOF
52862 #define wxUSE_TIPWINDOW 1
52863 _ACEOF
52864
52865     fi
52866 fi
52867
52868 if test "$USES_CONTROLS" = 1; then
52869     cat >>confdefs.h <<\_ACEOF
52870 #define wxUSE_CONTROLS 1
52871 _ACEOF
52872
52873 fi
52874
52875
52876 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
52877     cat >>confdefs.h <<\_ACEOF
52878 #define wxUSE_ACCESSIBILITY 1
52879 _ACEOF
52880
52881     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
52882 fi
52883
52884 if test "$wxUSE_DC_CACHEING" = "yes"; then
52885     cat >>confdefs.h <<\_ACEOF
52886 #define wxUSE_DC_CACHEING 1
52887 _ACEOF
52888
52889 fi
52890
52891 if test "$wxUSE_DRAGIMAGE" = "yes"; then
52892     cat >>confdefs.h <<\_ACEOF
52893 #define wxUSE_DRAGIMAGE 1
52894 _ACEOF
52895
52896     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
52897 fi
52898
52899 if test "$wxUSE_EXCEPTIONS" = "yes"; then
52900     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
52901         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
52902 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
52903     else
52904         cat >>confdefs.h <<\_ACEOF
52905 #define wxUSE_EXCEPTIONS 1
52906 _ACEOF
52907
52908         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
52909     fi
52910 fi
52911
52912 USE_HTML=0
52913 if test "$wxUSE_HTML" = "yes"; then
52914     cat >>confdefs.h <<\_ACEOF
52915 #define wxUSE_HTML 1
52916 _ACEOF
52917
52918     USE_HTML=1
52919     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
52920     if test "$wxUSE_MAC" = 1; then
52921         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
52922     fi
52923 fi
52924 if test "$wxUSE_WEBKIT" = "yes"; then
52925     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
52926         old_CPPFLAGS="$CPPFLAGS"
52927         CPPFLAGS="-x objective-c++ $CPPFLAGS"
52928         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
52929 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
52930 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
52931   echo $ECHO_N "(cached) $ECHO_C" >&6
52932 else
52933   cat >conftest.$ac_ext <<_ACEOF
52934 /* confdefs.h.  */
52935 _ACEOF
52936 cat confdefs.h >>conftest.$ac_ext
52937 cat >>conftest.$ac_ext <<_ACEOF
52938 /* end confdefs.h.  */
52939
52940                            #include <Carbon/Carbon.h>
52941                            #include <WebKit/WebKit.h>
52942
52943
52944 #include <WebKit/HIWebView.h>
52945 _ACEOF
52946 rm -f conftest.$ac_objext
52947 if { (ac_try="$ac_compile"
52948 case "(($ac_try" in
52949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52950   *) ac_try_echo=$ac_try;;
52951 esac
52952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52953   (eval "$ac_compile") 2>conftest.er1
52954   ac_status=$?
52955   grep -v '^ *+' conftest.er1 >conftest.err
52956   rm -f conftest.er1
52957   cat conftest.err >&5
52958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52959   (exit $ac_status); } &&
52960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
52961   { (case "(($ac_try" in
52962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52963   *) ac_try_echo=$ac_try;;
52964 esac
52965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52966   (eval "$ac_try") 2>&5
52967   ac_status=$?
52968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52969   (exit $ac_status); }; } &&
52970          { ac_try='test -s conftest.$ac_objext'
52971   { (case "(($ac_try" in
52972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52973   *) ac_try_echo=$ac_try;;
52974 esac
52975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52976   (eval "$ac_try") 2>&5
52977   ac_status=$?
52978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52979   (exit $ac_status); }; }; then
52980   ac_cv_header_WebKit_HIWebView_h=yes
52981 else
52982   echo "$as_me: failed program was:" >&5
52983 sed 's/^/| /' conftest.$ac_ext >&5
52984
52985         ac_cv_header_WebKit_HIWebView_h=no
52986 fi
52987
52988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52989 fi
52990 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
52991 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
52992 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
52993
52994                            cat >>confdefs.h <<\_ACEOF
52995 #define wxUSE_WEBKIT 1
52996 _ACEOF
52997
52998                            WEBKIT_LINK="-framework WebKit"
52999
53000 else
53001
53002                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
53003 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
53004                            wxUSE_WEBKIT=no
53005
53006 fi
53007
53008
53009         CPPFLAGS="$old_CPPFLAGS"
53010     elif test "$wxUSE_COCOA" = 1; then
53011         cat >>confdefs.h <<\_ACEOF
53012 #define wxUSE_WEBKIT 1
53013 _ACEOF
53014
53015     else
53016         wxUSE_WEBKIT=no
53017     fi
53018 fi
53019
53020 USE_XRC=0
53021 if test "$wxUSE_XRC" = "yes"; then
53022     if test "$wxUSE_XML" != "yes"; then
53023         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
53024 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
53025         wxUSE_XRC=no
53026     else
53027         cat >>confdefs.h <<\_ACEOF
53028 #define wxUSE_XRC 1
53029 _ACEOF
53030
53031         USE_XRC=1
53032         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
53033     fi
53034 fi
53035
53036 USE_AUI=0
53037 if test "$wxUSE_AUI" = "yes"; then
53038    cat >>confdefs.h <<\_ACEOF
53039 #define wxUSE_AUI 1
53040 _ACEOF
53041
53042    USE_AUI=1
53043    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
53044 fi
53045
53046 if test "$wxUSE_MENUS" = "yes"; then
53047     cat >>confdefs.h <<\_ACEOF
53048 #define wxUSE_MENUS 1
53049 _ACEOF
53050
53051     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
53052 fi
53053
53054 if test "$wxUSE_METAFILE" = "yes"; then
53055     cat >>confdefs.h <<\_ACEOF
53056 #define wxUSE_METAFILE 1
53057 _ACEOF
53058
53059 fi
53060
53061 if test "$wxUSE_MIMETYPE" = "yes"; then
53062     cat >>confdefs.h <<\_ACEOF
53063 #define wxUSE_MIMETYPE 1
53064 _ACEOF
53065
53066 fi
53067
53068 if test "$wxUSE_MINIFRAME" = "yes"; then
53069     cat >>confdefs.h <<\_ACEOF
53070 #define wxUSE_MINIFRAME 1
53071 _ACEOF
53072
53073     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
53074 fi
53075
53076 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
53077     cat >>confdefs.h <<\_ACEOF
53078 #define wxUSE_SYSTEM_OPTIONS 1
53079 _ACEOF
53080
53081     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
53082         "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
53083         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
53084     fi
53085 fi
53086
53087
53088 if test "$wxUSE_VALIDATORS" = "yes"; then
53089     cat >>confdefs.h <<\_ACEOF
53090 #define wxUSE_VALIDATORS 1
53091 _ACEOF
53092
53093     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
53094 fi
53095
53096 if test "$wxUSE_PALETTE" = "yes" ; then
53097     if test "$wxUSE_DFB" = 1; then
53098         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
53099 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
53100         wxUSE_PALETTE=no
53101     else
53102         cat >>confdefs.h <<\_ACEOF
53103 #define wxUSE_PALETTE 1
53104 _ACEOF
53105
53106     fi
53107 fi
53108
53109 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
53110     LIBS=" -lunicows $LIBS"
53111 fi
53112
53113 USE_RICHTEXT=0
53114 if test "$wxUSE_RICHTEXT" = "yes"; then
53115     cat >>confdefs.h <<\_ACEOF
53116 #define wxUSE_RICHTEXT 1
53117 _ACEOF
53118
53119     USE_RICHTEXT=1
53120     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
53121 fi
53122
53123
53124 if test "$wxUSE_IMAGE" = "yes" ; then
53125     cat >>confdefs.h <<\_ACEOF
53126 #define wxUSE_IMAGE 1
53127 _ACEOF
53128
53129
53130     if test "$wxUSE_GIF" = "yes" ; then
53131       cat >>confdefs.h <<\_ACEOF
53132 #define wxUSE_GIF 1
53133 _ACEOF
53134
53135     fi
53136
53137     if test "$wxUSE_PCX" = "yes" ; then
53138       cat >>confdefs.h <<\_ACEOF
53139 #define wxUSE_PCX 1
53140 _ACEOF
53141
53142     fi
53143
53144     if test "$wxUSE_TGA" = "yes" ; then
53145       cat >>confdefs.h <<\_ACEOF
53146 #define wxUSE_TGA 1
53147 _ACEOF
53148
53149     fi
53150
53151     if test "$wxUSE_IFF" = "yes" ; then
53152       cat >>confdefs.h <<\_ACEOF
53153 #define wxUSE_IFF 1
53154 _ACEOF
53155
53156     fi
53157
53158     if test "$wxUSE_PNM" = "yes" ; then
53159       cat >>confdefs.h <<\_ACEOF
53160 #define wxUSE_PNM 1
53161 _ACEOF
53162
53163     fi
53164
53165     if test "$wxUSE_XPM" = "yes" ; then
53166       cat >>confdefs.h <<\_ACEOF
53167 #define wxUSE_XPM 1
53168 _ACEOF
53169
53170     fi
53171
53172     if test "$wxUSE_ICO_CUR" = "yes" ; then
53173       cat >>confdefs.h <<\_ACEOF
53174 #define wxUSE_ICO_CUR 1
53175 _ACEOF
53176
53177     fi
53178 fi
53179
53180
53181 if test "$wxUSE_ABOUTDLG" = "yes"; then
53182     cat >>confdefs.h <<\_ACEOF
53183 #define wxUSE_ABOUTDLG 1
53184 _ACEOF
53185
53186 fi
53187
53188 if test "$wxUSE_CHOICEDLG" = "yes"; then
53189     cat >>confdefs.h <<\_ACEOF
53190 #define wxUSE_CHOICEDLG 1
53191 _ACEOF
53192
53193 fi
53194
53195 if test "$wxUSE_COLOURDLG" = "yes"; then
53196     cat >>confdefs.h <<\_ACEOF
53197 #define wxUSE_COLOURDLG 1
53198 _ACEOF
53199
53200 fi
53201
53202 if test "$wxUSE_FILEDLG" = "yes"; then
53203     cat >>confdefs.h <<\_ACEOF
53204 #define wxUSE_FILEDLG 1
53205 _ACEOF
53206
53207 fi
53208
53209 if test "$wxUSE_FINDREPLDLG" = "yes"; then
53210     cat >>confdefs.h <<\_ACEOF
53211 #define wxUSE_FINDREPLDLG 1
53212 _ACEOF
53213
53214 fi
53215
53216 if test "$wxUSE_FONTDLG" = "yes"; then
53217     cat >>confdefs.h <<\_ACEOF
53218 #define wxUSE_FONTDLG 1
53219 _ACEOF
53220
53221 fi
53222
53223 if test "$wxUSE_DIRDLG" = "yes"; then
53224     if test "$wxUSE_TREECTRL" != "yes"; then
53225         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
53226 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
53227     else
53228         cat >>confdefs.h <<\_ACEOF
53229 #define wxUSE_DIRDLG 1
53230 _ACEOF
53231
53232     fi
53233 fi
53234
53235 if test "$wxUSE_MSGDLG" = "yes"; then
53236     cat >>confdefs.h <<\_ACEOF
53237 #define wxUSE_MSGDLG 1
53238 _ACEOF
53239
53240 fi
53241
53242 if test "$wxUSE_NUMBERDLG" = "yes"; then
53243     cat >>confdefs.h <<\_ACEOF
53244 #define wxUSE_NUMBERDLG 1
53245 _ACEOF
53246
53247 fi
53248
53249 if test "$wxUSE_PROGRESSDLG" = "yes"; then
53250     if test "$wxUSE_CONSTRAINTS" != "yes"; then
53251        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
53252 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
53253     else
53254         cat >>confdefs.h <<\_ACEOF
53255 #define wxUSE_PROGRESSDLG 1
53256 _ACEOF
53257
53258     fi
53259 fi
53260
53261 if test "$wxUSE_SPLASH" = "yes"; then
53262     cat >>confdefs.h <<\_ACEOF
53263 #define wxUSE_SPLASH 1
53264 _ACEOF
53265
53266     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
53267 fi
53268
53269 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
53270     if test "$wxUSE_CONSTRAINTS" != "yes"; then
53271        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
53272 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
53273     else
53274         cat >>confdefs.h <<\_ACEOF
53275 #define wxUSE_STARTUP_TIPS 1
53276 _ACEOF
53277
53278     fi
53279 fi
53280
53281 if test "$wxUSE_TEXTDLG" = "yes"; then
53282     cat >>confdefs.h <<\_ACEOF
53283 #define wxUSE_TEXTDLG 1
53284 _ACEOF
53285
53286 fi
53287
53288 if test "$wxUSE_WIZARDDLG" = "yes"; then
53289     cat >>confdefs.h <<\_ACEOF
53290 #define wxUSE_WIZARDDLG 1
53291 _ACEOF
53292
53293     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
53294 fi
53295
53296
53297 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
53298    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
53299       cat >>confdefs.h <<\_ACEOF
53300 #define wxUSE_GRAPHICS_CONTEXT 1
53301 _ACEOF
53302
53303    elif test "$wxUSE_GTK" != 1; then
53304             cat >>confdefs.h <<\_ACEOF
53305 #define wxUSE_GRAPHICS_CONTEXT 1
53306 _ACEOF
53307
53308    else
53309
53310 pkg_failed=no
53311 { echo "$as_me:$LINENO: checking for CAIRO" >&5
53312 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
53313
53314 if test -n "$PKG_CONFIG"; then
53315     if test -n "$CAIRO_CFLAGS"; then
53316         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
53317     else
53318         if test -n "$PKG_CONFIG" && \
53319     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
53320   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
53321   ac_status=$?
53322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53323   (exit $ac_status); }; then
53324   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
53325 else
53326   pkg_failed=yes
53327 fi
53328     fi
53329 else
53330         pkg_failed=untried
53331 fi
53332 if test -n "$PKG_CONFIG"; then
53333     if test -n "$CAIRO_LIBS"; then
53334         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
53335     else
53336         if test -n "$PKG_CONFIG" && \
53337     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
53338   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
53339   ac_status=$?
53340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53341   (exit $ac_status); }; then
53342   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
53343 else
53344   pkg_failed=yes
53345 fi
53346     fi
53347 else
53348         pkg_failed=untried
53349 fi
53350
53351
53352
53353 if test $pkg_failed = yes; then
53354
53355 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53356         _pkg_short_errors_supported=yes
53357 else
53358         _pkg_short_errors_supported=no
53359 fi
53360         if test $_pkg_short_errors_supported = yes; then
53361                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
53362         else
53363                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
53364         fi
53365         # Put the nasty error message in config.log where it belongs
53366         echo "$CAIRO_PKG_ERRORS" >&5
53367
53368         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
53369 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
53370
53371 elif test $pkg_failed = untried; then
53372         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
53373 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
53374
53375 else
53376         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
53377         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
53378         { echo "$as_me:$LINENO: result: yes" >&5
53379 echo "${ECHO_T}yes" >&6; }
53380         cat >>confdefs.h <<\_ACEOF
53381 #define wxUSE_GRAPHICS_CONTEXT 1
53382 _ACEOF
53383
53384 fi
53385    fi
53386 fi
53387
53388
53389 USE_MEDIA=0
53390
53391 if test "$wxUSE_MEDIACTRL" = "yes"; then
53392     USE_MEDIA=1
53393
53394                 if test "$wxUSE_GTK" = 1; then
53395         wxUSE_GSTREAMER="no"
53396
53397                                                                 GST_VERSION_MAJOR=0
53398         GST_VERSION_MINOR=10
53399         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
53400
53401         if test "$wxUSE_GSTREAMER8" = "no"; then
53402
53403 pkg_failed=no
53404 { echo "$as_me:$LINENO: checking for GST" >&5
53405 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
53406
53407 if test -n "$PKG_CONFIG"; then
53408     if test -n "$GST_CFLAGS"; then
53409         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
53410     else
53411         if test -n "$PKG_CONFIG" && \
53412     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
53413   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
53414   ac_status=$?
53415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53416   (exit $ac_status); }; then
53417   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
53418 else
53419   pkg_failed=yes
53420 fi
53421     fi
53422 else
53423         pkg_failed=untried
53424 fi
53425 if test -n "$PKG_CONFIG"; then
53426     if test -n "$GST_LIBS"; then
53427         pkg_cv_GST_LIBS="$GST_LIBS"
53428     else
53429         if test -n "$PKG_CONFIG" && \
53430     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
53431   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
53432   ac_status=$?
53433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53434   (exit $ac_status); }; then
53435   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
53436 else
53437   pkg_failed=yes
53438 fi
53439     fi
53440 else
53441         pkg_failed=untried
53442 fi
53443
53444
53445
53446 if test $pkg_failed = yes; then
53447
53448 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53449         _pkg_short_errors_supported=yes
53450 else
53451         _pkg_short_errors_supported=no
53452 fi
53453         if test $_pkg_short_errors_supported = yes; then
53454                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
53455         else
53456                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
53457         fi
53458         # Put the nasty error message in config.log where it belongs
53459         echo "$GST_PKG_ERRORS" >&5
53460
53461
53462                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
53463 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
53464                     GST_VERSION_MINOR=8
53465
53466
53467 elif test $pkg_failed = untried; then
53468
53469                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
53470 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
53471                     GST_VERSION_MINOR=8
53472
53473
53474 else
53475         GST_CFLAGS=$pkg_cv_GST_CFLAGS
53476         GST_LIBS=$pkg_cv_GST_LIBS
53477         { echo "$as_me:$LINENO: result: yes" >&5
53478 echo "${ECHO_T}yes" >&6; }
53479
53480                     wxUSE_GSTREAMER="yes"
53481                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
53482
53483 fi
53484         else
53485                         GST_VERSION_MINOR=8
53486         fi
53487
53488         if test $GST_VERSION_MINOR = "8"; then
53489             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
53490
53491 pkg_failed=no
53492 { echo "$as_me:$LINENO: checking for GST" >&5
53493 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
53494
53495 if test -n "$PKG_CONFIG"; then
53496     if test -n "$GST_CFLAGS"; then
53497         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
53498     else
53499         if test -n "$PKG_CONFIG" && \
53500     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
53501   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
53502   ac_status=$?
53503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53504   (exit $ac_status); }; then
53505   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
53506 else
53507   pkg_failed=yes
53508 fi
53509     fi
53510 else
53511         pkg_failed=untried
53512 fi
53513 if test -n "$PKG_CONFIG"; then
53514     if test -n "$GST_LIBS"; then
53515         pkg_cv_GST_LIBS="$GST_LIBS"
53516     else
53517         if test -n "$PKG_CONFIG" && \
53518     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
53519   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
53520   ac_status=$?
53521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53522   (exit $ac_status); }; then
53523   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
53524 else
53525   pkg_failed=yes
53526 fi
53527     fi
53528 else
53529         pkg_failed=untried
53530 fi
53531
53532
53533
53534 if test $pkg_failed = yes; then
53535
53536 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
53537         _pkg_short_errors_supported=yes
53538 else
53539         _pkg_short_errors_supported=no
53540 fi
53541         if test $_pkg_short_errors_supported = yes; then
53542                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
53543         else
53544                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
53545         fi
53546         # Put the nasty error message in config.log where it belongs
53547         echo "$GST_PKG_ERRORS" >&5
53548
53549
53550                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
53551 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
53552
53553 elif test $pkg_failed = untried; then
53554
53555                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
53556 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
53557
53558 else
53559         GST_CFLAGS=$pkg_cv_GST_CFLAGS
53560         GST_LIBS=$pkg_cv_GST_LIBS
53561         { echo "$as_me:$LINENO: result: yes" >&5
53562 echo "${ECHO_T}yes" >&6; }
53563         wxUSE_GSTREAMER="yes"
53564 fi
53565         fi
53566
53567
53568         if test "$wxUSE_GSTREAMER" = "yes"; then
53569                                     case "${host}" in
53570                 *-*-solaris2* )
53571                     if "$GCC" = yes; then
53572                         GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
53573                         GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
53574                     fi
53575             esac
53576
53577             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
53578             LIBS="$GST_LIBS $LIBS"
53579
53580             cat >>confdefs.h <<\_ACEOF
53581 #define wxUSE_GSTREAMER 1
53582 _ACEOF
53583
53584         else
53585             USE_MEDIA=0
53586         fi
53587     fi
53588
53589     if test $USE_MEDIA = 1; then
53590         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
53591         cat >>confdefs.h <<\_ACEOF
53592 #define wxUSE_MEDIACTRL 1
53593 _ACEOF
53594
53595     fi
53596 fi
53597
53598
53599 if test "$cross_compiling" = "yes"; then
53600         OSINFO="\"$host\""
53601 else
53602         OSINFO=`uname -s -r -m`
53603     OSINFO="\"$OSINFO\""
53604 fi
53605
53606 cat >>confdefs.h <<_ACEOF
53607 #define WXWIN_OS_DESCRIPTION $OSINFO
53608 _ACEOF
53609
53610
53611
53612 if test "x$prefix" != "xNONE"; then
53613     wxPREFIX=$prefix
53614 else
53615     wxPREFIX=$ac_default_prefix
53616 fi
53617
53618 cat >>confdefs.h <<_ACEOF
53619 #define wxINSTALL_PREFIX "$wxPREFIX"
53620 _ACEOF
53621
53622
53623
53624
53625 CORE_BASE_LIBS="net base"
53626 CORE_GUI_LIBS="adv core"
53627
53628 if test "$wxUSE_XML" = "yes" ; then
53629     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
53630 fi
53631 if test "$wxUSE_ODBC" != "no" ; then
53632     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
53633     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
53634 fi
53635 if test "$wxUSE_HTML" = "yes" ; then
53636     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
53637 fi
53638 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
53639     CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
53640 fi
53641 if test "$wxUSE_XRC" = "yes" ; then
53642     CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
53643 fi
53644 if test "$wxUSE_AUI" = "yes" ; then
53645     CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
53646 fi
53647
53648 if test "$wxUSE_GUI" != "yes"; then
53649     CORE_GUI_LIBS=""
53650 fi
53651
53652
53653
53654
53655
53656
53657 if test "$wxUSE_MAC" = 1 ; then
53658     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
53659         if test "$USE_DARWIN" = 1; then
53660             LDFLAGS="$LDFLAGS -framework QuickTime"
53661         else
53662             LDFLAGS="$LDFLAGS -lQuickTimeLib"
53663         fi
53664     fi
53665     if test "$USE_DARWIN" = 1; then
53666         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
53667     else
53668         LDFLAGS="$LDFLAGS -lCarbonLib"
53669     fi
53670 fi
53671 if test "$wxUSE_COCOA" = 1 ; then
53672     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
53673     if test "$wxUSE_MEDIACTRL" = "yes"; then
53674         LDFLAGS="$LDFLAGS -framework QuickTime"
53675     fi
53676 fi
53677 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
53678     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
53679 fi
53680
53681 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
53682
53683 if test "$wxUSE_GUI" = "yes"; then
53684
53685
53686         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
53687                      dynamic erase event exec font image minimal mobile \
53688                      mobile/wxedit mobile/styles propsize render \
53689                      rotate shaped vscroll widgets"
53690
53691     if test "$wxUSE_MONOLITHIC" != "yes"; then
53692         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
53693     fi
53694     if test "$TOOLKIT" = "MSW"; then
53695         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
53696         if test "$wxUSE_UNIVERSAL" != "yes"; then
53697             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
53698         fi
53699     fi
53700     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
53701         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
53702     fi
53703 else
53704     SAMPLES_SUBDIRS="console"
53705 fi
53706
53707
53708 if test "x$INTELCC" = "xyes" ; then
53709                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
53710 elif test "$GCC" = yes ; then
53711     CWARNINGS="-Wall -Wundef"
53712 fi
53713
53714 if test "x$INTELCXX" = "xyes" ; then
53715                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
53716 elif test "$GXX" = yes ; then
53717         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
53718 fi
53719
53720
53721 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
53722 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
53723
53724
53725 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
53726  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
53727  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
53728  $CPPFLAGS `
53729
53730 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
53731 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
53732 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
53733
53734 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
53735
53736
53737 if test "x$MWCC" = "xyes"; then
53738
53739             CC="$CC -cwd source -I-"
53740     CXX="$CXX -cwd source -I-"
53741 fi
53742
53743
53744 LIBS=`echo $LIBS`
53745 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
53746 EXTRALIBS_XML="$EXPAT_LINK"
53747 EXTRALIBS_HTML="$MSPACK_LINK"
53748 EXTRALIBS_ODBC="$ODBC_LINK"
53749 if test "$wxUSE_GUI" = "yes"; then
53750     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
53751 fi
53752 if test "$wxUSE_OPENGL" = "yes"; then
53753     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
53754 fi
53755
53756 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
53757
53758 WXCONFIG_LIBS="$LIBS"
53759
53760 if test "$wxUSE_REGEX" = "builtin" ; then
53761     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
53762 fi
53763 if test "$wxUSE_EXPAT" = "builtin" ; then
53764     wxconfig_3rdparty="expat $wxconfig_3rdparty"
53765 fi
53766 if test "$wxUSE_ODBC" = "builtin" ; then
53767     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
53768 fi
53769 if test "$wxUSE_LIBTIFF" = "builtin" ; then
53770     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
53771 fi
53772 if test "$wxUSE_LIBJPEG" = "builtin" ; then
53773     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
53774 fi
53775 if test "$wxUSE_LIBPNG" = "builtin" ; then
53776     wxconfig_3rdparty="png $wxconfig_3rdparty"
53777 fi
53778 if test "$wxUSE_ZLIB" = "builtin" ; then
53779     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
53780 fi
53781
53782 for i in $wxconfig_3rdparty ; do
53783     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
53784 done
53785
53786
53787 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
53788     WXUNIV=1
53789
53790     case "$wxUNIV_THEMES" in
53791         ''|all)
53792             cat >>confdefs.h <<\_ACEOF
53793 #define wxUSE_ALL_THEMES 1
53794 _ACEOF
53795
53796             ;;
53797
53798         *)
53799             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
53800                 cat >>confdefs.h <<_ACEOF
53801 #define wxUSE_THEME_$t 1
53802 _ACEOF
53803
53804             done
53805     esac
53806 else
53807     WXUNIV=0
53808 fi
53809
53810
53811
53812
53813
53814
53815
53816
53817
53818 if test $wxUSE_MONOLITHIC = "yes" ; then
53819     MONOLITHIC=1
53820 else
53821     MONOLITHIC=0
53822 fi
53823
53824 if test $wxUSE_PLUGINS = "yes" ; then
53825     USE_PLUGINS=1
53826 else
53827     USE_PLUGINS=0
53828 fi
53829
53830 if test $wxUSE_ODBC != "no" ; then
53831     USE_ODBC=1
53832 else
53833     USE_ODBC=0
53834 fi
53835
53836 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
53837     USE_QA=1
53838 else
53839     USE_QA=0
53840 fi
53841
53842 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
53843     OFFICIAL_BUILD=1
53844 else
53845     OFFICIAL_BUILD=0
53846 fi
53847
53848
53849
53850
53851
53852
53853
53854
53855
53856
53857
53858
53859
53860
53861
53862
53863
53864
53865
53866
53867
53868
53869
53870
53871
53872 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
53873
53874
53875
53876
53877
53878
53879
53880
53881 case "$TOOLKIT" in
53882     GTK)
53883         TOOLKIT_DESC="GTK+"
53884         if test "$WXGTK20" = 1; then
53885             TOOLKIT_DESC="$TOOLKIT_DESC 2"
53886             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
53887                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
53888             fi
53889             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
53890                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
53891             fi
53892             if test "$wxUSE_LIBHILDON" = "yes"; then
53893                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
53894             fi
53895
53896             if test "$TOOLKIT_EXTRA" != ""; then
53897                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
53898             fi
53899         fi
53900         ;;
53901
53902     ?*)
53903         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
53904         ;;
53905
53906     *)
53907         TOOLKIT_DESC="base only"
53908         ;;
53909 esac
53910
53911 if test "$wxUSE_WINE" = "yes"; then
53912     BAKEFILE_FORCE_PLATFORM=win32
53913 fi
53914
53915 if test "$wxUSE_MAC" = 1 ; then
53916     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
53917                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
53918             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
53919         else
53920                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
53921         fi
53922         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
53923         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
53924         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
53925         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
53926         bk_use_pch=no
53927     fi
53928     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
53929     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
53930 fi
53931
53932 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
53933 then
53934     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
53935 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
53936 if test "${wx_cv_gcc_pch_bug+set}" = set; then
53937   echo $ECHO_N "(cached) $ECHO_C" >&6
53938 else
53939
53940             echo '#include <stdio.h>
53941                   const wchar_t test_var[] = L"awidetest";' > conftest.h
53942
53943             echo '#include "conftest.h"
53944                   int main()
53945                   {
53946                      printf("%ls", test_var);
53947                      return 0;
53948                   }' > conftest.cpp
53949
53950             wx_cv_gcc_pch_bug="pch not supported"
53951
53952             if $CXX conftest.h >/dev/null 2>&1
53953             then
53954                 wx_cv_gcc_pch_bug=
53955
53956                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
53957                 then
53958                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
53959                         grep awidetest >/dev/null
53960                     then
53961                         wx_cv_gcc_pch_bug=no
53962                     else
53963                         wx_cv_gcc_pch_bug=yes
53964                     fi
53965                 fi
53966             fi
53967
53968             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
53969
53970 fi
53971 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
53972 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
53973
53974     if test "$wx_cv_gcc_pch_bug" = yes; then
53975                         bk_use_pch=no
53976     fi
53977 fi
53978
53979
53980
53981
53982     if test "x$BAKEFILE_HOST" = "x"; then
53983                if test "x${host}" = "x" ; then
53984                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
53985 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
53986    { (exit 1); exit 1; }; }
53987                fi
53988
53989         BAKEFILE_HOST="${host}"
53990     fi
53991
53992     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
53993
53994     if test -n "$ac_tool_prefix"; then
53995   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
53996 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
53997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53999 if test "${ac_cv_prog_RANLIB+set}" = set; then
54000   echo $ECHO_N "(cached) $ECHO_C" >&6
54001 else
54002   if test -n "$RANLIB"; then
54003   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
54004 else
54005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54006 for as_dir in $PATH
54007 do
54008   IFS=$as_save_IFS
54009   test -z "$as_dir" && as_dir=.
54010   for ac_exec_ext in '' $ac_executable_extensions; do
54011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54012     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
54013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54014     break 2
54015   fi
54016 done
54017 done
54018 IFS=$as_save_IFS
54019
54020 fi
54021 fi
54022 RANLIB=$ac_cv_prog_RANLIB
54023 if test -n "$RANLIB"; then
54024   { echo "$as_me:$LINENO: result: $RANLIB" >&5
54025 echo "${ECHO_T}$RANLIB" >&6; }
54026 else
54027   { echo "$as_me:$LINENO: result: no" >&5
54028 echo "${ECHO_T}no" >&6; }
54029 fi
54030
54031
54032 fi
54033 if test -z "$ac_cv_prog_RANLIB"; then
54034   ac_ct_RANLIB=$RANLIB
54035   # Extract the first word of "ranlib", so it can be a program name with args.
54036 set dummy ranlib; ac_word=$2
54037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54039 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
54040   echo $ECHO_N "(cached) $ECHO_C" >&6
54041 else
54042   if test -n "$ac_ct_RANLIB"; then
54043   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
54044 else
54045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54046 for as_dir in $PATH
54047 do
54048   IFS=$as_save_IFS
54049   test -z "$as_dir" && as_dir=.
54050   for ac_exec_ext in '' $ac_executable_extensions; do
54051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54052     ac_cv_prog_ac_ct_RANLIB="ranlib"
54053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54054     break 2
54055   fi
54056 done
54057 done
54058 IFS=$as_save_IFS
54059
54060 fi
54061 fi
54062 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
54063 if test -n "$ac_ct_RANLIB"; then
54064   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
54065 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
54066 else
54067   { echo "$as_me:$LINENO: result: no" >&5
54068 echo "${ECHO_T}no" >&6; }
54069 fi
54070
54071   if test "x$ac_ct_RANLIB" = x; then
54072     RANLIB=":"
54073   else
54074     case $cross_compiling:$ac_tool_warned in
54075 yes:)
54076 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
54077 whose name does not start with the host triplet.  If you think this
54078 configuration is useful to you, please write to autoconf@gnu.org." >&5
54079 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
54080 whose name does not start with the host triplet.  If you think this
54081 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
54082 ac_tool_warned=yes ;;
54083 esac
54084     RANLIB=$ac_ct_RANLIB
54085   fi
54086 else
54087   RANLIB="$ac_cv_prog_RANLIB"
54088 fi
54089
54090     # Find a good install program.  We prefer a C program (faster),
54091 # so one script is as good as another.  But avoid the broken or
54092 # incompatible versions:
54093 # SysV /etc/install, /usr/sbin/install
54094 # SunOS /usr/etc/install
54095 # IRIX /sbin/install
54096 # AIX /bin/install
54097 # AmigaOS /C/install, which installs bootblocks on floppy discs
54098 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
54099 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
54100 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
54101 # OS/2's system install, which has a completely different semantic
54102 # ./install, which can be erroneously created by make from ./install.sh.
54103 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
54104 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
54105 if test -z "$INSTALL"; then
54106 if test "${ac_cv_path_install+set}" = set; then
54107   echo $ECHO_N "(cached) $ECHO_C" >&6
54108 else
54109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54110 for as_dir in $PATH
54111 do
54112   IFS=$as_save_IFS
54113   test -z "$as_dir" && as_dir=.
54114   # Account for people who put trailing slashes in PATH elements.
54115 case $as_dir/ in
54116   ./ | .// | /cC/* | \
54117   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
54118   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
54119   /usr/ucb/* ) ;;
54120   *)
54121     # OSF1 and SCO ODT 3.0 have their own names for install.
54122     # Don't use installbsd from OSF since it installs stuff as root
54123     # by default.
54124     for ac_prog in ginstall scoinst install; do
54125       for ac_exec_ext in '' $ac_executable_extensions; do
54126         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
54127           if test $ac_prog = install &&
54128             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
54129             # AIX install.  It has an incompatible calling convention.
54130             :
54131           elif test $ac_prog = install &&
54132             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
54133             # program-specific install script used by HP pwplus--don't use.
54134             :
54135           else
54136             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
54137             break 3
54138           fi
54139         fi
54140       done
54141     done
54142     ;;
54143 esac
54144 done
54145 IFS=$as_save_IFS
54146
54147
54148 fi
54149   if test "${ac_cv_path_install+set}" = set; then
54150     INSTALL=$ac_cv_path_install
54151   else
54152     # As a last resort, use the slow shell script.  Don't cache a
54153     # value for INSTALL within a source directory, because that will
54154     # break other packages using the cache if that directory is
54155     # removed, or if the value is a relative name.
54156     INSTALL=$ac_install_sh
54157   fi
54158 fi
54159 { echo "$as_me:$LINENO: result: $INSTALL" >&5
54160 echo "${ECHO_T}$INSTALL" >&6; }
54161
54162 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
54163 # It thinks the first close brace ends the variable substitution.
54164 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
54165
54166 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
54167
54168 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
54169
54170     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
54171 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
54172 LN_S=$as_ln_s
54173 if test "$LN_S" = "ln -s"; then
54174   { echo "$as_me:$LINENO: result: yes" >&5
54175 echo "${ECHO_T}yes" >&6; }
54176 else
54177   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
54178 echo "${ECHO_T}no, using $LN_S" >&6; }
54179 fi
54180
54181
54182     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
54183 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
54184 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
54185 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
54186   echo $ECHO_N "(cached) $ECHO_C" >&6
54187 else
54188   cat >conftest.make <<\_ACEOF
54189 SHELL = /bin/sh
54190 all:
54191         @echo '@@@%%%=$(MAKE)=@@@%%%'
54192 _ACEOF
54193 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
54194 case `${MAKE-make} -f conftest.make 2>/dev/null` in
54195   *@@@%%%=?*=@@@%%%*)
54196     eval ac_cv_prog_make_${ac_make}_set=yes;;
54197   *)
54198     eval ac_cv_prog_make_${ac_make}_set=no;;
54199 esac
54200 rm -f conftest.make
54201 fi
54202 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
54203   { echo "$as_me:$LINENO: result: yes" >&5
54204 echo "${ECHO_T}yes" >&6; }
54205   SET_MAKE=
54206 else
54207   { echo "$as_me:$LINENO: result: no" >&5
54208 echo "${ECHO_T}no" >&6; }
54209   SET_MAKE="MAKE=${MAKE-make}"
54210 fi
54211
54212
54213
54214     if test "x$SUNCXX" = "xyes"; then
54215                                 AR=${AR:-"$CXX"}
54216
54217         AROPTIONS=${AROPTIONS:-"-xar -o"}
54218     else
54219         if test -n "$ac_tool_prefix"; then
54220   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
54221 set dummy ${ac_tool_prefix}ar; ac_word=$2
54222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54224 if test "${ac_cv_prog_AR+set}" = set; then
54225   echo $ECHO_N "(cached) $ECHO_C" >&6
54226 else
54227   if test -n "$AR"; then
54228   ac_cv_prog_AR="$AR" # Let the user override the test.
54229 else
54230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54231 for as_dir in $PATH
54232 do
54233   IFS=$as_save_IFS
54234   test -z "$as_dir" && as_dir=.
54235   for ac_exec_ext in '' $ac_executable_extensions; do
54236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54237     ac_cv_prog_AR="${ac_tool_prefix}ar"
54238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54239     break 2
54240   fi
54241 done
54242 done
54243 IFS=$as_save_IFS
54244
54245 fi
54246 fi
54247 AR=$ac_cv_prog_AR
54248 if test -n "$AR"; then
54249   { echo "$as_me:$LINENO: result: $AR" >&5
54250 echo "${ECHO_T}$AR" >&6; }
54251 else
54252   { echo "$as_me:$LINENO: result: no" >&5
54253 echo "${ECHO_T}no" >&6; }
54254 fi
54255
54256
54257 fi
54258 if test -z "$ac_cv_prog_AR"; then
54259   ac_ct_AR=$AR
54260   # Extract the first word of "ar", so it can be a program name with args.
54261 set dummy ar; ac_word=$2
54262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54264 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
54265   echo $ECHO_N "(cached) $ECHO_C" >&6
54266 else
54267   if test -n "$ac_ct_AR"; then
54268   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
54269 else
54270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54271 for as_dir in $PATH
54272 do
54273   IFS=$as_save_IFS
54274   test -z "$as_dir" && as_dir=.
54275   for ac_exec_ext in '' $ac_executable_extensions; do
54276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54277     ac_cv_prog_ac_ct_AR="ar"
54278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54279     break 2
54280   fi
54281 done
54282 done
54283 IFS=$as_save_IFS
54284
54285 fi
54286 fi
54287 ac_ct_AR=$ac_cv_prog_ac_ct_AR
54288 if test -n "$ac_ct_AR"; then
54289   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
54290 echo "${ECHO_T}$ac_ct_AR" >&6; }
54291 else
54292   { echo "$as_me:$LINENO: result: no" >&5
54293 echo "${ECHO_T}no" >&6; }
54294 fi
54295
54296   if test "x$ac_ct_AR" = x; then
54297     AR="ar"
54298   else
54299     case $cross_compiling:$ac_tool_warned in
54300 yes:)
54301 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
54302 whose name does not start with the host triplet.  If you think this
54303 configuration is useful to you, please write to autoconf@gnu.org." >&5
54304 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
54305 whose name does not start with the host triplet.  If you think this
54306 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
54307 ac_tool_warned=yes ;;
54308 esac
54309     AR=$ac_ct_AR
54310   fi
54311 else
54312   AR="$ac_cv_prog_AR"
54313 fi
54314
54315         AROPTIONS=rcu
54316     fi
54317
54318
54319     if test -n "$ac_tool_prefix"; then
54320   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
54321 set dummy ${ac_tool_prefix}strip; ac_word=$2
54322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54324 if test "${ac_cv_prog_STRIP+set}" = set; then
54325   echo $ECHO_N "(cached) $ECHO_C" >&6
54326 else
54327   if test -n "$STRIP"; then
54328   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
54329 else
54330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54331 for as_dir in $PATH
54332 do
54333   IFS=$as_save_IFS
54334   test -z "$as_dir" && as_dir=.
54335   for ac_exec_ext in '' $ac_executable_extensions; do
54336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54337     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
54338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54339     break 2
54340   fi
54341 done
54342 done
54343 IFS=$as_save_IFS
54344
54345 fi
54346 fi
54347 STRIP=$ac_cv_prog_STRIP
54348 if test -n "$STRIP"; then
54349   { echo "$as_me:$LINENO: result: $STRIP" >&5
54350 echo "${ECHO_T}$STRIP" >&6; }
54351 else
54352   { echo "$as_me:$LINENO: result: no" >&5
54353 echo "${ECHO_T}no" >&6; }
54354 fi
54355
54356
54357 fi
54358 if test -z "$ac_cv_prog_STRIP"; then
54359   ac_ct_STRIP=$STRIP
54360   # Extract the first word of "strip", so it can be a program name with args.
54361 set dummy strip; ac_word=$2
54362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
54365   echo $ECHO_N "(cached) $ECHO_C" >&6
54366 else
54367   if test -n "$ac_ct_STRIP"; then
54368   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
54369 else
54370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54371 for as_dir in $PATH
54372 do
54373   IFS=$as_save_IFS
54374   test -z "$as_dir" && as_dir=.
54375   for ac_exec_ext in '' $ac_executable_extensions; do
54376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54377     ac_cv_prog_ac_ct_STRIP="strip"
54378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54379     break 2
54380   fi
54381 done
54382 done
54383 IFS=$as_save_IFS
54384
54385 fi
54386 fi
54387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
54388 if test -n "$ac_ct_STRIP"; then
54389   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
54390 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
54391 else
54392   { echo "$as_me:$LINENO: result: no" >&5
54393 echo "${ECHO_T}no" >&6; }
54394 fi
54395
54396   if test "x$ac_ct_STRIP" = x; then
54397     STRIP=":"
54398   else
54399     case $cross_compiling:$ac_tool_warned in
54400 yes:)
54401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
54402 whose name does not start with the host triplet.  If you think this
54403 configuration is useful to you, please write to autoconf@gnu.org." >&5
54404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
54405 whose name does not start with the host triplet.  If you think this
54406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
54407 ac_tool_warned=yes ;;
54408 esac
54409     STRIP=$ac_ct_STRIP
54410   fi
54411 else
54412   STRIP="$ac_cv_prog_STRIP"
54413 fi
54414
54415     if test -n "$ac_tool_prefix"; then
54416   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
54417 set dummy ${ac_tool_prefix}nm; ac_word=$2
54418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54420 if test "${ac_cv_prog_NM+set}" = set; then
54421   echo $ECHO_N "(cached) $ECHO_C" >&6
54422 else
54423   if test -n "$NM"; then
54424   ac_cv_prog_NM="$NM" # Let the user override the test.
54425 else
54426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54427 for as_dir in $PATH
54428 do
54429   IFS=$as_save_IFS
54430   test -z "$as_dir" && as_dir=.
54431   for ac_exec_ext in '' $ac_executable_extensions; do
54432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54433     ac_cv_prog_NM="${ac_tool_prefix}nm"
54434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54435     break 2
54436   fi
54437 done
54438 done
54439 IFS=$as_save_IFS
54440
54441 fi
54442 fi
54443 NM=$ac_cv_prog_NM
54444 if test -n "$NM"; then
54445   { echo "$as_me:$LINENO: result: $NM" >&5
54446 echo "${ECHO_T}$NM" >&6; }
54447 else
54448   { echo "$as_me:$LINENO: result: no" >&5
54449 echo "${ECHO_T}no" >&6; }
54450 fi
54451
54452
54453 fi
54454 if test -z "$ac_cv_prog_NM"; then
54455   ac_ct_NM=$NM
54456   # Extract the first word of "nm", so it can be a program name with args.
54457 set dummy nm; ac_word=$2
54458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
54459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
54460 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
54461   echo $ECHO_N "(cached) $ECHO_C" >&6
54462 else
54463   if test -n "$ac_ct_NM"; then
54464   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
54465 else
54466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54467 for as_dir in $PATH
54468 do
54469   IFS=$as_save_IFS
54470   test -z "$as_dir" && as_dir=.
54471   for ac_exec_ext in '' $ac_executable_extensions; do
54472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
54473     ac_cv_prog_ac_ct_NM="nm"
54474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54475     break 2
54476   fi
54477 done
54478 done
54479 IFS=$as_save_IFS
54480
54481 fi
54482 fi
54483 ac_ct_NM=$ac_cv_prog_ac_ct_NM
54484 if test -n "$ac_ct_NM"; then
54485   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
54486 echo "${ECHO_T}$ac_ct_NM" >&6; }
54487 else
54488   { echo "$as_me:$LINENO: result: no" >&5
54489 echo "${ECHO_T}no" >&6; }
54490 fi
54491
54492   if test "x$ac_ct_NM" = x; then
54493     NM=":"
54494   else
54495     case $cross_compiling:$ac_tool_warned in
54496 yes:)
54497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
54498 whose name does not start with the host triplet.  If you think this
54499 configuration is useful to you, please write to autoconf@gnu.org." >&5
54500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
54501 whose name does not start with the host triplet.  If you think this
54502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
54503 ac_tool_warned=yes ;;
54504 esac
54505     NM=$ac_ct_NM
54506   fi
54507 else
54508   NM="$ac_cv_prog_NM"
54509 fi
54510
54511
54512     case ${BAKEFILE_HOST} in
54513         *-hp-hpux* )
54514                                     INSTALL_DIR="mkdir -p"
54515             ;;
54516         * )
54517                                     INSTALL_DIR='$(INSTALL) -d'
54518             ;;
54519     esac
54520
54521
54522     LDFLAGS_GUI=
54523     case ${BAKEFILE_HOST} in
54524         *-*-cygwin* | *-*-mingw32* )
54525         LDFLAGS_GUI="-mwindows"
54526     esac
54527
54528
54529     fi
54530
54531         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
54532 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
54533 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
54534   echo $ECHO_N "(cached) $ECHO_C" >&6
54535 else
54536
54537         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
54538                 egrep -s GNU > /dev/null); then
54539             bakefile_cv_prog_makeisgnu="yes"
54540         else
54541             bakefile_cv_prog_makeisgnu="no"
54542         fi
54543
54544 fi
54545 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
54546 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
54547
54548     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
54549         IF_GNU_MAKE=""
54550     else
54551         IF_GNU_MAKE="#"
54552     fi
54553
54554
54555
54556     PLATFORM_UNIX=0
54557     PLATFORM_WIN32=0
54558     PLATFORM_MSDOS=0
54559     PLATFORM_MAC=0
54560     PLATFORM_MACOS=0
54561     PLATFORM_MACOSX=0
54562     PLATFORM_OS2=0
54563     PLATFORM_BEOS=0
54564
54565     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
54566         case "${BAKEFILE_HOST}" in
54567             *-*-mingw32* )
54568                 PLATFORM_WIN32=1
54569             ;;
54570             *-pc-msdosdjgpp )
54571                 PLATFORM_MSDOS=1
54572             ;;
54573             *-pc-os2_emx | *-pc-os2-emx )
54574                 PLATFORM_OS2=1
54575             ;;
54576             *-*-darwin* )
54577                 PLATFORM_MAC=1
54578                 PLATFORM_MACOSX=1
54579             ;;
54580             *-*-beos* )
54581                 PLATFORM_BEOS=1
54582             ;;
54583             powerpc-apple-macos* )
54584                 PLATFORM_MAC=1
54585                 PLATFORM_MACOS=1
54586             ;;
54587             * )
54588                 PLATFORM_UNIX=1
54589             ;;
54590         esac
54591     else
54592         case "$BAKEFILE_FORCE_PLATFORM" in
54593             win32 )
54594                 PLATFORM_WIN32=1
54595             ;;
54596             msdos )
54597                 PLATFORM_MSDOS=1
54598             ;;
54599             os2 )
54600                 PLATFORM_OS2=1
54601             ;;
54602             darwin )
54603                 PLATFORM_MAC=1
54604                 PLATFORM_MACOSX=1
54605             ;;
54606             unix )
54607                 PLATFORM_UNIX=1
54608             ;;
54609             beos )
54610                 PLATFORM_BEOS=1
54611             ;;
54612             * )
54613                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
54614 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
54615    { (exit 1); exit 1; }; }
54616             ;;
54617         esac
54618     fi
54619
54620
54621
54622
54623
54624
54625
54626
54627
54628
54629
54630     # Check whether --enable-omf was given.
54631 if test "${enable_omf+set}" = set; then
54632   enableval=$enable_omf; bk_os2_use_omf="$enableval"
54633 fi
54634
54635
54636     case "${BAKEFILE_HOST}" in
54637       *-*-darwin* )
54638                         if test "x$GCC" = "xyes"; then
54639             CFLAGS="$CFLAGS -fno-common"
54640             CXXFLAGS="$CXXFLAGS -fno-common"
54641         fi
54642         if test "x$XLCC" = "xyes"; then
54643             CFLAGS="$CFLAGS -qnocommon"
54644             CXXFLAGS="$CXXFLAGS -qnocommon"
54645         fi
54646         ;;
54647
54648       *-pc-os2_emx | *-pc-os2-emx )
54649         if test "x$bk_os2_use_omf" = "xyes" ; then
54650             AR=emxomfar
54651             RANLIB=:
54652             LDFLAGS="-Zomf $LDFLAGS"
54653             CFLAGS="-Zomf $CFLAGS"
54654             CXXFLAGS="-Zomf $CXXFLAGS"
54655             OS2_LIBEXT="lib"
54656         else
54657             OS2_LIBEXT="a"
54658         fi
54659         ;;
54660
54661       i*86-*-beos* )
54662         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
54663         ;;
54664     esac
54665
54666
54667     SO_SUFFIX="so"
54668     SO_SUFFIX_MODULE="so"
54669     EXEEXT=""
54670     LIBPREFIX="lib"
54671     LIBEXT=".a"
54672     DLLPREFIX="lib"
54673     DLLPREFIX_MODULE=""
54674     DLLIMP_SUFFIX=""
54675     dlldir="$libdir"
54676
54677     case "${BAKEFILE_HOST}" in
54678         *-hp-hpux* )
54679             SO_SUFFIX="sl"
54680             SO_SUFFIX_MODULE="sl"
54681         ;;
54682         *-*-aix* )
54683                                                                         SO_SUFFIX="a"
54684             SO_SUFFIX_MODULE="a"
54685         ;;
54686         *-*-cygwin* )
54687             SO_SUFFIX="dll"
54688             SO_SUFFIX_MODULE="dll"
54689             DLLIMP_SUFFIX="dll.a"
54690             EXEEXT=".exe"
54691             DLLPREFIX="cyg"
54692             dlldir="$bindir"
54693         ;;
54694         *-*-mingw32* )
54695             SO_SUFFIX="dll"
54696             SO_SUFFIX_MODULE="dll"
54697             DLLIMP_SUFFIX="dll.a"
54698             EXEEXT=".exe"
54699             DLLPREFIX=""
54700             dlldir="$bindir"
54701         ;;
54702         *-pc-msdosdjgpp )
54703             EXEEXT=".exe"
54704             DLLPREFIX=""
54705             dlldir="$bindir"
54706         ;;
54707         *-pc-os2_emx | *-pc-os2-emx )
54708             SO_SUFFIX="dll"
54709             SO_SUFFIX_MODULE="dll"
54710             DLLIMP_SUFFIX=$OS2_LIBEXT
54711             EXEEXT=".exe"
54712             DLLPREFIX=""
54713             LIBPREFIX=""
54714             LIBEXT=".$OS2_LIBEXT"
54715             dlldir="$bindir"
54716         ;;
54717         *-*-darwin* )
54718             SO_SUFFIX="dylib"
54719             SO_SUFFIX_MODULE="bundle"
54720         ;;
54721     esac
54722
54723     if test "x$DLLIMP_SUFFIX" = "x" ; then
54724         DLLIMP_SUFFIX="$SO_SUFFIX"
54725     fi
54726
54727
54728
54729
54730
54731
54732
54733
54734
54735
54736
54737
54738         PIC_FLAG=""
54739     if test "x$GCC" = "xyes"; then
54740                 PIC_FLAG="-fPIC"
54741     fi
54742
54743         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
54744     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
54745     WINDOWS_IMPLIB=0
54746
54747     case "${BAKEFILE_HOST}" in
54748       *-hp-hpux* )
54749                 if test "x$GCC" != "xyes"; then
54750                         LDFLAGS="$LDFLAGS -L/usr/lib"
54751
54752             SHARED_LD_CC="${CC} -b -o"
54753             SHARED_LD_CXX="${CXX} -b -o"
54754             PIC_FLAG="+Z"
54755         fi
54756       ;;
54757
54758       *-*-linux* )
54759         if test "x$GCC" != "xyes"; then
54760             { echo "$as_me:$LINENO: checking for Intel compiler" >&5
54761 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6; }
54762 if test "${bakefile_cv_prog_icc+set}" = set; then
54763   echo $ECHO_N "(cached) $ECHO_C" >&6
54764 else
54765
54766                 cat >conftest.$ac_ext <<_ACEOF
54767 /* confdefs.h.  */
54768 _ACEOF
54769 cat confdefs.h >>conftest.$ac_ext
54770 cat >>conftest.$ac_ext <<_ACEOF
54771 /* end confdefs.h.  */
54772
54773 int
54774 main ()
54775 {
54776
54777                         #ifndef __INTEL_COMPILER
54778                         This is not ICC
54779                         #endif
54780
54781   ;
54782   return 0;
54783 }
54784 _ACEOF
54785 rm -f conftest.$ac_objext
54786 if { (ac_try="$ac_compile"
54787 case "(($ac_try" in
54788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54789   *) ac_try_echo=$ac_try;;
54790 esac
54791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54792   (eval "$ac_compile") 2>conftest.er1
54793   ac_status=$?
54794   grep -v '^ *+' conftest.er1 >conftest.err
54795   rm -f conftest.er1
54796   cat conftest.err >&5
54797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54798   (exit $ac_status); } &&
54799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54800   { (case "(($ac_try" in
54801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54802   *) ac_try_echo=$ac_try;;
54803 esac
54804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54805   (eval "$ac_try") 2>&5
54806   ac_status=$?
54807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54808   (exit $ac_status); }; } &&
54809          { ac_try='test -s conftest.$ac_objext'
54810   { (case "(($ac_try" in
54811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54812   *) ac_try_echo=$ac_try;;
54813 esac
54814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54815   (eval "$ac_try") 2>&5
54816   ac_status=$?
54817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54818   (exit $ac_status); }; }; then
54819   bakefile_cv_prog_icc=yes
54820 else
54821   echo "$as_me: failed program was:" >&5
54822 sed 's/^/| /' conftest.$ac_ext >&5
54823
54824         bakefile_cv_prog_icc=no
54825
54826 fi
54827
54828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54829
54830 fi
54831 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
54832 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6; }
54833             if test "$bakefile_cv_prog_icc" = "yes"; then
54834                 PIC_FLAG="-KPIC"
54835             fi
54836         fi
54837       ;;
54838
54839       *-*-solaris2* )
54840         if test "x$GCC" != xyes ; then
54841             SHARED_LD_CC="${CC} -G -o"
54842             SHARED_LD_CXX="${CXX} -G -o"
54843             PIC_FLAG="-KPIC"
54844         fi
54845       ;;
54846
54847       *-*-darwin* )
54848
54849 D='$'
54850 cat <<EOF >shared-ld-sh
54851 #!/bin/sh
54852 #-----------------------------------------------------------------------------
54853 #-- Name:        distrib/mac/shared-ld-sh
54854 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
54855 #-- Author:      Gilles Depeyrot
54856 #-- Copyright:   (c) 2002 Gilles Depeyrot
54857 #-- Licence:     any use permitted
54858 #-----------------------------------------------------------------------------
54859
54860 verbose=0
54861 args=""
54862 objects=""
54863 linking_flag="-dynamiclib"
54864 ldargs="-r -keep_private_externs -nostdlib"
54865
54866 while test ${D}# -gt 0; do
54867     case ${D}1 in
54868
54869        -v)
54870         verbose=1
54871         ;;
54872
54873        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
54874         # collect these options and values
54875         args="${D}{args} ${D}1 ${D}2"
54876         shift
54877         ;;
54878
54879        -s|-Wl,*)
54880         # collect these load args
54881         ldargs="${D}{ldargs} ${D}1"
54882         ;;
54883
54884        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
54885         # collect these options
54886         args="${D}{args} ${D}1"
54887         ;;
54888
54889        -dynamiclib|-bundle)
54890         linking_flag="${D}1"
54891         ;;
54892
54893        -*)
54894         echo "shared-ld: unhandled option '${D}1'"
54895         exit 1
54896         ;;
54897
54898         *.o | *.a | *.dylib)
54899         # collect object files
54900         objects="${D}{objects} ${D}1"
54901         ;;
54902
54903         *)
54904         echo "shared-ld: unhandled argument '${D}1'"
54905         exit 1
54906         ;;
54907
54908     esac
54909     shift
54910 done
54911
54912 status=0
54913
54914 #
54915 # Link one module containing all the others
54916 #
54917 if test ${D}{verbose} = 1; then
54918     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
54919 fi
54920 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
54921 status=${D}?
54922
54923 #
54924 # Link the shared library from the single module created, but only if the
54925 # previous command didn't fail:
54926 #
54927 if test ${D}{status} = 0; then
54928     if test ${D}{verbose} = 1; then
54929         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
54930     fi
54931     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
54932     status=${D}?
54933 fi
54934
54935 #
54936 # Remove intermediate module
54937 #
54938 rm -f master.${D}${D}.o
54939
54940 exit ${D}status
54941 EOF
54942
54943         chmod +x shared-ld-sh
54944
54945         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
54946         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
54947
54948
54949                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
54950 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
54951 if test "${bakefile_cv_gcc31+set}" = set; then
54952   echo $ECHO_N "(cached) $ECHO_C" >&6
54953 else
54954
54955            cat >conftest.$ac_ext <<_ACEOF
54956 /* confdefs.h.  */
54957 _ACEOF
54958 cat confdefs.h >>conftest.$ac_ext
54959 cat >>conftest.$ac_ext <<_ACEOF
54960 /* end confdefs.h.  */
54961
54962 int
54963 main ()
54964 {
54965
54966                    #if (__GNUC__ < 3) || \
54967                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
54968                        This is old gcc
54969                    #endif
54970
54971   ;
54972   return 0;
54973 }
54974 _ACEOF
54975 rm -f conftest.$ac_objext
54976 if { (ac_try="$ac_compile"
54977 case "(($ac_try" in
54978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54979   *) ac_try_echo=$ac_try;;
54980 esac
54981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54982   (eval "$ac_compile") 2>conftest.er1
54983   ac_status=$?
54984   grep -v '^ *+' conftest.er1 >conftest.err
54985   rm -f conftest.er1
54986   cat conftest.err >&5
54987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54988   (exit $ac_status); } &&
54989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
54990   { (case "(($ac_try" in
54991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54992   *) ac_try_echo=$ac_try;;
54993 esac
54994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54995   (eval "$ac_try") 2>&5
54996   ac_status=$?
54997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54998   (exit $ac_status); }; } &&
54999          { ac_try='test -s conftest.$ac_objext'
55000   { (case "(($ac_try" in
55001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55002   *) ac_try_echo=$ac_try;;
55003 esac
55004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55005   (eval "$ac_try") 2>&5
55006   ac_status=$?
55007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55008   (exit $ac_status); }; }; then
55009
55010                    bakefile_cv_gcc31=yes
55011
55012 else
55013   echo "$as_me: failed program was:" >&5
55014 sed 's/^/| /' conftest.$ac_ext >&5
55015
55016
55017                    bakefile_cv_gcc31=no
55018
55019
55020 fi
55021
55022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55023
55024 fi
55025 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
55026 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
55027         if test "$bakefile_cv_gcc31" = "no"; then
55028                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
55029             SHARED_LD_CXX="$SHARED_LD_CC"
55030         else
55031                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
55032             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
55033         fi
55034
55035         if test "x$GCC" == "xyes"; then
55036             PIC_FLAG="-dynamic -fPIC"
55037         fi
55038         if test "x$XLCC" = "xyes"; then
55039             PIC_FLAG="-dynamic -DPIC"
55040         fi
55041       ;;
55042
55043       *-*-aix* )
55044         if test "x$GCC" = "xyes"; then
55045                                                             PIC_FLAG=""
55046
55047                                                                                     case "${BAKEFILE_HOST}" in
55048                 *-*-aix5* )
55049                     LD_EXPFULL="-Wl,-bexpfull"
55050                     ;;
55051             esac
55052
55053             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
55054             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
55055         else
55056                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
55057 set dummy makeC++SharedLib; ac_word=$2
55058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55060 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
55061   echo $ECHO_N "(cached) $ECHO_C" >&6
55062 else
55063   if test -n "$AIX_CXX_LD"; then
55064   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
55065 else
55066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55067 for as_dir in $PATH
55068 do
55069   IFS=$as_save_IFS
55070   test -z "$as_dir" && as_dir=.
55071   for ac_exec_ext in '' $ac_executable_extensions; do
55072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
55073     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
55074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55075     break 2
55076   fi
55077 done
55078 done
55079 IFS=$as_save_IFS
55080
55081   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
55082 fi
55083 fi
55084 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
55085 if test -n "$AIX_CXX_LD"; then
55086   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
55087 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
55088 else
55089   { echo "$as_me:$LINENO: result: no" >&5
55090 echo "${ECHO_T}no" >&6; }
55091 fi
55092
55093
55094             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
55095             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
55096         fi
55097       ;;
55098
55099       *-*-beos* )
55100                         SHARED_LD_CC="${LD} -nostart -o"
55101         SHARED_LD_CXX="${LD} -nostart -o"
55102       ;;
55103
55104       *-*-irix* )
55105                 if test "x$GCC" != "xyes"; then
55106             PIC_FLAG="-KPIC"
55107         fi
55108       ;;
55109
55110       *-*-cygwin* | *-*-mingw32* )
55111         PIC_FLAG=""
55112         SHARED_LD_CC="\$(CC) -shared -o"
55113         SHARED_LD_CXX="\$(CXX) -shared -o"
55114         WINDOWS_IMPLIB=1
55115       ;;
55116
55117       *-pc-os2_emx | *-pc-os2-emx )
55118         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
55119         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
55120         PIC_FLAG=""
55121
55122 D='$'
55123 cat <<EOF >dllar.sh
55124 #!/bin/sh
55125 #
55126 # dllar - a tool to build both a .dll and an .a file
55127 # from a set of object (.o) files for EMX/OS2.
55128 #
55129 #  Written by Andrew Zabolotny, bit@freya.etu.ru
55130 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
55131 #
55132 #  This script will accept a set of files on the command line.
55133 #  All the public symbols from the .o files will be exported into
55134 #  a .DEF file, then linker will be run (through gcc) against them to
55135 #  build a shared library consisting of all given .o files. All libraries
55136 #  (.a) will be first decompressed into component .o files then act as
55137 #  described above. You can optionally give a description (-d "description")
55138 #  which will be put into .DLL. To see the list of accepted options (as well
55139 #  as command-line format) simply run this program without options. The .DLL
55140 #  is built to be imported by name (there is no guarantee that new versions
55141 #  of the library you build will have same ordinals for same symbols).
55142 #
55143 #  dllar is free software; you can redistribute it and/or modify
55144 #  it under the terms of the GNU General Public License as published by
55145 #  the Free Software Foundation; either version 2, or (at your option)
55146 #  any later version.
55147 #
55148 #  dllar is distributed in the hope that it will be useful,
55149 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
55150 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
55151 #  GNU General Public License for more details.
55152 #
55153 #  You should have received a copy of the GNU General Public License
55154 #  along with dllar; see the file COPYING.  If not, write to the Free
55155 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
55156 #  02111-1307, USA.
55157
55158 # To successfuly run this program you will need:
55159 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
55160 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
55161 #  - gcc
55162 #    (used to build the .dll)
55163 #  - emxexp
55164 #    (used to create .def file from .o files)
55165 #  - emximp
55166 #    (used to create .a file from .def file)
55167 #  - GNU text utilites (cat, sort, uniq)
55168 #    used to process emxexp output
55169 #  - GNU file utilities (mv, rm)
55170 #  - GNU sed
55171 #  - lxlite (optional, see flag below)
55172 #    (used for general .dll cleanup)
55173 #
55174
55175 flag_USE_LXLITE=1;
55176
55177 #
55178 # helper functions
55179 # basnam, variant of basename, which does _not_ remove the path, _iff_
55180 #                              second argument (suffix to remove) is given
55181 basnam(){
55182     case ${D}# in
55183     1)
55184         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
55185         ;;
55186     2)
55187         echo ${D}1 | sed 's/'${D}2'${D}//'
55188         ;;
55189     *)
55190         echo "error in basnam ${D}*"
55191         exit 8
55192         ;;
55193     esac
55194 }
55195
55196 # Cleanup temporary files and output
55197 CleanUp() {
55198     cd ${D}curDir
55199     for i in ${D}inputFiles ; do
55200         case ${D}i in
55201         *!)
55202             rm -rf \`basnam ${D}i !\`
55203             ;;
55204         *)
55205             ;;
55206         esac
55207     done
55208
55209     # Kill result in case of failure as there is just to many stupid make/nmake
55210     # things out there which doesn't do this.
55211     if [ ${D}# -eq 0 ]; then
55212         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
55213     fi
55214 }
55215
55216 # Print usage and exit script with rc=1.
55217 PrintHelp() {
55218  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
55219  echo '       [-name-mangler-script script.sh]'
55220  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
55221  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
55222  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
55223  echo '       [*.o] [*.a]'
55224  echo '*> "output_file" should have no extension.'
55225  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
55226  echo '   The import library name is derived from this and is set to "name".a,'
55227  echo '   unless overridden by -import'
55228  echo '*> "importlib_name" should have no extension.'
55229  echo '   If it has the .o, or .a extension, it is automatically removed.'
55230  echo '   This name is used as the import library name and may be longer and'
55231  echo '   more descriptive than the DLL name which has to follow the old '
55232  echo '   8.3 convention of FAT.'
55233  echo '*> "script.sh may be given to override the output_file name by a'
55234  echo '   different name. It is mainly useful if the regular make process'
55235  echo '   of some package does not take into account OS/2 restriction of'
55236  echo '   DLL name lengths. It takes the importlib name as input and is'
55237  echo '   supposed to procude a shorter name as output. The script should'
55238  echo '   expect to get importlib_name without extension and should produce'
55239  echo '   a (max.) 8 letter name without extension.'
55240  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
55241  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
55242  echo '   These flags will be put at the start of GCC command line.'
55243  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
55244  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
55245  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
55246  echo '   If the last character of a symbol is "*", all symbols beginning'
55247  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
55248  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
55249  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
55250  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
55251  echo '   C runtime DLLs.'
55252  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
55253  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
55254  echo '   unchanged to GCC at the end of command line.'
55255  echo '*> If you create a DLL from a library and you do not specify -o,'
55256  echo '   the basename for DLL and import library will be set to library name,'
55257  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
55258  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
55259  echo '   library will be renamed into gcc_s.a.'
55260  echo '--------'
55261  echo 'Example:'
55262  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
55263  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
55264  CleanUp
55265  exit 1
55266 }
55267
55268 # Execute a command.
55269 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
55270 # @Uses    Whatever CleanUp() uses.
55271 doCommand() {
55272     echo "${D}*"
55273     eval ${D}*
55274     rcCmd=${D}?
55275
55276     if [ ${D}rcCmd -ne 0 ]; then
55277         echo "command failed, exit code="${D}rcCmd
55278         CleanUp
55279         exit ${D}rcCmd
55280     fi
55281 }
55282
55283 # main routine
55284 # setup globals
55285 cmdLine=${D}*
55286 outFile=""
55287 outimpFile=""
55288 inputFiles=""
55289 renameScript=""
55290 description=""
55291 CC=gcc.exe
55292 CFLAGS="-s -Zcrtdll"
55293 EXTRA_CFLAGS=""
55294 EXPORT_BY_ORDINALS=0
55295 exclude_symbols=""
55296 library_flags=""
55297 curDir=\`pwd\`
55298 curDirS=curDir
55299 case ${D}curDirS in
55300 */)
55301   ;;
55302 *)
55303   curDirS=${D}{curDirS}"/"
55304   ;;
55305 esac
55306 # Parse commandline
55307 libsToLink=0
55308 omfLinking=0
55309 while [ ${D}1 ]; do
55310     case ${D}1 in
55311     -ord*)
55312         EXPORT_BY_ORDINALS=1;
55313         ;;
55314     -o*)
55315         shift
55316         outFile=${D}1
55317         ;;
55318     -i*)
55319         shift
55320         outimpFile=${D}1
55321         ;;
55322     -name-mangler-script)
55323         shift
55324         renameScript=${D}1
55325         ;;
55326     -d*)
55327         shift
55328         description=${D}1
55329         ;;
55330     -f*)
55331         shift
55332         CFLAGS=${D}1
55333         ;;
55334     -c*)
55335         shift
55336         CC=${D}1
55337         ;;
55338     -h*)
55339         PrintHelp
55340         ;;
55341     -ex*)
55342         shift
55343         exclude_symbols=${D}{exclude_symbols}${D}1" "
55344         ;;
55345     -libf*)
55346         shift
55347         library_flags=${D}{library_flags}${D}1" "
55348         ;;
55349     -nocrt*)
55350         CFLAGS="-s"
55351         ;;
55352     -nolxl*)
55353         flag_USE_LXLITE=0
55354         ;;
55355     -* | /*)
55356         case ${D}1 in
55357         -L* | -l*)
55358             libsToLink=1
55359             ;;
55360         -Zomf)
55361             omfLinking=1
55362             ;;
55363         *)
55364             ;;
55365         esac
55366         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
55367         ;;
55368     *.dll)
55369         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
55370         if [ ${D}omfLinking -eq 1 ]; then
55371             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
55372         else
55373             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
55374         fi
55375         ;;
55376     *)
55377         found=0;
55378         if [ ${D}libsToLink -ne 0 ]; then
55379             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
55380         else
55381             for file in ${D}1 ; do
55382                 if [ -f ${D}file ]; then
55383                     inputFiles="${D}{inputFiles} ${D}file"
55384                     found=1
55385                 fi
55386             done
55387             if [ ${D}found -eq 0 ]; then
55388                 echo "ERROR: No file(s) found: "${D}1
55389                 exit 8
55390             fi
55391         fi
55392       ;;
55393     esac
55394     shift
55395 done # iterate cmdline words
55396
55397 #
55398 if [ -z "${D}inputFiles" ]; then
55399     echo "dllar: no input files"
55400     PrintHelp
55401 fi
55402
55403 # Now extract all .o files from .a files
55404 newInputFiles=""
55405 for file in ${D}inputFiles ; do
55406     case ${D}file in
55407     *.a | *.lib)
55408         case ${D}file in
55409         *.a)
55410             suffix=".a"
55411             AR="ar"
55412             ;;
55413         *.lib)
55414             suffix=".lib"
55415             AR="emxomfar"
55416             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
55417             ;;
55418         *)
55419             ;;
55420         esac
55421         dirname=\`basnam ${D}file ${D}suffix\`"_%"
55422         mkdir ${D}dirname
55423         if [ ${D}? -ne 0 ]; then
55424             echo "Failed to create subdirectory ./${D}dirname"
55425             CleanUp
55426             exit 8;
55427         fi
55428         # Append '!' to indicate archive
55429         newInputFiles="${D}newInputFiles ${D}{dirname}!"
55430         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
55431         cd ${D}curDir
55432         found=0;
55433         for subfile in ${D}dirname/*.o* ; do
55434             if [ -f ${D}subfile ]; then
55435                 found=1
55436                 if [ -s ${D}subfile ]; then
55437                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
55438                     newInputFiles="${D}newInputFiles ${D}subfile"
55439                 fi
55440             fi
55441         done
55442         if [ ${D}found -eq 0 ]; then
55443             echo "WARNING: there are no files in archive \\'${D}file\\'"
55444         fi
55445         ;;
55446     *)
55447         newInputFiles="${D}{newInputFiles} ${D}file"
55448         ;;
55449     esac
55450 done
55451 inputFiles="${D}newInputFiles"
55452
55453 # Output filename(s).
55454 do_backup=0;
55455 if [ -z ${D}outFile ]; then
55456     do_backup=1;
55457     set outFile ${D}inputFiles; outFile=${D}2
55458 fi
55459
55460 # If it is an archive, remove the '!' and the '_%' suffixes
55461 case ${D}outFile in
55462 *_%!)
55463     outFile=\`basnam ${D}outFile _%!\`
55464     ;;
55465 *)
55466     ;;
55467 esac
55468 case ${D}outFile in
55469 *.dll)
55470     outFile=\`basnam ${D}outFile .dll\`
55471     ;;
55472 *.DLL)
55473     outFile=\`basnam ${D}outFile .DLL\`
55474     ;;
55475 *.o)
55476     outFile=\`basnam ${D}outFile .o\`
55477     ;;
55478 *.obj)
55479     outFile=\`basnam ${D}outFile .obj\`
55480     ;;
55481 *.a)
55482     outFile=\`basnam ${D}outFile .a\`
55483     ;;
55484 *.lib)
55485     outFile=\`basnam ${D}outFile .lib\`
55486     ;;
55487 *)
55488     ;;
55489 esac
55490 case ${D}outimpFile in
55491 *.a)
55492     outimpFile=\`basnam ${D}outimpFile .a\`
55493     ;;
55494 *.lib)
55495     outimpFile=\`basnam ${D}outimpFile .lib\`
55496     ;;
55497 *)
55498     ;;
55499 esac
55500 if [ -z ${D}outimpFile ]; then
55501     outimpFile=${D}outFile
55502 fi
55503 defFile="${D}{outFile}.def"
55504 arcFile="${D}{outimpFile}.a"
55505 arcFile2="${D}{outimpFile}.lib"
55506
55507 #create ${D}dllFile as something matching 8.3 restrictions,
55508 if [ -z ${D}renameScript ] ; then
55509     dllFile="${D}outFile"
55510 else
55511     dllFile=\`${D}renameScript ${D}outimpFile\`
55512 fi
55513
55514 if [ ${D}do_backup -ne 0 ] ; then
55515     if [ -f ${D}arcFile ] ; then
55516         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
55517     fi
55518     if [ -f ${D}arcFile2 ] ; then
55519         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
55520     fi
55521 fi
55522
55523 # Extract public symbols from all the object files.
55524 tmpdefFile=${D}{defFile}_%
55525 rm -f ${D}tmpdefFile
55526 for file in ${D}inputFiles ; do
55527     case ${D}file in
55528     *!)
55529         ;;
55530     *)
55531         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
55532         ;;
55533     esac
55534 done
55535
55536 # Create the def file.
55537 rm -f ${D}defFile
55538 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
55539 dllFile="${D}{dllFile}.dll"
55540 if [ ! -z ${D}description ]; then
55541     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
55542 fi
55543 echo "EXPORTS" >> ${D}defFile
55544
55545 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
55546 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
55547
55548 # Checks if the export is ok or not.
55549 for word in ${D}exclude_symbols; do
55550     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
55551     mv ${D}{tmpdefFile}% ${D}tmpdefFile
55552 done
55553
55554
55555 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
55556     sed "=" < ${D}tmpdefFile | \\
55557     sed '
55558       N
55559       : loop
55560       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
55561       t loop
55562     ' > ${D}{tmpdefFile}%
55563     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
55564 else
55565     rm -f ${D}{tmpdefFile}%
55566 fi
55567 cat ${D}tmpdefFile >> ${D}defFile
55568 rm -f ${D}tmpdefFile
55569
55570 # Do linking, create implib, and apply lxlite.
55571 gccCmdl="";
55572 for file in ${D}inputFiles ; do
55573     case ${D}file in
55574     *!)
55575         ;;
55576     *)
55577         gccCmdl="${D}gccCmdl ${D}file"
55578         ;;
55579     esac
55580 done
55581 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
55582 touch "${D}{outFile}.dll"
55583
55584 doCommand "emximp -o ${D}arcFile ${D}defFile"
55585 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
55586     add_flags="";
55587     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
55588         add_flags="-ynd"
55589     fi
55590     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
55591 fi
55592 doCommand "emxomf -s -l ${D}arcFile"
55593
55594 # Successful exit.
55595 CleanUp 1
55596 exit 0
55597 EOF
55598
55599         chmod +x dllar.sh
55600       ;;
55601
55602       powerpc-apple-macos* | \
55603       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
55604       *-*-mirbsd* | \
55605       *-*-sunos4* | \
55606       *-*-osf* | \
55607       *-*-dgux5* | \
55608       *-*-sysv5* | \
55609       *-pc-msdosdjgpp )
55610               ;;
55611
55612       *)
55613                     esac
55614
55615     if test "x$PIC_FLAG" != "x" ; then
55616         PIC_FLAG="$PIC_FLAG -DPIC"
55617     fi
55618
55619     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
55620         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
55621     fi
55622     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
55623         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
55624     fi
55625
55626
55627
55628
55629
55630
55631
55632
55633
55634     USE_SOVERSION=0
55635     USE_SOVERLINUX=0
55636     USE_SOVERSOLARIS=0
55637     USE_SOVERCYGWIN=0
55638     USE_SOSYMLINKS=0
55639     USE_MACVERSION=0
55640     SONAME_FLAG=
55641
55642     case "${BAKEFILE_HOST}" in
55643       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
55644         SONAME_FLAG="-Wl,-soname,"
55645         USE_SOVERSION=1
55646         USE_SOVERLINUX=1
55647         USE_SOSYMLINKS=1
55648       ;;
55649
55650       *-*-solaris2* )
55651         SONAME_FLAG="-h "
55652         USE_SOVERSION=1
55653         USE_SOVERSOLARIS=1
55654         USE_SOSYMLINKS=1
55655       ;;
55656
55657       *-*-darwin* )
55658         USE_MACVERSION=1
55659         USE_SOVERSION=1
55660         USE_SOSYMLINKS=1
55661       ;;
55662
55663       *-*-cygwin* )
55664         USE_SOVERSION=1
55665         USE_SOVERCYGWIN=1
55666       ;;
55667     esac
55668
55669
55670
55671
55672
55673
55674
55675
55676
55677
55678     # Check whether --enable-dependency-tracking was given.
55679 if test "${enable_dependency_tracking+set}" = set; then
55680   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
55681 fi
55682
55683
55684     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
55685 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
55686
55687     BK_DEPS=""
55688     if test "x$bk_use_trackdeps" = "xno" ; then
55689         DEPS_TRACKING=0
55690         { echo "$as_me:$LINENO: result: disabled" >&5
55691 echo "${ECHO_T}disabled" >&6; }
55692     else
55693         DEPS_TRACKING=1
55694
55695         if test "x$GCC" = "xyes"; then
55696             DEPSMODE=gcc
55697             case "${BAKEFILE_HOST}" in
55698                 *-*-darwin* )
55699                                                             DEPSFLAG="-no-cpp-precomp -MMD"
55700                 ;;
55701                 * )
55702                     DEPSFLAG="-MMD"
55703                 ;;
55704             esac
55705             { echo "$as_me:$LINENO: result: gcc" >&5
55706 echo "${ECHO_T}gcc" >&6; }
55707         elif test "x$MWCC" = "xyes"; then
55708             DEPSMODE=mwcc
55709             DEPSFLAG="-MM"
55710             { echo "$as_me:$LINENO: result: mwcc" >&5
55711 echo "${ECHO_T}mwcc" >&6; }
55712         elif test "x$SUNCC" = "xyes"; then
55713             DEPSMODE=unixcc
55714             DEPSFLAG="-xM1"
55715             { echo "$as_me:$LINENO: result: Sun cc" >&5
55716 echo "${ECHO_T}Sun cc" >&6; }
55717         elif test "x$SGICC" = "xyes"; then
55718             DEPSMODE=unixcc
55719             DEPSFLAG="-M"
55720             { echo "$as_me:$LINENO: result: SGI cc" >&5
55721 echo "${ECHO_T}SGI cc" >&6; }
55722         elif test "x$HPCC" = "xyes"; then
55723             DEPSMODE=unixcc
55724             DEPSFLAG="+make"
55725             { echo "$as_me:$LINENO: result: HP cc" >&5
55726 echo "${ECHO_T}HP cc" >&6; }
55727         elif test "x$COMPAQCC" = "xyes"; then
55728             DEPSMODE=gcc
55729             DEPSFLAG="-MD"
55730             { echo "$as_me:$LINENO: result: Compaq cc" >&5
55731 echo "${ECHO_T}Compaq cc" >&6; }
55732         else
55733             DEPS_TRACKING=0
55734             { echo "$as_me:$LINENO: result: none" >&5
55735 echo "${ECHO_T}none" >&6; }
55736         fi
55737
55738         if test $DEPS_TRACKING = 1 ; then
55739
55740 D='$'
55741 cat <<EOF >bk-deps
55742 #!/bin/sh
55743
55744 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
55745 # script. It is used to track C/C++ files dependencies in portable way.
55746 #
55747 # Permission is given to use this file in any way.
55748
55749 DEPSMODE=${DEPSMODE}
55750 DEPSDIR=.deps
55751 DEPSFLAG="${DEPSFLAG}"
55752
55753 mkdir -p ${D}DEPSDIR
55754
55755 if test ${D}DEPSMODE = gcc ; then
55756     ${D}* ${D}{DEPSFLAG}
55757     status=${D}?
55758     if test ${D}{status} != 0 ; then
55759         exit ${D}{status}
55760     fi
55761     # move created file to the location we want it in:
55762     while test ${D}# -gt 0; do
55763         case "${D}1" in
55764             -o )
55765                 shift
55766                 objfile=${D}1
55767             ;;
55768             -* )
55769             ;;
55770             * )
55771                 srcfile=${D}1
55772             ;;
55773         esac
55774         shift
55775     done
55776     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
55777     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
55778     if test -f ${D}depfile ; then
55779         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
55780         rm -f ${D}depfile
55781     else
55782         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
55783         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
55784         if test ! -f ${D}depfile ; then
55785             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
55786             depfile="${D}objfile.d"
55787         fi
55788         if test -f ${D}depfile ; then
55789             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
55790             rm -f ${D}depfile
55791         fi
55792     fi
55793     exit 0
55794 elif test ${D}DEPSMODE = mwcc ; then
55795     ${D}* || exit ${D}?
55796     # Run mwcc again with -MM and redirect into the dep file we want
55797     # NOTE: We can't use shift here because we need ${D}* to be valid
55798     prevarg=
55799     for arg in ${D}* ; do
55800         if test "${D}prevarg" = "-o"; then
55801             objfile=${D}arg
55802         else
55803             case "${D}arg" in
55804                 -* )
55805                 ;;
55806                 * )
55807                     srcfile=${D}arg
55808                 ;;
55809             esac
55810         fi
55811         prevarg="${D}arg"
55812     done
55813     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
55814     exit 0
55815 elif test ${D}DEPSMODE = unixcc; then
55816     ${D}* || exit ${D}?
55817     # Run compiler again with deps flag and redirect into the dep file.
55818     # It doesn't work if the '-o FILE' option is used, but without it the
55819     # dependency file will contain the wrong name for the object. So it is
55820     # removed from the command line, and the dep file is fixed with sed.
55821     cmd=""
55822     while test ${D}# -gt 0; do
55823         case "${D}1" in
55824             -o )
55825                 shift
55826                 objfile=${D}1
55827             ;;
55828             * )
55829                 eval arg${D}#=\\${D}1
55830                 cmd="${D}cmd \\${D}arg${D}#"
55831             ;;
55832         esac
55833         shift
55834     done
55835     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
55836     exit 0
55837 else
55838     ${D}*
55839     exit ${D}?
55840 fi
55841 EOF
55842
55843             chmod +x bk-deps
55844                                     BK_DEPS="`pwd`/bk-deps"
55845         fi
55846     fi
55847
55848
55849
55850
55851
55852     case ${BAKEFILE_HOST} in
55853         *-*-cygwin* | *-*-mingw32* )
55854                         if test -n "$ac_tool_prefix"; then
55855   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
55856 set dummy ${ac_tool_prefix}windres; ac_word=$2
55857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55859 if test "${ac_cv_prog_WINDRES+set}" = set; then
55860   echo $ECHO_N "(cached) $ECHO_C" >&6
55861 else
55862   if test -n "$WINDRES"; then
55863   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
55864 else
55865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55866 for as_dir in $PATH
55867 do
55868   IFS=$as_save_IFS
55869   test -z "$as_dir" && as_dir=.
55870   for ac_exec_ext in '' $ac_executable_extensions; do
55871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
55872     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
55873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55874     break 2
55875   fi
55876 done
55877 done
55878 IFS=$as_save_IFS
55879
55880 fi
55881 fi
55882 WINDRES=$ac_cv_prog_WINDRES
55883 if test -n "$WINDRES"; then
55884   { echo "$as_me:$LINENO: result: $WINDRES" >&5
55885 echo "${ECHO_T}$WINDRES" >&6; }
55886 else
55887   { echo "$as_me:$LINENO: result: no" >&5
55888 echo "${ECHO_T}no" >&6; }
55889 fi
55890
55891
55892 fi
55893 if test -z "$ac_cv_prog_WINDRES"; then
55894   ac_ct_WINDRES=$WINDRES
55895   # Extract the first word of "windres", so it can be a program name with args.
55896 set dummy windres; ac_word=$2
55897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55899 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
55900   echo $ECHO_N "(cached) $ECHO_C" >&6
55901 else
55902   if test -n "$ac_ct_WINDRES"; then
55903   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
55904 else
55905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55906 for as_dir in $PATH
55907 do
55908   IFS=$as_save_IFS
55909   test -z "$as_dir" && as_dir=.
55910   for ac_exec_ext in '' $ac_executable_extensions; do
55911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
55912     ac_cv_prog_ac_ct_WINDRES="windres"
55913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55914     break 2
55915   fi
55916 done
55917 done
55918 IFS=$as_save_IFS
55919
55920 fi
55921 fi
55922 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
55923 if test -n "$ac_ct_WINDRES"; then
55924   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
55925 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
55926 else
55927   { echo "$as_me:$LINENO: result: no" >&5
55928 echo "${ECHO_T}no" >&6; }
55929 fi
55930
55931   if test "x$ac_ct_WINDRES" = x; then
55932     WINDRES=""
55933   else
55934     case $cross_compiling:$ac_tool_warned in
55935 yes:)
55936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
55937 whose name does not start with the host triplet.  If you think this
55938 configuration is useful to you, please write to autoconf@gnu.org." >&5
55939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
55940 whose name does not start with the host triplet.  If you think this
55941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
55942 ac_tool_warned=yes ;;
55943 esac
55944     WINDRES=$ac_ct_WINDRES
55945   fi
55946 else
55947   WINDRES="$ac_cv_prog_WINDRES"
55948 fi
55949
55950          ;;
55951
55952       *-*-darwin* | powerpc-apple-macos* )
55953             # Extract the first word of "Rez", so it can be a program name with args.
55954 set dummy Rez; ac_word=$2
55955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55957 if test "${ac_cv_prog_REZ+set}" = set; then
55958   echo $ECHO_N "(cached) $ECHO_C" >&6
55959 else
55960   if test -n "$REZ"; then
55961   ac_cv_prog_REZ="$REZ" # Let the user override the test.
55962 else
55963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55964 for as_dir in $PATH
55965 do
55966   IFS=$as_save_IFS
55967   test -z "$as_dir" && as_dir=.
55968   for ac_exec_ext in '' $ac_executable_extensions; do
55969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
55970     ac_cv_prog_REZ="Rez"
55971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55972     break 2
55973   fi
55974 done
55975 done
55976 IFS=$as_save_IFS
55977
55978   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
55979 fi
55980 fi
55981 REZ=$ac_cv_prog_REZ
55982 if test -n "$REZ"; then
55983   { echo "$as_me:$LINENO: result: $REZ" >&5
55984 echo "${ECHO_T}$REZ" >&6; }
55985 else
55986   { echo "$as_me:$LINENO: result: no" >&5
55987 echo "${ECHO_T}no" >&6; }
55988 fi
55989
55990
55991             # Extract the first word of "SetFile", so it can be a program name with args.
55992 set dummy SetFile; ac_word=$2
55993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
55994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
55995 if test "${ac_cv_prog_SETFILE+set}" = set; then
55996   echo $ECHO_N "(cached) $ECHO_C" >&6
55997 else
55998   if test -n "$SETFILE"; then
55999   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
56000 else
56001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56002 for as_dir in $PATH
56003 do
56004   IFS=$as_save_IFS
56005   test -z "$as_dir" && as_dir=.
56006   for ac_exec_ext in '' $ac_executable_extensions; do
56007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
56008     ac_cv_prog_SETFILE="SetFile"
56009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56010     break 2
56011   fi
56012 done
56013 done
56014 IFS=$as_save_IFS
56015
56016   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
56017 fi
56018 fi
56019 SETFILE=$ac_cv_prog_SETFILE
56020 if test -n "$SETFILE"; then
56021   { echo "$as_me:$LINENO: result: $SETFILE" >&5
56022 echo "${ECHO_T}$SETFILE" >&6; }
56023 else
56024   { echo "$as_me:$LINENO: result: no" >&5
56025 echo "${ECHO_T}no" >&6; }
56026 fi
56027
56028
56029         ;;
56030     esac
56031
56032
56033
56034
56035
56036
56037     BAKEFILE_BAKEFILE_M4_VERSION="0.2.1"
56038
56039
56040 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.1"
56041
56042
56043
56044     # Check whether --enable-precomp-headers was given.
56045 if test "${enable_precomp_headers+set}" = set; then
56046   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
56047 fi
56048
56049
56050     GCC_PCH=0
56051     ICC_PCH=0
56052     USE_PCH=0
56053     BK_MAKE_PCH=""
56054
56055     case ${BAKEFILE_HOST} in
56056         *-*-cygwin* )
56057                                                 bk_use_pch="no"
56058             ;;
56059     esac
56060
56061     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
56062         if test "x$GCC" = "xyes"; then
56063                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
56064 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
56065             cat >conftest.$ac_ext <<_ACEOF
56066 /* confdefs.h.  */
56067 _ACEOF
56068 cat confdefs.h >>conftest.$ac_ext
56069 cat >>conftest.$ac_ext <<_ACEOF
56070 /* end confdefs.h.  */
56071
56072 int
56073 main ()
56074 {
56075
56076                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
56077                         There is no PCH support
56078                     #endif
56079                     #if (__GNUC__ < 3)
56080                         There is no PCH support
56081                     #endif
56082                     #if (__GNUC__ == 3) && \
56083                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
56084                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
56085                        ( defined(__INTEL_COMPILER) )
56086                         There is no PCH support
56087                     #endif
56088
56089   ;
56090   return 0;
56091 }
56092 _ACEOF
56093 rm -f conftest.$ac_objext
56094 if { (ac_try="$ac_compile"
56095 case "(($ac_try" in
56096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56097   *) ac_try_echo=$ac_try;;
56098 esac
56099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56100   (eval "$ac_compile") 2>conftest.er1
56101   ac_status=$?
56102   grep -v '^ *+' conftest.er1 >conftest.err
56103   rm -f conftest.er1
56104   cat conftest.err >&5
56105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56106   (exit $ac_status); } &&
56107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56108   { (case "(($ac_try" in
56109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56110   *) ac_try_echo=$ac_try;;
56111 esac
56112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56113   (eval "$ac_try") 2>&5
56114   ac_status=$?
56115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56116   (exit $ac_status); }; } &&
56117          { ac_try='test -s conftest.$ac_objext'
56118   { (case "(($ac_try" in
56119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56120   *) ac_try_echo=$ac_try;;
56121 esac
56122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56123   (eval "$ac_try") 2>&5
56124   ac_status=$?
56125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56126   (exit $ac_status); }; }; then
56127
56128                     { echo "$as_me:$LINENO: result: yes" >&5
56129 echo "${ECHO_T}yes" >&6; }
56130                     GCC_PCH=1
56131
56132 else
56133   echo "$as_me: failed program was:" >&5
56134 sed 's/^/| /' conftest.$ac_ext >&5
56135
56136
56137                     cat >conftest.$ac_ext <<_ACEOF
56138 /* confdefs.h.  */
56139 _ACEOF
56140 cat confdefs.h >>conftest.$ac_ext
56141 cat >>conftest.$ac_ext <<_ACEOF
56142 /* end confdefs.h.  */
56143
56144 int
56145 main ()
56146 {
56147
56148                             #if !defined(__INTEL_COMPILER) || \
56149                                 (__INTEL_COMPILER < 800)
56150                                 There is no PCH support
56151                             #endif
56152
56153   ;
56154   return 0;
56155 }
56156 _ACEOF
56157 rm -f conftest.$ac_objext
56158 if { (ac_try="$ac_compile"
56159 case "(($ac_try" in
56160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56161   *) ac_try_echo=$ac_try;;
56162 esac
56163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56164   (eval "$ac_compile") 2>conftest.er1
56165   ac_status=$?
56166   grep -v '^ *+' conftest.er1 >conftest.err
56167   rm -f conftest.er1
56168   cat conftest.err >&5
56169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56170   (exit $ac_status); } &&
56171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
56172   { (case "(($ac_try" in
56173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56174   *) ac_try_echo=$ac_try;;
56175 esac
56176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56177   (eval "$ac_try") 2>&5
56178   ac_status=$?
56179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56180   (exit $ac_status); }; } &&
56181          { ac_try='test -s conftest.$ac_objext'
56182   { (case "(($ac_try" in
56183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56184   *) ac_try_echo=$ac_try;;
56185 esac
56186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56187   (eval "$ac_try") 2>&5
56188   ac_status=$?
56189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56190   (exit $ac_status); }; }; then
56191
56192                             { echo "$as_me:$LINENO: result: yes" >&5
56193 echo "${ECHO_T}yes" >&6; }
56194                             ICC_PCH=1
56195
56196 else
56197   echo "$as_me: failed program was:" >&5
56198 sed 's/^/| /' conftest.$ac_ext >&5
56199
56200
56201                             { echo "$as_me:$LINENO: result: no" >&5
56202 echo "${ECHO_T}no" >&6; }
56203
56204 fi
56205
56206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56207
56208 fi
56209
56210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56211             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
56212                 USE_PCH=1
56213
56214 D='$'
56215 cat <<EOF >bk-make-pch
56216 #!/bin/sh
56217
56218 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
56219 # script. It is used to generated precompiled headers.
56220 #
56221 # Permission is given to use this file in any way.
56222
56223 outfile="${D}{1}"
56224 header="${D}{2}"
56225 shift
56226 shift
56227
56228 compiler=""
56229 headerfile=""
56230
56231 while test ${D}{#} -gt 0; do
56232     add_to_cmdline=1
56233     case "${D}{1}" in
56234         -I* )
56235             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
56236             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
56237                 headerfile="${D}{incdir}/${D}{header}"
56238             fi
56239         ;;
56240         -use-pch|-use_pch )
56241             shift
56242             add_to_cmdline=0
56243         ;;
56244     esac
56245     if test ${D}add_to_cmdline = 1 ; then
56246         compiler="${D}{compiler} ${D}{1}"
56247     fi
56248     shift
56249 done
56250
56251 if test "x${D}{headerfile}" = "x" ; then
56252     echo "error: can't find header ${D}{header} in include paths" >&2
56253 else
56254     if test -f ${D}{outfile} ; then
56255         rm -f ${D}{outfile}
56256     else
56257         mkdir -p \`dirname ${D}{outfile}\`
56258     fi
56259     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
56260     mkdir -p .deps
56261     if test "x${GCC_PCH}" = "x1" ; then
56262         # can do this because gcc is >= 3.4:
56263         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
56264     elif test "x${ICC_PCH}" = "x1" ; then
56265         filename=pch_gen-${D}${D}
56266         file=${D}{filename}.c
56267         dfile=${D}{filename}.d
56268         cat > ${D}file <<EOT
56269 #include "${D}header"
56270 EOT
56271         # using -MF icc complains about differing command lines in creation/use
56272         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
56273           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
56274           rm -f ${D}file ${D}dfile ${D}{filename}.o
56275     fi
56276     exit ${D}{?}
56277 fi
56278 EOF
56279
56280                 chmod +x bk-make-pch
56281                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
56282             fi
56283         fi
56284     fi
56285
56286
56287
56288
56289
56290     COND_BUILD_DEBUG="#"
56291     if test "x$BUILD" = "xdebug" ; then
56292         COND_BUILD_DEBUG=""
56293     fi
56294
56295     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
56296     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
56297         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
56298     fi
56299
56300     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
56301     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
56302         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
56303     fi
56304
56305     COND_BUILD_DEBUG_UNICODE_0="#"
56306     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
56307         COND_BUILD_DEBUG_UNICODE_0=""
56308     fi
56309
56310     COND_BUILD_DEBUG_UNICODE_1="#"
56311     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
56312         COND_BUILD_DEBUG_UNICODE_1=""
56313     fi
56314
56315     COND_BUILD_RELEASE="#"
56316     if test "x$BUILD" = "xrelease" ; then
56317         COND_BUILD_RELEASE=""
56318     fi
56319
56320     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
56321     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
56322         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
56323     fi
56324
56325     COND_BUILD_RELEASE_UNICODE_0="#"
56326     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
56327         COND_BUILD_RELEASE_UNICODE_0=""
56328     fi
56329
56330     COND_BUILD_RELEASE_UNICODE_1="#"
56331     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
56332         COND_BUILD_RELEASE_UNICODE_1=""
56333     fi
56334
56335     COND_DEBUG_FLAG_1="#"
56336     if test "x$DEBUG_FLAG" = "x1" ; then
56337         COND_DEBUG_FLAG_1=""
56338     fi
56339
56340     COND_DEBUG_INFO_0="#"
56341     if test "x$DEBUG_INFO" = "x0" ; then
56342         COND_DEBUG_INFO_0=""
56343     fi
56344
56345     COND_DEBUG_INFO_1="#"
56346     if test "x$DEBUG_INFO" = "x1" ; then
56347         COND_DEBUG_INFO_1=""
56348     fi
56349
56350     COND_DEPS_TRACKING_0="#"
56351     if test "x$DEPS_TRACKING" = "x0" ; then
56352         COND_DEPS_TRACKING_0=""
56353     fi
56354
56355     COND_DEPS_TRACKING_1="#"
56356     if test "x$DEPS_TRACKING" = "x1" ; then
56357         COND_DEPS_TRACKING_1=""
56358     fi
56359
56360     COND_GCC_PCH_1="#"
56361     if test "x$GCC_PCH" = "x1" ; then
56362         COND_GCC_PCH_1=""
56363     fi
56364
56365     COND_ICC_PCH_1="#"
56366     if test "x$ICC_PCH" = "x1" ; then
56367         COND_ICC_PCH_1=""
56368     fi
56369
56370     COND_MONOLITHIC_0="#"
56371     if test "x$MONOLITHIC" = "x0" ; then
56372         COND_MONOLITHIC_0=""
56373     fi
56374
56375     COND_MONOLITHIC_0_SHARED_0="#"
56376     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
56377         COND_MONOLITHIC_0_SHARED_0=""
56378     fi
56379
56380     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
56381     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
56382         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
56383     fi
56384
56385     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
56386     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
56387         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
56388     fi
56389
56390     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
56391     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
56392         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
56393     fi
56394
56395     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
56396     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
56397         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
56398     fi
56399
56400     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
56401     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
56402         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
56403     fi
56404
56405     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
56406     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
56407         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
56408     fi
56409
56410     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
56411     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
56412         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
56413     fi
56414
56415     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
56416     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
56417         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
56418     fi
56419
56420     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
56421     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
56422         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
56423     fi
56424
56425     COND_MONOLITHIC_0_SHARED_1="#"
56426     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
56427         COND_MONOLITHIC_0_SHARED_1=""
56428     fi
56429
56430     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
56431     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
56432         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
56433     fi
56434
56435     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
56436     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
56437         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
56438     fi
56439
56440     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
56441     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
56442         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
56443     fi
56444
56445     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
56446     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
56447         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
56448     fi
56449
56450     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
56451     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
56452         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
56453     fi
56454
56455     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
56456     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
56457         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
56458     fi
56459
56460     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
56461     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
56462         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
56463     fi
56464
56465     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
56466     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
56467         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
56468     fi
56469
56470     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
56471     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
56472         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
56473     fi
56474
56475     COND_MONOLITHIC_0_USE_MEDIA_1="#"
56476     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
56477         COND_MONOLITHIC_0_USE_MEDIA_1=""
56478     fi
56479
56480     COND_MONOLITHIC_0_USE_ODBC_1="#"
56481     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
56482         COND_MONOLITHIC_0_USE_ODBC_1=""
56483     fi
56484
56485     COND_MONOLITHIC_1="#"
56486     if test "x$MONOLITHIC" = "x1" ; then
56487         COND_MONOLITHIC_1=""
56488     fi
56489
56490     COND_MONOLITHIC_1_SHARED_0="#"
56491     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
56492         COND_MONOLITHIC_1_SHARED_0=""
56493     fi
56494
56495     COND_MONOLITHIC_1_SHARED_1="#"
56496     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
56497         COND_MONOLITHIC_1_SHARED_1=""
56498     fi
56499
56500     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
56501     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
56502         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
56503     fi
56504
56505     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
56506     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
56507         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
56508     fi
56509
56510     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
56511     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
56512         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
56513     fi
56514
56515     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
56516     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
56517         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
56518     fi
56519
56520     COND_PLATFORM_MACOSX_1="#"
56521     if test "x$PLATFORM_MACOSX" = "x1" ; then
56522         COND_PLATFORM_MACOSX_1=""
56523     fi
56524
56525     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
56526     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
56527         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
56528     fi
56529
56530     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
56531     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
56532         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
56533     fi
56534
56535     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
56536     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
56537         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
56538     fi
56539
56540     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
56541     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
56542         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
56543     fi
56544
56545     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
56546     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
56547         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
56548     fi
56549
56550     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
56551     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
56552         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
56553     fi
56554
56555     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
56556     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
56557         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
56558     fi
56559
56560     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
56561     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
56562         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
56563     fi
56564
56565     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
56566     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
56567         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
56568     fi
56569
56570     COND_PLATFORM_MACOS_1="#"
56571     if test "x$PLATFORM_MACOS" = "x1" ; then
56572         COND_PLATFORM_MACOS_1=""
56573     fi
56574
56575     COND_PLATFORM_MAC_1="#"
56576     if test "x$PLATFORM_MAC" = "x1" ; then
56577         COND_PLATFORM_MAC_1=""
56578     fi
56579
56580     COND_PLATFORM_MSDOS_0="#"
56581     if test "x$PLATFORM_MSDOS" = "x0" ; then
56582         COND_PLATFORM_MSDOS_0=""
56583     fi
56584
56585     COND_PLATFORM_MSDOS_1="#"
56586     if test "x$PLATFORM_MSDOS" = "x1" ; then
56587         COND_PLATFORM_MSDOS_1=""
56588     fi
56589
56590     COND_PLATFORM_OS2_1="#"
56591     if test "x$PLATFORM_OS2" = "x1" ; then
56592         COND_PLATFORM_OS2_1=""
56593     fi
56594
56595     COND_PLATFORM_UNIX_0="#"
56596     if test "x$PLATFORM_UNIX" = "x0" ; then
56597         COND_PLATFORM_UNIX_0=""
56598     fi
56599
56600     COND_PLATFORM_UNIX_1="#"
56601     if test "x$PLATFORM_UNIX" = "x1" ; then
56602         COND_PLATFORM_UNIX_1=""
56603     fi
56604
56605     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
56606     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
56607         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
56608     fi
56609
56610     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
56611     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
56612         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
56613     fi
56614
56615     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
56616     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
56617         COND_PLATFORM_UNIX_1_USE_GUI_1=""
56618     fi
56619
56620     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
56621     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
56622         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
56623     fi
56624
56625     COND_PLATFORM_WIN32_0="#"
56626     if test "x$PLATFORM_WIN32" = "x0" ; then
56627         COND_PLATFORM_WIN32_0=""
56628     fi
56629
56630     COND_PLATFORM_WIN32_1="#"
56631     if test "x$PLATFORM_WIN32" = "x1" ; then
56632         COND_PLATFORM_WIN32_1=""
56633     fi
56634
56635     COND_SHARED_0="#"
56636     if test "x$SHARED" = "x0" ; then
56637         COND_SHARED_0=""
56638     fi
56639
56640     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
56641     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
56642         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
56643     fi
56644
56645     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
56646     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
56647         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
56648     fi
56649
56650     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
56651     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
56652         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
56653     fi
56654
56655     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
56656     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
56657         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
56658     fi
56659
56660     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
56661     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
56662         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
56663     fi
56664
56665     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
56666     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
56667         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
56668     fi
56669
56670     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
56671     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
56672         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
56673     fi
56674
56675     COND_SHARED_0_USE_XRC_1="#"
56676     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
56677         COND_SHARED_0_USE_XRC_1=""
56678     fi
56679
56680     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
56681     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
56682         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
56683     fi
56684
56685     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
56686     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
56687         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
56688     fi
56689
56690     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
56691     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
56692         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
56693     fi
56694
56695     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
56696     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
56697         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
56698     fi
56699
56700     COND_SHARED_1="#"
56701     if test "x$SHARED" = "x1" ; then
56702         COND_SHARED_1=""
56703     fi
56704
56705     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
56706     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
56707         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
56708     fi
56709
56710     COND_SHARED_1_USE_XRC_1="#"
56711     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
56712         COND_SHARED_1_USE_XRC_1=""
56713     fi
56714
56715     COND_TOOLKIT_="#"
56716     if test "x$TOOLKIT" = "x" ; then
56717         COND_TOOLKIT_=""
56718     fi
56719
56720     COND_TOOLKIT_COCOA="#"
56721     if test "x$TOOLKIT" = "xCOCOA" ; then
56722         COND_TOOLKIT_COCOA=""
56723     fi
56724
56725     COND_TOOLKIT_COCOA_USE_GUI_1="#"
56726     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
56727         COND_TOOLKIT_COCOA_USE_GUI_1=""
56728     fi
56729
56730     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
56731     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56732         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
56733     fi
56734
56735     COND_TOOLKIT_DFB="#"
56736     if test "x$TOOLKIT" = "xDFB" ; then
56737         COND_TOOLKIT_DFB=""
56738     fi
56739
56740     COND_TOOLKIT_DFB_USE_GUI_1="#"
56741     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
56742         COND_TOOLKIT_DFB_USE_GUI_1=""
56743     fi
56744
56745     COND_TOOLKIT_GTK="#"
56746     if test "x$TOOLKIT" = "xGTK" ; then
56747         COND_TOOLKIT_GTK=""
56748     fi
56749
56750     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
56751     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
56752         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
56753     fi
56754
56755     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
56756     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
56757         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
56758     fi
56759
56760     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
56761     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
56762         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
56763     fi
56764
56765     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
56766     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56767         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
56768     fi
56769
56770     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
56771     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
56772         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
56773     fi
56774
56775     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
56776     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56777         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
56778     fi
56779
56780     COND_TOOLKIT_GTK_USE_GUI_1="#"
56781     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
56782         COND_TOOLKIT_GTK_USE_GUI_1=""
56783     fi
56784
56785     COND_TOOLKIT_MAC="#"
56786     if test "x$TOOLKIT" = "xMAC" ; then
56787         COND_TOOLKIT_MAC=""
56788     fi
56789
56790     COND_TOOLKIT_MAC_USE_GUI_1="#"
56791     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
56792         COND_TOOLKIT_MAC_USE_GUI_1=""
56793     fi
56794
56795     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
56796     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56797         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
56798     fi
56799
56800     COND_TOOLKIT_MGL="#"
56801     if test "x$TOOLKIT" = "xMGL" ; then
56802         COND_TOOLKIT_MGL=""
56803     fi
56804
56805     COND_TOOLKIT_MGL_USE_GUI_1="#"
56806     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
56807         COND_TOOLKIT_MGL_USE_GUI_1=""
56808     fi
56809
56810     COND_TOOLKIT_MOTIF="#"
56811     if test "x$TOOLKIT" = "xMOTIF" ; then
56812         COND_TOOLKIT_MOTIF=""
56813     fi
56814
56815     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
56816     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
56817         COND_TOOLKIT_MOTIF_USE_GUI_1=""
56818     fi
56819
56820     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
56821     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56822         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
56823     fi
56824
56825     COND_TOOLKIT_MSW="#"
56826     if test "x$TOOLKIT" = "xMSW" ; then
56827         COND_TOOLKIT_MSW=""
56828     fi
56829
56830     COND_TOOLKIT_MSW_USE_GUI_1="#"
56831     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
56832         COND_TOOLKIT_MSW_USE_GUI_1=""
56833     fi
56834
56835     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
56836     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56837         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
56838     fi
56839
56840     COND_TOOLKIT_MSW_WXUNIV_0="#"
56841     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
56842         COND_TOOLKIT_MSW_WXUNIV_0=""
56843     fi
56844
56845     COND_TOOLKIT_PM="#"
56846     if test "x$TOOLKIT" = "xPM" ; then
56847         COND_TOOLKIT_PM=""
56848     fi
56849
56850     COND_TOOLKIT_PM_USE_GUI_1="#"
56851     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
56852         COND_TOOLKIT_PM_USE_GUI_1=""
56853     fi
56854
56855     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
56856     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56857         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
56858     fi
56859
56860     COND_TOOLKIT_WINCE="#"
56861     if test "x$TOOLKIT" = "xWINCE" ; then
56862         COND_TOOLKIT_WINCE=""
56863     fi
56864
56865     COND_TOOLKIT_WINCE_USE_GUI_1="#"
56866     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
56867         COND_TOOLKIT_WINCE_USE_GUI_1=""
56868     fi
56869
56870     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
56871     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56872         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
56873     fi
56874
56875     COND_TOOLKIT_WINCE_WXUNIV_0="#"
56876     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
56877         COND_TOOLKIT_WINCE_WXUNIV_0=""
56878     fi
56879
56880     COND_TOOLKIT_X11="#"
56881     if test "x$TOOLKIT" = "xX11" ; then
56882         COND_TOOLKIT_X11=""
56883     fi
56884
56885     COND_TOOLKIT_X11_USE_GUI_1="#"
56886     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
56887         COND_TOOLKIT_X11_USE_GUI_1=""
56888     fi
56889
56890     COND_UNICODE_1="#"
56891     if test "x$UNICODE" = "x1" ; then
56892         COND_UNICODE_1=""
56893     fi
56894
56895     COND_USE_EXCEPTIONS_0="#"
56896     if test "x$USE_EXCEPTIONS" = "x0" ; then
56897         COND_USE_EXCEPTIONS_0=""
56898     fi
56899
56900     COND_USE_EXCEPTIONS_1="#"
56901     if test "x$USE_EXCEPTIONS" = "x1" ; then
56902         COND_USE_EXCEPTIONS_1=""
56903     fi
56904
56905     COND_USE_GUI_0="#"
56906     if test "x$USE_GUI" = "x0" ; then
56907         COND_USE_GUI_0=""
56908     fi
56909
56910     COND_USE_GUI_1="#"
56911     if test "x$USE_GUI" = "x1" ; then
56912         COND_USE_GUI_1=""
56913     fi
56914
56915     COND_USE_GUI_1_WXUNIV_0="#"
56916     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
56917         COND_USE_GUI_1_WXUNIV_0=""
56918     fi
56919
56920     COND_USE_GUI_1_WXUNIV_1="#"
56921     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
56922         COND_USE_GUI_1_WXUNIV_1=""
56923     fi
56924
56925     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
56926     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
56927         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
56928     fi
56929
56930     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
56931     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
56932         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
56933     fi
56934
56935     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
56936     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
56937         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
56938     fi
56939
56940     COND_USE_ODBC_1="#"
56941     if test "x$USE_ODBC" = "x1" ; then
56942         COND_USE_ODBC_1=""
56943     fi
56944
56945     COND_USE_OPENGL_1="#"
56946     if test "x$USE_OPENGL" = "x1" ; then
56947         COND_USE_OPENGL_1=""
56948     fi
56949
56950     COND_USE_PCH_1="#"
56951     if test "x$USE_PCH" = "x1" ; then
56952         COND_USE_PCH_1=""
56953     fi
56954
56955     COND_USE_PLUGINS_0="#"
56956     if test "x$USE_PLUGINS" = "x0" ; then
56957         COND_USE_PLUGINS_0=""
56958     fi
56959
56960     COND_USE_RTTI_0="#"
56961     if test "x$USE_RTTI" = "x0" ; then
56962         COND_USE_RTTI_0=""
56963     fi
56964
56965     COND_USE_RTTI_1="#"
56966     if test "x$USE_RTTI" = "x1" ; then
56967         COND_USE_RTTI_1=""
56968     fi
56969
56970     COND_USE_SOSYMLINKS_1="#"
56971     if test "x$USE_SOSYMLINKS" = "x1" ; then
56972         COND_USE_SOSYMLINKS_1=""
56973     fi
56974
56975     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
56976     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
56977         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
56978     fi
56979
56980     COND_USE_SOVERLINUX_1="#"
56981     if test "x$USE_SOVERLINUX" = "x1" ; then
56982         COND_USE_SOVERLINUX_1=""
56983     fi
56984
56985     COND_USE_SOVERSION_0="#"
56986     if test "x$USE_SOVERSION" = "x0" ; then
56987         COND_USE_SOVERSION_0=""
56988     fi
56989
56990     COND_USE_SOVERSOLARIS_1="#"
56991     if test "x$USE_SOVERSOLARIS" = "x1" ; then
56992         COND_USE_SOVERSOLARIS_1=""
56993     fi
56994
56995     COND_USE_THREADS_0="#"
56996     if test "x$USE_THREADS" = "x0" ; then
56997         COND_USE_THREADS_0=""
56998     fi
56999
57000     COND_USE_THREADS_1="#"
57001     if test "x$USE_THREADS" = "x1" ; then
57002         COND_USE_THREADS_1=""
57003     fi
57004
57005     COND_USE_XRC_1="#"
57006     if test "x$USE_XRC" = "x1" ; then
57007         COND_USE_XRC_1=""
57008     fi
57009
57010     COND_WINDOWS_IMPLIB_1="#"
57011     if test "x$WINDOWS_IMPLIB" = "x1" ; then
57012         COND_WINDOWS_IMPLIB_1=""
57013     fi
57014
57015     COND_WITH_PLUGIN_SDL_1="#"
57016     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
57017         COND_WITH_PLUGIN_SDL_1=""
57018     fi
57019
57020     COND_WXUNIV_0="#"
57021     if test "x$WXUNIV" = "x0" ; then
57022         COND_WXUNIV_0=""
57023     fi
57024
57025     COND_WXUNIV_1="#"
57026     if test "x$WXUNIV" = "x1" ; then
57027         COND_WXUNIV_1=""
57028     fi
57029
57030     COND_WXUSE_EXPAT_BUILTIN="#"
57031     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
57032         COND_WXUSE_EXPAT_BUILTIN=""
57033     fi
57034
57035     COND_WXUSE_LIBJPEG_BUILTIN="#"
57036     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
57037         COND_WXUSE_LIBJPEG_BUILTIN=""
57038     fi
57039
57040     COND_WXUSE_LIBPNG_BUILTIN="#"
57041     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
57042         COND_WXUSE_LIBPNG_BUILTIN=""
57043     fi
57044
57045     COND_WXUSE_LIBTIFF_BUILTIN="#"
57046     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
57047         COND_WXUSE_LIBTIFF_BUILTIN=""
57048     fi
57049
57050     COND_WXUSE_ODBC_BUILTIN="#"
57051     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
57052         COND_WXUSE_ODBC_BUILTIN=""
57053     fi
57054
57055     COND_WXUSE_REGEX_BUILTIN="#"
57056     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
57057         COND_WXUSE_REGEX_BUILTIN=""
57058     fi
57059
57060     COND_WXUSE_ZLIB_BUILTIN="#"
57061     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
57062         COND_WXUSE_ZLIB_BUILTIN=""
57063     fi
57064
57065
57066
57067     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
57068         { { 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
57069 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;}
57070    { (exit 1); exit 1; }; }
57071     fi
57072
57073     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
57074         { { 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
57075 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;}
57076    { (exit 1); exit 1; }; }
57077     fi
57078
57079
57080 if test $GCC_PCH = 1
57081 then
57082     if test "$wx_cv_gcc_pch_bug" = yes; then
57083         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
57084 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
57085         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
57086 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
57087         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
57088 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
57089     fi
57090
57091     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
57092 fi
57093
57094
57095 if test "$wxUSE_MAC" = 1 ; then
57096     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
57097         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
57098         mv temp bk-deps
57099         chmod +x bk-deps
57100     fi
57101 fi
57102
57103 if test "$wxUSE_SHARED" = "yes"; then
57104
57105                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
57106     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
57107
57108                 case "${host}" in
57109       *-pc-os2_emx | *-pc-os2-emx )
57110         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
57111         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
57112         cp -p ${srcdir}/src/os2/dllnames.sh .
57113         cp -p ${srcdir}/src/os2/dllar.sh .
57114       ;;
57115     esac
57116 else
57117
57118         EXE_LINKER="$CXX -o"
57119
57120 fi
57121 if test "$wxUSE_OMF" = "yes"; then
57122     case "${host}" in
57123       *-pc-os2_emx | *-pc-os2-emx )
57124         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
57125         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
57126         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
57127       ;;
57128     esac
57129 fi
57130
57131 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
57132
57133 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
57134
57135
57136
57137
57138
57139
57140
57141
57142
57143
57144
57145
57146
57147
57148
57149
57150
57151
57152
57153
57154
57155
57156
57157
57158
57159
57160
57161
57162
57163
57164
57165
57166
57167
57168
57169
57170
57171
57172
57173
57174
57175
57176
57177
57178
57179
57180
57181
57182
57183
57184
57185
57186
57187
57188
57189
57190
57191
57192
57193
57194
57195 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
57196 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
57197 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
57198 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
57199   echo $ECHO_N "(cached) $ECHO_C" >&6
57200 else
57201   cat >conftest.make <<\_ACEOF
57202 SHELL = /bin/sh
57203 all:
57204         @echo '@@@%%%=$(MAKE)=@@@%%%'
57205 _ACEOF
57206 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
57207 case `${MAKE-make} -f conftest.make 2>/dev/null` in
57208   *@@@%%%=?*=@@@%%%*)
57209     eval ac_cv_prog_make_${ac_make}_set=yes;;
57210   *)
57211     eval ac_cv_prog_make_${ac_make}_set=no;;
57212 esac
57213 rm -f conftest.make
57214 fi
57215 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
57216   { echo "$as_me:$LINENO: result: yes" >&5
57217 echo "${ECHO_T}yes" >&6; }
57218   SET_MAKE=
57219 else
57220   { echo "$as_me:$LINENO: result: no" >&5
57221 echo "${ECHO_T}no" >&6; }
57222   SET_MAKE="MAKE=${MAKE-make}"
57223 fi
57224
57225
57226
57227 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
57228
57229
57230 if test "$USE_WIN32" = 1; then
57231     ac_config_commands="$ac_config_commands
57232             rcdefs.h
57233         "
57234
57235 fi
57236
57237 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
57238
57239
57240 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
57241
57242
57243 if test "$wx_cv_version_script" = "yes"; then
57244     ac_config_files="$ac_config_files version-script"
57245
57246 fi
57247 ac_config_files="$ac_config_files Makefile"
57248
57249
57250 ac_config_commands="$ac_config_commands wx-config"
57251
57252
57253
57254 if test "$wxWITH_SUBDIRS" != "no"; then
57255 if test "$wxUSE_GUI" = "yes"; then
57256     SUBDIRS="samples demos utils contrib"
57257 else         SUBDIRS="samples utils"
57258 fi
57259
57260
57261
57262 # Check whether --with-cppunit-prefix was given.
57263 if test "${with_cppunit_prefix+set}" = set; then
57264   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
57265 else
57266   cppunit_config_prefix=""
57267 fi
57268
57269
57270 # Check whether --with-cppunit-exec-prefix was given.
57271 if test "${with_cppunit_exec_prefix+set}" = set; then
57272   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
57273 else
57274   cppunit_config_exec_prefix=""
57275 fi
57276
57277
57278   if test x$cppunit_config_exec_prefix != x ; then
57279      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
57280      if test x${CPPUNIT_CONFIG+set} != xset ; then
57281         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
57282      fi
57283   fi
57284   if test x$cppunit_config_prefix != x ; then
57285      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
57286      if test x${CPPUNIT_CONFIG+set} != xset ; then
57287         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
57288      fi
57289   fi
57290
57291   # Extract the first word of "cppunit-config", so it can be a program name with args.
57292 set dummy cppunit-config; ac_word=$2
57293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
57294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
57295 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
57296   echo $ECHO_N "(cached) $ECHO_C" >&6
57297 else
57298   case $CPPUNIT_CONFIG in
57299   [\\/]* | ?:[\\/]*)
57300   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
57301   ;;
57302   *)
57303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57304 for as_dir in $PATH
57305 do
57306   IFS=$as_save_IFS
57307   test -z "$as_dir" && as_dir=.
57308   for ac_exec_ext in '' $ac_executable_extensions; do
57309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
57310     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
57311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
57312     break 2
57313   fi
57314 done
57315 done
57316 IFS=$as_save_IFS
57317
57318   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
57319   ;;
57320 esac
57321 fi
57322 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
57323 if test -n "$CPPUNIT_CONFIG"; then
57324   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
57325 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
57326 else
57327   { echo "$as_me:$LINENO: result: no" >&5
57328 echo "${ECHO_T}no" >&6; }
57329 fi
57330
57331
57332   cppunit_version_min=1.8.0
57333
57334   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
57335 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
57336   no_cppunit=""
57337   if test "$CPPUNIT_CONFIG" = "no" ; then
57338     { echo "$as_me:$LINENO: result: no" >&5
57339 echo "${ECHO_T}no" >&6; }
57340     no_cppunit=yes
57341   else
57342     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
57343     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
57344     cppunit_version=`$CPPUNIT_CONFIG --version`
57345
57346     cppunit_major_version=`echo $cppunit_version | \
57347            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
57348     cppunit_minor_version=`echo $cppunit_version | \
57349            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
57350     cppunit_micro_version=`echo $cppunit_version | \
57351            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
57352
57353     cppunit_major_min=`echo $cppunit_version_min | \
57354            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
57355     cppunit_minor_min=`echo $cppunit_version_min | \
57356            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
57357     cppunit_micro_min=`echo $cppunit_version_min | \
57358            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
57359
57360     cppunit_version_proper=`expr \
57361         $cppunit_major_version \> $cppunit_major_min \| \
57362         $cppunit_major_version \= $cppunit_major_min \& \
57363         $cppunit_minor_version \> $cppunit_minor_min \| \
57364         $cppunit_major_version \= $cppunit_major_min \& \
57365         $cppunit_minor_version \= $cppunit_minor_min \& \
57366         $cppunit_micro_version \>= $cppunit_micro_min `
57367
57368     if test "$cppunit_version_proper" = "1" ; then
57369       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
57370 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
57371     else
57372       { echo "$as_me:$LINENO: result: no" >&5
57373 echo "${ECHO_T}no" >&6; }
57374       no_cppunit=yes
57375     fi
57376   fi
57377
57378   if test "x$no_cppunit" = x ; then
57379      SUBDIRS="$SUBDIRS tests"
57380   else
57381      CPPUNIT_CFLAGS=""
57382      CPPUNIT_LIBS=""
57383      :
57384   fi
57385
57386
57387
57388
57389
57390 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
57391     DISABLED_CONTRIB="$DISABLED_CONTRIB net"
57392 fi
57393
57394 for subdir in `echo $SUBDIRS`; do
57395     if test -d ${srcdir}/${subdir} ; then
57396         if test "$wxUSE_GUI" = "yes"; then
57397             if test ${subdir} = "samples"; then
57398                                                 makefiles="samples/Makefile.in $makefiles"
57399                 for sample in `echo $SAMPLES_SUBDIRS`; do
57400                     if test -d $srcdir/samples/$sample; then
57401                         makefiles="samples/$sample/Makefile.in $makefiles"
57402                     fi
57403                 done
57404             else
57405                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
57406                 eval "disabled=\$$disabled_var"
57407                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
57408                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
57409             fi
57410         else                                     if test ${subdir} = "samples"; then
57411                 makefiles="samples/Makefile.in samples/console/Makefile.in"
57412             elif test ${subdir} = "utils"; then
57413                 makefiles=""
57414                 for util in HelpGen tex2rtf ; do
57415                     if test -d $srcdir/utils/$util ; then
57416                         makefiles="utils/$util/Makefile.in \
57417                                    utils/$util/src/Makefile.in \
57418                                    $makefiles"
57419                     fi
57420                 done
57421             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
57422             fi
57423         fi
57424
57425         for mkin in $makefiles ; do
57426             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
57427             ac_config_files="$ac_config_files $mk"
57428
57429         done
57430     fi
57431 done
57432 fi
57433 cat >confcache <<\_ACEOF
57434 # This file is a shell script that caches the results of configure
57435 # tests run on this system so they can be shared between configure
57436 # scripts and configure runs, see configure's option --config-cache.
57437 # It is not useful on other systems.  If it contains results you don't
57438 # want to keep, you may remove or edit it.
57439 #
57440 # config.status only pays attention to the cache file if you give it
57441 # the --recheck option to rerun configure.
57442 #
57443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
57444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
57445 # following values.
57446
57447 _ACEOF
57448
57449 # The following way of writing the cache mishandles newlines in values,
57450 # but we know of no workaround that is simple, portable, and efficient.
57451 # So, we kill variables containing newlines.
57452 # Ultrix sh set writes to stderr and can't be redirected directly,
57453 # and sets the high bit in the cache file unless we assign to the vars.
57454 (
57455   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
57456     eval ac_val=\$$ac_var
57457     case $ac_val in #(
57458     *${as_nl}*)
57459       case $ac_var in #(
57460       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
57461 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
57462       esac
57463       case $ac_var in #(
57464       _ | IFS | as_nl) ;; #(
57465       *) $as_unset $ac_var ;;
57466       esac ;;
57467     esac
57468   done
57469
57470   (set) 2>&1 |
57471     case $as_nl`(ac_space=' '; set) 2>&1` in #(
57472     *${as_nl}ac_space=\ *)
57473       # `set' does not quote correctly, so add quotes (double-quote
57474       # substitution turns \\\\ into \\, and sed turns \\ into \).
57475       sed -n \
57476         "s/'/'\\\\''/g;
57477           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
57478       ;; #(
57479     *)
57480       # `set' quotes correctly as required by POSIX, so do not add quotes.
57481       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
57482       ;;
57483     esac |
57484     sort
57485 ) |
57486   sed '
57487      /^ac_cv_env_/b end
57488      t clear
57489      :clear
57490      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
57491      t end
57492      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
57493      :end' >>confcache
57494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
57495   if test -w "$cache_file"; then
57496     test "x$cache_file" != "x/dev/null" &&
57497       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
57498 echo "$as_me: updating cache $cache_file" >&6;}
57499     cat confcache >$cache_file
57500   else
57501     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
57502 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
57503   fi
57504 fi
57505 rm -f confcache
57506
57507 test "x$prefix" = xNONE && prefix=$ac_default_prefix
57508 # Let make expand exec_prefix.
57509 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
57510
57511 DEFS=-DHAVE_CONFIG_H
57512
57513 ac_libobjs=
57514 ac_ltlibobjs=
57515 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
57516   # 1. Remove the extension, and $U if already installed.
57517   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
57518   ac_i=`echo "$ac_i" | sed "$ac_script"`
57519   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
57520   #    will be set to the directory where LIBOBJS objects are built.
57521   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
57522   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
57523 done
57524 LIBOBJS=$ac_libobjs
57525
57526 LTLIBOBJS=$ac_ltlibobjs
57527
57528
57529
57530 : ${CONFIG_STATUS=./config.status}
57531 ac_clean_files_save=$ac_clean_files
57532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
57533 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
57534 echo "$as_me: creating $CONFIG_STATUS" >&6;}
57535 cat >$CONFIG_STATUS <<_ACEOF
57536 #! $SHELL
57537 # Generated by $as_me.
57538 # Run this file to recreate the current configuration.
57539 # Compiler output produced by configure, useful for debugging
57540 # configure, is in config.log if it exists.
57541
57542 debug=false
57543 ac_cs_recheck=false
57544 ac_cs_silent=false
57545 SHELL=\${CONFIG_SHELL-$SHELL}
57546 _ACEOF
57547
57548 cat >>$CONFIG_STATUS <<\_ACEOF
57549 ## --------------------- ##
57550 ## M4sh Initialization.  ##
57551 ## --------------------- ##
57552
57553 # Be Bourne compatible
57554 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
57555   emulate sh
57556   NULLCMD=:
57557   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
57558   # is contrary to our usage.  Disable this feature.
57559   alias -g '${1+"$@"}'='"$@"'
57560   setopt NO_GLOB_SUBST
57561 else
57562   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
57563 fi
57564 BIN_SH=xpg4; export BIN_SH # for Tru64
57565 DUALCASE=1; export DUALCASE # for MKS sh
57566
57567
57568 # PATH needs CR
57569 # Avoid depending upon Character Ranges.
57570 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
57571 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
57572 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
57573 as_cr_digits='0123456789'
57574 as_cr_alnum=$as_cr_Letters$as_cr_digits
57575
57576 # The user is always right.
57577 if test "${PATH_SEPARATOR+set}" != set; then
57578   echo "#! /bin/sh" >conf$$.sh
57579   echo  "exit 0"   >>conf$$.sh
57580   chmod +x conf$$.sh
57581   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
57582     PATH_SEPARATOR=';'
57583   else
57584     PATH_SEPARATOR=:
57585   fi
57586   rm -f conf$$.sh
57587 fi
57588
57589 # Support unset when possible.
57590 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57591   as_unset=unset
57592 else
57593   as_unset=false
57594 fi
57595
57596
57597 # IFS
57598 # We need space, tab and new line, in precisely that order.  Quoting is
57599 # there to prevent editors from complaining about space-tab.
57600 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
57601 # splitting by setting IFS to empty value.)
57602 as_nl='
57603 '
57604 IFS=" ""        $as_nl"
57605
57606 # Find who we are.  Look in the path if we contain no directory separator.
57607 case $0 in
57608   *[\\/]* ) as_myself=$0 ;;
57609   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
57610 for as_dir in $PATH
57611 do
57612   IFS=$as_save_IFS
57613   test -z "$as_dir" && as_dir=.
57614   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
57615 done
57616 IFS=$as_save_IFS
57617
57618      ;;
57619 esac
57620 # We did not find ourselves, most probably we were run as `sh COMMAND'
57621 # in which case we are not to be found in the path.
57622 if test "x$as_myself" = x; then
57623   as_myself=$0
57624 fi
57625 if test ! -f "$as_myself"; then
57626   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57627   { (exit 1); exit 1; }
57628 fi
57629
57630 # Work around bugs in pre-3.0 UWIN ksh.
57631 for as_var in ENV MAIL MAILPATH
57632 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
57633 done
57634 PS1='$ '
57635 PS2='> '
57636 PS4='+ '
57637
57638 # NLS nuisances.
57639 for as_var in \
57640   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
57641   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
57642   LC_TELEPHONE LC_TIME
57643 do
57644   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
57645     eval $as_var=C; export $as_var
57646   else
57647     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
57648   fi
57649 done
57650
57651 # Required to use basename.
57652 if expr a : '\(a\)' >/dev/null 2>&1 &&
57653    test "X`expr 00001 : '.*\(...\)'`" = X001; then
57654   as_expr=expr
57655 else
57656   as_expr=false
57657 fi
57658
57659 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
57660   as_basename=basename
57661 else
57662   as_basename=false
57663 fi
57664
57665
57666 # Name of the executable.
57667 as_me=`$as_basename -- "$0" ||
57668 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
57669          X"$0" : 'X\(//\)$' \| \
57670          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
57671 echo X/"$0" |
57672     sed '/^.*\/\([^/][^/]*\)\/*$/{
57673             s//\1/
57674             q
57675           }
57676           /^X\/\(\/\/\)$/{
57677             s//\1/
57678             q
57679           }
57680           /^X\/\(\/\).*/{
57681             s//\1/
57682             q
57683           }
57684           s/.*/./; q'`
57685
57686 # CDPATH.
57687 $as_unset CDPATH
57688
57689
57690
57691   as_lineno_1=$LINENO
57692   as_lineno_2=$LINENO
57693   test "x$as_lineno_1" != "x$as_lineno_2" &&
57694   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
57695
57696   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
57697   # uniformly replaced by the line number.  The first 'sed' inserts a
57698   # line-number line after each line using $LINENO; the second 'sed'
57699   # does the real work.  The second script uses 'N' to pair each
57700   # line-number line with the line containing $LINENO, and appends
57701   # trailing '-' during substitution so that $LINENO is not a special
57702   # case at line end.
57703   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
57704   # scripts with optimization help from Paolo Bonzini.  Blame Lee
57705   # E. McMahon (1931-1989) for sed's syntax.  :-)
57706   sed -n '
57707     p
57708     /[$]LINENO/=
57709   ' <$as_myself |
57710     sed '
57711       s/[$]LINENO.*/&-/
57712       t lineno
57713       b
57714       :lineno
57715       N
57716       :loop
57717       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
57718       t loop
57719       s/-\n.*//
57720     ' >$as_me.lineno &&
57721   chmod +x "$as_me.lineno" ||
57722     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
57723    { (exit 1); exit 1; }; }
57724
57725   # Don't try to exec as it changes $[0], causing all sort of problems
57726   # (the dirname of $[0] is not the place where we might find the
57727   # original and so on.  Autoconf is especially sensitive to this).
57728   . "./$as_me.lineno"
57729   # Exit status is that of the last command.
57730   exit
57731 }
57732
57733
57734 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
57735   as_dirname=dirname
57736 else
57737   as_dirname=false
57738 fi
57739
57740 ECHO_C= ECHO_N= ECHO_T=
57741 case `echo -n x` in
57742 -n*)
57743   case `echo 'x\c'` in
57744   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
57745   *)   ECHO_C='\c';;
57746   esac;;
57747 *)
57748   ECHO_N='-n';;
57749 esac
57750
57751 if expr a : '\(a\)' >/dev/null 2>&1 &&
57752    test "X`expr 00001 : '.*\(...\)'`" = X001; then
57753   as_expr=expr
57754 else
57755   as_expr=false
57756 fi
57757
57758 rm -f conf$$ conf$$.exe conf$$.file
57759 if test -d conf$$.dir; then
57760   rm -f conf$$.dir/conf$$.file
57761 else
57762   rm -f conf$$.dir
57763   mkdir conf$$.dir
57764 fi
57765 echo >conf$$.file
57766 if ln -s conf$$.file conf$$ 2>/dev/null; then
57767   as_ln_s='ln -s'
57768   # ... but there are two gotchas:
57769   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
57770   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
57771   # In both cases, we have to default to `cp -p'.
57772   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
57773     as_ln_s='cp -p'
57774 elif ln conf$$.file conf$$ 2>/dev/null; then
57775   as_ln_s=ln
57776 else
57777   as_ln_s='cp -p'
57778 fi
57779 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
57780 rmdir conf$$.dir 2>/dev/null
57781
57782 if mkdir -p . 2>/dev/null; then
57783   as_mkdir_p=:
57784 else
57785   test -d ./-p && rmdir ./-p
57786   as_mkdir_p=false
57787 fi
57788
57789 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
57790 # systems may use methods other than mode bits to determine executability.
57791 cat >conf$$.file <<_ASEOF
57792 #! /bin/sh
57793 exit 0
57794 _ASEOF
57795 chmod +x conf$$.file
57796 if test -x conf$$.file >/dev/null 2>&1; then
57797   as_executable_p="test -x"
57798 else
57799   as_executable_p=:
57800 fi
57801 rm -f conf$$.file
57802
57803 # Sed expression to map a string onto a valid CPP name.
57804 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
57805
57806 # Sed expression to map a string onto a valid variable name.
57807 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
57808
57809
57810 exec 6>&1
57811
57812 # Save the log message, to keep $[0] and so on meaningful, and to
57813 # report actual input values of CONFIG_FILES etc. instead of their
57814 # values after options handling.
57815 ac_log="
57816 This file was extended by wxWidgets $as_me 2.9.0, which was
57817 generated by GNU Autoconf 2.60.  Invocation command line was
57818
57819   CONFIG_FILES    = $CONFIG_FILES
57820   CONFIG_HEADERS  = $CONFIG_HEADERS
57821   CONFIG_LINKS    = $CONFIG_LINKS
57822   CONFIG_COMMANDS = $CONFIG_COMMANDS
57823   $ $0 $@
57824
57825 on `(hostname || uname -n) 2>/dev/null | sed 1q`
57826 "
57827
57828 _ACEOF
57829
57830 cat >>$CONFIG_STATUS <<_ACEOF
57831 # Files that config.status was made for.
57832 config_files="$ac_config_files"
57833 config_headers="$ac_config_headers"
57834 config_commands="$ac_config_commands"
57835
57836 _ACEOF
57837
57838 cat >>$CONFIG_STATUS <<\_ACEOF
57839 ac_cs_usage="\
57840 \`$as_me' instantiates files from templates according to the
57841 current configuration.
57842
57843 Usage: $0 [OPTIONS] [FILE]...
57844
57845   -h, --help       print this help, then exit
57846   -V, --version    print version number, then exit
57847   -q, --quiet      do not print progress messages
57848   -d, --debug      don't remove temporary files
57849       --recheck    update $as_me by reconfiguring in the same conditions
57850   --file=FILE[:TEMPLATE]
57851                    instantiate the configuration file FILE
57852   --header=FILE[:TEMPLATE]
57853                    instantiate the configuration header FILE
57854
57855 Configuration files:
57856 $config_files
57857
57858 Configuration headers:
57859 $config_headers
57860
57861 Configuration commands:
57862 $config_commands
57863
57864 Report bugs to <bug-autoconf@gnu.org>."
57865
57866 _ACEOF
57867 cat >>$CONFIG_STATUS <<_ACEOF
57868 ac_cs_version="\\
57869 wxWidgets config.status 2.9.0
57870 configured by $0, generated by GNU Autoconf 2.60,
57871   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
57872
57873 Copyright (C) 2006 Free Software Foundation, Inc.
57874 This config.status script is free software; the Free Software Foundation
57875 gives unlimited permission to copy, distribute and modify it."
57876
57877 ac_pwd='$ac_pwd'
57878 srcdir='$srcdir'
57879 INSTALL='$INSTALL'
57880 _ACEOF
57881
57882 cat >>$CONFIG_STATUS <<\_ACEOF
57883 # If no file are specified by the user, then we need to provide default
57884 # value.  By we need to know if files were specified by the user.
57885 ac_need_defaults=:
57886 while test $# != 0
57887 do
57888   case $1 in
57889   --*=*)
57890     ac_option=`expr "X$1" : 'X\([^=]*\)='`
57891     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
57892     ac_shift=:
57893     ;;
57894   *)
57895     ac_option=$1
57896     ac_optarg=$2
57897     ac_shift=shift
57898     ;;
57899   esac
57900
57901   case $ac_option in
57902   # Handling of the options.
57903   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
57904     ac_cs_recheck=: ;;
57905   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
57906     echo "$ac_cs_version"; exit ;;
57907   --debug | --debu | --deb | --de | --d | -d )
57908     debug=: ;;
57909   --file | --fil | --fi | --f )
57910     $ac_shift
57911     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
57912     ac_need_defaults=false;;
57913   --header | --heade | --head | --hea )
57914     $ac_shift
57915     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
57916     ac_need_defaults=false;;
57917   --he | --h)
57918     # Conflict between --help and --header
57919     { echo "$as_me: error: ambiguous option: $1
57920 Try \`$0 --help' for more information." >&2
57921    { (exit 1); exit 1; }; };;
57922   --help | --hel | -h )
57923     echo "$ac_cs_usage"; exit ;;
57924   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
57925   | -silent | --silent | --silen | --sile | --sil | --si | --s)
57926     ac_cs_silent=: ;;
57927
57928   # This is an error.
57929   -*) { echo "$as_me: error: unrecognized option: $1
57930 Try \`$0 --help' for more information." >&2
57931    { (exit 1); exit 1; }; } ;;
57932
57933   *) ac_config_targets="$ac_config_targets $1"
57934      ac_need_defaults=false ;;
57935
57936   esac
57937   shift
57938 done
57939
57940 ac_configure_extra_args=
57941
57942 if $ac_cs_silent; then
57943   exec 6>/dev/null
57944   ac_configure_extra_args="$ac_configure_extra_args --silent"
57945 fi
57946
57947 _ACEOF
57948 cat >>$CONFIG_STATUS <<_ACEOF
57949 if \$ac_cs_recheck; then
57950   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
57951   CONFIG_SHELL=$SHELL
57952   export CONFIG_SHELL
57953   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
57954 fi
57955
57956 _ACEOF
57957 cat >>$CONFIG_STATUS <<\_ACEOF
57958 exec 5>>config.log
57959 {
57960   echo
57961   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
57962 ## Running $as_me. ##
57963 _ASBOX
57964   echo "$ac_log"
57965 } >&5
57966
57967 _ACEOF
57968 cat >>$CONFIG_STATUS <<_ACEOF
57969 #
57970 # INIT-COMMANDS
57971 #
57972
57973             CPP="$CPP"
57974             infile="$srcdir/include/wx/msw/genrcdefs.h"
57975             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
57976
57977
57978  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
57979  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
57980  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
57981                      LN_S="${LN_S}"
57982
57983
57984 _ACEOF
57985
57986 cat >>$CONFIG_STATUS <<\_ACEOF
57987
57988 # Handling of arguments.
57989 for ac_config_target in $ac_config_targets
57990 do
57991   case $ac_config_target in
57992     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
57993     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
57994     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
57995     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
57996     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
57997     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
57998     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
57999     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
58000
58001   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
58002 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
58003    { (exit 1); exit 1; }; };;
58004   esac
58005 done
58006
58007
58008 # If the user did not use the arguments to specify the items to instantiate,
58009 # then the envvar interface is used.  Set only those that are not.
58010 # We use the long form for the default assignment because of an extremely
58011 # bizarre bug on SunOS 4.1.3.
58012 if $ac_need_defaults; then
58013   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
58014   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
58015   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
58016 fi
58017
58018 # Have a temporary directory for convenience.  Make it in the build tree
58019 # simply because there is no reason against having it here, and in addition,
58020 # creating and moving files from /tmp can sometimes cause problems.
58021 # Hook for its removal unless debugging.
58022 # Note that there is a small window in which the directory will not be cleaned:
58023 # after its creation but before its name has been assigned to `$tmp'.
58024 $debug ||
58025 {
58026   tmp=
58027   trap 'exit_status=$?
58028   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
58029 ' 0
58030   trap '{ (exit 1); exit 1; }' 1 2 13 15
58031 }
58032 # Create a (secure) tmp directory for tmp files.
58033
58034 {
58035   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
58036   test -n "$tmp" && test -d "$tmp"
58037 }  ||
58038 {
58039   tmp=./conf$$-$RANDOM
58040   (umask 077 && mkdir "$tmp")
58041 } ||
58042 {
58043    echo "$me: cannot create a temporary directory in ." >&2
58044    { (exit 1); exit 1; }
58045 }
58046
58047 #
58048 # Set up the sed scripts for CONFIG_FILES section.
58049 #
58050
58051 # No need to generate the scripts if there are no CONFIG_FILES.
58052 # This happens for instance when ./config.status config.h
58053 if test -n "$CONFIG_FILES"; then
58054
58055 _ACEOF
58056
58057
58058
58059 ac_delim='%!_!# '
58060 for ac_last_try in false false false false false :; do
58061   cat >conf$$subs.sed <<_ACEOF
58062 SHELL!$SHELL$ac_delim
58063 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
58064 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
58065 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
58066 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
58067 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
58068 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
58069 exec_prefix!$exec_prefix$ac_delim
58070 prefix!$prefix$ac_delim
58071 program_transform_name!$program_transform_name$ac_delim
58072 bindir!$bindir$ac_delim
58073 sbindir!$sbindir$ac_delim
58074 libexecdir!$libexecdir$ac_delim
58075 datarootdir!$datarootdir$ac_delim
58076 datadir!$datadir$ac_delim
58077 sysconfdir!$sysconfdir$ac_delim
58078 sharedstatedir!$sharedstatedir$ac_delim
58079 localstatedir!$localstatedir$ac_delim
58080 includedir!$includedir$ac_delim
58081 oldincludedir!$oldincludedir$ac_delim
58082 docdir!$docdir$ac_delim
58083 infodir!$infodir$ac_delim
58084 htmldir!$htmldir$ac_delim
58085 dvidir!$dvidir$ac_delim
58086 pdfdir!$pdfdir$ac_delim
58087 psdir!$psdir$ac_delim
58088 libdir!$libdir$ac_delim
58089 localedir!$localedir$ac_delim
58090 mandir!$mandir$ac_delim
58091 DEFS!$DEFS$ac_delim
58092 ECHO_C!$ECHO_C$ac_delim
58093 ECHO_N!$ECHO_N$ac_delim
58094 ECHO_T!$ECHO_T$ac_delim
58095 LIBS!$LIBS$ac_delim
58096 build_alias!$build_alias$ac_delim
58097 host_alias!$host_alias$ac_delim
58098 target_alias!$target_alias$ac_delim
58099 build!$build$ac_delim
58100 build_cpu!$build_cpu$ac_delim
58101 build_vendor!$build_vendor$ac_delim
58102 build_os!$build_os$ac_delim
58103 host!$host$ac_delim
58104 host_cpu!$host_cpu$ac_delim
58105 host_vendor!$host_vendor$ac_delim
58106 host_os!$host_os$ac_delim
58107 target!$target$ac_delim
58108 target_cpu!$target_cpu$ac_delim
58109 target_vendor!$target_vendor$ac_delim
58110 target_os!$target_os$ac_delim
58111 wx_top_builddir!$wx_top_builddir$ac_delim
58112 CC!$CC$ac_delim
58113 CFLAGS!$CFLAGS$ac_delim
58114 LDFLAGS!$LDFLAGS$ac_delim
58115 CPPFLAGS!$CPPFLAGS$ac_delim
58116 ac_ct_CC!$ac_ct_CC$ac_delim
58117 EXEEXT!$EXEEXT$ac_delim
58118 OBJEXT!$OBJEXT$ac_delim
58119 CPP!$CPP$ac_delim
58120 GREP!$GREP$ac_delim
58121 EGREP!$EGREP$ac_delim
58122 CXX!$CXX$ac_delim
58123 CXXFLAGS!$CXXFLAGS$ac_delim
58124 ac_ct_CXX!$ac_ct_CXX$ac_delim
58125 RANLIB!$RANLIB$ac_delim
58126 AR!$AR$ac_delim
58127 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
58128 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
58129 INSTALL_DATA!$INSTALL_DATA$ac_delim
58130 STRIP!$STRIP$ac_delim
58131 WINDRES!$WINDRES$ac_delim
58132 DLLTOOL!$DLLTOOL$ac_delim
58133 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
58134 LN_S!$LN_S$ac_delim
58135 CXXCPP!$CXXCPP$ac_delim
58136 subdirs!$subdirs$ac_delim
58137 PKG_CONFIG!$PKG_CONFIG$ac_delim
58138 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
58139 GTK_LIBS!$GTK_LIBS$ac_delim
58140 GTK_CONFIG!$GTK_CONFIG$ac_delim
58141 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
58142 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
58143 XMKMF!$XMKMF$ac_delim
58144 X_CFLAGS!$X_CFLAGS$ac_delim
58145 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
58146 X_LIBS!$X_LIBS$ac_delim
58147 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
58148 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
58149 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
58150 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
58151 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
58152 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
58153 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
58154 REZ!$REZ$ac_delim
58155 DEREZ!$DEREZ$ac_delim
58156 SETFILE!$SETFILE$ac_delim
58157 LIBICONV!$LIBICONV$ac_delim
58158 EXTRALIBS_ESD!$EXTRALIBS_ESD$ac_delim
58159 _ACEOF
58160
58161   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
58162     break
58163   elif $ac_last_try; then
58164     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
58165 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
58166    { (exit 1); exit 1; }; }
58167   else
58168     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
58169   fi
58170 done
58171
58172 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
58173 if test -n "$ac_eof"; then
58174   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
58175   ac_eof=`expr $ac_eof + 1`
58176 fi
58177
58178 cat >>$CONFIG_STATUS <<_ACEOF
58179 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
58180 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
58181 _ACEOF
58182 sed '
58183 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
58184 s/^/s,@/; s/!/@,|#_!!_#|/
58185 :n
58186 t n
58187 s/'"$ac_delim"'$/,g/; t
58188 s/$/\\/; p
58189 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
58190 ' >>$CONFIG_STATUS <conf$$subs.sed
58191 rm -f conf$$subs.sed
58192 cat >>$CONFIG_STATUS <<_ACEOF
58193 CEOF$ac_eof
58194 _ACEOF
58195
58196
58197 ac_delim='%!_!# '
58198 for ac_last_try in false false false false false :; do
58199   cat >conf$$subs.sed <<_ACEOF
58200 SDL_CONFIG!$SDL_CONFIG$ac_delim
58201 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
58202 SDL_LIBS!$SDL_LIBS$ac_delim
58203 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
58204 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
58205 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
58206 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
58207 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
58208 HILDON_LIBS!$HILDON_LIBS$ac_delim
58209 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
58210 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
58211 GST_CFLAGS!$GST_CFLAGS$ac_delim
58212 GST_LIBS!$GST_LIBS$ac_delim
58213 CORE_BASE_LIBS!$CORE_BASE_LIBS$ac_delim
58214 CORE_GUI_LIBS!$CORE_GUI_LIBS$ac_delim
58215 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
58216 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
58217 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
58218 wxUSE_ODBC!$wxUSE_ODBC$ac_delim
58219 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
58220 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
58221 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
58222 VENDOR!$VENDOR$ac_delim
58223 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
58224 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
58225 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
58226 WXUNIV!$WXUNIV$ac_delim
58227 MONOLITHIC!$MONOLITHIC$ac_delim
58228 USE_PLUGINS!$USE_PLUGINS$ac_delim
58229 EXTRALIBS!$EXTRALIBS$ac_delim
58230 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
58231 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
58232 EXTRALIBS_ODBC!$EXTRALIBS_ODBC$ac_delim
58233 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
58234 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
58235 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
58236 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
58237 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
58238 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
58239 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
58240 UNICODE!$UNICODE$ac_delim
58241 BUILD!$BUILD$ac_delim
58242 DEBUG_INFO!$DEBUG_INFO$ac_delim
58243 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
58244 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
58245 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
58246 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
58247 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
58248 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
58249 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
58250 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
58251 SET_MAKE!$SET_MAKE$ac_delim
58252 MAKE_SET!$MAKE_SET$ac_delim
58253 AROPTIONS!$AROPTIONS$ac_delim
58254 NM!$NM$ac_delim
58255 INSTALL_DIR!$INSTALL_DIR$ac_delim
58256 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
58257 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
58258 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
58259 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
58260 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
58261 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
58262 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
58263 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
58264 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
58265 SO_SUFFIX!$SO_SUFFIX$ac_delim
58266 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
58267 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
58268 LIBPREFIX!$LIBPREFIX$ac_delim
58269 LIBEXT!$LIBEXT$ac_delim
58270 DLLPREFIX!$DLLPREFIX$ac_delim
58271 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
58272 dlldir!$dlldir$ac_delim
58273 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
58274 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
58275 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
58276 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
58277 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
58278 PIC_FLAG!$PIC_FLAG$ac_delim
58279 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
58280 USE_SOVERSION!$USE_SOVERSION$ac_delim
58281 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
58282 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
58283 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
58284 USE_MACVERSION!$USE_MACVERSION$ac_delim
58285 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
58286 SONAME_FLAG!$SONAME_FLAG$ac_delim
58287 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
58288 BK_DEPS!$BK_DEPS$ac_delim
58289 GCC_PCH!$GCC_PCH$ac_delim
58290 ICC_PCH!$ICC_PCH$ac_delim
58291 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
58292 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
58293 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
58294 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
58295 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
58296 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
58297 _ACEOF
58298
58299   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
58300     break
58301   elif $ac_last_try; then
58302     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
58303 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
58304    { (exit 1); exit 1; }; }
58305   else
58306     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
58307   fi
58308 done
58309
58310 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
58311 if test -n "$ac_eof"; then
58312   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
58313   ac_eof=`expr $ac_eof + 1`
58314 fi
58315
58316 cat >>$CONFIG_STATUS <<_ACEOF
58317 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
58318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
58319 _ACEOF
58320 sed '
58321 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
58322 s/^/s,@/; s/!/@,|#_!!_#|/
58323 :n
58324 t n
58325 s/'"$ac_delim"'$/,g/; t
58326 s/$/\\/; p
58327 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
58328 ' >>$CONFIG_STATUS <conf$$subs.sed
58329 rm -f conf$$subs.sed
58330 cat >>$CONFIG_STATUS <<_ACEOF
58331 CEOF$ac_eof
58332 _ACEOF
58333
58334
58335 ac_delim='%!_!# '
58336 for ac_last_try in false false false false false :; do
58337   cat >conf$$subs.sed <<_ACEOF
58338 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
58339 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
58340 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
58341 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
58342 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
58343 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
58344 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
58345 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
58346 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
58347 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
58348 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
58349 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
58350 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
58351 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
58352 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
58353 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
58354 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
58355 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1$ac_delim
58356 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
58357 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1$ac_delim
58358 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
58359 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
58360 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
58361 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
58362 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
58363 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
58364 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
58365 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1$ac_delim
58366 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
58367 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1$ac_delim
58368 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
58369 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
58370 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
58371 COND_MONOLITHIC_0_USE_ODBC_1!$COND_MONOLITHIC_0_USE_ODBC_1$ac_delim
58372 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
58373 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
58374 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
58375 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
58376 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
58377 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
58378 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
58379 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
58380 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
58381 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
58382 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
58383 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
58384 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
58385 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
58386 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
58387 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
58388 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
58389 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
58390 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
58391 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
58392 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
58393 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
58394 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
58395 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
58396 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
58397 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
58398 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
58399 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
58400 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
58401 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
58402 COND_SHARED_0!$COND_SHARED_0$ac_delim
58403 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
58404 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
58405 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
58406 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
58407 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
58408 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
58409 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
58410 COND_SHARED_0_USE_XRC_1!$COND_SHARED_0_USE_XRC_1$ac_delim
58411 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
58412 COND_SHARED_0_WXUSE_ODBC_BUILTIN!$COND_SHARED_0_WXUSE_ODBC_BUILTIN$ac_delim
58413 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
58414 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
58415 COND_SHARED_1!$COND_SHARED_1$ac_delim
58416 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
58417 COND_SHARED_1_USE_XRC_1!$COND_SHARED_1_USE_XRC_1$ac_delim
58418 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
58419 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
58420 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
58421 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
58422 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
58423 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
58424 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
58425 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
58426 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
58427 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
58428 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
58429 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
58430 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
58431 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
58432 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
58433 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
58434 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
58435 _ACEOF
58436
58437   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
58438     break
58439   elif $ac_last_try; then
58440     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
58441 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
58442    { (exit 1); exit 1; }; }
58443   else
58444     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
58445   fi
58446 done
58447
58448 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
58449 if test -n "$ac_eof"; then
58450   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
58451   ac_eof=`expr $ac_eof + 1`
58452 fi
58453
58454 cat >>$CONFIG_STATUS <<_ACEOF
58455 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
58456 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
58457 _ACEOF
58458 sed '
58459 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
58460 s/^/s,@/; s/!/@,|#_!!_#|/
58461 :n
58462 t n
58463 s/'"$ac_delim"'$/,g/; t
58464 s/$/\\/; p
58465 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
58466 ' >>$CONFIG_STATUS <conf$$subs.sed
58467 rm -f conf$$subs.sed
58468 cat >>$CONFIG_STATUS <<_ACEOF
58469 CEOF$ac_eof
58470 _ACEOF
58471
58472
58473 ac_delim='%!_!# '
58474 for ac_last_try in false false false false false :; do
58475   cat >conf$$subs.sed <<_ACEOF
58476 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
58477 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
58478 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
58479 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
58480 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
58481 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
58482 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
58483 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
58484 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
58485 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
58486 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
58487 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
58488 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
58489 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
58490 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
58491 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
58492 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
58493 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
58494 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
58495 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
58496 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
58497 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
58498 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
58499 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
58500 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
58501 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
58502 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
58503 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
58504 COND_USE_ODBC_1!$COND_USE_ODBC_1$ac_delim
58505 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
58506 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
58507 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
58508 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
58509 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
58510 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
58511 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
58512 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
58513 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
58514 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
58515 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
58516 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
58517 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
58518 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
58519 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
58520 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
58521 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
58522 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
58523 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
58524 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
58525 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
58526 COND_WXUSE_ODBC_BUILTIN!$COND_WXUSE_ODBC_BUILTIN$ac_delim
58527 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
58528 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
58529 SHARED!$SHARED$ac_delim
58530 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
58531 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
58532 USE_GUI!$USE_GUI$ac_delim
58533 AFMINSTALL!$AFMINSTALL$ac_delim
58534 WIN32INSTALL!$WIN32INSTALL$ac_delim
58535 TOOLKIT!$TOOLKIT$ac_delim
58536 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
58537 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
58538 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
58539 cross_compiling!$cross_compiling$ac_delim
58540 WIDGET_SET!$WIDGET_SET$ac_delim
58541 WX_RELEASE!$WX_RELEASE$ac_delim
58542 WX_VERSION!$WX_VERSION$ac_delim
58543 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
58544 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
58545 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
58546 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
58547 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
58548 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
58549 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
58550 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
58551 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
58552 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
58553 EXE_LINKER!$EXE_LINKER$ac_delim
58554 GUIDIST!$GUIDIST$ac_delim
58555 DISTDIR!$DISTDIR$ac_delim
58556 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
58557 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
58558 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
58559 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
58560 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
58561 RESCOMP!$RESCOMP$ac_delim
58562 RESFLAGS!$RESFLAGS$ac_delim
58563 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
58564 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
58565 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
58566 LIBWXMACRES!$LIBWXMACRES$ac_delim
58567 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
58568 MACSETFILE!$MACSETFILE$ac_delim
58569 GCC!$GCC$ac_delim
58570 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
58571 LIBOBJS!$LIBOBJS$ac_delim
58572 LTLIBOBJS!$LTLIBOBJS$ac_delim
58573 _ACEOF
58574
58575   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
58576     break
58577   elif $ac_last_try; then
58578     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
58579 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
58580    { (exit 1); exit 1; }; }
58581   else
58582     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
58583   fi
58584 done
58585
58586 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
58587 if test -n "$ac_eof"; then
58588   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
58589   ac_eof=`expr $ac_eof + 1`
58590 fi
58591
58592 cat >>$CONFIG_STATUS <<_ACEOF
58593 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
58594 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
58595 _ACEOF
58596 sed '
58597 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
58598 s/^/s,@/; s/!/@,|#_!!_#|/
58599 :n
58600 t n
58601 s/'"$ac_delim"'$/,g/; t
58602 s/$/\\/; p
58603 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
58604 ' >>$CONFIG_STATUS <conf$$subs.sed
58605 rm -f conf$$subs.sed
58606 cat >>$CONFIG_STATUS <<_ACEOF
58607 CEOF$ac_eof
58608 _ACEOF
58609
58610
58611 # VPATH may cause trouble with some makes, so we remove $(srcdir),
58612 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
58613 # trailing colons and then remove the whole line if VPATH becomes empty
58614 # (actually we leave an empty line to preserve line numbers).
58615 if test "x$srcdir" = x.; then
58616   ac_vpsub='/^[  ]*VPATH[        ]*=/{
58617 s/:*\$(srcdir):*/:/
58618 s/:*\${srcdir}:*/:/
58619 s/:*@srcdir@:*/:/
58620 s/^\([^=]*=[     ]*\):*/\1/
58621 s/:*$//
58622 s/^[^=]*=[       ]*$//
58623 }'
58624 fi
58625
58626 cat >>$CONFIG_STATUS <<\_ACEOF
58627 fi # test -n "$CONFIG_FILES"
58628
58629
58630 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
58631 do
58632   case $ac_tag in
58633   :[FHLC]) ac_mode=$ac_tag; continue;;
58634   esac
58635   case $ac_mode$ac_tag in
58636   :[FHL]*:*);;
58637   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
58638 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
58639    { (exit 1); exit 1; }; };;
58640   :[FH]-) ac_tag=-:-;;
58641   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
58642   esac
58643   ac_save_IFS=$IFS
58644   IFS=:
58645   set x $ac_tag
58646   IFS=$ac_save_IFS
58647   shift
58648   ac_file=$1
58649   shift
58650
58651   case $ac_mode in
58652   :L) ac_source=$1;;
58653   :[FH])
58654     ac_file_inputs=
58655     for ac_f
58656     do
58657       case $ac_f in
58658       -) ac_f="$tmp/stdin";;
58659       *) # Look for the file first in the build tree, then in the source tree
58660          # (if the path is not absolute).  The absolute path cannot be DOS-style,
58661          # because $ac_f cannot contain `:'.
58662          test -f "$ac_f" ||
58663            case $ac_f in
58664            [\\/$]*) false;;
58665            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
58666            esac ||
58667            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
58668 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
58669    { (exit 1); exit 1; }; };;
58670       esac
58671       ac_file_inputs="$ac_file_inputs $ac_f"
58672     done
58673
58674     # Let's still pretend it is `configure' which instantiates (i.e., don't
58675     # use $as_me), people would be surprised to read:
58676     #    /* config.h.  Generated by config.status.  */
58677     configure_input="Generated from "`IFS=:
58678           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
58679     if test x"$ac_file" != x-; then
58680       configure_input="$ac_file.  $configure_input"
58681       { echo "$as_me:$LINENO: creating $ac_file" >&5
58682 echo "$as_me: creating $ac_file" >&6;}
58683     fi
58684
58685     case $ac_tag in
58686     *:-:* | *:-) cat >"$tmp/stdin";;
58687     esac
58688     ;;
58689   esac
58690
58691   ac_dir=`$as_dirname -- "$ac_file" ||
58692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
58693          X"$ac_file" : 'X\(//\)[^/]' \| \
58694          X"$ac_file" : 'X\(//\)$' \| \
58695          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
58696 echo X"$ac_file" |
58697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
58698             s//\1/
58699             q
58700           }
58701           /^X\(\/\/\)[^/].*/{
58702             s//\1/
58703             q
58704           }
58705           /^X\(\/\/\)$/{
58706             s//\1/
58707             q
58708           }
58709           /^X\(\/\).*/{
58710             s//\1/
58711             q
58712           }
58713           s/.*/./; q'`
58714   { as_dir="$ac_dir"
58715   case $as_dir in #(
58716   -*) as_dir=./$as_dir;;
58717   esac
58718   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
58719     as_dirs=
58720     while :; do
58721       case $as_dir in #(
58722       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
58723       *) as_qdir=$as_dir;;
58724       esac
58725       as_dirs="'$as_qdir' $as_dirs"
58726       as_dir=`$as_dirname -- "$as_dir" ||
58727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
58728          X"$as_dir" : 'X\(//\)[^/]' \| \
58729          X"$as_dir" : 'X\(//\)$' \| \
58730          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
58731 echo X"$as_dir" |
58732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
58733             s//\1/
58734             q
58735           }
58736           /^X\(\/\/\)[^/].*/{
58737             s//\1/
58738             q
58739           }
58740           /^X\(\/\/\)$/{
58741             s//\1/
58742             q
58743           }
58744           /^X\(\/\).*/{
58745             s//\1/
58746             q
58747           }
58748           s/.*/./; q'`
58749       test -d "$as_dir" && break
58750     done
58751     test -z "$as_dirs" || eval "mkdir $as_dirs"
58752   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
58753 echo "$as_me: error: cannot create directory $as_dir" >&2;}
58754    { (exit 1); exit 1; }; }; }
58755   ac_builddir=.
58756
58757 case "$ac_dir" in
58758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
58759 *)
58760   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
58761   # A ".." for each directory in $ac_dir_suffix.
58762   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
58763   case $ac_top_builddir_sub in
58764   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
58765   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
58766   esac ;;
58767 esac
58768 ac_abs_top_builddir=$ac_pwd
58769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
58770 # for backward compatibility:
58771 ac_top_builddir=$ac_top_build_prefix
58772
58773 case $srcdir in
58774   .)  # We are building in place.
58775     ac_srcdir=.
58776     ac_top_srcdir=$ac_top_builddir_sub
58777     ac_abs_top_srcdir=$ac_pwd ;;
58778   [\\/]* | ?:[\\/]* )  # Absolute name.
58779     ac_srcdir=$srcdir$ac_dir_suffix;
58780     ac_top_srcdir=$srcdir
58781     ac_abs_top_srcdir=$srcdir ;;
58782   *) # Relative name.
58783     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
58784     ac_top_srcdir=$ac_top_build_prefix$srcdir
58785     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
58786 esac
58787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
58788
58789
58790   case $ac_mode in
58791   :F)
58792   #
58793   # CONFIG_FILE
58794   #
58795
58796   case $INSTALL in
58797   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
58798   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
58799   esac
58800 _ACEOF
58801
58802 cat >>$CONFIG_STATUS <<\_ACEOF
58803 # If the template does not know about datarootdir, expand it.
58804 # FIXME: This hack should be removed a few years after 2.60.
58805 ac_datarootdir_hack=; ac_datarootdir_seen=
58806
58807 case `sed -n '/datarootdir/ {
58808   p
58809   q
58810 }
58811 /@datadir@/p
58812 /@docdir@/p
58813 /@infodir@/p
58814 /@localedir@/p
58815 /@mandir@/p
58816 ' $ac_file_inputs` in
58817 *datarootdir*) ac_datarootdir_seen=yes;;
58818 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
58819   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
58820 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
58821 _ACEOF
58822 cat >>$CONFIG_STATUS <<_ACEOF
58823   ac_datarootdir_hack='
58824   s&@datadir@&$datadir&g
58825   s&@docdir@&$docdir&g
58826   s&@infodir@&$infodir&g
58827   s&@localedir@&$localedir&g
58828   s&@mandir@&$mandir&g
58829     s&\\\${datarootdir}&$datarootdir&g' ;;
58830 esac
58831 _ACEOF
58832
58833 # Neutralize VPATH when `$srcdir' = `.'.
58834 # Shell code in configure.ac might set extrasub.
58835 # FIXME: do we really want to maintain this feature?
58836 cat >>$CONFIG_STATUS <<_ACEOF
58837   sed "$ac_vpsub
58838 $extrasub
58839 _ACEOF
58840 cat >>$CONFIG_STATUS <<\_ACEOF
58841 :t
58842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
58843 s&@configure_input@&$configure_input&;t t
58844 s&@top_builddir@&$ac_top_builddir_sub&;t t
58845 s&@srcdir@&$ac_srcdir&;t t
58846 s&@abs_srcdir@&$ac_abs_srcdir&;t t
58847 s&@top_srcdir@&$ac_top_srcdir&;t t
58848 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
58849 s&@builddir@&$ac_builddir&;t t
58850 s&@abs_builddir@&$ac_abs_builddir&;t t
58851 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
58852 s&@INSTALL@&$ac_INSTALL&;t t
58853 $ac_datarootdir_hack
58854 " $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 's/|#_!!_#|//g' >$tmp/out
58855
58856 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
58857   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
58858   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
58859   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
58860 which seems to be undefined.  Please make sure it is defined." >&5
58861 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
58862 which seems to be undefined.  Please make sure it is defined." >&2;}
58863
58864   rm -f "$tmp/stdin"
58865   case $ac_file in
58866   -) cat "$tmp/out"; rm -f "$tmp/out";;
58867   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
58868   esac
58869  ;;
58870   :H)
58871   #
58872   # CONFIG_HEADER
58873   #
58874 _ACEOF
58875
58876 # Transform confdefs.h into a sed script `conftest.defines', that
58877 # substitutes the proper values into config.h.in to produce config.h.
58878 rm -f conftest.defines conftest.tail
58879 # First, append a space to every undef/define line, to ease matching.
58880 echo 's/$/ /' >conftest.defines
58881 # Then, protect against being on the right side of a sed subst, or in
58882 # an unquoted here document, in config.status.  If some macros were
58883 # called several times there might be several #defines for the same
58884 # symbol, which is useless.  But do not sort them, since the last
58885 # AC_DEFINE must be honored.
58886 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
58887 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
58888 # NAME is the cpp macro being defined, VALUE is the value it is being given.
58889 # PARAMS is the parameter list in the macro definition--in most cases, it's
58890 # just an empty string.
58891 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
58892 ac_dB='\\)[      (].*,\\1define\\2'
58893 ac_dC=' '
58894 ac_dD=' ,'
58895
58896 uniq confdefs.h |
58897   sed -n '
58898         t rset
58899         :rset
58900         s/^[     ]*#[    ]*define[       ][      ]*//
58901         t ok
58902         d
58903         :ok
58904         s/[\\&,]/\\&/g
58905         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
58906         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
58907   ' >>conftest.defines
58908
58909 # Remove the space that was appended to ease matching.
58910 # Then replace #undef with comments.  This is necessary, for
58911 # example, in the case of _POSIX_SOURCE, which is predefined and required
58912 # on some systems where configure will not decide to define it.
58913 # (The regexp can be short, since the line contains either #define or #undef.)
58914 echo 's/ $//
58915 s,^[     #]*u.*,/* & */,' >>conftest.defines
58916
58917 # Break up conftest.defines:
58918 ac_max_sed_lines=50
58919
58920 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
58921 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
58922 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
58923 # et cetera.
58924 ac_in='$ac_file_inputs'
58925 ac_out='"$tmp/out1"'
58926 ac_nxt='"$tmp/out2"'
58927
58928 while :
58929 do
58930   # Write a here document:
58931     cat >>$CONFIG_STATUS <<_ACEOF
58932     # First, check the format of the line:
58933     cat >"\$tmp/defines.sed" <<\\CEOF
58934 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
58935 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
58936 b
58937 :def
58938 _ACEOF
58939   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
58940   echo 'CEOF
58941     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
58942   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
58943   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
58944   grep . conftest.tail >/dev/null || break
58945   rm -f conftest.defines
58946   mv conftest.tail conftest.defines
58947 done
58948 rm -f conftest.defines conftest.tail
58949
58950 echo "ac_result=$ac_in" >>$CONFIG_STATUS
58951 cat >>$CONFIG_STATUS <<\_ACEOF
58952   if test x"$ac_file" != x-; then
58953     echo "/* $configure_input  */" >"$tmp/config.h"
58954     cat "$ac_result" >>"$tmp/config.h"
58955     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
58956       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
58957 echo "$as_me: $ac_file is unchanged" >&6;}
58958     else
58959       rm -f $ac_file
58960       mv "$tmp/config.h" $ac_file
58961     fi
58962   else
58963     echo "/* $configure_input  */"
58964     cat "$ac_result"
58965   fi
58966   rm -f "$tmp/out12"
58967  ;;
58968
58969   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
58970 echo "$as_me: executing $ac_file commands" >&6;}
58971  ;;
58972   esac
58973
58974
58975   case $ac_file$ac_mode in
58976     "rcdefs.h":C)
58977             mkdir -p $outdir &&
58978             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
58979          ;;
58980     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
58981     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
58982     "wx-config":C)  rm -f wx-config
58983                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
58984                     ;;
58985
58986   esac
58987 done # for ac_tag
58988
58989
58990 { (exit 0); exit 0; }
58991 _ACEOF
58992 chmod +x $CONFIG_STATUS
58993 ac_clean_files=$ac_clean_files_save
58994
58995
58996 # configure is writing to config.log, and then calls config.status.
58997 # config.status does its own redirection, appending to config.log.
58998 # Unfortunately, on DOS this fails, as config.log is still kept open
58999 # by configure, so config.status won't be able to write to it; its
59000 # output is simply discarded.  So we exec the FD to /dev/null,
59001 # effectively closing config.log, so it can be properly (re)opened and
59002 # appended to by config.status.  When coming back to configure, we
59003 # need to make the FD available again.
59004 if test "$no_create" != yes; then
59005   ac_cs_success=:
59006   ac_config_status_args=
59007   test "$silent" = yes &&
59008     ac_config_status_args="$ac_config_status_args --quiet"
59009   exec 5>/dev/null
59010   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
59011   exec 5>>config.log
59012   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
59013   # would make configure fail if this is the last instruction.
59014   $ac_cs_success || { (exit 1); exit 1; }
59015 fi
59016
59017 #
59018 # CONFIG_SUBDIRS section.
59019 #
59020 if test "$no_recursion" != yes; then
59021
59022   # Remove --cache-file and --srcdir arguments so they do not pile up.
59023   ac_sub_configure_args=
59024   ac_prev=
59025   eval "set x $ac_configure_args"
59026   shift
59027   for ac_arg
59028   do
59029     if test -n "$ac_prev"; then
59030       ac_prev=
59031       continue
59032     fi
59033     case $ac_arg in
59034     -cache-file | --cache-file | --cache-fil | --cache-fi \
59035     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
59036       ac_prev=cache_file ;;
59037     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
59038     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
59039     | --c=*)
59040       ;;
59041     --config-cache | -C)
59042       ;;
59043     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
59044       ac_prev=srcdir ;;
59045     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
59046       ;;
59047     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
59048       ac_prev=prefix ;;
59049     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
59050       ;;
59051     *)
59052       case $ac_arg in
59053       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
59054       esac
59055       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
59056     esac
59057   done
59058
59059   # Always prepend --prefix to ensure using the same prefix
59060   # in subdir configurations.
59061   ac_arg="--prefix=$prefix"
59062   case $ac_arg in
59063   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
59064   esac
59065   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
59066
59067   ac_popdir=`pwd`
59068   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
59069
59070     # Do not complain, so a configure script can configure whichever
59071     # parts of a large source tree are present.
59072     test -d "$srcdir/$ac_dir" || continue
59073
59074     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
59075     echo "$as_me:$LINENO: $ac_msg" >&5
59076     echo "$ac_msg" >&6
59077     { as_dir="$ac_dir"
59078   case $as_dir in #(
59079   -*) as_dir=./$as_dir;;
59080   esac
59081   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
59082     as_dirs=
59083     while :; do
59084       case $as_dir in #(
59085       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
59086       *) as_qdir=$as_dir;;
59087       esac
59088       as_dirs="'$as_qdir' $as_dirs"
59089       as_dir=`$as_dirname -- "$as_dir" ||
59090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
59091          X"$as_dir" : 'X\(//\)[^/]' \| \
59092          X"$as_dir" : 'X\(//\)$' \| \
59093          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
59094 echo X"$as_dir" |
59095     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
59096             s//\1/
59097             q
59098           }
59099           /^X\(\/\/\)[^/].*/{
59100             s//\1/
59101             q
59102           }
59103           /^X\(\/\/\)$/{
59104             s//\1/
59105             q
59106           }
59107           /^X\(\/\).*/{
59108             s//\1/
59109             q
59110           }
59111           s/.*/./; q'`
59112       test -d "$as_dir" && break
59113     done
59114     test -z "$as_dirs" || eval "mkdir $as_dirs"
59115   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
59116 echo "$as_me: error: cannot create directory $as_dir" >&2;}
59117    { (exit 1); exit 1; }; }; }
59118     ac_builddir=.
59119
59120 case "$ac_dir" in
59121 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
59122 *)
59123   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
59124   # A ".." for each directory in $ac_dir_suffix.
59125   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
59126   case $ac_top_builddir_sub in
59127   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
59128   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
59129   esac ;;
59130 esac
59131 ac_abs_top_builddir=$ac_pwd
59132 ac_abs_builddir=$ac_pwd$ac_dir_suffix
59133 # for backward compatibility:
59134 ac_top_builddir=$ac_top_build_prefix
59135
59136 case $srcdir in
59137   .)  # We are building in place.
59138     ac_srcdir=.
59139     ac_top_srcdir=$ac_top_builddir_sub
59140     ac_abs_top_srcdir=$ac_pwd ;;
59141   [\\/]* | ?:[\\/]* )  # Absolute name.
59142     ac_srcdir=$srcdir$ac_dir_suffix;
59143     ac_top_srcdir=$srcdir
59144     ac_abs_top_srcdir=$srcdir ;;
59145   *) # Relative name.
59146     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
59147     ac_top_srcdir=$ac_top_build_prefix$srcdir
59148     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
59149 esac
59150 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
59151
59152
59153     cd "$ac_dir"
59154
59155     # Check for guested configure; otherwise get Cygnus style configure.
59156     if test -f "$ac_srcdir/configure.gnu"; then
59157       ac_sub_configure=$ac_srcdir/configure.gnu
59158     elif test -f "$ac_srcdir/configure"; then
59159       ac_sub_configure=$ac_srcdir/configure
59160     elif test -f "$ac_srcdir/configure.in"; then
59161       # This should be Cygnus configure.
59162       ac_sub_configure=$ac_aux_dir/configure
59163     else
59164       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
59165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
59166       ac_sub_configure=
59167     fi
59168
59169     # The recursion is here.
59170     if test -n "$ac_sub_configure"; then
59171       # Make the cache file name correct relative to the subdirectory.
59172       case $cache_file in
59173       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
59174       *) # Relative name.
59175         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
59176       esac
59177
59178       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
59179 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
59180       # The eval makes quoting arguments work.
59181       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
59182            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
59183         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
59184 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
59185    { (exit 1); exit 1; }; }
59186     fi
59187
59188     cd "$ac_popdir"
59189   done
59190 fi
59191
59192
59193 echo
59194 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
59195 echo ""
59196 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
59197 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
59198
59199 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
59200 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
59201 echo "  Should wxWidgets be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
59202
59203 echo "  What level of wxWidgets compatibility should be enabled?"
59204 echo "                                       wxWidgets 2.4      ${WXWIN_COMPATIBILITY_2_4:-no}"
59205 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-yes}"
59206 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
59207
59208 echo "  Which libraries should wxWidgets use?"
59209 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
59210 echo "                                       png                ${wxUSE_LIBPNG-none}"
59211 echo "                                       regex              ${wxUSE_REGEX}"
59212 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
59213 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
59214 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
59215 fi
59216 echo "                                       zlib               ${wxUSE_ZLIB}"
59217 echo "                                       odbc               ${wxUSE_ODBC}"
59218 echo "                                       expat              ${wxUSE_EXPAT}"
59219 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
59220 echo "                                       sdl                ${wxUSE_LIBSDL}"
59221
59222 echo ""
59223