extracted MSW-specific setup.h options to their own wx/msw/setup_inc.h file which...
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 47611 2007-07-21 07:31:28Z VZ .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 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 more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45   echo "#! /bin/sh" >conf$$.sh
46   echo  "exit 0"   >>conf$$.sh
47   chmod +x conf$$.sh
48   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49     PATH_SEPARATOR=';'
50   else
51     PATH_SEPARATOR=:
52   fi
53   rm -f conf$$.sh
54 fi
55
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58   as_unset=unset
59 else
60   as_unset=false
61 fi
62
63
64 # IFS
65 # We need space, tab and new line, in precisely that order.  Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
69 as_nl='
70 '
71 IFS=" ""        $as_nl"
72
73 # Find who we are.  Look in the path if we contain no directory separator.
74 case $0 in
75   *[\\/]* ) as_myself=$0 ;;
76   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 for as_dir in $PATH
78 do
79   IFS=$as_save_IFS
80   test -z "$as_dir" && as_dir=.
81   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82 done
83 IFS=$as_save_IFS
84
85      ;;
86 esac
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
90   as_myself=$0
91 fi
92 if test ! -f "$as_myself"; then
93   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94   { (exit 1); exit 1; }
95 fi
96
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 done
101 PS1='$ '
102 PS2='> '
103 PS4='+ '
104
105 # NLS nuisances.
106 for as_var in \
107   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109   LC_TELEPHONE LC_TIME
110 do
111   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112     eval $as_var=C; export $as_var
113   else
114     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115   fi
116 done
117
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120    test "X`expr 00001 : '.*\(...\)'`" = X001; then
121   as_expr=expr
122 else
123   as_expr=false
124 fi
125
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127   as_basename=basename
128 else
129   as_basename=false
130 fi
131
132
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136          X"$0" : 'X\(//\)$' \| \
137          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 echo X/"$0" |
139     sed '/^.*\/\([^/][^/]*\)\/*$/{
140             s//\1/
141             q
142           }
143           /^X\/\(\/\/\)$/{
144             s//\1/
145             q
146           }
147           /^X\/\(\/\).*/{
148             s//\1/
149             q
150           }
151           s/.*/./; q'`
152
153 # CDPATH.
154 $as_unset CDPATH
155
156
157 if test "x$CONFIG_SHELL" = x; then
158   if (eval ":") 2>/dev/null; then
159   as_have_required=yes
160 else
161   as_have_required=no
162 fi
163
164   if test $as_have_required = yes &&     (eval ":
165 (as_func_return () {
166   (exit \$1)
167 }
168 as_func_success () {
169   as_func_return 0
170 }
171 as_func_failure () {
172   as_func_return 1
173 }
174 as_func_ret_success () {
175   return 0
176 }
177 as_func_ret_failure () {
178   return 1
179 }
180
181 exitcode=0
182 if as_func_success; then
183   :
184 else
185   exitcode=1
186   echo as_func_success failed.
187 fi
188
189 if as_func_failure; then
190   exitcode=1
191   echo as_func_failure succeeded.
192 fi
193
194 if as_func_ret_success; then
195   :
196 else
197   exitcode=1
198   echo as_func_ret_success failed.
199 fi
200
201 if as_func_ret_failure; then
202   exitcode=1
203   echo as_func_ret_failure succeeded.
204 fi
205
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207   :
208 else
209   exitcode=1
210   echo positional parameters were not saved.
211 fi
212
213 test \$exitcode = 0) || { (exit 1); exit 1; }
214
215 (
216   as_lineno_1=\$LINENO
217   as_lineno_2=\$LINENO
218   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
221   :
222 else
223   as_candidate_shells=
224     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 do
227   IFS=$as_save_IFS
228   test -z "$as_dir" && as_dir=.
229   case $as_dir in
230          /*)
231            for as_base in sh bash ksh sh5; do
232              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233            done;;
234        esac
235 done
236 IFS=$as_save_IFS
237
238
239       for as_shell in $as_candidate_shells $SHELL; do
240          # Try only shells that exist, to save several forks.
241          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244   emulate sh
245   NULLCMD=:
246   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247   # is contrary to our usage.  Disable this feature.
248   alias -g '${1+"$@"}'='"$@"'
249   setopt NO_GLOB_SUBST
250 else
251   case `(set -o) 2>/dev/null` in
252   *posix*) set -o posix ;;
253 esac
254
255 fi
256
257
258 :
259 _ASEOF
260 }; then
261   CONFIG_SHELL=$as_shell
262                as_have_required=yes
263                if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265   emulate sh
266   NULLCMD=:
267   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268   # is contrary to our usage.  Disable this feature.
269   alias -g '${1+"$@"}'='"$@"'
270   setopt NO_GLOB_SUBST
271 else
272   case `(set -o) 2>/dev/null` in
273   *posix*) set -o posix ;;
274 esac
275
276 fi
277
278
279 :
280 (as_func_return () {
281   (exit $1)
282 }
283 as_func_success () {
284   as_func_return 0
285 }
286 as_func_failure () {
287   as_func_return 1
288 }
289 as_func_ret_success () {
290   return 0
291 }
292 as_func_ret_failure () {
293   return 1
294 }
295
296 exitcode=0
297 if as_func_success; then
298   :
299 else
300   exitcode=1
301   echo as_func_success failed.
302 fi
303
304 if as_func_failure; then
305   exitcode=1
306   echo as_func_failure succeeded.
307 fi
308
309 if as_func_ret_success; then
310   :
311 else
312   exitcode=1
313   echo as_func_ret_success failed.
314 fi
315
316 if as_func_ret_failure; then
317   exitcode=1
318   echo as_func_ret_failure succeeded.
319 fi
320
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
322   :
323 else
324   exitcode=1
325   echo positional parameters were not saved.
326 fi
327
328 test $exitcode = 0) || { (exit 1); exit 1; }
329
330 (
331   as_lineno_1=$LINENO
332   as_lineno_2=$LINENO
333   test "x$as_lineno_1" != "x$as_lineno_2" &&
334   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336 _ASEOF
337 }; then
338   break
339 fi
340
341 fi
342
343       done
344
345       if test "x$CONFIG_SHELL" != x; then
346   for as_var in BASH_ENV ENV
347         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348         done
349         export CONFIG_SHELL
350         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 fi
352
353
354     if test $as_have_required = no; then
355   echo This script requires a shell more modern than all the
356       echo shells that I found on your system.  Please install a
357       echo modern shell, or manually run the script under such a
358       echo shell if you do have one.
359       { (exit 1); exit 1; }
360 fi
361
362
363 fi
364
365 fi
366
367
368
369 (eval "as_func_return () {
370   (exit \$1)
371 }
372 as_func_success () {
373   as_func_return 0
374 }
375 as_func_failure () {
376   as_func_return 1
377 }
378 as_func_ret_success () {
379   return 0
380 }
381 as_func_ret_failure () {
382   return 1
383 }
384
385 exitcode=0
386 if as_func_success; then
387   :
388 else
389   exitcode=1
390   echo as_func_success failed.
391 fi
392
393 if as_func_failure; then
394   exitcode=1
395   echo as_func_failure succeeded.
396 fi
397
398 if as_func_ret_success; then
399   :
400 else
401   exitcode=1
402   echo as_func_ret_success failed.
403 fi
404
405 if as_func_ret_failure; then
406   exitcode=1
407   echo as_func_ret_failure succeeded.
408 fi
409
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411   :
412 else
413   exitcode=1
414   echo positional parameters were not saved.
415 fi
416
417 test \$exitcode = 0") || {
418   echo No shell found that supports shell functions.
419   echo Please tell autoconf@gnu.org about your system,
420   echo including any error possibly output before this
421   echo message
422 }
423
424
425
426   as_lineno_1=$LINENO
427   as_lineno_2=$LINENO
428   test "x$as_lineno_1" != "x$as_lineno_2" &&
429   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432   # uniformly replaced by the line number.  The first 'sed' inserts a
433   # line-number line after each line using $LINENO; the second 'sed'
434   # does the real work.  The second script uses 'N' to pair each
435   # line-number line with the line containing $LINENO, and appends
436   # trailing '-' during substitution so that $LINENO is not a special
437   # case at line end.
438   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439   # scripts with optimization help from Paolo Bonzini.  Blame Lee
440   # E. McMahon (1931-1989) for sed's syntax.  :-)
441   sed -n '
442     p
443     /[$]LINENO/=
444   ' <$as_myself |
445     sed '
446       s/[$]LINENO.*/&-/
447       t lineno
448       b
449       :lineno
450       N
451       :loop
452       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453       t loop
454       s/-\n.*//
455     ' >$as_me.lineno &&
456   chmod +x "$as_me.lineno" ||
457     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458    { (exit 1); exit 1; }; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470   as_dirname=dirname
471 else
472   as_dirname=false
473 fi
474
475 ECHO_C= ECHO_N= ECHO_T=
476 case `echo -n x` in
477 -n*)
478   case `echo 'x\c'` in
479   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480   *)   ECHO_C='\c';;
481   esac;;
482 *)
483   ECHO_N='-n';;
484 esac
485
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487    test "X`expr 00001 : '.*\(...\)'`" = X001; then
488   as_expr=expr
489 else
490   as_expr=false
491 fi
492
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495   rm -f conf$$.dir/conf$$.file
496 else
497   rm -f conf$$.dir
498   mkdir conf$$.dir
499 fi
500 echo >conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s='ln -s'
503   # ... but there are two gotchas:
504   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506   # In both cases, we have to default to `cp -p'.
507   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508     as_ln_s='cp -p'
509 elif ln conf$$.file conf$$ 2>/dev/null; then
510   as_ln_s=ln
511 else
512   as_ln_s='cp -p'
513 fi
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
516
517 if mkdir -p . 2>/dev/null; then
518   as_mkdir_p=:
519 else
520   test -d ./-p && rmdir ./-p
521   as_mkdir_p=false
522 fi
523
524 if test -x / >/dev/null 2>&1; then
525   as_test_x='test -x'
526 else
527   if ls -dL / >/dev/null 2>&1; then
528     as_ls_L_option=L
529   else
530     as_ls_L_option=
531   fi
532   as_test_x='
533     eval sh -c '\''
534       if test -d "$1"; then
535         test -d "$1/.";
536       else
537         case $1 in
538         -*)set "./$1";;
539         esac;
540         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541         ???[sx]*):;;*)false;;esac;fi
542     '\'' sh
543   '
544 fi
545 as_executable_p=$as_test_x
546
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555 exec 7<&0 </dev/null 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573 SHELL=${CONFIG_SHELL-/bin/sh}
574
575 # Identity of this package.
576 PACKAGE_NAME='wxWidgets'
577 PACKAGE_TARNAME='wxwidgets'
578 PACKAGE_VERSION='2.9.0'
579 PACKAGE_STRING='wxWidgets 2.9.0'
580 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
581
582 ac_unique_file="wx-config.in"
583 # Factoring default headers for most tests.
584 ac_includes_default="\
585 #include <stdio.h>
586 #ifdef HAVE_SYS_TYPES_H
587 # include <sys/types.h>
588 #endif
589 #ifdef HAVE_SYS_STAT_H
590 # include <sys/stat.h>
591 #endif
592 #ifdef STDC_HEADERS
593 # include <stdlib.h>
594 # include <stddef.h>
595 #else
596 # ifdef HAVE_STDLIB_H
597 #  include <stdlib.h>
598 # endif
599 #endif
600 #ifdef HAVE_STRING_H
601 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #  include <memory.h>
603 # endif
604 # include <string.h>
605 #endif
606 #ifdef HAVE_STRINGS_H
607 # include <strings.h>
608 #endif
609 #ifdef HAVE_INTTYPES_H
610 # include <inttypes.h>
611 #endif
612 #ifdef HAVE_STDINT_H
613 # include <stdint.h>
614 #endif
615 #ifdef HAVE_UNISTD_H
616 # include <unistd.h>
617 #endif"
618
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
664 target
665 target_cpu
666 target_vendor
667 target_os
668 wx_top_builddir
669 CC
670 CFLAGS
671 LDFLAGS
672 CPPFLAGS
673 ac_ct_CC
674 EXEEXT
675 OBJEXT
676 CPP
677 GREP
678 EGREP
679 CXX
680 CXXFLAGS
681 ac_ct_CXX
682 RANLIB
683 AR
684 INSTALL_PROGRAM
685 INSTALL_SCRIPT
686 INSTALL_DATA
687 STRIP
688 WINDRES
689 DLLTOOL
690 IF_GNU_MAKE
691 LN_S
692 subdirs
693 PKG_CONFIG
694 GTK_CFLAGS
695 GTK_LIBS
696 GTK_CONFIG
697 DIRECTFB_CFLAGS
698 DIRECTFB_LIBS
699 XMKMF
700 X_CFLAGS
701 X_PRE_LIBS
702 X_LIBS
703 X_EXTRA_LIBS
704 PANGOX_CFLAGS
705 PANGOX_LIBS
706 PANGOFT2_CFLAGS
707 PANGOFT2_LIBS
708 PANGOXFT_CFLAGS
709 PANGOXFT_LIBS
710 CFLAGS_VISIBILITY
711 CXXFLAGS_VISIBILITY
712 REZ
713 DEREZ
714 SETFILE
715 LIBICONV
716 SDL_CONFIG
717 SDL_CFLAGS
718 SDL_LIBS
719 LIBGNOMEPRINTUI_CFLAGS
720 LIBGNOMEPRINTUI_LIBS
721 GNOMEVFS_CFLAGS
722 GNOMEVFS_LIBS
723 HILDON_CFLAGS
724 HILDON_LIBS
725 CAIRO_CFLAGS
726 CAIRO_LIBS
727 GST_CFLAGS
728 GST_LIBS
729 ALL_WX_LIBS
730 BUILT_WX_LIBS
731 STD_BASE_LIBS
732 STD_GUI_LIBS
733 wxUSE_ZLIB
734 wxUSE_REGEX
735 wxUSE_EXPAT
736 wxUSE_ODBC
737 wxUSE_LIBJPEG
738 wxUSE_LIBPNG
739 wxUSE_LIBTIFF
740 VENDOR
741 OFFICIAL_BUILD
742 WX_FLAVOUR
743 WX_LIB_FLAVOUR
744 WXUNIV
745 MONOLITHIC
746 USE_PLUGINS
747 CXXWARNINGS
748 EXTRALIBS
749 EXTRALIBS_XML
750 EXTRALIBS_HTML
751 EXTRALIBS_ODBC
752 EXTRALIBS_GUI
753 EXTRALIBS_OPENGL
754 EXTRALIBS_SDL
755 WITH_PLUGIN_SDL
756 EXTRALIBS_GNOMEPRINT
757 EXTRALIBS_GNOMEVFS
758 EXTRALIBS_HILDON
759 UNICODE
760 BUILD
761 DEBUG_INFO
762 DEBUG_FLAG
763 TOOLKIT_LOWERCASE
764 TOOLKIT_VERSION
765 SAMPLES_RPATH_FLAG
766 SAMPLES_RPATH_POSTLINK
767 HOST_SUFFIX
768 CPPUNIT_CFLAGS
769 CPPUNIT_LIBS
770 SET_MAKE
771 MAKE_SET
772 AROPTIONS
773 NM
774 INSTALL_DIR
775 LDFLAGS_GUI
776 PLATFORM_UNIX
777 PLATFORM_WIN32
778 PLATFORM_MSDOS
779 PLATFORM_MAC
780 PLATFORM_MACOS
781 PLATFORM_MACOSX
782 PLATFORM_OS2
783 PLATFORM_BEOS
784 SO_SUFFIX
785 SO_SUFFIX_MODULE
786 DLLIMP_SUFFIX
787 LIBPREFIX
788 LIBEXT
789 DLLPREFIX
790 DLLPREFIX_MODULE
791 dlldir
792 AIX_CXX_LD
793 SHARED_LD_CC
794 SHARED_LD_CXX
795 SHARED_LD_MODULE_CC
796 SHARED_LD_MODULE_CXX
797 PIC_FLAG
798 WINDOWS_IMPLIB
799 USE_SOVERSION
800 USE_SOVERLINUX
801 USE_SOVERSOLARIS
802 USE_SOVERCYGWIN
803 USE_MACVERSION
804 USE_SOSYMLINKS
805 SONAME_FLAG
806 DEPS_TRACKING
807 BK_DEPS
808 GCC_PCH
809 ICC_PCH
810 BK_MAKE_PCH
811 COND_BUILD_DEBUG
812 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
813 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
814 COND_BUILD_DEBUG_UNICODE_0
815 COND_BUILD_DEBUG_UNICODE_1
816 COND_BUILD_RELEASE
817 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
818 COND_BUILD_RELEASE_UNICODE_0
819 COND_BUILD_RELEASE_UNICODE_1
820 COND_DEBUG_FLAG_1
821 COND_DEBUG_INFO_0
822 COND_DEBUG_INFO_1
823 COND_DEPS_TRACKING_0
824 COND_DEPS_TRACKING_1
825 COND_GCC_PCH_1
826 COND_ICC_PCH_1
827 COND_MONOLITHIC_0
828 COND_MONOLITHIC_0_SHARED_0
829 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
830 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
831 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
833 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1
834 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
835 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1
836 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
837 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
838 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
839 COND_MONOLITHIC_0_SHARED_1
840 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
843 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
844 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1
845 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
846 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1
847 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
848 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
849 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
850 COND_MONOLITHIC_0_USE_AUI_1
851 COND_MONOLITHIC_0_USE_GUI_1
852 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
853 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1
854 COND_MONOLITHIC_0_USE_HTML_1
855 COND_MONOLITHIC_0_USE_MEDIA_1
856 COND_MONOLITHIC_0_USE_ODBC_1
857 COND_MONOLITHIC_0_USE_QA_1
858 COND_MONOLITHIC_0_USE_RICHTEXT_1
859 COND_MONOLITHIC_0_USE_STC_1
860 COND_MONOLITHIC_0_USE_XRC_1
861 COND_MONOLITHIC_1
862 COND_MONOLITHIC_1_SHARED_0
863 COND_MONOLITHIC_1_SHARED_1
864 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
865 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
866 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
867 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
868 COND_PLATFORM_MACOSX_1
869 COND_PLATFORM_MACOSX_1_TOOLKIT_
870 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
871 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
872 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
873 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
874 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
875 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
876 COND_PLATFORM_MACOSX_1_USE_GUI_1
877 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
878 COND_PLATFORM_MACOS_1
879 COND_PLATFORM_MAC_1
880 COND_PLATFORM_MSDOS_0
881 COND_PLATFORM_MSDOS_1
882 COND_PLATFORM_OS2_1
883 COND_PLATFORM_UNIX_0
884 COND_PLATFORM_UNIX_1
885 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
886 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
887 COND_PLATFORM_UNIX_1_USE_GUI_1
888 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
889 COND_PLATFORM_WIN32_0
890 COND_PLATFORM_WIN32_1
891 COND_SHARED_0
892 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
893 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
894 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
895 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
896 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
897 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
898 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
899 COND_SHARED_0_USE_STC_1
900 COND_SHARED_0_USE_XRC_1
901 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
902 COND_SHARED_0_WXUSE_ODBC_BUILTIN
903 COND_SHARED_0_WXUSE_REGEX_BUILTIN
904 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
905 COND_SHARED_1
906 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
907 COND_SHARED_1_USE_XRC_1
908 COND_TOOLKIT_
909 COND_TOOLKIT_COCOA
910 COND_TOOLKIT_COCOA_USE_GUI_1
911 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
912 COND_TOOLKIT_DFB
913 COND_TOOLKIT_DFB_USE_GUI_1
914 COND_TOOLKIT_GTK
915 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
916 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
917 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
918 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
919 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
920 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
921 COND_TOOLKIT_GTK_USE_GUI_1
922 COND_TOOLKIT_MAC
923 COND_TOOLKIT_MAC_USE_GUI_1
924 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
925 COND_TOOLKIT_MGL
926 COND_TOOLKIT_MGL_USE_GUI_1
927 COND_TOOLKIT_MOTIF
928 COND_TOOLKIT_MOTIF_USE_GUI_1
929 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
930 COND_TOOLKIT_MSW
931 COND_TOOLKIT_MSW_USE_GUI_1
932 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
933 COND_TOOLKIT_MSW_WXUNIV_0
934 COND_TOOLKIT_PM
935 COND_TOOLKIT_PM_USE_GUI_1
936 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
937 COND_TOOLKIT_WINCE
938 COND_TOOLKIT_WINCE_USE_GUI_1
939 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
940 COND_TOOLKIT_WINCE_WXUNIV_0
941 COND_TOOLKIT_X11
942 COND_TOOLKIT_X11_USE_GUI_1
943 COND_UNICODE_1
944 COND_USE_EXCEPTIONS_0
945 COND_USE_EXCEPTIONS_1
946 COND_USE_GUI_0
947 COND_USE_GUI_1
948 COND_USE_GUI_1_USE_OPENGL_1
949 COND_USE_GUI_1_WXUNIV_0
950 COND_USE_GUI_1_WXUNIV_1
951 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
952 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
953 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
954 COND_USE_ODBC_1
955 COND_USE_OPENGL_1
956 COND_USE_PCH_1
957 COND_USE_PLUGINS_0
958 COND_USE_RTTI_0
959 COND_USE_RTTI_1
960 COND_USE_SOSYMLINKS_1
961 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
962 COND_USE_SOVERLINUX_1
963 COND_USE_SOVERSION_0
964 COND_USE_SOVERSOLARIS_1
965 COND_USE_STC_1
966 COND_USE_THREADS_0
967 COND_USE_THREADS_1
968 COND_USE_XRC_1
969 COND_WINDOWS_IMPLIB_1
970 COND_WITH_PLUGIN_SDL_1
971 COND_WXUNIV_0
972 COND_WXUNIV_1
973 COND_WXUSE_EXPAT_BUILTIN
974 COND_WXUSE_LIBJPEG_BUILTIN
975 COND_WXUSE_LIBPNG_BUILTIN
976 COND_WXUSE_LIBTIFF_BUILTIN
977 COND_WXUSE_ODBC_BUILTIN
978 COND_WXUSE_REGEX_BUILTIN
979 COND_WXUSE_ZLIB_BUILTIN
980 SHARED
981 WX_LIBRARY_BASENAME_NOGUI
982 WX_LIBRARY_BASENAME_GUI
983 USE_GUI
984 AFMINSTALL
985 WIN32INSTALL
986 TOOLKIT
987 TOOLKIT_DIR
988 TOOLCHAIN_NAME
989 TOOLCHAIN_FULLNAME
990 cross_compiling
991 WIDGET_SET
992 WX_RELEASE
993 WX_VERSION
994 WX_SUBVERSION
995 WX_CHARTYPE
996 WX_DEBUGTYPE
997 WXCONFIG_CPPFLAGS
998 WXCONFIG_CFLAGS
999 WXCONFIG_CXXFLAGS
1000 WXCONFIG_LIBS
1001 WXCONFIG_RPATH
1002 WXCONFIG_LDFLAGS_GUI
1003 WXCONFIG_RESFLAGS
1004 EXE_LINKER
1005 GUIDIST
1006 DISTDIR
1007 SAMPLES_SUBDIRS
1008 LDFLAGS_GL
1009 OPENGL_LIBS
1010 DMALLOC_LIBS
1011 WX_VERSION_TAG
1012 RESCOMP
1013 RESFLAGS
1014 RESPROGRAMOBJ
1015 WX_RESOURCES_MACOSX_ASCII
1016 WX_RESOURCES_MACOSX_DATA
1017 LIBWXMACRES
1018 POSTLINK_COMMAND
1019 MACSETFILE
1020 GCC
1021 CPPUNIT_CONFIG
1022 LIBOBJS
1023 LTLIBOBJS'
1024 ac_subst_files=''
1025       ac_precious_vars='build_alias
1026 host_alias
1027 target_alias
1028 CC
1029 CFLAGS
1030 LDFLAGS
1031 LIBS
1032 CPPFLAGS
1033 CPP
1034 CXX
1035 CXXFLAGS
1036 CCC
1037 PKG_CONFIG
1038 DIRECTFB_CFLAGS
1039 DIRECTFB_LIBS
1040 XMKMF
1041 PANGOX_CFLAGS
1042 PANGOX_LIBS
1043 PANGOFT2_CFLAGS
1044 PANGOFT2_LIBS
1045 PANGOXFT_CFLAGS
1046 PANGOXFT_LIBS
1047 LIBGNOMEPRINTUI_CFLAGS
1048 LIBGNOMEPRINTUI_LIBS
1049 GNOMEVFS_CFLAGS
1050 GNOMEVFS_LIBS
1051 HILDON_CFLAGS
1052 HILDON_LIBS
1053 CAIRO_CFLAGS
1054 CAIRO_LIBS
1055 GST_CFLAGS
1056 GST_LIBS'
1057 ac_subdirs_all='src/expat'
1058
1059 # Initialize some variables set by options.
1060 ac_init_help=
1061 ac_init_version=false
1062 # The variables have the same names as the options, with
1063 # dashes changed to underlines.
1064 cache_file=/dev/null
1065 exec_prefix=NONE
1066 no_create=
1067 no_recursion=
1068 prefix=NONE
1069 program_prefix=NONE
1070 program_suffix=NONE
1071 program_transform_name=s,x,x,
1072 silent=
1073 site=
1074 srcdir=
1075 verbose=
1076 x_includes=NONE
1077 x_libraries=NONE
1078
1079 # Installation directory options.
1080 # These are left unexpanded so users can "make install exec_prefix=/foo"
1081 # and all the variables that are supposed to be based on exec_prefix
1082 # by default will actually change.
1083 # Use braces instead of parens because sh, perl, etc. also accept them.
1084 # (The list follows the same order as the GNU Coding Standards.)
1085 bindir='${exec_prefix}/bin'
1086 sbindir='${exec_prefix}/sbin'
1087 libexecdir='${exec_prefix}/libexec'
1088 datarootdir='${prefix}/share'
1089 datadir='${datarootdir}'
1090 sysconfdir='${prefix}/etc'
1091 sharedstatedir='${prefix}/com'
1092 localstatedir='${prefix}/var'
1093 includedir='${prefix}/include'
1094 oldincludedir='/usr/include'
1095 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1096 infodir='${datarootdir}/info'
1097 htmldir='${docdir}'
1098 dvidir='${docdir}'
1099 pdfdir='${docdir}'
1100 psdir='${docdir}'
1101 libdir='${exec_prefix}/lib'
1102 localedir='${datarootdir}/locale'
1103 mandir='${datarootdir}/man'
1104
1105 ac_prev=
1106 ac_dashdash=
1107 for ac_option
1108 do
1109   # If the previous option needs an argument, assign it.
1110   if test -n "$ac_prev"; then
1111     eval $ac_prev=\$ac_option
1112     ac_prev=
1113     continue
1114   fi
1115
1116   case $ac_option in
1117   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1118   *)    ac_optarg=yes ;;
1119   esac
1120
1121   # Accept the important Cygnus configure options, so we can diagnose typos.
1122
1123   case $ac_dashdash$ac_option in
1124   --)
1125     ac_dashdash=yes ;;
1126
1127   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1128     ac_prev=bindir ;;
1129   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1130     bindir=$ac_optarg ;;
1131
1132   -build | --build | --buil | --bui | --bu)
1133     ac_prev=build_alias ;;
1134   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1135     build_alias=$ac_optarg ;;
1136
1137   -cache-file | --cache-file | --cache-fil | --cache-fi \
1138   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1139     ac_prev=cache_file ;;
1140   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1141   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1142     cache_file=$ac_optarg ;;
1143
1144   --config-cache | -C)
1145     cache_file=config.cache ;;
1146
1147   -datadir | --datadir | --datadi | --datad)
1148     ac_prev=datadir ;;
1149   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1150     datadir=$ac_optarg ;;
1151
1152   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1153   | --dataroo | --dataro | --datar)
1154     ac_prev=datarootdir ;;
1155   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1156   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1157     datarootdir=$ac_optarg ;;
1158
1159   -disable-* | --disable-*)
1160     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1164    { (exit 1); exit 1; }; }
1165     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1166     eval enable_$ac_feature=no ;;
1167
1168   -docdir | --docdir | --docdi | --doc | --do)
1169     ac_prev=docdir ;;
1170   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1171     docdir=$ac_optarg ;;
1172
1173   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1174     ac_prev=dvidir ;;
1175   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1176     dvidir=$ac_optarg ;;
1177
1178   -enable-* | --enable-*)
1179     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1183    { (exit 1); exit 1; }; }
1184     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1185     eval enable_$ac_feature=\$ac_optarg ;;
1186
1187   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1188   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1189   | --exec | --exe | --ex)
1190     ac_prev=exec_prefix ;;
1191   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1192   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1193   | --exec=* | --exe=* | --ex=*)
1194     exec_prefix=$ac_optarg ;;
1195
1196   -gas | --gas | --ga | --g)
1197     # Obsolete; use --with-gas.
1198     with_gas=yes ;;
1199
1200   -help | --help | --hel | --he | -h)
1201     ac_init_help=long ;;
1202   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1203     ac_init_help=recursive ;;
1204   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1205     ac_init_help=short ;;
1206
1207   -host | --host | --hos | --ho)
1208     ac_prev=host_alias ;;
1209   -host=* | --host=* | --hos=* | --ho=*)
1210     host_alias=$ac_optarg ;;
1211
1212   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1213     ac_prev=htmldir ;;
1214   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1215   | --ht=*)
1216     htmldir=$ac_optarg ;;
1217
1218   -includedir | --includedir | --includedi | --included | --include \
1219   | --includ | --inclu | --incl | --inc)
1220     ac_prev=includedir ;;
1221   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1222   | --includ=* | --inclu=* | --incl=* | --inc=*)
1223     includedir=$ac_optarg ;;
1224
1225   -infodir | --infodir | --infodi | --infod | --info | --inf)
1226     ac_prev=infodir ;;
1227   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1228     infodir=$ac_optarg ;;
1229
1230   -libdir | --libdir | --libdi | --libd)
1231     ac_prev=libdir ;;
1232   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1233     libdir=$ac_optarg ;;
1234
1235   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1236   | --libexe | --libex | --libe)
1237     ac_prev=libexecdir ;;
1238   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1239   | --libexe=* | --libex=* | --libe=*)
1240     libexecdir=$ac_optarg ;;
1241
1242   -localedir | --localedir | --localedi | --localed | --locale)
1243     ac_prev=localedir ;;
1244   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1245     localedir=$ac_optarg ;;
1246
1247   -localstatedir | --localstatedir | --localstatedi | --localstated \
1248   | --localstate | --localstat | --localsta | --localst | --locals)
1249     ac_prev=localstatedir ;;
1250   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1251   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1252     localstatedir=$ac_optarg ;;
1253
1254   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1255     ac_prev=mandir ;;
1256   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1257     mandir=$ac_optarg ;;
1258
1259   -nfp | --nfp | --nf)
1260     # Obsolete; use --without-fp.
1261     with_fp=no ;;
1262
1263   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1264   | --no-cr | --no-c | -n)
1265     no_create=yes ;;
1266
1267   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1268   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1269     no_recursion=yes ;;
1270
1271   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1272   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1273   | --oldin | --oldi | --old | --ol | --o)
1274     ac_prev=oldincludedir ;;
1275   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1276   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1277   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1278     oldincludedir=$ac_optarg ;;
1279
1280   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1281     ac_prev=prefix ;;
1282   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1283     prefix=$ac_optarg ;;
1284
1285   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1286   | --program-pre | --program-pr | --program-p)
1287     ac_prev=program_prefix ;;
1288   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1289   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1290     program_prefix=$ac_optarg ;;
1291
1292   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1293   | --program-suf | --program-su | --program-s)
1294     ac_prev=program_suffix ;;
1295   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1296   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1297     program_suffix=$ac_optarg ;;
1298
1299   -program-transform-name | --program-transform-name \
1300   | --program-transform-nam | --program-transform-na \
1301   | --program-transform-n | --program-transform- \
1302   | --program-transform | --program-transfor \
1303   | --program-transfo | --program-transf \
1304   | --program-trans | --program-tran \
1305   | --progr-tra | --program-tr | --program-t)
1306     ac_prev=program_transform_name ;;
1307   -program-transform-name=* | --program-transform-name=* \
1308   | --program-transform-nam=* | --program-transform-na=* \
1309   | --program-transform-n=* | --program-transform-=* \
1310   | --program-transform=* | --program-transfor=* \
1311   | --program-transfo=* | --program-transf=* \
1312   | --program-trans=* | --program-tran=* \
1313   | --progr-tra=* | --program-tr=* | --program-t=*)
1314     program_transform_name=$ac_optarg ;;
1315
1316   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1317     ac_prev=pdfdir ;;
1318   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1319     pdfdir=$ac_optarg ;;
1320
1321   -psdir | --psdir | --psdi | --psd | --ps)
1322     ac_prev=psdir ;;
1323   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1324     psdir=$ac_optarg ;;
1325
1326   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1327   | -silent | --silent | --silen | --sile | --sil)
1328     silent=yes ;;
1329
1330   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1331     ac_prev=sbindir ;;
1332   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1333   | --sbi=* | --sb=*)
1334     sbindir=$ac_optarg ;;
1335
1336   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1337   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1338   | --sharedst | --shareds | --shared | --share | --shar \
1339   | --sha | --sh)
1340     ac_prev=sharedstatedir ;;
1341   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1342   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1343   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1344   | --sha=* | --sh=*)
1345     sharedstatedir=$ac_optarg ;;
1346
1347   -site | --site | --sit)
1348     ac_prev=site ;;
1349   -site=* | --site=* | --sit=*)
1350     site=$ac_optarg ;;
1351
1352   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1353     ac_prev=srcdir ;;
1354   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1355     srcdir=$ac_optarg ;;
1356
1357   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1358   | --syscon | --sysco | --sysc | --sys | --sy)
1359     ac_prev=sysconfdir ;;
1360   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1361   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1362     sysconfdir=$ac_optarg ;;
1363
1364   -target | --target | --targe | --targ | --tar | --ta | --t)
1365     ac_prev=target_alias ;;
1366   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1367     target_alias=$ac_optarg ;;
1368
1369   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1370     verbose=yes ;;
1371
1372   -version | --version | --versio | --versi | --vers | -V)
1373     ac_init_version=: ;;
1374
1375   -with-* | --with-*)
1376     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1377     # Reject names that are not valid shell variable names.
1378     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1379       { echo "$as_me: error: invalid package name: $ac_package" >&2
1380    { (exit 1); exit 1; }; }
1381     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1382     eval with_$ac_package=\$ac_optarg ;;
1383
1384   -without-* | --without-*)
1385     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1386     # Reject names that are not valid shell variable names.
1387     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388       { echo "$as_me: error: invalid package name: $ac_package" >&2
1389    { (exit 1); exit 1; }; }
1390     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1391     eval with_$ac_package=no ;;
1392
1393   --x)
1394     # Obsolete; use --with-x.
1395     with_x=yes ;;
1396
1397   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1398   | --x-incl | --x-inc | --x-in | --x-i)
1399     ac_prev=x_includes ;;
1400   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1401   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1402     x_includes=$ac_optarg ;;
1403
1404   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1405   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1406     ac_prev=x_libraries ;;
1407   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1408   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1409     x_libraries=$ac_optarg ;;
1410
1411   -*) { echo "$as_me: error: unrecognized option: $ac_option
1412 Try \`$0 --help' for more information." >&2
1413    { (exit 1); exit 1; }; }
1414     ;;
1415
1416   *=*)
1417     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418     # Reject names that are not valid shell variable names.
1419     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1420       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1421    { (exit 1); exit 1; }; }
1422     eval $ac_envvar=\$ac_optarg
1423     export $ac_envvar ;;
1424
1425   *)
1426     # FIXME: should be removed in autoconf 3.0.
1427     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1428     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1429       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1430     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1431     ;;
1432
1433   esac
1434 done
1435
1436 if test -n "$ac_prev"; then
1437   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1438   { echo "$as_me: error: missing argument to $ac_option" >&2
1439    { (exit 1); exit 1; }; }
1440 fi
1441
1442 # Be sure to have absolute directory names.
1443 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1444                 datadir sysconfdir sharedstatedir localstatedir includedir \
1445                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1446                 libdir localedir mandir
1447 do
1448   eval ac_val=\$$ac_var
1449   case $ac_val in
1450     [\\/$]* | ?:[\\/]* )  continue;;
1451     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1452   esac
1453   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1454    { (exit 1); exit 1; }; }
1455 done
1456
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1460 build=$build_alias
1461 host=$host_alias
1462 target=$target_alias
1463
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x; then
1466   if test "x$build_alias" = x; then
1467     cross_compiling=maybe
1468     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1469     If a cross compiler is detected then cross compile mode will be used." >&2
1470   elif test "x$build_alias" != "x$host_alias"; then
1471     cross_compiling=yes
1472   fi
1473 fi
1474
1475 ac_tool_prefix=
1476 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1477
1478 test "$silent" = yes && exec 6>/dev/null
1479
1480
1481 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di=`ls -di .` &&
1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484   { echo "$as_me: error: Working directory cannot be determined" >&2
1485    { (exit 1); exit 1; }; }
1486 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1487   { echo "$as_me: error: pwd does not report name of working directory" >&2
1488    { (exit 1); exit 1; }; }
1489
1490
1491 # Find the source files, if location was not specified.
1492 if test -z "$srcdir"; then
1493   ac_srcdir_defaulted=yes
1494   # Try the directory containing this script, then the parent directory.
1495   ac_confdir=`$as_dirname -- "$0" ||
1496 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1497          X"$0" : 'X\(//\)[^/]' \| \
1498          X"$0" : 'X\(//\)$' \| \
1499          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1500 echo X"$0" |
1501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502             s//\1/
1503             q
1504           }
1505           /^X\(\/\/\)[^/].*/{
1506             s//\1/
1507             q
1508           }
1509           /^X\(\/\/\)$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\).*/{
1514             s//\1/
1515             q
1516           }
1517           s/.*/./; q'`
1518   srcdir=$ac_confdir
1519   if test ! -r "$srcdir/$ac_unique_file"; then
1520     srcdir=..
1521   fi
1522 else
1523   ac_srcdir_defaulted=no
1524 fi
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1527   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1528    { (exit 1); exit 1; }; }
1529 fi
1530 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1531 ac_abs_confdir=`(
1532         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1533    { (exit 1); exit 1; }; }
1534         pwd)`
1535 # When building in place, set srcdir=.
1536 if test "$ac_abs_confdir" = "$ac_pwd"; then
1537   srcdir=.
1538 fi
1539 # Remove unnecessary trailing slashes from srcdir.
1540 # Double slashes in file names in object file debugging info
1541 # mess up M-x gdb in Emacs.
1542 case $srcdir in
1543 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 esac
1545 for ac_var in $ac_precious_vars; do
1546   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1547   eval ac_env_${ac_var}_value=\$${ac_var}
1548   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1549   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1550 done
1551
1552 #
1553 # Report the --help message.
1554 #
1555 if test "$ac_init_help" = "long"; then
1556   # Omit some internal or obsolete options to make the list less imposing.
1557   # This message is too long to be a string in the A/UX 3.1 sh.
1558   cat <<_ACEOF
1559 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1560
1561 Usage: $0 [OPTION]... [VAR=VALUE]...
1562
1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564 VAR=VALUE.  See below for descriptions of some of the useful variables.
1565
1566 Defaults for the options are specified in brackets.
1567
1568 Configuration:
1569   -h, --help              display this help and exit
1570       --help=short        display options specific to this package
1571       --help=recursive    display the short help of all the included packages
1572   -V, --version           display version information and exit
1573   -q, --quiet, --silent   do not print \`checking...' messages
1574       --cache-file=FILE   cache test results in FILE [disabled]
1575   -C, --config-cache      alias for \`--cache-file=config.cache'
1576   -n, --no-create         do not create output files
1577       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1578
1579 Installation directories:
1580   --prefix=PREFIX         install architecture-independent files in PREFIX
1581                           [$ac_default_prefix]
1582   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1583                           [PREFIX]
1584
1585 By default, \`make install' will install all the files in
1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588 for instance \`--prefix=\$HOME'.
1589
1590 For better control, use the options below.
1591
1592 Fine tuning of the installation directories:
1593   --bindir=DIR           user executables [EPREFIX/bin]
1594   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1595   --libexecdir=DIR       program executables [EPREFIX/libexec]
1596   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1597   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1598   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1599   --libdir=DIR           object code libraries [EPREFIX/lib]
1600   --includedir=DIR       C header files [PREFIX/include]
1601   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1602   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1603   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1604   --infodir=DIR          info documentation [DATAROOTDIR/info]
1605   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1606   --mandir=DIR           man documentation [DATAROOTDIR/man]
1607   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1608   --htmldir=DIR          html documentation [DOCDIR]
1609   --dvidir=DIR           dvi documentation [DOCDIR]
1610   --pdfdir=DIR           pdf documentation [DOCDIR]
1611   --psdir=DIR            ps documentation [DOCDIR]
1612 _ACEOF
1613
1614   cat <<\_ACEOF
1615
1616 X features:
1617   --x-includes=DIR    X include files are in DIR
1618   --x-libraries=DIR   X library files are in DIR
1619
1620 System types:
1621   --build=BUILD     configure for building on BUILD [guessed]
1622   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1623   --target=TARGET   configure for building compilers for TARGET [HOST]
1624 _ACEOF
1625 fi
1626
1627 if test -n "$ac_init_help"; then
1628   case $ac_init_help in
1629      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1630    esac
1631   cat <<\_ACEOF
1632
1633 Optional Features:
1634   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1635   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1636   --disable-gui           don't build GUI parts of the library
1637   --enable-monolithic     build wxWidgets as single library
1638   --enable-plugins        build parts of wxWidgets as loadable components
1639   --enable-official_build official build of wxWidgets (win32 DLL only)
1640   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1641   --disable-all-features  disable all optional features to build minimal library
1642   --enable-universal      use wxWidgets GUI controls instead of native ones
1643   --enable-nanox          use NanoX
1644   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1645   --enable-gpe            use GNOME PDA Environment features if possible
1646   --disable-shared        create static library instead of shared
1647   --disable-optimise      create optimised code
1648   --enable-debug          same as debug_flag and debug_info
1649   --enable-stl            use STL for containers
1650   --enable-std_iostreams  use standard C++ stream classes
1651   --enable-std_string     use standard C++ string classes
1652   --disable-unicode       compile without Unicode support
1653   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1654   --enable-utf8           use UTF-8 representation for strings (Unix only)
1655   --enable-utf8only      only support UTF-8 locales in UTF-8 build (Unix only)
1656   --enable-extended_rtti  use extended RTTI (XTI)
1657   --enable-omf            use OMF object format
1658   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1659   --enable-debug_info     create code with debugging information
1660   --enable-debug_gdb      create code with extra GDB debugging information
1661   --enable-debug_cntxt    use wxDebugContext
1662   --enable-mem_tracing    create code with memory tracing
1663   --enable-profile        create code with profiling information
1664   --enable-no_rtti        create code without RTTI information
1665   --enable-no_exceptions  create code without C++ exceptions handling
1666   --enable-permissive     compile code disregarding strict ANSI
1667   --enable-no_deps        create code without dependency information
1668   --disable-vararg_macros don't use vararg macros, even if they are supported
1669   --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
1670   --enable-compat26       enable wxWidgets 2.6 compatibility
1671   --disable-compat28      disable wxWidgets 2.8 compatibility
1672   --disable-rpath         disable use of rpath for uninstalled builds
1673   --enable-objc_uniquifying enable Objective-C class name uniquifying
1674   --disable-visibility    disable use of ELF symbols visibility even if supported
1675   --enable-intl           use internationalization system
1676   --enable-config         use wxConfig (and derived) classes
1677   --enable-protocols      use wxProtocol and derived classes
1678   --enable-ftp            use wxFTP (requires wxProtocol
1679   --enable-http           use wxHTTP (requires wxProtocol
1680   --enable-fileproto      use wxFileProto class (requires wxProtocol
1681   --enable-sockets        use socket/network classes
1682   --enable-ole            use OLE classes (Win32 only)
1683   --enable-dataobj        use data object classes
1684   --enable-ipc            use interprocess communication (wxSocket etc.)
1685   --enable-baseevtloop    use event loop in console programs too
1686   --enable-epoolloop      use wxEpollDispatcher class (Linux only)
1687   --enable-selectloop     use wxSelectDispatcher class
1688   --enable-apple_ieee     use the Apple IEEE codec
1689   --enable-arcstream      use wxArchive streams
1690   --enable-base64         use base64 encoding/decoding functions
1691   --enable-backtrace      use wxStackWalker class for getting backtraces
1692   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1693   --enable-cmdline        use wxCmdLineParser class
1694   --enable-datetime       use wxDateTime class
1695   --enable-debugreport    use wxDebugReport class
1696   --enable-dialupman      use dialup network classes
1697   --enable-dynlib         use wxLibrary class for DLL loading
1698   --enable-dynamicloader  use (new) wxDynamicLibrary class
1699   --enable-exceptions     build exception-safe library
1700   --enable-ffile          use wxFFile class
1701   --enable-file           use wxFile class
1702   --enable-filesystem     use virtual file systems classes
1703   --enable-fontenum       use wxFontEnumerator class
1704   --enable-fontmap        use font encodings conversion classes
1705   --enable-fs_archive     use virtual archive filesystems
1706   --enable-fs_inet        use virtual HTTP/FTP filesystems
1707   --enable-fs_zip         now replaced by fs_archive
1708   --enable-geometry       use geometry class
1709   --enable-log            use logging system
1710   --enable-longlong       use wxLongLong class
1711   --enable-mimetype       use wxMimeTypesManager
1712   --enable-snglinst       use wxSingleInstanceChecker class
1713   --enable-stdpaths       use wxStandardPaths class
1714   --enable-stopwatch      use wxStopWatch class
1715   --enable-streams        use wxStream etc classes
1716   --enable-sysoptions     use wxSystemOptions
1717   --enable-tarstream      use wxTar streams
1718   --enable-textbuf        use wxTextBuffer class
1719   --enable-textfile       use wxTextFile class
1720   --enable-timer          use wxTimer class
1721   --enable-sound          use wxSound class
1722   --enable-mediactrl      use wxMediaCtrl class
1723   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1724   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1725   --enable-zipstream      use wxZip streams
1726   --enable-url            use wxURL class
1727   --enable-variant        use wxVariant class
1728   --enable-protocol       use wxProtocol class
1729   --enable-protocol-http  HTTP support in wxProtocol
1730   --enable-protocol-ftp   FTP support in wxProtocol
1731   --enable-protocol-file  FILE support in wxProtocol
1732   --enable-threads        use threads
1733   --enable-docview        use document view architecture
1734   --enable-help           use help subsystem
1735   --enable-mshtmlhelp     use MS HTML Help (win32)
1736   --enable-html           use wxHTML sub-library
1737   --enable-htmlhelp       use wxHTML-based help
1738   --enable-xrc            use XRC resources sub-library
1739   --enable-aui            use AUI docking library
1740   --enable-stc            use wxStyledTextCtrl library
1741   --enable-constraints    use layout-constraints system
1742   --enable-printarch      use printing architecture
1743   --enable-mdi            use multiple document interface architecture
1744   --enable-mdidoc         use docview architecture with MDI
1745   --enable-loggui         use standard GUI logger
1746   --enable-logwin         use wxLogWindow
1747   --enable-logdialog      use wxLogDialog
1748   --enable-webkit         use wxWebKitCtrl (Mac)
1749   --enable-richtext       use wxRichTextCtrl
1750   --enable-graphics_ctx   use graphics context 2D drawing API
1751   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1752   --enable-svg            use wxSVGFileDC device context
1753   --enable-clipboard      use wxClipboard class
1754   --enable-dnd            use Drag'n'Drop classes
1755   --enable-metafile       use win32 metafiles
1756   --disable-controls      disable compilation of all standard controls
1757   --enable-accel          use accelerators
1758   --enable-animatectrl    use wxAnimationCtrl class
1759   --enable-button         use wxButton class
1760   --enable-bmpbutton      use wxBitmapButton class
1761   --enable-bmpcombobox    use wxBitmapComboBox class
1762   --enable-calendar       use wxCalendarCtrl class
1763   --enable-caret          use wxCaret class
1764   --enable-checkbox       use wxCheckBox class
1765   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1766   --enable-choice         use wxChoice class
1767   --enable-choicebook     use wxChoicebook class
1768   --enable-collpane       use wxCollapsiblePane class
1769   --enable-colourpicker   use wxColourPickerCtrl class
1770   --enable-combobox       use wxComboBox class
1771   --enable-comboctrl      use wxComboCtrl class
1772   --enable-datepick       use wxDatePickerCtrl class
1773   --enable-dirpicker      use wxDirPickerCtrl class
1774   --enable-display        use wxDisplay class
1775   --enable-detect_sm      use code to detect X11 session manager
1776   --enable-editablebox    use wxEditableListBox class
1777   --enable-filepicker     use wxFilePickerCtrl class
1778   --enable-fontpicker     use wxFontPickerCtrl class
1779   --enable-gauge          use wxGauge class
1780   --enable-grid           use wxGrid class
1781   --enable-dataviewctrl   use wxDataViewCtrl class
1782   --enable-hyperlink      use wxHyperlinkCtrl class
1783   --enable-imaglist       use wxImageList class
1784   --enable-listbook       use wxListbook class
1785   --enable-listbox        use wxListBox class
1786   --enable-listctrl       use wxListCtrl class
1787   --enable-notebook       use wxNotebook class
1788   --enable-odcombobox     use wxOwnerDrawnComboBox class
1789   --enable-radiobox       use wxRadioBox class
1790   --enable-radiobtn       use wxRadioButton class
1791   --enable-sash           use wxSashWindow class
1792   --enable-scrollbar      use wxScrollBar class and scrollable windows
1793   --enable-searchctrl     use wxSearchCtrl class
1794   --enable-slider         use wxSlider class
1795   --enable-spinbtn        use wxSpinButton class
1796   --enable-spinctrl       use wxSpinCtrl class
1797   --enable-splitter       use wxSplitterWindow class
1798   --enable-statbmp        use wxStaticBitmap class
1799   --enable-statbox        use wxStaticBox class
1800   --enable-statline       use wxStaticLine class
1801   --enable-stattext       use wxStaticText class
1802   --enable-statusbar      use wxStatusBar class
1803   --enable-tabdialog      use wxTabControl class
1804   --enable-taskbaricon    use wxTaskBarIcon class
1805   --enable-textctrl       use wxTextCtrl class
1806   --enable-togglebtn      use wxToggleButton class
1807   --enable-toolbar        use wxToolBar class
1808   --enable-tbarnative     use native wxToolBar class
1809   --enable-treebook       use wxTreebook class
1810   --enable-toolbook       use wxToolbook class
1811   --enable-treectrl       use wxTreeCtrl class
1812   --enable-tipwindow      use wxTipWindow class
1813   --enable-popupwin       use wxPopUpWindow class
1814   --enable-commondlg      use all common dialogs
1815   --enable-aboutdlg       use wxAboutBox
1816   --enable-choicedlg      use wxChoiceDialog
1817   --enable-coldlg         use wxColourDialog
1818   --enable-filedlg        use wxFileDialog
1819   --enable-finddlg        use wxFindReplaceDialog
1820   --enable-fontdlg        use wxFontDialog
1821   --enable-dirdlg         use wxDirDialog
1822   --enable-msgdlg         use wxMessageDialog
1823   --enable-numberdlg      use wxNumberEntryDialog
1824   --enable-splash         use wxSplashScreen
1825   --enable-textdlg        use wxTextDialog
1826   --enable-tipdlg         use startup tips
1827   --enable-progressdlg    use wxProgressDialog
1828   --enable-wizarddlg      use wxWizard
1829   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1830   --enable-miniframe      use wxMiniFrame class
1831   --enable-tooltips       use wxToolTip class
1832   --enable-splines        use spline drawing code
1833   --enable-mousewheel     use mousewheel
1834   --enable-validators     use wxValidator and derived classes
1835   --enable-busyinfo       use wxBusyInfo
1836   --enable-joystick       use wxJoystick
1837   --enable-metafiles      use wxMetaFile (Win32 only)
1838   --enable-dragimage      use wxDragImage
1839   --enable-accessibility  enable accessibility support
1840   --enable-palette        use wxPalette class
1841   --enable-image          use wxImage class
1842   --enable-gif            use gif images (GIF file format)
1843   --enable-pcx            use pcx images (PCX file format)
1844   --enable-tga            use tga images (TGA file format)
1845   --enable-iff            use iff images (IFF file format)
1846   --enable-pnm            use pnm images (PNM file format)
1847   --enable-xpm            use xpm images (XPM file format)
1848   --enable-icocur         use Windows ICO and CUR formats
1849   --enable-dccache        cache temporary wxDC objects (Win32 only)
1850   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1851   --enable-wxdib          compile wxDIB class (Win32 only)
1852   --disable-largefile     omit support for large files
1853   --disable-gtktest       do not try to compile and run a test GTK+ program
1854   --disable-gtktest       Do not try to compile and run a test GTK program
1855   --disable-sdltest       Do not try to compile and run a test SDL program
1856   --enable-omf            use OMF object format (OS/2)
1857   --disable-dependency-tracking
1858                           don't use dependency tracking even if the compiler
1859                           can
1860   --disable-precomp-headers
1861                           don't use precompiled headers even if compiler can
1862
1863 Optional Packages:
1864   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1865   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1866   --without-subdirs       don't generate makefiles for samples/demos/...
1867   --with-flavour=NAME     specify a name to identify this build
1868   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1869   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1870   --with-motif            use Motif/Lesstif
1871   --with-mac              use Mac OS X
1872   --with-cocoa            use Cocoa
1873   --with-wine             use Wine
1874   --with-msw              use MS-Windows
1875   --with-pm               use OS/2 Presentation Manager
1876   --with-mgl              use SciTech MGL
1877   --with-directfb         use DirectFB
1878   --with-microwin         use MicroWindows
1879   --with-x11              use X11
1880   --with-libpng           use libpng (PNG image format)
1881   --with-libjpeg          use libjpeg (JPEG file format)
1882   --with-libtiff          use libtiff (TIFF file format)
1883   --with-libxpm           use libxpm (XPM file format)
1884   --with-libmspack        use libmspack (CHM help files loading)
1885   --without-gnomeprint    don't use GNOME printing libraries
1886   --with-gnomevfs         use GNOME VFS for associating MIME types
1887   --with-hildon           use Hildon framework for Nokia 770
1888   --with-opengl           use OpenGL (or Mesa)
1889   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1890   --with-sdl              use SDL for audio on Unix
1891   --with-regex            enable support for wxRegEx class
1892   --with-zlib             use zlib for LZW compression
1893   --with-odbc             use the IODBC and wxODBC classes
1894   --with-expat            enable XML support using expat parser
1895   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1896   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1897   --with-x                use the X Window System
1898   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1899   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1900   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1901   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1902   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1903
1904 Some influential environment variables:
1905   CC          C compiler command
1906   CFLAGS      C compiler flags
1907   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1908               nonstandard directory <lib dir>
1909   LIBS        libraries to pass to the linker, e.g. -l<library>
1910   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1911               you have headers in a nonstandard directory <include dir>
1912   CPP         C preprocessor
1913   CXX         C++ compiler command
1914   CXXFLAGS    C++ compiler flags
1915   PKG_CONFIG  path to pkg-config utility
1916   DIRECTFB_CFLAGS
1917               C compiler flags for DIRECTFB, overriding pkg-config
1918   DIRECTFB_LIBS
1919               linker flags for DIRECTFB, overriding pkg-config
1920   XMKMF       Path to xmkmf, Makefile generator for X Window System
1921   PANGOX_CFLAGS
1922               C compiler flags for PANGOX, overriding pkg-config
1923   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1924   PANGOFT2_CFLAGS
1925               C compiler flags for PANGOFT2, overriding pkg-config
1926   PANGOFT2_LIBS
1927               linker flags for PANGOFT2, overriding pkg-config
1928   PANGOXFT_CFLAGS
1929               C compiler flags for PANGOXFT, overriding pkg-config
1930   PANGOXFT_LIBS
1931               linker flags for PANGOXFT, overriding pkg-config
1932   LIBGNOMEPRINTUI_CFLAGS
1933               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1934   LIBGNOMEPRINTUI_LIBS
1935               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1936   GNOMEVFS_CFLAGS
1937               C compiler flags for GNOMEVFS, overriding pkg-config
1938   GNOMEVFS_LIBS
1939               linker flags for GNOMEVFS, overriding pkg-config
1940   HILDON_CFLAGS
1941               C compiler flags for HILDON, overriding pkg-config
1942   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1943   CAIRO_CFLAGS
1944               C compiler flags for CAIRO, overriding pkg-config
1945   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1946   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1947   GST_LIBS    linker flags for GST, overriding pkg-config
1948
1949 Use these variables to override the choices made by `configure' or to help
1950 it to find libraries and programs with nonstandard names/locations.
1951
1952 Report bugs to <wx-dev@lists.wxwidgets.org>.
1953 _ACEOF
1954 ac_status=$?
1955 fi
1956
1957 if test "$ac_init_help" = "recursive"; then
1958   # If there are subdirs, report their specific --help.
1959   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1960     test -d "$ac_dir" || continue
1961     ac_builddir=.
1962
1963 case "$ac_dir" in
1964 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1965 *)
1966   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1967   # A ".." for each directory in $ac_dir_suffix.
1968   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1969   case $ac_top_builddir_sub in
1970   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1971   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1972   esac ;;
1973 esac
1974 ac_abs_top_builddir=$ac_pwd
1975 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1976 # for backward compatibility:
1977 ac_top_builddir=$ac_top_build_prefix
1978
1979 case $srcdir in
1980   .)  # We are building in place.
1981     ac_srcdir=.
1982     ac_top_srcdir=$ac_top_builddir_sub
1983     ac_abs_top_srcdir=$ac_pwd ;;
1984   [\\/]* | ?:[\\/]* )  # Absolute name.
1985     ac_srcdir=$srcdir$ac_dir_suffix;
1986     ac_top_srcdir=$srcdir
1987     ac_abs_top_srcdir=$srcdir ;;
1988   *) # Relative name.
1989     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1990     ac_top_srcdir=$ac_top_build_prefix$srcdir
1991     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1992 esac
1993 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1994
1995     cd "$ac_dir" || { ac_status=$?; continue; }
1996     # Check for guested configure.
1997     if test -f "$ac_srcdir/configure.gnu"; then
1998       echo &&
1999       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2000     elif test -f "$ac_srcdir/configure"; then
2001       echo &&
2002       $SHELL "$ac_srcdir/configure" --help=recursive
2003     else
2004       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2005     fi || ac_status=$?
2006     cd "$ac_pwd" || { ac_status=$?; break; }
2007   done
2008 fi
2009
2010 test -n "$ac_init_help" && exit $ac_status
2011 if $ac_init_version; then
2012   cat <<\_ACEOF
2013 wxWidgets configure 2.9.0
2014 generated by GNU Autoconf 2.61
2015
2016 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2017 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2018 This configure script is free software; the Free Software Foundation
2019 gives unlimited permission to copy, distribute and modify it.
2020 _ACEOF
2021   exit
2022 fi
2023 cat >config.log <<_ACEOF
2024 This file contains any messages produced by compilers while
2025 running configure, to aid debugging if configure makes a mistake.
2026
2027 It was created by wxWidgets $as_me 2.9.0, which was
2028 generated by GNU Autoconf 2.61.  Invocation command line was
2029
2030   $ $0 $@
2031
2032 _ACEOF
2033 exec 5>>config.log
2034 {
2035 cat <<_ASUNAME
2036 ## --------- ##
2037 ## Platform. ##
2038 ## --------- ##
2039
2040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2045
2046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2047 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2048
2049 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2050 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2052 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2053 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2054 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2055 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2056
2057 _ASUNAME
2058
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064   echo "PATH: $as_dir"
2065 done
2066 IFS=$as_save_IFS
2067
2068 } >&5
2069
2070 cat >&5 <<_ACEOF
2071
2072
2073 ## ----------- ##
2074 ## Core tests. ##
2075 ## ----------- ##
2076
2077 _ACEOF
2078
2079
2080 # Keep a trace of the command line.
2081 # Strip out --no-create and --no-recursion so they do not pile up.
2082 # Strip out --silent because we don't want to record it for future runs.
2083 # Also quote any args containing shell meta-characters.
2084 # Make two passes to allow for proper duplicate-argument suppression.
2085 ac_configure_args=
2086 ac_configure_args0=
2087 ac_configure_args1=
2088 ac_must_keep_next=false
2089 for ac_pass in 1 2
2090 do
2091   for ac_arg
2092   do
2093     case $ac_arg in
2094     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2095     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2096     | -silent | --silent | --silen | --sile | --sil)
2097       continue ;;
2098     *\'*)
2099       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2100     esac
2101     case $ac_pass in
2102     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2103     2)
2104       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2105       if test $ac_must_keep_next = true; then
2106         ac_must_keep_next=false # Got value, back to normal.
2107       else
2108         case $ac_arg in
2109           *=* | --config-cache | -C | -disable-* | --disable-* \
2110           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2111           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2112           | -with-* | --with-* | -without-* | --without-* | --x)
2113             case "$ac_configure_args0 " in
2114               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2115             esac
2116             ;;
2117           -* ) ac_must_keep_next=true ;;
2118         esac
2119       fi
2120       ac_configure_args="$ac_configure_args '$ac_arg'"
2121       ;;
2122     esac
2123   done
2124 done
2125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2127
2128 # When interrupted or exit'd, cleanup temporary files, and complete
2129 # config.log.  We remove comments because anyway the quotes in there
2130 # would cause problems or look ugly.
2131 # WARNING: Use '\'' to represent an apostrophe within the trap.
2132 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2133 trap 'exit_status=$?
2134   # Save into config.log some information that might help in debugging.
2135   {
2136     echo
2137
2138     cat <<\_ASBOX
2139 ## ---------------- ##
2140 ## Cache variables. ##
2141 ## ---------------- ##
2142 _ASBOX
2143     echo
2144     # The following way of writing the cache mishandles newlines in values,
2145 (
2146   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2147     eval ac_val=\$$ac_var
2148     case $ac_val in #(
2149     *${as_nl}*)
2150       case $ac_var in #(
2151       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2152 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2153       esac
2154       case $ac_var in #(
2155       _ | IFS | as_nl) ;; #(
2156       *) $as_unset $ac_var ;;
2157       esac ;;
2158     esac
2159   done
2160   (set) 2>&1 |
2161     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2162     *${as_nl}ac_space=\ *)
2163       sed -n \
2164         "s/'\''/'\''\\\\'\'''\''/g;
2165           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2166       ;; #(
2167     *)
2168       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2169       ;;
2170     esac |
2171     sort
2172 )
2173     echo
2174
2175     cat <<\_ASBOX
2176 ## ----------------- ##
2177 ## Output variables. ##
2178 ## ----------------- ##
2179 _ASBOX
2180     echo
2181     for ac_var in $ac_subst_vars
2182     do
2183       eval ac_val=\$$ac_var
2184       case $ac_val in
2185       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2186       esac
2187       echo "$ac_var='\''$ac_val'\''"
2188     done | sort
2189     echo
2190
2191     if test -n "$ac_subst_files"; then
2192       cat <<\_ASBOX
2193 ## ------------------- ##
2194 ## File substitutions. ##
2195 ## ------------------- ##
2196 _ASBOX
2197       echo
2198       for ac_var in $ac_subst_files
2199       do
2200         eval ac_val=\$$ac_var
2201         case $ac_val in
2202         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203         esac
2204         echo "$ac_var='\''$ac_val'\''"
2205       done | sort
2206       echo
2207     fi
2208
2209     if test -s confdefs.h; then
2210       cat <<\_ASBOX
2211 ## ----------- ##
2212 ## confdefs.h. ##
2213 ## ----------- ##
2214 _ASBOX
2215       echo
2216       cat confdefs.h
2217       echo
2218     fi
2219     test "$ac_signal" != 0 &&
2220       echo "$as_me: caught signal $ac_signal"
2221     echo "$as_me: exit $exit_status"
2222   } >&5
2223   rm -f core *.core core.conftest.* &&
2224     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2225     exit $exit_status
2226 ' 0
2227 for ac_signal in 1 2 13 15; do
2228   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2229 done
2230 ac_signal=0
2231
2232 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2233 rm -f -r conftest* confdefs.h
2234
2235 # Predefined preprocessor variables.
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_NAME "$PACKAGE_NAME"
2239 _ACEOF
2240
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2244 _ACEOF
2245
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2249 _ACEOF
2250
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_STRING "$PACKAGE_STRING"
2254 _ACEOF
2255
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2259 _ACEOF
2260
2261
2262 # Let the site file select an alternate cache file if it wants to.
2263 # Prefer explicitly selected file to automatically selected ones.
2264 if test -n "$CONFIG_SITE"; then
2265   set x "$CONFIG_SITE"
2266 elif test "x$prefix" != xNONE; then
2267   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2268 else
2269   set x "$ac_default_prefix/share/config.site" \
2270         "$ac_default_prefix/etc/config.site"
2271 fi
2272 shift
2273 for ac_site_file
2274 do
2275   if test -r "$ac_site_file"; then
2276     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2277 echo "$as_me: loading site script $ac_site_file" >&6;}
2278     sed 's/^/| /' "$ac_site_file" >&5
2279     . "$ac_site_file"
2280   fi
2281 done
2282
2283 if test -r "$cache_file"; then
2284   # Some versions of bash will fail to source /dev/null (special
2285   # files actually), so we avoid doing that.
2286   if test -f "$cache_file"; then
2287     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2288 echo "$as_me: loading cache $cache_file" >&6;}
2289     case $cache_file in
2290       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2291       *)                      . "./$cache_file";;
2292     esac
2293   fi
2294 else
2295   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2296 echo "$as_me: creating cache $cache_file" >&6;}
2297   >$cache_file
2298 fi
2299
2300 # Check that the precious variables saved in the cache have kept the same
2301 # value.
2302 ac_cache_corrupted=false
2303 for ac_var in $ac_precious_vars; do
2304   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2305   eval ac_new_set=\$ac_env_${ac_var}_set
2306   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2307   eval ac_new_val=\$ac_env_${ac_var}_value
2308   case $ac_old_set,$ac_new_set in
2309     set,)
2310       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2311 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2312       ac_cache_corrupted=: ;;
2313     ,set)
2314       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2315 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2316       ac_cache_corrupted=: ;;
2317     ,);;
2318     *)
2319       if test "x$ac_old_val" != "x$ac_new_val"; then
2320         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2321 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2322         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2323 echo "$as_me:   former value:  $ac_old_val" >&2;}
2324         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2325 echo "$as_me:   current value: $ac_new_val" >&2;}
2326         ac_cache_corrupted=:
2327       fi;;
2328   esac
2329   # Pass precious variables to config.status.
2330   if test "$ac_new_set" = set; then
2331     case $ac_new_val in
2332     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2333     *) ac_arg=$ac_var=$ac_new_val ;;
2334     esac
2335     case " $ac_configure_args " in
2336       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2337       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2338     esac
2339   fi
2340 done
2341 if $ac_cache_corrupted; then
2342   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2343 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2344   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2345 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2346    { (exit 1); exit 1; }; }
2347 fi
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373 ac_ext=c
2374 ac_cpp='$CPP $CPPFLAGS'
2375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378
2379
2380
2381
2382
2383 ac_aux_dir=
2384 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2385   if test -f "$ac_dir/install-sh"; then
2386     ac_aux_dir=$ac_dir
2387     ac_install_sh="$ac_aux_dir/install-sh -c"
2388     break
2389   elif test -f "$ac_dir/install.sh"; then
2390     ac_aux_dir=$ac_dir
2391     ac_install_sh="$ac_aux_dir/install.sh -c"
2392     break
2393   elif test -f "$ac_dir/shtool"; then
2394     ac_aux_dir=$ac_dir
2395     ac_install_sh="$ac_aux_dir/shtool install -c"
2396     break
2397   fi
2398 done
2399 if test -z "$ac_aux_dir"; then
2400   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2401 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2402    { (exit 1); exit 1; }; }
2403 fi
2404
2405 # These three variables are undocumented and unsupported,
2406 # and are intended to be withdrawn in a future Autoconf release.
2407 # They can cause serious problems if a builder's source tree is in a directory
2408 # whose full name contains unusual characters.
2409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2411 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2412
2413
2414 # Make sure we can run config.sub.
2415 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2416   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2417 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2418    { (exit 1); exit 1; }; }
2419
2420 { echo "$as_me:$LINENO: checking build system type" >&5
2421 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2422 if test "${ac_cv_build+set}" = set; then
2423   echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425   ac_build_alias=$build_alias
2426 test "x$ac_build_alias" = x &&
2427   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2428 test "x$ac_build_alias" = x &&
2429   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2430 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2431    { (exit 1); exit 1; }; }
2432 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2433   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2434 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2435    { (exit 1); exit 1; }; }
2436
2437 fi
2438 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2439 echo "${ECHO_T}$ac_cv_build" >&6; }
2440 case $ac_cv_build in
2441 *-*-*) ;;
2442 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2443 echo "$as_me: error: invalid value of canonical build" >&2;}
2444    { (exit 1); exit 1; }; };;
2445 esac
2446 build=$ac_cv_build
2447 ac_save_IFS=$IFS; IFS='-'
2448 set x $ac_cv_build
2449 shift
2450 build_cpu=$1
2451 build_vendor=$2
2452 shift; shift
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2455 build_os=$*
2456 IFS=$ac_save_IFS
2457 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2458
2459
2460 { echo "$as_me:$LINENO: checking host system type" >&5
2461 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2462 if test "${ac_cv_host+set}" = set; then
2463   echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465   if test "x$host_alias" = x; then
2466   ac_cv_host=$ac_cv_build
2467 else
2468   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2469     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2470 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2471    { (exit 1); exit 1; }; }
2472 fi
2473
2474 fi
2475 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2476 echo "${ECHO_T}$ac_cv_host" >&6; }
2477 case $ac_cv_host in
2478 *-*-*) ;;
2479 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2480 echo "$as_me: error: invalid value of canonical host" >&2;}
2481    { (exit 1); exit 1; }; };;
2482 esac
2483 host=$ac_cv_host
2484 ac_save_IFS=$IFS; IFS='-'
2485 set x $ac_cv_host
2486 shift
2487 host_cpu=$1
2488 host_vendor=$2
2489 shift; shift
2490 # Remember, the first character of IFS is used to create $*,
2491 # except with old shells:
2492 host_os=$*
2493 IFS=$ac_save_IFS
2494 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2495
2496
2497 { echo "$as_me:$LINENO: checking target system type" >&5
2498 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2499 if test "${ac_cv_target+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   if test "x$target_alias" = x; then
2503   ac_cv_target=$ac_cv_host
2504 else
2505   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2506     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2507 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2508    { (exit 1); exit 1; }; }
2509 fi
2510
2511 fi
2512 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2513 echo "${ECHO_T}$ac_cv_target" >&6; }
2514 case $ac_cv_target in
2515 *-*-*) ;;
2516 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2517 echo "$as_me: error: invalid value of canonical target" >&2;}
2518    { (exit 1); exit 1; }; };;
2519 esac
2520 target=$ac_cv_target
2521 ac_save_IFS=$IFS; IFS='-'
2522 set x $ac_cv_target
2523 shift
2524 target_cpu=$1
2525 target_vendor=$2
2526 shift; shift
2527 # Remember, the first character of IFS is used to create $*,
2528 # except with old shells:
2529 target_os=$*
2530 IFS=$ac_save_IFS
2531 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2532
2533
2534 # The aliases save the names the user supplied, while $host etc.
2535 # will get canonicalized.
2536 test -n "$target_alias" &&
2537   test "$program_prefix$program_suffix$program_transform_name" = \
2538     NONENONEs,x,x, &&
2539   program_prefix=${target_alias}-
2540
2541
2542
2543 wx_major_version_number=2
2544 wx_minor_version_number=9
2545 wx_release_number=0
2546 wx_subrelease_number=0
2547
2548 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2549 WX_VERSION=$WX_RELEASE.$wx_release_number
2550 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2551
2552 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2553
2554
2555 wx_top_builddir="`pwd`"
2556
2557
2558
2559
2560 USE_UNIX=1
2561 USE_OS2=0
2562 USE_WIN32=0
2563 USE_DOS=0
2564 USE_BEOS=0
2565 USE_MAC=0
2566
2567 USE_AIX=
2568 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2569 USE_GNU=                            USE_HPUX=
2570 USE_LINUX=
2571 USE_NETBSD=
2572 USE_OPENBSD=
2573 USE_OSF=                            USE_SGI=
2574 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2575 USE_ULTRIX=
2576 USE_UNIXWARE=
2577
2578 USE_ALPHA=
2579
2580 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2581
2582 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2583
2584 DEFAULT_wxUSE_COCOA=0
2585 DEFAULT_wxUSE_GTK=0
2586 DEFAULT_wxUSE_MAC=0
2587 DEFAULT_wxUSE_MGL=0
2588 DEFAULT_wxUSE_MICROWIN=0
2589 DEFAULT_wxUSE_MOTIF=0
2590 DEFAULT_wxUSE_MSW=0
2591 DEFAULT_wxUSE_PM=0
2592 DEFAULT_wxUSE_X11=0
2593 DEFAULT_wxUSE_DFB=0
2594
2595 DEFAULT_DEFAULT_wxUSE_COCOA=0
2596 DEFAULT_DEFAULT_wxUSE_GTK=0
2597 DEFAULT_DEFAULT_wxUSE_MAC=0
2598 DEFAULT_DEFAULT_wxUSE_MGL=0
2599 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2600 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2601 DEFAULT_DEFAULT_wxUSE_MSW=0
2602 DEFAULT_DEFAULT_wxUSE_PM=0
2603 DEFAULT_DEFAULT_wxUSE_X11=0
2604 DEFAULT_DEFAULT_wxUSE_DFB=0
2605
2606 PROGRAM_EXT=
2607 SO_SUFFIX=so
2608 SAMPLES_RPATH_FLAG=
2609 SAMPLES_RPATH_POSTLINK=
2610
2611 DEFAULT_STD_FLAG=yes
2612
2613 case "${host}" in
2614   *-hp-hpux* )
2615     USE_HPUX=1
2616     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2617     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2618     SO_SUFFIX=sl
2619     cat >>confdefs.h <<\_ACEOF
2620 #define __HPUX__ 1
2621 _ACEOF
2622
2623
2624             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2625   ;;
2626   *-*-linux* )
2627     USE_LINUX=1
2628     cat >>confdefs.h <<\_ACEOF
2629 #define __LINUX__ 1
2630 _ACEOF
2631
2632     TMP=`uname -m`
2633     if test "x$TMP" = "xalpha"; then
2634       USE_ALPHA=1
2635       cat >>confdefs.h <<\_ACEOF
2636 #define __ALPHA__ 1
2637 _ACEOF
2638
2639     fi
2640     DEFAULT_DEFAULT_wxUSE_GTK=1
2641   ;;
2642   *-*-gnu* | *-*-k*bsd*-gnu )
2643     USE_GNU=1
2644     TMP=`uname -m`
2645     if test "x$TMP" = "xalpha"; then
2646       USE_ALPHA=1
2647       cat >>confdefs.h <<\_ACEOF
2648 #define __ALPHA__ 1
2649 _ACEOF
2650
2651     fi
2652     DEFAULT_DEFAULT_wxUSE_GTK=1
2653   ;;
2654   *-*-irix5* | *-*-irix6* )
2655     USE_SGI=1
2656     USE_SVR4=1
2657     cat >>confdefs.h <<\_ACEOF
2658 #define __SGI__ 1
2659 _ACEOF
2660
2661     cat >>confdefs.h <<\_ACEOF
2662 #define __SVR4__ 1
2663 _ACEOF
2664
2665     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2666   ;;
2667   *-*-solaris2* )
2668     USE_SUN=1
2669     USE_SOLARIS=1
2670     USE_SVR4=1
2671     cat >>confdefs.h <<\_ACEOF
2672 #define __SUN__ 1
2673 _ACEOF
2674
2675     cat >>confdefs.h <<\_ACEOF
2676 #define __SOLARIS__ 1
2677 _ACEOF
2678
2679     cat >>confdefs.h <<\_ACEOF
2680 #define __SVR4__ 1
2681 _ACEOF
2682
2683     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2684     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2685   ;;
2686   *-*-sunos4* )
2687     USE_SUN=1
2688     USE_SUNOS=1
2689     USE_BSD=1
2690     cat >>confdefs.h <<\_ACEOF
2691 #define __SUN__ 1
2692 _ACEOF
2693
2694     cat >>confdefs.h <<\_ACEOF
2695 #define __SUNOS__ 1
2696 _ACEOF
2697
2698     cat >>confdefs.h <<\_ACEOF
2699 #define __BSD__ 1
2700 _ACEOF
2701
2702     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2703   ;;
2704   *-*-freebsd*)
2705     USE_BSD=1
2706     USE_FREEBSD=1
2707     cat >>confdefs.h <<\_ACEOF
2708 #define __FREEBSD__ 1
2709 _ACEOF
2710
2711     cat >>confdefs.h <<\_ACEOF
2712 #define __BSD__ 1
2713 _ACEOF
2714
2715     DEFAULT_DEFAULT_wxUSE_GTK=1
2716   ;;
2717   *-*-openbsd*|*-*-mirbsd*)
2718     USE_BSD=1
2719     USE_OPENBSD=1
2720     cat >>confdefs.h <<\_ACEOF
2721 #define __OPENBSD__ 1
2722 _ACEOF
2723
2724     cat >>confdefs.h <<\_ACEOF
2725 #define __BSD__ 1
2726 _ACEOF
2727
2728     DEFAULT_DEFAULT_wxUSE_GTK=1
2729   ;;
2730   *-*-netbsd*)
2731     USE_BSD=1
2732     USE_NETBSD=1
2733     cat >>confdefs.h <<\_ACEOF
2734 #define __NETBSD__ 1
2735 _ACEOF
2736
2737     cat >>confdefs.h <<\_ACEOF
2738 #define __BSD__ 1
2739 _ACEOF
2740
2741     DEFAULT_DEFAULT_wxUSE_GTK=1
2742     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2743
2744             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2745   ;;
2746   *-*-osf* )
2747     USE_ALPHA=1
2748     USE_OSF=1
2749     cat >>confdefs.h <<\_ACEOF
2750 #define __ALPHA__ 1
2751 _ACEOF
2752
2753     cat >>confdefs.h <<\_ACEOF
2754 #define __OSF__ 1
2755 _ACEOF
2756
2757     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2758     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2759   ;;
2760   *-*-dgux5* )
2761     USE_ALPHA=1
2762     USE_SVR4=1
2763     cat >>confdefs.h <<\_ACEOF
2764 #define __ALPHA__ 1
2765 _ACEOF
2766
2767     cat >>confdefs.h <<\_ACEOF
2768 #define __SVR4__ 1
2769 _ACEOF
2770
2771     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2772   ;;
2773   *-*-sysv5* )
2774     USE_SYSV=1
2775     USE_SVR4=1
2776     cat >>confdefs.h <<\_ACEOF
2777 #define __SYSV__ 1
2778 _ACEOF
2779
2780     cat >>confdefs.h <<\_ACEOF
2781 #define __SVR4__ 1
2782 _ACEOF
2783
2784     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2785   ;;
2786   *-*-aix* )
2787     USE_AIX=1
2788     USE_SYSV=1
2789     USE_SVR4=1
2790                         SO_SUFFIX=a
2791     cat >>confdefs.h <<\_ACEOF
2792 #define __AIX__ 1
2793 _ACEOF
2794
2795     cat >>confdefs.h <<\_ACEOF
2796 #define __SYSV__ 1
2797 _ACEOF
2798
2799     cat >>confdefs.h <<\_ACEOF
2800 #define __SVR4__ 1
2801 _ACEOF
2802
2803     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2804   ;;
2805
2806   *-*-*UnixWare*)
2807     USE_SYSV=1
2808     USE_SVR4=1
2809     USE_UNIXWARE=1
2810     cat >>confdefs.h <<\_ACEOF
2811 #define __UNIXWARE__ 1
2812 _ACEOF
2813
2814   ;;
2815
2816   *-*-cygwin* | *-*-mingw32* )
2817                 SO_SUFFIX=dll
2818     PROGRAM_EXT=".exe"
2819     DEFAULT_DEFAULT_wxUSE_MSW=1
2820   ;;
2821
2822   *-pc-msdosdjgpp )
2823     USE_UNIX=0
2824     USE_DOS=1
2825     cat >>confdefs.h <<\_ACEOF
2826 #define __DOS__ 1
2827 _ACEOF
2828
2829     PROGRAM_EXT=".exe"
2830     DEFAULT_DEFAULT_wxUSE_MGL=1
2831   ;;
2832
2833   *-pc-os2_emx | *-pc-os2-emx )
2834     cat >>confdefs.h <<\_ACEOF
2835 #define __EMX__ 1
2836 _ACEOF
2837
2838     USE_OS2=1
2839     cat >>confdefs.h <<\_ACEOF
2840 #define __OS2__ 1
2841 _ACEOF
2842
2843     PROGRAM_EXT=".exe"
2844     DEFAULT_DEFAULT_wxUSE_PM=1
2845         CXX=gcc
2846     LDFLAGS="$LDFLAGS -Zcrtdll"
2847                         ac_executable_extensions=".exe"
2848     export ac_executable_extensions
2849             ac_save_IFS="$IFS"
2850     IFS='\\'
2851     ac_TEMP_PATH=
2852     for ac_dir in $PATH; do
2853       IFS=$ac_save_IFS
2854       if test -z "$ac_TEMP_PATH"; then
2855         ac_TEMP_PATH="$ac_dir"
2856       else
2857         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2858       fi
2859     done
2860     export PATH="$ac_TEMP_PATH"
2861     unset ac_TEMP_PATH
2862     DEFAULT_STD_FLAG=no
2863   ;;
2864
2865   *-*-darwin* )
2866         USE_BSD=1
2867     USE_DARWIN=1
2868     SO_SUFFIX=dylib
2869     cat >>confdefs.h <<\_ACEOF
2870 #define __BSD__ 1
2871 _ACEOF
2872
2873     cat >>confdefs.h <<\_ACEOF
2874 #define __DARWIN__ 1
2875 _ACEOF
2876
2877     cat >>confdefs.h <<\_ACEOF
2878 #define TARGET_CARBON 1
2879 _ACEOF
2880
2881     DEFAULT_DEFAULT_wxUSE_MAC=1
2882     DEFAULT_STD_FLAG=no
2883   ;;
2884   powerpc-apple-macos* )
2885         USE_UNIX=0
2886             ac_cv_c_bigendian=yes
2887     SO_SUFFIX=shlib
2888             DEFAULT_DEFAULT_wxUSE_MAC=1
2889     DEFAULT_STD_FLAG=no
2890   ;;
2891
2892   *-*-beos* )
2893         USE_BEOS=1
2894     cat >>confdefs.h <<\_ACEOF
2895 #define __BEOS__ 1
2896 _ACEOF
2897
2898   ;;
2899
2900   *)
2901     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2902 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2903     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2904 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2905
2906     DEFAULT_DEFAULT_wxUSE_X11=1
2907     DEFAULT_wxUSE_SHARED=no
2908 esac
2909
2910
2911
2912
2913           wx_arg_cache_file="configarg.cache"
2914           echo "loading argument cache $wx_arg_cache_file"
2915           rm -f ${wx_arg_cache_file}.tmp
2916           touch ${wx_arg_cache_file}.tmp
2917           touch ${wx_arg_cache_file}
2918
2919
2920 DEFAULT_wxUSE_ALL_FEATURES=yes
2921
2922 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2923 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2924
2925 DEFAULT_wxUSE_DMALLOC=no
2926 DEFAULT_wxUSE_LIBGNOMEVFS=no
2927 DEFAULT_wxUSE_LIBHILDON=no
2928 DEFAULT_wxUSE_LIBMSPACK=no
2929 DEFAULT_wxUSE_LIBSDL=no
2930 DEFAULT_wxUSE_ODBC=no
2931 DEFAULT_wxUSE_OPENGL=no
2932
2933 DEFAULT_wxUSE_ACCESSIBILITY=no
2934 DEFAULT_wxUSE_DATAVIEWCTRL=no
2935 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2936 DEFAULT_wxUSE_MEDIACTRL=no
2937 DEFAULT_wxUSE_TAB_DIALOG=no
2938
2939 DEFAULT_wxUSE_UNICODE_UTF8=auto
2940 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2941
2942 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2943
2944 DEFAULT_wxUSE_GTK2=yes
2945
2946 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2947
2948
2949 for toolkit in `echo $ALL_TOOLKITS`; do
2950   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2951   if test "x$LINE" != "x" ; then
2952     has_toolkit_in_cache=1
2953     eval "DEFAULT_$LINE"
2954     eval "CACHE_$toolkit=1"
2955
2956     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2957     if test "x$LINE" != "x" ; then
2958         eval "DEFAULT_$LINE"
2959     fi
2960   fi
2961 done
2962
2963
2964
2965
2966
2967           enablestring=disable
2968           defaultval=
2969           if test -z "$defaultval"; then
2970               if test x"$enablestring" = xdisable; then
2971                   defaultval=yes
2972               else
2973                   defaultval=no
2974               fi
2975           fi
2976
2977           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2978 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2979           # Check whether --enable-gui was given.
2980 if test "${enable_gui+set}" = set; then
2981   enableval=$enable_gui;
2982                           if test "$enableval" = yes; then
2983                             wx_cv_use_gui='wxUSE_GUI=yes'
2984                           else
2985                             wx_cv_use_gui='wxUSE_GUI=no'
2986                           fi
2987                           cache=yes
2988
2989 else
2990
2991                           LINE=`grep "^wxUSE_GUI=" ${wx_arg_cache_file}`
2992                           if test "x$LINE" != x ; then
2993                             eval "DEFAULT_$LINE"
2994                           fi
2995
2996                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
2997
2998 fi
2999
3000
3001           eval "$wx_cv_use_gui"
3002           if test "x$cache" = xyes; then
3003             echo "wxUSE_GUI=$wxUSE_GUI" >> ${wx_arg_cache_file}.tmp
3004           fi
3005
3006           if test x"$enablestring" = xdisable; then
3007             if test $wxUSE_GUI = yes; then
3008               result=no
3009             else
3010               result=yes
3011             fi
3012           else
3013             result=$wxUSE_GUI
3014           fi
3015
3016           { echo "$as_me:$LINENO: result: $result" >&5
3017 echo "${ECHO_T}$result" >&6; }
3018
3019
3020           enablestring=
3021           defaultval=
3022           if test -z "$defaultval"; then
3023               if test x"$enablestring" = xdisable; then
3024                   defaultval=yes
3025               else
3026                   defaultval=no
3027               fi
3028           fi
3029
3030           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3031 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3032           # Check whether --enable-monolithic was given.
3033 if test "${enable_monolithic+set}" = set; then
3034   enableval=$enable_monolithic;
3035                           if test "$enableval" = yes; then
3036                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3037                           else
3038                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3039                           fi
3040                           cache=yes
3041
3042 else
3043
3044                           LINE=`grep "^wxUSE_MONOLITHIC=" ${wx_arg_cache_file}`
3045                           if test "x$LINE" != x ; then
3046                             eval "DEFAULT_$LINE"
3047                           fi
3048
3049                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3050
3051 fi
3052
3053
3054           eval "$wx_cv_use_monolithic"
3055           if test "x$cache" = xyes; then
3056             echo "wxUSE_MONOLITHIC=$wxUSE_MONOLITHIC" >> ${wx_arg_cache_file}.tmp
3057           fi
3058
3059           if test x"$enablestring" = xdisable; then
3060             if test $wxUSE_MONOLITHIC = yes; then
3061               result=no
3062             else
3063               result=yes
3064             fi
3065           else
3066             result=$wxUSE_MONOLITHIC
3067           fi
3068
3069           { echo "$as_me:$LINENO: result: $result" >&5
3070 echo "${ECHO_T}$result" >&6; }
3071
3072
3073           enablestring=
3074           defaultval=
3075           if test -z "$defaultval"; then
3076               if test x"$enablestring" = xdisable; then
3077                   defaultval=yes
3078               else
3079                   defaultval=no
3080               fi
3081           fi
3082
3083           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3084 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3085           # Check whether --enable-plugins was given.
3086 if test "${enable_plugins+set}" = set; then
3087   enableval=$enable_plugins;
3088                           if test "$enableval" = yes; then
3089                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3090                           else
3091                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3092                           fi
3093                           cache=yes
3094
3095 else
3096
3097                           LINE=`grep "^wxUSE_PLUGINS=" ${wx_arg_cache_file}`
3098                           if test "x$LINE" != x ; then
3099                             eval "DEFAULT_$LINE"
3100                           fi
3101
3102                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3103
3104 fi
3105
3106
3107           eval "$wx_cv_use_plugins"
3108           if test "x$cache" = xyes; then
3109             echo "wxUSE_PLUGINS=$wxUSE_PLUGINS" >> ${wx_arg_cache_file}.tmp
3110           fi
3111
3112           if test x"$enablestring" = xdisable; then
3113             if test $wxUSE_PLUGINS = yes; then
3114               result=no
3115             else
3116               result=yes
3117             fi
3118           else
3119             result=$wxUSE_PLUGINS
3120           fi
3121
3122           { echo "$as_me:$LINENO: result: $result" >&5
3123 echo "${ECHO_T}$result" >&6; }
3124
3125
3126           withstring=without
3127           defaultval=$wxUSE_ALL_FEATURES
3128           if test -z "$defaultval"; then
3129               if test x"$withstring" = xwithout; then
3130                   defaultval=yes
3131               else
3132                   defaultval=no
3133               fi
3134           fi
3135           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3136 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3137
3138 # Check whether --with-subdirs was given.
3139 if test "${with_subdirs+set}" = set; then
3140   withval=$with_subdirs;
3141                         if test "$withval" = yes; then
3142                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3143                         else
3144                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3145                         fi
3146                         cache=yes
3147
3148 else
3149
3150                         LINE=`grep "^wxWITH_SUBDIRS=" ${wx_arg_cache_file}`
3151                         if test "x$LINE" != x ; then
3152                           eval "DEFAULT_$LINE"
3153                         fi
3154
3155                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3156
3157 fi
3158
3159
3160           eval "$wx_cv_use_subdirs"
3161           if test "x$cache" != xyes; then
3162             echo "wxWITH_SUBDIRS=$wxWITH_SUBDIRS" >> ${wx_arg_cache_file}.tmp
3163           fi
3164
3165           if test x"$withstring" = xwithout; then
3166             if test $wxWITH_SUBDIRS = yes; then
3167               result=no
3168             else
3169               result=yes
3170             fi
3171           else
3172             result=$wxWITH_SUBDIRS
3173           fi
3174
3175           { echo "$as_me:$LINENO: result: $result" >&5
3176 echo "${ECHO_T}$result" >&6; }
3177
3178
3179 # Check whether --with-flavour was given.
3180 if test "${with_flavour+set}" = set; then
3181   withval=$with_flavour; WX_FLAVOUR="$withval"
3182 fi
3183
3184
3185           enablestring=
3186           defaultval=
3187           if test -z "$defaultval"; then
3188               if test x"$enablestring" = xdisable; then
3189                   defaultval=yes
3190               else
3191                   defaultval=no
3192               fi
3193           fi
3194
3195           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3196 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3197           # Check whether --enable-official_build was given.
3198 if test "${enable_official_build+set}" = set; then
3199   enableval=$enable_official_build;
3200                           if test "$enableval" = yes; then
3201                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3202                           else
3203                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3204                           fi
3205                           cache=yes
3206
3207 else
3208
3209                           LINE=`grep "^wxUSE_OFFICIAL_BUILD=" ${wx_arg_cache_file}`
3210                           if test "x$LINE" != x ; then
3211                             eval "DEFAULT_$LINE"
3212                           fi
3213
3214                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3215
3216 fi
3217
3218
3219           eval "$wx_cv_use_official_build"
3220           if test "x$cache" = xyes; then
3221             echo "wxUSE_OFFICIAL_BUILD=$wxUSE_OFFICIAL_BUILD" >> ${wx_arg_cache_file}.tmp
3222           fi
3223
3224           if test x"$enablestring" = xdisable; then
3225             if test $wxUSE_OFFICIAL_BUILD = yes; then
3226               result=no
3227             else
3228               result=yes
3229             fi
3230           else
3231             result=$wxUSE_OFFICIAL_BUILD
3232           fi
3233
3234           { echo "$as_me:$LINENO: result: $result" >&5
3235 echo "${ECHO_T}$result" >&6; }
3236
3237 # Check whether --enable-vendor was given.
3238 if test "${enable_vendor+set}" = set; then
3239   enableval=$enable_vendor; VENDOR="$enableval"
3240 fi
3241
3242 if test "x$VENDOR" = "x"; then
3243     VENDOR="custom"
3244 fi
3245
3246
3247           enablestring=disable
3248           defaultval=
3249           if test -z "$defaultval"; then
3250               if test x"$enablestring" = xdisable; then
3251                   defaultval=yes
3252               else
3253                   defaultval=no
3254               fi
3255           fi
3256
3257           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3258 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3259           # Check whether --enable-all-features was given.
3260 if test "${enable_all_features+set}" = set; then
3261   enableval=$enable_all_features;
3262                           if test "$enableval" = yes; then
3263                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3264                           else
3265                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3266                           fi
3267                           cache=yes
3268
3269 else
3270
3271                           LINE=`grep "^wxUSE_ALL_FEATURES=" ${wx_arg_cache_file}`
3272                           if test "x$LINE" != x ; then
3273                             eval "DEFAULT_$LINE"
3274                           fi
3275
3276                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3277
3278 fi
3279
3280
3281           eval "$wx_cv_use_all_features"
3282           if test "x$cache" = xyes; then
3283             echo "wxUSE_ALL_FEATURES=$wxUSE_ALL_FEATURES" >> ${wx_arg_cache_file}.tmp
3284           fi
3285
3286           if test x"$enablestring" = xdisable; then
3287             if test $wxUSE_ALL_FEATURES = yes; then
3288               result=no
3289             else
3290               result=yes
3291             fi
3292           else
3293             result=$wxUSE_ALL_FEATURES
3294           fi
3295
3296           { echo "$as_me:$LINENO: result: $result" >&5
3297 echo "${ECHO_T}$result" >&6; }
3298
3299
3300
3301 if test "$wxUSE_GUI" = "yes"; then
3302
3303
3304           enablestring=
3305           defaultval=
3306           if test -z "$defaultval"; then
3307               if test x"$enablestring" = xdisable; then
3308                   defaultval=yes
3309               else
3310                   defaultval=no
3311               fi
3312           fi
3313
3314           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3315 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3316           # Check whether --enable-universal was given.
3317 if test "${enable_universal+set}" = set; then
3318   enableval=$enable_universal;
3319                           if test "$enableval" = yes; then
3320                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3321                           else
3322                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3323                           fi
3324                           cache=yes
3325
3326 else
3327
3328                           LINE=`grep "^wxUSE_UNIVERSAL=" ${wx_arg_cache_file}`
3329                           if test "x$LINE" != x ; then
3330                             eval "DEFAULT_$LINE"
3331                           fi
3332
3333                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3334
3335 fi
3336
3337
3338           eval "$wx_cv_use_universal"
3339           if test "x$cache" = xyes; then
3340             echo "wxUSE_UNIVERSAL=$wxUSE_UNIVERSAL" >> ${wx_arg_cache_file}.tmp
3341           fi
3342
3343           if test x"$enablestring" = xdisable; then
3344             if test $wxUSE_UNIVERSAL = yes; then
3345               result=no
3346             else
3347               result=yes
3348             fi
3349           else
3350             result=$wxUSE_UNIVERSAL
3351           fi
3352
3353           { echo "$as_me:$LINENO: result: $result" >&5
3354 echo "${ECHO_T}$result" >&6; }
3355
3356 if test "$wxUSE_UNIVERSAL" = "yes"; then
3357
3358 # Check whether --with-themes was given.
3359 if test "${with_themes+set}" = set; then
3360   withval=$with_themes; wxUNIV_THEMES="$withval"
3361 fi
3362
3363 fi
3364
3365
3366 # Check whether --with-gtk was given.
3367 if test "${with_gtk+set}" = set; then
3368   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3369 fi
3370
3371
3372 # Check whether --with-motif was given.
3373 if test "${with_motif+set}" = set; then
3374   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3375 fi
3376
3377
3378 # Check whether --with-mac was given.
3379 if test "${with_mac+set}" = set; then
3380   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3381 fi
3382
3383
3384 # Check whether --with-cocoa was given.
3385 if test "${with_cocoa+set}" = set; then
3386   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3387 fi
3388
3389
3390 # Check whether --with-wine was given.
3391 if test "${with_wine+set}" = set; then
3392   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3393 fi
3394
3395
3396 # Check whether --with-msw was given.
3397 if test "${with_msw+set}" = set; then
3398   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3399 fi
3400
3401
3402 # Check whether --with-pm was given.
3403 if test "${with_pm+set}" = set; then
3404   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3405 fi
3406
3407
3408 # Check whether --with-mgl was given.
3409 if test "${with_mgl+set}" = set; then
3410   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3411 fi
3412
3413
3414 # Check whether --with-directfb was given.
3415 if test "${with_directfb+set}" = set; then
3416   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3417 fi
3418
3419
3420 # Check whether --with-microwin was given.
3421 if test "${with_microwin+set}" = set; then
3422   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3423 fi
3424
3425
3426 # Check whether --with-x11 was given.
3427 if test "${with_x11+set}" = set; then
3428   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3429 fi
3430
3431
3432           enablestring=
3433           defaultval=
3434           if test -z "$defaultval"; then
3435               if test x"$enablestring" = xdisable; then
3436                   defaultval=yes
3437               else
3438                   defaultval=no
3439               fi
3440           fi
3441
3442           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3443 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3444           # Check whether --enable-nanox was given.
3445 if test "${enable_nanox+set}" = set; then
3446   enableval=$enable_nanox;
3447                           if test "$enableval" = yes; then
3448                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3449                           else
3450                             wx_cv_use_nanox='wxUSE_NANOX=no'
3451                           fi
3452                           cache=yes
3453
3454 else
3455
3456                           LINE=`grep "^wxUSE_NANOX=" ${wx_arg_cache_file}`
3457                           if test "x$LINE" != x ; then
3458                             eval "DEFAULT_$LINE"
3459                           fi
3460
3461                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3462
3463 fi
3464
3465
3466           eval "$wx_cv_use_nanox"
3467           if test "x$cache" = xyes; then
3468             echo "wxUSE_NANOX=$wxUSE_NANOX" >> ${wx_arg_cache_file}.tmp
3469           fi
3470
3471           if test x"$enablestring" = xdisable; then
3472             if test $wxUSE_NANOX = yes; then
3473               result=no
3474             else
3475               result=yes
3476             fi
3477           else
3478             result=$wxUSE_NANOX
3479           fi
3480
3481           { echo "$as_me:$LINENO: result: $result" >&5
3482 echo "${ECHO_T}$result" >&6; }
3483
3484
3485 # Check whether --enable-gtk2 was given.
3486 if test "${enable_gtk2+set}" = set; then
3487   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3488 fi
3489
3490
3491           enablestring=
3492           defaultval=
3493           if test -z "$defaultval"; then
3494               if test x"$enablestring" = xdisable; then
3495                   defaultval=yes
3496               else
3497                   defaultval=no
3498               fi
3499           fi
3500
3501           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3502 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3503           # Check whether --enable-gpe was given.
3504 if test "${enable_gpe+set}" = set; then
3505   enableval=$enable_gpe;
3506                           if test "$enableval" = yes; then
3507                             wx_cv_use_gpe='wxUSE_GPE=yes'
3508                           else
3509                             wx_cv_use_gpe='wxUSE_GPE=no'
3510                           fi
3511                           cache=yes
3512
3513 else
3514
3515                           LINE=`grep "^wxUSE_GPE=" ${wx_arg_cache_file}`
3516                           if test "x$LINE" != x ; then
3517                             eval "DEFAULT_$LINE"
3518                           fi
3519
3520                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3521
3522 fi
3523
3524
3525           eval "$wx_cv_use_gpe"
3526           if test "x$cache" = xyes; then
3527             echo "wxUSE_GPE=$wxUSE_GPE" >> ${wx_arg_cache_file}.tmp
3528           fi
3529
3530           if test x"$enablestring" = xdisable; then
3531             if test $wxUSE_GPE = yes; then
3532               result=no
3533             else
3534               result=yes
3535             fi
3536           else
3537             result=$wxUSE_GPE
3538           fi
3539
3540           { echo "$as_me:$LINENO: result: $result" >&5
3541 echo "${ECHO_T}$result" >&6; }
3542
3543
3544
3545
3546           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3547 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3548
3549 # Check whether --with-libpng was given.
3550 if test "${with_libpng+set}" = set; then
3551   withval=$with_libpng;
3552                         if test "$withval" = yes; then
3553                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3554                         elif test "$withval" = no; then
3555                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3556                         elif test "$withval" = sys; then
3557                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3558                         elif test "$withval" = builtin; then
3559                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3560                         else
3561                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3562 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3563    { (exit 1); exit 1; }; }
3564                         fi
3565                         cache=yes
3566
3567 else
3568
3569                         LINE=`grep "^wxUSE_LIBPNG=" ${wx_arg_cache_file}`
3570                         if test "x$LINE" != x ; then
3571                           eval "DEFAULT_$LINE"
3572                         fi
3573
3574                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3575
3576 fi
3577
3578
3579           eval "$wx_cv_use_libpng"
3580           if test "x$cache" = xyes; then
3581             echo "wxUSE_LIBPNG=$wxUSE_LIBPNG" >> ${wx_arg_cache_file}.tmp
3582           fi
3583
3584           if test "$wxUSE_LIBPNG" = yes; then
3585             { echo "$as_me:$LINENO: result: yes" >&5
3586 echo "${ECHO_T}yes" >&6; }
3587           elif test "$wxUSE_LIBPNG" = no; then
3588             { echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6; }
3590           elif test "$wxUSE_LIBPNG" = sys; then
3591             { echo "$as_me:$LINENO: result: system version" >&5
3592 echo "${ECHO_T}system version" >&6; }
3593           elif test "$wxUSE_LIBPNG" = builtin; then
3594             { echo "$as_me:$LINENO: result: builtin version" >&5
3595 echo "${ECHO_T}builtin version" >&6; }
3596           else
3597             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3598 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3599    { (exit 1); exit 1; }; }
3600           fi
3601
3602
3603           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3604 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3605
3606 # Check whether --with-libjpeg was given.
3607 if test "${with_libjpeg+set}" = set; then
3608   withval=$with_libjpeg;
3609                         if test "$withval" = yes; then
3610                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3611                         elif test "$withval" = no; then
3612                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3613                         elif test "$withval" = sys; then
3614                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3615                         elif test "$withval" = builtin; then
3616                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3617                         else
3618                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3619 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3620    { (exit 1); exit 1; }; }
3621                         fi
3622                         cache=yes
3623
3624 else
3625
3626                         LINE=`grep "^wxUSE_LIBJPEG=" ${wx_arg_cache_file}`
3627                         if test "x$LINE" != x ; then
3628                           eval "DEFAULT_$LINE"
3629                         fi
3630
3631                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3632
3633 fi
3634
3635
3636           eval "$wx_cv_use_libjpeg"
3637           if test "x$cache" = xyes; then
3638             echo "wxUSE_LIBJPEG=$wxUSE_LIBJPEG" >> ${wx_arg_cache_file}.tmp
3639           fi
3640
3641           if test "$wxUSE_LIBJPEG" = yes; then
3642             { echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6; }
3644           elif test "$wxUSE_LIBJPEG" = no; then
3645             { echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6; }
3647           elif test "$wxUSE_LIBJPEG" = sys; then
3648             { echo "$as_me:$LINENO: result: system version" >&5
3649 echo "${ECHO_T}system version" >&6; }
3650           elif test "$wxUSE_LIBJPEG" = builtin; then
3651             { echo "$as_me:$LINENO: result: builtin version" >&5
3652 echo "${ECHO_T}builtin version" >&6; }
3653           else
3654             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3655 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3656    { (exit 1); exit 1; }; }
3657           fi
3658
3659
3660           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3661 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3662
3663 # Check whether --with-libtiff was given.
3664 if test "${with_libtiff+set}" = set; then
3665   withval=$with_libtiff;
3666                         if test "$withval" = yes; then
3667                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3668                         elif test "$withval" = no; then
3669                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3670                         elif test "$withval" = sys; then
3671                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3672                         elif test "$withval" = builtin; then
3673                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3674                         else
3675                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3676 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3677    { (exit 1); exit 1; }; }
3678                         fi
3679                         cache=yes
3680
3681 else
3682
3683                         LINE=`grep "^wxUSE_LIBTIFF=" ${wx_arg_cache_file}`
3684                         if test "x$LINE" != x ; then
3685                           eval "DEFAULT_$LINE"
3686                         fi
3687
3688                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3689
3690 fi
3691
3692
3693           eval "$wx_cv_use_libtiff"
3694           if test "x$cache" = xyes; then
3695             echo "wxUSE_LIBTIFF=$wxUSE_LIBTIFF" >> ${wx_arg_cache_file}.tmp
3696           fi
3697
3698           if test "$wxUSE_LIBTIFF" = yes; then
3699             { echo "$as_me:$LINENO: result: yes" >&5
3700 echo "${ECHO_T}yes" >&6; }
3701           elif test "$wxUSE_LIBTIFF" = no; then
3702             { echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6; }
3704           elif test "$wxUSE_LIBTIFF" = sys; then
3705             { echo "$as_me:$LINENO: result: system version" >&5
3706 echo "${ECHO_T}system version" >&6; }
3707           elif test "$wxUSE_LIBTIFF" = builtin; then
3708             { echo "$as_me:$LINENO: result: builtin version" >&5
3709 echo "${ECHO_T}builtin version" >&6; }
3710           else
3711             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3712 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3713    { (exit 1); exit 1; }; }
3714           fi
3715
3716
3717           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3718 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3719
3720 # Check whether --with-libxpm was given.
3721 if test "${with_libxpm+set}" = set; then
3722   withval=$with_libxpm;
3723                         if test "$withval" = yes; then
3724                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3725                         elif test "$withval" = no; then
3726                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3727                         elif test "$withval" = sys; then
3728                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3729                         elif test "$withval" = builtin; then
3730                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3731                         else
3732                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3733 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3734    { (exit 1); exit 1; }; }
3735                         fi
3736                         cache=yes
3737
3738 else
3739
3740                         LINE=`grep "^wxUSE_LIBXPM=" ${wx_arg_cache_file}`
3741                         if test "x$LINE" != x ; then
3742                           eval "DEFAULT_$LINE"
3743                         fi
3744
3745                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3746
3747 fi
3748
3749
3750           eval "$wx_cv_use_libxpm"
3751           if test "x$cache" = xyes; then
3752             echo "wxUSE_LIBXPM=$wxUSE_LIBXPM" >> ${wx_arg_cache_file}.tmp
3753           fi
3754
3755           if test "$wxUSE_LIBXPM" = yes; then
3756             { echo "$as_me:$LINENO: result: yes" >&5
3757 echo "${ECHO_T}yes" >&6; }
3758           elif test "$wxUSE_LIBXPM" = no; then
3759             { echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6; }
3761           elif test "$wxUSE_LIBXPM" = sys; then
3762             { echo "$as_me:$LINENO: result: system version" >&5
3763 echo "${ECHO_T}system version" >&6; }
3764           elif test "$wxUSE_LIBXPM" = builtin; then
3765             { echo "$as_me:$LINENO: result: builtin version" >&5
3766 echo "${ECHO_T}builtin version" >&6; }
3767           else
3768             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3769 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3770    { (exit 1); exit 1; }; }
3771           fi
3772
3773
3774           withstring=
3775           defaultval=$wxUSE_ALL_FEATURES
3776           if test -z "$defaultval"; then
3777               if test x"$withstring" = xwithout; then
3778                   defaultval=yes
3779               else
3780                   defaultval=no
3781               fi
3782           fi
3783           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3784 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3785
3786 # Check whether --with-libmspack was given.
3787 if test "${with_libmspack+set}" = set; then
3788   withval=$with_libmspack;
3789                         if test "$withval" = yes; then
3790                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3791                         else
3792                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3793                         fi
3794                         cache=yes
3795
3796 else
3797
3798                         LINE=`grep "^wxUSE_LIBMSPACK=" ${wx_arg_cache_file}`
3799                         if test "x$LINE" != x ; then
3800                           eval "DEFAULT_$LINE"
3801                         fi
3802
3803                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3804
3805 fi
3806
3807
3808           eval "$wx_cv_use_libmspack"
3809           if test "x$cache" != xyes; then
3810             echo "wxUSE_LIBMSPACK=$wxUSE_LIBMSPACK" >> ${wx_arg_cache_file}.tmp
3811           fi
3812
3813           if test x"$withstring" = xwithout; then
3814             if test $wxUSE_LIBMSPACK = yes; then
3815               result=no
3816             else
3817               result=yes
3818             fi
3819           else
3820             result=$wxUSE_LIBMSPACK
3821           fi
3822
3823           { echo "$as_me:$LINENO: result: $result" >&5
3824 echo "${ECHO_T}$result" >&6; }
3825
3826
3827           withstring=without
3828           defaultval=$wxUSE_ALL_FEATURES
3829           if test -z "$defaultval"; then
3830               if test x"$withstring" = xwithout; then
3831                   defaultval=yes
3832               else
3833                   defaultval=no
3834               fi
3835           fi
3836           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3837 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3838
3839 # Check whether --with-gnomeprint was given.
3840 if test "${with_gnomeprint+set}" = set; then
3841   withval=$with_gnomeprint;
3842                         if test "$withval" = yes; then
3843                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3844                         else
3845                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3846                         fi
3847                         cache=yes
3848
3849 else
3850
3851                         LINE=`grep "^wxUSE_LIBGNOMEPRINT=" ${wx_arg_cache_file}`
3852                         if test "x$LINE" != x ; then
3853                           eval "DEFAULT_$LINE"
3854                         fi
3855
3856                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3857
3858 fi
3859
3860
3861           eval "$wx_cv_use_gnomeprint"
3862           if test "x$cache" != xyes; then
3863             echo "wxUSE_LIBGNOMEPRINT=$wxUSE_LIBGNOMEPRINT" >> ${wx_arg_cache_file}.tmp
3864           fi
3865
3866           if test x"$withstring" = xwithout; then
3867             if test $wxUSE_LIBGNOMEPRINT = yes; then
3868               result=no
3869             else
3870               result=yes
3871             fi
3872           else
3873             result=$wxUSE_LIBGNOMEPRINT
3874           fi
3875
3876           { echo "$as_me:$LINENO: result: $result" >&5
3877 echo "${ECHO_T}$result" >&6; }
3878
3879
3880           withstring=
3881           defaultval=$wxUSE_ALL_FEATURES
3882           if test -z "$defaultval"; then
3883               if test x"$withstring" = xwithout; then
3884                   defaultval=yes
3885               else
3886                   defaultval=no
3887               fi
3888           fi
3889           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3890 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3891
3892 # Check whether --with-gnomevfs was given.
3893 if test "${with_gnomevfs+set}" = set; then
3894   withval=$with_gnomevfs;
3895                         if test "$withval" = yes; then
3896                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3897                         else
3898                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3899                         fi
3900                         cache=yes
3901
3902 else
3903
3904                         LINE=`grep "^wxUSE_LIBGNOMEVFS=" ${wx_arg_cache_file}`
3905                         if test "x$LINE" != x ; then
3906                           eval "DEFAULT_$LINE"
3907                         fi
3908
3909                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3910
3911 fi
3912
3913
3914           eval "$wx_cv_use_gnomevfs"
3915           if test "x$cache" != xyes; then
3916             echo "wxUSE_LIBGNOMEVFS=$wxUSE_LIBGNOMEVFS" >> ${wx_arg_cache_file}.tmp
3917           fi
3918
3919           if test x"$withstring" = xwithout; then
3920             if test $wxUSE_LIBGNOMEVFS = yes; then
3921               result=no
3922             else
3923               result=yes
3924             fi
3925           else
3926             result=$wxUSE_LIBGNOMEVFS
3927           fi
3928
3929           { echo "$as_me:$LINENO: result: $result" >&5
3930 echo "${ECHO_T}$result" >&6; }
3931
3932
3933           withstring=
3934           defaultval=$wxUSE_ALL_FEATURES
3935           if test -z "$defaultval"; then
3936               if test x"$withstring" = xwithout; then
3937                   defaultval=yes
3938               else
3939                   defaultval=no
3940               fi
3941           fi
3942           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3943 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3944
3945 # Check whether --with-hildon was given.
3946 if test "${with_hildon+set}" = set; then
3947   withval=$with_hildon;
3948                         if test "$withval" = yes; then
3949                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3950                         else
3951                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3952                         fi
3953                         cache=yes
3954
3955 else
3956
3957                         LINE=`grep "^wxUSE_LIBHILDON=" ${wx_arg_cache_file}`
3958                         if test "x$LINE" != x ; then
3959                           eval "DEFAULT_$LINE"
3960                         fi
3961
3962                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3963
3964 fi
3965
3966
3967           eval "$wx_cv_use_hildon"
3968           if test "x$cache" != xyes; then
3969             echo "wxUSE_LIBHILDON=$wxUSE_LIBHILDON" >> ${wx_arg_cache_file}.tmp
3970           fi
3971
3972           if test x"$withstring" = xwithout; then
3973             if test $wxUSE_LIBHILDON = yes; then
3974               result=no
3975             else
3976               result=yes
3977             fi
3978           else
3979             result=$wxUSE_LIBHILDON
3980           fi
3981
3982           { echo "$as_me:$LINENO: result: $result" >&5
3983 echo "${ECHO_T}$result" >&6; }
3984
3985
3986           withstring=
3987           defaultval=$wxUSE_ALL_FEATURES
3988           if test -z "$defaultval"; then
3989               if test x"$withstring" = xwithout; then
3990                   defaultval=yes
3991               else
3992                   defaultval=no
3993               fi
3994           fi
3995           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3996 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
3997
3998 # Check whether --with-opengl was given.
3999 if test "${with_opengl+set}" = set; then
4000   withval=$with_opengl;
4001                         if test "$withval" = yes; then
4002                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4003                         else
4004                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4005                         fi
4006                         cache=yes
4007
4008 else
4009
4010                         LINE=`grep "^wxUSE_OPENGL=" ${wx_arg_cache_file}`
4011                         if test "x$LINE" != x ; then
4012                           eval "DEFAULT_$LINE"
4013                         fi
4014
4015                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4016
4017 fi
4018
4019
4020           eval "$wx_cv_use_opengl"
4021           if test "x$cache" != xyes; then
4022             echo "wxUSE_OPENGL=$wxUSE_OPENGL" >> ${wx_arg_cache_file}.tmp
4023           fi
4024
4025           if test x"$withstring" = xwithout; then
4026             if test $wxUSE_OPENGL = yes; then
4027               result=no
4028             else
4029               result=yes
4030             fi
4031           else
4032             result=$wxUSE_OPENGL
4033           fi
4034
4035           { echo "$as_me:$LINENO: result: $result" >&5
4036 echo "${ECHO_T}$result" >&6; }
4037
4038
4039 fi
4040
4041
4042           withstring=
4043           defaultval=$wxUSE_ALL_FEATURES
4044           if test -z "$defaultval"; then
4045               if test x"$withstring" = xwithout; then
4046                   defaultval=yes
4047               else
4048                   defaultval=no
4049               fi
4050           fi
4051           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4052 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4053
4054 # Check whether --with-dmalloc was given.
4055 if test "${with_dmalloc+set}" = set; then
4056   withval=$with_dmalloc;
4057                         if test "$withval" = yes; then
4058                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4059                         else
4060                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4061                         fi
4062                         cache=yes
4063
4064 else
4065
4066                         LINE=`grep "^wxUSE_DMALLOC=" ${wx_arg_cache_file}`
4067                         if test "x$LINE" != x ; then
4068                           eval "DEFAULT_$LINE"
4069                         fi
4070
4071                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4072
4073 fi
4074
4075
4076           eval "$wx_cv_use_dmalloc"
4077           if test "x$cache" != xyes; then
4078             echo "wxUSE_DMALLOC=$wxUSE_DMALLOC" >> ${wx_arg_cache_file}.tmp
4079           fi
4080
4081           if test x"$withstring" = xwithout; then
4082             if test $wxUSE_DMALLOC = yes; then
4083               result=no
4084             else
4085               result=yes
4086             fi
4087           else
4088             result=$wxUSE_DMALLOC
4089           fi
4090
4091           { echo "$as_me:$LINENO: result: $result" >&5
4092 echo "${ECHO_T}$result" >&6; }
4093
4094
4095           withstring=
4096           defaultval=$wxUSE_ALL_FEATURES
4097           if test -z "$defaultval"; then
4098               if test x"$withstring" = xwithout; then
4099                   defaultval=yes
4100               else
4101                   defaultval=no
4102               fi
4103           fi
4104           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4105 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4106
4107 # Check whether --with-sdl was given.
4108 if test "${with_sdl+set}" = set; then
4109   withval=$with_sdl;
4110                         if test "$withval" = yes; then
4111                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4112                         else
4113                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4114                         fi
4115                         cache=yes
4116
4117 else
4118
4119                         LINE=`grep "^wxUSE_LIBSDL=" ${wx_arg_cache_file}`
4120                         if test "x$LINE" != x ; then
4121                           eval "DEFAULT_$LINE"
4122                         fi
4123
4124                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4125
4126 fi
4127
4128
4129           eval "$wx_cv_use_sdl"
4130           if test "x$cache" != xyes; then
4131             echo "wxUSE_LIBSDL=$wxUSE_LIBSDL" >> ${wx_arg_cache_file}.tmp
4132           fi
4133
4134           if test x"$withstring" = xwithout; then
4135             if test $wxUSE_LIBSDL = yes; then
4136               result=no
4137             else
4138               result=yes
4139             fi
4140           else
4141             result=$wxUSE_LIBSDL
4142           fi
4143
4144           { echo "$as_me:$LINENO: result: $result" >&5
4145 echo "${ECHO_T}$result" >&6; }
4146
4147
4148           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4149 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4150
4151 # Check whether --with-regex was given.
4152 if test "${with_regex+set}" = set; then
4153   withval=$with_regex;
4154                         if test "$withval" = yes; then
4155                           wx_cv_use_regex='wxUSE_REGEX=yes'
4156                         elif test "$withval" = no; then
4157                           wx_cv_use_regex='wxUSE_REGEX=no'
4158                         elif test "$withval" = sys; then
4159                           wx_cv_use_regex='wxUSE_REGEX=sys'
4160                         elif test "$withval" = builtin; then
4161                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4162                         else
4163                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4164 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4165    { (exit 1); exit 1; }; }
4166                         fi
4167                         cache=yes
4168
4169 else
4170
4171                         LINE=`grep "^wxUSE_REGEX=" ${wx_arg_cache_file}`
4172                         if test "x$LINE" != x ; then
4173                           eval "DEFAULT_$LINE"
4174                         fi
4175
4176                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4177
4178 fi
4179
4180
4181           eval "$wx_cv_use_regex"
4182           if test "x$cache" = xyes; then
4183             echo "wxUSE_REGEX=$wxUSE_REGEX" >> ${wx_arg_cache_file}.tmp
4184           fi
4185
4186           if test "$wxUSE_REGEX" = yes; then
4187             { echo "$as_me:$LINENO: result: yes" >&5
4188 echo "${ECHO_T}yes" >&6; }
4189           elif test "$wxUSE_REGEX" = no; then
4190             { echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6; }
4192           elif test "$wxUSE_REGEX" = sys; then
4193             { echo "$as_me:$LINENO: result: system version" >&5
4194 echo "${ECHO_T}system version" >&6; }
4195           elif test "$wxUSE_REGEX" = builtin; then
4196             { echo "$as_me:$LINENO: result: builtin version" >&5
4197 echo "${ECHO_T}builtin version" >&6; }
4198           else
4199             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4200 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4201    { (exit 1); exit 1; }; }
4202           fi
4203
4204
4205           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4206 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4207
4208 # Check whether --with-zlib was given.
4209 if test "${with_zlib+set}" = set; then
4210   withval=$with_zlib;
4211                         if test "$withval" = yes; then
4212                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4213                         elif test "$withval" = no; then
4214                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4215                         elif test "$withval" = sys; then
4216                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4217                         elif test "$withval" = builtin; then
4218                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4219                         else
4220                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4221 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4222    { (exit 1); exit 1; }; }
4223                         fi
4224                         cache=yes
4225
4226 else
4227
4228                         LINE=`grep "^wxUSE_ZLIB=" ${wx_arg_cache_file}`
4229                         if test "x$LINE" != x ; then
4230                           eval "DEFAULT_$LINE"
4231                         fi
4232
4233                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4234
4235 fi
4236
4237
4238           eval "$wx_cv_use_zlib"
4239           if test "x$cache" = xyes; then
4240             echo "wxUSE_ZLIB=$wxUSE_ZLIB" >> ${wx_arg_cache_file}.tmp
4241           fi
4242
4243           if test "$wxUSE_ZLIB" = yes; then
4244             { echo "$as_me:$LINENO: result: yes" >&5
4245 echo "${ECHO_T}yes" >&6; }
4246           elif test "$wxUSE_ZLIB" = no; then
4247             { echo "$as_me:$LINENO: result: no" >&5
4248 echo "${ECHO_T}no" >&6; }
4249           elif test "$wxUSE_ZLIB" = sys; then
4250             { echo "$as_me:$LINENO: result: system version" >&5
4251 echo "${ECHO_T}system version" >&6; }
4252           elif test "$wxUSE_ZLIB" = builtin; then
4253             { echo "$as_me:$LINENO: result: builtin version" >&5
4254 echo "${ECHO_T}builtin version" >&6; }
4255           else
4256             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4257 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4258    { (exit 1); exit 1; }; }
4259           fi
4260
4261
4262           { echo "$as_me:$LINENO: checking for --with-odbc" >&5
4263 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6; }
4264
4265 # Check whether --with-odbc was given.
4266 if test "${with_odbc+set}" = set; then
4267   withval=$with_odbc;
4268                         if test "$withval" = yes; then
4269                           wx_cv_use_odbc='wxUSE_ODBC=yes'
4270                         elif test "$withval" = no; then
4271                           wx_cv_use_odbc='wxUSE_ODBC=no'
4272                         elif test "$withval" = sys; then
4273                           wx_cv_use_odbc='wxUSE_ODBC=sys'
4274                         elif test "$withval" = builtin; then
4275                           wx_cv_use_odbc='wxUSE_ODBC=builtin'
4276                         else
4277                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4278 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4279    { (exit 1); exit 1; }; }
4280                         fi
4281                         cache=yes
4282
4283 else
4284
4285                         LINE=`grep "^wxUSE_ODBC=" ${wx_arg_cache_file}`
4286                         if test "x$LINE" != x ; then
4287                           eval "DEFAULT_$LINE"
4288                         fi
4289
4290                         wx_cv_use_odbc='wxUSE_ODBC=${'DEFAULT_wxUSE_ODBC":-$wxUSE_ALL_FEATURES}"
4291
4292 fi
4293
4294
4295           eval "$wx_cv_use_odbc"
4296           if test "x$cache" = xyes; then
4297             echo "wxUSE_ODBC=$wxUSE_ODBC" >> ${wx_arg_cache_file}.tmp
4298           fi
4299
4300           if test "$wxUSE_ODBC" = yes; then
4301             { echo "$as_me:$LINENO: result: yes" >&5
4302 echo "${ECHO_T}yes" >&6; }
4303           elif test "$wxUSE_ODBC" = no; then
4304             { echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6; }
4306           elif test "$wxUSE_ODBC" = sys; then
4307             { echo "$as_me:$LINENO: result: system version" >&5
4308 echo "${ECHO_T}system version" >&6; }
4309           elif test "$wxUSE_ODBC" = builtin; then
4310             { echo "$as_me:$LINENO: result: builtin version" >&5
4311 echo "${ECHO_T}builtin version" >&6; }
4312           else
4313             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4314 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4315    { (exit 1); exit 1; }; }
4316           fi
4317
4318
4319           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4320 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4321
4322 # Check whether --with-expat was given.
4323 if test "${with_expat+set}" = set; then
4324   withval=$with_expat;
4325                         if test "$withval" = yes; then
4326                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4327                         elif test "$withval" = no; then
4328                           wx_cv_use_expat='wxUSE_EXPAT=no'
4329                         elif test "$withval" = sys; then
4330                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4331                         elif test "$withval" = builtin; then
4332                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4333                         else
4334                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4335 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4336    { (exit 1); exit 1; }; }
4337                         fi
4338                         cache=yes
4339
4340 else
4341
4342                         LINE=`grep "^wxUSE_EXPAT=" ${wx_arg_cache_file}`
4343                         if test "x$LINE" != x ; then
4344                           eval "DEFAULT_$LINE"
4345                         fi
4346
4347                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4348
4349 fi
4350
4351
4352           eval "$wx_cv_use_expat"
4353           if test "x$cache" = xyes; then
4354             echo "wxUSE_EXPAT=$wxUSE_EXPAT" >> ${wx_arg_cache_file}.tmp
4355           fi
4356
4357           if test "$wxUSE_EXPAT" = yes; then
4358             { echo "$as_me:$LINENO: result: yes" >&5
4359 echo "${ECHO_T}yes" >&6; }
4360           elif test "$wxUSE_EXPAT" = no; then
4361             { echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6; }
4363           elif test "$wxUSE_EXPAT" = sys; then
4364             { echo "$as_me:$LINENO: result: system version" >&5
4365 echo "${ECHO_T}system version" >&6; }
4366           elif test "$wxUSE_EXPAT" = builtin; then
4367             { echo "$as_me:$LINENO: result: builtin version" >&5
4368 echo "${ECHO_T}builtin version" >&6; }
4369           else
4370             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4371 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4372    { (exit 1); exit 1; }; }
4373           fi
4374
4375
4376
4377
4378           enablestring=disable
4379           defaultval=
4380           if test -z "$defaultval"; then
4381               if test x"$enablestring" = xdisable; then
4382                   defaultval=yes
4383               else
4384                   defaultval=no
4385               fi
4386           fi
4387
4388           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4389 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4390           # Check whether --enable-shared was given.
4391 if test "${enable_shared+set}" = set; then
4392   enableval=$enable_shared;
4393                           if test "$enableval" = yes; then
4394                             wx_cv_use_shared='wxUSE_SHARED=yes'
4395                           else
4396                             wx_cv_use_shared='wxUSE_SHARED=no'
4397                           fi
4398                           cache=yes
4399
4400 else
4401
4402                           LINE=`grep "^wxUSE_SHARED=" ${wx_arg_cache_file}`
4403                           if test "x$LINE" != x ; then
4404                             eval "DEFAULT_$LINE"
4405                           fi
4406
4407                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4408
4409 fi
4410
4411
4412           eval "$wx_cv_use_shared"
4413           if test "x$cache" = xyes; then
4414             echo "wxUSE_SHARED=$wxUSE_SHARED" >> ${wx_arg_cache_file}.tmp
4415           fi
4416
4417           if test x"$enablestring" = xdisable; then
4418             if test $wxUSE_SHARED = yes; then
4419               result=no
4420             else
4421               result=yes
4422             fi
4423           else
4424             result=$wxUSE_SHARED
4425           fi
4426
4427           { echo "$as_me:$LINENO: result: $result" >&5
4428 echo "${ECHO_T}$result" >&6; }
4429
4430
4431           enablestring=disable
4432           defaultval=
4433           if test -z "$defaultval"; then
4434               if test x"$enablestring" = xdisable; then
4435                   defaultval=yes
4436               else
4437                   defaultval=no
4438               fi
4439           fi
4440
4441           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4442 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4443           # Check whether --enable-optimise was given.
4444 if test "${enable_optimise+set}" = set; then
4445   enableval=$enable_optimise;
4446                           if test "$enableval" = yes; then
4447                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4448                           else
4449                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4450                           fi
4451                           cache=yes
4452
4453 else
4454
4455                           LINE=`grep "^wxUSE_OPTIMISE=" ${wx_arg_cache_file}`
4456                           if test "x$LINE" != x ; then
4457                             eval "DEFAULT_$LINE"
4458                           fi
4459
4460                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4461
4462 fi
4463
4464
4465           eval "$wx_cv_use_optimise"
4466           if test "x$cache" = xyes; then
4467             echo "wxUSE_OPTIMISE=$wxUSE_OPTIMISE" >> ${wx_arg_cache_file}.tmp
4468           fi
4469
4470           if test x"$enablestring" = xdisable; then
4471             if test $wxUSE_OPTIMISE = yes; then
4472               result=no
4473             else
4474               result=yes
4475             fi
4476           else
4477             result=$wxUSE_OPTIMISE
4478           fi
4479
4480           { echo "$as_me:$LINENO: result: $result" >&5
4481 echo "${ECHO_T}$result" >&6; }
4482
4483
4484           enablestring=
4485           defaultval=
4486           if test -z "$defaultval"; then
4487               if test x"$enablestring" = xdisable; then
4488                   defaultval=yes
4489               else
4490                   defaultval=no
4491               fi
4492           fi
4493
4494           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4495 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4496           # Check whether --enable-debug was given.
4497 if test "${enable_debug+set}" = set; then
4498   enableval=$enable_debug;
4499                           if test "$enableval" = yes; then
4500                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4501                           else
4502                             wx_cv_use_debug='wxUSE_DEBUG=no'
4503                           fi
4504                           cache=yes
4505
4506 else
4507
4508                           LINE=`grep "^wxUSE_DEBUG=" ${wx_arg_cache_file}`
4509                           if test "x$LINE" != x ; then
4510                             eval "DEFAULT_$LINE"
4511                           fi
4512
4513                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4514
4515 fi
4516
4517
4518           eval "$wx_cv_use_debug"
4519           if test "x$cache" = xyes; then
4520             echo "wxUSE_DEBUG=$wxUSE_DEBUG" >> ${wx_arg_cache_file}.tmp
4521           fi
4522
4523           if test x"$enablestring" = xdisable; then
4524             if test $wxUSE_DEBUG = yes; then
4525               result=no
4526             else
4527               result=yes
4528             fi
4529           else
4530             result=$wxUSE_DEBUG
4531           fi
4532
4533           { echo "$as_me:$LINENO: result: $result" >&5
4534 echo "${ECHO_T}$result" >&6; }
4535
4536
4537           enablestring=
4538           defaultval=
4539           if test -z "$defaultval"; then
4540               if test x"$enablestring" = xdisable; then
4541                   defaultval=yes
4542               else
4543                   defaultval=no
4544               fi
4545           fi
4546
4547           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4548 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4549           # Check whether --enable-stl was given.
4550 if test "${enable_stl+set}" = set; then
4551   enableval=$enable_stl;
4552                           if test "$enableval" = yes; then
4553                             wx_cv_use_stl='wxUSE_STL=yes'
4554                           else
4555                             wx_cv_use_stl='wxUSE_STL=no'
4556                           fi
4557                           cache=yes
4558
4559 else
4560
4561                           LINE=`grep "^wxUSE_STL=" ${wx_arg_cache_file}`
4562                           if test "x$LINE" != x ; then
4563                             eval "DEFAULT_$LINE"
4564                           fi
4565
4566                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4567
4568 fi
4569
4570
4571           eval "$wx_cv_use_stl"
4572           if test "x$cache" = xyes; then
4573             echo "wxUSE_STL=$wxUSE_STL" >> ${wx_arg_cache_file}.tmp
4574           fi
4575
4576           if test x"$enablestring" = xdisable; then
4577             if test $wxUSE_STL = yes; then
4578               result=no
4579             else
4580               result=yes
4581             fi
4582           else
4583             result=$wxUSE_STL
4584           fi
4585
4586           { echo "$as_me:$LINENO: result: $result" >&5
4587 echo "${ECHO_T}$result" >&6; }
4588
4589
4590           enablestring=
4591           defaultval=
4592           if test -z "$defaultval"; then
4593               if test x"$enablestring" = xdisable; then
4594                   defaultval=yes
4595               else
4596                   defaultval=no
4597               fi
4598           fi
4599
4600           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4601 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4602           # Check whether --enable-std_iostreams was given.
4603 if test "${enable_std_iostreams+set}" = set; then
4604   enableval=$enable_std_iostreams;
4605                           if test "$enableval" = yes; then
4606                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4607                           else
4608                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4609                           fi
4610                           cache=yes
4611
4612 else
4613
4614                           LINE=`grep "^wxUSE_STD_IOSTREAM=" ${wx_arg_cache_file}`
4615                           if test "x$LINE" != x ; then
4616                             eval "DEFAULT_$LINE"
4617                           fi
4618
4619                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4620
4621 fi
4622
4623
4624           eval "$wx_cv_use_std_iostreams"
4625           if test "x$cache" = xyes; then
4626             echo "wxUSE_STD_IOSTREAM=$wxUSE_STD_IOSTREAM" >> ${wx_arg_cache_file}.tmp
4627           fi
4628
4629           if test x"$enablestring" = xdisable; then
4630             if test $wxUSE_STD_IOSTREAM = yes; then
4631               result=no
4632             else
4633               result=yes
4634             fi
4635           else
4636             result=$wxUSE_STD_IOSTREAM
4637           fi
4638
4639           { echo "$as_me:$LINENO: result: $result" >&5
4640 echo "${ECHO_T}$result" >&6; }
4641
4642
4643           enablestring=
4644           defaultval=
4645           if test -z "$defaultval"; then
4646               if test x"$enablestring" = xdisable; then
4647                   defaultval=yes
4648               else
4649                   defaultval=no
4650               fi
4651           fi
4652
4653           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4654 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4655           # Check whether --enable-std_string was given.
4656 if test "${enable_std_string+set}" = set; then
4657   enableval=$enable_std_string;
4658                           if test "$enableval" = yes; then
4659                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4660                           else
4661                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4662                           fi
4663                           cache=yes
4664
4665 else
4666
4667                           LINE=`grep "^wxUSE_STD_STRING=" ${wx_arg_cache_file}`
4668                           if test "x$LINE" != x ; then
4669                             eval "DEFAULT_$LINE"
4670                           fi
4671
4672                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4673
4674 fi
4675
4676
4677           eval "$wx_cv_use_std_string"
4678           if test "x$cache" = xyes; then
4679             echo "wxUSE_STD_STRING=$wxUSE_STD_STRING" >> ${wx_arg_cache_file}.tmp
4680           fi
4681
4682           if test x"$enablestring" = xdisable; then
4683             if test $wxUSE_STD_STRING = yes; then
4684               result=no
4685             else
4686               result=yes
4687             fi
4688           else
4689             result=$wxUSE_STD_STRING
4690           fi
4691
4692           { echo "$as_me:$LINENO: result: $result" >&5
4693 echo "${ECHO_T}$result" >&6; }
4694
4695
4696           enablestring=disable
4697           defaultval=
4698           if test -z "$defaultval"; then
4699               if test x"$enablestring" = xdisable; then
4700                   defaultval=yes
4701               else
4702                   defaultval=no
4703               fi
4704           fi
4705
4706           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4707 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4708           # Check whether --enable-unicode was given.
4709 if test "${enable_unicode+set}" = set; then
4710   enableval=$enable_unicode;
4711                           if test "$enableval" = yes; then
4712                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4713                           else
4714                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4715                           fi
4716                           cache=yes
4717
4718 else
4719
4720                           LINE=`grep "^wxUSE_UNICODE=" ${wx_arg_cache_file}`
4721                           if test "x$LINE" != x ; then
4722                             eval "DEFAULT_$LINE"
4723                           fi
4724
4725                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4726
4727 fi
4728
4729
4730           eval "$wx_cv_use_unicode"
4731           if test "x$cache" = xyes; then
4732             echo "wxUSE_UNICODE=$wxUSE_UNICODE" >> ${wx_arg_cache_file}.tmp
4733           fi
4734
4735           if test x"$enablestring" = xdisable; then
4736             if test $wxUSE_UNICODE = yes; then
4737               result=no
4738             else
4739               result=yes
4740             fi
4741           else
4742             result=$wxUSE_UNICODE
4743           fi
4744
4745           { echo "$as_me:$LINENO: result: $result" >&5
4746 echo "${ECHO_T}$result" >&6; }
4747
4748
4749           enablestring=
4750           defaultval=
4751           if test -z "$defaultval"; then
4752               if test x"$enablestring" = xdisable; then
4753                   defaultval=yes
4754               else
4755                   defaultval=no
4756               fi
4757           fi
4758
4759           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4760 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4761           # Check whether --enable-mslu was given.
4762 if test "${enable_mslu+set}" = set; then
4763   enableval=$enable_mslu;
4764                           if test "$enableval" = yes; then
4765                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4766                           else
4767                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4768                           fi
4769                           cache=yes
4770
4771 else
4772
4773                           LINE=`grep "^wxUSE_UNICODE_MSLU=" ${wx_arg_cache_file}`
4774                           if test "x$LINE" != x ; then
4775                             eval "DEFAULT_$LINE"
4776                           fi
4777
4778                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4779
4780 fi
4781
4782
4783           eval "$wx_cv_use_mslu"
4784           if test "x$cache" = xyes; then
4785             echo "wxUSE_UNICODE_MSLU=$wxUSE_UNICODE_MSLU" >> ${wx_arg_cache_file}.tmp
4786           fi
4787
4788           if test x"$enablestring" = xdisable; then
4789             if test $wxUSE_UNICODE_MSLU = yes; then
4790               result=no
4791             else
4792               result=yes
4793             fi
4794           else
4795             result=$wxUSE_UNICODE_MSLU
4796           fi
4797
4798           { echo "$as_me:$LINENO: result: $result" >&5
4799 echo "${ECHO_T}$result" >&6; }
4800
4801
4802           enablestring=
4803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4804 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4805           # Check whether --enable-utf8 was given.
4806 if test "${enable_utf8+set}" = set; then
4807   enableval=$enable_utf8;
4808                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4809                           cache=yes
4810
4811 else
4812
4813                           LINE=`grep "^wxUSE_UNICODE_UTF8=" ${wx_arg_cache_file}`
4814                           if test "x$LINE" != x ; then
4815                             eval "DEFAULT_$LINE"
4816                           fi
4817
4818                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4819
4820 fi
4821
4822
4823           eval "$wx_cv_use_utf8"
4824           if test "x$cache" = xyes; then
4825             echo "wxUSE_UNICODE_UTF8=$wxUSE_UNICODE_UTF8" >> ${wx_arg_cache_file}.tmp
4826           fi
4827
4828           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4829 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4830
4831
4832           enablestring=
4833           defaultval=
4834           if test -z "$defaultval"; then
4835               if test x"$enablestring" = xdisable; then
4836                   defaultval=yes
4837               else
4838                   defaultval=no
4839               fi
4840           fi
4841
4842           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4843 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4844           # Check whether --enable-utf8only was given.
4845 if test "${enable_utf8only+set}" = set; then
4846   enableval=$enable_utf8only;
4847                           if test "$enableval" = yes; then
4848                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4849                           else
4850                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4851                           fi
4852                           cache=yes
4853
4854 else
4855
4856                           LINE=`grep "^wxUSE_UNICODE_UTF8_LOCALE=" ${wx_arg_cache_file}`
4857                           if test "x$LINE" != x ; then
4858                             eval "DEFAULT_$LINE"
4859                           fi
4860
4861                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4862
4863 fi
4864
4865
4866           eval "$wx_cv_use_utf8only"
4867           if test "x$cache" = xyes; then
4868             echo "wxUSE_UNICODE_UTF8_LOCALE=$wxUSE_UNICODE_UTF8_LOCALE" >> ${wx_arg_cache_file}.tmp
4869           fi
4870
4871           if test x"$enablestring" = xdisable; then
4872             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4873               result=no
4874             else
4875               result=yes
4876             fi
4877           else
4878             result=$wxUSE_UNICODE_UTF8_LOCALE
4879           fi
4880
4881           { echo "$as_me:$LINENO: result: $result" >&5
4882 echo "${ECHO_T}$result" >&6; }
4883
4884
4885           enablestring=
4886           defaultval=
4887           if test -z "$defaultval"; then
4888               if test x"$enablestring" = xdisable; then
4889                   defaultval=yes
4890               else
4891                   defaultval=no
4892               fi
4893           fi
4894
4895           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4896 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4897           # Check whether --enable-extended_rtti was given.
4898 if test "${enable_extended_rtti+set}" = set; then
4899   enableval=$enable_extended_rtti;
4900                           if test "$enableval" = yes; then
4901                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4902                           else
4903                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4904                           fi
4905                           cache=yes
4906
4907 else
4908
4909                           LINE=`grep "^wxUSE_EXTENDED_RTTI=" ${wx_arg_cache_file}`
4910                           if test "x$LINE" != x ; then
4911                             eval "DEFAULT_$LINE"
4912                           fi
4913
4914                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4915
4916 fi
4917
4918
4919           eval "$wx_cv_use_extended_rtti"
4920           if test "x$cache" = xyes; then
4921             echo "wxUSE_EXTENDED_RTTI=$wxUSE_EXTENDED_RTTI" >> ${wx_arg_cache_file}.tmp
4922           fi
4923
4924           if test x"$enablestring" = xdisable; then
4925             if test $wxUSE_EXTENDED_RTTI = yes; then
4926               result=no
4927             else
4928               result=yes
4929             fi
4930           else
4931             result=$wxUSE_EXTENDED_RTTI
4932           fi
4933
4934           { echo "$as_me:$LINENO: result: $result" >&5
4935 echo "${ECHO_T}$result" >&6; }
4936
4937 if test "$USE_OS2" = "1"; then
4938     DEFAULT_wxUSE_OMF=no
4939
4940           enablestring=
4941           defaultval=
4942           if test -z "$defaultval"; then
4943               if test x"$enablestring" = xdisable; then
4944                   defaultval=yes
4945               else
4946                   defaultval=no
4947               fi
4948           fi
4949
4950           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4951 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4952           # Check whether --enable-omf was given.
4953 if test "${enable_omf+set}" = set; then
4954   enableval=$enable_omf;
4955                           if test "$enableval" = yes; then
4956                             wx_cv_use_omf='wxUSE_OMF=yes'
4957                           else
4958                             wx_cv_use_omf='wxUSE_OMF=no'
4959                           fi
4960                           cache=yes
4961
4962 else
4963
4964                           LINE=`grep "^wxUSE_OMF=" ${wx_arg_cache_file}`
4965                           if test "x$LINE" != x ; then
4966                             eval "DEFAULT_$LINE"
4967                           fi
4968
4969                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4970
4971 fi
4972
4973
4974           eval "$wx_cv_use_omf"
4975           if test "x$cache" = xyes; then
4976             echo "wxUSE_OMF=$wxUSE_OMF" >> ${wx_arg_cache_file}.tmp
4977           fi
4978
4979           if test x"$enablestring" = xdisable; then
4980             if test $wxUSE_OMF = yes; then
4981               result=no
4982             else
4983               result=yes
4984             fi
4985           else
4986             result=$wxUSE_OMF
4987           fi
4988
4989           { echo "$as_me:$LINENO: result: $result" >&5
4990 echo "${ECHO_T}$result" >&6; }
4991
4992 fi
4993
4994 if test "$wxUSE_DEBUG" = "yes"; then
4995   DEFAULT_wxUSE_DEBUG_FLAG=yes
4996   DEFAULT_wxUSE_DEBUG_INFO=yes
4997   BUILD=debug
4998 elif test "$wxUSE_DEBUG" = "no"; then
4999   DEFAULT_wxUSE_DEBUG_FLAG=no
5000   DEFAULT_wxUSE_DEBUG_INFO=no
5001   BUILD=release
5002 fi
5003
5004
5005           enablestring=
5006           defaultval=
5007           if test -z "$defaultval"; then
5008               if test x"$enablestring" = xdisable; then
5009                   defaultval=yes
5010               else
5011                   defaultval=no
5012               fi
5013           fi
5014
5015           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
5016 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
5017           # Check whether --enable-debug_flag was given.
5018 if test "${enable_debug_flag+set}" = set; then
5019   enableval=$enable_debug_flag;
5020                           if test "$enableval" = yes; then
5021                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
5022                           else
5023                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
5024                           fi
5025                           cache=yes
5026
5027 else
5028
5029                           LINE=`grep "^wxUSE_DEBUG_FLAG=" ${wx_arg_cache_file}`
5030                           if test "x$LINE" != x ; then
5031                             eval "DEFAULT_$LINE"
5032                           fi
5033
5034                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
5035
5036 fi
5037
5038
5039           eval "$wx_cv_use_debug_flag"
5040           if test "x$cache" = xyes; then
5041             echo "wxUSE_DEBUG_FLAG=$wxUSE_DEBUG_FLAG" >> ${wx_arg_cache_file}.tmp
5042           fi
5043
5044           if test x"$enablestring" = xdisable; then
5045             if test $wxUSE_DEBUG_FLAG = yes; then
5046               result=no
5047             else
5048               result=yes
5049             fi
5050           else
5051             result=$wxUSE_DEBUG_FLAG
5052           fi
5053
5054           { echo "$as_me:$LINENO: result: $result" >&5
5055 echo "${ECHO_T}$result" >&6; }
5056
5057
5058           enablestring=
5059           defaultval=
5060           if test -z "$defaultval"; then
5061               if test x"$enablestring" = xdisable; then
5062                   defaultval=yes
5063               else
5064                   defaultval=no
5065               fi
5066           fi
5067
5068           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
5069 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
5070           # Check whether --enable-debug_info was given.
5071 if test "${enable_debug_info+set}" = set; then
5072   enableval=$enable_debug_info;
5073                           if test "$enableval" = yes; then
5074                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
5075                           else
5076                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
5077                           fi
5078                           cache=yes
5079
5080 else
5081
5082                           LINE=`grep "^wxUSE_DEBUG_INFO=" ${wx_arg_cache_file}`
5083                           if test "x$LINE" != x ; then
5084                             eval "DEFAULT_$LINE"
5085                           fi
5086
5087                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
5088
5089 fi
5090
5091
5092           eval "$wx_cv_use_debug_info"
5093           if test "x$cache" = xyes; then
5094             echo "wxUSE_DEBUG_INFO=$wxUSE_DEBUG_INFO" >> ${wx_arg_cache_file}.tmp
5095           fi
5096
5097           if test x"$enablestring" = xdisable; then
5098             if test $wxUSE_DEBUG_INFO = yes; then
5099               result=no
5100             else
5101               result=yes
5102             fi
5103           else
5104             result=$wxUSE_DEBUG_INFO
5105           fi
5106
5107           { echo "$as_me:$LINENO: result: $result" >&5
5108 echo "${ECHO_T}$result" >&6; }
5109
5110
5111           enablestring=
5112           defaultval=
5113           if test -z "$defaultval"; then
5114               if test x"$enablestring" = xdisable; then
5115                   defaultval=yes
5116               else
5117                   defaultval=no
5118               fi
5119           fi
5120
5121           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
5122 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
5123           # Check whether --enable-debug_gdb was given.
5124 if test "${enable_debug_gdb+set}" = set; then
5125   enableval=$enable_debug_gdb;
5126                           if test "$enableval" = yes; then
5127                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
5128                           else
5129                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
5130                           fi
5131                           cache=yes
5132
5133 else
5134
5135                           LINE=`grep "^wxUSE_DEBUG_GDB=" ${wx_arg_cache_file}`
5136                           if test "x$LINE" != x ; then
5137                             eval "DEFAULT_$LINE"
5138                           fi
5139
5140                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
5141
5142 fi
5143
5144
5145           eval "$wx_cv_use_debug_gdb"
5146           if test "x$cache" = xyes; then
5147             echo "wxUSE_DEBUG_GDB=$wxUSE_DEBUG_GDB" >> ${wx_arg_cache_file}.tmp
5148           fi
5149
5150           if test x"$enablestring" = xdisable; then
5151             if test $wxUSE_DEBUG_GDB = yes; then
5152               result=no
5153             else
5154               result=yes
5155             fi
5156           else
5157             result=$wxUSE_DEBUG_GDB
5158           fi
5159
5160           { echo "$as_me:$LINENO: result: $result" >&5
5161 echo "${ECHO_T}$result" >&6; }
5162
5163
5164           enablestring=
5165           defaultval=
5166           if test -z "$defaultval"; then
5167               if test x"$enablestring" = xdisable; then
5168                   defaultval=yes
5169               else
5170                   defaultval=no
5171               fi
5172           fi
5173
5174           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5175 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5176           # Check whether --enable-debug_cntxt was given.
5177 if test "${enable_debug_cntxt+set}" = set; then
5178   enableval=$enable_debug_cntxt;
5179                           if test "$enableval" = yes; then
5180                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5181                           else
5182                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5183                           fi
5184                           cache=yes
5185
5186 else
5187
5188                           LINE=`grep "^wxUSE_DEBUG_CONTEXT=" ${wx_arg_cache_file}`
5189                           if test "x$LINE" != x ; then
5190                             eval "DEFAULT_$LINE"
5191                           fi
5192
5193                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5194
5195 fi
5196
5197
5198           eval "$wx_cv_use_debug_cntxt"
5199           if test "x$cache" = xyes; then
5200             echo "wxUSE_DEBUG_CONTEXT=$wxUSE_DEBUG_CONTEXT" >> ${wx_arg_cache_file}.tmp
5201           fi
5202
5203           if test x"$enablestring" = xdisable; then
5204             if test $wxUSE_DEBUG_CONTEXT = yes; then
5205               result=no
5206             else
5207               result=yes
5208             fi
5209           else
5210             result=$wxUSE_DEBUG_CONTEXT
5211           fi
5212
5213           { echo "$as_me:$LINENO: result: $result" >&5
5214 echo "${ECHO_T}$result" >&6; }
5215
5216
5217           enablestring=
5218           defaultval=
5219           if test -z "$defaultval"; then
5220               if test x"$enablestring" = xdisable; then
5221                   defaultval=yes
5222               else
5223                   defaultval=no
5224               fi
5225           fi
5226
5227           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5228 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5229           # Check whether --enable-mem_tracing was given.
5230 if test "${enable_mem_tracing+set}" = set; then
5231   enableval=$enable_mem_tracing;
5232                           if test "$enableval" = yes; then
5233                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5234                           else
5235                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5236                           fi
5237                           cache=yes
5238
5239 else
5240
5241                           LINE=`grep "^wxUSE_MEM_TRACING=" ${wx_arg_cache_file}`
5242                           if test "x$LINE" != x ; then
5243                             eval "DEFAULT_$LINE"
5244                           fi
5245
5246                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5247
5248 fi
5249
5250
5251           eval "$wx_cv_use_mem_tracing"
5252           if test "x$cache" = xyes; then
5253             echo "wxUSE_MEM_TRACING=$wxUSE_MEM_TRACING" >> ${wx_arg_cache_file}.tmp
5254           fi
5255
5256           if test x"$enablestring" = xdisable; then
5257             if test $wxUSE_MEM_TRACING = yes; then
5258               result=no
5259             else
5260               result=yes
5261             fi
5262           else
5263             result=$wxUSE_MEM_TRACING
5264           fi
5265
5266           { echo "$as_me:$LINENO: result: $result" >&5
5267 echo "${ECHO_T}$result" >&6; }
5268
5269
5270           enablestring=
5271           defaultval=
5272           if test -z "$defaultval"; then
5273               if test x"$enablestring" = xdisable; then
5274                   defaultval=yes
5275               else
5276                   defaultval=no
5277               fi
5278           fi
5279
5280           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5281 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5282           # Check whether --enable-profile was given.
5283 if test "${enable_profile+set}" = set; then
5284   enableval=$enable_profile;
5285                           if test "$enableval" = yes; then
5286                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5287                           else
5288                             wx_cv_use_profile='wxUSE_PROFILE=no'
5289                           fi
5290                           cache=yes
5291
5292 else
5293
5294                           LINE=`grep "^wxUSE_PROFILE=" ${wx_arg_cache_file}`
5295                           if test "x$LINE" != x ; then
5296                             eval "DEFAULT_$LINE"
5297                           fi
5298
5299                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5300
5301 fi
5302
5303
5304           eval "$wx_cv_use_profile"
5305           if test "x$cache" = xyes; then
5306             echo "wxUSE_PROFILE=$wxUSE_PROFILE" >> ${wx_arg_cache_file}.tmp
5307           fi
5308
5309           if test x"$enablestring" = xdisable; then
5310             if test $wxUSE_PROFILE = yes; then
5311               result=no
5312             else
5313               result=yes
5314             fi
5315           else
5316             result=$wxUSE_PROFILE
5317           fi
5318
5319           { echo "$as_me:$LINENO: result: $result" >&5
5320 echo "${ECHO_T}$result" >&6; }
5321
5322
5323           enablestring=
5324           defaultval=
5325           if test -z "$defaultval"; then
5326               if test x"$enablestring" = xdisable; then
5327                   defaultval=yes
5328               else
5329                   defaultval=no
5330               fi
5331           fi
5332
5333           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5334 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5335           # Check whether --enable-no_rtti was given.
5336 if test "${enable_no_rtti+set}" = set; then
5337   enableval=$enable_no_rtti;
5338                           if test "$enableval" = yes; then
5339                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5340                           else
5341                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5342                           fi
5343                           cache=yes
5344
5345 else
5346
5347                           LINE=`grep "^wxUSE_NO_RTTI=" ${wx_arg_cache_file}`
5348                           if test "x$LINE" != x ; then
5349                             eval "DEFAULT_$LINE"
5350                           fi
5351
5352                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5353
5354 fi
5355
5356
5357           eval "$wx_cv_use_no_rtti"
5358           if test "x$cache" = xyes; then
5359             echo "wxUSE_NO_RTTI=$wxUSE_NO_RTTI" >> ${wx_arg_cache_file}.tmp
5360           fi
5361
5362           if test x"$enablestring" = xdisable; then
5363             if test $wxUSE_NO_RTTI = yes; then
5364               result=no
5365             else
5366               result=yes
5367             fi
5368           else
5369             result=$wxUSE_NO_RTTI
5370           fi
5371
5372           { echo "$as_me:$LINENO: result: $result" >&5
5373 echo "${ECHO_T}$result" >&6; }
5374
5375
5376           enablestring=
5377           defaultval=
5378           if test -z "$defaultval"; then
5379               if test x"$enablestring" = xdisable; then
5380                   defaultval=yes
5381               else
5382                   defaultval=no
5383               fi
5384           fi
5385
5386           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5387 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5388           # Check whether --enable-no_exceptions was given.
5389 if test "${enable_no_exceptions+set}" = set; then
5390   enableval=$enable_no_exceptions;
5391                           if test "$enableval" = yes; then
5392                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5393                           else
5394                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5395                           fi
5396                           cache=yes
5397
5398 else
5399
5400                           LINE=`grep "^wxUSE_NO_EXCEPTIONS=" ${wx_arg_cache_file}`
5401                           if test "x$LINE" != x ; then
5402                             eval "DEFAULT_$LINE"
5403                           fi
5404
5405                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5406
5407 fi
5408
5409
5410           eval "$wx_cv_use_no_exceptions"
5411           if test "x$cache" = xyes; then
5412             echo "wxUSE_NO_EXCEPTIONS=$wxUSE_NO_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
5413           fi
5414
5415           if test x"$enablestring" = xdisable; then
5416             if test $wxUSE_NO_EXCEPTIONS = yes; then
5417               result=no
5418             else
5419               result=yes
5420             fi
5421           else
5422             result=$wxUSE_NO_EXCEPTIONS
5423           fi
5424
5425           { echo "$as_me:$LINENO: result: $result" >&5
5426 echo "${ECHO_T}$result" >&6; }
5427
5428
5429           enablestring=
5430           defaultval=
5431           if test -z "$defaultval"; then
5432               if test x"$enablestring" = xdisable; then
5433                   defaultval=yes
5434               else
5435                   defaultval=no
5436               fi
5437           fi
5438
5439           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5440 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5441           # Check whether --enable-permissive was given.
5442 if test "${enable_permissive+set}" = set; then
5443   enableval=$enable_permissive;
5444                           if test "$enableval" = yes; then
5445                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5446                           else
5447                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5448                           fi
5449                           cache=yes
5450
5451 else
5452
5453                           LINE=`grep "^wxUSE_PERMISSIVE=" ${wx_arg_cache_file}`
5454                           if test "x$LINE" != x ; then
5455                             eval "DEFAULT_$LINE"
5456                           fi
5457
5458                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5459
5460 fi
5461
5462
5463           eval "$wx_cv_use_permissive"
5464           if test "x$cache" = xyes; then
5465             echo "wxUSE_PERMISSIVE=$wxUSE_PERMISSIVE" >> ${wx_arg_cache_file}.tmp
5466           fi
5467
5468           if test x"$enablestring" = xdisable; then
5469             if test $wxUSE_PERMISSIVE = yes; then
5470               result=no
5471             else
5472               result=yes
5473             fi
5474           else
5475             result=$wxUSE_PERMISSIVE
5476           fi
5477
5478           { echo "$as_me:$LINENO: result: $result" >&5
5479 echo "${ECHO_T}$result" >&6; }
5480
5481
5482           enablestring=
5483           defaultval=
5484           if test -z "$defaultval"; then
5485               if test x"$enablestring" = xdisable; then
5486                   defaultval=yes
5487               else
5488                   defaultval=no
5489               fi
5490           fi
5491
5492           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5493 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5494           # Check whether --enable-no_deps was given.
5495 if test "${enable_no_deps+set}" = set; then
5496   enableval=$enable_no_deps;
5497                           if test "$enableval" = yes; then
5498                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5499                           else
5500                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5501                           fi
5502                           cache=yes
5503
5504 else
5505
5506                           LINE=`grep "^wxUSE_NO_DEPS=" ${wx_arg_cache_file}`
5507                           if test "x$LINE" != x ; then
5508                             eval "DEFAULT_$LINE"
5509                           fi
5510
5511                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5512
5513 fi
5514
5515
5516           eval "$wx_cv_use_no_deps"
5517           if test "x$cache" = xyes; then
5518             echo "wxUSE_NO_DEPS=$wxUSE_NO_DEPS" >> ${wx_arg_cache_file}.tmp
5519           fi
5520
5521           if test x"$enablestring" = xdisable; then
5522             if test $wxUSE_NO_DEPS = yes; then
5523               result=no
5524             else
5525               result=yes
5526             fi
5527           else
5528             result=$wxUSE_NO_DEPS
5529           fi
5530
5531           { echo "$as_me:$LINENO: result: $result" >&5
5532 echo "${ECHO_T}$result" >&6; }
5533
5534
5535           enablestring=disable
5536           defaultval=
5537           if test -z "$defaultval"; then
5538               if test x"$enablestring" = xdisable; then
5539                   defaultval=yes
5540               else
5541                   defaultval=no
5542               fi
5543           fi
5544
5545           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5546 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5547           # Check whether --enable-vararg_macros was given.
5548 if test "${enable_vararg_macros+set}" = set; then
5549   enableval=$enable_vararg_macros;
5550                           if test "$enableval" = yes; then
5551                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5552                           else
5553                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5554                           fi
5555                           cache=yes
5556
5557 else
5558
5559                           LINE=`grep "^wxUSE_VARARG_MACROS=" ${wx_arg_cache_file}`
5560                           if test "x$LINE" != x ; then
5561                             eval "DEFAULT_$LINE"
5562                           fi
5563
5564                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5565
5566 fi
5567
5568
5569           eval "$wx_cv_use_vararg_macros"
5570           if test "x$cache" = xyes; then
5571             echo "wxUSE_VARARG_MACROS=$wxUSE_VARARG_MACROS" >> ${wx_arg_cache_file}.tmp
5572           fi
5573
5574           if test x"$enablestring" = xdisable; then
5575             if test $wxUSE_VARARG_MACROS = yes; then
5576               result=no
5577             else
5578               result=yes
5579             fi
5580           else
5581             result=$wxUSE_VARARG_MACROS
5582           fi
5583
5584           { echo "$as_me:$LINENO: result: $result" >&5
5585 echo "${ECHO_T}$result" >&6; }
5586
5587
5588           enablestring=
5589           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5590 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5591           # Check whether --enable-universal_binary was given.
5592 if test "${enable_universal_binary+set}" = set; then
5593   enableval=$enable_universal_binary;
5594                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5595                           cache=yes
5596
5597 else
5598
5599                           LINE=`grep "^wxUSE_UNIVERSAL_BINARY=" ${wx_arg_cache_file}`
5600                           if test "x$LINE" != x ; then
5601                             eval "DEFAULT_$LINE"
5602                           fi
5603
5604                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5605
5606 fi
5607
5608
5609           eval "$wx_cv_use_universal_binary"
5610           if test "x$cache" = xyes; then
5611             echo "wxUSE_UNIVERSAL_BINARY=$wxUSE_UNIVERSAL_BINARY" >> ${wx_arg_cache_file}.tmp
5612           fi
5613
5614           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5615 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5616
5617
5618
5619           enablestring=
5620           defaultval=
5621           if test -z "$defaultval"; then
5622               if test x"$enablestring" = xdisable; then
5623                   defaultval=yes
5624               else
5625                   defaultval=no
5626               fi
5627           fi
5628
5629           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5630 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5631           # Check whether --enable-compat26 was given.
5632 if test "${enable_compat26+set}" = set; then
5633   enableval=$enable_compat26;
5634                           if test "$enableval" = yes; then
5635                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5636                           else
5637                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5638                           fi
5639                           cache=yes
5640
5641 else
5642
5643                           LINE=`grep "^WXWIN_COMPATIBILITY_2_6=" ${wx_arg_cache_file}`
5644                           if test "x$LINE" != x ; then
5645                             eval "DEFAULT_$LINE"
5646                           fi
5647
5648                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5649
5650 fi
5651
5652
5653           eval "$wx_cv_use_compat26"
5654           if test "x$cache" = xyes; then
5655             echo "WXWIN_COMPATIBILITY_2_6=$WXWIN_COMPATIBILITY_2_6" >> ${wx_arg_cache_file}.tmp
5656           fi
5657
5658           if test x"$enablestring" = xdisable; then
5659             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5660               result=no
5661             else
5662               result=yes
5663             fi
5664           else
5665             result=$WXWIN_COMPATIBILITY_2_6
5666           fi
5667
5668           { echo "$as_me:$LINENO: result: $result" >&5
5669 echo "${ECHO_T}$result" >&6; }
5670
5671
5672           enablestring=disable
5673           defaultval=
5674           if test -z "$defaultval"; then
5675               if test x"$enablestring" = xdisable; then
5676                   defaultval=yes
5677               else
5678                   defaultval=no
5679               fi
5680           fi
5681
5682           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5683 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5684           # Check whether --enable-compat28 was given.
5685 if test "${enable_compat28+set}" = set; then
5686   enableval=$enable_compat28;
5687                           if test "$enableval" = yes; then
5688                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5689                           else
5690                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5691                           fi
5692                           cache=yes
5693
5694 else
5695
5696                           LINE=`grep "^WXWIN_COMPATIBILITY_2_8=" ${wx_arg_cache_file}`
5697                           if test "x$LINE" != x ; then
5698                             eval "DEFAULT_$LINE"
5699                           fi
5700
5701                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5702
5703 fi
5704
5705
5706           eval "$wx_cv_use_compat28"
5707           if test "x$cache" = xyes; then
5708             echo "WXWIN_COMPATIBILITY_2_8=$WXWIN_COMPATIBILITY_2_8" >> ${wx_arg_cache_file}.tmp
5709           fi
5710
5711           if test x"$enablestring" = xdisable; then
5712             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5713               result=no
5714             else
5715               result=yes
5716             fi
5717           else
5718             result=$WXWIN_COMPATIBILITY_2_8
5719           fi
5720
5721           { echo "$as_me:$LINENO: result: $result" >&5
5722 echo "${ECHO_T}$result" >&6; }
5723
5724
5725
5726           enablestring=disable
5727           defaultval=
5728           if test -z "$defaultval"; then
5729               if test x"$enablestring" = xdisable; then
5730                   defaultval=yes
5731               else
5732                   defaultval=no
5733               fi
5734           fi
5735
5736           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5737 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5738           # Check whether --enable-rpath was given.
5739 if test "${enable_rpath+set}" = set; then
5740   enableval=$enable_rpath;
5741                           if test "$enableval" = yes; then
5742                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5743                           else
5744                             wx_cv_use_rpath='wxUSE_RPATH=no'
5745                           fi
5746                           cache=yes
5747
5748 else
5749
5750                           LINE=`grep "^wxUSE_RPATH=" ${wx_arg_cache_file}`
5751                           if test "x$LINE" != x ; then
5752                             eval "DEFAULT_$LINE"
5753                           fi
5754
5755                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5756
5757 fi
5758
5759
5760           eval "$wx_cv_use_rpath"
5761           if test "x$cache" = xyes; then
5762             echo "wxUSE_RPATH=$wxUSE_RPATH" >> ${wx_arg_cache_file}.tmp
5763           fi
5764
5765           if test x"$enablestring" = xdisable; then
5766             if test $wxUSE_RPATH = yes; then
5767               result=no
5768             else
5769               result=yes
5770             fi
5771           else
5772             result=$wxUSE_RPATH
5773           fi
5774
5775           { echo "$as_me:$LINENO: result: $result" >&5
5776 echo "${ECHO_T}$result" >&6; }
5777
5778
5779
5780           enablestring=
5781           defaultval=
5782           if test -z "$defaultval"; then
5783               if test x"$enablestring" = xdisable; then
5784                   defaultval=yes
5785               else
5786                   defaultval=no
5787               fi
5788           fi
5789
5790           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5791 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5792           # Check whether --enable-objc_uniquifying was given.
5793 if test "${enable_objc_uniquifying+set}" = set; then
5794   enableval=$enable_objc_uniquifying;
5795                           if test "$enableval" = yes; then
5796                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5797                           else
5798                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5799                           fi
5800                           cache=yes
5801
5802 else
5803
5804                           LINE=`grep "^wxUSE_OBJC_UNIQUIFYING=" ${wx_arg_cache_file}`
5805                           if test "x$LINE" != x ; then
5806                             eval "DEFAULT_$LINE"
5807                           fi
5808
5809                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5810
5811 fi
5812
5813
5814           eval "$wx_cv_use_objc_uniquifying"
5815           if test "x$cache" = xyes; then
5816             echo "wxUSE_OBJC_UNIQUIFYING=$wxUSE_OBJC_UNIQUIFYING" >> ${wx_arg_cache_file}.tmp
5817           fi
5818
5819           if test x"$enablestring" = xdisable; then
5820             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5821               result=no
5822             else
5823               result=yes
5824             fi
5825           else
5826             result=$wxUSE_OBJC_UNIQUIFYING
5827           fi
5828
5829           { echo "$as_me:$LINENO: result: $result" >&5
5830 echo "${ECHO_T}$result" >&6; }
5831
5832
5833
5834           enablestring=disable
5835           defaultval=
5836           if test -z "$defaultval"; then
5837               if test x"$enablestring" = xdisable; then
5838                   defaultval=yes
5839               else
5840                   defaultval=no
5841               fi
5842           fi
5843
5844           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5845 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5846           # Check whether --enable-visibility was given.
5847 if test "${enable_visibility+set}" = set; then
5848   enableval=$enable_visibility;
5849                           if test "$enableval" = yes; then
5850                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5851                           else
5852                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5853                           fi
5854                           cache=yes
5855
5856 else
5857
5858                           LINE=`grep "^wxUSE_VISIBILITY=" ${wx_arg_cache_file}`
5859                           if test "x$LINE" != x ; then
5860                             eval "DEFAULT_$LINE"
5861                           fi
5862
5863                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5864
5865 fi
5866
5867
5868           eval "$wx_cv_use_visibility"
5869           if test "x$cache" = xyes; then
5870             echo "wxUSE_VISIBILITY=$wxUSE_VISIBILITY" >> ${wx_arg_cache_file}.tmp
5871           fi
5872
5873           if test x"$enablestring" = xdisable; then
5874             if test $wxUSE_VISIBILITY = yes; then
5875               result=no
5876             else
5877               result=yes
5878             fi
5879           else
5880             result=$wxUSE_VISIBILITY
5881           fi
5882
5883           { echo "$as_me:$LINENO: result: $result" >&5
5884 echo "${ECHO_T}$result" >&6; }
5885
5886
5887
5888
5889           enablestring=
5890           defaultval=$wxUSE_ALL_FEATURES
5891           if test -z "$defaultval"; then
5892               if test x"$enablestring" = xdisable; then
5893                   defaultval=yes
5894               else
5895                   defaultval=no
5896               fi
5897           fi
5898
5899           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5900 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5901           # Check whether --enable-intl was given.
5902 if test "${enable_intl+set}" = set; then
5903   enableval=$enable_intl;
5904                           if test "$enableval" = yes; then
5905                             wx_cv_use_intl='wxUSE_INTL=yes'
5906                           else
5907                             wx_cv_use_intl='wxUSE_INTL=no'
5908                           fi
5909                           cache=yes
5910
5911 else
5912
5913                           LINE=`grep "^wxUSE_INTL=" ${wx_arg_cache_file}`
5914                           if test "x$LINE" != x ; then
5915                             eval "DEFAULT_$LINE"
5916                           fi
5917
5918                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5919
5920 fi
5921
5922
5923           eval "$wx_cv_use_intl"
5924           if test "x$cache" = xyes; then
5925             echo "wxUSE_INTL=$wxUSE_INTL" >> ${wx_arg_cache_file}.tmp
5926           fi
5927
5928           if test x"$enablestring" = xdisable; then
5929             if test $wxUSE_INTL = yes; then
5930               result=no
5931             else
5932               result=yes
5933             fi
5934           else
5935             result=$wxUSE_INTL
5936           fi
5937
5938           { echo "$as_me:$LINENO: result: $result" >&5
5939 echo "${ECHO_T}$result" >&6; }
5940
5941
5942           enablestring=
5943           defaultval=$wxUSE_ALL_FEATURES
5944           if test -z "$defaultval"; then
5945               if test x"$enablestring" = xdisable; then
5946                   defaultval=yes
5947               else
5948                   defaultval=no
5949               fi
5950           fi
5951
5952           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5953 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5954           # Check whether --enable-config was given.
5955 if test "${enable_config+set}" = set; then
5956   enableval=$enable_config;
5957                           if test "$enableval" = yes; then
5958                             wx_cv_use_config='wxUSE_CONFIG=yes'
5959                           else
5960                             wx_cv_use_config='wxUSE_CONFIG=no'
5961                           fi
5962                           cache=yes
5963
5964 else
5965
5966                           LINE=`grep "^wxUSE_CONFIG=" ${wx_arg_cache_file}`
5967                           if test "x$LINE" != x ; then
5968                             eval "DEFAULT_$LINE"
5969                           fi
5970
5971                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5972
5973 fi
5974
5975
5976           eval "$wx_cv_use_config"
5977           if test "x$cache" = xyes; then
5978             echo "wxUSE_CONFIG=$wxUSE_CONFIG" >> ${wx_arg_cache_file}.tmp
5979           fi
5980
5981           if test x"$enablestring" = xdisable; then
5982             if test $wxUSE_CONFIG = yes; then
5983               result=no
5984             else
5985               result=yes
5986             fi
5987           else
5988             result=$wxUSE_CONFIG
5989           fi
5990
5991           { echo "$as_me:$LINENO: result: $result" >&5
5992 echo "${ECHO_T}$result" >&6; }
5993
5994
5995
5996           enablestring=
5997           defaultval=$wxUSE_ALL_FEATURES
5998           if test -z "$defaultval"; then
5999               if test x"$enablestring" = xdisable; then
6000                   defaultval=yes
6001               else
6002                   defaultval=no
6003               fi
6004           fi
6005
6006           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6007 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6008           # Check whether --enable-protocols was given.
6009 if test "${enable_protocols+set}" = set; then
6010   enableval=$enable_protocols;
6011                           if test "$enableval" = yes; then
6012                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6013                           else
6014                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6015                           fi
6016                           cache=yes
6017
6018 else
6019
6020                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
6021                           if test "x$LINE" != x ; then
6022                             eval "DEFAULT_$LINE"
6023                           fi
6024
6025                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6026
6027 fi
6028
6029
6030           eval "$wx_cv_use_protocols"
6031           if test "x$cache" = xyes; then
6032             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
6033           fi
6034
6035           if test x"$enablestring" = xdisable; then
6036             if test $wxUSE_PROTOCOL = yes; then
6037               result=no
6038             else
6039               result=yes
6040             fi
6041           else
6042             result=$wxUSE_PROTOCOL
6043           fi
6044
6045           { echo "$as_me:$LINENO: result: $result" >&5
6046 echo "${ECHO_T}$result" >&6; }
6047
6048
6049           enablestring=
6050           defaultval=$wxUSE_ALL_FEATURES
6051           if test -z "$defaultval"; then
6052               if test x"$enablestring" = xdisable; then
6053                   defaultval=yes
6054               else
6055                   defaultval=no
6056               fi
6057           fi
6058
6059           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6060 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6061           # Check whether --enable-ftp was given.
6062 if test "${enable_ftp+set}" = set; then
6063   enableval=$enable_ftp;
6064                           if test "$enableval" = yes; then
6065                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6066                           else
6067                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6068                           fi
6069                           cache=yes
6070
6071 else
6072
6073                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
6074                           if test "x$LINE" != x ; then
6075                             eval "DEFAULT_$LINE"
6076                           fi
6077
6078                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6079
6080 fi
6081
6082
6083           eval "$wx_cv_use_ftp"
6084           if test "x$cache" = xyes; then
6085             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
6086           fi
6087
6088           if test x"$enablestring" = xdisable; then
6089             if test $wxUSE_PROTOCOL_FTP = yes; then
6090               result=no
6091             else
6092               result=yes
6093             fi
6094           else
6095             result=$wxUSE_PROTOCOL_FTP
6096           fi
6097
6098           { echo "$as_me:$LINENO: result: $result" >&5
6099 echo "${ECHO_T}$result" >&6; }
6100
6101
6102           enablestring=
6103           defaultval=$wxUSE_ALL_FEATURES
6104           if test -z "$defaultval"; then
6105               if test x"$enablestring" = xdisable; then
6106                   defaultval=yes
6107               else
6108                   defaultval=no
6109               fi
6110           fi
6111
6112           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6113 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6114           # Check whether --enable-http was given.
6115 if test "${enable_http+set}" = set; then
6116   enableval=$enable_http;
6117                           if test "$enableval" = yes; then
6118                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6119                           else
6120                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6121                           fi
6122                           cache=yes
6123
6124 else
6125
6126                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
6127                           if test "x$LINE" != x ; then
6128                             eval "DEFAULT_$LINE"
6129                           fi
6130
6131                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6132
6133 fi
6134
6135
6136           eval "$wx_cv_use_http"
6137           if test "x$cache" = xyes; then
6138             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
6139           fi
6140
6141           if test x"$enablestring" = xdisable; then
6142             if test $wxUSE_PROTOCOL_HTTP = yes; then
6143               result=no
6144             else
6145               result=yes
6146             fi
6147           else
6148             result=$wxUSE_PROTOCOL_HTTP
6149           fi
6150
6151           { echo "$as_me:$LINENO: result: $result" >&5
6152 echo "${ECHO_T}$result" >&6; }
6153
6154
6155           enablestring=
6156           defaultval=$wxUSE_ALL_FEATURES
6157           if test -z "$defaultval"; then
6158               if test x"$enablestring" = xdisable; then
6159                   defaultval=yes
6160               else
6161                   defaultval=no
6162               fi
6163           fi
6164
6165           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6166 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6167           # Check whether --enable-fileproto was given.
6168 if test "${enable_fileproto+set}" = set; then
6169   enableval=$enable_fileproto;
6170                           if test "$enableval" = yes; then
6171                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6172                           else
6173                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6174                           fi
6175                           cache=yes
6176
6177 else
6178
6179                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
6180                           if test "x$LINE" != x ; then
6181                             eval "DEFAULT_$LINE"
6182                           fi
6183
6184                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6185
6186 fi
6187
6188
6189           eval "$wx_cv_use_fileproto"
6190           if test "x$cache" = xyes; then
6191             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
6192           fi
6193
6194           if test x"$enablestring" = xdisable; then
6195             if test $wxUSE_PROTOCOL_FILE = yes; then
6196               result=no
6197             else
6198               result=yes
6199             fi
6200           else
6201             result=$wxUSE_PROTOCOL_FILE
6202           fi
6203
6204           { echo "$as_me:$LINENO: result: $result" >&5
6205 echo "${ECHO_T}$result" >&6; }
6206
6207
6208           enablestring=
6209           defaultval=$wxUSE_ALL_FEATURES
6210           if test -z "$defaultval"; then
6211               if test x"$enablestring" = xdisable; then
6212                   defaultval=yes
6213               else
6214                   defaultval=no
6215               fi
6216           fi
6217
6218           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6219 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6220           # Check whether --enable-sockets was given.
6221 if test "${enable_sockets+set}" = set; then
6222   enableval=$enable_sockets;
6223                           if test "$enableval" = yes; then
6224                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6225                           else
6226                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6227                           fi
6228                           cache=yes
6229
6230 else
6231
6232                           LINE=`grep "^wxUSE_SOCKETS=" ${wx_arg_cache_file}`
6233                           if test "x$LINE" != x ; then
6234                             eval "DEFAULT_$LINE"
6235                           fi
6236
6237                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6238
6239 fi
6240
6241
6242           eval "$wx_cv_use_sockets"
6243           if test "x$cache" = xyes; then
6244             echo "wxUSE_SOCKETS=$wxUSE_SOCKETS" >> ${wx_arg_cache_file}.tmp
6245           fi
6246
6247           if test x"$enablestring" = xdisable; then
6248             if test $wxUSE_SOCKETS = yes; then
6249               result=no
6250             else
6251               result=yes
6252             fi
6253           else
6254             result=$wxUSE_SOCKETS
6255           fi
6256
6257           { echo "$as_me:$LINENO: result: $result" >&5
6258 echo "${ECHO_T}$result" >&6; }
6259
6260
6261           enablestring=
6262           defaultval=$wxUSE_ALL_FEATURES
6263           if test -z "$defaultval"; then
6264               if test x"$enablestring" = xdisable; then
6265                   defaultval=yes
6266               else
6267                   defaultval=no
6268               fi
6269           fi
6270
6271           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6272 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6273           # Check whether --enable-ole was given.
6274 if test "${enable_ole+set}" = set; then
6275   enableval=$enable_ole;
6276                           if test "$enableval" = yes; then
6277                             wx_cv_use_ole='wxUSE_OLE=yes'
6278                           else
6279                             wx_cv_use_ole='wxUSE_OLE=no'
6280                           fi
6281                           cache=yes
6282
6283 else
6284
6285                           LINE=`grep "^wxUSE_OLE=" ${wx_arg_cache_file}`
6286                           if test "x$LINE" != x ; then
6287                             eval "DEFAULT_$LINE"
6288                           fi
6289
6290                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6291
6292 fi
6293
6294
6295           eval "$wx_cv_use_ole"
6296           if test "x$cache" = xyes; then
6297             echo "wxUSE_OLE=$wxUSE_OLE" >> ${wx_arg_cache_file}.tmp
6298           fi
6299
6300           if test x"$enablestring" = xdisable; then
6301             if test $wxUSE_OLE = yes; then
6302               result=no
6303             else
6304               result=yes
6305             fi
6306           else
6307             result=$wxUSE_OLE
6308           fi
6309
6310           { echo "$as_me:$LINENO: result: $result" >&5
6311 echo "${ECHO_T}$result" >&6; }
6312
6313
6314           enablestring=
6315           defaultval=$wxUSE_ALL_FEATURES
6316           if test -z "$defaultval"; then
6317               if test x"$enablestring" = xdisable; then
6318                   defaultval=yes
6319               else
6320                   defaultval=no
6321               fi
6322           fi
6323
6324           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6325 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6326           # Check whether --enable-dataobj was given.
6327 if test "${enable_dataobj+set}" = set; then
6328   enableval=$enable_dataobj;
6329                           if test "$enableval" = yes; then
6330                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6331                           else
6332                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6333                           fi
6334                           cache=yes
6335
6336 else
6337
6338                           LINE=`grep "^wxUSE_DATAOBJ=" ${wx_arg_cache_file}`
6339                           if test "x$LINE" != x ; then
6340                             eval "DEFAULT_$LINE"
6341                           fi
6342
6343                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6344
6345 fi
6346
6347
6348           eval "$wx_cv_use_dataobj"
6349           if test "x$cache" = xyes; then
6350             echo "wxUSE_DATAOBJ=$wxUSE_DATAOBJ" >> ${wx_arg_cache_file}.tmp
6351           fi
6352
6353           if test x"$enablestring" = xdisable; then
6354             if test $wxUSE_DATAOBJ = yes; then
6355               result=no
6356             else
6357               result=yes
6358             fi
6359           else
6360             result=$wxUSE_DATAOBJ
6361           fi
6362
6363           { echo "$as_me:$LINENO: result: $result" >&5
6364 echo "${ECHO_T}$result" >&6; }
6365
6366
6367
6368           enablestring=
6369           defaultval=$wxUSE_ALL_FEATURES
6370           if test -z "$defaultval"; then
6371               if test x"$enablestring" = xdisable; then
6372                   defaultval=yes
6373               else
6374                   defaultval=no
6375               fi
6376           fi
6377
6378           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6379 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6380           # Check whether --enable-ipc was given.
6381 if test "${enable_ipc+set}" = set; then
6382   enableval=$enable_ipc;
6383                           if test "$enableval" = yes; then
6384                             wx_cv_use_ipc='wxUSE_IPC=yes'
6385                           else
6386                             wx_cv_use_ipc='wxUSE_IPC=no'
6387                           fi
6388                           cache=yes
6389
6390 else
6391
6392                           LINE=`grep "^wxUSE_IPC=" ${wx_arg_cache_file}`
6393                           if test "x$LINE" != x ; then
6394                             eval "DEFAULT_$LINE"
6395                           fi
6396
6397                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6398
6399 fi
6400
6401
6402           eval "$wx_cv_use_ipc"
6403           if test "x$cache" = xyes; then
6404             echo "wxUSE_IPC=$wxUSE_IPC" >> ${wx_arg_cache_file}.tmp
6405           fi
6406
6407           if test x"$enablestring" = xdisable; then
6408             if test $wxUSE_IPC = yes; then
6409               result=no
6410             else
6411               result=yes
6412             fi
6413           else
6414             result=$wxUSE_IPC
6415           fi
6416
6417           { echo "$as_me:$LINENO: result: $result" >&5
6418 echo "${ECHO_T}$result" >&6; }
6419
6420
6421
6422           enablestring=
6423           defaultval=$wxUSE_ALL_FEATURES
6424           if test -z "$defaultval"; then
6425               if test x"$enablestring" = xdisable; then
6426                   defaultval=yes
6427               else
6428                   defaultval=no
6429               fi
6430           fi
6431
6432           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6433 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6434           # Check whether --enable-baseevtloop was given.
6435 if test "${enable_baseevtloop+set}" = set; then
6436   enableval=$enable_baseevtloop;
6437                           if test "$enableval" = yes; then
6438                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6439                           else
6440                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6441                           fi
6442                           cache=yes
6443
6444 else
6445
6446                           LINE=`grep "^wxUSE_CONSOLE_EVENTLOOP=" ${wx_arg_cache_file}`
6447                           if test "x$LINE" != x ; then
6448                             eval "DEFAULT_$LINE"
6449                           fi
6450
6451                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6452
6453 fi
6454
6455
6456           eval "$wx_cv_use_baseevtloop"
6457           if test "x$cache" = xyes; then
6458             echo "wxUSE_CONSOLE_EVENTLOOP=$wxUSE_CONSOLE_EVENTLOOP" >> ${wx_arg_cache_file}.tmp
6459           fi
6460
6461           if test x"$enablestring" = xdisable; then
6462             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6463               result=no
6464             else
6465               result=yes
6466             fi
6467           else
6468             result=$wxUSE_CONSOLE_EVENTLOOP
6469           fi
6470
6471           { echo "$as_me:$LINENO: result: $result" >&5
6472 echo "${ECHO_T}$result" >&6; }
6473
6474
6475           enablestring=
6476           defaultval=$wxUSE_ALL_FEATURES
6477           if test -z "$defaultval"; then
6478               if test x"$enablestring" = xdisable; then
6479                   defaultval=yes
6480               else
6481                   defaultval=no
6482               fi
6483           fi
6484
6485           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epoolloop" >&5
6486 echo $ECHO_N "checking for --${enablestring:-enable}-epoolloop... $ECHO_C" >&6; }
6487           # Check whether --enable-epoolloop was given.
6488 if test "${enable_epoolloop+set}" = set; then
6489   enableval=$enable_epoolloop;
6490                           if test "$enableval" = yes; then
6491                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=yes'
6492                           else
6493                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=no'
6494                           fi
6495                           cache=yes
6496
6497 else
6498
6499                           LINE=`grep "^wxUSE_EPOLL_DISPATCHER=" ${wx_arg_cache_file}`
6500                           if test "x$LINE" != x ; then
6501                             eval "DEFAULT_$LINE"
6502                           fi
6503
6504                           wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6505
6506 fi
6507
6508
6509           eval "$wx_cv_use_epoolloop"
6510           if test "x$cache" = xyes; then
6511             echo "wxUSE_EPOLL_DISPATCHER=$wxUSE_EPOLL_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6512           fi
6513
6514           if test x"$enablestring" = xdisable; then
6515             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6516               result=no
6517             else
6518               result=yes
6519             fi
6520           else
6521             result=$wxUSE_EPOLL_DISPATCHER
6522           fi
6523
6524           { echo "$as_me:$LINENO: result: $result" >&5
6525 echo "${ECHO_T}$result" >&6; }
6526
6527
6528           enablestring=
6529           defaultval=$wxUSE_ALL_FEATURES
6530           if test -z "$defaultval"; then
6531               if test x"$enablestring" = xdisable; then
6532                   defaultval=yes
6533               else
6534                   defaultval=no
6535               fi
6536           fi
6537
6538           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6539 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6540           # Check whether --enable-selectloop was given.
6541 if test "${enable_selectloop+set}" = set; then
6542   enableval=$enable_selectloop;
6543                           if test "$enableval" = yes; then
6544                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6545                           else
6546                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6547                           fi
6548                           cache=yes
6549
6550 else
6551
6552                           LINE=`grep "^wxUSE_SELECT_DISPATCHER=" ${wx_arg_cache_file}`
6553                           if test "x$LINE" != x ; then
6554                             eval "DEFAULT_$LINE"
6555                           fi
6556
6557                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6558
6559 fi
6560
6561
6562           eval "$wx_cv_use_selectloop"
6563           if test "x$cache" = xyes; then
6564             echo "wxUSE_SELECT_DISPATCHER=$wxUSE_SELECT_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6565           fi
6566
6567           if test x"$enablestring" = xdisable; then
6568             if test $wxUSE_SELECT_DISPATCHER = yes; then
6569               result=no
6570             else
6571               result=yes
6572             fi
6573           else
6574             result=$wxUSE_SELECT_DISPATCHER
6575           fi
6576
6577           { echo "$as_me:$LINENO: result: $result" >&5
6578 echo "${ECHO_T}$result" >&6; }
6579
6580
6581
6582           enablestring=
6583           defaultval=$wxUSE_ALL_FEATURES
6584           if test -z "$defaultval"; then
6585               if test x"$enablestring" = xdisable; then
6586                   defaultval=yes
6587               else
6588                   defaultval=no
6589               fi
6590           fi
6591
6592           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6593 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6594           # Check whether --enable-apple_ieee was given.
6595 if test "${enable_apple_ieee+set}" = set; then
6596   enableval=$enable_apple_ieee;
6597                           if test "$enableval" = yes; then
6598                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6599                           else
6600                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6601                           fi
6602                           cache=yes
6603
6604 else
6605
6606                           LINE=`grep "^wxUSE_APPLE_IEEE=" ${wx_arg_cache_file}`
6607                           if test "x$LINE" != x ; then
6608                             eval "DEFAULT_$LINE"
6609                           fi
6610
6611                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6612
6613 fi
6614
6615
6616           eval "$wx_cv_use_apple_ieee"
6617           if test "x$cache" = xyes; then
6618             echo "wxUSE_APPLE_IEEE=$wxUSE_APPLE_IEEE" >> ${wx_arg_cache_file}.tmp
6619           fi
6620
6621           if test x"$enablestring" = xdisable; then
6622             if test $wxUSE_APPLE_IEEE = yes; then
6623               result=no
6624             else
6625               result=yes
6626             fi
6627           else
6628             result=$wxUSE_APPLE_IEEE
6629           fi
6630
6631           { echo "$as_me:$LINENO: result: $result" >&5
6632 echo "${ECHO_T}$result" >&6; }
6633
6634
6635           enablestring=
6636           defaultval=$wxUSE_ALL_FEATURES
6637           if test -z "$defaultval"; then
6638               if test x"$enablestring" = xdisable; then
6639                   defaultval=yes
6640               else
6641                   defaultval=no
6642               fi
6643           fi
6644
6645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6646 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6647           # Check whether --enable-arcstream was given.
6648 if test "${enable_arcstream+set}" = set; then
6649   enableval=$enable_arcstream;
6650                           if test "$enableval" = yes; then
6651                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6652                           else
6653                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6654                           fi
6655                           cache=yes
6656
6657 else
6658
6659                           LINE=`grep "^wxUSE_ARCHIVE_STREAMS=" ${wx_arg_cache_file}`
6660                           if test "x$LINE" != x ; then
6661                             eval "DEFAULT_$LINE"
6662                           fi
6663
6664                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6665
6666 fi
6667
6668
6669           eval "$wx_cv_use_arcstream"
6670           if test "x$cache" = xyes; then
6671             echo "wxUSE_ARCHIVE_STREAMS=$wxUSE_ARCHIVE_STREAMS" >> ${wx_arg_cache_file}.tmp
6672           fi
6673
6674           if test x"$enablestring" = xdisable; then
6675             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6676               result=no
6677             else
6678               result=yes
6679             fi
6680           else
6681             result=$wxUSE_ARCHIVE_STREAMS
6682           fi
6683
6684           { echo "$as_me:$LINENO: result: $result" >&5
6685 echo "${ECHO_T}$result" >&6; }
6686
6687
6688           enablestring=
6689           defaultval=$wxUSE_ALL_FEATURES
6690           if test -z "$defaultval"; then
6691               if test x"$enablestring" = xdisable; then
6692                   defaultval=yes
6693               else
6694                   defaultval=no
6695               fi
6696           fi
6697
6698           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6699 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6700           # Check whether --enable-base64 was given.
6701 if test "${enable_base64+set}" = set; then
6702   enableval=$enable_base64;
6703                           if test "$enableval" = yes; then
6704                             wx_cv_use_base64='wxUSE_BASE64=yes'
6705                           else
6706                             wx_cv_use_base64='wxUSE_BASE64=no'
6707                           fi
6708                           cache=yes
6709
6710 else
6711
6712                           LINE=`grep "^wxUSE_BASE64=" ${wx_arg_cache_file}`
6713                           if test "x$LINE" != x ; then
6714                             eval "DEFAULT_$LINE"
6715                           fi
6716
6717                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6718
6719 fi
6720
6721
6722           eval "$wx_cv_use_base64"
6723           if test "x$cache" = xyes; then
6724             echo "wxUSE_BASE64=$wxUSE_BASE64" >> ${wx_arg_cache_file}.tmp
6725           fi
6726
6727           if test x"$enablestring" = xdisable; then
6728             if test $wxUSE_BASE64 = yes; then
6729               result=no
6730             else
6731               result=yes
6732             fi
6733           else
6734             result=$wxUSE_BASE64
6735           fi
6736
6737           { echo "$as_me:$LINENO: result: $result" >&5
6738 echo "${ECHO_T}$result" >&6; }
6739
6740
6741           enablestring=
6742           defaultval=$wxUSE_ALL_FEATURES
6743           if test -z "$defaultval"; then
6744               if test x"$enablestring" = xdisable; then
6745                   defaultval=yes
6746               else
6747                   defaultval=no
6748               fi
6749           fi
6750
6751           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6752 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6753           # Check whether --enable-backtrace was given.
6754 if test "${enable_backtrace+set}" = set; then
6755   enableval=$enable_backtrace;
6756                           if test "$enableval" = yes; then
6757                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6758                           else
6759                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6760                           fi
6761                           cache=yes
6762
6763 else
6764
6765                           LINE=`grep "^wxUSE_STACKWALKER=" ${wx_arg_cache_file}`
6766                           if test "x$LINE" != x ; then
6767                             eval "DEFAULT_$LINE"
6768                           fi
6769
6770                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6771
6772 fi
6773
6774
6775           eval "$wx_cv_use_backtrace"
6776           if test "x$cache" = xyes; then
6777             echo "wxUSE_STACKWALKER=$wxUSE_STACKWALKER" >> ${wx_arg_cache_file}.tmp
6778           fi
6779
6780           if test x"$enablestring" = xdisable; then
6781             if test $wxUSE_STACKWALKER = yes; then
6782               result=no
6783             else
6784               result=yes
6785             fi
6786           else
6787             result=$wxUSE_STACKWALKER
6788           fi
6789
6790           { echo "$as_me:$LINENO: result: $result" >&5
6791 echo "${ECHO_T}$result" >&6; }
6792
6793
6794           enablestring=
6795           defaultval=$wxUSE_ALL_FEATURES
6796           if test -z "$defaultval"; then
6797               if test x"$enablestring" = xdisable; then
6798                   defaultval=yes
6799               else
6800                   defaultval=no
6801               fi
6802           fi
6803
6804           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6805 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6806           # Check whether --enable-catch_segvs was given.
6807 if test "${enable_catch_segvs+set}" = set; then
6808   enableval=$enable_catch_segvs;
6809                           if test "$enableval" = yes; then
6810                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6811                           else
6812                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6813                           fi
6814                           cache=yes
6815
6816 else
6817
6818                           LINE=`grep "^wxUSE_ON_FATAL_EXCEPTION=" ${wx_arg_cache_file}`
6819                           if test "x$LINE" != x ; then
6820                             eval "DEFAULT_$LINE"
6821                           fi
6822
6823                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6824
6825 fi
6826
6827
6828           eval "$wx_cv_use_catch_segvs"
6829           if test "x$cache" = xyes; then
6830             echo "wxUSE_ON_FATAL_EXCEPTION=$wxUSE_ON_FATAL_EXCEPTION" >> ${wx_arg_cache_file}.tmp
6831           fi
6832
6833           if test x"$enablestring" = xdisable; then
6834             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6835               result=no
6836             else
6837               result=yes
6838             fi
6839           else
6840             result=$wxUSE_ON_FATAL_EXCEPTION
6841           fi
6842
6843           { echo "$as_me:$LINENO: result: $result" >&5
6844 echo "${ECHO_T}$result" >&6; }
6845
6846
6847           enablestring=
6848           defaultval=$wxUSE_ALL_FEATURES
6849           if test -z "$defaultval"; then
6850               if test x"$enablestring" = xdisable; then
6851                   defaultval=yes
6852               else
6853                   defaultval=no
6854               fi
6855           fi
6856
6857           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6858 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6859           # Check whether --enable-cmdline was given.
6860 if test "${enable_cmdline+set}" = set; then
6861   enableval=$enable_cmdline;
6862                           if test "$enableval" = yes; then
6863                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6864                           else
6865                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6866                           fi
6867                           cache=yes
6868
6869 else
6870
6871                           LINE=`grep "^wxUSE_CMDLINE_PARSER=" ${wx_arg_cache_file}`
6872                           if test "x$LINE" != x ; then
6873                             eval "DEFAULT_$LINE"
6874                           fi
6875
6876                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6877
6878 fi
6879
6880
6881           eval "$wx_cv_use_cmdline"
6882           if test "x$cache" = xyes; then
6883             echo "wxUSE_CMDLINE_PARSER=$wxUSE_CMDLINE_PARSER" >> ${wx_arg_cache_file}.tmp
6884           fi
6885
6886           if test x"$enablestring" = xdisable; then
6887             if test $wxUSE_CMDLINE_PARSER = yes; then
6888               result=no
6889             else
6890               result=yes
6891             fi
6892           else
6893             result=$wxUSE_CMDLINE_PARSER
6894           fi
6895
6896           { echo "$as_me:$LINENO: result: $result" >&5
6897 echo "${ECHO_T}$result" >&6; }
6898
6899
6900           enablestring=
6901           defaultval=$wxUSE_ALL_FEATURES
6902           if test -z "$defaultval"; then
6903               if test x"$enablestring" = xdisable; then
6904                   defaultval=yes
6905               else
6906                   defaultval=no
6907               fi
6908           fi
6909
6910           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6911 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6912           # Check whether --enable-datetime was given.
6913 if test "${enable_datetime+set}" = set; then
6914   enableval=$enable_datetime;
6915                           if test "$enableval" = yes; then
6916                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6917                           else
6918                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6919                           fi
6920                           cache=yes
6921
6922 else
6923
6924                           LINE=`grep "^wxUSE_DATETIME=" ${wx_arg_cache_file}`
6925                           if test "x$LINE" != x ; then
6926                             eval "DEFAULT_$LINE"
6927                           fi
6928
6929                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6930
6931 fi
6932
6933
6934           eval "$wx_cv_use_datetime"
6935           if test "x$cache" = xyes; then
6936             echo "wxUSE_DATETIME=$wxUSE_DATETIME" >> ${wx_arg_cache_file}.tmp
6937           fi
6938
6939           if test x"$enablestring" = xdisable; then
6940             if test $wxUSE_DATETIME = yes; then
6941               result=no
6942             else
6943               result=yes
6944             fi
6945           else
6946             result=$wxUSE_DATETIME
6947           fi
6948
6949           { echo "$as_me:$LINENO: result: $result" >&5
6950 echo "${ECHO_T}$result" >&6; }
6951
6952
6953           enablestring=
6954           defaultval=$wxUSE_ALL_FEATURES
6955           if test -z "$defaultval"; then
6956               if test x"$enablestring" = xdisable; then
6957                   defaultval=yes
6958               else
6959                   defaultval=no
6960               fi
6961           fi
6962
6963           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6964 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6965           # Check whether --enable-debugreport was given.
6966 if test "${enable_debugreport+set}" = set; then
6967   enableval=$enable_debugreport;
6968                           if test "$enableval" = yes; then
6969                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6970                           else
6971                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6972                           fi
6973                           cache=yes
6974
6975 else
6976
6977                           LINE=`grep "^wxUSE_DEBUGREPORT=" ${wx_arg_cache_file}`
6978                           if test "x$LINE" != x ; then
6979                             eval "DEFAULT_$LINE"
6980                           fi
6981
6982                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6983
6984 fi
6985
6986
6987           eval "$wx_cv_use_debugreport"
6988           if test "x$cache" = xyes; then
6989             echo "wxUSE_DEBUGREPORT=$wxUSE_DEBUGREPORT" >> ${wx_arg_cache_file}.tmp
6990           fi
6991
6992           if test x"$enablestring" = xdisable; then
6993             if test $wxUSE_DEBUGREPORT = yes; then
6994               result=no
6995             else
6996               result=yes
6997             fi
6998           else
6999             result=$wxUSE_DEBUGREPORT
7000           fi
7001
7002           { echo "$as_me:$LINENO: result: $result" >&5
7003 echo "${ECHO_T}$result" >&6; }
7004
7005
7006           enablestring=
7007           defaultval=$wxUSE_ALL_FEATURES
7008           if test -z "$defaultval"; then
7009               if test x"$enablestring" = xdisable; then
7010                   defaultval=yes
7011               else
7012                   defaultval=no
7013               fi
7014           fi
7015
7016           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
7017 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
7018           # Check whether --enable-dialupman was given.
7019 if test "${enable_dialupman+set}" = set; then
7020   enableval=$enable_dialupman;
7021                           if test "$enableval" = yes; then
7022                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
7023                           else
7024                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
7025                           fi
7026                           cache=yes
7027
7028 else
7029
7030                           LINE=`grep "^wxUSE_DIALUP_MANAGER=" ${wx_arg_cache_file}`
7031                           if test "x$LINE" != x ; then
7032                             eval "DEFAULT_$LINE"
7033                           fi
7034
7035                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
7036
7037 fi
7038
7039
7040           eval "$wx_cv_use_dialupman"
7041           if test "x$cache" = xyes; then
7042             echo "wxUSE_DIALUP_MANAGER=$wxUSE_DIALUP_MANAGER" >> ${wx_arg_cache_file}.tmp
7043           fi
7044
7045           if test x"$enablestring" = xdisable; then
7046             if test $wxUSE_DIALUP_MANAGER = yes; then
7047               result=no
7048             else
7049               result=yes
7050             fi
7051           else
7052             result=$wxUSE_DIALUP_MANAGER
7053           fi
7054
7055           { echo "$as_me:$LINENO: result: $result" >&5
7056 echo "${ECHO_T}$result" >&6; }
7057
7058
7059           enablestring=
7060           defaultval=$wxUSE_ALL_FEATURES
7061           if test -z "$defaultval"; then
7062               if test x"$enablestring" = xdisable; then
7063                   defaultval=yes
7064               else
7065                   defaultval=no
7066               fi
7067           fi
7068
7069           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
7070 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
7071           # Check whether --enable-dynlib was given.
7072 if test "${enable_dynlib+set}" = set; then
7073   enableval=$enable_dynlib;
7074                           if test "$enableval" = yes; then
7075                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
7076                           else
7077                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7078                           fi
7079                           cache=yes
7080
7081 else
7082
7083                           LINE=`grep "^wxUSE_DYNLIB_CLASS=" ${wx_arg_cache_file}`
7084                           if test "x$LINE" != x ; then
7085                             eval "DEFAULT_$LINE"
7086                           fi
7087
7088                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7089
7090 fi
7091
7092
7093           eval "$wx_cv_use_dynlib"
7094           if test "x$cache" = xyes; then
7095             echo "wxUSE_DYNLIB_CLASS=$wxUSE_DYNLIB_CLASS" >> ${wx_arg_cache_file}.tmp
7096           fi
7097
7098           if test x"$enablestring" = xdisable; then
7099             if test $wxUSE_DYNLIB_CLASS = yes; then
7100               result=no
7101             else
7102               result=yes
7103             fi
7104           else
7105             result=$wxUSE_DYNLIB_CLASS
7106           fi
7107
7108           { echo "$as_me:$LINENO: result: $result" >&5
7109 echo "${ECHO_T}$result" >&6; }
7110
7111
7112           enablestring=
7113           defaultval=$wxUSE_ALL_FEATURES
7114           if test -z "$defaultval"; then
7115               if test x"$enablestring" = xdisable; then
7116                   defaultval=yes
7117               else
7118                   defaultval=no
7119               fi
7120           fi
7121
7122           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7123 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7124           # Check whether --enable-dynamicloader was given.
7125 if test "${enable_dynamicloader+set}" = set; then
7126   enableval=$enable_dynamicloader;
7127                           if test "$enableval" = yes; then
7128                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7129                           else
7130                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7131                           fi
7132                           cache=yes
7133
7134 else
7135
7136                           LINE=`grep "^wxUSE_DYNAMIC_LOADER=" ${wx_arg_cache_file}`
7137                           if test "x$LINE" != x ; then
7138                             eval "DEFAULT_$LINE"
7139                           fi
7140
7141                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7142
7143 fi
7144
7145
7146           eval "$wx_cv_use_dynamicloader"
7147           if test "x$cache" = xyes; then
7148             echo "wxUSE_DYNAMIC_LOADER=$wxUSE_DYNAMIC_LOADER" >> ${wx_arg_cache_file}.tmp
7149           fi
7150
7151           if test x"$enablestring" = xdisable; then
7152             if test $wxUSE_DYNAMIC_LOADER = yes; then
7153               result=no
7154             else
7155               result=yes
7156             fi
7157           else
7158             result=$wxUSE_DYNAMIC_LOADER
7159           fi
7160
7161           { echo "$as_me:$LINENO: result: $result" >&5
7162 echo "${ECHO_T}$result" >&6; }
7163
7164
7165           enablestring=
7166           defaultval=$wxUSE_ALL_FEATURES
7167           if test -z "$defaultval"; then
7168               if test x"$enablestring" = xdisable; then
7169                   defaultval=yes
7170               else
7171                   defaultval=no
7172               fi
7173           fi
7174
7175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7176 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7177           # Check whether --enable-exceptions was given.
7178 if test "${enable_exceptions+set}" = set; then
7179   enableval=$enable_exceptions;
7180                           if test "$enableval" = yes; then
7181                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7182                           else
7183                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7184                           fi
7185                           cache=yes
7186
7187 else
7188
7189                           LINE=`grep "^wxUSE_EXCEPTIONS=" ${wx_arg_cache_file}`
7190                           if test "x$LINE" != x ; then
7191                             eval "DEFAULT_$LINE"
7192                           fi
7193
7194                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7195
7196 fi
7197
7198
7199           eval "$wx_cv_use_exceptions"
7200           if test "x$cache" = xyes; then
7201             echo "wxUSE_EXCEPTIONS=$wxUSE_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
7202           fi
7203
7204           if test x"$enablestring" = xdisable; then
7205             if test $wxUSE_EXCEPTIONS = yes; then
7206               result=no
7207             else
7208               result=yes
7209             fi
7210           else
7211             result=$wxUSE_EXCEPTIONS
7212           fi
7213
7214           { echo "$as_me:$LINENO: result: $result" >&5
7215 echo "${ECHO_T}$result" >&6; }
7216
7217
7218           enablestring=
7219           defaultval=$wxUSE_ALL_FEATURES
7220           if test -z "$defaultval"; then
7221               if test x"$enablestring" = xdisable; then
7222                   defaultval=yes
7223               else
7224                   defaultval=no
7225               fi
7226           fi
7227
7228           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7229 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7230           # Check whether --enable-ffile was given.
7231 if test "${enable_ffile+set}" = set; then
7232   enableval=$enable_ffile;
7233                           if test "$enableval" = yes; then
7234                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7235                           else
7236                             wx_cv_use_ffile='wxUSE_FFILE=no'
7237                           fi
7238                           cache=yes
7239
7240 else
7241
7242                           LINE=`grep "^wxUSE_FFILE=" ${wx_arg_cache_file}`
7243                           if test "x$LINE" != x ; then
7244                             eval "DEFAULT_$LINE"
7245                           fi
7246
7247                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7248
7249 fi
7250
7251
7252           eval "$wx_cv_use_ffile"
7253           if test "x$cache" = xyes; then
7254             echo "wxUSE_FFILE=$wxUSE_FFILE" >> ${wx_arg_cache_file}.tmp
7255           fi
7256
7257           if test x"$enablestring" = xdisable; then
7258             if test $wxUSE_FFILE = yes; then
7259               result=no
7260             else
7261               result=yes
7262             fi
7263           else
7264             result=$wxUSE_FFILE
7265           fi
7266
7267           { echo "$as_me:$LINENO: result: $result" >&5
7268 echo "${ECHO_T}$result" >&6; }
7269
7270
7271           enablestring=
7272           defaultval=$wxUSE_ALL_FEATURES
7273           if test -z "$defaultval"; then
7274               if test x"$enablestring" = xdisable; then
7275                   defaultval=yes
7276               else
7277                   defaultval=no
7278               fi
7279           fi
7280
7281           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7282 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7283           # Check whether --enable-file was given.
7284 if test "${enable_file+set}" = set; then
7285   enableval=$enable_file;
7286                           if test "$enableval" = yes; then
7287                             wx_cv_use_file='wxUSE_FILE=yes'
7288                           else
7289                             wx_cv_use_file='wxUSE_FILE=no'
7290                           fi
7291                           cache=yes
7292
7293 else
7294
7295                           LINE=`grep "^wxUSE_FILE=" ${wx_arg_cache_file}`
7296                           if test "x$LINE" != x ; then
7297                             eval "DEFAULT_$LINE"
7298                           fi
7299
7300                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7301
7302 fi
7303
7304
7305           eval "$wx_cv_use_file"
7306           if test "x$cache" = xyes; then
7307             echo "wxUSE_FILE=$wxUSE_FILE" >> ${wx_arg_cache_file}.tmp
7308           fi
7309
7310           if test x"$enablestring" = xdisable; then
7311             if test $wxUSE_FILE = yes; then
7312               result=no
7313             else
7314               result=yes
7315             fi
7316           else
7317             result=$wxUSE_FILE
7318           fi
7319
7320           { echo "$as_me:$LINENO: result: $result" >&5
7321 echo "${ECHO_T}$result" >&6; }
7322
7323
7324           enablestring=
7325           defaultval=$wxUSE_ALL_FEATURES
7326           if test -z "$defaultval"; then
7327               if test x"$enablestring" = xdisable; then
7328                   defaultval=yes
7329               else
7330                   defaultval=no
7331               fi
7332           fi
7333
7334           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7335 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7336           # Check whether --enable-filesystem was given.
7337 if test "${enable_filesystem+set}" = set; then
7338   enableval=$enable_filesystem;
7339                           if test "$enableval" = yes; then
7340                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7341                           else
7342                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7343                           fi
7344                           cache=yes
7345
7346 else
7347
7348                           LINE=`grep "^wxUSE_FILESYSTEM=" ${wx_arg_cache_file}`
7349                           if test "x$LINE" != x ; then
7350                             eval "DEFAULT_$LINE"
7351                           fi
7352
7353                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7354
7355 fi
7356
7357
7358           eval "$wx_cv_use_filesystem"
7359           if test "x$cache" = xyes; then
7360             echo "wxUSE_FILESYSTEM=$wxUSE_FILESYSTEM" >> ${wx_arg_cache_file}.tmp
7361           fi
7362
7363           if test x"$enablestring" = xdisable; then
7364             if test $wxUSE_FILESYSTEM = yes; then
7365               result=no
7366             else
7367               result=yes
7368             fi
7369           else
7370             result=$wxUSE_FILESYSTEM
7371           fi
7372
7373           { echo "$as_me:$LINENO: result: $result" >&5
7374 echo "${ECHO_T}$result" >&6; }
7375
7376
7377           enablestring=
7378           defaultval=$wxUSE_ALL_FEATURES
7379           if test -z "$defaultval"; then
7380               if test x"$enablestring" = xdisable; then
7381                   defaultval=yes
7382               else
7383                   defaultval=no
7384               fi
7385           fi
7386
7387           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7388 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7389           # Check whether --enable-fontenum was given.
7390 if test "${enable_fontenum+set}" = set; then
7391   enableval=$enable_fontenum;
7392                           if test "$enableval" = yes; then
7393                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7394                           else
7395                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7396                           fi
7397                           cache=yes
7398
7399 else
7400
7401                           LINE=`grep "^wxUSE_FONTENUM=" ${wx_arg_cache_file}`
7402                           if test "x$LINE" != x ; then
7403                             eval "DEFAULT_$LINE"
7404                           fi
7405
7406                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7407
7408 fi
7409
7410
7411           eval "$wx_cv_use_fontenum"
7412           if test "x$cache" = xyes; then
7413             echo "wxUSE_FONTENUM=$wxUSE_FONTENUM" >> ${wx_arg_cache_file}.tmp
7414           fi
7415
7416           if test x"$enablestring" = xdisable; then
7417             if test $wxUSE_FONTENUM = yes; then
7418               result=no
7419             else
7420               result=yes
7421             fi
7422           else
7423             result=$wxUSE_FONTENUM
7424           fi
7425
7426           { echo "$as_me:$LINENO: result: $result" >&5
7427 echo "${ECHO_T}$result" >&6; }
7428
7429
7430           enablestring=
7431           defaultval=$wxUSE_ALL_FEATURES
7432           if test -z "$defaultval"; then
7433               if test x"$enablestring" = xdisable; then
7434                   defaultval=yes
7435               else
7436                   defaultval=no
7437               fi
7438           fi
7439
7440           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7441 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7442           # Check whether --enable-fontmap was given.
7443 if test "${enable_fontmap+set}" = set; then
7444   enableval=$enable_fontmap;
7445                           if test "$enableval" = yes; then
7446                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7447                           else
7448                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7449                           fi
7450                           cache=yes
7451
7452 else
7453
7454                           LINE=`grep "^wxUSE_FONTMAP=" ${wx_arg_cache_file}`
7455                           if test "x$LINE" != x ; then
7456                             eval "DEFAULT_$LINE"
7457                           fi
7458
7459                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7460
7461 fi
7462
7463
7464           eval "$wx_cv_use_fontmap"
7465           if test "x$cache" = xyes; then
7466             echo "wxUSE_FONTMAP=$wxUSE_FONTMAP" >> ${wx_arg_cache_file}.tmp
7467           fi
7468
7469           if test x"$enablestring" = xdisable; then
7470             if test $wxUSE_FONTMAP = yes; then
7471               result=no
7472             else
7473               result=yes
7474             fi
7475           else
7476             result=$wxUSE_FONTMAP
7477           fi
7478
7479           { echo "$as_me:$LINENO: result: $result" >&5
7480 echo "${ECHO_T}$result" >&6; }
7481
7482
7483           enablestring=
7484           defaultval=$wxUSE_ALL_FEATURES
7485           if test -z "$defaultval"; then
7486               if test x"$enablestring" = xdisable; then
7487                   defaultval=yes
7488               else
7489                   defaultval=no
7490               fi
7491           fi
7492
7493           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7494 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7495           # Check whether --enable-fs_archive was given.
7496 if test "${enable_fs_archive+set}" = set; then
7497   enableval=$enable_fs_archive;
7498                           if test "$enableval" = yes; then
7499                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7500                           else
7501                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7502                           fi
7503                           cache=yes
7504
7505 else
7506
7507                           LINE=`grep "^wxUSE_FS_ARCHIVE=" ${wx_arg_cache_file}`
7508                           if test "x$LINE" != x ; then
7509                             eval "DEFAULT_$LINE"
7510                           fi
7511
7512                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7513
7514 fi
7515
7516
7517           eval "$wx_cv_use_fs_archive"
7518           if test "x$cache" = xyes; then
7519             echo "wxUSE_FS_ARCHIVE=$wxUSE_FS_ARCHIVE" >> ${wx_arg_cache_file}.tmp
7520           fi
7521
7522           if test x"$enablestring" = xdisable; then
7523             if test $wxUSE_FS_ARCHIVE = yes; then
7524               result=no
7525             else
7526               result=yes
7527             fi
7528           else
7529             result=$wxUSE_FS_ARCHIVE
7530           fi
7531
7532           { echo "$as_me:$LINENO: result: $result" >&5
7533 echo "${ECHO_T}$result" >&6; }
7534
7535
7536           enablestring=
7537           defaultval=$wxUSE_ALL_FEATURES
7538           if test -z "$defaultval"; then
7539               if test x"$enablestring" = xdisable; then
7540                   defaultval=yes
7541               else
7542                   defaultval=no
7543               fi
7544           fi
7545
7546           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7547 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7548           # Check whether --enable-fs_inet was given.
7549 if test "${enable_fs_inet+set}" = set; then
7550   enableval=$enable_fs_inet;
7551                           if test "$enableval" = yes; then
7552                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7553                           else
7554                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7555                           fi
7556                           cache=yes
7557
7558 else
7559
7560                           LINE=`grep "^wxUSE_FS_INET=" ${wx_arg_cache_file}`
7561                           if test "x$LINE" != x ; then
7562                             eval "DEFAULT_$LINE"
7563                           fi
7564
7565                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7566
7567 fi
7568
7569
7570           eval "$wx_cv_use_fs_inet"
7571           if test "x$cache" = xyes; then
7572             echo "wxUSE_FS_INET=$wxUSE_FS_INET" >> ${wx_arg_cache_file}.tmp
7573           fi
7574
7575           if test x"$enablestring" = xdisable; then
7576             if test $wxUSE_FS_INET = yes; then
7577               result=no
7578             else
7579               result=yes
7580             fi
7581           else
7582             result=$wxUSE_FS_INET
7583           fi
7584
7585           { echo "$as_me:$LINENO: result: $result" >&5
7586 echo "${ECHO_T}$result" >&6; }
7587
7588
7589           enablestring=
7590           defaultval=$wxUSE_ALL_FEATURES
7591           if test -z "$defaultval"; then
7592               if test x"$enablestring" = xdisable; then
7593                   defaultval=yes
7594               else
7595                   defaultval=no
7596               fi
7597           fi
7598
7599           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7600 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7601           # Check whether --enable-fs_zip was given.
7602 if test "${enable_fs_zip+set}" = set; then
7603   enableval=$enable_fs_zip;
7604                           if test "$enableval" = yes; then
7605                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7606                           else
7607                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7608                           fi
7609                           cache=yes
7610
7611 else
7612
7613                           LINE=`grep "^wxUSE_FS_ZIP=" ${wx_arg_cache_file}`
7614                           if test "x$LINE" != x ; then
7615                             eval "DEFAULT_$LINE"
7616                           fi
7617
7618                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7619
7620 fi
7621
7622
7623           eval "$wx_cv_use_fs_zip"
7624           if test "x$cache" = xyes; then
7625             echo "wxUSE_FS_ZIP=$wxUSE_FS_ZIP" >> ${wx_arg_cache_file}.tmp
7626           fi
7627
7628           if test x"$enablestring" = xdisable; then
7629             if test $wxUSE_FS_ZIP = yes; then
7630               result=no
7631             else
7632               result=yes
7633             fi
7634           else
7635             result=$wxUSE_FS_ZIP
7636           fi
7637
7638           { echo "$as_me:$LINENO: result: $result" >&5
7639 echo "${ECHO_T}$result" >&6; }
7640
7641
7642           enablestring=
7643           defaultval=$wxUSE_ALL_FEATURES
7644           if test -z "$defaultval"; then
7645               if test x"$enablestring" = xdisable; then
7646                   defaultval=yes
7647               else
7648                   defaultval=no
7649               fi
7650           fi
7651
7652           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7653 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7654           # Check whether --enable-geometry was given.
7655 if test "${enable_geometry+set}" = set; then
7656   enableval=$enable_geometry;
7657                           if test "$enableval" = yes; then
7658                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7659                           else
7660                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7661                           fi
7662                           cache=yes
7663
7664 else
7665
7666                           LINE=`grep "^wxUSE_GEOMETRY=" ${wx_arg_cache_file}`
7667                           if test "x$LINE" != x ; then
7668                             eval "DEFAULT_$LINE"
7669                           fi
7670
7671                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7672
7673 fi
7674
7675
7676           eval "$wx_cv_use_geometry"
7677           if test "x$cache" = xyes; then
7678             echo "wxUSE_GEOMETRY=$wxUSE_GEOMETRY" >> ${wx_arg_cache_file}.tmp
7679           fi
7680
7681           if test x"$enablestring" = xdisable; then
7682             if test $wxUSE_GEOMETRY = yes; then
7683               result=no
7684             else
7685               result=yes
7686             fi
7687           else
7688             result=$wxUSE_GEOMETRY
7689           fi
7690
7691           { echo "$as_me:$LINENO: result: $result" >&5
7692 echo "${ECHO_T}$result" >&6; }
7693
7694
7695           enablestring=
7696           defaultval=$wxUSE_ALL_FEATURES
7697           if test -z "$defaultval"; then
7698               if test x"$enablestring" = xdisable; then
7699                   defaultval=yes
7700               else
7701                   defaultval=no
7702               fi
7703           fi
7704
7705           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7706 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7707           # Check whether --enable-log was given.
7708 if test "${enable_log+set}" = set; then
7709   enableval=$enable_log;
7710                           if test "$enableval" = yes; then
7711                             wx_cv_use_log='wxUSE_LOG=yes'
7712                           else
7713                             wx_cv_use_log='wxUSE_LOG=no'
7714                           fi
7715                           cache=yes
7716
7717 else
7718
7719                           LINE=`grep "^wxUSE_LOG=" ${wx_arg_cache_file}`
7720                           if test "x$LINE" != x ; then
7721                             eval "DEFAULT_$LINE"
7722                           fi
7723
7724                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7725
7726 fi
7727
7728
7729           eval "$wx_cv_use_log"
7730           if test "x$cache" = xyes; then
7731             echo "wxUSE_LOG=$wxUSE_LOG" >> ${wx_arg_cache_file}.tmp
7732           fi
7733
7734           if test x"$enablestring" = xdisable; then
7735             if test $wxUSE_LOG = yes; then
7736               result=no
7737             else
7738               result=yes
7739             fi
7740           else
7741             result=$wxUSE_LOG
7742           fi
7743
7744           { echo "$as_me:$LINENO: result: $result" >&5
7745 echo "${ECHO_T}$result" >&6; }
7746
7747
7748           enablestring=
7749           defaultval=$wxUSE_ALL_FEATURES
7750           if test -z "$defaultval"; then
7751               if test x"$enablestring" = xdisable; then
7752                   defaultval=yes
7753               else
7754                   defaultval=no
7755               fi
7756           fi
7757
7758           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7759 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7760           # Check whether --enable-longlong was given.
7761 if test "${enable_longlong+set}" = set; then
7762   enableval=$enable_longlong;
7763                           if test "$enableval" = yes; then
7764                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7765                           else
7766                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7767                           fi
7768                           cache=yes
7769
7770 else
7771
7772                           LINE=`grep "^wxUSE_LONGLONG=" ${wx_arg_cache_file}`
7773                           if test "x$LINE" != x ; then
7774                             eval "DEFAULT_$LINE"
7775                           fi
7776
7777                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7778
7779 fi
7780
7781
7782           eval "$wx_cv_use_longlong"
7783           if test "x$cache" = xyes; then
7784             echo "wxUSE_LONGLONG=$wxUSE_LONGLONG" >> ${wx_arg_cache_file}.tmp
7785           fi
7786
7787           if test x"$enablestring" = xdisable; then
7788             if test $wxUSE_LONGLONG = yes; then
7789               result=no
7790             else
7791               result=yes
7792             fi
7793           else
7794             result=$wxUSE_LONGLONG
7795           fi
7796
7797           { echo "$as_me:$LINENO: result: $result" >&5
7798 echo "${ECHO_T}$result" >&6; }
7799
7800
7801           enablestring=
7802           defaultval=$wxUSE_ALL_FEATURES
7803           if test -z "$defaultval"; then
7804               if test x"$enablestring" = xdisable; then
7805                   defaultval=yes
7806               else
7807                   defaultval=no
7808               fi
7809           fi
7810
7811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7812 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7813           # Check whether --enable-mimetype was given.
7814 if test "${enable_mimetype+set}" = set; then
7815   enableval=$enable_mimetype;
7816                           if test "$enableval" = yes; then
7817                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7818                           else
7819                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7820                           fi
7821                           cache=yes
7822
7823 else
7824
7825                           LINE=`grep "^wxUSE_MIMETYPE=" ${wx_arg_cache_file}`
7826                           if test "x$LINE" != x ; then
7827                             eval "DEFAULT_$LINE"
7828                           fi
7829
7830                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7831
7832 fi
7833
7834
7835           eval "$wx_cv_use_mimetype"
7836           if test "x$cache" = xyes; then
7837             echo "wxUSE_MIMETYPE=$wxUSE_MIMETYPE" >> ${wx_arg_cache_file}.tmp
7838           fi
7839
7840           if test x"$enablestring" = xdisable; then
7841             if test $wxUSE_MIMETYPE = yes; then
7842               result=no
7843             else
7844               result=yes
7845             fi
7846           else
7847             result=$wxUSE_MIMETYPE
7848           fi
7849
7850           { echo "$as_me:$LINENO: result: $result" >&5
7851 echo "${ECHO_T}$result" >&6; }
7852
7853
7854           enablestring=
7855           defaultval=$wxUSE_ALL_FEATURES
7856           if test -z "$defaultval"; then
7857               if test x"$enablestring" = xdisable; then
7858                   defaultval=yes
7859               else
7860                   defaultval=no
7861               fi
7862           fi
7863
7864           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7865 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7866           # Check whether --enable-snglinst was given.
7867 if test "${enable_snglinst+set}" = set; then
7868   enableval=$enable_snglinst;
7869                           if test "$enableval" = yes; then
7870                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7871                           else
7872                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7873                           fi
7874                           cache=yes
7875
7876 else
7877
7878                           LINE=`grep "^wxUSE_SNGLINST_CHECKER=" ${wx_arg_cache_file}`
7879                           if test "x$LINE" != x ; then
7880                             eval "DEFAULT_$LINE"
7881                           fi
7882
7883                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7884
7885 fi
7886
7887
7888           eval "$wx_cv_use_snglinst"
7889           if test "x$cache" = xyes; then
7890             echo "wxUSE_SNGLINST_CHECKER=$wxUSE_SNGLINST_CHECKER" >> ${wx_arg_cache_file}.tmp
7891           fi
7892
7893           if test x"$enablestring" = xdisable; then
7894             if test $wxUSE_SNGLINST_CHECKER = yes; then
7895               result=no
7896             else
7897               result=yes
7898             fi
7899           else
7900             result=$wxUSE_SNGLINST_CHECKER
7901           fi
7902
7903           { echo "$as_me:$LINENO: result: $result" >&5
7904 echo "${ECHO_T}$result" >&6; }
7905
7906
7907           enablestring=
7908           defaultval=$wxUSE_ALL_FEATURES
7909           if test -z "$defaultval"; then
7910               if test x"$enablestring" = xdisable; then
7911                   defaultval=yes
7912               else
7913                   defaultval=no
7914               fi
7915           fi
7916
7917           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7918 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7919           # Check whether --enable-stdpaths was given.
7920 if test "${enable_stdpaths+set}" = set; then
7921   enableval=$enable_stdpaths;
7922                           if test "$enableval" = yes; then
7923                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7924                           else
7925                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7926                           fi
7927                           cache=yes
7928
7929 else
7930
7931                           LINE=`grep "^wxUSE_STDPATHS=" ${wx_arg_cache_file}`
7932                           if test "x$LINE" != x ; then
7933                             eval "DEFAULT_$LINE"
7934                           fi
7935
7936                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7937
7938 fi
7939
7940
7941           eval "$wx_cv_use_stdpaths"
7942           if test "x$cache" = xyes; then
7943             echo "wxUSE_STDPATHS=$wxUSE_STDPATHS" >> ${wx_arg_cache_file}.tmp
7944           fi
7945
7946           if test x"$enablestring" = xdisable; then
7947             if test $wxUSE_STDPATHS = yes; then
7948               result=no
7949             else
7950               result=yes
7951             fi
7952           else
7953             result=$wxUSE_STDPATHS
7954           fi
7955
7956           { echo "$as_me:$LINENO: result: $result" >&5
7957 echo "${ECHO_T}$result" >&6; }
7958
7959
7960           enablestring=
7961           defaultval=$wxUSE_ALL_FEATURES
7962           if test -z "$defaultval"; then
7963               if test x"$enablestring" = xdisable; then
7964                   defaultval=yes
7965               else
7966                   defaultval=no
7967               fi
7968           fi
7969
7970           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7971 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7972           # Check whether --enable-stopwatch was given.
7973 if test "${enable_stopwatch+set}" = set; then
7974   enableval=$enable_stopwatch;
7975                           if test "$enableval" = yes; then
7976                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7977                           else
7978                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7979                           fi
7980                           cache=yes
7981
7982 else
7983
7984                           LINE=`grep "^wxUSE_STOPWATCH=" ${wx_arg_cache_file}`
7985                           if test "x$LINE" != x ; then
7986                             eval "DEFAULT_$LINE"
7987                           fi
7988
7989                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7990
7991 fi
7992
7993
7994           eval "$wx_cv_use_stopwatch"
7995           if test "x$cache" = xyes; then
7996             echo "wxUSE_STOPWATCH=$wxUSE_STOPWATCH" >> ${wx_arg_cache_file}.tmp
7997           fi
7998
7999           if test x"$enablestring" = xdisable; then
8000             if test $wxUSE_STOPWATCH = yes; then
8001               result=no
8002             else
8003               result=yes
8004             fi
8005           else
8006             result=$wxUSE_STOPWATCH
8007           fi
8008
8009           { echo "$as_me:$LINENO: result: $result" >&5
8010 echo "${ECHO_T}$result" >&6; }
8011
8012
8013           enablestring=
8014           defaultval=$wxUSE_ALL_FEATURES
8015           if test -z "$defaultval"; then
8016               if test x"$enablestring" = xdisable; then
8017                   defaultval=yes
8018               else
8019                   defaultval=no
8020               fi
8021           fi
8022
8023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
8024 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
8025           # Check whether --enable-streams was given.
8026 if test "${enable_streams+set}" = set; then
8027   enableval=$enable_streams;
8028                           if test "$enableval" = yes; then
8029                             wx_cv_use_streams='wxUSE_STREAMS=yes'
8030                           else
8031                             wx_cv_use_streams='wxUSE_STREAMS=no'
8032                           fi
8033                           cache=yes
8034
8035 else
8036
8037                           LINE=`grep "^wxUSE_STREAMS=" ${wx_arg_cache_file}`
8038                           if test "x$LINE" != x ; then
8039                             eval "DEFAULT_$LINE"
8040                           fi
8041
8042                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
8043
8044 fi
8045
8046
8047           eval "$wx_cv_use_streams"
8048           if test "x$cache" = xyes; then
8049             echo "wxUSE_STREAMS=$wxUSE_STREAMS" >> ${wx_arg_cache_file}.tmp
8050           fi
8051
8052           if test x"$enablestring" = xdisable; then
8053             if test $wxUSE_STREAMS = yes; then
8054               result=no
8055             else
8056               result=yes
8057             fi
8058           else
8059             result=$wxUSE_STREAMS
8060           fi
8061
8062           { echo "$as_me:$LINENO: result: $result" >&5
8063 echo "${ECHO_T}$result" >&6; }
8064
8065
8066           enablestring=
8067           defaultval=$wxUSE_ALL_FEATURES
8068           if test -z "$defaultval"; then
8069               if test x"$enablestring" = xdisable; then
8070                   defaultval=yes
8071               else
8072                   defaultval=no
8073               fi
8074           fi
8075
8076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
8077 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
8078           # Check whether --enable-system_options was given.
8079 if test "${enable_system_options+set}" = set; then
8080   enableval=$enable_system_options;
8081                           if test "$enableval" = yes; then
8082                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
8083                           else
8084                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
8085                           fi
8086                           cache=yes
8087
8088 else
8089
8090                           LINE=`grep "^wxUSE_SYSTEM_OPTIONS=" ${wx_arg_cache_file}`
8091                           if test "x$LINE" != x ; then
8092                             eval "DEFAULT_$LINE"
8093                           fi
8094
8095                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
8096
8097 fi
8098
8099
8100           eval "$wx_cv_use_system_options"
8101           if test "x$cache" = xyes; then
8102             echo "wxUSE_SYSTEM_OPTIONS=$wxUSE_SYSTEM_OPTIONS" >> ${wx_arg_cache_file}.tmp
8103           fi
8104
8105           if test x"$enablestring" = xdisable; then
8106             if test $wxUSE_SYSTEM_OPTIONS = yes; then
8107               result=no
8108             else
8109               result=yes
8110             fi
8111           else
8112             result=$wxUSE_SYSTEM_OPTIONS
8113           fi
8114
8115           { echo "$as_me:$LINENO: result: $result" >&5
8116 echo "${ECHO_T}$result" >&6; }
8117
8118
8119           enablestring=
8120           defaultval=$wxUSE_ALL_FEATURES
8121           if test -z "$defaultval"; then
8122               if test x"$enablestring" = xdisable; then
8123                   defaultval=yes
8124               else
8125                   defaultval=no
8126               fi
8127           fi
8128
8129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8130 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8131           # Check whether --enable-tarstream was given.
8132 if test "${enable_tarstream+set}" = set; then
8133   enableval=$enable_tarstream;
8134                           if test "$enableval" = yes; then
8135                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8136                           else
8137                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8138                           fi
8139                           cache=yes
8140
8141 else
8142
8143                           LINE=`grep "^wxUSE_TARSTREAM=" ${wx_arg_cache_file}`
8144                           if test "x$LINE" != x ; then
8145                             eval "DEFAULT_$LINE"
8146                           fi
8147
8148                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8149
8150 fi
8151
8152
8153           eval "$wx_cv_use_tarstream"
8154           if test "x$cache" = xyes; then
8155             echo "wxUSE_TARSTREAM=$wxUSE_TARSTREAM" >> ${wx_arg_cache_file}.tmp
8156           fi
8157
8158           if test x"$enablestring" = xdisable; then
8159             if test $wxUSE_TARSTREAM = yes; then
8160               result=no
8161             else
8162               result=yes
8163             fi
8164           else
8165             result=$wxUSE_TARSTREAM
8166           fi
8167
8168           { echo "$as_me:$LINENO: result: $result" >&5
8169 echo "${ECHO_T}$result" >&6; }
8170
8171
8172           enablestring=
8173           defaultval=$wxUSE_ALL_FEATURES
8174           if test -z "$defaultval"; then
8175               if test x"$enablestring" = xdisable; then
8176                   defaultval=yes
8177               else
8178                   defaultval=no
8179               fi
8180           fi
8181
8182           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8183 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8184           # Check whether --enable-textbuf was given.
8185 if test "${enable_textbuf+set}" = set; then
8186   enableval=$enable_textbuf;
8187                           if test "$enableval" = yes; then
8188                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8189                           else
8190                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8191                           fi
8192                           cache=yes
8193
8194 else
8195
8196                           LINE=`grep "^wxUSE_TEXTBUFFER=" ${wx_arg_cache_file}`
8197                           if test "x$LINE" != x ; then
8198                             eval "DEFAULT_$LINE"
8199                           fi
8200
8201                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8202
8203 fi
8204
8205
8206           eval "$wx_cv_use_textbuf"
8207           if test "x$cache" = xyes; then
8208             echo "wxUSE_TEXTBUFFER=$wxUSE_TEXTBUFFER" >> ${wx_arg_cache_file}.tmp
8209           fi
8210
8211           if test x"$enablestring" = xdisable; then
8212             if test $wxUSE_TEXTBUFFER = yes; then
8213               result=no
8214             else
8215               result=yes
8216             fi
8217           else
8218             result=$wxUSE_TEXTBUFFER
8219           fi
8220
8221           { echo "$as_me:$LINENO: result: $result" >&5
8222 echo "${ECHO_T}$result" >&6; }
8223
8224
8225           enablestring=
8226           defaultval=$wxUSE_ALL_FEATURES
8227           if test -z "$defaultval"; then
8228               if test x"$enablestring" = xdisable; then
8229                   defaultval=yes
8230               else
8231                   defaultval=no
8232               fi
8233           fi
8234
8235           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8236 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8237           # Check whether --enable-textfile was given.
8238 if test "${enable_textfile+set}" = set; then
8239   enableval=$enable_textfile;
8240                           if test "$enableval" = yes; then
8241                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8242                           else
8243                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8244                           fi
8245                           cache=yes
8246
8247 else
8248
8249                           LINE=`grep "^wxUSE_TEXTFILE=" ${wx_arg_cache_file}`
8250                           if test "x$LINE" != x ; then
8251                             eval "DEFAULT_$LINE"
8252                           fi
8253
8254                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8255
8256 fi
8257
8258
8259           eval "$wx_cv_use_textfile"
8260           if test "x$cache" = xyes; then
8261             echo "wxUSE_TEXTFILE=$wxUSE_TEXTFILE" >> ${wx_arg_cache_file}.tmp
8262           fi
8263
8264           if test x"$enablestring" = xdisable; then
8265             if test $wxUSE_TEXTFILE = yes; then
8266               result=no
8267             else
8268               result=yes
8269             fi
8270           else
8271             result=$wxUSE_TEXTFILE
8272           fi
8273
8274           { echo "$as_me:$LINENO: result: $result" >&5
8275 echo "${ECHO_T}$result" >&6; }
8276
8277
8278           enablestring=
8279           defaultval=$wxUSE_ALL_FEATURES
8280           if test -z "$defaultval"; then
8281               if test x"$enablestring" = xdisable; then
8282                   defaultval=yes
8283               else
8284                   defaultval=no
8285               fi
8286           fi
8287
8288           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8289 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8290           # Check whether --enable-timer was given.
8291 if test "${enable_timer+set}" = set; then
8292   enableval=$enable_timer;
8293                           if test "$enableval" = yes; then
8294                             wx_cv_use_timer='wxUSE_TIMER=yes'
8295                           else
8296                             wx_cv_use_timer='wxUSE_TIMER=no'
8297                           fi
8298                           cache=yes
8299
8300 else
8301
8302                           LINE=`grep "^wxUSE_TIMER=" ${wx_arg_cache_file}`
8303                           if test "x$LINE" != x ; then
8304                             eval "DEFAULT_$LINE"
8305                           fi
8306
8307                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8308
8309 fi
8310
8311
8312           eval "$wx_cv_use_timer"
8313           if test "x$cache" = xyes; then
8314             echo "wxUSE_TIMER=$wxUSE_TIMER" >> ${wx_arg_cache_file}.tmp
8315           fi
8316
8317           if test x"$enablestring" = xdisable; then
8318             if test $wxUSE_TIMER = yes; then
8319               result=no
8320             else
8321               result=yes
8322             fi
8323           else
8324             result=$wxUSE_TIMER
8325           fi
8326
8327           { echo "$as_me:$LINENO: result: $result" >&5
8328 echo "${ECHO_T}$result" >&6; }
8329
8330
8331           enablestring=
8332           defaultval=$wxUSE_ALL_FEATURES
8333           if test -z "$defaultval"; then
8334               if test x"$enablestring" = xdisable; then
8335                   defaultval=yes
8336               else
8337                   defaultval=no
8338               fi
8339           fi
8340
8341           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
8342 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
8343           # Check whether --enable-sound was given.
8344 if test "${enable_sound+set}" = set; then
8345   enableval=$enable_sound;
8346                           if test "$enableval" = yes; then
8347                             wx_cv_use_sound='wxUSE_SOUND=yes'
8348                           else
8349                             wx_cv_use_sound='wxUSE_SOUND=no'
8350                           fi
8351                           cache=yes
8352
8353 else
8354
8355                           LINE=`grep "^wxUSE_SOUND=" ${wx_arg_cache_file}`
8356                           if test "x$LINE" != x ; then
8357                             eval "DEFAULT_$LINE"
8358                           fi
8359
8360                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
8361
8362 fi
8363
8364
8365           eval "$wx_cv_use_sound"
8366           if test "x$cache" = xyes; then
8367             echo "wxUSE_SOUND=$wxUSE_SOUND" >> ${wx_arg_cache_file}.tmp
8368           fi
8369
8370           if test x"$enablestring" = xdisable; then
8371             if test $wxUSE_SOUND = yes; then
8372               result=no
8373             else
8374               result=yes
8375             fi
8376           else
8377             result=$wxUSE_SOUND
8378           fi
8379
8380           { echo "$as_me:$LINENO: result: $result" >&5
8381 echo "${ECHO_T}$result" >&6; }
8382
8383
8384           enablestring=
8385           defaultval=$wxUSE_ALL_FEATURES
8386           if test -z "$defaultval"; then
8387               if test x"$enablestring" = xdisable; then
8388                   defaultval=yes
8389               else
8390                   defaultval=no
8391               fi
8392           fi
8393
8394           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8395 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8396           # Check whether --enable-mediactrl was given.
8397 if test "${enable_mediactrl+set}" = set; then
8398   enableval=$enable_mediactrl;
8399                           if test "$enableval" = yes; then
8400                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8401                           else
8402                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8403                           fi
8404                           cache=yes
8405
8406 else
8407
8408                           LINE=`grep "^wxUSE_MEDIACTRL=" ${wx_arg_cache_file}`
8409                           if test "x$LINE" != x ; then
8410                             eval "DEFAULT_$LINE"
8411                           fi
8412
8413                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8414
8415 fi
8416
8417
8418           eval "$wx_cv_use_mediactrl"
8419           if test "x$cache" = xyes; then
8420             echo "wxUSE_MEDIACTRL=$wxUSE_MEDIACTRL" >> ${wx_arg_cache_file}.tmp
8421           fi
8422
8423           if test x"$enablestring" = xdisable; then
8424             if test $wxUSE_MEDIACTRL = yes; then
8425               result=no
8426             else
8427               result=yes
8428             fi
8429           else
8430             result=$wxUSE_MEDIACTRL
8431           fi
8432
8433           { echo "$as_me:$LINENO: result: $result" >&5
8434 echo "${ECHO_T}$result" >&6; }
8435
8436
8437           enablestring=
8438           defaultval=$wxUSE_ALL_FEATURES
8439           if test -z "$defaultval"; then
8440               if test x"$enablestring" = xdisable; then
8441                   defaultval=yes
8442               else
8443                   defaultval=no
8444               fi
8445           fi
8446
8447           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8448 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8449           # Check whether --enable-gstreamer8 was given.
8450 if test "${enable_gstreamer8+set}" = set; then
8451   enableval=$enable_gstreamer8;
8452                           if test "$enableval" = yes; then
8453                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8454                           else
8455                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8456                           fi
8457                           cache=yes
8458
8459 else
8460
8461                           LINE=`grep "^wxUSE_GSTREAMER8=" ${wx_arg_cache_file}`
8462                           if test "x$LINE" != x ; then
8463                             eval "DEFAULT_$LINE"
8464                           fi
8465
8466                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8467
8468 fi
8469
8470
8471           eval "$wx_cv_use_gstreamer8"
8472           if test "x$cache" = xyes; then
8473             echo "wxUSE_GSTREAMER8=$wxUSE_GSTREAMER8" >> ${wx_arg_cache_file}.tmp
8474           fi
8475
8476           if test x"$enablestring" = xdisable; then
8477             if test $wxUSE_GSTREAMER8 = yes; then
8478               result=no
8479             else
8480               result=yes
8481             fi
8482           else
8483             result=$wxUSE_GSTREAMER8
8484           fi
8485
8486           { echo "$as_me:$LINENO: result: $result" >&5
8487 echo "${ECHO_T}$result" >&6; }
8488
8489
8490           enablestring=
8491           defaultval=$wxUSE_ALL_FEATURES
8492           if test -z "$defaultval"; then
8493               if test x"$enablestring" = xdisable; then
8494                   defaultval=yes
8495               else
8496                   defaultval=no
8497               fi
8498           fi
8499
8500           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
8501 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
8502           # Check whether --enable-printfposparam was given.
8503 if test "${enable_printfposparam+set}" = set; then
8504   enableval=$enable_printfposparam;
8505                           if test "$enableval" = yes; then
8506                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
8507                           else
8508                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
8509                           fi
8510                           cache=yes
8511
8512 else
8513
8514                           LINE=`grep "^wxUSE_PRINTF_POS_PARAMS=" ${wx_arg_cache_file}`
8515                           if test "x$LINE" != x ; then
8516                             eval "DEFAULT_$LINE"
8517                           fi
8518
8519                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
8520
8521 fi
8522
8523
8524           eval "$wx_cv_use_printfposparam"
8525           if test "x$cache" = xyes; then
8526             echo "wxUSE_PRINTF_POS_PARAMS=$wxUSE_PRINTF_POS_PARAMS" >> ${wx_arg_cache_file}.tmp
8527           fi
8528
8529           if test x"$enablestring" = xdisable; then
8530             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
8531               result=no
8532             else
8533               result=yes
8534             fi
8535           else
8536             result=$wxUSE_PRINTF_POS_PARAMS
8537           fi
8538
8539           { echo "$as_me:$LINENO: result: $result" >&5
8540 echo "${ECHO_T}$result" >&6; }
8541
8542
8543           enablestring=
8544           defaultval=$wxUSE_ALL_FEATURES
8545           if test -z "$defaultval"; then
8546               if test x"$enablestring" = xdisable; then
8547                   defaultval=yes
8548               else
8549                   defaultval=no
8550               fi
8551           fi
8552
8553           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8554 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8555           # Check whether --enable-zipstream was given.
8556 if test "${enable_zipstream+set}" = set; then
8557   enableval=$enable_zipstream;
8558                           if test "$enableval" = yes; then
8559                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8560                           else
8561                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8562                           fi
8563                           cache=yes
8564
8565 else
8566
8567                           LINE=`grep "^wxUSE_ZIPSTREAM=" ${wx_arg_cache_file}`
8568                           if test "x$LINE" != x ; then
8569                             eval "DEFAULT_$LINE"
8570                           fi
8571
8572                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8573
8574 fi
8575
8576
8577           eval "$wx_cv_use_zipstream"
8578           if test "x$cache" = xyes; then
8579             echo "wxUSE_ZIPSTREAM=$wxUSE_ZIPSTREAM" >> ${wx_arg_cache_file}.tmp
8580           fi
8581
8582           if test x"$enablestring" = xdisable; then
8583             if test $wxUSE_ZIPSTREAM = yes; then
8584               result=no
8585             else
8586               result=yes
8587             fi
8588           else
8589             result=$wxUSE_ZIPSTREAM
8590           fi
8591
8592           { echo "$as_me:$LINENO: result: $result" >&5
8593 echo "${ECHO_T}$result" >&6; }
8594
8595
8596
8597           enablestring=
8598           defaultval=$wxUSE_ALL_FEATURES
8599           if test -z "$defaultval"; then
8600               if test x"$enablestring" = xdisable; then
8601                   defaultval=yes
8602               else
8603                   defaultval=no
8604               fi
8605           fi
8606
8607           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8608 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8609           # Check whether --enable-url was given.
8610 if test "${enable_url+set}" = set; then
8611   enableval=$enable_url;
8612                           if test "$enableval" = yes; then
8613                             wx_cv_use_url='wxUSE_URL=yes'
8614                           else
8615                             wx_cv_use_url='wxUSE_URL=no'
8616                           fi
8617                           cache=yes
8618
8619 else
8620
8621                           LINE=`grep "^wxUSE_URL=" ${wx_arg_cache_file}`
8622                           if test "x$LINE" != x ; then
8623                             eval "DEFAULT_$LINE"
8624                           fi
8625
8626                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8627
8628 fi
8629
8630
8631           eval "$wx_cv_use_url"
8632           if test "x$cache" = xyes; then
8633             echo "wxUSE_URL=$wxUSE_URL" >> ${wx_arg_cache_file}.tmp
8634           fi
8635
8636           if test x"$enablestring" = xdisable; then
8637             if test $wxUSE_URL = yes; then
8638               result=no
8639             else
8640               result=yes
8641             fi
8642           else
8643             result=$wxUSE_URL
8644           fi
8645
8646           { echo "$as_me:$LINENO: result: $result" >&5
8647 echo "${ECHO_T}$result" >&6; }
8648
8649
8650           enablestring=
8651           defaultval=$wxUSE_ALL_FEATURES
8652           if test -z "$defaultval"; then
8653               if test x"$enablestring" = xdisable; then
8654                   defaultval=yes
8655               else
8656                   defaultval=no
8657               fi
8658           fi
8659
8660           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8661 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8662           # Check whether --enable-variant was given.
8663 if test "${enable_variant+set}" = set; then
8664   enableval=$enable_variant;
8665                           if test "$enableval" = yes; then
8666                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8667                           else
8668                             wx_cv_use_variant='wxUSE_VARIANT=no'
8669                           fi
8670                           cache=yes
8671
8672 else
8673
8674                           LINE=`grep "^wxUSE_VARIANT=" ${wx_arg_cache_file}`
8675                           if test "x$LINE" != x ; then
8676                             eval "DEFAULT_$LINE"
8677                           fi
8678
8679                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8680
8681 fi
8682
8683
8684           eval "$wx_cv_use_variant"
8685           if test "x$cache" = xyes; then
8686             echo "wxUSE_VARIANT=$wxUSE_VARIANT" >> ${wx_arg_cache_file}.tmp
8687           fi
8688
8689           if test x"$enablestring" = xdisable; then
8690             if test $wxUSE_VARIANT = yes; then
8691               result=no
8692             else
8693               result=yes
8694             fi
8695           else
8696             result=$wxUSE_VARIANT
8697           fi
8698
8699           { echo "$as_me:$LINENO: result: $result" >&5
8700 echo "${ECHO_T}$result" >&6; }
8701
8702
8703           enablestring=
8704           defaultval=$wxUSE_ALL_FEATURES
8705           if test -z "$defaultval"; then
8706               if test x"$enablestring" = xdisable; then
8707                   defaultval=yes
8708               else
8709                   defaultval=no
8710               fi
8711           fi
8712
8713           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8714 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8715           # Check whether --enable-protocol was given.
8716 if test "${enable_protocol+set}" = set; then
8717   enableval=$enable_protocol;
8718                           if test "$enableval" = yes; then
8719                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8720                           else
8721                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8722                           fi
8723                           cache=yes
8724
8725 else
8726
8727                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
8728                           if test "x$LINE" != x ; then
8729                             eval "DEFAULT_$LINE"
8730                           fi
8731
8732                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8733
8734 fi
8735
8736
8737           eval "$wx_cv_use_protocol"
8738           if test "x$cache" = xyes; then
8739             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
8740           fi
8741
8742           if test x"$enablestring" = xdisable; then
8743             if test $wxUSE_PROTOCOL = yes; then
8744               result=no
8745             else
8746               result=yes
8747             fi
8748           else
8749             result=$wxUSE_PROTOCOL
8750           fi
8751
8752           { echo "$as_me:$LINENO: result: $result" >&5
8753 echo "${ECHO_T}$result" >&6; }
8754
8755
8756           enablestring=
8757           defaultval=$wxUSE_ALL_FEATURES
8758           if test -z "$defaultval"; then
8759               if test x"$enablestring" = xdisable; then
8760                   defaultval=yes
8761               else
8762                   defaultval=no
8763               fi
8764           fi
8765
8766           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8767 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8768           # Check whether --enable-protocol_http was given.
8769 if test "${enable_protocol_http+set}" = set; then
8770   enableval=$enable_protocol_http;
8771                           if test "$enableval" = yes; then
8772                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8773                           else
8774                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8775                           fi
8776                           cache=yes
8777
8778 else
8779
8780                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
8781                           if test "x$LINE" != x ; then
8782                             eval "DEFAULT_$LINE"
8783                           fi
8784
8785                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8786
8787 fi
8788
8789
8790           eval "$wx_cv_use_protocol_http"
8791           if test "x$cache" = xyes; then
8792             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
8793           fi
8794
8795           if test x"$enablestring" = xdisable; then
8796             if test $wxUSE_PROTOCOL_HTTP = yes; then
8797               result=no
8798             else
8799               result=yes
8800             fi
8801           else
8802             result=$wxUSE_PROTOCOL_HTTP
8803           fi
8804
8805           { echo "$as_me:$LINENO: result: $result" >&5
8806 echo "${ECHO_T}$result" >&6; }
8807
8808
8809           enablestring=
8810           defaultval=$wxUSE_ALL_FEATURES
8811           if test -z "$defaultval"; then
8812               if test x"$enablestring" = xdisable; then
8813                   defaultval=yes
8814               else
8815                   defaultval=no
8816               fi
8817           fi
8818
8819           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8820 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8821           # Check whether --enable-protocol_ftp was given.
8822 if test "${enable_protocol_ftp+set}" = set; then
8823   enableval=$enable_protocol_ftp;
8824                           if test "$enableval" = yes; then
8825                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8826                           else
8827                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8828                           fi
8829                           cache=yes
8830
8831 else
8832
8833                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
8834                           if test "x$LINE" != x ; then
8835                             eval "DEFAULT_$LINE"
8836                           fi
8837
8838                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8839
8840 fi
8841
8842
8843           eval "$wx_cv_use_protocol_ftp"
8844           if test "x$cache" = xyes; then
8845             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
8846           fi
8847
8848           if test x"$enablestring" = xdisable; then
8849             if test $wxUSE_PROTOCOL_FTP = yes; then
8850               result=no
8851             else
8852               result=yes
8853             fi
8854           else
8855             result=$wxUSE_PROTOCOL_FTP
8856           fi
8857
8858           { echo "$as_me:$LINENO: result: $result" >&5
8859 echo "${ECHO_T}$result" >&6; }
8860
8861
8862           enablestring=
8863           defaultval=$wxUSE_ALL_FEATURES
8864           if test -z "$defaultval"; then
8865               if test x"$enablestring" = xdisable; then
8866                   defaultval=yes
8867               else
8868                   defaultval=no
8869               fi
8870           fi
8871
8872           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8873 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8874           # Check whether --enable-protocol_file was given.
8875 if test "${enable_protocol_file+set}" = set; then
8876   enableval=$enable_protocol_file;
8877                           if test "$enableval" = yes; then
8878                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8879                           else
8880                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8881                           fi
8882                           cache=yes
8883
8884 else
8885
8886                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
8887                           if test "x$LINE" != x ; then
8888                             eval "DEFAULT_$LINE"
8889                           fi
8890
8891                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8892
8893 fi
8894
8895
8896           eval "$wx_cv_use_protocol_file"
8897           if test "x$cache" = xyes; then
8898             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
8899           fi
8900
8901           if test x"$enablestring" = xdisable; then
8902             if test $wxUSE_PROTOCOL_FILE = yes; then
8903               result=no
8904             else
8905               result=yes
8906             fi
8907           else
8908             result=$wxUSE_PROTOCOL_FILE
8909           fi
8910
8911           { echo "$as_me:$LINENO: result: $result" >&5
8912 echo "${ECHO_T}$result" >&6; }
8913
8914
8915
8916           enablestring=
8917           defaultval=$wxUSE_ALL_FEATURES
8918           if test -z "$defaultval"; then
8919               if test x"$enablestring" = xdisable; then
8920                   defaultval=yes
8921               else
8922                   defaultval=no
8923               fi
8924           fi
8925
8926           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8927 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8928           # Check whether --enable-threads was given.
8929 if test "${enable_threads+set}" = set; then
8930   enableval=$enable_threads;
8931                           if test "$enableval" = yes; then
8932                             wx_cv_use_threads='wxUSE_THREADS=yes'
8933                           else
8934                             wx_cv_use_threads='wxUSE_THREADS=no'
8935                           fi
8936                           cache=yes
8937
8938 else
8939
8940                           LINE=`grep "^wxUSE_THREADS=" ${wx_arg_cache_file}`
8941                           if test "x$LINE" != x ; then
8942                             eval "DEFAULT_$LINE"
8943                           fi
8944
8945                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8946
8947 fi
8948
8949
8950           eval "$wx_cv_use_threads"
8951           if test "x$cache" = xyes; then
8952             echo "wxUSE_THREADS=$wxUSE_THREADS" >> ${wx_arg_cache_file}.tmp
8953           fi
8954
8955           if test x"$enablestring" = xdisable; then
8956             if test $wxUSE_THREADS = yes; then
8957               result=no
8958             else
8959               result=yes
8960             fi
8961           else
8962             result=$wxUSE_THREADS
8963           fi
8964
8965           { echo "$as_me:$LINENO: result: $result" >&5
8966 echo "${ECHO_T}$result" >&6; }
8967
8968
8969 if test "$wxUSE_GUI" = "yes"; then
8970
8971
8972
8973           enablestring=
8974           defaultval=$wxUSE_ALL_FEATURES
8975           if test -z "$defaultval"; then
8976               if test x"$enablestring" = xdisable; then
8977                   defaultval=yes
8978               else
8979                   defaultval=no
8980               fi
8981           fi
8982
8983           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8984 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8985           # Check whether --enable-docview was given.
8986 if test "${enable_docview+set}" = set; then
8987   enableval=$enable_docview;
8988                           if test "$enableval" = yes; then
8989                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8990                           else
8991                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8992                           fi
8993                           cache=yes
8994
8995 else
8996
8997                           LINE=`grep "^wxUSE_DOC_VIEW_ARCHITECTURE=" ${wx_arg_cache_file}`
8998                           if test "x$LINE" != x ; then
8999                             eval "DEFAULT_$LINE"
9000                           fi
9001
9002                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
9003
9004 fi
9005
9006
9007           eval "$wx_cv_use_docview"
9008           if test "x$cache" = xyes; then
9009             echo "wxUSE_DOC_VIEW_ARCHITECTURE=$wxUSE_DOC_VIEW_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9010           fi
9011
9012           if test x"$enablestring" = xdisable; then
9013             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
9014               result=no
9015             else
9016               result=yes
9017             fi
9018           else
9019             result=$wxUSE_DOC_VIEW_ARCHITECTURE
9020           fi
9021
9022           { echo "$as_me:$LINENO: result: $result" >&5
9023 echo "${ECHO_T}$result" >&6; }
9024
9025
9026           enablestring=
9027           defaultval=$wxUSE_ALL_FEATURES
9028           if test -z "$defaultval"; then
9029               if test x"$enablestring" = xdisable; then
9030                   defaultval=yes
9031               else
9032                   defaultval=no
9033               fi
9034           fi
9035
9036           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
9037 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
9038           # Check whether --enable-help was given.
9039 if test "${enable_help+set}" = set; then
9040   enableval=$enable_help;
9041                           if test "$enableval" = yes; then
9042                             wx_cv_use_help='wxUSE_HELP=yes'
9043                           else
9044                             wx_cv_use_help='wxUSE_HELP=no'
9045                           fi
9046                           cache=yes
9047
9048 else
9049
9050                           LINE=`grep "^wxUSE_HELP=" ${wx_arg_cache_file}`
9051                           if test "x$LINE" != x ; then
9052                             eval "DEFAULT_$LINE"
9053                           fi
9054
9055                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
9056
9057 fi
9058
9059
9060           eval "$wx_cv_use_help"
9061           if test "x$cache" = xyes; then
9062             echo "wxUSE_HELP=$wxUSE_HELP" >> ${wx_arg_cache_file}.tmp
9063           fi
9064
9065           if test x"$enablestring" = xdisable; then
9066             if test $wxUSE_HELP = yes; then
9067               result=no
9068             else
9069               result=yes
9070             fi
9071           else
9072             result=$wxUSE_HELP
9073           fi
9074
9075           { echo "$as_me:$LINENO: result: $result" >&5
9076 echo "${ECHO_T}$result" >&6; }
9077
9078
9079           enablestring=
9080           defaultval=$wxUSE_ALL_FEATURES
9081           if test -z "$defaultval"; then
9082               if test x"$enablestring" = xdisable; then
9083                   defaultval=yes
9084               else
9085                   defaultval=no
9086               fi
9087           fi
9088
9089           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
9090 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
9091           # Check whether --enable-mshtmlhelp was given.
9092 if test "${enable_mshtmlhelp+set}" = set; then
9093   enableval=$enable_mshtmlhelp;
9094                           if test "$enableval" = yes; then
9095                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
9096                           else
9097                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
9098                           fi
9099                           cache=yes
9100
9101 else
9102
9103                           LINE=`grep "^wxUSE_MS_HTML_HELP=" ${wx_arg_cache_file}`
9104                           if test "x$LINE" != x ; then
9105                             eval "DEFAULT_$LINE"
9106                           fi
9107
9108                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
9109
9110 fi
9111
9112
9113           eval "$wx_cv_use_mshtmlhelp"
9114           if test "x$cache" = xyes; then
9115             echo "wxUSE_MS_HTML_HELP=$wxUSE_MS_HTML_HELP" >> ${wx_arg_cache_file}.tmp
9116           fi
9117
9118           if test x"$enablestring" = xdisable; then
9119             if test $wxUSE_MS_HTML_HELP = yes; then
9120               result=no
9121             else
9122               result=yes
9123             fi
9124           else
9125             result=$wxUSE_MS_HTML_HELP
9126           fi
9127
9128           { echo "$as_me:$LINENO: result: $result" >&5
9129 echo "${ECHO_T}$result" >&6; }
9130
9131
9132           enablestring=
9133           defaultval=$wxUSE_ALL_FEATURES
9134           if test -z "$defaultval"; then
9135               if test x"$enablestring" = xdisable; then
9136                   defaultval=yes
9137               else
9138                   defaultval=no
9139               fi
9140           fi
9141
9142           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
9143 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
9144           # Check whether --enable-html was given.
9145 if test "${enable_html+set}" = set; then
9146   enableval=$enable_html;
9147                           if test "$enableval" = yes; then
9148                             wx_cv_use_html='wxUSE_HTML=yes'
9149                           else
9150                             wx_cv_use_html='wxUSE_HTML=no'
9151                           fi
9152                           cache=yes
9153
9154 else
9155
9156                           LINE=`grep "^wxUSE_HTML=" ${wx_arg_cache_file}`
9157                           if test "x$LINE" != x ; then
9158                             eval "DEFAULT_$LINE"
9159                           fi
9160
9161                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
9162
9163 fi
9164
9165
9166           eval "$wx_cv_use_html"
9167           if test "x$cache" = xyes; then
9168             echo "wxUSE_HTML=$wxUSE_HTML" >> ${wx_arg_cache_file}.tmp
9169           fi
9170
9171           if test x"$enablestring" = xdisable; then
9172             if test $wxUSE_HTML = yes; then
9173               result=no
9174             else
9175               result=yes
9176             fi
9177           else
9178             result=$wxUSE_HTML
9179           fi
9180
9181           { echo "$as_me:$LINENO: result: $result" >&5
9182 echo "${ECHO_T}$result" >&6; }
9183
9184
9185           enablestring=
9186           defaultval=$wxUSE_ALL_FEATURES
9187           if test -z "$defaultval"; then
9188               if test x"$enablestring" = xdisable; then
9189                   defaultval=yes
9190               else
9191                   defaultval=no
9192               fi
9193           fi
9194
9195           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
9196 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
9197           # Check whether --enable-htmlhelp was given.
9198 if test "${enable_htmlhelp+set}" = set; then
9199   enableval=$enable_htmlhelp;
9200                           if test "$enableval" = yes; then
9201                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
9202                           else
9203                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
9204                           fi
9205                           cache=yes
9206
9207 else
9208
9209                           LINE=`grep "^wxUSE_WXHTML_HELP=" ${wx_arg_cache_file}`
9210                           if test "x$LINE" != x ; then
9211                             eval "DEFAULT_$LINE"
9212                           fi
9213
9214                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
9215
9216 fi
9217
9218
9219           eval "$wx_cv_use_htmlhelp"
9220           if test "x$cache" = xyes; then
9221             echo "wxUSE_WXHTML_HELP=$wxUSE_WXHTML_HELP" >> ${wx_arg_cache_file}.tmp
9222           fi
9223
9224           if test x"$enablestring" = xdisable; then
9225             if test $wxUSE_WXHTML_HELP = yes; then
9226               result=no
9227             else
9228               result=yes
9229             fi
9230           else
9231             result=$wxUSE_WXHTML_HELP
9232           fi
9233
9234           { echo "$as_me:$LINENO: result: $result" >&5
9235 echo "${ECHO_T}$result" >&6; }
9236
9237
9238           enablestring=
9239           defaultval=$wxUSE_ALL_FEATURES
9240           if test -z "$defaultval"; then
9241               if test x"$enablestring" = xdisable; then
9242                   defaultval=yes
9243               else
9244                   defaultval=no
9245               fi
9246           fi
9247
9248           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
9249 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
9250           # Check whether --enable-xrc was given.
9251 if test "${enable_xrc+set}" = set; then
9252   enableval=$enable_xrc;
9253                           if test "$enableval" = yes; then
9254                             wx_cv_use_xrc='wxUSE_XRC=yes'
9255                           else
9256                             wx_cv_use_xrc='wxUSE_XRC=no'
9257                           fi
9258                           cache=yes
9259
9260 else
9261
9262                           LINE=`grep "^wxUSE_XRC=" ${wx_arg_cache_file}`
9263                           if test "x$LINE" != x ; then
9264                             eval "DEFAULT_$LINE"
9265                           fi
9266
9267                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
9268
9269 fi
9270
9271
9272           eval "$wx_cv_use_xrc"
9273           if test "x$cache" = xyes; then
9274             echo "wxUSE_XRC=$wxUSE_XRC" >> ${wx_arg_cache_file}.tmp
9275           fi
9276
9277           if test x"$enablestring" = xdisable; then
9278             if test $wxUSE_XRC = yes; then
9279               result=no
9280             else
9281               result=yes
9282             fi
9283           else
9284             result=$wxUSE_XRC
9285           fi
9286
9287           { echo "$as_me:$LINENO: result: $result" >&5
9288 echo "${ECHO_T}$result" >&6; }
9289
9290
9291           enablestring=
9292           defaultval=$wxUSE_ALL_FEATURES
9293           if test -z "$defaultval"; then
9294               if test x"$enablestring" = xdisable; then
9295                   defaultval=yes
9296               else
9297                   defaultval=no
9298               fi
9299           fi
9300
9301           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
9302 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
9303           # Check whether --enable-aui was given.
9304 if test "${enable_aui+set}" = set; then
9305   enableval=$enable_aui;
9306                           if test "$enableval" = yes; then
9307                             wx_cv_use_aui='wxUSE_AUI=yes'
9308                           else
9309                             wx_cv_use_aui='wxUSE_AUI=no'
9310                           fi
9311                           cache=yes
9312
9313 else
9314
9315                           LINE=`grep "^wxUSE_AUI=" ${wx_arg_cache_file}`
9316                           if test "x$LINE" != x ; then
9317                             eval "DEFAULT_$LINE"
9318                           fi
9319
9320                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
9321
9322 fi
9323
9324
9325           eval "$wx_cv_use_aui"
9326           if test "x$cache" = xyes; then
9327             echo "wxUSE_AUI=$wxUSE_AUI" >> ${wx_arg_cache_file}.tmp
9328           fi
9329
9330           if test x"$enablestring" = xdisable; then
9331             if test $wxUSE_AUI = yes; then
9332               result=no
9333             else
9334               result=yes
9335             fi
9336           else
9337             result=$wxUSE_AUI
9338           fi
9339
9340           { echo "$as_me:$LINENO: result: $result" >&5
9341 echo "${ECHO_T}$result" >&6; }
9342
9343
9344           enablestring=
9345           defaultval=$wxUSE_ALL_FEATURES
9346           if test -z "$defaultval"; then
9347               if test x"$enablestring" = xdisable; then
9348                   defaultval=yes
9349               else
9350                   defaultval=no
9351               fi
9352           fi
9353
9354           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9355 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9356           # Check whether --enable-stc was given.
9357 if test "${enable_stc+set}" = set; then
9358   enableval=$enable_stc;
9359                           if test "$enableval" = yes; then
9360                             wx_cv_use_stc='wxUSE_STC=yes'
9361                           else
9362                             wx_cv_use_stc='wxUSE_STC=no'
9363                           fi
9364                           cache=yes
9365
9366 else
9367
9368                           LINE=`grep "^wxUSE_STC=" ${wx_arg_cache_file}`
9369                           if test "x$LINE" != x ; then
9370                             eval "DEFAULT_$LINE"
9371                           fi
9372
9373                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9374
9375 fi
9376
9377
9378           eval "$wx_cv_use_stc"
9379           if test "x$cache" = xyes; then
9380             echo "wxUSE_STC=$wxUSE_STC" >> ${wx_arg_cache_file}.tmp
9381           fi
9382
9383           if test x"$enablestring" = xdisable; then
9384             if test $wxUSE_STC = yes; then
9385               result=no
9386             else
9387               result=yes
9388             fi
9389           else
9390             result=$wxUSE_STC
9391           fi
9392
9393           { echo "$as_me:$LINENO: result: $result" >&5
9394 echo "${ECHO_T}$result" >&6; }
9395
9396
9397           enablestring=
9398           defaultval=$wxUSE_ALL_FEATURES
9399           if test -z "$defaultval"; then
9400               if test x"$enablestring" = xdisable; then
9401                   defaultval=yes
9402               else
9403                   defaultval=no
9404               fi
9405           fi
9406
9407           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9408 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9409           # Check whether --enable-constraints was given.
9410 if test "${enable_constraints+set}" = set; then
9411   enableval=$enable_constraints;
9412                           if test "$enableval" = yes; then
9413                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9414                           else
9415                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9416                           fi
9417                           cache=yes
9418
9419 else
9420
9421                           LINE=`grep "^wxUSE_CONSTRAINTS=" ${wx_arg_cache_file}`
9422                           if test "x$LINE" != x ; then
9423                             eval "DEFAULT_$LINE"
9424                           fi
9425
9426                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9427
9428 fi
9429
9430
9431           eval "$wx_cv_use_constraints"
9432           if test "x$cache" = xyes; then
9433             echo "wxUSE_CONSTRAINTS=$wxUSE_CONSTRAINTS" >> ${wx_arg_cache_file}.tmp
9434           fi
9435
9436           if test x"$enablestring" = xdisable; then
9437             if test $wxUSE_CONSTRAINTS = yes; then
9438               result=no
9439             else
9440               result=yes
9441             fi
9442           else
9443             result=$wxUSE_CONSTRAINTS
9444           fi
9445
9446           { echo "$as_me:$LINENO: result: $result" >&5
9447 echo "${ECHO_T}$result" >&6; }
9448
9449
9450           enablestring=
9451           defaultval=$wxUSE_ALL_FEATURES
9452           if test -z "$defaultval"; then
9453               if test x"$enablestring" = xdisable; then
9454                   defaultval=yes
9455               else
9456                   defaultval=no
9457               fi
9458           fi
9459
9460           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9461 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9462           # Check whether --enable-printarch was given.
9463 if test "${enable_printarch+set}" = set; then
9464   enableval=$enable_printarch;
9465                           if test "$enableval" = yes; then
9466                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9467                           else
9468                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9469                           fi
9470                           cache=yes
9471
9472 else
9473
9474                           LINE=`grep "^wxUSE_PRINTING_ARCHITECTURE=" ${wx_arg_cache_file}`
9475                           if test "x$LINE" != x ; then
9476                             eval "DEFAULT_$LINE"
9477                           fi
9478
9479                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9480
9481 fi
9482
9483
9484           eval "$wx_cv_use_printarch"
9485           if test "x$cache" = xyes; then
9486             echo "wxUSE_PRINTING_ARCHITECTURE=$wxUSE_PRINTING_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9487           fi
9488
9489           if test x"$enablestring" = xdisable; then
9490             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9491               result=no
9492             else
9493               result=yes
9494             fi
9495           else
9496             result=$wxUSE_PRINTING_ARCHITECTURE
9497           fi
9498
9499           { echo "$as_me:$LINENO: result: $result" >&5
9500 echo "${ECHO_T}$result" >&6; }
9501
9502
9503           enablestring=
9504           defaultval=$wxUSE_ALL_FEATURES
9505           if test -z "$defaultval"; then
9506               if test x"$enablestring" = xdisable; then
9507                   defaultval=yes
9508               else
9509                   defaultval=no
9510               fi
9511           fi
9512
9513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9514 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9515           # Check whether --enable-mdi was given.
9516 if test "${enable_mdi+set}" = set; then
9517   enableval=$enable_mdi;
9518                           if test "$enableval" = yes; then
9519                             wx_cv_use_mdi='wxUSE_MDI=yes'
9520                           else
9521                             wx_cv_use_mdi='wxUSE_MDI=no'
9522                           fi
9523                           cache=yes
9524
9525 else
9526
9527                           LINE=`grep "^wxUSE_MDI=" ${wx_arg_cache_file}`
9528                           if test "x$LINE" != x ; then
9529                             eval "DEFAULT_$LINE"
9530                           fi
9531
9532                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9533
9534 fi
9535
9536
9537           eval "$wx_cv_use_mdi"
9538           if test "x$cache" = xyes; then
9539             echo "wxUSE_MDI=$wxUSE_MDI" >> ${wx_arg_cache_file}.tmp
9540           fi
9541
9542           if test x"$enablestring" = xdisable; then
9543             if test $wxUSE_MDI = yes; then
9544               result=no
9545             else
9546               result=yes
9547             fi
9548           else
9549             result=$wxUSE_MDI
9550           fi
9551
9552           { echo "$as_me:$LINENO: result: $result" >&5
9553 echo "${ECHO_T}$result" >&6; }
9554
9555
9556           enablestring=
9557           defaultval=$wxUSE_ALL_FEATURES
9558           if test -z "$defaultval"; then
9559               if test x"$enablestring" = xdisable; then
9560                   defaultval=yes
9561               else
9562                   defaultval=no
9563               fi
9564           fi
9565
9566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9567 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9568           # Check whether --enable-mdidoc was given.
9569 if test "${enable_mdidoc+set}" = set; then
9570   enableval=$enable_mdidoc;
9571                           if test "$enableval" = yes; then
9572                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9573                           else
9574                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9575                           fi
9576                           cache=yes
9577
9578 else
9579
9580                           LINE=`grep "^wxUSE_MDI_ARCHITECTURE=" ${wx_arg_cache_file}`
9581                           if test "x$LINE" != x ; then
9582                             eval "DEFAULT_$LINE"
9583                           fi
9584
9585                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9586
9587 fi
9588
9589
9590           eval "$wx_cv_use_mdidoc"
9591           if test "x$cache" = xyes; then
9592             echo "wxUSE_MDI_ARCHITECTURE=$wxUSE_MDI_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9593           fi
9594
9595           if test x"$enablestring" = xdisable; then
9596             if test $wxUSE_MDI_ARCHITECTURE = yes; then
9597               result=no
9598             else
9599               result=yes
9600             fi
9601           else
9602             result=$wxUSE_MDI_ARCHITECTURE
9603           fi
9604
9605           { echo "$as_me:$LINENO: result: $result" >&5
9606 echo "${ECHO_T}$result" >&6; }
9607
9608
9609           enablestring=
9610           defaultval=$wxUSE_ALL_FEATURES
9611           if test -z "$defaultval"; then
9612               if test x"$enablestring" = xdisable; then
9613                   defaultval=yes
9614               else
9615                   defaultval=no
9616               fi
9617           fi
9618
9619           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9620 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9621           # Check whether --enable-loggui was given.
9622 if test "${enable_loggui+set}" = set; then
9623   enableval=$enable_loggui;
9624                           if test "$enableval" = yes; then
9625                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9626                           else
9627                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9628                           fi
9629                           cache=yes
9630
9631 else
9632
9633                           LINE=`grep "^wxUSE_LOGGUI=" ${wx_arg_cache_file}`
9634                           if test "x$LINE" != x ; then
9635                             eval "DEFAULT_$LINE"
9636                           fi
9637
9638                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9639
9640 fi
9641
9642
9643           eval "$wx_cv_use_loggui"
9644           if test "x$cache" = xyes; then
9645             echo "wxUSE_LOGGUI=$wxUSE_LOGGUI" >> ${wx_arg_cache_file}.tmp
9646           fi
9647
9648           if test x"$enablestring" = xdisable; then
9649             if test $wxUSE_LOGGUI = yes; then
9650               result=no
9651             else
9652               result=yes
9653             fi
9654           else
9655             result=$wxUSE_LOGGUI
9656           fi
9657
9658           { echo "$as_me:$LINENO: result: $result" >&5
9659 echo "${ECHO_T}$result" >&6; }
9660
9661
9662           enablestring=
9663           defaultval=$wxUSE_ALL_FEATURES
9664           if test -z "$defaultval"; then
9665               if test x"$enablestring" = xdisable; then
9666                   defaultval=yes
9667               else
9668                   defaultval=no
9669               fi
9670           fi
9671
9672           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9673 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9674           # Check whether --enable-logwin was given.
9675 if test "${enable_logwin+set}" = set; then
9676   enableval=$enable_logwin;
9677                           if test "$enableval" = yes; then
9678                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9679                           else
9680                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9681                           fi
9682                           cache=yes
9683
9684 else
9685
9686                           LINE=`grep "^wxUSE_LOGWINDOW=" ${wx_arg_cache_file}`
9687                           if test "x$LINE" != x ; then
9688                             eval "DEFAULT_$LINE"
9689                           fi
9690
9691                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9692
9693 fi
9694
9695
9696           eval "$wx_cv_use_logwin"
9697           if test "x$cache" = xyes; then
9698             echo "wxUSE_LOGWINDOW=$wxUSE_LOGWINDOW" >> ${wx_arg_cache_file}.tmp
9699           fi
9700
9701           if test x"$enablestring" = xdisable; then
9702             if test $wxUSE_LOGWINDOW = yes; then
9703               result=no
9704             else
9705               result=yes
9706             fi
9707           else
9708             result=$wxUSE_LOGWINDOW
9709           fi
9710
9711           { echo "$as_me:$LINENO: result: $result" >&5
9712 echo "${ECHO_T}$result" >&6; }
9713
9714
9715           enablestring=
9716           defaultval=$wxUSE_ALL_FEATURES
9717           if test -z "$defaultval"; then
9718               if test x"$enablestring" = xdisable; then
9719                   defaultval=yes
9720               else
9721                   defaultval=no
9722               fi
9723           fi
9724
9725           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9726 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9727           # Check whether --enable-logdialog was given.
9728 if test "${enable_logdialog+set}" = set; then
9729   enableval=$enable_logdialog;
9730                           if test "$enableval" = yes; then
9731                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9732                           else
9733                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9734                           fi
9735                           cache=yes
9736
9737 else
9738
9739                           LINE=`grep "^wxUSE_LOGDIALOG=" ${wx_arg_cache_file}`
9740                           if test "x$LINE" != x ; then
9741                             eval "DEFAULT_$LINE"
9742                           fi
9743
9744                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9745
9746 fi
9747
9748
9749           eval "$wx_cv_use_logdialog"
9750           if test "x$cache" = xyes; then
9751             echo "wxUSE_LOGDIALOG=$wxUSE_LOGDIALOG" >> ${wx_arg_cache_file}.tmp
9752           fi
9753
9754           if test x"$enablestring" = xdisable; then
9755             if test $wxUSE_LOGDIALOG = yes; then
9756               result=no
9757             else
9758               result=yes
9759             fi
9760           else
9761             result=$wxUSE_LOGDIALOG
9762           fi
9763
9764           { echo "$as_me:$LINENO: result: $result" >&5
9765 echo "${ECHO_T}$result" >&6; }
9766
9767
9768           enablestring=
9769           defaultval=$wxUSE_ALL_FEATURES
9770           if test -z "$defaultval"; then
9771               if test x"$enablestring" = xdisable; then
9772                   defaultval=yes
9773               else
9774                   defaultval=no
9775               fi
9776           fi
9777
9778           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9779 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9780           # Check whether --enable-webkit was given.
9781 if test "${enable_webkit+set}" = set; then
9782   enableval=$enable_webkit;
9783                           if test "$enableval" = yes; then
9784                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9785                           else
9786                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9787                           fi
9788                           cache=yes
9789
9790 else
9791
9792                           LINE=`grep "^wxUSE_WEBKIT=" ${wx_arg_cache_file}`
9793                           if test "x$LINE" != x ; then
9794                             eval "DEFAULT_$LINE"
9795                           fi
9796
9797                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9798
9799 fi
9800
9801
9802           eval "$wx_cv_use_webkit"
9803           if test "x$cache" = xyes; then
9804             echo "wxUSE_WEBKIT=$wxUSE_WEBKIT" >> ${wx_arg_cache_file}.tmp
9805           fi
9806
9807           if test x"$enablestring" = xdisable; then
9808             if test $wxUSE_WEBKIT = yes; then
9809               result=no
9810             else
9811               result=yes
9812             fi
9813           else
9814             result=$wxUSE_WEBKIT
9815           fi
9816
9817           { echo "$as_me:$LINENO: result: $result" >&5
9818 echo "${ECHO_T}$result" >&6; }
9819
9820
9821           enablestring=
9822           defaultval=$wxUSE_ALL_FEATURES
9823           if test -z "$defaultval"; then
9824               if test x"$enablestring" = xdisable; then
9825                   defaultval=yes
9826               else
9827                   defaultval=no
9828               fi
9829           fi
9830
9831           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9832 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9833           # Check whether --enable-richtext was given.
9834 if test "${enable_richtext+set}" = set; then
9835   enableval=$enable_richtext;
9836                           if test "$enableval" = yes; then
9837                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9838                           else
9839                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9840                           fi
9841                           cache=yes
9842
9843 else
9844
9845                           LINE=`grep "^wxUSE_RICHTEXT=" ${wx_arg_cache_file}`
9846                           if test "x$LINE" != x ; then
9847                             eval "DEFAULT_$LINE"
9848                           fi
9849
9850                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9851
9852 fi
9853
9854
9855           eval "$wx_cv_use_richtext"
9856           if test "x$cache" = xyes; then
9857             echo "wxUSE_RICHTEXT=$wxUSE_RICHTEXT" >> ${wx_arg_cache_file}.tmp
9858           fi
9859
9860           if test x"$enablestring" = xdisable; then
9861             if test $wxUSE_RICHTEXT = yes; then
9862               result=no
9863             else
9864               result=yes
9865             fi
9866           else
9867             result=$wxUSE_RICHTEXT
9868           fi
9869
9870           { echo "$as_me:$LINENO: result: $result" >&5
9871 echo "${ECHO_T}$result" >&6; }
9872
9873
9874           enablestring=
9875           defaultval=$wxUSE_ALL_FEATURES
9876           if test -z "$defaultval"; then
9877               if test x"$enablestring" = xdisable; then
9878                   defaultval=yes
9879               else
9880                   defaultval=no
9881               fi
9882           fi
9883
9884           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9885 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9886           # Check whether --enable-graphics_ctx was given.
9887 if test "${enable_graphics_ctx+set}" = set; then
9888   enableval=$enable_graphics_ctx;
9889                           if test "$enableval" = yes; then
9890                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9891                           else
9892                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9893                           fi
9894                           cache=yes
9895
9896 else
9897
9898                           LINE=`grep "^wxUSE_GRAPHICS_CONTEXT=" ${wx_arg_cache_file}`
9899                           if test "x$LINE" != x ; then
9900                             eval "DEFAULT_$LINE"
9901                           fi
9902
9903                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9904
9905 fi
9906
9907
9908           eval "$wx_cv_use_graphics_ctx"
9909           if test "x$cache" = xyes; then
9910             echo "wxUSE_GRAPHICS_CONTEXT=$wxUSE_GRAPHICS_CONTEXT" >> ${wx_arg_cache_file}.tmp
9911           fi
9912
9913           if test x"$enablestring" = xdisable; then
9914             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
9915               result=no
9916             else
9917               result=yes
9918             fi
9919           else
9920             result=$wxUSE_GRAPHICS_CONTEXT
9921           fi
9922
9923           { echo "$as_me:$LINENO: result: $result" >&5
9924 echo "${ECHO_T}$result" >&6; }
9925
9926
9927           enablestring=
9928           defaultval=$wxUSE_ALL_FEATURES
9929           if test -z "$defaultval"; then
9930               if test x"$enablestring" = xdisable; then
9931                   defaultval=yes
9932               else
9933                   defaultval=no
9934               fi
9935           fi
9936
9937           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9938 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9939           # Check whether --enable-postscript was given.
9940 if test "${enable_postscript+set}" = set; then
9941   enableval=$enable_postscript;
9942                           if test "$enableval" = yes; then
9943                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9944                           else
9945                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9946                           fi
9947                           cache=yes
9948
9949 else
9950
9951                           LINE=`grep "^wxUSE_POSTSCRIPT=" ${wx_arg_cache_file}`
9952                           if test "x$LINE" != x ; then
9953                             eval "DEFAULT_$LINE"
9954                           fi
9955
9956                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9957
9958 fi
9959
9960
9961           eval "$wx_cv_use_postscript"
9962           if test "x$cache" = xyes; then
9963             echo "wxUSE_POSTSCRIPT=$wxUSE_POSTSCRIPT" >> ${wx_arg_cache_file}.tmp
9964           fi
9965
9966           if test x"$enablestring" = xdisable; then
9967             if test $wxUSE_POSTSCRIPT = yes; then
9968               result=no
9969             else
9970               result=yes
9971             fi
9972           else
9973             result=$wxUSE_POSTSCRIPT
9974           fi
9975
9976           { echo "$as_me:$LINENO: result: $result" >&5
9977 echo "${ECHO_T}$result" >&6; }
9978
9979
9980           enablestring=
9981           defaultval=$wxUSE_ALL_FEATURES
9982           if test -z "$defaultval"; then
9983               if test x"$enablestring" = xdisable; then
9984                   defaultval=yes
9985               else
9986                   defaultval=no
9987               fi
9988           fi
9989
9990           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9991 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9992           # Check whether --enable-svg was given.
9993 if test "${enable_svg+set}" = set; then
9994   enableval=$enable_svg;
9995                           if test "$enableval" = yes; then
9996                             wx_cv_use_svg='wxUSE_SVG=yes'
9997                           else
9998                             wx_cv_use_svg='wxUSE_SVG=no'
9999                           fi
10000                           cache=yes
10001
10002 else
10003
10004                           LINE=`grep "^wxUSE_SVG=" ${wx_arg_cache_file}`
10005                           if test "x$LINE" != x ; then
10006                             eval "DEFAULT_$LINE"
10007                           fi
10008
10009                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
10010
10011 fi
10012
10013
10014           eval "$wx_cv_use_svg"
10015           if test "x$cache" = xyes; then
10016             echo "wxUSE_SVG=$wxUSE_SVG" >> ${wx_arg_cache_file}.tmp
10017           fi
10018
10019           if test x"$enablestring" = xdisable; then
10020             if test $wxUSE_SVG = yes; then
10021               result=no
10022             else
10023               result=yes
10024             fi
10025           else
10026             result=$wxUSE_SVG
10027           fi
10028
10029           { echo "$as_me:$LINENO: result: $result" >&5
10030 echo "${ECHO_T}$result" >&6; }
10031
10032
10033
10034
10035           enablestring=
10036           defaultval=$wxUSE_ALL_FEATURES
10037           if test -z "$defaultval"; then
10038               if test x"$enablestring" = xdisable; then
10039                   defaultval=yes
10040               else
10041                   defaultval=no
10042               fi
10043           fi
10044
10045           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
10046 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
10047           # Check whether --enable-clipboard was given.
10048 if test "${enable_clipboard+set}" = set; then
10049   enableval=$enable_clipboard;
10050                           if test "$enableval" = yes; then
10051                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
10052                           else
10053                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
10054                           fi
10055                           cache=yes
10056
10057 else
10058
10059                           LINE=`grep "^wxUSE_CLIPBOARD=" ${wx_arg_cache_file}`
10060                           if test "x$LINE" != x ; then
10061                             eval "DEFAULT_$LINE"
10062                           fi
10063
10064                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
10065
10066 fi
10067
10068
10069           eval "$wx_cv_use_clipboard"
10070           if test "x$cache" = xyes; then
10071             echo "wxUSE_CLIPBOARD=$wxUSE_CLIPBOARD" >> ${wx_arg_cache_file}.tmp
10072           fi
10073
10074           if test x"$enablestring" = xdisable; then
10075             if test $wxUSE_CLIPBOARD = yes; then
10076               result=no
10077             else
10078               result=yes
10079             fi
10080           else
10081             result=$wxUSE_CLIPBOARD
10082           fi
10083
10084           { echo "$as_me:$LINENO: result: $result" >&5
10085 echo "${ECHO_T}$result" >&6; }
10086
10087
10088           enablestring=
10089           defaultval=$wxUSE_ALL_FEATURES
10090           if test -z "$defaultval"; then
10091               if test x"$enablestring" = xdisable; then
10092                   defaultval=yes
10093               else
10094                   defaultval=no
10095               fi
10096           fi
10097
10098           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
10099 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
10100           # Check whether --enable-dnd was given.
10101 if test "${enable_dnd+set}" = set; then
10102   enableval=$enable_dnd;
10103                           if test "$enableval" = yes; then
10104                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
10105                           else
10106                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
10107                           fi
10108                           cache=yes
10109
10110 else
10111
10112                           LINE=`grep "^wxUSE_DRAG_AND_DROP=" ${wx_arg_cache_file}`
10113                           if test "x$LINE" != x ; then
10114                             eval "DEFAULT_$LINE"
10115                           fi
10116
10117                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
10118
10119 fi
10120
10121
10122           eval "$wx_cv_use_dnd"
10123           if test "x$cache" = xyes; then
10124             echo "wxUSE_DRAG_AND_DROP=$wxUSE_DRAG_AND_DROP" >> ${wx_arg_cache_file}.tmp
10125           fi
10126
10127           if test x"$enablestring" = xdisable; then
10128             if test $wxUSE_DRAG_AND_DROP = yes; then
10129               result=no
10130             else
10131               result=yes
10132             fi
10133           else
10134             result=$wxUSE_DRAG_AND_DROP
10135           fi
10136
10137           { echo "$as_me:$LINENO: result: $result" >&5
10138 echo "${ECHO_T}$result" >&6; }
10139
10140
10141           enablestring=
10142           defaultval=$wxUSE_ALL_FEATURES
10143           if test -z "$defaultval"; then
10144               if test x"$enablestring" = xdisable; then
10145                   defaultval=yes
10146               else
10147                   defaultval=no
10148               fi
10149           fi
10150
10151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10152 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
10153           # Check whether --enable-metafile was given.
10154 if test "${enable_metafile+set}" = set; then
10155   enableval=$enable_metafile;
10156                           if test "$enableval" = yes; then
10157                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
10158                           else
10159                             wx_cv_use_metafile='wxUSE_METAFILE=no'
10160                           fi
10161                           cache=yes
10162
10163 else
10164
10165                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
10166                           if test "x$LINE" != x ; then
10167                             eval "DEFAULT_$LINE"
10168                           fi
10169
10170                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
10171
10172 fi
10173
10174
10175           eval "$wx_cv_use_metafile"
10176           if test "x$cache" = xyes; then
10177             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
10178           fi
10179
10180           if test x"$enablestring" = xdisable; then
10181             if test $wxUSE_METAFILE = yes; then
10182               result=no
10183             else
10184               result=yes
10185             fi
10186           else
10187             result=$wxUSE_METAFILE
10188           fi
10189
10190           { echo "$as_me:$LINENO: result: $result" >&5
10191 echo "${ECHO_T}$result" >&6; }
10192
10193
10194
10195 DEFAULT_wxUSE_CONTROLS=none
10196
10197           enablestring=disable
10198           defaultval=
10199           if test -z "$defaultval"; then
10200               if test x"$enablestring" = xdisable; then
10201                   defaultval=yes
10202               else
10203                   defaultval=no
10204               fi
10205           fi
10206
10207           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
10208 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
10209           # Check whether --enable-controls was given.
10210 if test "${enable_controls+set}" = set; then
10211   enableval=$enable_controls;
10212                           if test "$enableval" = yes; then
10213                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
10214                           else
10215                             wx_cv_use_controls='wxUSE_CONTROLS=no'
10216                           fi
10217                           cache=yes
10218
10219 else
10220
10221                           LINE=`grep "^wxUSE_CONTROLS=" ${wx_arg_cache_file}`
10222                           if test "x$LINE" != x ; then
10223                             eval "DEFAULT_$LINE"
10224                           fi
10225
10226                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
10227
10228 fi
10229
10230
10231           eval "$wx_cv_use_controls"
10232           if test "x$cache" = xyes; then
10233             echo "wxUSE_CONTROLS=$wxUSE_CONTROLS" >> ${wx_arg_cache_file}.tmp
10234           fi
10235
10236           if test x"$enablestring" = xdisable; then
10237             if test $wxUSE_CONTROLS = yes; then
10238               result=no
10239             else
10240               result=yes
10241             fi
10242           else
10243             result=$wxUSE_CONTROLS
10244           fi
10245
10246           { echo "$as_me:$LINENO: result: $result" >&5
10247 echo "${ECHO_T}$result" >&6; }
10248
10249
10250 if test "$wxUSE_CONTROLS" = "yes"; then
10251   DEFAULT_wxUSE_ACCEL=yes
10252   DEFAULT_wxUSE_ANIMATIONCTRL=yes
10253   DEFAULT_wxUSE_BMPBUTTON=yes
10254   DEFAULT_wxUSE_BUTTON=yes
10255   DEFAULT_wxUSE_CALCTRL=yes
10256   DEFAULT_wxUSE_CARET=yes
10257   DEFAULT_wxUSE_COMBOBOX=yes
10258   DEFAULT_wxUSE_CHECKBOX=yes
10259   DEFAULT_wxUSE_CHECKLISTBOX=yes
10260   DEFAULT_wxUSE_CHOICE=yes
10261   DEFAULT_wxUSE_CHOICEBOOK=yes
10262   DEFAULT_wxUSE_COLLPANE=yes
10263   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
10264   DEFAULT_wxUSE_COMBOBOX=yes
10265   DEFAULT_wxUSE_DATEPICKCTRL=yes
10266   DEFAULT_wxUSE_DISPLAY=yes
10267   DEFAULT_wxUSE_DETECT_SM=yes
10268   DEFAULT_wxUSE_DIRPICKERCTRL=yes
10269   DEFAULT_wxUSE_FILEPICKERCTRL=yes
10270   DEFAULT_wxUSE_FONTPICKERCTRL=yes
10271   DEFAULT_wxUSE_GAUGE=yes
10272   DEFAULT_wxUSE_GRID=yes
10273   DEFAULT_wxUSE_HYPERLINKCTRL=yes
10274   DEFAULT_wxUSE_DATAVIEWCTRL=no
10275   DEFAULT_wxUSE_IMAGLIST=yes
10276   DEFAULT_wxUSE_LISTBOOK=yes
10277   DEFAULT_wxUSE_LISTBOX=yes
10278   DEFAULT_wxUSE_LISTCTRL=yes
10279   DEFAULT_wxUSE_NOTEBOOK=yes
10280   DEFAULT_wxUSE_RADIOBOX=yes
10281   DEFAULT_wxUSE_RADIOBTN=yes
10282   DEFAULT_wxUSE_SASH=yes
10283   DEFAULT_wxUSE_SCROLLBAR=yes
10284   DEFAULT_wxUSE_SEARCHCTRL=yes
10285   DEFAULT_wxUSE_SLIDER=yes
10286   DEFAULT_wxUSE_SPINBTN=yes
10287   DEFAULT_wxUSE_SPINCTRL=yes
10288   DEFAULT_wxUSE_SPLITTER=yes
10289   DEFAULT_wxUSE_STATBMP=yes
10290   DEFAULT_wxUSE_STATBOX=yes
10291   DEFAULT_wxUSE_STATLINE=yes
10292   DEFAULT_wxUSE_STATUSBAR=yes
10293   DEFAULT_wxUSE_TAB_DIALOG=yes
10294   DEFAULT_wxUSE_TOGGLEBTN=yes
10295   DEFAULT_wxUSE_TOOLBAR=yes
10296   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
10297   DEFAULT_wxUSE_TOOLTIPS=yes
10298   DEFAULT_wxUSE_TREEBOOK=yes
10299   DEFAULT_wxUSE_TOOLBOOK=yes
10300   DEFAULT_wxUSE_TREECTRL=yes
10301   DEFAULT_wxUSE_POPUPWIN=yes
10302   DEFAULT_wxUSE_TIPWINDOW=yes
10303 elif test "$wxUSE_CONTROLS" = "no"; then
10304   DEFAULT_wxUSE_ACCEL=no
10305   DEFAULT_wxUSE_ANIMATIONCTRL=no
10306   DEFAULT_wxUSE_BMPBUTTON=no
10307   DEFAULT_wxUSE_BUTTON=no
10308   DEFAULT_wxUSE_CALCTRL=no
10309   DEFAULT_wxUSE_CARET=no
10310   DEFAULT_wxUSE_COLLPANE=no
10311   DEFAULT_wxUSE_COMBOBOX=no
10312   DEFAULT_wxUSE_CHECKBOX=no
10313   DEFAULT_wxUSE_CHECKLISTBOX=no
10314   DEFAULT_wxUSE_CHOICE=no
10315   DEFAULT_wxUSE_CHOICEBOOK=no
10316   DEFAULT_wxUSE_COLOURPICKERCTRL=no
10317   DEFAULT_wxUSE_COMBOBOX=no
10318   DEFAULT_wxUSE_DATEPICKCTRL=no
10319   DEFAULT_wxUSE_DISPLAY=no
10320   DEFAULT_wxUSE_DETECT_SM=no
10321   DEFAULT_wxUSE_DIRPICKERCTRL=no
10322   DEFAULT_wxUSE_FILEPICKERCTRL=no
10323   DEFAULT_wxUSE_FONTPICKERCTRL=no
10324   DEFAULT_wxUSE_GAUGE=no
10325   DEFAULT_wxUSE_GRID=no
10326   DEFAULT_wxUSE_HYPERLINKCTRL=no
10327   DEFAULT_wxUSE_DATAVIEWCTRL=no
10328   DEFAULT_wxUSE_IMAGLIST=no
10329   DEFAULT_wxUSE_LISTBOOK=no
10330   DEFAULT_wxUSE_LISTBOX=no
10331   DEFAULT_wxUSE_LISTCTRL=no
10332   DEFAULT_wxUSE_NOTEBOOK=no
10333   DEFAULT_wxUSE_RADIOBOX=no
10334   DEFAULT_wxUSE_RADIOBTN=no
10335   DEFAULT_wxUSE_SASH=no
10336   DEFAULT_wxUSE_SCROLLBAR=no
10337   DEFAULT_wxUSE_SEARCHCTRL=no
10338   DEFAULT_wxUSE_SLIDER=no
10339   DEFAULT_wxUSE_SPINBTN=no
10340   DEFAULT_wxUSE_SPINCTRL=no
10341   DEFAULT_wxUSE_SPLITTER=no
10342   DEFAULT_wxUSE_STATBMP=no
10343   DEFAULT_wxUSE_STATBOX=no
10344   DEFAULT_wxUSE_STATLINE=no
10345   DEFAULT_wxUSE_STATUSBAR=no
10346   DEFAULT_wxUSE_TAB_DIALOG=no
10347   DEFAULT_wxUSE_TOGGLEBTN=no
10348   DEFAULT_wxUSE_TOOLBAR=no
10349   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
10350   DEFAULT_wxUSE_TOOLTIPS=no
10351   DEFAULT_wxUSE_TREEBOOK=no
10352   DEFAULT_wxUSE_TOOLBOOK=no
10353   DEFAULT_wxUSE_TREECTRL=no
10354   DEFAULT_wxUSE_POPUPWIN=no
10355   DEFAULT_wxUSE_TIPWINDOW=no
10356 fi
10357
10358
10359           enablestring=
10360           defaultval=$wxUSE_ALL_FEATURES
10361           if test -z "$defaultval"; then
10362               if test x"$enablestring" = xdisable; then
10363                   defaultval=yes
10364               else
10365                   defaultval=no
10366               fi
10367           fi
10368
10369           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
10370 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
10371           # Check whether --enable-accel was given.
10372 if test "${enable_accel+set}" = set; then
10373   enableval=$enable_accel;
10374                           if test "$enableval" = yes; then
10375                             wx_cv_use_accel='wxUSE_ACCEL=yes'
10376                           else
10377                             wx_cv_use_accel='wxUSE_ACCEL=no'
10378                           fi
10379                           cache=yes
10380
10381 else
10382
10383                           LINE=`grep "^wxUSE_ACCEL=" ${wx_arg_cache_file}`
10384                           if test "x$LINE" != x ; then
10385                             eval "DEFAULT_$LINE"
10386                           fi
10387
10388                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
10389
10390 fi
10391
10392
10393           eval "$wx_cv_use_accel"
10394           if test "x$cache" = xyes; then
10395             echo "wxUSE_ACCEL=$wxUSE_ACCEL" >> ${wx_arg_cache_file}.tmp
10396           fi
10397
10398           if test x"$enablestring" = xdisable; then
10399             if test $wxUSE_ACCEL = yes; then
10400               result=no
10401             else
10402               result=yes
10403             fi
10404           else
10405             result=$wxUSE_ACCEL
10406           fi
10407
10408           { echo "$as_me:$LINENO: result: $result" >&5
10409 echo "${ECHO_T}$result" >&6; }
10410
10411
10412           enablestring=
10413           defaultval=$wxUSE_ALL_FEATURES
10414           if test -z "$defaultval"; then
10415               if test x"$enablestring" = xdisable; then
10416                   defaultval=yes
10417               else
10418                   defaultval=no
10419               fi
10420           fi
10421
10422           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10423 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10424           # Check whether --enable-animatectrl was given.
10425 if test "${enable_animatectrl+set}" = set; then
10426   enableval=$enable_animatectrl;
10427                           if test "$enableval" = yes; then
10428                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10429                           else
10430                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10431                           fi
10432                           cache=yes
10433
10434 else
10435
10436                           LINE=`grep "^wxUSE_ANIMATIONCTRL=" ${wx_arg_cache_file}`
10437                           if test "x$LINE" != x ; then
10438                             eval "DEFAULT_$LINE"
10439                           fi
10440
10441                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10442
10443 fi
10444
10445
10446           eval "$wx_cv_use_animatectrl"
10447           if test "x$cache" = xyes; then
10448             echo "wxUSE_ANIMATIONCTRL=$wxUSE_ANIMATIONCTRL" >> ${wx_arg_cache_file}.tmp
10449           fi
10450
10451           if test x"$enablestring" = xdisable; then
10452             if test $wxUSE_ANIMATIONCTRL = yes; then
10453               result=no
10454             else
10455               result=yes
10456             fi
10457           else
10458             result=$wxUSE_ANIMATIONCTRL
10459           fi
10460
10461           { echo "$as_me:$LINENO: result: $result" >&5
10462 echo "${ECHO_T}$result" >&6; }
10463
10464
10465           enablestring=
10466           defaultval=$wxUSE_ALL_FEATURES
10467           if test -z "$defaultval"; then
10468               if test x"$enablestring" = xdisable; then
10469                   defaultval=yes
10470               else
10471                   defaultval=no
10472               fi
10473           fi
10474
10475           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10476 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10477           # Check whether --enable-button was given.
10478 if test "${enable_button+set}" = set; then
10479   enableval=$enable_button;
10480                           if test "$enableval" = yes; then
10481                             wx_cv_use_button='wxUSE_BUTTON=yes'
10482                           else
10483                             wx_cv_use_button='wxUSE_BUTTON=no'
10484                           fi
10485                           cache=yes
10486
10487 else
10488
10489                           LINE=`grep "^wxUSE_BUTTON=" ${wx_arg_cache_file}`
10490                           if test "x$LINE" != x ; then
10491                             eval "DEFAULT_$LINE"
10492                           fi
10493
10494                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10495
10496 fi
10497
10498
10499           eval "$wx_cv_use_button"
10500           if test "x$cache" = xyes; then
10501             echo "wxUSE_BUTTON=$wxUSE_BUTTON" >> ${wx_arg_cache_file}.tmp
10502           fi
10503
10504           if test x"$enablestring" = xdisable; then
10505             if test $wxUSE_BUTTON = yes; then
10506               result=no
10507             else
10508               result=yes
10509             fi
10510           else
10511             result=$wxUSE_BUTTON
10512           fi
10513
10514           { echo "$as_me:$LINENO: result: $result" >&5
10515 echo "${ECHO_T}$result" >&6; }
10516
10517
10518           enablestring=
10519           defaultval=$wxUSE_ALL_FEATURES
10520           if test -z "$defaultval"; then
10521               if test x"$enablestring" = xdisable; then
10522                   defaultval=yes
10523               else
10524                   defaultval=no
10525               fi
10526           fi
10527
10528           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10529 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10530           # Check whether --enable-bmpbutton was given.
10531 if test "${enable_bmpbutton+set}" = set; then
10532   enableval=$enable_bmpbutton;
10533                           if test "$enableval" = yes; then
10534                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10535                           else
10536                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10537                           fi
10538                           cache=yes
10539
10540 else
10541
10542                           LINE=`grep "^wxUSE_BMPBUTTON=" ${wx_arg_cache_file}`
10543                           if test "x$LINE" != x ; then
10544                             eval "DEFAULT_$LINE"
10545                           fi
10546
10547                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10548
10549 fi
10550
10551
10552           eval "$wx_cv_use_bmpbutton"
10553           if test "x$cache" = xyes; then
10554             echo "wxUSE_BMPBUTTON=$wxUSE_BMPBUTTON" >> ${wx_arg_cache_file}.tmp
10555           fi
10556
10557           if test x"$enablestring" = xdisable; then
10558             if test $wxUSE_BMPBUTTON = yes; then
10559               result=no
10560             else
10561               result=yes
10562             fi
10563           else
10564             result=$wxUSE_BMPBUTTON
10565           fi
10566
10567           { echo "$as_me:$LINENO: result: $result" >&5
10568 echo "${ECHO_T}$result" >&6; }
10569
10570
10571           enablestring=
10572           defaultval=$wxUSE_ALL_FEATURES
10573           if test -z "$defaultval"; then
10574               if test x"$enablestring" = xdisable; then
10575                   defaultval=yes
10576               else
10577                   defaultval=no
10578               fi
10579           fi
10580
10581           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10582 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10583           # Check whether --enable-bmpcombobox was given.
10584 if test "${enable_bmpcombobox+set}" = set; then
10585   enableval=$enable_bmpcombobox;
10586                           if test "$enableval" = yes; then
10587                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10588                           else
10589                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10590                           fi
10591                           cache=yes
10592
10593 else
10594
10595                           LINE=`grep "^wxUSE_BITMAPCOMBOBOX=" ${wx_arg_cache_file}`
10596                           if test "x$LINE" != x ; then
10597                             eval "DEFAULT_$LINE"
10598                           fi
10599
10600                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10601
10602 fi
10603
10604
10605           eval "$wx_cv_use_bmpcombobox"
10606           if test "x$cache" = xyes; then
10607             echo "wxUSE_BITMAPCOMBOBOX=$wxUSE_BITMAPCOMBOBOX" >> ${wx_arg_cache_file}.tmp
10608           fi
10609
10610           if test x"$enablestring" = xdisable; then
10611             if test $wxUSE_BITMAPCOMBOBOX = yes; then
10612               result=no
10613             else
10614               result=yes
10615             fi
10616           else
10617             result=$wxUSE_BITMAPCOMBOBOX
10618           fi
10619
10620           { echo "$as_me:$LINENO: result: $result" >&5
10621 echo "${ECHO_T}$result" >&6; }
10622
10623
10624           enablestring=
10625           defaultval=$wxUSE_ALL_FEATURES
10626           if test -z "$defaultval"; then
10627               if test x"$enablestring" = xdisable; then
10628                   defaultval=yes
10629               else
10630                   defaultval=no
10631               fi
10632           fi
10633
10634           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10635 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10636           # Check whether --enable-calendar was given.
10637 if test "${enable_calendar+set}" = set; then
10638   enableval=$enable_calendar;
10639                           if test "$enableval" = yes; then
10640                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10641                           else
10642                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10643                           fi
10644                           cache=yes
10645
10646 else
10647
10648                           LINE=`grep "^wxUSE_CALCTRL=" ${wx_arg_cache_file}`
10649                           if test "x$LINE" != x ; then
10650                             eval "DEFAULT_$LINE"
10651                           fi
10652
10653                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10654
10655 fi
10656
10657
10658           eval "$wx_cv_use_calendar"
10659           if test "x$cache" = xyes; then
10660             echo "wxUSE_CALCTRL=$wxUSE_CALCTRL" >> ${wx_arg_cache_file}.tmp
10661           fi
10662
10663           if test x"$enablestring" = xdisable; then
10664             if test $wxUSE_CALCTRL = yes; then
10665               result=no
10666             else
10667               result=yes
10668             fi
10669           else
10670             result=$wxUSE_CALCTRL
10671           fi
10672
10673           { echo "$as_me:$LINENO: result: $result" >&5
10674 echo "${ECHO_T}$result" >&6; }
10675
10676
10677           enablestring=
10678           defaultval=$wxUSE_ALL_FEATURES
10679           if test -z "$defaultval"; then
10680               if test x"$enablestring" = xdisable; then
10681                   defaultval=yes
10682               else
10683                   defaultval=no
10684               fi
10685           fi
10686
10687           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10688 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10689           # Check whether --enable-caret was given.
10690 if test "${enable_caret+set}" = set; then
10691   enableval=$enable_caret;
10692                           if test "$enableval" = yes; then
10693                             wx_cv_use_caret='wxUSE_CARET=yes'
10694                           else
10695                             wx_cv_use_caret='wxUSE_CARET=no'
10696                           fi
10697                           cache=yes
10698
10699 else
10700
10701                           LINE=`grep "^wxUSE_CARET=" ${wx_arg_cache_file}`
10702                           if test "x$LINE" != x ; then
10703                             eval "DEFAULT_$LINE"
10704                           fi
10705
10706                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10707
10708 fi
10709
10710
10711           eval "$wx_cv_use_caret"
10712           if test "x$cache" = xyes; then
10713             echo "wxUSE_CARET=$wxUSE_CARET" >> ${wx_arg_cache_file}.tmp
10714           fi
10715
10716           if test x"$enablestring" = xdisable; then
10717             if test $wxUSE_CARET = yes; then
10718               result=no
10719             else
10720               result=yes
10721             fi
10722           else
10723             result=$wxUSE_CARET
10724           fi
10725
10726           { echo "$as_me:$LINENO: result: $result" >&5
10727 echo "${ECHO_T}$result" >&6; }
10728
10729
10730           enablestring=
10731           defaultval=$wxUSE_ALL_FEATURES
10732           if test -z "$defaultval"; then
10733               if test x"$enablestring" = xdisable; then
10734                   defaultval=yes
10735               else
10736                   defaultval=no
10737               fi
10738           fi
10739
10740           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10741 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10742           # Check whether --enable-checkbox was given.
10743 if test "${enable_checkbox+set}" = set; then
10744   enableval=$enable_checkbox;
10745                           if test "$enableval" = yes; then
10746                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10747                           else
10748                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10749                           fi
10750                           cache=yes
10751
10752 else
10753
10754                           LINE=`grep "^wxUSE_CHECKBOX=" ${wx_arg_cache_file}`
10755                           if test "x$LINE" != x ; then
10756                             eval "DEFAULT_$LINE"
10757                           fi
10758
10759                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10760
10761 fi
10762
10763
10764           eval "$wx_cv_use_checkbox"
10765           if test "x$cache" = xyes; then
10766             echo "wxUSE_CHECKBOX=$wxUSE_CHECKBOX" >> ${wx_arg_cache_file}.tmp
10767           fi
10768
10769           if test x"$enablestring" = xdisable; then
10770             if test $wxUSE_CHECKBOX = yes; then
10771               result=no
10772             else
10773               result=yes
10774             fi
10775           else
10776             result=$wxUSE_CHECKBOX
10777           fi
10778
10779           { echo "$as_me:$LINENO: result: $result" >&5
10780 echo "${ECHO_T}$result" >&6; }
10781
10782
10783           enablestring=
10784           defaultval=$wxUSE_ALL_FEATURES
10785           if test -z "$defaultval"; then
10786               if test x"$enablestring" = xdisable; then
10787                   defaultval=yes
10788               else
10789                   defaultval=no
10790               fi
10791           fi
10792
10793           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10794 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10795           # Check whether --enable-checklst was given.
10796 if test "${enable_checklst+set}" = set; then
10797   enableval=$enable_checklst;
10798                           if test "$enableval" = yes; then
10799                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
10800                           else
10801                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
10802                           fi
10803                           cache=yes
10804
10805 else
10806
10807                           LINE=`grep "^wxUSE_CHECKLST=" ${wx_arg_cache_file}`
10808                           if test "x$LINE" != x ; then
10809                             eval "DEFAULT_$LINE"
10810                           fi
10811
10812                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
10813
10814 fi
10815
10816
10817           eval "$wx_cv_use_checklst"
10818           if test "x$cache" = xyes; then
10819             echo "wxUSE_CHECKLST=$wxUSE_CHECKLST" >> ${wx_arg_cache_file}.tmp
10820           fi
10821
10822           if test x"$enablestring" = xdisable; then
10823             if test $wxUSE_CHECKLST = yes; then
10824               result=no
10825             else
10826               result=yes
10827             fi
10828           else
10829             result=$wxUSE_CHECKLST
10830           fi
10831
10832           { echo "$as_me:$LINENO: result: $result" >&5
10833 echo "${ECHO_T}$result" >&6; }
10834
10835
10836           enablestring=
10837           defaultval=$wxUSE_ALL_FEATURES
10838           if test -z "$defaultval"; then
10839               if test x"$enablestring" = xdisable; then
10840                   defaultval=yes
10841               else
10842                   defaultval=no
10843               fi
10844           fi
10845
10846           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
10847 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
10848           # Check whether --enable-choice was given.
10849 if test "${enable_choice+set}" = set; then
10850   enableval=$enable_choice;
10851                           if test "$enableval" = yes; then
10852                             wx_cv_use_choice='wxUSE_CHOICE=yes'
10853                           else
10854                             wx_cv_use_choice='wxUSE_CHOICE=no'
10855                           fi
10856                           cache=yes
10857
10858 else
10859
10860                           LINE=`grep "^wxUSE_CHOICE=" ${wx_arg_cache_file}`
10861                           if test "x$LINE" != x ; then
10862                             eval "DEFAULT_$LINE"
10863                           fi
10864
10865                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
10866
10867 fi
10868
10869
10870           eval "$wx_cv_use_choice"
10871           if test "x$cache" = xyes; then
10872             echo "wxUSE_CHOICE=$wxUSE_CHOICE" >> ${wx_arg_cache_file}.tmp
10873           fi
10874
10875           if test x"$enablestring" = xdisable; then
10876             if test $wxUSE_CHOICE = yes; then
10877               result=no
10878             else
10879               result=yes
10880             fi
10881           else
10882             result=$wxUSE_CHOICE
10883           fi
10884
10885           { echo "$as_me:$LINENO: result: $result" >&5
10886 echo "${ECHO_T}$result" >&6; }
10887
10888
10889           enablestring=
10890           defaultval=$wxUSE_ALL_FEATURES
10891           if test -z "$defaultval"; then
10892               if test x"$enablestring" = xdisable; then
10893                   defaultval=yes
10894               else
10895                   defaultval=no
10896               fi
10897           fi
10898
10899           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10900 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10901           # Check whether --enable-choicebook was given.
10902 if test "${enable_choicebook+set}" = set; then
10903   enableval=$enable_choicebook;
10904                           if test "$enableval" = yes; then
10905                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10906                           else
10907                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10908                           fi
10909                           cache=yes
10910
10911 else
10912
10913                           LINE=`grep "^wxUSE_CHOICEBOOK=" ${wx_arg_cache_file}`
10914                           if test "x$LINE" != x ; then
10915                             eval "DEFAULT_$LINE"
10916                           fi
10917
10918                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10919
10920 fi
10921
10922
10923           eval "$wx_cv_use_choicebook"
10924           if test "x$cache" = xyes; then
10925             echo "wxUSE_CHOICEBOOK=$wxUSE_CHOICEBOOK" >> ${wx_arg_cache_file}.tmp
10926           fi
10927
10928           if test x"$enablestring" = xdisable; then
10929             if test $wxUSE_CHOICEBOOK = yes; then
10930               result=no
10931             else
10932               result=yes
10933             fi
10934           else
10935             result=$wxUSE_CHOICEBOOK
10936           fi
10937
10938           { echo "$as_me:$LINENO: result: $result" >&5
10939 echo "${ECHO_T}$result" >&6; }
10940
10941
10942           enablestring=
10943           defaultval=$wxUSE_ALL_FEATURES
10944           if test -z "$defaultval"; then
10945               if test x"$enablestring" = xdisable; then
10946                   defaultval=yes
10947               else
10948                   defaultval=no
10949               fi
10950           fi
10951
10952           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10953 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10954           # Check whether --enable-collpane was given.
10955 if test "${enable_collpane+set}" = set; then
10956   enableval=$enable_collpane;
10957                           if test "$enableval" = yes; then
10958                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10959                           else
10960                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10961                           fi
10962                           cache=yes
10963
10964 else
10965
10966                           LINE=`grep "^wxUSE_COLLPANE=" ${wx_arg_cache_file}`
10967                           if test "x$LINE" != x ; then
10968                             eval "DEFAULT_$LINE"
10969                           fi
10970
10971                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10972
10973 fi
10974
10975
10976           eval "$wx_cv_use_collpane"
10977           if test "x$cache" = xyes; then
10978             echo "wxUSE_COLLPANE=$wxUSE_COLLPANE" >> ${wx_arg_cache_file}.tmp
10979           fi
10980
10981           if test x"$enablestring" = xdisable; then
10982             if test $wxUSE_COLLPANE = yes; then
10983               result=no
10984             else
10985               result=yes
10986             fi
10987           else
10988             result=$wxUSE_COLLPANE
10989           fi
10990
10991           { echo "$as_me:$LINENO: result: $result" >&5
10992 echo "${ECHO_T}$result" >&6; }
10993
10994
10995           enablestring=
10996           defaultval=$wxUSE_ALL_FEATURES
10997           if test -z "$defaultval"; then
10998               if test x"$enablestring" = xdisable; then
10999                   defaultval=yes
11000               else
11001                   defaultval=no
11002               fi
11003           fi
11004
11005           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
11006 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
11007           # Check whether --enable-colourpicker was given.
11008 if test "${enable_colourpicker+set}" = set; then
11009   enableval=$enable_colourpicker;
11010                           if test "$enableval" = yes; then
11011                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
11012                           else
11013                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
11014                           fi
11015                           cache=yes
11016
11017 else
11018
11019                           LINE=`grep "^wxUSE_COLOURPICKERCTRL=" ${wx_arg_cache_file}`
11020                           if test "x$LINE" != x ; then
11021                             eval "DEFAULT_$LINE"
11022                           fi
11023
11024                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
11025
11026 fi
11027
11028
11029           eval "$wx_cv_use_colourpicker"
11030           if test "x$cache" = xyes; then
11031             echo "wxUSE_COLOURPICKERCTRL=$wxUSE_COLOURPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11032           fi
11033
11034           if test x"$enablestring" = xdisable; then
11035             if test $wxUSE_COLOURPICKERCTRL = yes; then
11036               result=no
11037             else
11038               result=yes
11039             fi
11040           else
11041             result=$wxUSE_COLOURPICKERCTRL
11042           fi
11043
11044           { echo "$as_me:$LINENO: result: $result" >&5
11045 echo "${ECHO_T}$result" >&6; }
11046
11047
11048           enablestring=
11049           defaultval=$wxUSE_ALL_FEATURES
11050           if test -z "$defaultval"; then
11051               if test x"$enablestring" = xdisable; then
11052                   defaultval=yes
11053               else
11054                   defaultval=no
11055               fi
11056           fi
11057
11058           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
11059 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
11060           # Check whether --enable-combobox was given.
11061 if test "${enable_combobox+set}" = set; then
11062   enableval=$enable_combobox;
11063                           if test "$enableval" = yes; then
11064                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
11065                           else
11066                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
11067                           fi
11068                           cache=yes
11069
11070 else
11071
11072                           LINE=`grep "^wxUSE_COMBOBOX=" ${wx_arg_cache_file}`
11073                           if test "x$LINE" != x ; then
11074                             eval "DEFAULT_$LINE"
11075                           fi
11076
11077                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
11078
11079 fi
11080
11081
11082           eval "$wx_cv_use_combobox"
11083           if test "x$cache" = xyes; then
11084             echo "wxUSE_COMBOBOX=$wxUSE_COMBOBOX" >> ${wx_arg_cache_file}.tmp
11085           fi
11086
11087           if test x"$enablestring" = xdisable; then
11088             if test $wxUSE_COMBOBOX = yes; then
11089               result=no
11090             else
11091               result=yes
11092             fi
11093           else
11094             result=$wxUSE_COMBOBOX
11095           fi
11096
11097           { echo "$as_me:$LINENO: result: $result" >&5
11098 echo "${ECHO_T}$result" >&6; }
11099
11100
11101           enablestring=
11102           defaultval=$wxUSE_ALL_FEATURES
11103           if test -z "$defaultval"; then
11104               if test x"$enablestring" = xdisable; then
11105                   defaultval=yes
11106               else
11107                   defaultval=no
11108               fi
11109           fi
11110
11111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
11112 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
11113           # Check whether --enable-comboctrl was given.
11114 if test "${enable_comboctrl+set}" = set; then
11115   enableval=$enable_comboctrl;
11116                           if test "$enableval" = yes; then
11117                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
11118                           else
11119                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
11120                           fi
11121                           cache=yes
11122
11123 else
11124
11125                           LINE=`grep "^wxUSE_COMBOCTRL=" ${wx_arg_cache_file}`
11126                           if test "x$LINE" != x ; then
11127                             eval "DEFAULT_$LINE"
11128                           fi
11129
11130                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
11131
11132 fi
11133
11134
11135           eval "$wx_cv_use_comboctrl"
11136           if test "x$cache" = xyes; then
11137             echo "wxUSE_COMBOCTRL=$wxUSE_COMBOCTRL" >> ${wx_arg_cache_file}.tmp
11138           fi
11139
11140           if test x"$enablestring" = xdisable; then
11141             if test $wxUSE_COMBOCTRL = yes; then
11142               result=no
11143             else
11144               result=yes
11145             fi
11146           else
11147             result=$wxUSE_COMBOCTRL
11148           fi
11149
11150           { echo "$as_me:$LINENO: result: $result" >&5
11151 echo "${ECHO_T}$result" >&6; }
11152
11153
11154           enablestring=
11155           defaultval=$wxUSE_ALL_FEATURES
11156           if test -z "$defaultval"; then
11157               if test x"$enablestring" = xdisable; then
11158                   defaultval=yes
11159               else
11160                   defaultval=no
11161               fi
11162           fi
11163
11164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
11165 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
11166           # Check whether --enable-datepick was given.
11167 if test "${enable_datepick+set}" = set; then
11168   enableval=$enable_datepick;
11169                           if test "$enableval" = yes; then
11170                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
11171                           else
11172                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
11173                           fi
11174                           cache=yes
11175
11176 else
11177
11178                           LINE=`grep "^wxUSE_DATEPICKCTRL=" ${wx_arg_cache_file}`
11179                           if test "x$LINE" != x ; then
11180                             eval "DEFAULT_$LINE"
11181                           fi
11182
11183                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
11184
11185 fi
11186
11187
11188           eval "$wx_cv_use_datepick"
11189           if test "x$cache" = xyes; then
11190             echo "wxUSE_DATEPICKCTRL=$wxUSE_DATEPICKCTRL" >> ${wx_arg_cache_file}.tmp
11191           fi
11192
11193           if test x"$enablestring" = xdisable; then
11194             if test $wxUSE_DATEPICKCTRL = yes; then
11195               result=no
11196             else
11197               result=yes
11198             fi
11199           else
11200             result=$wxUSE_DATEPICKCTRL
11201           fi
11202
11203           { echo "$as_me:$LINENO: result: $result" >&5
11204 echo "${ECHO_T}$result" >&6; }
11205
11206
11207           enablestring=
11208           defaultval=$wxUSE_ALL_FEATURES
11209           if test -z "$defaultval"; then
11210               if test x"$enablestring" = xdisable; then
11211                   defaultval=yes
11212               else
11213                   defaultval=no
11214               fi
11215           fi
11216
11217           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
11218 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
11219           # Check whether --enable-dirpicker was given.
11220 if test "${enable_dirpicker+set}" = set; then
11221   enableval=$enable_dirpicker;
11222                           if test "$enableval" = yes; then
11223                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
11224                           else
11225                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
11226                           fi
11227                           cache=yes
11228
11229 else
11230
11231                           LINE=`grep "^wxUSE_DIRPICKERCTRL=" ${wx_arg_cache_file}`
11232                           if test "x$LINE" != x ; then
11233                             eval "DEFAULT_$LINE"
11234                           fi
11235
11236                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
11237
11238 fi
11239
11240
11241           eval "$wx_cv_use_dirpicker"
11242           if test "x$cache" = xyes; then
11243             echo "wxUSE_DIRPICKERCTRL=$wxUSE_DIRPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11244           fi
11245
11246           if test x"$enablestring" = xdisable; then
11247             if test $wxUSE_DIRPICKERCTRL = yes; then
11248               result=no
11249             else
11250               result=yes
11251             fi
11252           else
11253             result=$wxUSE_DIRPICKERCTRL
11254           fi
11255
11256           { echo "$as_me:$LINENO: result: $result" >&5
11257 echo "${ECHO_T}$result" >&6; }
11258
11259
11260           enablestring=
11261           defaultval=$wxUSE_ALL_FEATURES
11262           if test -z "$defaultval"; then
11263               if test x"$enablestring" = xdisable; then
11264                   defaultval=yes
11265               else
11266                   defaultval=no
11267               fi
11268           fi
11269
11270           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
11271 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11272           # Check whether --enable-display was given.
11273 if test "${enable_display+set}" = set; then
11274   enableval=$enable_display;
11275                           if test "$enableval" = yes; then
11276                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11277                           else
11278                             wx_cv_use_display='wxUSE_DISPLAY=no'
11279                           fi
11280                           cache=yes
11281
11282 else
11283
11284                           LINE=`grep "^wxUSE_DISPLAY=" ${wx_arg_cache_file}`
11285                           if test "x$LINE" != x ; then
11286                             eval "DEFAULT_$LINE"
11287                           fi
11288
11289                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11290
11291 fi
11292
11293
11294           eval "$wx_cv_use_display"
11295           if test "x$cache" = xyes; then
11296             echo "wxUSE_DISPLAY=$wxUSE_DISPLAY" >> ${wx_arg_cache_file}.tmp
11297           fi
11298
11299           if test x"$enablestring" = xdisable; then
11300             if test $wxUSE_DISPLAY = yes; then
11301               result=no
11302             else
11303               result=yes
11304             fi
11305           else
11306             result=$wxUSE_DISPLAY
11307           fi
11308
11309           { echo "$as_me:$LINENO: result: $result" >&5
11310 echo "${ECHO_T}$result" >&6; }
11311
11312
11313           enablestring=
11314           defaultval=$wxUSE_ALL_FEATURES
11315           if test -z "$defaultval"; then
11316               if test x"$enablestring" = xdisable; then
11317                   defaultval=yes
11318               else
11319                   defaultval=no
11320               fi
11321           fi
11322
11323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
11324 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
11325           # Check whether --enable-detect_sm was given.
11326 if test "${enable_detect_sm+set}" = set; then
11327   enableval=$enable_detect_sm;
11328                           if test "$enableval" = yes; then
11329                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
11330                           else
11331                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
11332                           fi
11333                           cache=yes
11334
11335 else
11336
11337                           LINE=`grep "^wxUSE_DETECT_SM=" ${wx_arg_cache_file}`
11338                           if test "x$LINE" != x ; then
11339                             eval "DEFAULT_$LINE"
11340                           fi
11341
11342                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
11343
11344 fi
11345
11346
11347           eval "$wx_cv_use_detect_sm"
11348           if test "x$cache" = xyes; then
11349             echo "wxUSE_DETECT_SM=$wxUSE_DETECT_SM" >> ${wx_arg_cache_file}.tmp
11350           fi
11351
11352           if test x"$enablestring" = xdisable; then
11353             if test $wxUSE_DETECT_SM = yes; then
11354               result=no
11355             else
11356               result=yes
11357             fi
11358           else
11359             result=$wxUSE_DETECT_SM
11360           fi
11361
11362           { echo "$as_me:$LINENO: result: $result" >&5
11363 echo "${ECHO_T}$result" >&6; }
11364
11365
11366           enablestring=
11367           defaultval=$wxUSE_ALL_FEATURES
11368           if test -z "$defaultval"; then
11369               if test x"$enablestring" = xdisable; then
11370                   defaultval=yes
11371               else
11372                   defaultval=no
11373               fi
11374           fi
11375
11376           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11377 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11378           # Check whether --enable-editablebox was given.
11379 if test "${enable_editablebox+set}" = set; then
11380   enableval=$enable_editablebox;
11381                           if test "$enableval" = yes; then
11382                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11383                           else
11384                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11385                           fi
11386                           cache=yes
11387
11388 else
11389
11390                           LINE=`grep "^wxUSE_EDITABLELISTBOX=" ${wx_arg_cache_file}`
11391                           if test "x$LINE" != x ; then
11392                             eval "DEFAULT_$LINE"
11393                           fi
11394
11395                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11396
11397 fi
11398
11399
11400           eval "$wx_cv_use_editablebox"
11401           if test "x$cache" = xyes; then
11402             echo "wxUSE_EDITABLELISTBOX=$wxUSE_EDITABLELISTBOX" >> ${wx_arg_cache_file}.tmp
11403           fi
11404
11405           if test x"$enablestring" = xdisable; then
11406             if test $wxUSE_EDITABLELISTBOX = yes; then
11407               result=no
11408             else
11409               result=yes
11410             fi
11411           else
11412             result=$wxUSE_EDITABLELISTBOX
11413           fi
11414
11415           { echo "$as_me:$LINENO: result: $result" >&5
11416 echo "${ECHO_T}$result" >&6; }
11417
11418
11419           enablestring=
11420           defaultval=$wxUSE_ALL_FEATURES
11421           if test -z "$defaultval"; then
11422               if test x"$enablestring" = xdisable; then
11423                   defaultval=yes
11424               else
11425                   defaultval=no
11426               fi
11427           fi
11428
11429           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11430 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11431           # Check whether --enable-filepicker was given.
11432 if test "${enable_filepicker+set}" = set; then
11433   enableval=$enable_filepicker;
11434                           if test "$enableval" = yes; then
11435                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11436                           else
11437                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11438                           fi
11439                           cache=yes
11440
11441 else
11442
11443                           LINE=`grep "^wxUSE_FILEPICKERCTRL=" ${wx_arg_cache_file}`
11444                           if test "x$LINE" != x ; then
11445                             eval "DEFAULT_$LINE"
11446                           fi
11447
11448                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11449
11450 fi
11451
11452
11453           eval "$wx_cv_use_filepicker"
11454           if test "x$cache" = xyes; then
11455             echo "wxUSE_FILEPICKERCTRL=$wxUSE_FILEPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11456           fi
11457
11458           if test x"$enablestring" = xdisable; then
11459             if test $wxUSE_FILEPICKERCTRL = yes; then
11460               result=no
11461             else
11462               result=yes
11463             fi
11464           else
11465             result=$wxUSE_FILEPICKERCTRL
11466           fi
11467
11468           { echo "$as_me:$LINENO: result: $result" >&5
11469 echo "${ECHO_T}$result" >&6; }
11470
11471
11472           enablestring=
11473           defaultval=$wxUSE_ALL_FEATURES
11474           if test -z "$defaultval"; then
11475               if test x"$enablestring" = xdisable; then
11476                   defaultval=yes
11477               else
11478                   defaultval=no
11479               fi
11480           fi
11481
11482           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11483 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11484           # Check whether --enable-fontpicker was given.
11485 if test "${enable_fontpicker+set}" = set; then
11486   enableval=$enable_fontpicker;
11487                           if test "$enableval" = yes; then
11488                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11489                           else
11490                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11491                           fi
11492                           cache=yes
11493
11494 else
11495
11496                           LINE=`grep "^wxUSE_FONTPICKERCTRL=" ${wx_arg_cache_file}`
11497                           if test "x$LINE" != x ; then
11498                             eval "DEFAULT_$LINE"
11499                           fi
11500
11501                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11502
11503 fi
11504
11505
11506           eval "$wx_cv_use_fontpicker"
11507           if test "x$cache" = xyes; then
11508             echo "wxUSE_FONTPICKERCTRL=$wxUSE_FONTPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11509           fi
11510
11511           if test x"$enablestring" = xdisable; then
11512             if test $wxUSE_FONTPICKERCTRL = yes; then
11513               result=no
11514             else
11515               result=yes
11516             fi
11517           else
11518             result=$wxUSE_FONTPICKERCTRL
11519           fi
11520
11521           { echo "$as_me:$LINENO: result: $result" >&5
11522 echo "${ECHO_T}$result" >&6; }
11523
11524
11525           enablestring=
11526           defaultval=$wxUSE_ALL_FEATURES
11527           if test -z "$defaultval"; then
11528               if test x"$enablestring" = xdisable; then
11529                   defaultval=yes
11530               else
11531                   defaultval=no
11532               fi
11533           fi
11534
11535           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11536 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11537           # Check whether --enable-gauge was given.
11538 if test "${enable_gauge+set}" = set; then
11539   enableval=$enable_gauge;
11540                           if test "$enableval" = yes; then
11541                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11542                           else
11543                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11544                           fi
11545                           cache=yes
11546
11547 else
11548
11549                           LINE=`grep "^wxUSE_GAUGE=" ${wx_arg_cache_file}`
11550                           if test "x$LINE" != x ; then
11551                             eval "DEFAULT_$LINE"
11552                           fi
11553
11554                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11555
11556 fi
11557
11558
11559           eval "$wx_cv_use_gauge"
11560           if test "x$cache" = xyes; then
11561             echo "wxUSE_GAUGE=$wxUSE_GAUGE" >> ${wx_arg_cache_file}.tmp
11562           fi
11563
11564           if test x"$enablestring" = xdisable; then
11565             if test $wxUSE_GAUGE = yes; then
11566               result=no
11567             else
11568               result=yes
11569             fi
11570           else
11571             result=$wxUSE_GAUGE
11572           fi
11573
11574           { echo "$as_me:$LINENO: result: $result" >&5
11575 echo "${ECHO_T}$result" >&6; }
11576
11577
11578           enablestring=
11579           defaultval=$wxUSE_ALL_FEATURES
11580           if test -z "$defaultval"; then
11581               if test x"$enablestring" = xdisable; then
11582                   defaultval=yes
11583               else
11584                   defaultval=no
11585               fi
11586           fi
11587
11588           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11589 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11590           # Check whether --enable-grid was given.
11591 if test "${enable_grid+set}" = set; then
11592   enableval=$enable_grid;
11593                           if test "$enableval" = yes; then
11594                             wx_cv_use_grid='wxUSE_GRID=yes'
11595                           else
11596                             wx_cv_use_grid='wxUSE_GRID=no'
11597                           fi
11598                           cache=yes
11599
11600 else
11601
11602                           LINE=`grep "^wxUSE_GRID=" ${wx_arg_cache_file}`
11603                           if test "x$LINE" != x ; then
11604                             eval "DEFAULT_$LINE"
11605                           fi
11606
11607                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11608
11609 fi
11610
11611
11612           eval "$wx_cv_use_grid"
11613           if test "x$cache" = xyes; then
11614             echo "wxUSE_GRID=$wxUSE_GRID" >> ${wx_arg_cache_file}.tmp
11615           fi
11616
11617           if test x"$enablestring" = xdisable; then
11618             if test $wxUSE_GRID = yes; then
11619               result=no
11620             else
11621               result=yes
11622             fi
11623           else
11624             result=$wxUSE_GRID
11625           fi
11626
11627           { echo "$as_me:$LINENO: result: $result" >&5
11628 echo "${ECHO_T}$result" >&6; }
11629
11630
11631           enablestring=
11632           defaultval=$wxUSE_ALL_FEATURES
11633           if test -z "$defaultval"; then
11634               if test x"$enablestring" = xdisable; then
11635                   defaultval=yes
11636               else
11637                   defaultval=no
11638               fi
11639           fi
11640
11641           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
11642 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
11643           # Check whether --enable-dataviewctrl was given.
11644 if test "${enable_dataviewctrl+set}" = set; then
11645   enableval=$enable_dataviewctrl;
11646                           if test "$enableval" = yes; then
11647                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
11648                           else
11649                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
11650                           fi
11651                           cache=yes
11652
11653 else
11654
11655                           LINE=`grep "^wxUSE_DATAVIEWCTRL=" ${wx_arg_cache_file}`
11656                           if test "x$LINE" != x ; then
11657                             eval "DEFAULT_$LINE"
11658                           fi
11659
11660                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
11661
11662 fi
11663
11664
11665           eval "$wx_cv_use_dataviewctrl"
11666           if test "x$cache" = xyes; then
11667             echo "wxUSE_DATAVIEWCTRL=$wxUSE_DATAVIEWCTRL" >> ${wx_arg_cache_file}.tmp
11668           fi
11669
11670           if test x"$enablestring" = xdisable; then
11671             if test $wxUSE_DATAVIEWCTRL = yes; then
11672               result=no
11673             else
11674               result=yes
11675             fi
11676           else
11677             result=$wxUSE_DATAVIEWCTRL
11678           fi
11679
11680           { echo "$as_me:$LINENO: result: $result" >&5
11681 echo "${ECHO_T}$result" >&6; }
11682
11683
11684           enablestring=
11685           defaultval=$wxUSE_ALL_FEATURES
11686           if test -z "$defaultval"; then
11687               if test x"$enablestring" = xdisable; then
11688                   defaultval=yes
11689               else
11690                   defaultval=no
11691               fi
11692           fi
11693
11694           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11695 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11696           # Check whether --enable-hyperlink was given.
11697 if test "${enable_hyperlink+set}" = set; then
11698   enableval=$enable_hyperlink;
11699                           if test "$enableval" = yes; then
11700                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11701                           else
11702                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11703                           fi
11704                           cache=yes
11705
11706 else
11707
11708                           LINE=`grep "^wxUSE_HYPERLINKCTRL=" ${wx_arg_cache_file}`
11709                           if test "x$LINE" != x ; then
11710                             eval "DEFAULT_$LINE"
11711                           fi
11712
11713                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11714
11715 fi
11716
11717
11718           eval "$wx_cv_use_hyperlink"
11719           if test "x$cache" = xyes; then
11720             echo "wxUSE_HYPERLINKCTRL=$wxUSE_HYPERLINKCTRL" >> ${wx_arg_cache_file}.tmp
11721           fi
11722
11723           if test x"$enablestring" = xdisable; then
11724             if test $wxUSE_HYPERLINKCTRL = yes; then
11725               result=no
11726             else
11727               result=yes
11728             fi
11729           else
11730             result=$wxUSE_HYPERLINKCTRL
11731           fi
11732
11733           { echo "$as_me:$LINENO: result: $result" >&5
11734 echo "${ECHO_T}$result" >&6; }
11735
11736
11737           enablestring=
11738           defaultval=$wxUSE_ALL_FEATURES
11739           if test -z "$defaultval"; then
11740               if test x"$enablestring" = xdisable; then
11741                   defaultval=yes
11742               else
11743                   defaultval=no
11744               fi
11745           fi
11746
11747           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11748 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11749           # Check whether --enable-imaglist was given.
11750 if test "${enable_imaglist+set}" = set; then
11751   enableval=$enable_imaglist;
11752                           if test "$enableval" = yes; then
11753                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11754                           else
11755                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11756                           fi
11757                           cache=yes
11758
11759 else
11760
11761                           LINE=`grep "^wxUSE_IMAGLIST=" ${wx_arg_cache_file}`
11762                           if test "x$LINE" != x ; then
11763                             eval "DEFAULT_$LINE"
11764                           fi
11765
11766                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11767
11768 fi
11769
11770
11771           eval "$wx_cv_use_imaglist"
11772           if test "x$cache" = xyes; then
11773             echo "wxUSE_IMAGLIST=$wxUSE_IMAGLIST" >> ${wx_arg_cache_file}.tmp
11774           fi
11775
11776           if test x"$enablestring" = xdisable; then
11777             if test $wxUSE_IMAGLIST = yes; then
11778               result=no
11779             else
11780               result=yes
11781             fi
11782           else
11783             result=$wxUSE_IMAGLIST
11784           fi
11785
11786           { echo "$as_me:$LINENO: result: $result" >&5
11787 echo "${ECHO_T}$result" >&6; }
11788
11789
11790           enablestring=
11791           defaultval=$wxUSE_ALL_FEATURES
11792           if test -z "$defaultval"; then
11793               if test x"$enablestring" = xdisable; then
11794                   defaultval=yes
11795               else
11796                   defaultval=no
11797               fi
11798           fi
11799
11800           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
11801 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
11802           # Check whether --enable-listbook was given.
11803 if test "${enable_listbook+set}" = set; then
11804   enableval=$enable_listbook;
11805                           if test "$enableval" = yes; then
11806                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
11807                           else
11808                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
11809                           fi
11810                           cache=yes
11811
11812 else
11813
11814                           LINE=`grep "^wxUSE_LISTBOOK=" ${wx_arg_cache_file}`
11815                           if test "x$LINE" != x ; then
11816                             eval "DEFAULT_$LINE"
11817                           fi
11818
11819                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
11820
11821 fi
11822
11823
11824           eval "$wx_cv_use_listbook"
11825           if test "x$cache" = xyes; then
11826             echo "wxUSE_LISTBOOK=$wxUSE_LISTBOOK" >> ${wx_arg_cache_file}.tmp
11827           fi
11828
11829           if test x"$enablestring" = xdisable; then
11830             if test $wxUSE_LISTBOOK = yes; then
11831               result=no
11832             else
11833               result=yes
11834             fi
11835           else
11836             result=$wxUSE_LISTBOOK
11837           fi
11838
11839           { echo "$as_me:$LINENO: result: $result" >&5
11840 echo "${ECHO_T}$result" >&6; }
11841
11842
11843           enablestring=
11844           defaultval=$wxUSE_ALL_FEATURES
11845           if test -z "$defaultval"; then
11846               if test x"$enablestring" = xdisable; then
11847                   defaultval=yes
11848               else
11849                   defaultval=no
11850               fi
11851           fi
11852
11853           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
11854 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
11855           # Check whether --enable-listbox was given.
11856 if test "${enable_listbox+set}" = set; then
11857   enableval=$enable_listbox;
11858                           if test "$enableval" = yes; then
11859                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
11860                           else
11861                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
11862                           fi
11863                           cache=yes
11864
11865 else
11866
11867                           LINE=`grep "^wxUSE_LISTBOX=" ${wx_arg_cache_file}`
11868                           if test "x$LINE" != x ; then
11869                             eval "DEFAULT_$LINE"
11870                           fi
11871
11872                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
11873
11874 fi
11875
11876
11877           eval "$wx_cv_use_listbox"
11878           if test "x$cache" = xyes; then
11879             echo "wxUSE_LISTBOX=$wxUSE_LISTBOX" >> ${wx_arg_cache_file}.tmp
11880           fi
11881
11882           if test x"$enablestring" = xdisable; then
11883             if test $wxUSE_LISTBOX = yes; then
11884               result=no
11885             else
11886               result=yes
11887             fi
11888           else
11889             result=$wxUSE_LISTBOX
11890           fi
11891
11892           { echo "$as_me:$LINENO: result: $result" >&5
11893 echo "${ECHO_T}$result" >&6; }
11894
11895
11896           enablestring=
11897           defaultval=$wxUSE_ALL_FEATURES
11898           if test -z "$defaultval"; then
11899               if test x"$enablestring" = xdisable; then
11900                   defaultval=yes
11901               else
11902                   defaultval=no
11903               fi
11904           fi
11905
11906           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
11907 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
11908           # Check whether --enable-listctrl was given.
11909 if test "${enable_listctrl+set}" = set; then
11910   enableval=$enable_listctrl;
11911                           if test "$enableval" = yes; then
11912                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
11913                           else
11914                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
11915                           fi
11916                           cache=yes
11917
11918 else
11919
11920                           LINE=`grep "^wxUSE_LISTCTRL=" ${wx_arg_cache_file}`
11921                           if test "x$LINE" != x ; then
11922                             eval "DEFAULT_$LINE"
11923                           fi
11924
11925                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
11926
11927 fi
11928
11929
11930           eval "$wx_cv_use_listctrl"
11931           if test "x$cache" = xyes; then
11932             echo "wxUSE_LISTCTRL=$wxUSE_LISTCTRL" >> ${wx_arg_cache_file}.tmp
11933           fi
11934
11935           if test x"$enablestring" = xdisable; then
11936             if test $wxUSE_LISTCTRL = yes; then
11937               result=no
11938             else
11939               result=yes
11940             fi
11941           else
11942             result=$wxUSE_LISTCTRL
11943           fi
11944
11945           { echo "$as_me:$LINENO: result: $result" >&5
11946 echo "${ECHO_T}$result" >&6; }
11947
11948
11949           enablestring=
11950           defaultval=$wxUSE_ALL_FEATURES
11951           if test -z "$defaultval"; then
11952               if test x"$enablestring" = xdisable; then
11953                   defaultval=yes
11954               else
11955                   defaultval=no
11956               fi
11957           fi
11958
11959           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
11960 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
11961           # Check whether --enable-notebook was given.
11962 if test "${enable_notebook+set}" = set; then
11963   enableval=$enable_notebook;
11964                           if test "$enableval" = yes; then
11965                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
11966                           else
11967                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
11968                           fi
11969                           cache=yes
11970
11971 else
11972
11973                           LINE=`grep "^wxUSE_NOTEBOOK=" ${wx_arg_cache_file}`
11974                           if test "x$LINE" != x ; then
11975                             eval "DEFAULT_$LINE"
11976                           fi
11977
11978                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
11979
11980 fi
11981
11982
11983           eval "$wx_cv_use_notebook"
11984           if test "x$cache" = xyes; then
11985             echo "wxUSE_NOTEBOOK=$wxUSE_NOTEBOOK" >> ${wx_arg_cache_file}.tmp
11986           fi
11987
11988           if test x"$enablestring" = xdisable; then
11989             if test $wxUSE_NOTEBOOK = yes; then
11990               result=no
11991             else
11992               result=yes
11993             fi
11994           else
11995             result=$wxUSE_NOTEBOOK
11996           fi
11997
11998           { echo "$as_me:$LINENO: result: $result" >&5
11999 echo "${ECHO_T}$result" >&6; }
12000
12001
12002           enablestring=
12003           defaultval=$wxUSE_ALL_FEATURES
12004           if test -z "$defaultval"; then
12005               if test x"$enablestring" = xdisable; then
12006                   defaultval=yes
12007               else
12008                   defaultval=no
12009               fi
12010           fi
12011
12012           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
12013 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
12014           # Check whether --enable-odcombobox was given.
12015 if test "${enable_odcombobox+set}" = set; then
12016   enableval=$enable_odcombobox;
12017                           if test "$enableval" = yes; then
12018                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
12019                           else
12020                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
12021                           fi
12022                           cache=yes
12023
12024 else
12025
12026                           LINE=`grep "^wxUSE_ODCOMBOBOX=" ${wx_arg_cache_file}`
12027                           if test "x$LINE" != x ; then
12028                             eval "DEFAULT_$LINE"
12029                           fi
12030
12031                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
12032
12033 fi
12034
12035
12036           eval "$wx_cv_use_odcombobox"
12037           if test "x$cache" = xyes; then
12038             echo "wxUSE_ODCOMBOBOX=$wxUSE_ODCOMBOBOX" >> ${wx_arg_cache_file}.tmp
12039           fi
12040
12041           if test x"$enablestring" = xdisable; then
12042             if test $wxUSE_ODCOMBOBOX = yes; then
12043               result=no
12044             else
12045               result=yes
12046             fi
12047           else
12048             result=$wxUSE_ODCOMBOBOX
12049           fi
12050
12051           { echo "$as_me:$LINENO: result: $result" >&5
12052 echo "${ECHO_T}$result" >&6; }
12053
12054
12055           enablestring=
12056           defaultval=$wxUSE_ALL_FEATURES
12057           if test -z "$defaultval"; then
12058               if test x"$enablestring" = xdisable; then
12059                   defaultval=yes
12060               else
12061                   defaultval=no
12062               fi
12063           fi
12064
12065           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
12066 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
12067           # Check whether --enable-radiobox was given.
12068 if test "${enable_radiobox+set}" = set; then
12069   enableval=$enable_radiobox;
12070                           if test "$enableval" = yes; then
12071                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
12072                           else
12073                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
12074                           fi
12075                           cache=yes
12076
12077 else
12078
12079                           LINE=`grep "^wxUSE_RADIOBOX=" ${wx_arg_cache_file}`
12080                           if test "x$LINE" != x ; then
12081                             eval "DEFAULT_$LINE"
12082                           fi
12083
12084                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
12085
12086 fi
12087
12088
12089           eval "$wx_cv_use_radiobox"
12090           if test "x$cache" = xyes; then
12091             echo "wxUSE_RADIOBOX=$wxUSE_RADIOBOX" >> ${wx_arg_cache_file}.tmp
12092           fi
12093
12094           if test x"$enablestring" = xdisable; then
12095             if test $wxUSE_RADIOBOX = yes; then
12096               result=no
12097             else
12098               result=yes
12099             fi
12100           else
12101             result=$wxUSE_RADIOBOX
12102           fi
12103
12104           { echo "$as_me:$LINENO: result: $result" >&5
12105 echo "${ECHO_T}$result" >&6; }
12106
12107
12108           enablestring=
12109           defaultval=$wxUSE_ALL_FEATURES
12110           if test -z "$defaultval"; then
12111               if test x"$enablestring" = xdisable; then
12112                   defaultval=yes
12113               else
12114                   defaultval=no
12115               fi
12116           fi
12117
12118           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
12119 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
12120           # Check whether --enable-radiobtn was given.
12121 if test "${enable_radiobtn+set}" = set; then
12122   enableval=$enable_radiobtn;
12123                           if test "$enableval" = yes; then
12124                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
12125                           else
12126                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
12127                           fi
12128                           cache=yes
12129
12130 else
12131
12132                           LINE=`grep "^wxUSE_RADIOBTN=" ${wx_arg_cache_file}`
12133                           if test "x$LINE" != x ; then
12134                             eval "DEFAULT_$LINE"
12135                           fi
12136
12137                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
12138
12139 fi
12140
12141
12142           eval "$wx_cv_use_radiobtn"
12143           if test "x$cache" = xyes; then
12144             echo "wxUSE_RADIOBTN=$wxUSE_RADIOBTN" >> ${wx_arg_cache_file}.tmp
12145           fi
12146
12147           if test x"$enablestring" = xdisable; then
12148             if test $wxUSE_RADIOBTN = yes; then
12149               result=no
12150             else
12151               result=yes
12152             fi
12153           else
12154             result=$wxUSE_RADIOBTN
12155           fi
12156
12157           { echo "$as_me:$LINENO: result: $result" >&5
12158 echo "${ECHO_T}$result" >&6; }
12159
12160
12161           enablestring=
12162           defaultval=$wxUSE_ALL_FEATURES
12163           if test -z "$defaultval"; then
12164               if test x"$enablestring" = xdisable; then
12165                   defaultval=yes
12166               else
12167                   defaultval=no
12168               fi
12169           fi
12170
12171           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12172 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12173           # Check whether --enable-sash was given.
12174 if test "${enable_sash+set}" = set; then
12175   enableval=$enable_sash;
12176                           if test "$enableval" = yes; then
12177                             wx_cv_use_sash='wxUSE_SASH=yes'
12178                           else
12179                             wx_cv_use_sash='wxUSE_SASH=no'
12180                           fi
12181                           cache=yes
12182
12183 else
12184
12185                           LINE=`grep "^wxUSE_SASH=" ${wx_arg_cache_file}`
12186                           if test "x$LINE" != x ; then
12187                             eval "DEFAULT_$LINE"
12188                           fi
12189
12190                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12191
12192 fi
12193
12194
12195           eval "$wx_cv_use_sash"
12196           if test "x$cache" = xyes; then
12197             echo "wxUSE_SASH=$wxUSE_SASH" >> ${wx_arg_cache_file}.tmp
12198           fi
12199
12200           if test x"$enablestring" = xdisable; then
12201             if test $wxUSE_SASH = yes; then
12202               result=no
12203             else
12204               result=yes
12205             fi
12206           else
12207             result=$wxUSE_SASH
12208           fi
12209
12210           { echo "$as_me:$LINENO: result: $result" >&5
12211 echo "${ECHO_T}$result" >&6; }
12212
12213
12214           enablestring=
12215           defaultval=$wxUSE_ALL_FEATURES
12216           if test -z "$defaultval"; then
12217               if test x"$enablestring" = xdisable; then
12218                   defaultval=yes
12219               else
12220                   defaultval=no
12221               fi
12222           fi
12223
12224           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12225 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12226           # Check whether --enable-scrollbar was given.
12227 if test "${enable_scrollbar+set}" = set; then
12228   enableval=$enable_scrollbar;
12229                           if test "$enableval" = yes; then
12230                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12231                           else
12232                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12233                           fi
12234                           cache=yes
12235
12236 else
12237
12238                           LINE=`grep "^wxUSE_SCROLLBAR=" ${wx_arg_cache_file}`
12239                           if test "x$LINE" != x ; then
12240                             eval "DEFAULT_$LINE"
12241                           fi
12242
12243                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12244
12245 fi
12246
12247
12248           eval "$wx_cv_use_scrollbar"
12249           if test "x$cache" = xyes; then
12250             echo "wxUSE_SCROLLBAR=$wxUSE_SCROLLBAR" >> ${wx_arg_cache_file}.tmp
12251           fi
12252
12253           if test x"$enablestring" = xdisable; then
12254             if test $wxUSE_SCROLLBAR = yes; then
12255               result=no
12256             else
12257               result=yes
12258             fi
12259           else
12260             result=$wxUSE_SCROLLBAR
12261           fi
12262
12263           { echo "$as_me:$LINENO: result: $result" >&5
12264 echo "${ECHO_T}$result" >&6; }
12265
12266
12267           enablestring=
12268           defaultval=$wxUSE_ALL_FEATURES
12269           if test -z "$defaultval"; then
12270               if test x"$enablestring" = xdisable; then
12271                   defaultval=yes
12272               else
12273                   defaultval=no
12274               fi
12275           fi
12276
12277           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12278 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12279           # Check whether --enable-searchctrl was given.
12280 if test "${enable_searchctrl+set}" = set; then
12281   enableval=$enable_searchctrl;
12282                           if test "$enableval" = yes; then
12283                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12284                           else
12285                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12286                           fi
12287                           cache=yes
12288
12289 else
12290
12291                           LINE=`grep "^wxUSE_SEARCHCTRL=" ${wx_arg_cache_file}`
12292                           if test "x$LINE" != x ; then
12293                             eval "DEFAULT_$LINE"
12294                           fi
12295
12296                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12297
12298 fi
12299
12300
12301           eval "$wx_cv_use_searchctrl"
12302           if test "x$cache" = xyes; then
12303             echo "wxUSE_SEARCHCTRL=$wxUSE_SEARCHCTRL" >> ${wx_arg_cache_file}.tmp
12304           fi
12305
12306           if test x"$enablestring" = xdisable; then
12307             if test $wxUSE_SEARCHCTRL = yes; then
12308               result=no
12309             else
12310               result=yes
12311             fi
12312           else
12313             result=$wxUSE_SEARCHCTRL
12314           fi
12315
12316           { echo "$as_me:$LINENO: result: $result" >&5
12317 echo "${ECHO_T}$result" >&6; }
12318
12319
12320           enablestring=
12321           defaultval=$wxUSE_ALL_FEATURES
12322           if test -z "$defaultval"; then
12323               if test x"$enablestring" = xdisable; then
12324                   defaultval=yes
12325               else
12326                   defaultval=no
12327               fi
12328           fi
12329
12330           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12331 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12332           # Check whether --enable-slider was given.
12333 if test "${enable_slider+set}" = set; then
12334   enableval=$enable_slider;
12335                           if test "$enableval" = yes; then
12336                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12337                           else
12338                             wx_cv_use_slider='wxUSE_SLIDER=no'
12339                           fi
12340                           cache=yes
12341
12342 else
12343
12344                           LINE=`grep "^wxUSE_SLIDER=" ${wx_arg_cache_file}`
12345                           if test "x$LINE" != x ; then
12346                             eval "DEFAULT_$LINE"
12347                           fi
12348
12349                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12350
12351 fi
12352
12353
12354           eval "$wx_cv_use_slider"
12355           if test "x$cache" = xyes; then
12356             echo "wxUSE_SLIDER=$wxUSE_SLIDER" >> ${wx_arg_cache_file}.tmp
12357           fi
12358
12359           if test x"$enablestring" = xdisable; then
12360             if test $wxUSE_SLIDER = yes; then
12361               result=no
12362             else
12363               result=yes
12364             fi
12365           else
12366             result=$wxUSE_SLIDER
12367           fi
12368
12369           { echo "$as_me:$LINENO: result: $result" >&5
12370 echo "${ECHO_T}$result" >&6; }
12371
12372
12373           enablestring=
12374           defaultval=$wxUSE_ALL_FEATURES
12375           if test -z "$defaultval"; then
12376               if test x"$enablestring" = xdisable; then
12377                   defaultval=yes
12378               else
12379                   defaultval=no
12380               fi
12381           fi
12382
12383           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12384 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12385           # Check whether --enable-spinbtn was given.
12386 if test "${enable_spinbtn+set}" = set; then
12387   enableval=$enable_spinbtn;
12388                           if test "$enableval" = yes; then
12389                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12390                           else
12391                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12392                           fi
12393                           cache=yes
12394
12395 else
12396
12397                           LINE=`grep "^wxUSE_SPINBTN=" ${wx_arg_cache_file}`
12398                           if test "x$LINE" != x ; then
12399                             eval "DEFAULT_$LINE"
12400                           fi
12401
12402                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12403
12404 fi
12405
12406
12407           eval "$wx_cv_use_spinbtn"
12408           if test "x$cache" = xyes; then
12409             echo "wxUSE_SPINBTN=$wxUSE_SPINBTN" >> ${wx_arg_cache_file}.tmp
12410           fi
12411
12412           if test x"$enablestring" = xdisable; then
12413             if test $wxUSE_SPINBTN = yes; then
12414               result=no
12415             else
12416               result=yes
12417             fi
12418           else
12419             result=$wxUSE_SPINBTN
12420           fi
12421
12422           { echo "$as_me:$LINENO: result: $result" >&5
12423 echo "${ECHO_T}$result" >&6; }
12424
12425
12426           enablestring=
12427           defaultval=$wxUSE_ALL_FEATURES
12428           if test -z "$defaultval"; then
12429               if test x"$enablestring" = xdisable; then
12430                   defaultval=yes
12431               else
12432                   defaultval=no
12433               fi
12434           fi
12435
12436           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12437 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12438           # Check whether --enable-spinctrl was given.
12439 if test "${enable_spinctrl+set}" = set; then
12440   enableval=$enable_spinctrl;
12441                           if test "$enableval" = yes; then
12442                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12443                           else
12444                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12445                           fi
12446                           cache=yes
12447
12448 else
12449
12450                           LINE=`grep "^wxUSE_SPINCTRL=" ${wx_arg_cache_file}`
12451                           if test "x$LINE" != x ; then
12452                             eval "DEFAULT_$LINE"
12453                           fi
12454
12455                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12456
12457 fi
12458
12459
12460           eval "$wx_cv_use_spinctrl"
12461           if test "x$cache" = xyes; then
12462             echo "wxUSE_SPINCTRL=$wxUSE_SPINCTRL" >> ${wx_arg_cache_file}.tmp
12463           fi
12464
12465           if test x"$enablestring" = xdisable; then
12466             if test $wxUSE_SPINCTRL = yes; then
12467               result=no
12468             else
12469               result=yes
12470             fi
12471           else
12472             result=$wxUSE_SPINCTRL
12473           fi
12474
12475           { echo "$as_me:$LINENO: result: $result" >&5
12476 echo "${ECHO_T}$result" >&6; }
12477
12478
12479           enablestring=
12480           defaultval=$wxUSE_ALL_FEATURES
12481           if test -z "$defaultval"; then
12482               if test x"$enablestring" = xdisable; then
12483                   defaultval=yes
12484               else
12485                   defaultval=no
12486               fi
12487           fi
12488
12489           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12490 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12491           # Check whether --enable-splitter was given.
12492 if test "${enable_splitter+set}" = set; then
12493   enableval=$enable_splitter;
12494                           if test "$enableval" = yes; then
12495                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12496                           else
12497                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12498                           fi
12499                           cache=yes
12500
12501 else
12502
12503                           LINE=`grep "^wxUSE_SPLITTER=" ${wx_arg_cache_file}`
12504                           if test "x$LINE" != x ; then
12505                             eval "DEFAULT_$LINE"
12506                           fi
12507
12508                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12509
12510 fi
12511
12512
12513           eval "$wx_cv_use_splitter"
12514           if test "x$cache" = xyes; then
12515             echo "wxUSE_SPLITTER=$wxUSE_SPLITTER" >> ${wx_arg_cache_file}.tmp
12516           fi
12517
12518           if test x"$enablestring" = xdisable; then
12519             if test $wxUSE_SPLITTER = yes; then
12520               result=no
12521             else
12522               result=yes
12523             fi
12524           else
12525             result=$wxUSE_SPLITTER
12526           fi
12527
12528           { echo "$as_me:$LINENO: result: $result" >&5
12529 echo "${ECHO_T}$result" >&6; }
12530
12531
12532           enablestring=
12533           defaultval=$wxUSE_ALL_FEATURES
12534           if test -z "$defaultval"; then
12535               if test x"$enablestring" = xdisable; then
12536                   defaultval=yes
12537               else
12538                   defaultval=no
12539               fi
12540           fi
12541
12542           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12543 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12544           # Check whether --enable-statbmp was given.
12545 if test "${enable_statbmp+set}" = set; then
12546   enableval=$enable_statbmp;
12547                           if test "$enableval" = yes; then
12548                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12549                           else
12550                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12551                           fi
12552                           cache=yes
12553
12554 else
12555
12556                           LINE=`grep "^wxUSE_STATBMP=" ${wx_arg_cache_file}`
12557                           if test "x$LINE" != x ; then
12558                             eval "DEFAULT_$LINE"
12559                           fi
12560
12561                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12562
12563 fi
12564
12565
12566           eval "$wx_cv_use_statbmp"
12567           if test "x$cache" = xyes; then
12568             echo "wxUSE_STATBMP=$wxUSE_STATBMP" >> ${wx_arg_cache_file}.tmp
12569           fi
12570
12571           if test x"$enablestring" = xdisable; then
12572             if test $wxUSE_STATBMP = yes; then
12573               result=no
12574             else
12575               result=yes
12576             fi
12577           else
12578             result=$wxUSE_STATBMP
12579           fi
12580
12581           { echo "$as_me:$LINENO: result: $result" >&5
12582 echo "${ECHO_T}$result" >&6; }
12583
12584
12585           enablestring=
12586           defaultval=$wxUSE_ALL_FEATURES
12587           if test -z "$defaultval"; then
12588               if test x"$enablestring" = xdisable; then
12589                   defaultval=yes
12590               else
12591                   defaultval=no
12592               fi
12593           fi
12594
12595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12596 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12597           # Check whether --enable-statbox was given.
12598 if test "${enable_statbox+set}" = set; then
12599   enableval=$enable_statbox;
12600                           if test "$enableval" = yes; then
12601                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12602                           else
12603                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12604                           fi
12605                           cache=yes
12606
12607 else
12608
12609                           LINE=`grep "^wxUSE_STATBOX=" ${wx_arg_cache_file}`
12610                           if test "x$LINE" != x ; then
12611                             eval "DEFAULT_$LINE"
12612                           fi
12613
12614                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12615
12616 fi
12617
12618
12619           eval "$wx_cv_use_statbox"
12620           if test "x$cache" = xyes; then
12621             echo "wxUSE_STATBOX=$wxUSE_STATBOX" >> ${wx_arg_cache_file}.tmp
12622           fi
12623
12624           if test x"$enablestring" = xdisable; then
12625             if test $wxUSE_STATBOX = yes; then
12626               result=no
12627             else
12628               result=yes
12629             fi
12630           else
12631             result=$wxUSE_STATBOX
12632           fi
12633
12634           { echo "$as_me:$LINENO: result: $result" >&5
12635 echo "${ECHO_T}$result" >&6; }
12636
12637
12638           enablestring=
12639           defaultval=$wxUSE_ALL_FEATURES
12640           if test -z "$defaultval"; then
12641               if test x"$enablestring" = xdisable; then
12642                   defaultval=yes
12643               else
12644                   defaultval=no
12645               fi
12646           fi
12647
12648           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12649 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12650           # Check whether --enable-statline was given.
12651 if test "${enable_statline+set}" = set; then
12652   enableval=$enable_statline;
12653                           if test "$enableval" = yes; then
12654                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12655                           else
12656                             wx_cv_use_statline='wxUSE_STATLINE=no'
12657                           fi
12658                           cache=yes
12659
12660 else
12661
12662                           LINE=`grep "^wxUSE_STATLINE=" ${wx_arg_cache_file}`
12663                           if test "x$LINE" != x ; then
12664                             eval "DEFAULT_$LINE"
12665                           fi
12666
12667                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12668
12669 fi
12670
12671
12672           eval "$wx_cv_use_statline"
12673           if test "x$cache" = xyes; then
12674             echo "wxUSE_STATLINE=$wxUSE_STATLINE" >> ${wx_arg_cache_file}.tmp
12675           fi
12676
12677           if test x"$enablestring" = xdisable; then
12678             if test $wxUSE_STATLINE = yes; then
12679               result=no
12680             else
12681               result=yes
12682             fi
12683           else
12684             result=$wxUSE_STATLINE
12685           fi
12686
12687           { echo "$as_me:$LINENO: result: $result" >&5
12688 echo "${ECHO_T}$result" >&6; }
12689
12690
12691           enablestring=
12692           defaultval=$wxUSE_ALL_FEATURES
12693           if test -z "$defaultval"; then
12694               if test x"$enablestring" = xdisable; then
12695                   defaultval=yes
12696               else
12697                   defaultval=no
12698               fi
12699           fi
12700
12701           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12702 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12703           # Check whether --enable-stattext was given.
12704 if test "${enable_stattext+set}" = set; then
12705   enableval=$enable_stattext;
12706                           if test "$enableval" = yes; then
12707                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12708                           else
12709                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12710                           fi
12711                           cache=yes
12712
12713 else
12714
12715                           LINE=`grep "^wxUSE_STATTEXT=" ${wx_arg_cache_file}`
12716                           if test "x$LINE" != x ; then
12717                             eval "DEFAULT_$LINE"
12718                           fi
12719
12720                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12721
12722 fi
12723
12724
12725           eval "$wx_cv_use_stattext"
12726           if test "x$cache" = xyes; then
12727             echo "wxUSE_STATTEXT=$wxUSE_STATTEXT" >> ${wx_arg_cache_file}.tmp
12728           fi
12729
12730           if test x"$enablestring" = xdisable; then
12731             if test $wxUSE_STATTEXT = yes; then
12732               result=no
12733             else
12734               result=yes
12735             fi
12736           else
12737             result=$wxUSE_STATTEXT
12738           fi
12739
12740           { echo "$as_me:$LINENO: result: $result" >&5
12741 echo "${ECHO_T}$result" >&6; }
12742
12743
12744           enablestring=
12745           defaultval=$wxUSE_ALL_FEATURES
12746           if test -z "$defaultval"; then
12747               if test x"$enablestring" = xdisable; then
12748                   defaultval=yes
12749               else
12750                   defaultval=no
12751               fi
12752           fi
12753
12754           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12755 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12756           # Check whether --enable-statusbar was given.
12757 if test "${enable_statusbar+set}" = set; then
12758   enableval=$enable_statusbar;
12759                           if test "$enableval" = yes; then
12760                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
12761                           else
12762                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
12763                           fi
12764                           cache=yes
12765
12766 else
12767
12768                           LINE=`grep "^wxUSE_STATUSBAR=" ${wx_arg_cache_file}`
12769                           if test "x$LINE" != x ; then
12770                             eval "DEFAULT_$LINE"
12771                           fi
12772
12773                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
12774
12775 fi
12776
12777
12778           eval "$wx_cv_use_statusbar"
12779           if test "x$cache" = xyes; then
12780             echo "wxUSE_STATUSBAR=$wxUSE_STATUSBAR" >> ${wx_arg_cache_file}.tmp
12781           fi
12782
12783           if test x"$enablestring" = xdisable; then
12784             if test $wxUSE_STATUSBAR = yes; then
12785               result=no
12786             else
12787               result=yes
12788             fi
12789           else
12790             result=$wxUSE_STATUSBAR
12791           fi
12792
12793           { echo "$as_me:$LINENO: result: $result" >&5
12794 echo "${ECHO_T}$result" >&6; }
12795
12796
12797           enablestring=
12798           defaultval=$wxUSE_ALL_FEATURES
12799           if test -z "$defaultval"; then
12800               if test x"$enablestring" = xdisable; then
12801                   defaultval=yes
12802               else
12803                   defaultval=no
12804               fi
12805           fi
12806
12807           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
12808 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
12809           # Check whether --enable-tabdialog was given.
12810 if test "${enable_tabdialog+set}" = set; then
12811   enableval=$enable_tabdialog;
12812                           if test "$enableval" = yes; then
12813                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
12814                           else
12815                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
12816                           fi
12817                           cache=yes
12818
12819 else
12820
12821                           LINE=`grep "^wxUSE_TAB_DIALOG=" ${wx_arg_cache_file}`
12822                           if test "x$LINE" != x ; then
12823                             eval "DEFAULT_$LINE"
12824                           fi
12825
12826                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
12827
12828 fi
12829
12830
12831           eval "$wx_cv_use_tabdialog"
12832           if test "x$cache" = xyes; then
12833             echo "wxUSE_TAB_DIALOG=$wxUSE_TAB_DIALOG" >> ${wx_arg_cache_file}.tmp
12834           fi
12835
12836           if test x"$enablestring" = xdisable; then
12837             if test $wxUSE_TAB_DIALOG = yes; then
12838               result=no
12839             else
12840               result=yes
12841             fi
12842           else
12843             result=$wxUSE_TAB_DIALOG
12844           fi
12845
12846           { echo "$as_me:$LINENO: result: $result" >&5
12847 echo "${ECHO_T}$result" >&6; }
12848
12849
12850           enablestring=
12851           defaultval=$wxUSE_ALL_FEATURES
12852           if test -z "$defaultval"; then
12853               if test x"$enablestring" = xdisable; then
12854                   defaultval=yes
12855               else
12856                   defaultval=no
12857               fi
12858           fi
12859
12860           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
12861 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
12862           # Check whether --enable-taskbaricon was given.
12863 if test "${enable_taskbaricon+set}" = set; then
12864   enableval=$enable_taskbaricon;
12865                           if test "$enableval" = yes; then
12866                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
12867                           else
12868                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
12869                           fi
12870                           cache=yes
12871
12872 else
12873
12874                           LINE=`grep "^wxUSE_TASKBARICON=" ${wx_arg_cache_file}`
12875                           if test "x$LINE" != x ; then
12876                             eval "DEFAULT_$LINE"
12877                           fi
12878
12879                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
12880
12881 fi
12882
12883
12884           eval "$wx_cv_use_taskbaricon"
12885           if test "x$cache" = xyes; then
12886             echo "wxUSE_TASKBARICON=$wxUSE_TASKBARICON" >> ${wx_arg_cache_file}.tmp
12887           fi
12888
12889           if test x"$enablestring" = xdisable; then
12890             if test $wxUSE_TASKBARICON = yes; then
12891               result=no
12892             else
12893               result=yes
12894             fi
12895           else
12896             result=$wxUSE_TASKBARICON
12897           fi
12898
12899           { echo "$as_me:$LINENO: result: $result" >&5
12900 echo "${ECHO_T}$result" >&6; }
12901
12902
12903           enablestring=
12904           defaultval=$wxUSE_ALL_FEATURES
12905           if test -z "$defaultval"; then
12906               if test x"$enablestring" = xdisable; then
12907                   defaultval=yes
12908               else
12909                   defaultval=no
12910               fi
12911           fi
12912
12913           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
12914 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
12915           # Check whether --enable-textctrl was given.
12916 if test "${enable_textctrl+set}" = set; then
12917   enableval=$enable_textctrl;
12918                           if test "$enableval" = yes; then
12919                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
12920                           else
12921                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
12922                           fi
12923                           cache=yes
12924
12925 else
12926
12927                           LINE=`grep "^wxUSE_TEXTCTRL=" ${wx_arg_cache_file}`
12928                           if test "x$LINE" != x ; then
12929                             eval "DEFAULT_$LINE"
12930                           fi
12931
12932                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
12933
12934 fi
12935
12936
12937           eval "$wx_cv_use_textctrl"
12938           if test "x$cache" = xyes; then
12939             echo "wxUSE_TEXTCTRL=$wxUSE_TEXTCTRL" >> ${wx_arg_cache_file}.tmp
12940           fi
12941
12942           if test x"$enablestring" = xdisable; then
12943             if test $wxUSE_TEXTCTRL = yes; then
12944               result=no
12945             else
12946               result=yes
12947             fi
12948           else
12949             result=$wxUSE_TEXTCTRL
12950           fi
12951
12952           { echo "$as_me:$LINENO: result: $result" >&5
12953 echo "${ECHO_T}$result" >&6; }
12954
12955
12956           enablestring=
12957           defaultval=$wxUSE_ALL_FEATURES
12958           if test -z "$defaultval"; then
12959               if test x"$enablestring" = xdisable; then
12960                   defaultval=yes
12961               else
12962                   defaultval=no
12963               fi
12964           fi
12965
12966           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
12967 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
12968           # Check whether --enable-togglebtn was given.
12969 if test "${enable_togglebtn+set}" = set; then
12970   enableval=$enable_togglebtn;
12971                           if test "$enableval" = yes; then
12972                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
12973                           else
12974                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
12975                           fi
12976                           cache=yes
12977
12978 else
12979
12980                           LINE=`grep "^wxUSE_TOGGLEBTN=" ${wx_arg_cache_file}`
12981                           if test "x$LINE" != x ; then
12982                             eval "DEFAULT_$LINE"
12983                           fi
12984
12985                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
12986
12987 fi
12988
12989
12990           eval "$wx_cv_use_togglebtn"
12991           if test "x$cache" = xyes; then
12992             echo "wxUSE_TOGGLEBTN=$wxUSE_TOGGLEBTN" >> ${wx_arg_cache_file}.tmp
12993           fi
12994
12995           if test x"$enablestring" = xdisable; then
12996             if test $wxUSE_TOGGLEBTN = yes; then
12997               result=no
12998             else
12999               result=yes
13000             fi
13001           else
13002             result=$wxUSE_TOGGLEBTN
13003           fi
13004
13005           { echo "$as_me:$LINENO: result: $result" >&5
13006 echo "${ECHO_T}$result" >&6; }
13007
13008
13009           enablestring=
13010           defaultval=$wxUSE_ALL_FEATURES
13011           if test -z "$defaultval"; then
13012               if test x"$enablestring" = xdisable; then
13013                   defaultval=yes
13014               else
13015                   defaultval=no
13016               fi
13017           fi
13018
13019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
13020 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
13021           # Check whether --enable-toolbar was given.
13022 if test "${enable_toolbar+set}" = set; then
13023   enableval=$enable_toolbar;
13024                           if test "$enableval" = yes; then
13025                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
13026                           else
13027                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
13028                           fi
13029                           cache=yes
13030
13031 else
13032
13033                           LINE=`grep "^wxUSE_TOOLBAR=" ${wx_arg_cache_file}`
13034                           if test "x$LINE" != x ; then
13035                             eval "DEFAULT_$LINE"
13036                           fi
13037
13038                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
13039
13040 fi
13041
13042
13043           eval "$wx_cv_use_toolbar"
13044           if test "x$cache" = xyes; then
13045             echo "wxUSE_TOOLBAR=$wxUSE_TOOLBAR" >> ${wx_arg_cache_file}.tmp
13046           fi
13047
13048           if test x"$enablestring" = xdisable; then
13049             if test $wxUSE_TOOLBAR = yes; then
13050               result=no
13051             else
13052               result=yes
13053             fi
13054           else
13055             result=$wxUSE_TOOLBAR
13056           fi
13057
13058           { echo "$as_me:$LINENO: result: $result" >&5
13059 echo "${ECHO_T}$result" >&6; }
13060
13061
13062           enablestring=
13063           defaultval=$wxUSE_ALL_FEATURES
13064           if test -z "$defaultval"; then
13065               if test x"$enablestring" = xdisable; then
13066                   defaultval=yes
13067               else
13068                   defaultval=no
13069               fi
13070           fi
13071
13072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
13073 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
13074           # Check whether --enable-tbarnative was given.
13075 if test "${enable_tbarnative+set}" = set; then
13076   enableval=$enable_tbarnative;
13077                           if test "$enableval" = yes; then
13078                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
13079                           else
13080                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
13081                           fi
13082                           cache=yes
13083
13084 else
13085
13086                           LINE=`grep "^wxUSE_TOOLBAR_NATIVE=" ${wx_arg_cache_file}`
13087                           if test "x$LINE" != x ; then
13088                             eval "DEFAULT_$LINE"
13089                           fi
13090
13091                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
13092
13093 fi
13094
13095
13096           eval "$wx_cv_use_tbarnative"
13097           if test "x$cache" = xyes; then
13098             echo "wxUSE_TOOLBAR_NATIVE=$wxUSE_TOOLBAR_NATIVE" >> ${wx_arg_cache_file}.tmp
13099           fi
13100
13101           if test x"$enablestring" = xdisable; then
13102             if test $wxUSE_TOOLBAR_NATIVE = yes; then
13103               result=no
13104             else
13105               result=yes
13106             fi
13107           else
13108             result=$wxUSE_TOOLBAR_NATIVE
13109           fi
13110
13111           { echo "$as_me:$LINENO: result: $result" >&5
13112 echo "${ECHO_T}$result" >&6; }
13113
13114
13115           enablestring=
13116           defaultval=$wxUSE_ALL_FEATURES
13117           if test -z "$defaultval"; then
13118               if test x"$enablestring" = xdisable; then
13119                   defaultval=yes
13120               else
13121                   defaultval=no
13122               fi
13123           fi
13124
13125           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
13126 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
13127           # Check whether --enable-treebook was given.
13128 if test "${enable_treebook+set}" = set; then
13129   enableval=$enable_treebook;
13130                           if test "$enableval" = yes; then
13131                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
13132                           else
13133                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
13134                           fi
13135                           cache=yes
13136
13137 else
13138
13139                           LINE=`grep "^wxUSE_TREEBOOK=" ${wx_arg_cache_file}`
13140                           if test "x$LINE" != x ; then
13141                             eval "DEFAULT_$LINE"
13142                           fi
13143
13144                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
13145
13146 fi
13147
13148
13149           eval "$wx_cv_use_treebook"
13150           if test "x$cache" = xyes; then
13151             echo "wxUSE_TREEBOOK=$wxUSE_TREEBOOK" >> ${wx_arg_cache_file}.tmp
13152           fi
13153
13154           if test x"$enablestring" = xdisable; then
13155             if test $wxUSE_TREEBOOK = yes; then
13156               result=no
13157             else
13158               result=yes
13159             fi
13160           else
13161             result=$wxUSE_TREEBOOK
13162           fi
13163
13164           { echo "$as_me:$LINENO: result: $result" >&5
13165 echo "${ECHO_T}$result" >&6; }
13166
13167
13168           enablestring=
13169           defaultval=$wxUSE_ALL_FEATURES
13170           if test -z "$defaultval"; then
13171               if test x"$enablestring" = xdisable; then
13172                   defaultval=yes
13173               else
13174                   defaultval=no
13175               fi
13176           fi
13177
13178           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
13179 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
13180           # Check whether --enable-toolbook was given.
13181 if test "${enable_toolbook+set}" = set; then
13182   enableval=$enable_toolbook;
13183                           if test "$enableval" = yes; then
13184                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
13185                           else
13186                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
13187                           fi
13188                           cache=yes
13189
13190 else
13191
13192                           LINE=`grep "^wxUSE_TOOLBOOK=" ${wx_arg_cache_file}`
13193                           if test "x$LINE" != x ; then
13194                             eval "DEFAULT_$LINE"
13195                           fi
13196
13197                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
13198
13199 fi
13200
13201
13202           eval "$wx_cv_use_toolbook"
13203           if test "x$cache" = xyes; then
13204             echo "wxUSE_TOOLBOOK=$wxUSE_TOOLBOOK" >> ${wx_arg_cache_file}.tmp
13205           fi
13206
13207           if test x"$enablestring" = xdisable; then
13208             if test $wxUSE_TOOLBOOK = yes; then
13209               result=no
13210             else
13211               result=yes
13212             fi
13213           else
13214             result=$wxUSE_TOOLBOOK
13215           fi
13216
13217           { echo "$as_me:$LINENO: result: $result" >&5
13218 echo "${ECHO_T}$result" >&6; }
13219
13220
13221           enablestring=
13222           defaultval=$wxUSE_ALL_FEATURES
13223           if test -z "$defaultval"; then
13224               if test x"$enablestring" = xdisable; then
13225                   defaultval=yes
13226               else
13227                   defaultval=no
13228               fi
13229           fi
13230
13231           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
13232 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
13233           # Check whether --enable-treectrl was given.
13234 if test "${enable_treectrl+set}" = set; then
13235   enableval=$enable_treectrl;
13236                           if test "$enableval" = yes; then
13237                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
13238                           else
13239                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
13240                           fi
13241                           cache=yes
13242
13243 else
13244
13245                           LINE=`grep "^wxUSE_TREECTRL=" ${wx_arg_cache_file}`
13246                           if test "x$LINE" != x ; then
13247                             eval "DEFAULT_$LINE"
13248                           fi
13249
13250                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
13251
13252 fi
13253
13254
13255           eval "$wx_cv_use_treectrl"
13256           if test "x$cache" = xyes; then
13257             echo "wxUSE_TREECTRL=$wxUSE_TREECTRL" >> ${wx_arg_cache_file}.tmp
13258           fi
13259
13260           if test x"$enablestring" = xdisable; then
13261             if test $wxUSE_TREECTRL = yes; then
13262               result=no
13263             else
13264               result=yes
13265             fi
13266           else
13267             result=$wxUSE_TREECTRL
13268           fi
13269
13270           { echo "$as_me:$LINENO: result: $result" >&5
13271 echo "${ECHO_T}$result" >&6; }
13272
13273
13274           enablestring=
13275           defaultval=$wxUSE_ALL_FEATURES
13276           if test -z "$defaultval"; then
13277               if test x"$enablestring" = xdisable; then
13278                   defaultval=yes
13279               else
13280                   defaultval=no
13281               fi
13282           fi
13283
13284           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
13285 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
13286           # Check whether --enable-tipwindow was given.
13287 if test "${enable_tipwindow+set}" = set; then
13288   enableval=$enable_tipwindow;
13289                           if test "$enableval" = yes; then
13290                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
13291                           else
13292                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
13293                           fi
13294                           cache=yes
13295
13296 else
13297
13298                           LINE=`grep "^wxUSE_TIPWINDOW=" ${wx_arg_cache_file}`
13299                           if test "x$LINE" != x ; then
13300                             eval "DEFAULT_$LINE"
13301                           fi
13302
13303                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
13304
13305 fi
13306
13307
13308           eval "$wx_cv_use_tipwindow"
13309           if test "x$cache" = xyes; then
13310             echo "wxUSE_TIPWINDOW=$wxUSE_TIPWINDOW" >> ${wx_arg_cache_file}.tmp
13311           fi
13312
13313           if test x"$enablestring" = xdisable; then
13314             if test $wxUSE_TIPWINDOW = yes; then
13315               result=no
13316             else
13317               result=yes
13318             fi
13319           else
13320             result=$wxUSE_TIPWINDOW
13321           fi
13322
13323           { echo "$as_me:$LINENO: result: $result" >&5
13324 echo "${ECHO_T}$result" >&6; }
13325
13326
13327           enablestring=
13328           defaultval=$wxUSE_ALL_FEATURES
13329           if test -z "$defaultval"; then
13330               if test x"$enablestring" = xdisable; then
13331                   defaultval=yes
13332               else
13333                   defaultval=no
13334               fi
13335           fi
13336
13337           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
13338 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
13339           # Check whether --enable-popupwin was given.
13340 if test "${enable_popupwin+set}" = set; then
13341   enableval=$enable_popupwin;
13342                           if test "$enableval" = yes; then
13343                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
13344                           else
13345                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
13346                           fi
13347                           cache=yes
13348
13349 else
13350
13351                           LINE=`grep "^wxUSE_POPUPWIN=" ${wx_arg_cache_file}`
13352                           if test "x$LINE" != x ; then
13353                             eval "DEFAULT_$LINE"
13354                           fi
13355
13356                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
13357
13358 fi
13359
13360
13361           eval "$wx_cv_use_popupwin"
13362           if test "x$cache" = xyes; then
13363             echo "wxUSE_POPUPWIN=$wxUSE_POPUPWIN" >> ${wx_arg_cache_file}.tmp
13364           fi
13365
13366           if test x"$enablestring" = xdisable; then
13367             if test $wxUSE_POPUPWIN = yes; then
13368               result=no
13369             else
13370               result=yes
13371             fi
13372           else
13373             result=$wxUSE_POPUPWIN
13374           fi
13375
13376           { echo "$as_me:$LINENO: result: $result" >&5
13377 echo "${ECHO_T}$result" >&6; }
13378
13379
13380
13381
13382           enablestring=
13383           defaultval=$wxUSE_ALL_FEATURES
13384           if test -z "$defaultval"; then
13385               if test x"$enablestring" = xdisable; then
13386                   defaultval=yes
13387               else
13388                   defaultval=no
13389               fi
13390           fi
13391
13392           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
13393 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
13394           # Check whether --enable-commondlg was given.
13395 if test "${enable_commondlg+set}" = set; then
13396   enableval=$enable_commondlg;
13397                           if test "$enableval" = yes; then
13398                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
13399                           else
13400                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
13401                           fi
13402                           cache=yes
13403
13404 else
13405
13406                           LINE=`grep "^wxUSE_COMMONDLGS=" ${wx_arg_cache_file}`
13407                           if test "x$LINE" != x ; then
13408                             eval "DEFAULT_$LINE"
13409                           fi
13410
13411                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
13412
13413 fi
13414
13415
13416           eval "$wx_cv_use_commondlg"
13417           if test "x$cache" = xyes; then
13418             echo "wxUSE_COMMONDLGS=$wxUSE_COMMONDLGS" >> ${wx_arg_cache_file}.tmp
13419           fi
13420
13421           if test x"$enablestring" = xdisable; then
13422             if test $wxUSE_COMMONDLGS = yes; then
13423               result=no
13424             else
13425               result=yes
13426             fi
13427           else
13428             result=$wxUSE_COMMONDLGS
13429           fi
13430
13431           { echo "$as_me:$LINENO: result: $result" >&5
13432 echo "${ECHO_T}$result" >&6; }
13433
13434
13435           enablestring=
13436           defaultval=$wxUSE_ALL_FEATURES
13437           if test -z "$defaultval"; then
13438               if test x"$enablestring" = xdisable; then
13439                   defaultval=yes
13440               else
13441                   defaultval=no
13442               fi
13443           fi
13444
13445           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
13446 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
13447           # Check whether --enable-aboutdlg was given.
13448 if test "${enable_aboutdlg+set}" = set; then
13449   enableval=$enable_aboutdlg;
13450                           if test "$enableval" = yes; then
13451                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
13452                           else
13453                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
13454                           fi
13455                           cache=yes
13456
13457 else
13458
13459                           LINE=`grep "^wxUSE_ABOUTDLG=" ${wx_arg_cache_file}`
13460                           if test "x$LINE" != x ; then
13461                             eval "DEFAULT_$LINE"
13462                           fi
13463
13464                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
13465
13466 fi
13467
13468
13469           eval "$wx_cv_use_aboutdlg"
13470           if test "x$cache" = xyes; then
13471             echo "wxUSE_ABOUTDLG=$wxUSE_ABOUTDLG" >> ${wx_arg_cache_file}.tmp
13472           fi
13473
13474           if test x"$enablestring" = xdisable; then
13475             if test $wxUSE_ABOUTDLG = yes; then
13476               result=no
13477             else
13478               result=yes
13479             fi
13480           else
13481             result=$wxUSE_ABOUTDLG
13482           fi
13483
13484           { echo "$as_me:$LINENO: result: $result" >&5
13485 echo "${ECHO_T}$result" >&6; }
13486
13487
13488           enablestring=
13489           defaultval=$wxUSE_ALL_FEATURES
13490           if test -z "$defaultval"; then
13491               if test x"$enablestring" = xdisable; then
13492                   defaultval=yes
13493               else
13494                   defaultval=no
13495               fi
13496           fi
13497
13498           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13499 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13500           # Check whether --enable-choicedlg was given.
13501 if test "${enable_choicedlg+set}" = set; then
13502   enableval=$enable_choicedlg;
13503                           if test "$enableval" = yes; then
13504                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13505                           else
13506                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13507                           fi
13508                           cache=yes
13509
13510 else
13511
13512                           LINE=`grep "^wxUSE_CHOICEDLG=" ${wx_arg_cache_file}`
13513                           if test "x$LINE" != x ; then
13514                             eval "DEFAULT_$LINE"
13515                           fi
13516
13517                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13518
13519 fi
13520
13521
13522           eval "$wx_cv_use_choicedlg"
13523           if test "x$cache" = xyes; then
13524             echo "wxUSE_CHOICEDLG=$wxUSE_CHOICEDLG" >> ${wx_arg_cache_file}.tmp
13525           fi
13526
13527           if test x"$enablestring" = xdisable; then
13528             if test $wxUSE_CHOICEDLG = yes; then
13529               result=no
13530             else
13531               result=yes
13532             fi
13533           else
13534             result=$wxUSE_CHOICEDLG
13535           fi
13536
13537           { echo "$as_me:$LINENO: result: $result" >&5
13538 echo "${ECHO_T}$result" >&6; }
13539
13540
13541           enablestring=
13542           defaultval=$wxUSE_ALL_FEATURES
13543           if test -z "$defaultval"; then
13544               if test x"$enablestring" = xdisable; then
13545                   defaultval=yes
13546               else
13547                   defaultval=no
13548               fi
13549           fi
13550
13551           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13552 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13553           # Check whether --enable-coldlg was given.
13554 if test "${enable_coldlg+set}" = set; then
13555   enableval=$enable_coldlg;
13556                           if test "$enableval" = yes; then
13557                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13558                           else
13559                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13560                           fi
13561                           cache=yes
13562
13563 else
13564
13565                           LINE=`grep "^wxUSE_COLOURDLG=" ${wx_arg_cache_file}`
13566                           if test "x$LINE" != x ; then
13567                             eval "DEFAULT_$LINE"
13568                           fi
13569
13570                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13571
13572 fi
13573
13574
13575           eval "$wx_cv_use_coldlg"
13576           if test "x$cache" = xyes; then
13577             echo "wxUSE_COLOURDLG=$wxUSE_COLOURDLG" >> ${wx_arg_cache_file}.tmp
13578           fi
13579
13580           if test x"$enablestring" = xdisable; then
13581             if test $wxUSE_COLOURDLG = yes; then
13582               result=no
13583             else
13584               result=yes
13585             fi
13586           else
13587             result=$wxUSE_COLOURDLG
13588           fi
13589
13590           { echo "$as_me:$LINENO: result: $result" >&5
13591 echo "${ECHO_T}$result" >&6; }
13592
13593
13594           enablestring=
13595           defaultval=$wxUSE_ALL_FEATURES
13596           if test -z "$defaultval"; then
13597               if test x"$enablestring" = xdisable; then
13598                   defaultval=yes
13599               else
13600                   defaultval=no
13601               fi
13602           fi
13603
13604           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13605 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13606           # Check whether --enable-filedlg was given.
13607 if test "${enable_filedlg+set}" = set; then
13608   enableval=$enable_filedlg;
13609                           if test "$enableval" = yes; then
13610                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13611                           else
13612                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13613                           fi
13614                           cache=yes
13615
13616 else
13617
13618                           LINE=`grep "^wxUSE_FILEDLG=" ${wx_arg_cache_file}`
13619                           if test "x$LINE" != x ; then
13620                             eval "DEFAULT_$LINE"
13621                           fi
13622
13623                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13624
13625 fi
13626
13627
13628           eval "$wx_cv_use_filedlg"
13629           if test "x$cache" = xyes; then
13630             echo "wxUSE_FILEDLG=$wxUSE_FILEDLG" >> ${wx_arg_cache_file}.tmp
13631           fi
13632
13633           if test x"$enablestring" = xdisable; then
13634             if test $wxUSE_FILEDLG = yes; then
13635               result=no
13636             else
13637               result=yes
13638             fi
13639           else
13640             result=$wxUSE_FILEDLG
13641           fi
13642
13643           { echo "$as_me:$LINENO: result: $result" >&5
13644 echo "${ECHO_T}$result" >&6; }
13645
13646
13647           enablestring=
13648           defaultval=$wxUSE_ALL_FEATURES
13649           if test -z "$defaultval"; then
13650               if test x"$enablestring" = xdisable; then
13651                   defaultval=yes
13652               else
13653                   defaultval=no
13654               fi
13655           fi
13656
13657           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13658 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13659           # Check whether --enable-finddlg was given.
13660 if test "${enable_finddlg+set}" = set; then
13661   enableval=$enable_finddlg;
13662                           if test "$enableval" = yes; then
13663                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13664                           else
13665                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13666                           fi
13667                           cache=yes
13668
13669 else
13670
13671                           LINE=`grep "^wxUSE_FINDREPLDLG=" ${wx_arg_cache_file}`
13672                           if test "x$LINE" != x ; then
13673                             eval "DEFAULT_$LINE"
13674                           fi
13675
13676                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13677
13678 fi
13679
13680
13681           eval "$wx_cv_use_finddlg"
13682           if test "x$cache" = xyes; then
13683             echo "wxUSE_FINDREPLDLG=$wxUSE_FINDREPLDLG" >> ${wx_arg_cache_file}.tmp
13684           fi
13685
13686           if test x"$enablestring" = xdisable; then
13687             if test $wxUSE_FINDREPLDLG = yes; then
13688               result=no
13689             else
13690               result=yes
13691             fi
13692           else
13693             result=$wxUSE_FINDREPLDLG
13694           fi
13695
13696           { echo "$as_me:$LINENO: result: $result" >&5
13697 echo "${ECHO_T}$result" >&6; }
13698
13699
13700           enablestring=
13701           defaultval=$wxUSE_ALL_FEATURES
13702           if test -z "$defaultval"; then
13703               if test x"$enablestring" = xdisable; then
13704                   defaultval=yes
13705               else
13706                   defaultval=no
13707               fi
13708           fi
13709
13710           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13711 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13712           # Check whether --enable-fontdlg was given.
13713 if test "${enable_fontdlg+set}" = set; then
13714   enableval=$enable_fontdlg;
13715                           if test "$enableval" = yes; then
13716                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13717                           else
13718                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13719                           fi
13720                           cache=yes
13721
13722 else
13723
13724                           LINE=`grep "^wxUSE_FONTDLG=" ${wx_arg_cache_file}`
13725                           if test "x$LINE" != x ; then
13726                             eval "DEFAULT_$LINE"
13727                           fi
13728
13729                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13730
13731 fi
13732
13733
13734           eval "$wx_cv_use_fontdlg"
13735           if test "x$cache" = xyes; then
13736             echo "wxUSE_FONTDLG=$wxUSE_FONTDLG" >> ${wx_arg_cache_file}.tmp
13737           fi
13738
13739           if test x"$enablestring" = xdisable; then
13740             if test $wxUSE_FONTDLG = yes; then
13741               result=no
13742             else
13743               result=yes
13744             fi
13745           else
13746             result=$wxUSE_FONTDLG
13747           fi
13748
13749           { echo "$as_me:$LINENO: result: $result" >&5
13750 echo "${ECHO_T}$result" >&6; }
13751
13752
13753           enablestring=
13754           defaultval=$wxUSE_ALL_FEATURES
13755           if test -z "$defaultval"; then
13756               if test x"$enablestring" = xdisable; then
13757                   defaultval=yes
13758               else
13759                   defaultval=no
13760               fi
13761           fi
13762
13763           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
13764 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
13765           # Check whether --enable-dirdlg was given.
13766 if test "${enable_dirdlg+set}" = set; then
13767   enableval=$enable_dirdlg;
13768                           if test "$enableval" = yes; then
13769                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
13770                           else
13771                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
13772                           fi
13773                           cache=yes
13774
13775 else
13776
13777                           LINE=`grep "^wxUSE_DIRDLG=" ${wx_arg_cache_file}`
13778                           if test "x$LINE" != x ; then
13779                             eval "DEFAULT_$LINE"
13780                           fi
13781
13782                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
13783
13784 fi
13785
13786
13787           eval "$wx_cv_use_dirdlg"
13788           if test "x$cache" = xyes; then
13789             echo "wxUSE_DIRDLG=$wxUSE_DIRDLG" >> ${wx_arg_cache_file}.tmp
13790           fi
13791
13792           if test x"$enablestring" = xdisable; then
13793             if test $wxUSE_DIRDLG = yes; then
13794               result=no
13795             else
13796               result=yes
13797             fi
13798           else
13799             result=$wxUSE_DIRDLG
13800           fi
13801
13802           { echo "$as_me:$LINENO: result: $result" >&5
13803 echo "${ECHO_T}$result" >&6; }
13804
13805
13806           enablestring=
13807           defaultval=$wxUSE_ALL_FEATURES
13808           if test -z "$defaultval"; then
13809               if test x"$enablestring" = xdisable; then
13810                   defaultval=yes
13811               else
13812                   defaultval=no
13813               fi
13814           fi
13815
13816           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
13817 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
13818           # Check whether --enable-msgdlg was given.
13819 if test "${enable_msgdlg+set}" = set; then
13820   enableval=$enable_msgdlg;
13821                           if test "$enableval" = yes; then
13822                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
13823                           else
13824                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
13825                           fi
13826                           cache=yes
13827
13828 else
13829
13830                           LINE=`grep "^wxUSE_MSGDLG=" ${wx_arg_cache_file}`
13831                           if test "x$LINE" != x ; then
13832                             eval "DEFAULT_$LINE"
13833                           fi
13834
13835                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
13836
13837 fi
13838
13839
13840           eval "$wx_cv_use_msgdlg"
13841           if test "x$cache" = xyes; then
13842             echo "wxUSE_MSGDLG=$wxUSE_MSGDLG" >> ${wx_arg_cache_file}.tmp
13843           fi
13844
13845           if test x"$enablestring" = xdisable; then
13846             if test $wxUSE_MSGDLG = yes; then
13847               result=no
13848             else
13849               result=yes
13850             fi
13851           else
13852             result=$wxUSE_MSGDLG
13853           fi
13854
13855           { echo "$as_me:$LINENO: result: $result" >&5
13856 echo "${ECHO_T}$result" >&6; }
13857
13858
13859           enablestring=
13860           defaultval=$wxUSE_ALL_FEATURES
13861           if test -z "$defaultval"; then
13862               if test x"$enablestring" = xdisable; then
13863                   defaultval=yes
13864               else
13865                   defaultval=no
13866               fi
13867           fi
13868
13869           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
13870 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
13871           # Check whether --enable-numberdlg was given.
13872 if test "${enable_numberdlg+set}" = set; then
13873   enableval=$enable_numberdlg;
13874                           if test "$enableval" = yes; then
13875                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
13876                           else
13877                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
13878                           fi
13879                           cache=yes
13880
13881 else
13882
13883                           LINE=`grep "^wxUSE_NUMBERDLG=" ${wx_arg_cache_file}`
13884                           if test "x$LINE" != x ; then
13885                             eval "DEFAULT_$LINE"
13886                           fi
13887
13888                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
13889
13890 fi
13891
13892
13893           eval "$wx_cv_use_numberdlg"
13894           if test "x$cache" = xyes; then
13895             echo "wxUSE_NUMBERDLG=$wxUSE_NUMBERDLG" >> ${wx_arg_cache_file}.tmp
13896           fi
13897
13898           if test x"$enablestring" = xdisable; then
13899             if test $wxUSE_NUMBERDLG = yes; then
13900               result=no
13901             else
13902               result=yes
13903             fi
13904           else
13905             result=$wxUSE_NUMBERDLG
13906           fi
13907
13908           { echo "$as_me:$LINENO: result: $result" >&5
13909 echo "${ECHO_T}$result" >&6; }
13910
13911
13912           enablestring=
13913           defaultval=$wxUSE_ALL_FEATURES
13914           if test -z "$defaultval"; then
13915               if test x"$enablestring" = xdisable; then
13916                   defaultval=yes
13917               else
13918                   defaultval=no
13919               fi
13920           fi
13921
13922           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
13923 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
13924           # Check whether --enable-splash was given.
13925 if test "${enable_splash+set}" = set; then
13926   enableval=$enable_splash;
13927                           if test "$enableval" = yes; then
13928                             wx_cv_use_splash='wxUSE_SPLASH=yes'
13929                           else
13930                             wx_cv_use_splash='wxUSE_SPLASH=no'
13931                           fi
13932                           cache=yes
13933
13934 else
13935
13936                           LINE=`grep "^wxUSE_SPLASH=" ${wx_arg_cache_file}`
13937                           if test "x$LINE" != x ; then
13938                             eval "DEFAULT_$LINE"
13939                           fi
13940
13941                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
13942
13943 fi
13944
13945
13946           eval "$wx_cv_use_splash"
13947           if test "x$cache" = xyes; then
13948             echo "wxUSE_SPLASH=$wxUSE_SPLASH" >> ${wx_arg_cache_file}.tmp
13949           fi
13950
13951           if test x"$enablestring" = xdisable; then
13952             if test $wxUSE_SPLASH = yes; then
13953               result=no
13954             else
13955               result=yes
13956             fi
13957           else
13958             result=$wxUSE_SPLASH
13959           fi
13960
13961           { echo "$as_me:$LINENO: result: $result" >&5
13962 echo "${ECHO_T}$result" >&6; }
13963
13964
13965           enablestring=
13966           defaultval=$wxUSE_ALL_FEATURES
13967           if test -z "$defaultval"; then
13968               if test x"$enablestring" = xdisable; then
13969                   defaultval=yes
13970               else
13971                   defaultval=no
13972               fi
13973           fi
13974
13975           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
13976 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
13977           # Check whether --enable-textdlg was given.
13978 if test "${enable_textdlg+set}" = set; then
13979   enableval=$enable_textdlg;
13980                           if test "$enableval" = yes; then
13981                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
13982                           else
13983                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
13984                           fi
13985                           cache=yes
13986
13987 else
13988
13989                           LINE=`grep "^wxUSE_TEXTDLG=" ${wx_arg_cache_file}`
13990                           if test "x$LINE" != x ; then
13991                             eval "DEFAULT_$LINE"
13992                           fi
13993
13994                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
13995
13996 fi
13997
13998
13999           eval "$wx_cv_use_textdlg"
14000           if test "x$cache" = xyes; then
14001             echo "wxUSE_TEXTDLG=$wxUSE_TEXTDLG" >> ${wx_arg_cache_file}.tmp
14002           fi
14003
14004           if test x"$enablestring" = xdisable; then
14005             if test $wxUSE_TEXTDLG = yes; then
14006               result=no
14007             else
14008               result=yes
14009             fi
14010           else
14011             result=$wxUSE_TEXTDLG
14012           fi
14013
14014           { echo "$as_me:$LINENO: result: $result" >&5
14015 echo "${ECHO_T}$result" >&6; }
14016
14017
14018           enablestring=
14019           defaultval=$wxUSE_ALL_FEATURES
14020           if test -z "$defaultval"; then
14021               if test x"$enablestring" = xdisable; then
14022                   defaultval=yes
14023               else
14024                   defaultval=no
14025               fi
14026           fi
14027
14028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
14029 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
14030           # Check whether --enable-tipdlg was given.
14031 if test "${enable_tipdlg+set}" = set; then
14032   enableval=$enable_tipdlg;
14033                           if test "$enableval" = yes; then
14034                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
14035                           else
14036                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
14037                           fi
14038                           cache=yes
14039
14040 else
14041
14042                           LINE=`grep "^wxUSE_STARTUP_TIPS=" ${wx_arg_cache_file}`
14043                           if test "x$LINE" != x ; then
14044                             eval "DEFAULT_$LINE"
14045                           fi
14046
14047                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
14048
14049 fi
14050
14051
14052           eval "$wx_cv_use_tipdlg"
14053           if test "x$cache" = xyes; then
14054             echo "wxUSE_STARTUP_TIPS=$wxUSE_STARTUP_TIPS" >> ${wx_arg_cache_file}.tmp
14055           fi
14056
14057           if test x"$enablestring" = xdisable; then
14058             if test $wxUSE_STARTUP_TIPS = yes; then
14059               result=no
14060             else
14061               result=yes
14062             fi
14063           else
14064             result=$wxUSE_STARTUP_TIPS
14065           fi
14066
14067           { echo "$as_me:$LINENO: result: $result" >&5
14068 echo "${ECHO_T}$result" >&6; }
14069
14070
14071           enablestring=
14072           defaultval=$wxUSE_ALL_FEATURES
14073           if test -z "$defaultval"; then
14074               if test x"$enablestring" = xdisable; then
14075                   defaultval=yes
14076               else
14077                   defaultval=no
14078               fi
14079           fi
14080
14081           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
14082 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
14083           # Check whether --enable-progressdlg was given.
14084 if test "${enable_progressdlg+set}" = set; then
14085   enableval=$enable_progressdlg;
14086                           if test "$enableval" = yes; then
14087                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
14088                           else
14089                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
14090                           fi
14091                           cache=yes
14092
14093 else
14094
14095                           LINE=`grep "^wxUSE_PROGRESSDLG=" ${wx_arg_cache_file}`
14096                           if test "x$LINE" != x ; then
14097                             eval "DEFAULT_$LINE"
14098                           fi
14099
14100                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
14101
14102 fi
14103
14104
14105           eval "$wx_cv_use_progressdlg"
14106           if test "x$cache" = xyes; then
14107             echo "wxUSE_PROGRESSDLG=$wxUSE_PROGRESSDLG" >> ${wx_arg_cache_file}.tmp
14108           fi
14109
14110           if test x"$enablestring" = xdisable; then
14111             if test $wxUSE_PROGRESSDLG = yes; then
14112               result=no
14113             else
14114               result=yes
14115             fi
14116           else
14117             result=$wxUSE_PROGRESSDLG
14118           fi
14119
14120           { echo "$as_me:$LINENO: result: $result" >&5
14121 echo "${ECHO_T}$result" >&6; }
14122
14123
14124           enablestring=
14125           defaultval=$wxUSE_ALL_FEATURES
14126           if test -z "$defaultval"; then
14127               if test x"$enablestring" = xdisable; then
14128                   defaultval=yes
14129               else
14130                   defaultval=no
14131               fi
14132           fi
14133
14134           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
14135 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
14136           # Check whether --enable-wizarddlg was given.
14137 if test "${enable_wizarddlg+set}" = set; then
14138   enableval=$enable_wizarddlg;
14139                           if test "$enableval" = yes; then
14140                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
14141                           else
14142                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
14143                           fi
14144                           cache=yes
14145
14146 else
14147
14148                           LINE=`grep "^wxUSE_WIZARDDLG=" ${wx_arg_cache_file}`
14149                           if test "x$LINE" != x ; then
14150                             eval "DEFAULT_$LINE"
14151                           fi
14152
14153                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
14154
14155 fi
14156
14157
14158           eval "$wx_cv_use_wizarddlg"
14159           if test "x$cache" = xyes; then
14160             echo "wxUSE_WIZARDDLG=$wxUSE_WIZARDDLG" >> ${wx_arg_cache_file}.tmp
14161           fi
14162
14163           if test x"$enablestring" = xdisable; then
14164             if test $wxUSE_WIZARDDLG = yes; then
14165               result=no
14166             else
14167               result=yes
14168             fi
14169           else
14170             result=$wxUSE_WIZARDDLG
14171           fi
14172
14173           { echo "$as_me:$LINENO: result: $result" >&5
14174 echo "${ECHO_T}$result" >&6; }
14175
14176
14177
14178
14179           enablestring=
14180           defaultval=$wxUSE_ALL_FEATURES
14181           if test -z "$defaultval"; then
14182               if test x"$enablestring" = xdisable; then
14183                   defaultval=yes
14184               else
14185                   defaultval=no
14186               fi
14187           fi
14188
14189           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
14190 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
14191           # Check whether --enable-menus was given.
14192 if test "${enable_menus+set}" = set; then
14193   enableval=$enable_menus;
14194                           if test "$enableval" = yes; then
14195                             wx_cv_use_menus='wxUSE_MENUS=yes'
14196                           else
14197                             wx_cv_use_menus='wxUSE_MENUS=no'
14198                           fi
14199                           cache=yes
14200
14201 else
14202
14203                           LINE=`grep "^wxUSE_MENUS=" ${wx_arg_cache_file}`
14204                           if test "x$LINE" != x ; then
14205                             eval "DEFAULT_$LINE"
14206                           fi
14207
14208                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
14209
14210 fi
14211
14212
14213           eval "$wx_cv_use_menus"
14214           if test "x$cache" = xyes; then
14215             echo "wxUSE_MENUS=$wxUSE_MENUS" >> ${wx_arg_cache_file}.tmp
14216           fi
14217
14218           if test x"$enablestring" = xdisable; then
14219             if test $wxUSE_MENUS = yes; then
14220               result=no
14221             else
14222               result=yes
14223             fi
14224           else
14225             result=$wxUSE_MENUS
14226           fi
14227
14228           { echo "$as_me:$LINENO: result: $result" >&5
14229 echo "${ECHO_T}$result" >&6; }
14230
14231
14232           enablestring=
14233           defaultval=$wxUSE_ALL_FEATURES
14234           if test -z "$defaultval"; then
14235               if test x"$enablestring" = xdisable; then
14236                   defaultval=yes
14237               else
14238                   defaultval=no
14239               fi
14240           fi
14241
14242           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
14243 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
14244           # Check whether --enable-miniframe was given.
14245 if test "${enable_miniframe+set}" = set; then
14246   enableval=$enable_miniframe;
14247                           if test "$enableval" = yes; then
14248                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
14249                           else
14250                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
14251                           fi
14252                           cache=yes
14253
14254 else
14255
14256                           LINE=`grep "^wxUSE_MINIFRAME=" ${wx_arg_cache_file}`
14257                           if test "x$LINE" != x ; then
14258                             eval "DEFAULT_$LINE"
14259                           fi
14260
14261                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
14262
14263 fi
14264
14265
14266           eval "$wx_cv_use_miniframe"
14267           if test "x$cache" = xyes; then
14268             echo "wxUSE_MINIFRAME=$wxUSE_MINIFRAME" >> ${wx_arg_cache_file}.tmp
14269           fi
14270
14271           if test x"$enablestring" = xdisable; then
14272             if test $wxUSE_MINIFRAME = yes; then
14273               result=no
14274             else
14275               result=yes
14276             fi
14277           else
14278             result=$wxUSE_MINIFRAME
14279           fi
14280
14281           { echo "$as_me:$LINENO: result: $result" >&5
14282 echo "${ECHO_T}$result" >&6; }
14283
14284
14285           enablestring=
14286           defaultval=$wxUSE_ALL_FEATURES
14287           if test -z "$defaultval"; then
14288               if test x"$enablestring" = xdisable; then
14289                   defaultval=yes
14290               else
14291                   defaultval=no
14292               fi
14293           fi
14294
14295           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
14296 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
14297           # Check whether --enable-tooltips was given.
14298 if test "${enable_tooltips+set}" = set; then
14299   enableval=$enable_tooltips;
14300                           if test "$enableval" = yes; then
14301                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
14302                           else
14303                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
14304                           fi
14305                           cache=yes
14306
14307 else
14308
14309                           LINE=`grep "^wxUSE_TOOLTIPS=" ${wx_arg_cache_file}`
14310                           if test "x$LINE" != x ; then
14311                             eval "DEFAULT_$LINE"
14312                           fi
14313
14314                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
14315
14316 fi
14317
14318
14319           eval "$wx_cv_use_tooltips"
14320           if test "x$cache" = xyes; then
14321             echo "wxUSE_TOOLTIPS=$wxUSE_TOOLTIPS" >> ${wx_arg_cache_file}.tmp
14322           fi
14323
14324           if test x"$enablestring" = xdisable; then
14325             if test $wxUSE_TOOLTIPS = yes; then
14326               result=no
14327             else
14328               result=yes
14329             fi
14330           else
14331             result=$wxUSE_TOOLTIPS
14332           fi
14333
14334           { echo "$as_me:$LINENO: result: $result" >&5
14335 echo "${ECHO_T}$result" >&6; }
14336
14337
14338           enablestring=
14339           defaultval=$wxUSE_ALL_FEATURES
14340           if test -z "$defaultval"; then
14341               if test x"$enablestring" = xdisable; then
14342                   defaultval=yes
14343               else
14344                   defaultval=no
14345               fi
14346           fi
14347
14348           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
14349 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
14350           # Check whether --enable-splines was given.
14351 if test "${enable_splines+set}" = set; then
14352   enableval=$enable_splines;
14353                           if test "$enableval" = yes; then
14354                             wx_cv_use_splines='wxUSE_SPLINES=yes'
14355                           else
14356                             wx_cv_use_splines='wxUSE_SPLINES=no'
14357                           fi
14358                           cache=yes
14359
14360 else
14361
14362                           LINE=`grep "^wxUSE_SPLINES=" ${wx_arg_cache_file}`
14363                           if test "x$LINE" != x ; then
14364                             eval "DEFAULT_$LINE"
14365                           fi
14366
14367                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
14368
14369 fi
14370
14371
14372           eval "$wx_cv_use_splines"
14373           if test "x$cache" = xyes; then
14374             echo "wxUSE_SPLINES=$wxUSE_SPLINES" >> ${wx_arg_cache_file}.tmp
14375           fi
14376
14377           if test x"$enablestring" = xdisable; then
14378             if test $wxUSE_SPLINES = yes; then
14379               result=no
14380             else
14381               result=yes
14382             fi
14383           else
14384             result=$wxUSE_SPLINES
14385           fi
14386
14387           { echo "$as_me:$LINENO: result: $result" >&5
14388 echo "${ECHO_T}$result" >&6; }
14389
14390
14391           enablestring=
14392           defaultval=$wxUSE_ALL_FEATURES
14393           if test -z "$defaultval"; then
14394               if test x"$enablestring" = xdisable; then
14395                   defaultval=yes
14396               else
14397                   defaultval=no
14398               fi
14399           fi
14400
14401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
14402 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
14403           # Check whether --enable-mousewheel was given.
14404 if test "${enable_mousewheel+set}" = set; then
14405   enableval=$enable_mousewheel;
14406                           if test "$enableval" = yes; then
14407                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
14408                           else
14409                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
14410                           fi
14411                           cache=yes
14412
14413 else
14414
14415                           LINE=`grep "^wxUSE_MOUSEWHEEL=" ${wx_arg_cache_file}`
14416                           if test "x$LINE" != x ; then
14417                             eval "DEFAULT_$LINE"
14418                           fi
14419
14420                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
14421
14422 fi
14423
14424
14425           eval "$wx_cv_use_mousewheel"
14426           if test "x$cache" = xyes; then
14427             echo "wxUSE_MOUSEWHEEL=$wxUSE_MOUSEWHEEL" >> ${wx_arg_cache_file}.tmp
14428           fi
14429
14430           if test x"$enablestring" = xdisable; then
14431             if test $wxUSE_MOUSEWHEEL = yes; then
14432               result=no
14433             else
14434               result=yes
14435             fi
14436           else
14437             result=$wxUSE_MOUSEWHEEL
14438           fi
14439
14440           { echo "$as_me:$LINENO: result: $result" >&5
14441 echo "${ECHO_T}$result" >&6; }
14442
14443
14444           enablestring=
14445           defaultval=$wxUSE_ALL_FEATURES
14446           if test -z "$defaultval"; then
14447               if test x"$enablestring" = xdisable; then
14448                   defaultval=yes
14449               else
14450                   defaultval=no
14451               fi
14452           fi
14453
14454           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
14455 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
14456           # Check whether --enable-validators was given.
14457 if test "${enable_validators+set}" = set; then
14458   enableval=$enable_validators;
14459                           if test "$enableval" = yes; then
14460                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
14461                           else
14462                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
14463                           fi
14464                           cache=yes
14465
14466 else
14467
14468                           LINE=`grep "^wxUSE_VALIDATORS=" ${wx_arg_cache_file}`
14469                           if test "x$LINE" != x ; then
14470                             eval "DEFAULT_$LINE"
14471                           fi
14472
14473                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
14474
14475 fi
14476
14477
14478           eval "$wx_cv_use_validators"
14479           if test "x$cache" = xyes; then
14480             echo "wxUSE_VALIDATORS=$wxUSE_VALIDATORS" >> ${wx_arg_cache_file}.tmp
14481           fi
14482
14483           if test x"$enablestring" = xdisable; then
14484             if test $wxUSE_VALIDATORS = yes; then
14485               result=no
14486             else
14487               result=yes
14488             fi
14489           else
14490             result=$wxUSE_VALIDATORS
14491           fi
14492
14493           { echo "$as_me:$LINENO: result: $result" >&5
14494 echo "${ECHO_T}$result" >&6; }
14495
14496
14497           enablestring=
14498           defaultval=$wxUSE_ALL_FEATURES
14499           if test -z "$defaultval"; then
14500               if test x"$enablestring" = xdisable; then
14501                   defaultval=yes
14502               else
14503                   defaultval=no
14504               fi
14505           fi
14506
14507           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
14508 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
14509           # Check whether --enable-busyinfo was given.
14510 if test "${enable_busyinfo+set}" = set; then
14511   enableval=$enable_busyinfo;
14512                           if test "$enableval" = yes; then
14513                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
14514                           else
14515                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
14516                           fi
14517                           cache=yes
14518
14519 else
14520
14521                           LINE=`grep "^wxUSE_BUSYINFO=" ${wx_arg_cache_file}`
14522                           if test "x$LINE" != x ; then
14523                             eval "DEFAULT_$LINE"
14524                           fi
14525
14526                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
14527
14528 fi
14529
14530
14531           eval "$wx_cv_use_busyinfo"
14532           if test "x$cache" = xyes; then
14533             echo "wxUSE_BUSYINFO=$wxUSE_BUSYINFO" >> ${wx_arg_cache_file}.tmp
14534           fi
14535
14536           if test x"$enablestring" = xdisable; then
14537             if test $wxUSE_BUSYINFO = yes; then
14538               result=no
14539             else
14540               result=yes
14541             fi
14542           else
14543             result=$wxUSE_BUSYINFO
14544           fi
14545
14546           { echo "$as_me:$LINENO: result: $result" >&5
14547 echo "${ECHO_T}$result" >&6; }
14548
14549
14550           enablestring=
14551           defaultval=$wxUSE_ALL_FEATURES
14552           if test -z "$defaultval"; then
14553               if test x"$enablestring" = xdisable; then
14554                   defaultval=yes
14555               else
14556                   defaultval=no
14557               fi
14558           fi
14559
14560           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
14561 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
14562           # Check whether --enable-joystick was given.
14563 if test "${enable_joystick+set}" = set; then
14564   enableval=$enable_joystick;
14565                           if test "$enableval" = yes; then
14566                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
14567                           else
14568                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
14569                           fi
14570                           cache=yes
14571
14572 else
14573
14574                           LINE=`grep "^wxUSE_JOYSTICK=" ${wx_arg_cache_file}`
14575                           if test "x$LINE" != x ; then
14576                             eval "DEFAULT_$LINE"
14577                           fi
14578
14579                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
14580
14581 fi
14582
14583
14584           eval "$wx_cv_use_joystick"
14585           if test "x$cache" = xyes; then
14586             echo "wxUSE_JOYSTICK=$wxUSE_JOYSTICK" >> ${wx_arg_cache_file}.tmp
14587           fi
14588
14589           if test x"$enablestring" = xdisable; then
14590             if test $wxUSE_JOYSTICK = yes; then
14591               result=no
14592             else
14593               result=yes
14594             fi
14595           else
14596             result=$wxUSE_JOYSTICK
14597           fi
14598
14599           { echo "$as_me:$LINENO: result: $result" >&5
14600 echo "${ECHO_T}$result" >&6; }
14601
14602
14603           enablestring=
14604           defaultval=$wxUSE_ALL_FEATURES
14605           if test -z "$defaultval"; then
14606               if test x"$enablestring" = xdisable; then
14607                   defaultval=yes
14608               else
14609                   defaultval=no
14610               fi
14611           fi
14612
14613           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
14614 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
14615           # Check whether --enable-metafile was given.
14616 if test "${enable_metafile+set}" = set; then
14617   enableval=$enable_metafile;
14618                           if test "$enableval" = yes; then
14619                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
14620                           else
14621                             wx_cv_use_metafile='wxUSE_METAFILE=no'
14622                           fi
14623                           cache=yes
14624
14625 else
14626
14627                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
14628                           if test "x$LINE" != x ; then
14629                             eval "DEFAULT_$LINE"
14630                           fi
14631
14632                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
14633
14634 fi
14635
14636
14637           eval "$wx_cv_use_metafile"
14638           if test "x$cache" = xyes; then
14639             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
14640           fi
14641
14642           if test x"$enablestring" = xdisable; then
14643             if test $wxUSE_METAFILE = yes; then
14644               result=no
14645             else
14646               result=yes
14647             fi
14648           else
14649             result=$wxUSE_METAFILE
14650           fi
14651
14652           { echo "$as_me:$LINENO: result: $result" >&5
14653 echo "${ECHO_T}$result" >&6; }
14654
14655
14656           enablestring=
14657           defaultval=$wxUSE_ALL_FEATURES
14658           if test -z "$defaultval"; then
14659               if test x"$enablestring" = xdisable; then
14660                   defaultval=yes
14661               else
14662                   defaultval=no
14663               fi
14664           fi
14665
14666           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
14667 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
14668           # Check whether --enable-dragimage was given.
14669 if test "${enable_dragimage+set}" = set; then
14670   enableval=$enable_dragimage;
14671                           if test "$enableval" = yes; then
14672                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
14673                           else
14674                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
14675                           fi
14676                           cache=yes
14677
14678 else
14679
14680                           LINE=`grep "^wxUSE_DRAGIMAGE=" ${wx_arg_cache_file}`
14681                           if test "x$LINE" != x ; then
14682                             eval "DEFAULT_$LINE"
14683                           fi
14684
14685                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
14686
14687 fi
14688
14689
14690           eval "$wx_cv_use_dragimage"
14691           if test "x$cache" = xyes; then
14692             echo "wxUSE_DRAGIMAGE=$wxUSE_DRAGIMAGE" >> ${wx_arg_cache_file}.tmp
14693           fi
14694
14695           if test x"$enablestring" = xdisable; then
14696             if test $wxUSE_DRAGIMAGE = yes; then
14697               result=no
14698             else
14699               result=yes
14700             fi
14701           else
14702             result=$wxUSE_DRAGIMAGE
14703           fi
14704
14705           { echo "$as_me:$LINENO: result: $result" >&5
14706 echo "${ECHO_T}$result" >&6; }
14707
14708
14709           enablestring=
14710           defaultval=$wxUSE_ALL_FEATURES
14711           if test -z "$defaultval"; then
14712               if test x"$enablestring" = xdisable; then
14713                   defaultval=yes
14714               else
14715                   defaultval=no
14716               fi
14717           fi
14718
14719           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
14720 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
14721           # Check whether --enable-accessibility was given.
14722 if test "${enable_accessibility+set}" = set; then
14723   enableval=$enable_accessibility;
14724                           if test "$enableval" = yes; then
14725                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
14726                           else
14727                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
14728                           fi
14729                           cache=yes
14730
14731 else
14732
14733                           LINE=`grep "^wxUSE_ACCESSIBILITY=" ${wx_arg_cache_file}`
14734                           if test "x$LINE" != x ; then
14735                             eval "DEFAULT_$LINE"
14736                           fi
14737
14738                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
14739
14740 fi
14741
14742
14743           eval "$wx_cv_use_accessibility"
14744           if test "x$cache" = xyes; then
14745             echo "wxUSE_ACCESSIBILITY=$wxUSE_ACCESSIBILITY" >> ${wx_arg_cache_file}.tmp
14746           fi
14747
14748           if test x"$enablestring" = xdisable; then
14749             if test $wxUSE_ACCESSIBILITY = yes; then
14750               result=no
14751             else
14752               result=yes
14753             fi
14754           else
14755             result=$wxUSE_ACCESSIBILITY
14756           fi
14757
14758           { echo "$as_me:$LINENO: result: $result" >&5
14759 echo "${ECHO_T}$result" >&6; }
14760
14761
14762
14763
14764           enablestring=
14765           defaultval=$wxUSE_ALL_FEATURES
14766           if test -z "$defaultval"; then
14767               if test x"$enablestring" = xdisable; then
14768                   defaultval=yes
14769               else
14770                   defaultval=no
14771               fi
14772           fi
14773
14774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
14775 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
14776           # Check whether --enable-palette was given.
14777 if test "${enable_palette+set}" = set; then
14778   enableval=$enable_palette;
14779                           if test "$enableval" = yes; then
14780                             wx_cv_use_palette='wxUSE_PALETTE=yes'
14781                           else
14782                             wx_cv_use_palette='wxUSE_PALETTE=no'
14783                           fi
14784                           cache=yes
14785
14786 else
14787
14788                           LINE=`grep "^wxUSE_PALETTE=" ${wx_arg_cache_file}`
14789                           if test "x$LINE" != x ; then
14790                             eval "DEFAULT_$LINE"
14791                           fi
14792
14793                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
14794
14795 fi
14796
14797
14798           eval "$wx_cv_use_palette"
14799           if test "x$cache" = xyes; then
14800             echo "wxUSE_PALETTE=$wxUSE_PALETTE" >> ${wx_arg_cache_file}.tmp
14801           fi
14802
14803           if test x"$enablestring" = xdisable; then
14804             if test $wxUSE_PALETTE = yes; then
14805               result=no
14806             else
14807               result=yes
14808             fi
14809           else
14810             result=$wxUSE_PALETTE
14811           fi
14812
14813           { echo "$as_me:$LINENO: result: $result" >&5
14814 echo "${ECHO_T}$result" >&6; }
14815
14816
14817           enablestring=
14818           defaultval=$wxUSE_ALL_FEATURES
14819           if test -z "$defaultval"; then
14820               if test x"$enablestring" = xdisable; then
14821                   defaultval=yes
14822               else
14823                   defaultval=no
14824               fi
14825           fi
14826
14827           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
14828 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
14829           # Check whether --enable-image was given.
14830 if test "${enable_image+set}" = set; then
14831   enableval=$enable_image;
14832                           if test "$enableval" = yes; then
14833                             wx_cv_use_image='wxUSE_IMAGE=yes'
14834                           else
14835                             wx_cv_use_image='wxUSE_IMAGE=no'
14836                           fi
14837                           cache=yes
14838
14839 else
14840
14841                           LINE=`grep "^wxUSE_IMAGE=" ${wx_arg_cache_file}`
14842                           if test "x$LINE" != x ; then
14843                             eval "DEFAULT_$LINE"
14844                           fi
14845
14846                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
14847
14848 fi
14849
14850
14851           eval "$wx_cv_use_image"
14852           if test "x$cache" = xyes; then
14853             echo "wxUSE_IMAGE=$wxUSE_IMAGE" >> ${wx_arg_cache_file}.tmp
14854           fi
14855
14856           if test x"$enablestring" = xdisable; then
14857             if test $wxUSE_IMAGE = yes; then
14858               result=no
14859             else
14860               result=yes
14861             fi
14862           else
14863             result=$wxUSE_IMAGE
14864           fi
14865
14866           { echo "$as_me:$LINENO: result: $result" >&5
14867 echo "${ECHO_T}$result" >&6; }
14868
14869
14870           enablestring=
14871           defaultval=$wxUSE_ALL_FEATURES
14872           if test -z "$defaultval"; then
14873               if test x"$enablestring" = xdisable; then
14874                   defaultval=yes
14875               else
14876                   defaultval=no
14877               fi
14878           fi
14879
14880           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
14881 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
14882           # Check whether --enable-gif was given.
14883 if test "${enable_gif+set}" = set; then
14884   enableval=$enable_gif;
14885                           if test "$enableval" = yes; then
14886                             wx_cv_use_gif='wxUSE_GIF=yes'
14887                           else
14888                             wx_cv_use_gif='wxUSE_GIF=no'
14889                           fi
14890                           cache=yes
14891
14892 else
14893
14894                           LINE=`grep "^wxUSE_GIF=" ${wx_arg_cache_file}`
14895                           if test "x$LINE" != x ; then
14896                             eval "DEFAULT_$LINE"
14897                           fi
14898
14899                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
14900
14901 fi
14902
14903
14904           eval "$wx_cv_use_gif"
14905           if test "x$cache" = xyes; then
14906             echo "wxUSE_GIF=$wxUSE_GIF" >> ${wx_arg_cache_file}.tmp
14907           fi
14908
14909           if test x"$enablestring" = xdisable; then
14910             if test $wxUSE_GIF = yes; then
14911               result=no
14912             else
14913               result=yes
14914             fi
14915           else
14916             result=$wxUSE_GIF
14917           fi
14918
14919           { echo "$as_me:$LINENO: result: $result" >&5
14920 echo "${ECHO_T}$result" >&6; }
14921
14922
14923           enablestring=
14924           defaultval=$wxUSE_ALL_FEATURES
14925           if test -z "$defaultval"; then
14926               if test x"$enablestring" = xdisable; then
14927                   defaultval=yes
14928               else
14929                   defaultval=no
14930               fi
14931           fi
14932
14933           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
14934 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
14935           # Check whether --enable-pcx was given.
14936 if test "${enable_pcx+set}" = set; then
14937   enableval=$enable_pcx;
14938                           if test "$enableval" = yes; then
14939                             wx_cv_use_pcx='wxUSE_PCX=yes'
14940                           else
14941                             wx_cv_use_pcx='wxUSE_PCX=no'
14942                           fi
14943                           cache=yes
14944
14945 else
14946
14947                           LINE=`grep "^wxUSE_PCX=" ${wx_arg_cache_file}`
14948                           if test "x$LINE" != x ; then
14949                             eval "DEFAULT_$LINE"
14950                           fi
14951
14952                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
14953
14954 fi
14955
14956
14957           eval "$wx_cv_use_pcx"
14958           if test "x$cache" = xyes; then
14959             echo "wxUSE_PCX=$wxUSE_PCX" >> ${wx_arg_cache_file}.tmp
14960           fi
14961
14962           if test x"$enablestring" = xdisable; then
14963             if test $wxUSE_PCX = yes; then
14964               result=no
14965             else
14966               result=yes
14967             fi
14968           else
14969             result=$wxUSE_PCX
14970           fi
14971
14972           { echo "$as_me:$LINENO: result: $result" >&5
14973 echo "${ECHO_T}$result" >&6; }
14974
14975
14976           enablestring=
14977           defaultval=$wxUSE_ALL_FEATURES
14978           if test -z "$defaultval"; then
14979               if test x"$enablestring" = xdisable; then
14980                   defaultval=yes
14981               else
14982                   defaultval=no
14983               fi
14984           fi
14985
14986           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
14987 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
14988           # Check whether --enable-tga was given.
14989 if test "${enable_tga+set}" = set; then
14990   enableval=$enable_tga;
14991                           if test "$enableval" = yes; then
14992                             wx_cv_use_tga='wxUSE_TGA=yes'
14993                           else
14994                             wx_cv_use_tga='wxUSE_TGA=no'
14995                           fi
14996                           cache=yes
14997
14998 else
14999
15000                           LINE=`grep "^wxUSE_TGA=" ${wx_arg_cache_file}`
15001                           if test "x$LINE" != x ; then
15002                             eval "DEFAULT_$LINE"
15003                           fi
15004
15005                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
15006
15007 fi
15008
15009
15010           eval "$wx_cv_use_tga"
15011           if test "x$cache" = xyes; then
15012             echo "wxUSE_TGA=$wxUSE_TGA" >> ${wx_arg_cache_file}.tmp
15013           fi
15014
15015           if test x"$enablestring" = xdisable; then
15016             if test $wxUSE_TGA = yes; then
15017               result=no
15018             else
15019               result=yes
15020             fi
15021           else
15022             result=$wxUSE_TGA
15023           fi
15024
15025           { echo "$as_me:$LINENO: result: $result" >&5
15026 echo "${ECHO_T}$result" >&6; }
15027
15028
15029           enablestring=
15030           defaultval=$wxUSE_ALL_FEATURES
15031           if test -z "$defaultval"; then
15032               if test x"$enablestring" = xdisable; then
15033                   defaultval=yes
15034               else
15035                   defaultval=no
15036               fi
15037           fi
15038
15039           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
15040 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
15041           # Check whether --enable-iff was given.
15042 if test "${enable_iff+set}" = set; then
15043   enableval=$enable_iff;
15044                           if test "$enableval" = yes; then
15045                             wx_cv_use_iff='wxUSE_IFF=yes'
15046                           else
15047                             wx_cv_use_iff='wxUSE_IFF=no'
15048                           fi
15049                           cache=yes
15050
15051 else
15052
15053                           LINE=`grep "^wxUSE_IFF=" ${wx_arg_cache_file}`
15054                           if test "x$LINE" != x ; then
15055                             eval "DEFAULT_$LINE"
15056                           fi
15057
15058                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
15059
15060 fi
15061
15062
15063           eval "$wx_cv_use_iff"
15064           if test "x$cache" = xyes; then
15065             echo "wxUSE_IFF=$wxUSE_IFF" >> ${wx_arg_cache_file}.tmp
15066           fi
15067
15068           if test x"$enablestring" = xdisable; then
15069             if test $wxUSE_IFF = yes; then
15070               result=no
15071             else
15072               result=yes
15073             fi
15074           else
15075             result=$wxUSE_IFF
15076           fi
15077
15078           { echo "$as_me:$LINENO: result: $result" >&5
15079 echo "${ECHO_T}$result" >&6; }
15080
15081
15082           enablestring=
15083           defaultval=$wxUSE_ALL_FEATURES
15084           if test -z "$defaultval"; then
15085               if test x"$enablestring" = xdisable; then
15086                   defaultval=yes
15087               else
15088                   defaultval=no
15089               fi
15090           fi
15091
15092           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
15093 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
15094           # Check whether --enable-pnm was given.
15095 if test "${enable_pnm+set}" = set; then
15096   enableval=$enable_pnm;
15097                           if test "$enableval" = yes; then
15098                             wx_cv_use_pnm='wxUSE_PNM=yes'
15099                           else
15100                             wx_cv_use_pnm='wxUSE_PNM=no'
15101                           fi
15102                           cache=yes
15103
15104 else
15105
15106                           LINE=`grep "^wxUSE_PNM=" ${wx_arg_cache_file}`
15107                           if test "x$LINE" != x ; then
15108                             eval "DEFAULT_$LINE"
15109                           fi
15110
15111                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
15112
15113 fi
15114
15115
15116           eval "$wx_cv_use_pnm"
15117           if test "x$cache" = xyes; then
15118             echo "wxUSE_PNM=$wxUSE_PNM" >> ${wx_arg_cache_file}.tmp
15119           fi
15120
15121           if test x"$enablestring" = xdisable; then
15122             if test $wxUSE_PNM = yes; then
15123               result=no
15124             else
15125               result=yes
15126             fi
15127           else
15128             result=$wxUSE_PNM
15129           fi
15130
15131           { echo "$as_me:$LINENO: result: $result" >&5
15132 echo "${ECHO_T}$result" >&6; }
15133
15134
15135           enablestring=
15136           defaultval=$wxUSE_ALL_FEATURES
15137           if test -z "$defaultval"; then
15138               if test x"$enablestring" = xdisable; then
15139                   defaultval=yes
15140               else
15141                   defaultval=no
15142               fi
15143           fi
15144
15145           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
15146 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
15147           # Check whether --enable-xpm was given.
15148 if test "${enable_xpm+set}" = set; then
15149   enableval=$enable_xpm;
15150                           if test "$enableval" = yes; then
15151                             wx_cv_use_xpm='wxUSE_XPM=yes'
15152                           else
15153                             wx_cv_use_xpm='wxUSE_XPM=no'
15154                           fi
15155                           cache=yes
15156
15157 else
15158
15159                           LINE=`grep "^wxUSE_XPM=" ${wx_arg_cache_file}`
15160                           if test "x$LINE" != x ; then
15161                             eval "DEFAULT_$LINE"
15162                           fi
15163
15164                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
15165
15166 fi
15167
15168
15169           eval "$wx_cv_use_xpm"
15170           if test "x$cache" = xyes; then
15171             echo "wxUSE_XPM=$wxUSE_XPM" >> ${wx_arg_cache_file}.tmp
15172           fi
15173
15174           if test x"$enablestring" = xdisable; then
15175             if test $wxUSE_XPM = yes; then
15176               result=no
15177             else
15178               result=yes
15179             fi
15180           else
15181             result=$wxUSE_XPM
15182           fi
15183
15184           { echo "$as_me:$LINENO: result: $result" >&5
15185 echo "${ECHO_T}$result" >&6; }
15186
15187
15188           enablestring=
15189           defaultval=$wxUSE_ALL_FEATURES
15190           if test -z "$defaultval"; then
15191               if test x"$enablestring" = xdisable; then
15192                   defaultval=yes
15193               else
15194                   defaultval=no
15195               fi
15196           fi
15197
15198           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
15199 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
15200           # Check whether --enable-ico_cur was given.
15201 if test "${enable_ico_cur+set}" = set; then
15202   enableval=$enable_ico_cur;
15203                           if test "$enableval" = yes; then
15204                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
15205                           else
15206                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
15207                           fi
15208                           cache=yes
15209
15210 else
15211
15212                           LINE=`grep "^wxUSE_ICO_CUR=" ${wx_arg_cache_file}`
15213                           if test "x$LINE" != x ; then
15214                             eval "DEFAULT_$LINE"
15215                           fi
15216
15217                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
15218
15219 fi
15220
15221
15222           eval "$wx_cv_use_ico_cur"
15223           if test "x$cache" = xyes; then
15224             echo "wxUSE_ICO_CUR=$wxUSE_ICO_CUR" >> ${wx_arg_cache_file}.tmp
15225           fi
15226
15227           if test x"$enablestring" = xdisable; then
15228             if test $wxUSE_ICO_CUR = yes; then
15229               result=no
15230             else
15231               result=yes
15232             fi
15233           else
15234             result=$wxUSE_ICO_CUR
15235           fi
15236
15237           { echo "$as_me:$LINENO: result: $result" >&5
15238 echo "${ECHO_T}$result" >&6; }
15239
15240
15241
15242
15243           enablestring=
15244           defaultval=$wxUSE_ALL_FEATURES
15245           if test -z "$defaultval"; then
15246               if test x"$enablestring" = xdisable; then
15247                   defaultval=yes
15248               else
15249                   defaultval=no
15250               fi
15251           fi
15252
15253           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
15254 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
15255           # Check whether --enable-dccache was given.
15256 if test "${enable_dccache+set}" = set; then
15257   enableval=$enable_dccache;
15258                           if test "$enableval" = yes; then
15259                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
15260                           else
15261                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
15262                           fi
15263                           cache=yes
15264
15265 else
15266
15267                           LINE=`grep "^wxUSE_DC_CACHEING=" ${wx_arg_cache_file}`
15268                           if test "x$LINE" != x ; then
15269                             eval "DEFAULT_$LINE"
15270                           fi
15271
15272                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
15273
15274 fi
15275
15276
15277           eval "$wx_cv_use_dccache"
15278           if test "x$cache" = xyes; then
15279             echo "wxUSE_DC_CACHEING=$wxUSE_DC_CACHEING" >> ${wx_arg_cache_file}.tmp
15280           fi
15281
15282           if test x"$enablestring" = xdisable; then
15283             if test $wxUSE_DC_CACHEING = yes; then
15284               result=no
15285             else
15286               result=yes
15287             fi
15288           else
15289             result=$wxUSE_DC_CACHEING
15290           fi
15291
15292           { echo "$as_me:$LINENO: result: $result" >&5
15293 echo "${ECHO_T}$result" >&6; }
15294
15295
15296           enablestring=
15297           defaultval=$wxUSE_ALL_FEATURES
15298           if test -z "$defaultval"; then
15299               if test x"$enablestring" = xdisable; then
15300                   defaultval=yes
15301               else
15302                   defaultval=no
15303               fi
15304           fi
15305
15306           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
15307 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
15308           # Check whether --enable-uxtheme was given.
15309 if test "${enable_uxtheme+set}" = set; then
15310   enableval=$enable_uxtheme;
15311                           if test "$enableval" = yes; then
15312                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
15313                           else
15314                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
15315                           fi
15316                           cache=yes
15317
15318 else
15319
15320                           LINE=`grep "^wxUSE_UXTHEME=" ${wx_arg_cache_file}`
15321                           if test "x$LINE" != x ; then
15322                             eval "DEFAULT_$LINE"
15323                           fi
15324
15325                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
15326
15327 fi
15328
15329
15330           eval "$wx_cv_use_uxtheme"
15331           if test "x$cache" = xyes; then
15332             echo "wxUSE_UXTHEME=$wxUSE_UXTHEME" >> ${wx_arg_cache_file}.tmp
15333           fi
15334
15335           if test x"$enablestring" = xdisable; then
15336             if test $wxUSE_UXTHEME = yes; then
15337               result=no
15338             else
15339               result=yes
15340             fi
15341           else
15342             result=$wxUSE_UXTHEME
15343           fi
15344
15345           { echo "$as_me:$LINENO: result: $result" >&5
15346 echo "${ECHO_T}$result" >&6; }
15347
15348
15349           enablestring=
15350           defaultval=$wxUSE_ALL_FEATURES
15351           if test -z "$defaultval"; then
15352               if test x"$enablestring" = xdisable; then
15353                   defaultval=yes
15354               else
15355                   defaultval=no
15356               fi
15357           fi
15358
15359           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
15360 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
15361           # Check whether --enable-wxdib was given.
15362 if test "${enable_wxdib+set}" = set; then
15363   enableval=$enable_wxdib;
15364                           if test "$enableval" = yes; then
15365                             wx_cv_use_wxdib='wxUSE_DIB=yes'
15366                           else
15367                             wx_cv_use_wxdib='wxUSE_DIB=no'
15368                           fi
15369                           cache=yes
15370
15371 else
15372
15373                           LINE=`grep "^wxUSE_DIB=" ${wx_arg_cache_file}`
15374                           if test "x$LINE" != x ; then
15375                             eval "DEFAULT_$LINE"
15376                           fi
15377
15378                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
15379
15380 fi
15381
15382
15383           eval "$wx_cv_use_wxdib"
15384           if test "x$cache" = xyes; then
15385             echo "wxUSE_DIB=$wxUSE_DIB" >> ${wx_arg_cache_file}.tmp
15386           fi
15387
15388           if test x"$enablestring" = xdisable; then
15389             if test $wxUSE_DIB = yes; then
15390               result=no
15391             else
15392               result=yes
15393             fi
15394           else
15395             result=$wxUSE_DIB
15396           fi
15397
15398           { echo "$as_me:$LINENO: result: $result" >&5
15399 echo "${ECHO_T}$result" >&6; }
15400
15401
15402 fi
15403
15404
15405           echo "saving argument cache $wx_arg_cache_file"
15406           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
15407
15408
15409
15410 { echo "$as_me:$LINENO: checking for toolkit" >&5
15411 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
15412
15413 # In Wine, we need to default to MSW, not GTK or MOTIF
15414 if test "$wxUSE_WINE" = "yes"; then
15415     DEFAULT_DEFAULT_wxUSE_GTK=0
15416     DEFAULT_DEFAULT_wxUSE_MOTIF=0
15417     DEFAULT_DEFAULT_wxUSE_MSW=1
15418     wxUSE_SHARED=no
15419     CC=${CC:-winegcc}
15420     CXX=${CXX:-wineg++}
15421 fi
15422
15423
15424 if test "$wxUSE_GUI" = "yes"; then
15425
15426     if test "$USE_BEOS" = 1; then
15427         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
15428 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
15429    { (exit 1); exit 1; }; }
15430     fi
15431
15432     if test "$TOOLKIT_GIVEN" = 1; then
15433             for toolkit in `echo $ALL_TOOLKITS`; do
15434         var=wxUSE_$toolkit
15435         eval "value=\$${var}"
15436         if test "x$value" = "xno"; then
15437           eval "$var=0"
15438         elif test "x$value" != "x"; then
15439           eval "$var=1"
15440         fi
15441
15442         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
15443           eval "wx${toolkit}_VERSION=$value"
15444         fi
15445       done
15446     else
15447             for toolkit in `echo $ALL_TOOLKITS`; do
15448         if test "$has_toolkit_in_cache" != 1; then
15449           var=DEFAULT_DEFAULT_wxUSE_$toolkit
15450         else
15451           var=DEFAULT_wxUSE_$toolkit
15452
15453           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
15454           if test "x$version" != "x"; then
15455             eval "wx${toolkit}_VERSION=$version"
15456           fi
15457         fi
15458         eval "wxUSE_$toolkit=\$${var}"
15459       done
15460     fi
15461
15462             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
15463                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
15464                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
15465
15466         case "${host}" in
15467       *-pc-os2_emx | *-pc-os2-emx )
15468         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
15469     esac
15470
15471     case "$NUM_TOOLKITS" in
15472       1)
15473       ;;
15474       0)
15475         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
15476 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
15477    { (exit 1); exit 1; }; }
15478       ;;
15479       *)
15480         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
15481 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
15482    { (exit 1); exit 1; }; }
15483     esac
15484
15485     # to be removed when --disable-gtk2 isn't needed
15486     if test "x$wxUSE_GTK2" = "xyes"; then
15487         wxGTK_VERSION=2
15488     elif test "x$wxUSE_GTK2" = "xno"; then
15489         wxGTK_VERSION=1
15490     fi
15491
15492         for toolkit in `echo $ALL_TOOLKITS`; do
15493       var=wxUSE_$toolkit
15494       eval "value=\$${var}"
15495       if test "x$value" != x; then
15496         cache_var=CACHE_$toolkit
15497         eval "cache=\$${cache_var}"
15498         if test "$cache" = 1; then
15499           echo "$var=$value" >> ${wx_arg_cache_file}
15500           eval "version=\$wx${toolkit}_VERSION"
15501           if test "x$version" != "x"; then
15502             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
15503           fi
15504         fi
15505         if test "$value" = 1; then
15506           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
15507           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
15508 echo "${ECHO_T}$toolkit_echo" >&6; }
15509         fi
15510       fi
15511     done
15512 else
15513     if test "x$host_alias" != "x"; then
15514         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
15515 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
15516     else
15517         { echo "$as_me:$LINENO: result: base only" >&5
15518 echo "${ECHO_T}base only" >&6; }
15519     fi
15520 fi
15521
15522
15523 cat >confcache <<\_ACEOF
15524 # This file is a shell script that caches the results of configure
15525 # tests run on this system so they can be shared between configure
15526 # scripts and configure runs, see configure's option --config-cache.
15527 # It is not useful on other systems.  If it contains results you don't
15528 # want to keep, you may remove or edit it.
15529 #
15530 # config.status only pays attention to the cache file if you give it
15531 # the --recheck option to rerun configure.
15532 #
15533 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15534 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15535 # following values.
15536
15537 _ACEOF
15538
15539 # The following way of writing the cache mishandles newlines in values,
15540 # but we know of no workaround that is simple, portable, and efficient.
15541 # So, we kill variables containing newlines.
15542 # Ultrix sh set writes to stderr and can't be redirected directly,
15543 # and sets the high bit in the cache file unless we assign to the vars.
15544 (
15545   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15546     eval ac_val=\$$ac_var
15547     case $ac_val in #(
15548     *${as_nl}*)
15549       case $ac_var in #(
15550       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15551 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15552       esac
15553       case $ac_var in #(
15554       _ | IFS | as_nl) ;; #(
15555       *) $as_unset $ac_var ;;
15556       esac ;;
15557     esac
15558   done
15559
15560   (set) 2>&1 |
15561     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15562     *${as_nl}ac_space=\ *)
15563       # `set' does not quote correctly, so add quotes (double-quote
15564       # substitution turns \\\\ into \\, and sed turns \\ into \).
15565       sed -n \
15566         "s/'/'\\\\''/g;
15567           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15568       ;; #(
15569     *)
15570       # `set' quotes correctly as required by POSIX, so do not add quotes.
15571       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15572       ;;
15573     esac |
15574     sort
15575 ) |
15576   sed '
15577      /^ac_cv_env_/b end
15578      t clear
15579      :clear
15580      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15581      t end
15582      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15583      :end' >>confcache
15584 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15585   if test -w "$cache_file"; then
15586     test "x$cache_file" != "x/dev/null" &&
15587       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15588 echo "$as_me: updating cache $cache_file" >&6;}
15589     cat confcache >$cache_file
15590   else
15591     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15592 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15593   fi
15594 fi
15595 rm -f confcache
15596
15597 CFLAGS=${CFLAGS:=}
15598
15599
15600
15601     ac_ext=c
15602 ac_cpp='$CPP $CPPFLAGS'
15603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15606 if test -n "$ac_tool_prefix"; then
15607   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
15609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15611 if test "${ac_cv_prog_CC+set}" = set; then
15612   echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614   if test -n "$CC"; then
15615   ac_cv_prog_CC="$CC" # Let the user override the test.
15616 else
15617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15618 for as_dir in $PATH
15619 do
15620   IFS=$as_save_IFS
15621   test -z "$as_dir" && as_dir=.
15622   for ac_exec_ext in '' $ac_executable_extensions; do
15623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15624     ac_cv_prog_CC="${ac_tool_prefix}gcc"
15625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15626     break 2
15627   fi
15628 done
15629 done
15630 IFS=$as_save_IFS
15631
15632 fi
15633 fi
15634 CC=$ac_cv_prog_CC
15635 if test -n "$CC"; then
15636   { echo "$as_me:$LINENO: result: $CC" >&5
15637 echo "${ECHO_T}$CC" >&6; }
15638 else
15639   { echo "$as_me:$LINENO: result: no" >&5
15640 echo "${ECHO_T}no" >&6; }
15641 fi
15642
15643
15644 fi
15645 if test -z "$ac_cv_prog_CC"; then
15646   ac_ct_CC=$CC
15647   # Extract the first word of "gcc", so it can be a program name with args.
15648 set dummy gcc; ac_word=$2
15649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15652   echo $ECHO_N "(cached) $ECHO_C" >&6
15653 else
15654   if test -n "$ac_ct_CC"; then
15655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15656 else
15657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15658 for as_dir in $PATH
15659 do
15660   IFS=$as_save_IFS
15661   test -z "$as_dir" && as_dir=.
15662   for ac_exec_ext in '' $ac_executable_extensions; do
15663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15664     ac_cv_prog_ac_ct_CC="gcc"
15665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15666     break 2
15667   fi
15668 done
15669 done
15670 IFS=$as_save_IFS
15671
15672 fi
15673 fi
15674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15675 if test -n "$ac_ct_CC"; then
15676   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15677 echo "${ECHO_T}$ac_ct_CC" >&6; }
15678 else
15679   { echo "$as_me:$LINENO: result: no" >&5
15680 echo "${ECHO_T}no" >&6; }
15681 fi
15682
15683   if test "x$ac_ct_CC" = x; then
15684     CC=""
15685   else
15686     case $cross_compiling:$ac_tool_warned in
15687 yes:)
15688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15689 whose name does not start with the host triplet.  If you think this
15690 configuration is useful to you, please write to autoconf@gnu.org." >&5
15691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15692 whose name does not start with the host triplet.  If you think this
15693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15694 ac_tool_warned=yes ;;
15695 esac
15696     CC=$ac_ct_CC
15697   fi
15698 else
15699   CC="$ac_cv_prog_CC"
15700 fi
15701
15702 if test -z "$CC"; then
15703           if test -n "$ac_tool_prefix"; then
15704     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15705 set dummy ${ac_tool_prefix}cc; ac_word=$2
15706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15708 if test "${ac_cv_prog_CC+set}" = set; then
15709   echo $ECHO_N "(cached) $ECHO_C" >&6
15710 else
15711   if test -n "$CC"; then
15712   ac_cv_prog_CC="$CC" # Let the user override the test.
15713 else
15714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15715 for as_dir in $PATH
15716 do
15717   IFS=$as_save_IFS
15718   test -z "$as_dir" && as_dir=.
15719   for ac_exec_ext in '' $ac_executable_extensions; do
15720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15721     ac_cv_prog_CC="${ac_tool_prefix}cc"
15722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15723     break 2
15724   fi
15725 done
15726 done
15727 IFS=$as_save_IFS
15728
15729 fi
15730 fi
15731 CC=$ac_cv_prog_CC
15732 if test -n "$CC"; then
15733   { echo "$as_me:$LINENO: result: $CC" >&5
15734 echo "${ECHO_T}$CC" >&6; }
15735 else
15736   { echo "$as_me:$LINENO: result: no" >&5
15737 echo "${ECHO_T}no" >&6; }
15738 fi
15739
15740
15741   fi
15742 fi
15743 if test -z "$CC"; then
15744   # Extract the first word of "cc", so it can be a program name with args.
15745 set dummy cc; ac_word=$2
15746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15748 if test "${ac_cv_prog_CC+set}" = set; then
15749   echo $ECHO_N "(cached) $ECHO_C" >&6
15750 else
15751   if test -n "$CC"; then
15752   ac_cv_prog_CC="$CC" # Let the user override the test.
15753 else
15754   ac_prog_rejected=no
15755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15756 for as_dir in $PATH
15757 do
15758   IFS=$as_save_IFS
15759   test -z "$as_dir" && as_dir=.
15760   for ac_exec_ext in '' $ac_executable_extensions; do
15761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15762     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15763        ac_prog_rejected=yes
15764        continue
15765      fi
15766     ac_cv_prog_CC="cc"
15767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15768     break 2
15769   fi
15770 done
15771 done
15772 IFS=$as_save_IFS
15773
15774 if test $ac_prog_rejected = yes; then
15775   # We found a bogon in the path, so make sure we never use it.
15776   set dummy $ac_cv_prog_CC
15777   shift
15778   if test $# != 0; then
15779     # We chose a different compiler from the bogus one.
15780     # However, it has the same basename, so the bogon will be chosen
15781     # first if we set CC to just the basename; use the full file name.
15782     shift
15783     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15784   fi
15785 fi
15786 fi
15787 fi
15788 CC=$ac_cv_prog_CC
15789 if test -n "$CC"; then
15790   { echo "$as_me:$LINENO: result: $CC" >&5
15791 echo "${ECHO_T}$CC" >&6; }
15792 else
15793   { echo "$as_me:$LINENO: result: no" >&5
15794 echo "${ECHO_T}no" >&6; }
15795 fi
15796
15797
15798 fi
15799 if test -z "$CC"; then
15800   if test -n "$ac_tool_prefix"; then
15801   for ac_prog in cl.exe
15802   do
15803     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15807 if test "${ac_cv_prog_CC+set}" = set; then
15808   echo $ECHO_N "(cached) $ECHO_C" >&6
15809 else
15810   if test -n "$CC"; then
15811   ac_cv_prog_CC="$CC" # Let the user override the test.
15812 else
15813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15814 for as_dir in $PATH
15815 do
15816   IFS=$as_save_IFS
15817   test -z "$as_dir" && as_dir=.
15818   for ac_exec_ext in '' $ac_executable_extensions; do
15819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15820     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15822     break 2
15823   fi
15824 done
15825 done
15826 IFS=$as_save_IFS
15827
15828 fi
15829 fi
15830 CC=$ac_cv_prog_CC
15831 if test -n "$CC"; then
15832   { echo "$as_me:$LINENO: result: $CC" >&5
15833 echo "${ECHO_T}$CC" >&6; }
15834 else
15835   { echo "$as_me:$LINENO: result: no" >&5
15836 echo "${ECHO_T}no" >&6; }
15837 fi
15838
15839
15840     test -n "$CC" && break
15841   done
15842 fi
15843 if test -z "$CC"; then
15844   ac_ct_CC=$CC
15845   for ac_prog in cl.exe
15846 do
15847   # Extract the first word of "$ac_prog", so it can be a program name with args.
15848 set dummy $ac_prog; ac_word=$2
15849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15851 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15852   echo $ECHO_N "(cached) $ECHO_C" >&6
15853 else
15854   if test -n "$ac_ct_CC"; then
15855   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15856 else
15857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15858 for as_dir in $PATH
15859 do
15860   IFS=$as_save_IFS
15861   test -z "$as_dir" && as_dir=.
15862   for ac_exec_ext in '' $ac_executable_extensions; do
15863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15864     ac_cv_prog_ac_ct_CC="$ac_prog"
15865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15866     break 2
15867   fi
15868 done
15869 done
15870 IFS=$as_save_IFS
15871
15872 fi
15873 fi
15874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15875 if test -n "$ac_ct_CC"; then
15876   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15877 echo "${ECHO_T}$ac_ct_CC" >&6; }
15878 else
15879   { echo "$as_me:$LINENO: result: no" >&5
15880 echo "${ECHO_T}no" >&6; }
15881 fi
15882
15883
15884   test -n "$ac_ct_CC" && break
15885 done
15886
15887   if test "x$ac_ct_CC" = x; then
15888     CC=""
15889   else
15890     case $cross_compiling:$ac_tool_warned in
15891 yes:)
15892 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15893 whose name does not start with the host triplet.  If you think this
15894 configuration is useful to you, please write to autoconf@gnu.org." >&5
15895 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15896 whose name does not start with the host triplet.  If you think this
15897 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15898 ac_tool_warned=yes ;;
15899 esac
15900     CC=$ac_ct_CC
15901   fi
15902 fi
15903
15904 fi
15905
15906
15907 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15908 See \`config.log' for more details." >&5
15909 echo "$as_me: error: no acceptable C compiler found in \$PATH
15910 See \`config.log' for more details." >&2;}
15911    { (exit 1); exit 1; }; }
15912
15913 # Provide some information about the compiler.
15914 echo "$as_me:$LINENO: checking for C compiler version" >&5
15915 ac_compiler=`set X $ac_compile; echo $2`
15916 { (ac_try="$ac_compiler --version >&5"
15917 case "(($ac_try" in
15918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919   *) ac_try_echo=$ac_try;;
15920 esac
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922   (eval "$ac_compiler --version >&5") 2>&5
15923   ac_status=$?
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); }
15926 { (ac_try="$ac_compiler -v >&5"
15927 case "(($ac_try" in
15928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929   *) ac_try_echo=$ac_try;;
15930 esac
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932   (eval "$ac_compiler -v >&5") 2>&5
15933   ac_status=$?
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); }
15936 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
15943   ac_status=$?
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); }
15946
15947 cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h.  */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h.  */
15953
15954 int
15955 main ()
15956 {
15957
15958   ;
15959   return 0;
15960 }
15961 _ACEOF
15962 ac_clean_files_save=$ac_clean_files
15963 ac_clean_files="$ac_clean_files a.out a.exe b.out"
15964 # Try to create an executable without -o first, disregard a.out.
15965 # It will help us diagnose broken compilers, and finding out an intuition
15966 # of exeext.
15967 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
15968 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
15969 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
15970 #
15971 # List of possible output files, starting from the most likely.
15972 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
15973 # only as a last resort.  b.out is created by i960 compilers.
15974 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
15975 #
15976 # The IRIX 6 linker writes into existing files which may not be
15977 # executable, retaining their permissions.  Remove them first so a
15978 # subsequent execution test works.
15979 ac_rmfiles=
15980 for ac_file in $ac_files
15981 do
15982   case $ac_file in
15983     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
15984     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
15985   esac
15986 done
15987 rm -f $ac_rmfiles
15988
15989 if { (ac_try="$ac_link_default"
15990 case "(($ac_try" in
15991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992   *) ac_try_echo=$ac_try;;
15993 esac
15994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15995   (eval "$ac_link_default") 2>&5
15996   ac_status=$?
15997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998   (exit $ac_status); }; then
15999   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
16000 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
16001 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
16002 # so that the user can short-circuit this test for compilers unknown to
16003 # Autoconf.
16004 for ac_file in $ac_files ''
16005 do
16006   test -f "$ac_file" || continue
16007   case $ac_file in
16008     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
16009         ;;
16010     [ab].out )
16011         # We found the default executable, but exeext='' is most
16012         # certainly right.
16013         break;;
16014     *.* )
16015         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
16016         then :; else
16017            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
16018         fi
16019         # We set ac_cv_exeext here because the later test for it is not
16020         # safe: cross compilers may not add the suffix if given an `-o'
16021         # argument, so we may need to know it at that point already.
16022         # Even if this section looks crufty: it has the advantage of
16023         # actually working.
16024         break;;
16025     * )
16026         break;;
16027   esac
16028 done
16029 test "$ac_cv_exeext" = no && ac_cv_exeext=
16030
16031 else
16032   ac_file=''
16033 fi
16034
16035 { echo "$as_me:$LINENO: result: $ac_file" >&5
16036 echo "${ECHO_T}$ac_file" >&6; }
16037 if test -z "$ac_file"; then
16038   echo "$as_me: failed program was:" >&5
16039 sed 's/^/| /' conftest.$ac_ext >&5
16040
16041 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
16042 See \`config.log' for more details." >&5
16043 echo "$as_me: error: C compiler cannot create executables
16044 See \`config.log' for more details." >&2;}
16045    { (exit 77); exit 77; }; }
16046 fi
16047
16048 ac_exeext=$ac_cv_exeext
16049
16050 # Check that the compiler produces executables we can run.  If not, either
16051 # the compiler is broken, or we cross compile.
16052 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
16053 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
16054 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
16055 # If not cross compiling, check that we can run a simple program.
16056 if test "$cross_compiling" != yes; then
16057   if { ac_try='./$ac_file'
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     cross_compiling=no
16068   else
16069     if test "$cross_compiling" = maybe; then
16070         cross_compiling=yes
16071     else
16072         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
16073 If you meant to cross compile, use \`--host'.
16074 See \`config.log' for more details." >&5
16075 echo "$as_me: error: cannot run C compiled programs.
16076 If you meant to cross compile, use \`--host'.
16077 See \`config.log' for more details." >&2;}
16078    { (exit 1); exit 1; }; }
16079     fi
16080   fi
16081 fi
16082 { echo "$as_me:$LINENO: result: yes" >&5
16083 echo "${ECHO_T}yes" >&6; }
16084
16085 rm -f a.out a.exe conftest$ac_cv_exeext b.out
16086 ac_clean_files=$ac_clean_files_save
16087 # Check that the compiler produces executables we can run.  If not, either
16088 # the compiler is broken, or we cross compile.
16089 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
16090 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
16091 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
16092 echo "${ECHO_T}$cross_compiling" >&6; }
16093
16094 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
16095 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
16096 if { (ac_try="$ac_link"
16097 case "(($ac_try" in
16098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099   *) ac_try_echo=$ac_try;;
16100 esac
16101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102   (eval "$ac_link") 2>&5
16103   ac_status=$?
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); }; then
16106   # If both `conftest.exe' and `conftest' are `present' (well, observable)
16107 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
16108 # work properly (i.e., refer to `conftest.exe'), while it won't with
16109 # `rm'.
16110 for ac_file in conftest.exe conftest conftest.*; do
16111   test -f "$ac_file" || continue
16112   case $ac_file in
16113     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
16114     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
16115           break;;
16116     * ) break;;
16117   esac
16118 done
16119 else
16120   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
16121 See \`config.log' for more details." >&5
16122 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
16123 See \`config.log' for more details." >&2;}
16124    { (exit 1); exit 1; }; }
16125 fi
16126
16127 rm -f conftest$ac_cv_exeext
16128 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
16129 echo "${ECHO_T}$ac_cv_exeext" >&6; }
16130
16131 rm -f conftest.$ac_ext
16132 EXEEXT=$ac_cv_exeext
16133 ac_exeext=$EXEEXT
16134 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
16135 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
16136 if test "${ac_cv_objext+set}" = set; then
16137   echo $ECHO_N "(cached) $ECHO_C" >&6
16138 else
16139   cat >conftest.$ac_ext <<_ACEOF
16140 /* confdefs.h.  */
16141 _ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h.  */
16145
16146 int
16147 main ()
16148 {
16149
16150   ;
16151   return 0;
16152 }
16153 _ACEOF
16154 rm -f conftest.o conftest.obj
16155 if { (ac_try="$ac_compile"
16156 case "(($ac_try" in
16157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158   *) ac_try_echo=$ac_try;;
16159 esac
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161   (eval "$ac_compile") 2>&5
16162   ac_status=$?
16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164   (exit $ac_status); }; then
16165   for ac_file in conftest.o conftest.obj conftest.*; do
16166   test -f "$ac_file" || continue;
16167   case $ac_file in
16168     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
16169     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
16170        break;;
16171   esac
16172 done
16173 else
16174   echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.$ac_ext >&5
16176
16177 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
16178 See \`config.log' for more details." >&5
16179 echo "$as_me: error: cannot compute suffix of object files: cannot compile
16180 See \`config.log' for more details." >&2;}
16181    { (exit 1); exit 1; }; }
16182 fi
16183
16184 rm -f conftest.$ac_cv_objext conftest.$ac_ext
16185 fi
16186 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
16187 echo "${ECHO_T}$ac_cv_objext" >&6; }
16188 OBJEXT=$ac_cv_objext
16189 ac_objext=$OBJEXT
16190 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
16191 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
16192 if test "${ac_cv_c_compiler_gnu+set}" = set; then
16193   echo $ECHO_N "(cached) $ECHO_C" >&6
16194 else
16195   cat >conftest.$ac_ext <<_ACEOF
16196 /* confdefs.h.  */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h.  */
16201
16202 int
16203 main ()
16204 {
16205 #ifndef __GNUC__
16206        choke me
16207 #endif
16208
16209   ;
16210   return 0;
16211 }
16212 _ACEOF
16213 rm -f conftest.$ac_objext
16214 if { (ac_try="$ac_compile"
16215 case "(($ac_try" in
16216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217   *) ac_try_echo=$ac_try;;
16218 esac
16219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220   (eval "$ac_compile") 2>conftest.er1
16221   ac_status=$?
16222   grep -v '^ *+' conftest.er1 >conftest.err
16223   rm -f conftest.er1
16224   cat conftest.err >&5
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); } && {
16227          test -z "$ac_c_werror_flag" ||
16228          test ! -s conftest.err
16229        } && test -s conftest.$ac_objext; then
16230   ac_compiler_gnu=yes
16231 else
16232   echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16234
16235         ac_compiler_gnu=no
16236 fi
16237
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16240
16241 fi
16242 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
16243 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
16244 GCC=`test $ac_compiler_gnu = yes && echo yes`
16245 ac_test_CFLAGS=${CFLAGS+set}
16246 ac_save_CFLAGS=$CFLAGS
16247 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16248 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16249 if test "${ac_cv_prog_cc_g+set}" = set; then
16250   echo $ECHO_N "(cached) $ECHO_C" >&6
16251 else
16252   ac_save_c_werror_flag=$ac_c_werror_flag
16253    ac_c_werror_flag=yes
16254    ac_cv_prog_cc_g=no
16255    CFLAGS="-g"
16256    cat >conftest.$ac_ext <<_ACEOF
16257 /* confdefs.h.  */
16258 _ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h.  */
16262
16263 int
16264 main ()
16265 {
16266
16267   ;
16268   return 0;
16269 }
16270 _ACEOF
16271 rm -f conftest.$ac_objext
16272 if { (ac_try="$ac_compile"
16273 case "(($ac_try" in
16274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275   *) ac_try_echo=$ac_try;;
16276 esac
16277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278   (eval "$ac_compile") 2>conftest.er1
16279   ac_status=$?
16280   grep -v '^ *+' conftest.er1 >conftest.err
16281   rm -f conftest.er1
16282   cat conftest.err >&5
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); } && {
16285          test -z "$ac_c_werror_flag" ||
16286          test ! -s conftest.err
16287        } && test -s conftest.$ac_objext; then
16288   ac_cv_prog_cc_g=yes
16289 else
16290   echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293         CFLAGS=""
16294       cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h.  */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h.  */
16300
16301 int
16302 main ()
16303 {
16304
16305   ;
16306   return 0;
16307 }
16308 _ACEOF
16309 rm -f conftest.$ac_objext
16310 if { (ac_try="$ac_compile"
16311 case "(($ac_try" in
16312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313   *) ac_try_echo=$ac_try;;
16314 esac
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316   (eval "$ac_compile") 2>conftest.er1
16317   ac_status=$?
16318   grep -v '^ *+' conftest.er1 >conftest.err
16319   rm -f conftest.er1
16320   cat conftest.err >&5
16321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322   (exit $ac_status); } && {
16323          test -z "$ac_c_werror_flag" ||
16324          test ! -s conftest.err
16325        } && test -s conftest.$ac_objext; then
16326   :
16327 else
16328   echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16330
16331         ac_c_werror_flag=$ac_save_c_werror_flag
16332          CFLAGS="-g"
16333          cat >conftest.$ac_ext <<_ACEOF
16334 /* confdefs.h.  */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h.  */
16339
16340 int
16341 main ()
16342 {
16343
16344   ;
16345   return 0;
16346 }
16347 _ACEOF
16348 rm -f conftest.$ac_objext
16349 if { (ac_try="$ac_compile"
16350 case "(($ac_try" in
16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352   *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355   (eval "$ac_compile") 2>conftest.er1
16356   ac_status=$?
16357   grep -v '^ *+' conftest.er1 >conftest.err
16358   rm -f conftest.er1
16359   cat conftest.err >&5
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); } && {
16362          test -z "$ac_c_werror_flag" ||
16363          test ! -s conftest.err
16364        } && test -s conftest.$ac_objext; then
16365   ac_cv_prog_cc_g=yes
16366 else
16367   echo "$as_me: failed program was:" >&5
16368 sed 's/^/| /' conftest.$ac_ext >&5
16369
16370
16371 fi
16372
16373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 fi
16375
16376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377 fi
16378
16379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16380    ac_c_werror_flag=$ac_save_c_werror_flag
16381 fi
16382 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16383 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16384 if test "$ac_test_CFLAGS" = set; then
16385   CFLAGS=$ac_save_CFLAGS
16386 elif test $ac_cv_prog_cc_g = yes; then
16387   if test "$GCC" = yes; then
16388     CFLAGS="-g -O2"
16389   else
16390     CFLAGS="-g"
16391   fi
16392 else
16393   if test "$GCC" = yes; then
16394     CFLAGS="-O2"
16395   else
16396     CFLAGS=
16397   fi
16398 fi
16399 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
16400 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
16401 if test "${ac_cv_prog_cc_c89+set}" = set; then
16402   echo $ECHO_N "(cached) $ECHO_C" >&6
16403 else
16404   ac_cv_prog_cc_c89=no
16405 ac_save_CC=$CC
16406 cat >conftest.$ac_ext <<_ACEOF
16407 /* confdefs.h.  */
16408 _ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h.  */
16412 #include <stdarg.h>
16413 #include <stdio.h>
16414 #include <sys/types.h>
16415 #include <sys/stat.h>
16416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16417 struct buf { int x; };
16418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16419 static char *e (p, i)
16420      char **p;
16421      int i;
16422 {
16423   return p[i];
16424 }
16425 static char *f (char * (*g) (char **, int), char **p, ...)
16426 {
16427   char *s;
16428   va_list v;
16429   va_start (v,p);
16430   s = g (p, va_arg (v,int));
16431   va_end (v);
16432   return s;
16433 }
16434
16435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16436    function prototypes and stuff, but not '\xHH' hex character constants.
16437    These don't provoke an error unfortunately, instead are silently treated
16438    as 'x'.  The following induces an error, until -std is added to get
16439    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16440    array size at least.  It's necessary to write '\x00'==0 to get something
16441    that's true only with -std.  */
16442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16443
16444 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16445    inside strings and character constants.  */
16446 #define FOO(x) 'x'
16447 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16448
16449 int test (int i, double x);
16450 struct s1 {int (*f) (int a);};
16451 struct s2 {int (*f) (double a);};
16452 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16453 int argc;
16454 char **argv;
16455 int
16456 main ()
16457 {
16458 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16459   ;
16460   return 0;
16461 }
16462 _ACEOF
16463 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16464         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16465 do
16466   CC="$ac_save_CC $ac_arg"
16467   rm -f conftest.$ac_objext
16468 if { (ac_try="$ac_compile"
16469 case "(($ac_try" in
16470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471   *) ac_try_echo=$ac_try;;
16472 esac
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474   (eval "$ac_compile") 2>conftest.er1
16475   ac_status=$?
16476   grep -v '^ *+' conftest.er1 >conftest.err
16477   rm -f conftest.er1
16478   cat conftest.err >&5
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); } && {
16481          test -z "$ac_c_werror_flag" ||
16482          test ! -s conftest.err
16483        } && test -s conftest.$ac_objext; then
16484   ac_cv_prog_cc_c89=$ac_arg
16485 else
16486   echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16488
16489
16490 fi
16491
16492 rm -f core conftest.err conftest.$ac_objext
16493   test "x$ac_cv_prog_cc_c89" != "xno" && break
16494 done
16495 rm -f conftest.$ac_ext
16496 CC=$ac_save_CC
16497
16498 fi
16499 # AC_CACHE_VAL
16500 case "x$ac_cv_prog_cc_c89" in
16501   x)
16502     { echo "$as_me:$LINENO: result: none needed" >&5
16503 echo "${ECHO_T}none needed" >&6; } ;;
16504   xno)
16505     { echo "$as_me:$LINENO: result: unsupported" >&5
16506 echo "${ECHO_T}unsupported" >&6; } ;;
16507   *)
16508     CC="$CC $ac_cv_prog_cc_c89"
16509     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
16510 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
16511 esac
16512
16513
16514 ac_ext=c
16515 ac_cpp='$CPP $CPPFLAGS'
16516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16519
16520
16521
16522
16523     ac_ext=c
16524 ac_cpp='$CPP $CPPFLAGS'
16525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16528
16529     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
16530 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
16531 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
16532   echo $ECHO_N "(cached) $ECHO_C" >&6
16533 else
16534   cat >conftest.$ac_ext <<_ACEOF
16535 /* confdefs.h.  */
16536 _ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h.  */
16540
16541 int
16542 main ()
16543 {
16544
16545              #ifndef __INTEL_COMPILER
16546                 choke me
16547              #endif
16548
16549   ;
16550   return 0;
16551 }
16552 _ACEOF
16553 rm -f conftest.$ac_objext
16554 if { (ac_try="$ac_compile"
16555 case "(($ac_try" in
16556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557   *) ac_try_echo=$ac_try;;
16558 esac
16559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560   (eval "$ac_compile") 2>conftest.er1
16561   ac_status=$?
16562   grep -v '^ *+' conftest.er1 >conftest.err
16563   rm -f conftest.er1
16564   cat conftest.err >&5
16565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566   (exit $ac_status); } && {
16567          test -z "$ac_c_werror_flag" ||
16568          test ! -s conftest.err
16569        } && test -s conftest.$ac_objext; then
16570   bakefile_cv_c_compiler___INTEL_COMPILER=yes
16571 else
16572   echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16574
16575         bakefile_cv_c_compiler___INTEL_COMPILER=no
16576
16577 fi
16578
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580
16581
16582 fi
16583 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
16584 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
16585     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
16586         :; INTELCC=yes
16587     else
16588         :;
16589     fi
16590     ac_ext=c
16591 ac_cpp='$CPP $CPPFLAGS'
16592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16595
16596
16597
16598
16599         if test "x$GCC" != "xyes"; then
16600         if test "xCC" = "xC"; then
16601             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
16602 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
16603 if test "${bakefile_cv_c_exto+set}" = set; then
16604   echo $ECHO_N "(cached) $ECHO_C" >&6
16605 else
16606   cat >conftest.$ac_ext <<_ACEOF
16607 /* confdefs.h.  */
16608 _ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h.  */
16612
16613 int
16614 main ()
16615 {
16616
16617   ;
16618   return 0;
16619 }
16620 _ACEOF
16621 rm -f conftest.$ac_objext conftest.$ac_ext.o
16622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16623   (eval $ac_compile) 2>&5
16624   ac_status=$?
16625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626   (exit $ac_status); }; then
16627   for ac_file in `(ls conftest.* 2>/dev/null)`; do
16628     case $ac_file in
16629         conftest.$ac_ext.o)
16630             bakefile_cv_c_exto="-ext o"
16631             ;;
16632         *)
16633             ;;
16634     esac
16635 done
16636 else
16637   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
16638 See \`config.log' for more details." >&5
16639 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
16640 See \`config.log' for more details." >&2;}
16641    { (exit 1); exit 1; }; }
16642
16643 fi
16644
16645 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
16646
16647 fi
16648 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
16649 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
16650 if test "x$bakefile_cv_c_exto" '!=' "x"; then
16651     if test "c" = "c"; then
16652         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
16653     fi
16654     if test "c" = "cxx"; then
16655         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
16656     fi
16657 fi
16658
16659             if test "x$bakefile_cv_c_exto" '!=' "x"; then
16660                 unset ac_cv_prog_cc_g
16661                 ac_test_CFLAGS=${CFLAGS+set}
16662 ac_save_CFLAGS=$CFLAGS
16663 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16664 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16665 if test "${ac_cv_prog_cc_g+set}" = set; then
16666   echo $ECHO_N "(cached) $ECHO_C" >&6
16667 else
16668   ac_save_c_werror_flag=$ac_c_werror_flag
16669    ac_c_werror_flag=yes
16670    ac_cv_prog_cc_g=no
16671    CFLAGS="-g"
16672    cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678
16679 int
16680 main ()
16681 {
16682
16683   ;
16684   return 0;
16685 }
16686 _ACEOF
16687 rm -f conftest.$ac_objext
16688 if { (ac_try="$ac_compile"
16689 case "(($ac_try" in
16690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691   *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694   (eval "$ac_compile") 2>conftest.er1
16695   ac_status=$?
16696   grep -v '^ *+' conftest.er1 >conftest.err
16697   rm -f conftest.er1
16698   cat conftest.err >&5
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); } && {
16701          test -z "$ac_c_werror_flag" ||
16702          test ! -s conftest.err
16703        } && test -s conftest.$ac_objext; then
16704   ac_cv_prog_cc_g=yes
16705 else
16706   echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709         CFLAGS=""
16710       cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h.  */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h.  */
16716
16717 int
16718 main ()
16719 {
16720
16721   ;
16722   return 0;
16723 }
16724 _ACEOF
16725 rm -f conftest.$ac_objext
16726 if { (ac_try="$ac_compile"
16727 case "(($ac_try" in
16728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729   *) ac_try_echo=$ac_try;;
16730 esac
16731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732   (eval "$ac_compile") 2>conftest.er1
16733   ac_status=$?
16734   grep -v '^ *+' conftest.er1 >conftest.err
16735   rm -f conftest.er1
16736   cat conftest.err >&5
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); } && {
16739          test -z "$ac_c_werror_flag" ||
16740          test ! -s conftest.err
16741        } && test -s conftest.$ac_objext; then
16742   :
16743 else
16744   echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16746
16747         ac_c_werror_flag=$ac_save_c_werror_flag
16748          CFLAGS="-g"
16749          cat >conftest.$ac_ext <<_ACEOF
16750 /* confdefs.h.  */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h.  */
16755
16756 int
16757 main ()
16758 {
16759
16760   ;
16761   return 0;
16762 }
16763 _ACEOF
16764 rm -f conftest.$ac_objext
16765 if { (ac_try="$ac_compile"
16766 case "(($ac_try" in
16767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768   *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771   (eval "$ac_compile") 2>conftest.er1
16772   ac_status=$?
16773   grep -v '^ *+' conftest.er1 >conftest.err
16774   rm -f conftest.er1
16775   cat conftest.err >&5
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); } && {
16778          test -z "$ac_c_werror_flag" ||
16779          test ! -s conftest.err
16780        } && test -s conftest.$ac_objext; then
16781   ac_cv_prog_cc_g=yes
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786
16787 fi
16788
16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 fi
16791
16792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16793 fi
16794
16795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16796    ac_c_werror_flag=$ac_save_c_werror_flag
16797 fi
16798 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16799 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16800 if test "$ac_test_CFLAGS" = set; then
16801   CFLAGS=$ac_save_CFLAGS
16802 elif test $ac_cv_prog_cc_g = yes; then
16803   if test "$GCC" = yes; then
16804     CFLAGS="-g -O2"
16805   else
16806     CFLAGS="-g"
16807   fi
16808 else
16809   if test "$GCC" = yes; then
16810     CFLAGS="-O2"
16811   else
16812     CFLAGS=
16813   fi
16814 fi
16815             fi
16816         fi
16817
16818                         case `uname -s` in
16819             AIX*)
16820
16821
16822     ac_ext=c
16823 ac_cpp='$CPP $CPPFLAGS'
16824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16827
16828     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16829 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16830 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16831   echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833   cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h.  */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h.  */
16839
16840 int
16841 main ()
16842 {
16843
16844              #ifndef __xlC__
16845                 choke me
16846              #endif
16847
16848   ;
16849   return 0;
16850 }
16851 _ACEOF
16852 rm -f conftest.$ac_objext
16853 if { (ac_try="$ac_compile"
16854 case "(($ac_try" in
16855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856   *) ac_try_echo=$ac_try;;
16857 esac
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859   (eval "$ac_compile") 2>conftest.er1
16860   ac_status=$?
16861   grep -v '^ *+' conftest.er1 >conftest.err
16862   rm -f conftest.er1
16863   cat conftest.err >&5
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); } && {
16866          test -z "$ac_c_werror_flag" ||
16867          test ! -s conftest.err
16868        } && test -s conftest.$ac_objext; then
16869   bakefile_cv_c_compiler___xlC__=yes
16870 else
16871   echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16873
16874         bakefile_cv_c_compiler___xlC__=no
16875
16876 fi
16877
16878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879
16880
16881 fi
16882 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
16883 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
16884     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
16885         :; XLCC=yes
16886     else
16887         :;
16888     fi
16889     ac_ext=c
16890 ac_cpp='$CPP $CPPFLAGS'
16891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16894
16895
16896
16897                 ;;
16898
16899             Darwin)
16900
16901
16902     ac_ext=c
16903 ac_cpp='$CPP $CPPFLAGS'
16904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16907
16908     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
16909 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
16910 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
16911   echo $ECHO_N "(cached) $ECHO_C" >&6
16912 else
16913   cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h.  */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h.  */
16919
16920 int
16921 main ()
16922 {
16923
16924              #ifndef __MWERKS__
16925                 choke me
16926              #endif
16927
16928   ;
16929   return 0;
16930 }
16931 _ACEOF
16932 rm -f conftest.$ac_objext
16933 if { (ac_try="$ac_compile"
16934 case "(($ac_try" in
16935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936   *) ac_try_echo=$ac_try;;
16937 esac
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939   (eval "$ac_compile") 2>conftest.er1
16940   ac_status=$?
16941   grep -v '^ *+' conftest.er1 >conftest.err
16942   rm -f conftest.er1
16943   cat conftest.err >&5
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); } && {
16946          test -z "$ac_c_werror_flag" ||
16947          test ! -s conftest.err
16948        } && test -s conftest.$ac_objext; then
16949   bakefile_cv_c_compiler___MWERKS__=yes
16950 else
16951   echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16953
16954         bakefile_cv_c_compiler___MWERKS__=no
16955
16956 fi
16957
16958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16959
16960
16961 fi
16962 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
16963 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
16964     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
16965         :; MWCC=yes
16966     else
16967         :;
16968     fi
16969     ac_ext=c
16970 ac_cpp='$CPP $CPPFLAGS'
16971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16974
16975
16976
16977
16978
16979     ac_ext=c
16980 ac_cpp='$CPP $CPPFLAGS'
16981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16984
16985     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
16986 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
16987 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
16988   echo $ECHO_N "(cached) $ECHO_C" >&6
16989 else
16990   cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h.  */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h.  */
16996
16997 int
16998 main ()
16999 {
17000
17001              #ifndef __xlC__
17002                 choke me
17003              #endif
17004
17005   ;
17006   return 0;
17007 }
17008 _ACEOF
17009 rm -f conftest.$ac_objext
17010 if { (ac_try="$ac_compile"
17011 case "(($ac_try" in
17012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17013   *) ac_try_echo=$ac_try;;
17014 esac
17015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17016   (eval "$ac_compile") 2>conftest.er1
17017   ac_status=$?
17018   grep -v '^ *+' conftest.er1 >conftest.err
17019   rm -f conftest.er1
17020   cat conftest.err >&5
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); } && {
17023          test -z "$ac_c_werror_flag" ||
17024          test ! -s conftest.err
17025        } && test -s conftest.$ac_objext; then
17026   bakefile_cv_c_compiler___xlC__=yes
17027 else
17028   echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17030
17031         bakefile_cv_c_compiler___xlC__=no
17032
17033 fi
17034
17035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17036
17037
17038 fi
17039 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17040 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17041     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17042         :; XLCC=yes
17043     else
17044         :;
17045     fi
17046     ac_ext=c
17047 ac_cpp='$CPP $CPPFLAGS'
17048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17051
17052
17053
17054                 ;;
17055
17056             IRIX*)
17057
17058
17059     ac_ext=c
17060 ac_cpp='$CPP $CPPFLAGS'
17061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17064
17065     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
17066 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
17067 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
17068   echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070   cat >conftest.$ac_ext <<_ACEOF
17071 /* confdefs.h.  */
17072 _ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h.  */
17076
17077 int
17078 main ()
17079 {
17080
17081              #ifndef _SGI_COMPILER_VERSION
17082                 choke me
17083              #endif
17084
17085   ;
17086   return 0;
17087 }
17088 _ACEOF
17089 rm -f conftest.$ac_objext
17090 if { (ac_try="$ac_compile"
17091 case "(($ac_try" in
17092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093   *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096   (eval "$ac_compile") 2>conftest.er1
17097   ac_status=$?
17098   grep -v '^ *+' conftest.er1 >conftest.err
17099   rm -f conftest.er1
17100   cat conftest.err >&5
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); } && {
17103          test -z "$ac_c_werror_flag" ||
17104          test ! -s conftest.err
17105        } && test -s conftest.$ac_objext; then
17106   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
17107 else
17108   echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17110
17111         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
17112
17113 fi
17114
17115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17116
17117
17118 fi
17119 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
17120 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
17121     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17122         :; SGICC=yes
17123     else
17124         :;
17125     fi
17126     ac_ext=c
17127 ac_cpp='$CPP $CPPFLAGS'
17128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17131
17132
17133
17134                 ;;
17135
17136             Linux*)
17137
17138
17139     ac_ext=c
17140 ac_cpp='$CPP $CPPFLAGS'
17141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17144
17145     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17146 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17147 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17148   echo $ECHO_N "(cached) $ECHO_C" >&6
17149 else
17150   cat >conftest.$ac_ext <<_ACEOF
17151 /* confdefs.h.  */
17152 _ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h.  */
17156
17157 int
17158 main ()
17159 {
17160
17161              #ifndef __SUNPRO_C
17162                 choke me
17163              #endif
17164
17165   ;
17166   return 0;
17167 }
17168 _ACEOF
17169 rm -f conftest.$ac_objext
17170 if { (ac_try="$ac_compile"
17171 case "(($ac_try" in
17172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173   *) ac_try_echo=$ac_try;;
17174 esac
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176   (eval "$ac_compile") 2>conftest.er1
17177   ac_status=$?
17178   grep -v '^ *+' conftest.er1 >conftest.err
17179   rm -f conftest.er1
17180   cat conftest.err >&5
17181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182   (exit $ac_status); } && {
17183          test -z "$ac_c_werror_flag" ||
17184          test ! -s conftest.err
17185        } && test -s conftest.$ac_objext; then
17186   bakefile_cv_c_compiler___SUNPRO_C=yes
17187 else
17188   echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17190
17191         bakefile_cv_c_compiler___SUNPRO_C=no
17192
17193 fi
17194
17195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196
17197
17198 fi
17199 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17200 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17201     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17202         :; SUNCC=yes
17203     else
17204         :;
17205     fi
17206     ac_ext=c
17207 ac_cpp='$CPP $CPPFLAGS'
17208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17211
17212
17213
17214                 ;;
17215
17216             HP-UX*)
17217
17218
17219     ac_ext=c
17220 ac_cpp='$CPP $CPPFLAGS'
17221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17224
17225     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
17226 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
17227 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
17228   echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230   cat >conftest.$ac_ext <<_ACEOF
17231 /* confdefs.h.  */
17232 _ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h.  */
17236
17237 int
17238 main ()
17239 {
17240
17241              #ifndef __HP_cc
17242                 choke me
17243              #endif
17244
17245   ;
17246   return 0;
17247 }
17248 _ACEOF
17249 rm -f conftest.$ac_objext
17250 if { (ac_try="$ac_compile"
17251 case "(($ac_try" in
17252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253   *) ac_try_echo=$ac_try;;
17254 esac
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256   (eval "$ac_compile") 2>conftest.er1
17257   ac_status=$?
17258   grep -v '^ *+' conftest.er1 >conftest.err
17259   rm -f conftest.er1
17260   cat conftest.err >&5
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); } && {
17263          test -z "$ac_c_werror_flag" ||
17264          test ! -s conftest.err
17265        } && test -s conftest.$ac_objext; then
17266   bakefile_cv_c_compiler___HP_cc=yes
17267 else
17268   echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17270
17271         bakefile_cv_c_compiler___HP_cc=no
17272
17273 fi
17274
17275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17276
17277
17278 fi
17279 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
17280 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
17281     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
17282         :; HPCC=yes
17283     else
17284         :;
17285     fi
17286     ac_ext=c
17287 ac_cpp='$CPP $CPPFLAGS'
17288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17291
17292
17293
17294                 ;;
17295
17296             OSF1)
17297
17298
17299     ac_ext=c
17300 ac_cpp='$CPP $CPPFLAGS'
17301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17304
17305     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
17306 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
17307 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
17308   echo $ECHO_N "(cached) $ECHO_C" >&6
17309 else
17310   cat >conftest.$ac_ext <<_ACEOF
17311 /* confdefs.h.  */
17312 _ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h.  */
17316
17317 int
17318 main ()
17319 {
17320
17321              #ifndef __DECC
17322                 choke me
17323              #endif
17324
17325   ;
17326   return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext
17330 if { (ac_try="$ac_compile"
17331 case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336   (eval "$ac_compile") 2>conftest.er1
17337   ac_status=$?
17338   grep -v '^ *+' conftest.er1 >conftest.err
17339   rm -f conftest.er1
17340   cat conftest.err >&5
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); } && {
17343          test -z "$ac_c_werror_flag" ||
17344          test ! -s conftest.err
17345        } && test -s conftest.$ac_objext; then
17346   bakefile_cv_c_compiler___DECC=yes
17347 else
17348   echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17350
17351         bakefile_cv_c_compiler___DECC=no
17352
17353 fi
17354
17355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17356
17357
17358 fi
17359 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
17360 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
17361     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
17362         :; COMPAQCC=yes
17363     else
17364         :;
17365     fi
17366     ac_ext=c
17367 ac_cpp='$CPP $CPPFLAGS'
17368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17371
17372
17373
17374                 ;;
17375
17376             SunOS)
17377
17378
17379     ac_ext=c
17380 ac_cpp='$CPP $CPPFLAGS'
17381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17384
17385     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17386 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17387 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17388   echo $ECHO_N "(cached) $ECHO_C" >&6
17389 else
17390   cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h.  */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h.  */
17396
17397 int
17398 main ()
17399 {
17400
17401              #ifndef __SUNPRO_C
17402                 choke me
17403              #endif
17404
17405   ;
17406   return 0;
17407 }
17408 _ACEOF
17409 rm -f conftest.$ac_objext
17410 if { (ac_try="$ac_compile"
17411 case "(($ac_try" in
17412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413   *) ac_try_echo=$ac_try;;
17414 esac
17415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17416   (eval "$ac_compile") 2>conftest.er1
17417   ac_status=$?
17418   grep -v '^ *+' conftest.er1 >conftest.err
17419   rm -f conftest.er1
17420   cat conftest.err >&5
17421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422   (exit $ac_status); } && {
17423          test -z "$ac_c_werror_flag" ||
17424          test ! -s conftest.err
17425        } && test -s conftest.$ac_objext; then
17426   bakefile_cv_c_compiler___SUNPRO_C=yes
17427 else
17428   echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17430
17431         bakefile_cv_c_compiler___SUNPRO_C=no
17432
17433 fi
17434
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436
17437
17438 fi
17439 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17440 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17441     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17442         :; SUNCC=yes
17443     else
17444         :;
17445     fi
17446     ac_ext=c
17447 ac_cpp='$CPP $CPPFLAGS'
17448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17451
17452
17453
17454                 ;;
17455         esac
17456     fi
17457
17458
17459
17460 ac_ext=c
17461 ac_cpp='$CPP $CPPFLAGS'
17462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17465 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
17466 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
17467 # On Suns, sometimes $CPP names a directory.
17468 if test -n "$CPP" && test -d "$CPP"; then
17469   CPP=
17470 fi
17471 if test -z "$CPP"; then
17472   if test "${ac_cv_prog_CPP+set}" = set; then
17473   echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475       # Double quotes because CPP needs to be expanded
17476     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17477     do
17478       ac_preproc_ok=false
17479 for ac_c_preproc_warn_flag in '' yes
17480 do
17481   # Use a header file that comes with gcc, so configuring glibc
17482   # with a fresh cross-compiler works.
17483   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17484   # <limits.h> exists even on freestanding compilers.
17485   # On the NeXT, cc -E runs the code through the compiler's parser,
17486   # not just through cpp. "Syntax error" is here to catch this case.
17487   cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h.  */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h.  */
17493 #ifdef __STDC__
17494 # include <limits.h>
17495 #else
17496 # include <assert.h>
17497 #endif
17498                      Syntax error
17499 _ACEOF
17500 if { (ac_try="$ac_cpp conftest.$ac_ext"
17501 case "(($ac_try" in
17502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503   *) ac_try_echo=$ac_try;;
17504 esac
17505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17507   ac_status=$?
17508   grep -v '^ *+' conftest.er1 >conftest.err
17509   rm -f conftest.er1
17510   cat conftest.err >&5
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); } >/dev/null && {
17513          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17514          test ! -s conftest.err
17515        }; then
17516   :
17517 else
17518   echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17520
17521   # Broken: fails on valid input.
17522 continue
17523 fi
17524
17525 rm -f conftest.err conftest.$ac_ext
17526
17527   # OK, works on sane cases.  Now check whether nonexistent headers
17528   # can be detected and how.
17529   cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h.  */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h.  */
17535 #include <ac_nonexistent.h>
17536 _ACEOF
17537 if { (ac_try="$ac_cpp conftest.$ac_ext"
17538 case "(($ac_try" in
17539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540   *) ac_try_echo=$ac_try;;
17541 esac
17542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17544   ac_status=$?
17545   grep -v '^ *+' conftest.er1 >conftest.err
17546   rm -f conftest.er1
17547   cat conftest.err >&5
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); } >/dev/null && {
17550          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17551          test ! -s conftest.err
17552        }; then
17553   # Broken: success on invalid input.
17554 continue
17555 else
17556   echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17558
17559   # Passes both tests.
17560 ac_preproc_ok=:
17561 break
17562 fi
17563
17564 rm -f conftest.err conftest.$ac_ext
17565
17566 done
17567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17568 rm -f conftest.err conftest.$ac_ext
17569 if $ac_preproc_ok; then
17570   break
17571 fi
17572
17573     done
17574     ac_cv_prog_CPP=$CPP
17575
17576 fi
17577   CPP=$ac_cv_prog_CPP
17578 else
17579   ac_cv_prog_CPP=$CPP
17580 fi
17581 { echo "$as_me:$LINENO: result: $CPP" >&5
17582 echo "${ECHO_T}$CPP" >&6; }
17583 ac_preproc_ok=false
17584 for ac_c_preproc_warn_flag in '' yes
17585 do
17586   # Use a header file that comes with gcc, so configuring glibc
17587   # with a fresh cross-compiler works.
17588   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17589   # <limits.h> exists even on freestanding compilers.
17590   # On the NeXT, cc -E runs the code through the compiler's parser,
17591   # not just through cpp. "Syntax error" is here to catch this case.
17592   cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h.  */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h.  */
17598 #ifdef __STDC__
17599 # include <limits.h>
17600 #else
17601 # include <assert.h>
17602 #endif
17603                      Syntax error
17604 _ACEOF
17605 if { (ac_try="$ac_cpp conftest.$ac_ext"
17606 case "(($ac_try" in
17607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608   *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17612   ac_status=$?
17613   grep -v '^ *+' conftest.er1 >conftest.err
17614   rm -f conftest.er1
17615   cat conftest.err >&5
17616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617   (exit $ac_status); } >/dev/null && {
17618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17619          test ! -s conftest.err
17620        }; then
17621   :
17622 else
17623   echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17625
17626   # Broken: fails on valid input.
17627 continue
17628 fi
17629
17630 rm -f conftest.err conftest.$ac_ext
17631
17632   # OK, works on sane cases.  Now check whether nonexistent headers
17633   # can be detected and how.
17634   cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h.  */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h.  */
17640 #include <ac_nonexistent.h>
17641 _ACEOF
17642 if { (ac_try="$ac_cpp conftest.$ac_ext"
17643 case "(($ac_try" in
17644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645   *) ac_try_echo=$ac_try;;
17646 esac
17647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17649   ac_status=$?
17650   grep -v '^ *+' conftest.er1 >conftest.err
17651   rm -f conftest.er1
17652   cat conftest.err >&5
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); } >/dev/null && {
17655          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17656          test ! -s conftest.err
17657        }; then
17658   # Broken: success on invalid input.
17659 continue
17660 else
17661   echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17663
17664   # Passes both tests.
17665 ac_preproc_ok=:
17666 break
17667 fi
17668
17669 rm -f conftest.err conftest.$ac_ext
17670
17671 done
17672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17673 rm -f conftest.err conftest.$ac_ext
17674 if $ac_preproc_ok; then
17675   :
17676 else
17677   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
17678 See \`config.log' for more details." >&5
17679 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
17680 See \`config.log' for more details." >&2;}
17681    { (exit 1); exit 1; }; }
17682 fi
17683
17684 ac_ext=c
17685 ac_cpp='$CPP $CPPFLAGS'
17686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17689
17690
17691 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
17692 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
17693 if test "${ac_cv_path_GREP+set}" = set; then
17694   echo $ECHO_N "(cached) $ECHO_C" >&6
17695 else
17696   # Extract the first word of "grep ggrep" to use in msg output
17697 if test -z "$GREP"; then
17698 set dummy grep ggrep; ac_prog_name=$2
17699 if test "${ac_cv_path_GREP+set}" = set; then
17700   echo $ECHO_N "(cached) $ECHO_C" >&6
17701 else
17702   ac_path_GREP_found=false
17703 # Loop through the user's path and test for each of PROGNAME-LIST
17704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17706 do
17707   IFS=$as_save_IFS
17708   test -z "$as_dir" && as_dir=.
17709   for ac_prog in grep ggrep; do
17710   for ac_exec_ext in '' $ac_executable_extensions; do
17711     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17712     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17713     # Check for GNU ac_path_GREP and select it if it is found.
17714   # Check for GNU $ac_path_GREP
17715 case `"$ac_path_GREP" --version 2>&1` in
17716 *GNU*)
17717   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
17718 *)
17719   ac_count=0
17720   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17721   while :
17722   do
17723     cat "conftest.in" "conftest.in" >"conftest.tmp"
17724     mv "conftest.tmp" "conftest.in"
17725     cp "conftest.in" "conftest.nl"
17726     echo 'GREP' >> "conftest.nl"
17727     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17728     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17729     ac_count=`expr $ac_count + 1`
17730     if test $ac_count -gt ${ac_path_GREP_max-0}; then
17731       # Best one so far, save it but keep looking for a better one
17732       ac_cv_path_GREP="$ac_path_GREP"
17733       ac_path_GREP_max=$ac_count
17734     fi
17735     # 10*(2^10) chars as input seems more than enough
17736     test $ac_count -gt 10 && break
17737   done
17738   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17739 esac
17740
17741
17742     $ac_path_GREP_found && break 3
17743   done
17744 done
17745
17746 done
17747 IFS=$as_save_IFS
17748
17749
17750 fi
17751
17752 GREP="$ac_cv_path_GREP"
17753 if test -z "$GREP"; then
17754   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17755 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17756    { (exit 1); exit 1; }; }
17757 fi
17758
17759 else
17760   ac_cv_path_GREP=$GREP
17761 fi
17762
17763
17764 fi
17765 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
17766 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
17767  GREP="$ac_cv_path_GREP"
17768
17769
17770 { echo "$as_me:$LINENO: checking for egrep" >&5
17771 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
17772 if test "${ac_cv_path_EGREP+set}" = set; then
17773   echo $ECHO_N "(cached) $ECHO_C" >&6
17774 else
17775   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17776    then ac_cv_path_EGREP="$GREP -E"
17777    else
17778      # Extract the first word of "egrep" to use in msg output
17779 if test -z "$EGREP"; then
17780 set dummy egrep; ac_prog_name=$2
17781 if test "${ac_cv_path_EGREP+set}" = set; then
17782   echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784   ac_path_EGREP_found=false
17785 # Loop through the user's path and test for each of PROGNAME-LIST
17786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17788 do
17789   IFS=$as_save_IFS
17790   test -z "$as_dir" && as_dir=.
17791   for ac_prog in egrep; do
17792   for ac_exec_ext in '' $ac_executable_extensions; do
17793     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
17794     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
17795     # Check for GNU ac_path_EGREP and select it if it is found.
17796   # Check for GNU $ac_path_EGREP
17797 case `"$ac_path_EGREP" --version 2>&1` in
17798 *GNU*)
17799   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17800 *)
17801   ac_count=0
17802   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
17803   while :
17804   do
17805     cat "conftest.in" "conftest.in" >"conftest.tmp"
17806     mv "conftest.tmp" "conftest.in"
17807     cp "conftest.in" "conftest.nl"
17808     echo 'EGREP' >> "conftest.nl"
17809     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17810     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17811     ac_count=`expr $ac_count + 1`
17812     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17813       # Best one so far, save it but keep looking for a better one
17814       ac_cv_path_EGREP="$ac_path_EGREP"
17815       ac_path_EGREP_max=$ac_count
17816     fi
17817     # 10*(2^10) chars as input seems more than enough
17818     test $ac_count -gt 10 && break
17819   done
17820   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17821 esac
17822
17823
17824     $ac_path_EGREP_found && break 3
17825   done
17826 done
17827
17828 done
17829 IFS=$as_save_IFS
17830
17831
17832 fi
17833
17834 EGREP="$ac_cv_path_EGREP"
17835 if test -z "$EGREP"; then
17836   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
17837 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
17838    { (exit 1); exit 1; }; }
17839 fi
17840
17841 else
17842   ac_cv_path_EGREP=$EGREP
17843 fi
17844
17845
17846    fi
17847 fi
17848 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
17849 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
17850  EGREP="$ac_cv_path_EGREP"
17851
17852
17853 if test $ac_cv_c_compiler_gnu = yes; then
17854     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
17855 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
17856 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
17857   echo $ECHO_N "(cached) $ECHO_C" >&6
17858 else
17859     ac_pattern="Autoconf.*'x'"
17860   cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h.  */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h.  */
17866 #include <sgtty.h>
17867 Autoconf TIOCGETP
17868 _ACEOF
17869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17870   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17871   ac_cv_prog_gcc_traditional=yes
17872 else
17873   ac_cv_prog_gcc_traditional=no
17874 fi
17875 rm -f conftest*
17876
17877
17878   if test $ac_cv_prog_gcc_traditional = no; then
17879     cat >conftest.$ac_ext <<_ACEOF
17880 /* confdefs.h.  */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h.  */
17885 #include <termio.h>
17886 Autoconf TCGETA
17887 _ACEOF
17888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17889   $EGREP "$ac_pattern" >/dev/null 2>&1; then
17890   ac_cv_prog_gcc_traditional=yes
17891 fi
17892 rm -f conftest*
17893
17894   fi
17895 fi
17896 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
17897 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
17898   if test $ac_cv_prog_gcc_traditional = yes; then
17899     CC="$CC -traditional"
17900   fi
17901 fi
17902
17903
17904 CXXFLAGS=${CXXFLAGS:=}
17905
17906
17907
17908     ac_ext=cpp
17909 ac_cpp='$CXXCPP $CPPFLAGS'
17910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17913 if test -z "$CXX"; then
17914   if test -n "$CCC"; then
17915     CXX=$CCC
17916   else
17917     if test -n "$ac_tool_prefix"; then
17918   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17919   do
17920     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17924 if test "${ac_cv_prog_CXX+set}" = set; then
17925   echo $ECHO_N "(cached) $ECHO_C" >&6
17926 else
17927   if test -n "$CXX"; then
17928   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17929 else
17930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17931 for as_dir in $PATH
17932 do
17933   IFS=$as_save_IFS
17934   test -z "$as_dir" && as_dir=.
17935   for ac_exec_ext in '' $ac_executable_extensions; do
17936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17937     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17939     break 2
17940   fi
17941 done
17942 done
17943 IFS=$as_save_IFS
17944
17945 fi
17946 fi
17947 CXX=$ac_cv_prog_CXX
17948 if test -n "$CXX"; then
17949   { echo "$as_me:$LINENO: result: $CXX" >&5
17950 echo "${ECHO_T}$CXX" >&6; }
17951 else
17952   { echo "$as_me:$LINENO: result: no" >&5
17953 echo "${ECHO_T}no" >&6; }
17954 fi
17955
17956
17957     test -n "$CXX" && break
17958   done
17959 fi
17960 if test -z "$CXX"; then
17961   ac_ct_CXX=$CXX
17962   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17963 do
17964   # Extract the first word of "$ac_prog", so it can be a program name with args.
17965 set dummy $ac_prog; ac_word=$2
17966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17968 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17969   echo $ECHO_N "(cached) $ECHO_C" >&6
17970 else
17971   if test -n "$ac_ct_CXX"; then
17972   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17973 else
17974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17975 for as_dir in $PATH
17976 do
17977   IFS=$as_save_IFS
17978   test -z "$as_dir" && as_dir=.
17979   for ac_exec_ext in '' $ac_executable_extensions; do
17980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17981     ac_cv_prog_ac_ct_CXX="$ac_prog"
17982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17983     break 2
17984   fi
17985 done
17986 done
17987 IFS=$as_save_IFS
17988
17989 fi
17990 fi
17991 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17992 if test -n "$ac_ct_CXX"; then
17993   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17994 echo "${ECHO_T}$ac_ct_CXX" >&6; }
17995 else
17996   { echo "$as_me:$LINENO: result: no" >&5
17997 echo "${ECHO_T}no" >&6; }
17998 fi
17999
18000
18001   test -n "$ac_ct_CXX" && break
18002 done
18003
18004   if test "x$ac_ct_CXX" = x; then
18005     CXX="g++"
18006   else
18007     case $cross_compiling:$ac_tool_warned in
18008 yes:)
18009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18010 whose name does not start with the host triplet.  If you think this
18011 configuration is useful to you, please write to autoconf@gnu.org." >&5
18012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18013 whose name does not start with the host triplet.  If you think this
18014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18015 ac_tool_warned=yes ;;
18016 esac
18017     CXX=$ac_ct_CXX
18018   fi
18019 fi
18020
18021   fi
18022 fi
18023 # Provide some information about the compiler.
18024 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
18025 ac_compiler=`set X $ac_compile; echo $2`
18026 { (ac_try="$ac_compiler --version >&5"
18027 case "(($ac_try" in
18028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029   *) ac_try_echo=$ac_try;;
18030 esac
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032   (eval "$ac_compiler --version >&5") 2>&5
18033   ac_status=$?
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); }
18036 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
18043   ac_status=$?
18044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045   (exit $ac_status); }
18046 { (ac_try="$ac_compiler -V >&5"
18047 case "(($ac_try" in
18048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049   *) ac_try_echo=$ac_try;;
18050 esac
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052   (eval "$ac_compiler -V >&5") 2>&5
18053   ac_status=$?
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); }
18056
18057 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
18058 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
18059 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
18060   echo $ECHO_N "(cached) $ECHO_C" >&6
18061 else
18062   cat >conftest.$ac_ext <<_ACEOF
18063 /* confdefs.h.  */
18064 _ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h.  */
18068
18069 int
18070 main ()
18071 {
18072 #ifndef __GNUC__
18073        choke me
18074 #endif
18075
18076   ;
18077   return 0;
18078 }
18079 _ACEOF
18080 rm -f conftest.$ac_objext
18081 if { (ac_try="$ac_compile"
18082 case "(($ac_try" in
18083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084   *) ac_try_echo=$ac_try;;
18085 esac
18086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087   (eval "$ac_compile") 2>conftest.er1
18088   ac_status=$?
18089   grep -v '^ *+' conftest.er1 >conftest.err
18090   rm -f conftest.er1
18091   cat conftest.err >&5
18092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093   (exit $ac_status); } && {
18094          test -z "$ac_cxx_werror_flag" ||
18095          test ! -s conftest.err
18096        } && test -s conftest.$ac_objext; then
18097   ac_compiler_gnu=yes
18098 else
18099   echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18101
18102         ac_compiler_gnu=no
18103 fi
18104
18105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18106 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
18107
18108 fi
18109 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
18110 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
18111 GXX=`test $ac_compiler_gnu = yes && echo yes`
18112 ac_test_CXXFLAGS=${CXXFLAGS+set}
18113 ac_save_CXXFLAGS=$CXXFLAGS
18114 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
18115 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
18116 if test "${ac_cv_prog_cxx_g+set}" = set; then
18117   echo $ECHO_N "(cached) $ECHO_C" >&6
18118 else
18119   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
18120    ac_cxx_werror_flag=yes
18121    ac_cv_prog_cxx_g=no
18122    CXXFLAGS="-g"
18123    cat >conftest.$ac_ext <<_ACEOF
18124 /* confdefs.h.  */
18125 _ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h.  */
18129
18130 int
18131 main ()
18132 {
18133
18134   ;
18135   return 0;
18136 }
18137 _ACEOF
18138 rm -f conftest.$ac_objext
18139 if { (ac_try="$ac_compile"
18140 case "(($ac_try" in
18141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142   *) ac_try_echo=$ac_try;;
18143 esac
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145   (eval "$ac_compile") 2>conftest.er1
18146   ac_status=$?
18147   grep -v '^ *+' conftest.er1 >conftest.err
18148   rm -f conftest.er1
18149   cat conftest.err >&5
18150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); } && {
18152          test -z "$ac_cxx_werror_flag" ||
18153          test ! -s conftest.err
18154        } && test -s conftest.$ac_objext; then
18155   ac_cv_prog_cxx_g=yes
18156 else
18157   echo "$as_me: failed program was:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18159
18160         CXXFLAGS=""
18161       cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h.  */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h.  */
18167
18168 int
18169 main ()
18170 {
18171
18172   ;
18173   return 0;
18174 }
18175 _ACEOF
18176 rm -f conftest.$ac_objext
18177 if { (ac_try="$ac_compile"
18178 case "(($ac_try" in
18179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180   *) ac_try_echo=$ac_try;;
18181 esac
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183   (eval "$ac_compile") 2>conftest.er1
18184   ac_status=$?
18185   grep -v '^ *+' conftest.er1 >conftest.err
18186   rm -f conftest.er1
18187   cat conftest.err >&5
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); } && {
18190          test -z "$ac_cxx_werror_flag" ||
18191          test ! -s conftest.err
18192        } && test -s conftest.$ac_objext; then
18193   :
18194 else
18195   echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18197
18198         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18199          CXXFLAGS="-g"
18200          cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h.  */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h.  */
18206
18207 int
18208 main ()
18209 {
18210
18211   ;
18212   return 0;
18213 }
18214 _ACEOF
18215 rm -f conftest.$ac_objext
18216 if { (ac_try="$ac_compile"
18217 case "(($ac_try" in
18218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219   *) ac_try_echo=$ac_try;;
18220 esac
18221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222   (eval "$ac_compile") 2>conftest.er1
18223   ac_status=$?
18224   grep -v '^ *+' conftest.er1 >conftest.err
18225   rm -f conftest.er1
18226   cat conftest.err >&5
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); } && {
18229          test -z "$ac_cxx_werror_flag" ||
18230          test ! -s conftest.err
18231        } && test -s conftest.$ac_objext; then
18232   ac_cv_prog_cxx_g=yes
18233 else
18234   echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18236
18237
18238 fi
18239
18240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18241 fi
18242
18243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18244 fi
18245
18246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18247    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18248 fi
18249 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
18250 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
18251 if test "$ac_test_CXXFLAGS" = set; then
18252   CXXFLAGS=$ac_save_CXXFLAGS
18253 elif test $ac_cv_prog_cxx_g = yes; then
18254   if test "$GXX" = yes; then
18255     CXXFLAGS="-g -O2"
18256   else
18257     CXXFLAGS="-g"
18258   fi
18259 else
18260   if test "$GXX" = yes; then
18261     CXXFLAGS="-O2"
18262   else
18263     CXXFLAGS=
18264   fi
18265 fi
18266 ac_ext=c
18267 ac_cpp='$CPP $CPPFLAGS'
18268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18271
18272
18273
18274
18275     ac_ext=cpp
18276 ac_cpp='$CXXCPP $CPPFLAGS'
18277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18280
18281     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
18282 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
18283 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
18284   echo $ECHO_N "(cached) $ECHO_C" >&6
18285 else
18286   cat >conftest.$ac_ext <<_ACEOF
18287 /* confdefs.h.  */
18288 _ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h.  */
18292
18293 int
18294 main ()
18295 {
18296
18297              #ifndef __INTEL_COMPILER
18298                 choke me
18299              #endif
18300
18301   ;
18302   return 0;
18303 }
18304 _ACEOF
18305 rm -f conftest.$ac_objext
18306 if { (ac_try="$ac_compile"
18307 case "(($ac_try" in
18308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309   *) ac_try_echo=$ac_try;;
18310 esac
18311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18312   (eval "$ac_compile") 2>conftest.er1
18313   ac_status=$?
18314   grep -v '^ *+' conftest.er1 >conftest.err
18315   rm -f conftest.er1
18316   cat conftest.err >&5
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); } && {
18319          test -z "$ac_cxx_werror_flag" ||
18320          test ! -s conftest.err
18321        } && test -s conftest.$ac_objext; then
18322   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
18323 else
18324   echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
18328
18329 fi
18330
18331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18332
18333
18334 fi
18335 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
18336 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
18337     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
18338         :; INTELCXX=yes
18339     else
18340         :;
18341     fi
18342     ac_ext=c
18343 ac_cpp='$CPP $CPPFLAGS'
18344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18347
18348
18349
18350
18351         if test "x$GCXX" != "xyes"; then
18352         if test "xCXX" = "xC"; then
18353             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18354 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18355 if test "${bakefile_cv_c_exto+set}" = set; then
18356   echo $ECHO_N "(cached) $ECHO_C" >&6
18357 else
18358   cat >conftest.$ac_ext <<_ACEOF
18359 /* confdefs.h.  */
18360 _ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h.  */
18364
18365 int
18366 main ()
18367 {
18368
18369   ;
18370   return 0;
18371 }
18372 _ACEOF
18373 rm -f conftest.$ac_objext conftest.$ac_ext.o
18374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18375   (eval $ac_compile) 2>&5
18376   ac_status=$?
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); }; then
18379   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18380     case $ac_file in
18381         conftest.$ac_ext.o)
18382             bakefile_cv_c_exto="-ext o"
18383             ;;
18384         *)
18385             ;;
18386     esac
18387 done
18388 else
18389   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18390 See \`config.log' for more details." >&5
18391 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18392 See \`config.log' for more details." >&2;}
18393    { (exit 1); exit 1; }; }
18394
18395 fi
18396
18397 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18398
18399 fi
18400 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18401 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18402 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18403     if test "c" = "c"; then
18404         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18405     fi
18406     if test "c" = "cxx"; then
18407         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18408     fi
18409 fi
18410
18411             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18412                 unset ac_cv_prog_cc_g
18413                 ac_test_CFLAGS=${CFLAGS+set}
18414 ac_save_CFLAGS=$CFLAGS
18415 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18416 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18417 if test "${ac_cv_prog_cc_g+set}" = set; then
18418   echo $ECHO_N "(cached) $ECHO_C" >&6
18419 else
18420   ac_save_c_werror_flag=$ac_c_werror_flag
18421    ac_c_werror_flag=yes
18422    ac_cv_prog_cc_g=no
18423    CFLAGS="-g"
18424    cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h.  */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h.  */
18430
18431 int
18432 main ()
18433 {
18434
18435   ;
18436   return 0;
18437 }
18438 _ACEOF
18439 rm -f conftest.$ac_objext
18440 if { (ac_try="$ac_compile"
18441 case "(($ac_try" in
18442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443   *) ac_try_echo=$ac_try;;
18444 esac
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446   (eval "$ac_compile") 2>conftest.er1
18447   ac_status=$?
18448   grep -v '^ *+' conftest.er1 >conftest.err
18449   rm -f conftest.er1
18450   cat conftest.err >&5
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); } && {
18453          test -z "$ac_c_werror_flag" ||
18454          test ! -s conftest.err
18455        } && test -s conftest.$ac_objext; then
18456   ac_cv_prog_cc_g=yes
18457 else
18458   echo "$as_me: failed program was:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18460
18461         CFLAGS=""
18462       cat >conftest.$ac_ext <<_ACEOF
18463 /* confdefs.h.  */
18464 _ACEOF
18465 cat confdefs.h >>conftest.$ac_ext
18466 cat >>conftest.$ac_ext <<_ACEOF
18467 /* end confdefs.h.  */
18468
18469 int
18470 main ()
18471 {
18472
18473   ;
18474   return 0;
18475 }
18476 _ACEOF
18477 rm -f conftest.$ac_objext
18478 if { (ac_try="$ac_compile"
18479 case "(($ac_try" in
18480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481   *) ac_try_echo=$ac_try;;
18482 esac
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484   (eval "$ac_compile") 2>conftest.er1
18485   ac_status=$?
18486   grep -v '^ *+' conftest.er1 >conftest.err
18487   rm -f conftest.er1
18488   cat conftest.err >&5
18489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490   (exit $ac_status); } && {
18491          test -z "$ac_c_werror_flag" ||
18492          test ! -s conftest.err
18493        } && test -s conftest.$ac_objext; then
18494   :
18495 else
18496   echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18498
18499         ac_c_werror_flag=$ac_save_c_werror_flag
18500          CFLAGS="-g"
18501          cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h.  */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h.  */
18507
18508 int
18509 main ()
18510 {
18511
18512   ;
18513   return 0;
18514 }
18515 _ACEOF
18516 rm -f conftest.$ac_objext
18517 if { (ac_try="$ac_compile"
18518 case "(($ac_try" in
18519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520   *) ac_try_echo=$ac_try;;
18521 esac
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523   (eval "$ac_compile") 2>conftest.er1
18524   ac_status=$?
18525   grep -v '^ *+' conftest.er1 >conftest.err
18526   rm -f conftest.er1
18527   cat conftest.err >&5
18528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529   (exit $ac_status); } && {
18530          test -z "$ac_c_werror_flag" ||
18531          test ! -s conftest.err
18532        } && test -s conftest.$ac_objext; then
18533   ac_cv_prog_cc_g=yes
18534 else
18535   echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18537
18538
18539 fi
18540
18541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18542 fi
18543
18544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18545 fi
18546
18547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18548    ac_c_werror_flag=$ac_save_c_werror_flag
18549 fi
18550 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
18551 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18552 if test "$ac_test_CFLAGS" = set; then
18553   CFLAGS=$ac_save_CFLAGS
18554 elif test $ac_cv_prog_cc_g = yes; then
18555   if test "$GCC" = yes; then
18556     CFLAGS="-g -O2"
18557   else
18558     CFLAGS="-g"
18559   fi
18560 else
18561   if test "$GCC" = yes; then
18562     CFLAGS="-O2"
18563   else
18564     CFLAGS=
18565   fi
18566 fi
18567             fi
18568         fi
18569
18570                         case `uname -s` in
18571             AIX*)
18572
18573
18574     ac_ext=cpp
18575 ac_cpp='$CXXCPP $CPPFLAGS'
18576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18579
18580     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18581 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18582 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18583   echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585   cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h.  */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h.  */
18591
18592 int
18593 main ()
18594 {
18595
18596              #ifndef __xlC__
18597                 choke me
18598              #endif
18599
18600   ;
18601   return 0;
18602 }
18603 _ACEOF
18604 rm -f conftest.$ac_objext
18605 if { (ac_try="$ac_compile"
18606 case "(($ac_try" in
18607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608   *) ac_try_echo=$ac_try;;
18609 esac
18610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18611   (eval "$ac_compile") 2>conftest.er1
18612   ac_status=$?
18613   grep -v '^ *+' conftest.er1 >conftest.err
18614   rm -f conftest.er1
18615   cat conftest.err >&5
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); } && {
18618          test -z "$ac_cxx_werror_flag" ||
18619          test ! -s conftest.err
18620        } && test -s conftest.$ac_objext; then
18621   bakefile_cv_cxx_compiler___xlC__=yes
18622 else
18623   echo "$as_me: failed program was:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18625
18626         bakefile_cv_cxx_compiler___xlC__=no
18627
18628 fi
18629
18630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18631
18632
18633 fi
18634 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18635 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18636     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18637         :; XLCXX=yes
18638     else
18639         :;
18640     fi
18641     ac_ext=c
18642 ac_cpp='$CPP $CPPFLAGS'
18643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18646
18647
18648
18649                 ;;
18650
18651             Darwin)
18652
18653
18654     ac_ext=cpp
18655 ac_cpp='$CXXCPP $CPPFLAGS'
18656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18659
18660     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
18661 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
18662 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
18663   echo $ECHO_N "(cached) $ECHO_C" >&6
18664 else
18665   cat >conftest.$ac_ext <<_ACEOF
18666 /* confdefs.h.  */
18667 _ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h.  */
18671
18672 int
18673 main ()
18674 {
18675
18676              #ifndef __MWERKS__
18677                 choke me
18678              #endif
18679
18680   ;
18681   return 0;
18682 }
18683 _ACEOF
18684 rm -f conftest.$ac_objext
18685 if { (ac_try="$ac_compile"
18686 case "(($ac_try" in
18687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688   *) ac_try_echo=$ac_try;;
18689 esac
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691   (eval "$ac_compile") 2>conftest.er1
18692   ac_status=$?
18693   grep -v '^ *+' conftest.er1 >conftest.err
18694   rm -f conftest.er1
18695   cat conftest.err >&5
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); } && {
18698          test -z "$ac_cxx_werror_flag" ||
18699          test ! -s conftest.err
18700        } && test -s conftest.$ac_objext; then
18701   bakefile_cv_cxx_compiler___MWERKS__=yes
18702 else
18703   echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18705
18706         bakefile_cv_cxx_compiler___MWERKS__=no
18707
18708 fi
18709
18710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18711
18712
18713 fi
18714 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
18715 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
18716     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
18717         :; MWCXX=yes
18718     else
18719         :;
18720     fi
18721     ac_ext=c
18722 ac_cpp='$CPP $CPPFLAGS'
18723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18726
18727
18728
18729
18730
18731     ac_ext=cpp
18732 ac_cpp='$CXXCPP $CPPFLAGS'
18733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18736
18737     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
18738 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
18739 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
18740   echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742   cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h.  */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h.  */
18748
18749 int
18750 main ()
18751 {
18752
18753              #ifndef __xlC__
18754                 choke me
18755              #endif
18756
18757   ;
18758   return 0;
18759 }
18760 _ACEOF
18761 rm -f conftest.$ac_objext
18762 if { (ac_try="$ac_compile"
18763 case "(($ac_try" in
18764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765   *) ac_try_echo=$ac_try;;
18766 esac
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768   (eval "$ac_compile") 2>conftest.er1
18769   ac_status=$?
18770   grep -v '^ *+' conftest.er1 >conftest.err
18771   rm -f conftest.er1
18772   cat conftest.err >&5
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); } && {
18775          test -z "$ac_cxx_werror_flag" ||
18776          test ! -s conftest.err
18777        } && test -s conftest.$ac_objext; then
18778   bakefile_cv_cxx_compiler___xlC__=yes
18779 else
18780   echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18782
18783         bakefile_cv_cxx_compiler___xlC__=no
18784
18785 fi
18786
18787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18788
18789
18790 fi
18791 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
18792 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
18793     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
18794         :; XLCXX=yes
18795     else
18796         :;
18797     fi
18798     ac_ext=c
18799 ac_cpp='$CPP $CPPFLAGS'
18800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18803
18804
18805
18806                 ;;
18807
18808             IRIX*)
18809
18810
18811     ac_ext=cpp
18812 ac_cpp='$CXXCPP $CPPFLAGS'
18813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18816
18817     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
18818 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
18819 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h.  */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h.  */
18828
18829 int
18830 main ()
18831 {
18832
18833              #ifndef _SGI_COMPILER_VERSION
18834                 choke me
18835              #endif
18836
18837   ;
18838   return 0;
18839 }
18840 _ACEOF
18841 rm -f conftest.$ac_objext
18842 if { (ac_try="$ac_compile"
18843 case "(($ac_try" in
18844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845   *) ac_try_echo=$ac_try;;
18846 esac
18847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18848   (eval "$ac_compile") 2>conftest.er1
18849   ac_status=$?
18850   grep -v '^ *+' conftest.er1 >conftest.err
18851   rm -f conftest.er1
18852   cat conftest.err >&5
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); } && {
18855          test -z "$ac_cxx_werror_flag" ||
18856          test ! -s conftest.err
18857        } && test -s conftest.$ac_objext; then
18858   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
18859 else
18860   echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.$ac_ext >&5
18862
18863         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
18864
18865 fi
18866
18867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18868
18869
18870 fi
18871 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
18872 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
18873     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18874         :; SGICXX=yes
18875     else
18876         :;
18877     fi
18878     ac_ext=c
18879 ac_cpp='$CPP $CPPFLAGS'
18880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18883
18884
18885
18886                 ;;
18887
18888             Linux*)
18889
18890
18891     ac_ext=cpp
18892 ac_cpp='$CXXCPP $CPPFLAGS'
18893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18896
18897     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
18898 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
18899 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
18900   echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902   cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h.  */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h.  */
18908
18909 int
18910 main ()
18911 {
18912
18913              #ifndef __SUNPRO_CC
18914                 choke me
18915              #endif
18916
18917   ;
18918   return 0;
18919 }
18920 _ACEOF
18921 rm -f conftest.$ac_objext
18922 if { (ac_try="$ac_compile"
18923 case "(($ac_try" in
18924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925   *) ac_try_echo=$ac_try;;
18926 esac
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928   (eval "$ac_compile") 2>conftest.er1
18929   ac_status=$?
18930   grep -v '^ *+' conftest.er1 >conftest.err
18931   rm -f conftest.er1
18932   cat conftest.err >&5
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); } && {
18935          test -z "$ac_cxx_werror_flag" ||
18936          test ! -s conftest.err
18937        } && test -s conftest.$ac_objext; then
18938   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
18939 else
18940   echo "$as_me: failed program was:" >&5
18941 sed 's/^/| /' conftest.$ac_ext >&5
18942
18943         bakefile_cv_cxx_compiler___SUNPRO_CC=no
18944
18945 fi
18946
18947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18948
18949
18950 fi
18951 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
18952 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
18953     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
18954         :; SUNCXX=yes
18955     else
18956         :;
18957     fi
18958     ac_ext=c
18959 ac_cpp='$CPP $CPPFLAGS'
18960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18963
18964
18965
18966                 ;;
18967
18968             HP-UX*)
18969
18970
18971     ac_ext=cpp
18972 ac_cpp='$CXXCPP $CPPFLAGS'
18973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18976
18977     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
18978 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
18979 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
18980   echo $ECHO_N "(cached) $ECHO_C" >&6
18981 else
18982   cat >conftest.$ac_ext <<_ACEOF
18983 /* confdefs.h.  */
18984 _ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h.  */
18988
18989 int
18990 main ()
18991 {
18992
18993              #ifndef __HP_aCC
18994                 choke me
18995              #endif
18996
18997   ;
18998   return 0;
18999 }
19000 _ACEOF
19001 rm -f conftest.$ac_objext
19002 if { (ac_try="$ac_compile"
19003 case "(($ac_try" in
19004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005   *) ac_try_echo=$ac_try;;
19006 esac
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008   (eval "$ac_compile") 2>conftest.er1
19009   ac_status=$?
19010   grep -v '^ *+' conftest.er1 >conftest.err
19011   rm -f conftest.er1
19012   cat conftest.err >&5
19013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014   (exit $ac_status); } && {
19015          test -z "$ac_cxx_werror_flag" ||
19016          test ! -s conftest.err
19017        } && test -s conftest.$ac_objext; then
19018   bakefile_cv_cxx_compiler___HP_aCC=yes
19019 else
19020   echo "$as_me: failed program was:" >&5
19021 sed 's/^/| /' conftest.$ac_ext >&5
19022
19023         bakefile_cv_cxx_compiler___HP_aCC=no
19024
19025 fi
19026
19027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19028
19029
19030 fi
19031 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
19032 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
19033     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
19034         :; HPCXX=yes
19035     else
19036         :;
19037     fi
19038     ac_ext=c
19039 ac_cpp='$CPP $CPPFLAGS'
19040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19043
19044
19045
19046                 ;;
19047
19048             OSF1)
19049
19050
19051     ac_ext=cpp
19052 ac_cpp='$CXXCPP $CPPFLAGS'
19053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19056
19057     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
19058 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
19059 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062   cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h.  */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h.  */
19068
19069 int
19070 main ()
19071 {
19072
19073              #ifndef __DECCXX
19074                 choke me
19075              #endif
19076
19077   ;
19078   return 0;
19079 }
19080 _ACEOF
19081 rm -f conftest.$ac_objext
19082 if { (ac_try="$ac_compile"
19083 case "(($ac_try" in
19084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085   *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088   (eval "$ac_compile") 2>conftest.er1
19089   ac_status=$?
19090   grep -v '^ *+' conftest.er1 >conftest.err
19091   rm -f conftest.er1
19092   cat conftest.err >&5
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); } && {
19095          test -z "$ac_cxx_werror_flag" ||
19096          test ! -s conftest.err
19097        } && test -s conftest.$ac_objext; then
19098   bakefile_cv_cxx_compiler___DECCXX=yes
19099 else
19100   echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19102
19103         bakefile_cv_cxx_compiler___DECCXX=no
19104
19105 fi
19106
19107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19108
19109
19110 fi
19111 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
19112 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
19113     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
19114         :; COMPAQCXX=yes
19115     else
19116         :;
19117     fi
19118     ac_ext=c
19119 ac_cpp='$CPP $CPPFLAGS'
19120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19123
19124
19125
19126                 ;;
19127
19128             SunOS)
19129
19130
19131     ac_ext=cpp
19132 ac_cpp='$CXXCPP $CPPFLAGS'
19133 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19134 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19135 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19136
19137     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19138 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19139 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19140   echo $ECHO_N "(cached) $ECHO_C" >&6
19141 else
19142   cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h.  */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h.  */
19148
19149 int
19150 main ()
19151 {
19152
19153              #ifndef __SUNPRO_CC
19154                 choke me
19155              #endif
19156
19157   ;
19158   return 0;
19159 }
19160 _ACEOF
19161 rm -f conftest.$ac_objext
19162 if { (ac_try="$ac_compile"
19163 case "(($ac_try" in
19164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165   *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168   (eval "$ac_compile") 2>conftest.er1
19169   ac_status=$?
19170   grep -v '^ *+' conftest.er1 >conftest.err
19171   rm -f conftest.er1
19172   cat conftest.err >&5
19173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174   (exit $ac_status); } && {
19175          test -z "$ac_cxx_werror_flag" ||
19176          test ! -s conftest.err
19177        } && test -s conftest.$ac_objext; then
19178   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19179 else
19180   echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19182
19183         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19184
19185 fi
19186
19187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19188
19189
19190 fi
19191 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19192 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19193     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19194         :; SUNCXX=yes
19195     else
19196         :;
19197     fi
19198     ac_ext=c
19199 ac_cpp='$CPP $CPPFLAGS'
19200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19203
19204
19205
19206                 ;;
19207         esac
19208     fi
19209
19210
19211
19212 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
19213     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
19214 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
19215    { (exit 1); exit 1; }; }
19216 fi
19217
19218 if test -n "$ac_tool_prefix"; then
19219   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19220 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19223 if test "${ac_cv_prog_RANLIB+set}" = set; then
19224   echo $ECHO_N "(cached) $ECHO_C" >&6
19225 else
19226   if test -n "$RANLIB"; then
19227   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19228 else
19229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19230 for as_dir in $PATH
19231 do
19232   IFS=$as_save_IFS
19233   test -z "$as_dir" && as_dir=.
19234   for ac_exec_ext in '' $ac_executable_extensions; do
19235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19236     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19238     break 2
19239   fi
19240 done
19241 done
19242 IFS=$as_save_IFS
19243
19244 fi
19245 fi
19246 RANLIB=$ac_cv_prog_RANLIB
19247 if test -n "$RANLIB"; then
19248   { echo "$as_me:$LINENO: result: $RANLIB" >&5
19249 echo "${ECHO_T}$RANLIB" >&6; }
19250 else
19251   { echo "$as_me:$LINENO: result: no" >&5
19252 echo "${ECHO_T}no" >&6; }
19253 fi
19254
19255
19256 fi
19257 if test -z "$ac_cv_prog_RANLIB"; then
19258   ac_ct_RANLIB=$RANLIB
19259   # Extract the first word of "ranlib", so it can be a program name with args.
19260 set dummy ranlib; ac_word=$2
19261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19263 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19264   echo $ECHO_N "(cached) $ECHO_C" >&6
19265 else
19266   if test -n "$ac_ct_RANLIB"; then
19267   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19268 else
19269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19270 for as_dir in $PATH
19271 do
19272   IFS=$as_save_IFS
19273   test -z "$as_dir" && as_dir=.
19274   for ac_exec_ext in '' $ac_executable_extensions; do
19275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19276     ac_cv_prog_ac_ct_RANLIB="ranlib"
19277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19278     break 2
19279   fi
19280 done
19281 done
19282 IFS=$as_save_IFS
19283
19284 fi
19285 fi
19286 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19287 if test -n "$ac_ct_RANLIB"; then
19288   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
19289 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
19290 else
19291   { echo "$as_me:$LINENO: result: no" >&5
19292 echo "${ECHO_T}no" >&6; }
19293 fi
19294
19295   if test "x$ac_ct_RANLIB" = x; then
19296     RANLIB=":"
19297   else
19298     case $cross_compiling:$ac_tool_warned in
19299 yes:)
19300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19301 whose name does not start with the host triplet.  If you think this
19302 configuration is useful to you, please write to autoconf@gnu.org." >&5
19303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19304 whose name does not start with the host triplet.  If you think this
19305 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19306 ac_tool_warned=yes ;;
19307 esac
19308     RANLIB=$ac_ct_RANLIB
19309   fi
19310 else
19311   RANLIB="$ac_cv_prog_RANLIB"
19312 fi
19313
19314
19315 if test "x$SUNCXX" != xyes; then
19316     if test -n "$ac_tool_prefix"; then
19317   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19318 set dummy ${ac_tool_prefix}ar; ac_word=$2
19319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19321 if test "${ac_cv_prog_AR+set}" = set; then
19322   echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324   if test -n "$AR"; then
19325   ac_cv_prog_AR="$AR" # Let the user override the test.
19326 else
19327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19328 for as_dir in $PATH
19329 do
19330   IFS=$as_save_IFS
19331   test -z "$as_dir" && as_dir=.
19332   for ac_exec_ext in '' $ac_executable_extensions; do
19333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19334     ac_cv_prog_AR="${ac_tool_prefix}ar"
19335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19336     break 2
19337   fi
19338 done
19339 done
19340 IFS=$as_save_IFS
19341
19342 fi
19343 fi
19344 AR=$ac_cv_prog_AR
19345 if test -n "$AR"; then
19346   { echo "$as_me:$LINENO: result: $AR" >&5
19347 echo "${ECHO_T}$AR" >&6; }
19348 else
19349   { echo "$as_me:$LINENO: result: no" >&5
19350 echo "${ECHO_T}no" >&6; }
19351 fi
19352
19353
19354 fi
19355 if test -z "$ac_cv_prog_AR"; then
19356   ac_ct_AR=$AR
19357   # Extract the first word of "ar", so it can be a program name with args.
19358 set dummy ar; ac_word=$2
19359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19361 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19362   echo $ECHO_N "(cached) $ECHO_C" >&6
19363 else
19364   if test -n "$ac_ct_AR"; then
19365   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19366 else
19367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19368 for as_dir in $PATH
19369 do
19370   IFS=$as_save_IFS
19371   test -z "$as_dir" && as_dir=.
19372   for ac_exec_ext in '' $ac_executable_extensions; do
19373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19374     ac_cv_prog_ac_ct_AR="ar"
19375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19376     break 2
19377   fi
19378 done
19379 done
19380 IFS=$as_save_IFS
19381
19382 fi
19383 fi
19384 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19385 if test -n "$ac_ct_AR"; then
19386   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19387 echo "${ECHO_T}$ac_ct_AR" >&6; }
19388 else
19389   { echo "$as_me:$LINENO: result: no" >&5
19390 echo "${ECHO_T}no" >&6; }
19391 fi
19392
19393   if test "x$ac_ct_AR" = x; then
19394     AR=""
19395   else
19396     case $cross_compiling:$ac_tool_warned in
19397 yes:)
19398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19399 whose name does not start with the host triplet.  If you think this
19400 configuration is useful to you, please write to autoconf@gnu.org." >&5
19401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19402 whose name does not start with the host triplet.  If you think this
19403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19404 ac_tool_warned=yes ;;
19405 esac
19406     AR=$ac_ct_AR
19407   fi
19408 else
19409   AR="$ac_cv_prog_AR"
19410 fi
19411
19412     if test "x$AR" = "x" ; then
19413         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
19414 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
19415    { (exit 1); exit 1; }; }
19416     fi
19417 fi
19418
19419 # Find a good install program.  We prefer a C program (faster),
19420 # so one script is as good as another.  But avoid the broken or
19421 # incompatible versions:
19422 # SysV /etc/install, /usr/sbin/install
19423 # SunOS /usr/etc/install
19424 # IRIX /sbin/install
19425 # AIX /bin/install
19426 # AmigaOS /C/install, which installs bootblocks on floppy discs
19427 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19428 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19429 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19430 # OS/2's system install, which has a completely different semantic
19431 # ./install, which can be erroneously created by make from ./install.sh.
19432 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19433 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19434 if test -z "$INSTALL"; then
19435 if test "${ac_cv_path_install+set}" = set; then
19436   echo $ECHO_N "(cached) $ECHO_C" >&6
19437 else
19438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19439 for as_dir in $PATH
19440 do
19441   IFS=$as_save_IFS
19442   test -z "$as_dir" && as_dir=.
19443   # Account for people who put trailing slashes in PATH elements.
19444 case $as_dir/ in
19445   ./ | .// | /cC/* | \
19446   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19447   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19448   /usr/ucb/* ) ;;
19449   *)
19450     # OSF1 and SCO ODT 3.0 have their own names for install.
19451     # Don't use installbsd from OSF since it installs stuff as root
19452     # by default.
19453     for ac_prog in ginstall scoinst install; do
19454       for ac_exec_ext in '' $ac_executable_extensions; do
19455         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19456           if test $ac_prog = install &&
19457             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19458             # AIX install.  It has an incompatible calling convention.
19459             :
19460           elif test $ac_prog = install &&
19461             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19462             # program-specific install script used by HP pwplus--don't use.
19463             :
19464           else
19465             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19466             break 3
19467           fi
19468         fi
19469       done
19470     done
19471     ;;
19472 esac
19473 done
19474 IFS=$as_save_IFS
19475
19476
19477 fi
19478   if test "${ac_cv_path_install+set}" = set; then
19479     INSTALL=$ac_cv_path_install
19480   else
19481     # As a last resort, use the slow shell script.  Don't cache a
19482     # value for INSTALL within a source directory, because that will
19483     # break other packages using the cache if that directory is
19484     # removed, or if the value is a relative name.
19485     INSTALL=$ac_install_sh
19486   fi
19487 fi
19488 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19489 echo "${ECHO_T}$INSTALL" >&6; }
19490
19491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19492 # It thinks the first close brace ends the variable substitution.
19493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19494
19495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19496
19497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19498
19499
19500 case ${INSTALL} in
19501   /* ) # Absolute
19502      ;;
19503   ?:* ) # Drive letter, considered as absolute.
19504      ;;
19505   *)
19506      INSTALL=`pwd`/${INSTALL} ;;
19507 esac
19508
19509
19510 case "${host}" in
19511
19512                 *-*-darwin* )
19513         INSTALL_PROGRAM="cp -fp"
19514         INSTALL_DATA="cp -fp"
19515         ;;
19516     *)
19517         ;;
19518 esac
19519
19520 if test -n "$ac_tool_prefix"; then
19521   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19522 set dummy ${ac_tool_prefix}strip; ac_word=$2
19523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19525 if test "${ac_cv_prog_STRIP+set}" = set; then
19526   echo $ECHO_N "(cached) $ECHO_C" >&6
19527 else
19528   if test -n "$STRIP"; then
19529   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19530 else
19531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19532 for as_dir in $PATH
19533 do
19534   IFS=$as_save_IFS
19535   test -z "$as_dir" && as_dir=.
19536   for ac_exec_ext in '' $ac_executable_extensions; do
19537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19538     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19540     break 2
19541   fi
19542 done
19543 done
19544 IFS=$as_save_IFS
19545
19546 fi
19547 fi
19548 STRIP=$ac_cv_prog_STRIP
19549 if test -n "$STRIP"; then
19550   { echo "$as_me:$LINENO: result: $STRIP" >&5
19551 echo "${ECHO_T}$STRIP" >&6; }
19552 else
19553   { echo "$as_me:$LINENO: result: no" >&5
19554 echo "${ECHO_T}no" >&6; }
19555 fi
19556
19557
19558 fi
19559 if test -z "$ac_cv_prog_STRIP"; then
19560   ac_ct_STRIP=$STRIP
19561   # Extract the first word of "strip", so it can be a program name with args.
19562 set dummy strip; ac_word=$2
19563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19565 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
19566   echo $ECHO_N "(cached) $ECHO_C" >&6
19567 else
19568   if test -n "$ac_ct_STRIP"; then
19569   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19570 else
19571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19572 for as_dir in $PATH
19573 do
19574   IFS=$as_save_IFS
19575   test -z "$as_dir" && as_dir=.
19576   for ac_exec_ext in '' $ac_executable_extensions; do
19577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19578     ac_cv_prog_ac_ct_STRIP="strip"
19579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19580     break 2
19581   fi
19582 done
19583 done
19584 IFS=$as_save_IFS
19585
19586 fi
19587 fi
19588 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19589 if test -n "$ac_ct_STRIP"; then
19590   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
19591 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
19592 else
19593   { echo "$as_me:$LINENO: result: no" >&5
19594 echo "${ECHO_T}no" >&6; }
19595 fi
19596
19597   if test "x$ac_ct_STRIP" = x; then
19598     STRIP="true"
19599   else
19600     case $cross_compiling:$ac_tool_warned in
19601 yes:)
19602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19603 whose name does not start with the host triplet.  If you think this
19604 configuration is useful to you, please write to autoconf@gnu.org." >&5
19605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19606 whose name does not start with the host triplet.  If you think this
19607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19608 ac_tool_warned=yes ;;
19609 esac
19610     STRIP=$ac_ct_STRIP
19611   fi
19612 else
19613   STRIP="$ac_cv_prog_STRIP"
19614 fi
19615
19616
19617 if test "$wxUSE_WINE" = "yes"; then
19618     if test -n "$ac_tool_prefix"; then
19619   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
19620 set dummy ${ac_tool_prefix}wrc; ac_word=$2
19621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19623 if test "${ac_cv_prog_WINDRES+set}" = set; then
19624   echo $ECHO_N "(cached) $ECHO_C" >&6
19625 else
19626   if test -n "$WINDRES"; then
19627   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19628 else
19629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19630 for as_dir in $PATH
19631 do
19632   IFS=$as_save_IFS
19633   test -z "$as_dir" && as_dir=.
19634   for ac_exec_ext in '' $ac_executable_extensions; do
19635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19636     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
19637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19638     break 2
19639   fi
19640 done
19641 done
19642 IFS=$as_save_IFS
19643
19644 fi
19645 fi
19646 WINDRES=$ac_cv_prog_WINDRES
19647 if test -n "$WINDRES"; then
19648   { echo "$as_me:$LINENO: result: $WINDRES" >&5
19649 echo "${ECHO_T}$WINDRES" >&6; }
19650 else
19651   { echo "$as_me:$LINENO: result: no" >&5
19652 echo "${ECHO_T}no" >&6; }
19653 fi
19654
19655
19656 fi
19657 if test -z "$ac_cv_prog_WINDRES"; then
19658   ac_ct_WINDRES=$WINDRES
19659   # Extract the first word of "wrc", so it can be a program name with args.
19660 set dummy wrc; ac_word=$2
19661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19663 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
19664   echo $ECHO_N "(cached) $ECHO_C" >&6
19665 else
19666   if test -n "$ac_ct_WINDRES"; then
19667   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19668 else
19669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19670 for as_dir in $PATH
19671 do
19672   IFS=$as_save_IFS
19673   test -z "$as_dir" && as_dir=.
19674   for ac_exec_ext in '' $ac_executable_extensions; do
19675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19676     ac_cv_prog_ac_ct_WINDRES="wrc"
19677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19678     break 2
19679   fi
19680 done
19681 done
19682 IFS=$as_save_IFS
19683
19684 fi
19685 fi
19686 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19687 if test -n "$ac_ct_WINDRES"; then
19688   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
19689 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
19690 else
19691   { echo "$as_me:$LINENO: result: no" >&5
19692 echo "${ECHO_T}no" >&6; }
19693 fi
19694
19695   if test "x$ac_ct_WINDRES" = x; then
19696     WINDRES=""
19697   else
19698     case $cross_compiling:$ac_tool_warned in
19699 yes:)
19700 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19701 whose name does not start with the host triplet.  If you think this
19702 configuration is useful to you, please write to autoconf@gnu.org." >&5
19703 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19704 whose name does not start with the host triplet.  If you think this
19705 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19706 ac_tool_warned=yes ;;
19707 esac
19708     WINDRES=$ac_ct_WINDRES
19709   fi
19710 else
19711   WINDRES="$ac_cv_prog_WINDRES"
19712 fi
19713
19714     RESCOMP="$WINDRES"
19715 else
19716     case "${host}" in
19717     *-*-cygwin* | *-*-mingw32* )
19718                                 if test -n "$ac_tool_prefix"; then
19719   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
19720 set dummy ${ac_tool_prefix}windres; ac_word=$2
19721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19723 if test "${ac_cv_prog_WINDRES+set}" = set; then
19724   echo $ECHO_N "(cached) $ECHO_C" >&6
19725 else
19726   if test -n "$WINDRES"; then
19727   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
19728 else
19729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19730 for as_dir in $PATH
19731 do
19732   IFS=$as_save_IFS
19733   test -z "$as_dir" && as_dir=.
19734   for ac_exec_ext in '' $ac_executable_extensions; do
19735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19736     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
19737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19738     break 2
19739   fi
19740 done
19741 done
19742 IFS=$as_save_IFS
19743
19744 fi
19745 fi
19746 WINDRES=$ac_cv_prog_WINDRES
19747 if test -n "$WINDRES"; then
19748   { echo "$as_me:$LINENO: result: $WINDRES" >&5
19749 echo "${ECHO_T}$WINDRES" >&6; }
19750 else
19751   { echo "$as_me:$LINENO: result: no" >&5
19752 echo "${ECHO_T}no" >&6; }
19753 fi
19754
19755
19756 fi
19757 if test -z "$ac_cv_prog_WINDRES"; then
19758   ac_ct_WINDRES=$WINDRES
19759   # Extract the first word of "windres", so it can be a program name with args.
19760 set dummy windres; ac_word=$2
19761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19763 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
19764   echo $ECHO_N "(cached) $ECHO_C" >&6
19765 else
19766   if test -n "$ac_ct_WINDRES"; then
19767   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
19768 else
19769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19770 for as_dir in $PATH
19771 do
19772   IFS=$as_save_IFS
19773   test -z "$as_dir" && as_dir=.
19774   for ac_exec_ext in '' $ac_executable_extensions; do
19775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19776     ac_cv_prog_ac_ct_WINDRES="windres"
19777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19778     break 2
19779   fi
19780 done
19781 done
19782 IFS=$as_save_IFS
19783
19784 fi
19785 fi
19786 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
19787 if test -n "$ac_ct_WINDRES"; then
19788   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
19789 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
19790 else
19791   { echo "$as_me:$LINENO: result: no" >&5
19792 echo "${ECHO_T}no" >&6; }
19793 fi
19794
19795   if test "x$ac_ct_WINDRES" = x; then
19796     WINDRES=""
19797   else
19798     case $cross_compiling:$ac_tool_warned in
19799 yes:)
19800 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19801 whose name does not start with the host triplet.  If you think this
19802 configuration is useful to you, please write to autoconf@gnu.org." >&5
19803 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19804 whose name does not start with the host triplet.  If you think this
19805 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19806 ac_tool_warned=yes ;;
19807 esac
19808     WINDRES=$ac_ct_WINDRES
19809   fi
19810 else
19811   WINDRES="$ac_cv_prog_WINDRES"
19812 fi
19813
19814         RESCOMP="$WINDRES"
19815         if test -n "$ac_tool_prefix"; then
19816   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
19817 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
19818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19820 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
19821   echo $ECHO_N "(cached) $ECHO_C" >&6
19822 else
19823   if test -n "$DLLTOOL"; then
19824   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
19825 else
19826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19827 for as_dir in $PATH
19828 do
19829   IFS=$as_save_IFS
19830   test -z "$as_dir" && as_dir=.
19831   for ac_exec_ext in '' $ac_executable_extensions; do
19832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19833     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
19834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19835     break 2
19836   fi
19837 done
19838 done
19839 IFS=$as_save_IFS
19840
19841 fi
19842 fi
19843 DLLTOOL=$ac_cv_prog_DLLTOOL
19844 if test -n "$DLLTOOL"; then
19845   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
19846 echo "${ECHO_T}$DLLTOOL" >&6; }
19847 else
19848   { echo "$as_me:$LINENO: result: no" >&5
19849 echo "${ECHO_T}no" >&6; }
19850 fi
19851
19852
19853 fi
19854 if test -z "$ac_cv_prog_DLLTOOL"; then
19855   ac_ct_DLLTOOL=$DLLTOOL
19856   # Extract the first word of "dlltool", so it can be a program name with args.
19857 set dummy dlltool; ac_word=$2
19858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19860 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
19861   echo $ECHO_N "(cached) $ECHO_C" >&6
19862 else
19863   if test -n "$ac_ct_DLLTOOL"; then
19864   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
19865 else
19866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19867 for as_dir in $PATH
19868 do
19869   IFS=$as_save_IFS
19870   test -z "$as_dir" && as_dir=.
19871   for ac_exec_ext in '' $ac_executable_extensions; do
19872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19873     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
19874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19875     break 2
19876   fi
19877 done
19878 done
19879 IFS=$as_save_IFS
19880
19881 fi
19882 fi
19883 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
19884 if test -n "$ac_ct_DLLTOOL"; then
19885   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
19886 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
19887 else
19888   { echo "$as_me:$LINENO: result: no" >&5
19889 echo "${ECHO_T}no" >&6; }
19890 fi
19891
19892   if test "x$ac_ct_DLLTOOL" = x; then
19893     DLLTOOL=""
19894   else
19895     case $cross_compiling:$ac_tool_warned in
19896 yes:)
19897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19898 whose name does not start with the host triplet.  If you think this
19899 configuration is useful to you, please write to autoconf@gnu.org." >&5
19900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19901 whose name does not start with the host triplet.  If you think this
19902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19903 ac_tool_warned=yes ;;
19904 esac
19905     DLLTOOL=$ac_ct_DLLTOOL
19906   fi
19907 else
19908   DLLTOOL="$ac_cv_prog_DLLTOOL"
19909 fi
19910
19911         ;;
19912     esac
19913 fi
19914
19915 { echo "$as_me:$LINENO: checking if make is GNU make" >&5
19916 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
19917 if test "${wx_cv_prog_makeisgnu+set}" = set; then
19918   echo $ECHO_N "(cached) $ECHO_C" >&6
19919 else
19920
19921     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
19922             $EGREP -s GNU > /dev/null); then
19923         wx_cv_prog_makeisgnu="yes"
19924     else
19925         wx_cv_prog_makeisgnu="no"
19926     fi
19927
19928 fi
19929 { echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
19930 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6; }
19931
19932 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
19933     IF_GNU_MAKE=""
19934 else
19935     IF_GNU_MAKE="#"
19936 fi
19937
19938
19939
19940 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
19941 { echo "$as_me:$LINENO: checking if make supports VPATH" >&5
19942 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6; }
19943 if test "${wx_cv_prog_makevpath+set}" = set; then
19944   echo $ECHO_N "(cached) $ECHO_C" >&6
19945 else
19946
19947 cat - << EOF > confMake
19948 check : file
19949         cp \$? \$@
19950         cp \$? final_file
19951 EOF
19952
19953 if test ! -d sub ; then
19954   mkdir sub
19955 fi
19956 echo dummy > sub/file
19957 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
19958 RESULT=$?
19959 rm -f sub/file check final_file confMake
19960 rmdir sub
19961 if test "$RESULT" = 0; then
19962   wx_cv_prog_makevpath="yes"
19963 else
19964   wx_cv_prog_makevpath="no"
19965 fi
19966
19967 fi
19968 { echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
19969 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6; }
19970
19971 if test "x$wx_cv_prog_makevpath" != "xyes"; then
19972 { { echo "$as_me:$LINENO: error:
19973 You need a make-utility that is able to use the variable
19974 VPATH correctly.
19975 If your version of make does not support VPATH correctly,
19976 please install GNU-make (possibly as gmake), and start
19977 configure with the following command:
19978 export MAKE=gmake; ./configure  for sh-type shells
19979 setenv MAKE gmake; ./configure  for csh-type shells
19980 Also please do remember to use gmake in this case every time
19981 you are trying to compile.
19982 " >&5
19983 echo "$as_me: error:
19984 You need a make-utility that is able to use the variable
19985 VPATH correctly.
19986 If your version of make does not support VPATH correctly,
19987 please install GNU-make (possibly as gmake), and start
19988 configure with the following command:
19989 export MAKE=gmake; ./configure  for sh-type shells
19990 setenv MAKE gmake; ./configure  for csh-type shells
19991 Also please do remember to use gmake in this case every time
19992 you are trying to compile.
19993 " >&2;}
19994    { (exit 1); exit 1; }; }
19995 fi fi
19996 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
19997 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
19998 LN_S=$as_ln_s
19999 if test "$LN_S" = "ln -s"; then
20000   { echo "$as_me:$LINENO: result: yes" >&5
20001 echo "${ECHO_T}yes" >&6; }
20002 else
20003   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20004 echo "${ECHO_T}no, using $LN_S" >&6; }
20005 fi
20006
20007
20008
20009
20010 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
20011     CXXFLAGS="-qunique $CXXFLAGS"
20012 fi
20013
20014 case "${host}" in
20015   powerpc-*-darwin* )
20016     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
20017 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
20018     cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h.  */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h.  */
20024
20025 int
20026 main ()
20027 {
20028 #ifndef __POWERPC__
20029         choke me for lack of PowerPC
20030 #endif
20031
20032   ;
20033   return 0;
20034 }
20035 _ACEOF
20036 rm -f conftest.$ac_objext
20037 if { (ac_try="$ac_compile"
20038 case "(($ac_try" in
20039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040   *) ac_try_echo=$ac_try;;
20041 esac
20042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043   (eval "$ac_compile") 2>conftest.er1
20044   ac_status=$?
20045   grep -v '^ *+' conftest.er1 >conftest.err
20046   rm -f conftest.er1
20047   cat conftest.err >&5
20048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049   (exit $ac_status); } && {
20050          test -z "$ac_c_werror_flag" ||
20051          test ! -s conftest.err
20052        } && test -s conftest.$ac_objext; then
20053   { echo "$as_me:$LINENO: result: yes" >&5
20054 echo "${ECHO_T}yes" >&6; }
20055 else
20056   echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20058
20059         { echo "$as_me:$LINENO: result: no" >&5
20060 echo "${ECHO_T}no" >&6; }
20061         cat >>confdefs.h <<\_ACEOF
20062 #define __POWERPC__ 1
20063 _ACEOF
20064
20065
20066 fi
20067
20068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20069   ;;
20070 esac
20071
20072 case "${host}" in
20073   *-*-darwin* )
20074     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
20075 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
20076     cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h.  */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h.  */
20082 #include <CoreFoundation/CFBase.h>
20083
20084 int
20085 main ()
20086 {
20087
20088   ;
20089   return 0;
20090 }
20091 _ACEOF
20092 rm -f conftest.$ac_objext
20093 if { (ac_try="$ac_compile"
20094 case "(($ac_try" in
20095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096   *) ac_try_echo=$ac_try;;
20097 esac
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099   (eval "$ac_compile") 2>conftest.er1
20100   ac_status=$?
20101   grep -v '^ *+' conftest.er1 >conftest.err
20102   rm -f conftest.er1
20103   cat conftest.err >&5
20104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105   (exit $ac_status); } && {
20106          test -z "$ac_c_werror_flag" ||
20107          test ! -s conftest.err
20108        } && test -s conftest.$ac_objext; then
20109   { echo "$as_me:$LINENO: result: yes" >&5
20110 echo "${ECHO_T}yes" >&6; }
20111 else
20112   echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20114
20115         { echo "$as_me:$LINENO: result: no" >&5
20116 echo "${ECHO_T}no" >&6; }
20117         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
20118 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
20119         cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h.  */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h.  */
20125 #define __CF_USE_FRAMEWORK_INCLUDES__
20126 #include <CoreFoundation/CFBase.h>
20127
20128 int
20129 main ()
20130 {
20131
20132   ;
20133   return 0;
20134 }
20135 _ACEOF
20136 rm -f conftest.$ac_objext
20137 if { (ac_try="$ac_compile"
20138 case "(($ac_try" in
20139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140   *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143   (eval "$ac_compile") 2>conftest.er1
20144   ac_status=$?
20145   grep -v '^ *+' conftest.er1 >conftest.err
20146   rm -f conftest.er1
20147   cat conftest.err >&5
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); } && {
20150          test -z "$ac_c_werror_flag" ||
20151          test ! -s conftest.err
20152        } && test -s conftest.$ac_objext; then
20153   { echo "$as_me:$LINENO: result: yes" >&5
20154 echo "${ECHO_T}yes" >&6; }
20155                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
20156 else
20157   echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20159
20160         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
20161 See \`config.log' for more details." >&5
20162 echo "$as_me: error: no.  CoreFoundation not available.
20163 See \`config.log' for more details." >&2;}
20164    { (exit 1); exit 1; }; }
20165
20166 fi
20167
20168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169
20170
20171 fi
20172
20173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20174   ;;
20175 esac
20176
20177 wants_win32=0
20178 doesnt_want_win32=0
20179 case "${host}" in
20180   *-*-cygwin*)
20181       if test "$wxUSE_MSW" = 1 ; then
20182         wants_win32=1
20183       else
20184                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
20185 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
20186 if test "${wx_cv_nocygwin+set}" = set; then
20187   echo $ECHO_N "(cached) $ECHO_C" >&6
20188 else
20189
20190                 cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h.  */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h.  */
20196
20197 int
20198 main ()
20199 {
20200
20201                         #ifdef __MINGW32__
20202                             choke me
20203                         #endif
20204
20205   ;
20206   return 0;
20207 }
20208 _ACEOF
20209 rm -f conftest.$ac_objext
20210 if { (ac_try="$ac_compile"
20211 case "(($ac_try" in
20212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213   *) ac_try_echo=$ac_try;;
20214 esac
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216   (eval "$ac_compile") 2>conftest.er1
20217   ac_status=$?
20218   grep -v '^ *+' conftest.er1 >conftest.err
20219   rm -f conftest.er1
20220   cat conftest.err >&5
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); } && {
20223          test -z "$ac_c_werror_flag" ||
20224          test ! -s conftest.err
20225        } && test -s conftest.$ac_objext; then
20226   wx_cv_nocygwin=no
20227 else
20228   echo "$as_me: failed program was:" >&5
20229 sed 's/^/| /' conftest.$ac_ext >&5
20230
20231         wx_cv_nocygwin=yes
20232
20233 fi
20234
20235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236
20237
20238 fi
20239 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
20240 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
20241
20242         if test "$wx_cv_nocygwin" = "yes"; then
20243             wants_win32=1
20244         else
20245             doesnt_want_win32=1
20246         fi
20247       fi
20248       if test "$wants_win32" = 1 ; then
20249         BAKEFILE_FORCE_PLATFORM=win32
20250       fi
20251   ;;
20252   *-*-mingw*)
20253       wants_win32=1
20254   ;;
20255 esac
20256
20257 if test "$wxUSE_WINE" = "yes"; then
20258     wants_win32=1
20259     LDFLAGS_GUI="-mwindows"
20260 fi
20261
20262 if test "$wants_win32" = 1 ; then
20263     USE_UNIX=0
20264     USE_WIN32=1
20265     cat >>confdefs.h <<\_ACEOF
20266 #define __WIN32__ 1
20267 _ACEOF
20268
20269     cat >>confdefs.h <<\_ACEOF
20270 #define __WIN95__ 1
20271 _ACEOF
20272
20273     cat >>confdefs.h <<\_ACEOF
20274 #define __WINDOWS__ 1
20275 _ACEOF
20276
20277     cat >>confdefs.h <<\_ACEOF
20278 #define __GNUWIN32__ 1
20279 _ACEOF
20280
20281     cat >>confdefs.h <<\_ACEOF
20282 #define STRICT 1
20283 _ACEOF
20284
20285 fi
20286 if test "$doesnt_want_win32" = 1 ; then
20287     USE_UNIX=1
20288     USE_WIN32=0
20289 fi
20290
20291 if test "$USE_UNIX" = 1 ; then
20292     wxUSE_UNIX=yes
20293     cat >>confdefs.h <<\_ACEOF
20294 #define __UNIX__ 1
20295 _ACEOF
20296
20297 fi
20298
20299 case "${host}" in
20300   *-pc-os2_emx | *-pc-os2-emx )
20301                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
20302                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
20303 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
20304 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
20305   echo $ECHO_N "(cached) $ECHO_C" >&6
20306 else
20307   ac_check_lib_save_LIBS=$LIBS
20308 LIBS="-lcExt  $LIBS"
20309 cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h.  */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h.  */
20315
20316 /* Override any GCC internal prototype to avoid an error.
20317    Use char because int might match the return type of a GCC
20318    builtin and then its argument prototype would still apply.  */
20319 #ifdef __cplusplus
20320 extern "C"
20321 #endif
20322 char drand48 ();
20323 int
20324 main ()
20325 {
20326 return drand48 ();
20327   ;
20328   return 0;
20329 }
20330 _ACEOF
20331 rm -f conftest.$ac_objext conftest$ac_exeext
20332 if { (ac_try="$ac_link"
20333 case "(($ac_try" in
20334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20335   *) ac_try_echo=$ac_try;;
20336 esac
20337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20338   (eval "$ac_link") 2>conftest.er1
20339   ac_status=$?
20340   grep -v '^ *+' conftest.er1 >conftest.err
20341   rm -f conftest.er1
20342   cat conftest.err >&5
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); } && {
20345          test -z "$ac_c_werror_flag" ||
20346          test ! -s conftest.err
20347        } && test -s conftest$ac_exeext &&
20348        $as_test_x conftest$ac_exeext; then
20349   ac_cv_lib_cExt_drand48=yes
20350 else
20351   echo "$as_me: failed program was:" >&5
20352 sed 's/^/| /' conftest.$ac_ext >&5
20353
20354         ac_cv_lib_cExt_drand48=no
20355 fi
20356
20357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20358       conftest$ac_exeext conftest.$ac_ext
20359 LIBS=$ac_check_lib_save_LIBS
20360 fi
20361 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
20362 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
20363 if test $ac_cv_lib_cExt_drand48 = yes; then
20364   LIBS="$LIBS -lcExt"
20365 fi
20366
20367       else
20368                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
20369       fi
20370                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
20371 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
20372 if test "${wx_cv_gccversion+set}" = set; then
20373   echo $ECHO_N "(cached) $ECHO_C" >&6
20374 else
20375
20376           if test "$cross_compiling" = yes; then
20377                 wx_cv_gccversion="EMX2"
20378
20379 else
20380   cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386
20387                   #include <stdio.h>
20388
20389                   int main()
20390                   {
20391                       FILE *f=fopen("conftestval", "w");
20392                       if (!f) exit(1);
20393                       fprintf(f,
20394                   #if (__GNUC__ < 3)
20395                               "EMX2"
20396                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
20397                               "EMX3"
20398                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
20399                               "Innotek5"
20400                   #else
20401                               "Innotek6"
20402                   #endif
20403                       );
20404                       exit(0);
20405                   }
20406
20407 _ACEOF
20408 rm -f conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412   *) ac_try_echo=$ac_try;;
20413 esac
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415   (eval "$ac_link") 2>&5
20416   ac_status=$?
20417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20419   { (case "(($ac_try" in
20420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421   *) ac_try_echo=$ac_try;;
20422 esac
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424   (eval "$ac_try") 2>&5
20425   ac_status=$?
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); }; }; then
20428   wx_cv_gccversion=`cat conftestval`
20429 else
20430   echo "$as_me: program exited with status $ac_status" >&5
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20433
20434 ( exit $ac_status )
20435 wx_cv_gccversion="EMX2"
20436 fi
20437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20438 fi
20439
20440
20441
20442 fi
20443 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
20444 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
20445       if test "$wx_cv_gccversion" = "EMX2"; then
20446           LIBS="$LIBS -lstdcpp"
20447           LDFLAGS="$LDFLAGS -Zsysv-signals"
20448       else
20449           if test "$wx_cv_gccversion" = "EMX3"; then
20450               LIBS="$LIBS -lstdcxx -lgcc"
20451               LDFLAGS="$LDFLAGS -Zsysv-signals"
20452           else
20453               LIBS="$LIBS -lstdc++"
20454           fi
20455       fi
20456       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
20457         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
20458 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
20459         wxUSE_OMF=yes
20460         enable_omf=yes
20461       fi
20462         ;;
20463   *)
20464
20465       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
20466 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
20467 if test "${ac_cv_string_strcasecmp+set}" = set; then
20468   echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470
20471           cat >conftest.$ac_ext <<_ACEOF
20472 /* confdefs.h.  */
20473 _ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h.  */
20477
20478               #include <string.h>
20479
20480 int
20481 main ()
20482 {
20483
20484                   strcasecmp("foo", "bar");
20485
20486   ;
20487   return 0;
20488 }
20489 _ACEOF
20490 rm -f conftest.$ac_objext conftest$ac_exeext
20491 if { (ac_try="$ac_link"
20492 case "(($ac_try" in
20493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494   *) ac_try_echo=$ac_try;;
20495 esac
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497   (eval "$ac_link") 2>conftest.er1
20498   ac_status=$?
20499   grep -v '^ *+' conftest.er1 >conftest.err
20500   rm -f conftest.er1
20501   cat conftest.err >&5
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); } && {
20504          test -z "$ac_c_werror_flag" ||
20505          test ! -s conftest.err
20506        } && test -s conftest$ac_exeext &&
20507        $as_test_x conftest$ac_exeext; then
20508   ac_cv_string_strcasecmp=yes
20509 else
20510   echo "$as_me: failed program was:" >&5
20511 sed 's/^/| /' conftest.$ac_ext >&5
20512
20513         ac_cv_string_strcasecmp=no
20514
20515 fi
20516
20517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20518       conftest$ac_exeext conftest.$ac_ext
20519
20520 fi
20521 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
20522 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
20523
20524       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
20525           cat >>confdefs.h <<\_ACEOF
20526 #define HAVE_STRCASECMP_IN_STRING_H 1
20527 _ACEOF
20528
20529       else
20530           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
20531 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
20532 if test "${ac_cv_strings_strcasecmp+set}" = set; then
20533   echo $ECHO_N "(cached) $ECHO_C" >&6
20534 else
20535
20536               cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h.  */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h.  */
20542
20543                   #include <strings.h>
20544
20545 int
20546 main ()
20547 {
20548
20549                       strcasecmp("foo", "bar");
20550
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext conftest$ac_exeext
20556 if { (ac_try="$ac_link"
20557 case "(($ac_try" in
20558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559   *) ac_try_echo=$ac_try;;
20560 esac
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562   (eval "$ac_link") 2>conftest.er1
20563   ac_status=$?
20564   grep -v '^ *+' conftest.er1 >conftest.err
20565   rm -f conftest.er1
20566   cat conftest.err >&5
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); } && {
20569          test -z "$ac_c_werror_flag" ||
20570          test ! -s conftest.err
20571        } && test -s conftest$ac_exeext &&
20572        $as_test_x conftest$ac_exeext; then
20573   ac_cv_strings_strcasecmp=yes
20574 else
20575   echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20577
20578         ac_cv_strings_strcasecmp=no
20579
20580 fi
20581
20582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20583       conftest$ac_exeext conftest.$ac_ext
20584
20585 fi
20586 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
20587 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
20588
20589           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
20590               cat >>confdefs.h <<\_ACEOF
20591 #define HAVE_STRCASECMP_IN_STRINGS_H 1
20592 _ACEOF
20593
20594           else
20595               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
20596 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
20597    { (exit 1); exit 1; }; }
20598           fi
20599       fi
20600
20601         ;;
20602 esac
20603
20604
20605 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20606 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20607 if test "${ac_cv_header_stdc+set}" = set; then
20608   echo $ECHO_N "(cached) $ECHO_C" >&6
20609 else
20610   cat >conftest.$ac_ext <<_ACEOF
20611 /* confdefs.h.  */
20612 _ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h.  */
20616 #include <stdlib.h>
20617 #include <stdarg.h>
20618 #include <string.h>
20619 #include <float.h>
20620
20621 int
20622 main ()
20623 {
20624
20625   ;
20626   return 0;
20627 }
20628 _ACEOF
20629 rm -f conftest.$ac_objext
20630 if { (ac_try="$ac_compile"
20631 case "(($ac_try" in
20632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633   *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636   (eval "$ac_compile") 2>conftest.er1
20637   ac_status=$?
20638   grep -v '^ *+' conftest.er1 >conftest.err
20639   rm -f conftest.er1
20640   cat conftest.err >&5
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); } && {
20643          test -z "$ac_c_werror_flag" ||
20644          test ! -s conftest.err
20645        } && test -s conftest.$ac_objext; then
20646   ac_cv_header_stdc=yes
20647 else
20648   echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20650
20651         ac_cv_header_stdc=no
20652 fi
20653
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20655
20656 if test $ac_cv_header_stdc = yes; then
20657   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20658   cat >conftest.$ac_ext <<_ACEOF
20659 /* confdefs.h.  */
20660 _ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h.  */
20664 #include <string.h>
20665
20666 _ACEOF
20667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20668   $EGREP "memchr" >/dev/null 2>&1; then
20669   :
20670 else
20671   ac_cv_header_stdc=no
20672 fi
20673 rm -f conftest*
20674
20675 fi
20676
20677 if test $ac_cv_header_stdc = yes; then
20678   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20679   cat >conftest.$ac_ext <<_ACEOF
20680 /* confdefs.h.  */
20681 _ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h.  */
20685 #include <stdlib.h>
20686
20687 _ACEOF
20688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20689   $EGREP "free" >/dev/null 2>&1; then
20690   :
20691 else
20692   ac_cv_header_stdc=no
20693 fi
20694 rm -f conftest*
20695
20696 fi
20697
20698 if test $ac_cv_header_stdc = yes; then
20699   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20700   if test "$cross_compiling" = yes; then
20701   :
20702 else
20703   cat >conftest.$ac_ext <<_ACEOF
20704 /* confdefs.h.  */
20705 _ACEOF
20706 cat confdefs.h >>conftest.$ac_ext
20707 cat >>conftest.$ac_ext <<_ACEOF
20708 /* end confdefs.h.  */
20709 #include <ctype.h>
20710 #include <stdlib.h>
20711 #if ((' ' & 0x0FF) == 0x020)
20712 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20713 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20714 #else
20715 # define ISLOWER(c) \
20716                    (('a' <= (c) && (c) <= 'i') \
20717                      || ('j' <= (c) && (c) <= 'r') \
20718                      || ('s' <= (c) && (c) <= 'z'))
20719 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20720 #endif
20721
20722 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20723 int
20724 main ()
20725 {
20726   int i;
20727   for (i = 0; i < 256; i++)
20728     if (XOR (islower (i), ISLOWER (i))
20729         || toupper (i) != TOUPPER (i))
20730       return 2;
20731   return 0;
20732 }
20733 _ACEOF
20734 rm -f conftest$ac_exeext
20735 if { (ac_try="$ac_link"
20736 case "(($ac_try" in
20737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738   *) ac_try_echo=$ac_try;;
20739 esac
20740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20741   (eval "$ac_link") 2>&5
20742   ac_status=$?
20743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20745   { (case "(($ac_try" in
20746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747   *) ac_try_echo=$ac_try;;
20748 esac
20749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20750   (eval "$ac_try") 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; }; then
20754   :
20755 else
20756   echo "$as_me: program exited with status $ac_status" >&5
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20759
20760 ( exit $ac_status )
20761 ac_cv_header_stdc=no
20762 fi
20763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20764 fi
20765
20766
20767 fi
20768 fi
20769 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20770 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20771 if test $ac_cv_header_stdc = yes; then
20772
20773 cat >>confdefs.h <<\_ACEOF
20774 #define STDC_HEADERS 1
20775 _ACEOF
20776
20777 fi
20778
20779 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
20790                   inttypes.h stdint.h unistd.h
20791 do
20792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20796   echo $ECHO_N "(cached) $ECHO_C" >&6
20797 else
20798   cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h.  */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h.  */
20804 $ac_includes_default
20805
20806 #include <$ac_header>
20807 _ACEOF
20808 rm -f conftest.$ac_objext
20809 if { (ac_try="$ac_compile"
20810 case "(($ac_try" in
20811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812   *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815   (eval "$ac_compile") 2>conftest.er1
20816   ac_status=$?
20817   grep -v '^ *+' conftest.er1 >conftest.err
20818   rm -f conftest.er1
20819   cat conftest.err >&5
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); } && {
20822          test -z "$ac_c_werror_flag" ||
20823          test ! -s conftest.err
20824        } && test -s conftest.$ac_objext; then
20825   eval "$as_ac_Header=yes"
20826 else
20827   echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20829
20830         eval "$as_ac_Header=no"
20831 fi
20832
20833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20834 fi
20835 ac_res=`eval echo '${'$as_ac_Header'}'`
20836                { echo "$as_me:$LINENO: result: $ac_res" >&5
20837 echo "${ECHO_T}$ac_res" >&6; }
20838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20839   cat >>confdefs.h <<_ACEOF
20840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20841 _ACEOF
20842
20843 fi
20844
20845 done
20846
20847
20848
20849
20850
20851
20852
20853
20854 for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
20855 do
20856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20860   echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862   cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h.  */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h.  */
20868 $ac_includes_default
20869
20870 #include <$ac_header>
20871 _ACEOF
20872 rm -f conftest.$ac_objext
20873 if { (ac_try="$ac_compile"
20874 case "(($ac_try" in
20875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876   *) ac_try_echo=$ac_try;;
20877 esac
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879   (eval "$ac_compile") 2>conftest.er1
20880   ac_status=$?
20881   grep -v '^ *+' conftest.er1 >conftest.err
20882   rm -f conftest.er1
20883   cat conftest.err >&5
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } && {
20886          test -z "$ac_c_werror_flag" ||
20887          test ! -s conftest.err
20888        } && test -s conftest.$ac_objext; then
20889   eval "$as_ac_Header=yes"
20890 else
20891   echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20893
20894         eval "$as_ac_Header=no"
20895 fi
20896
20897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20898 fi
20899 ac_res=`eval echo '${'$as_ac_Header'}'`
20900                { echo "$as_me:$LINENO: result: $ac_res" >&5
20901 echo "${ECHO_T}$ac_res" >&6; }
20902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20903   cat >>confdefs.h <<_ACEOF
20904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20905 _ACEOF
20906
20907 fi
20908
20909 done
20910
20911
20912 if test "$ac_cv_header_wchar_h" != "yes"; then
20913
20914 for ac_header in wcstr.h
20915 do
20916 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20920   echo $ECHO_N "(cached) $ECHO_C" >&6
20921 else
20922   cat >conftest.$ac_ext <<_ACEOF
20923 /* confdefs.h.  */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h.  */
20928 $ac_includes_default
20929
20930 #include <$ac_header>
20931 _ACEOF
20932 rm -f conftest.$ac_objext
20933 if { (ac_try="$ac_compile"
20934 case "(($ac_try" in
20935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936   *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939   (eval "$ac_compile") 2>conftest.er1
20940   ac_status=$?
20941   grep -v '^ *+' conftest.er1 >conftest.err
20942   rm -f conftest.er1
20943   cat conftest.err >&5
20944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); } && {
20946          test -z "$ac_c_werror_flag" ||
20947          test ! -s conftest.err
20948        } && test -s conftest.$ac_objext; then
20949   eval "$as_ac_Header=yes"
20950 else
20951   echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20953
20954         eval "$as_ac_Header=no"
20955 fi
20956
20957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20958 fi
20959 ac_res=`eval echo '${'$as_ac_Header'}'`
20960                { echo "$as_me:$LINENO: result: $ac_res" >&5
20961 echo "${ECHO_T}$ac_res" >&6; }
20962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20963   cat >>confdefs.h <<_ACEOF
20964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20965 _ACEOF
20966
20967 fi
20968
20969 done
20970
20971 fi
20972
20973 case "${host}" in
20974   *-pc-os2_emx | *-pc-os2-emx )
20975                   if test $ac_cv_header_langinfo_h = "yes" \
20976                 -a \(   "$wx_cv_gccversion" = "EMX2" \
20977                      -o "$wx_cv_gccversion" = "EMX3" \
20978                      -o "$wx_cv_gccversion" = "Innotek5" \); then
20979           LIBS="$LIBS -lintl"
20980       fi
20981   ;;
20982 esac
20983
20984 if test "$USE_UNIX" = 1 ; then
20985
20986 for ac_header in sys/select.h
20987 do
20988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20992   echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20994   cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h.  */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h.  */
21000 $ac_includes_default
21001
21002 #include <$ac_header>
21003 _ACEOF
21004 rm -f conftest.$ac_objext
21005 if { (ac_try="$ac_compile"
21006 case "(($ac_try" in
21007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21008   *) ac_try_echo=$ac_try;;
21009 esac
21010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21011   (eval "$ac_compile") 2>conftest.er1
21012   ac_status=$?
21013   grep -v '^ *+' conftest.er1 >conftest.err
21014   rm -f conftest.er1
21015   cat conftest.err >&5
21016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017   (exit $ac_status); } && {
21018          test -z "$ac_c_werror_flag" ||
21019          test ! -s conftest.err
21020        } && test -s conftest.$ac_objext; then
21021   eval "$as_ac_Header=yes"
21022 else
21023   echo "$as_me: failed program was:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21025
21026         eval "$as_ac_Header=no"
21027 fi
21028
21029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21030 fi
21031 ac_res=`eval echo '${'$as_ac_Header'}'`
21032                { echo "$as_me:$LINENO: result: $ac_res" >&5
21033 echo "${ECHO_T}$ac_res" >&6; }
21034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21035   cat >>confdefs.h <<_ACEOF
21036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21037 _ACEOF
21038
21039 fi
21040
21041 done
21042
21043 fi
21044
21045
21046 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21047 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21048 if test "${ac_cv_c_const+set}" = set; then
21049   echo $ECHO_N "(cached) $ECHO_C" >&6
21050 else
21051   cat >conftest.$ac_ext <<_ACEOF
21052 /* confdefs.h.  */
21053 _ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h.  */
21057
21058 int
21059 main ()
21060 {
21061 /* FIXME: Include the comments suggested by Paul. */
21062 #ifndef __cplusplus
21063   /* Ultrix mips cc rejects this.  */
21064   typedef int charset[2];
21065   const charset cs;
21066   /* SunOS 4.1.1 cc rejects this.  */
21067   char const *const *pcpcc;
21068   char **ppc;
21069   /* NEC SVR4.0.2 mips cc rejects this.  */
21070   struct point {int x, y;};
21071   static struct point const zero = {0,0};
21072   /* AIX XL C 1.02.0.0 rejects this.
21073      It does not let you subtract one const X* pointer from another in
21074      an arm of an if-expression whose if-part is not a constant
21075      expression */
21076   const char *g = "string";
21077   pcpcc = &g + (g ? g-g : 0);
21078   /* HPUX 7.0 cc rejects these. */
21079   ++pcpcc;
21080   ppc = (char**) pcpcc;
21081   pcpcc = (char const *const *) ppc;
21082   { /* SCO 3.2v4 cc rejects this.  */
21083     char *t;
21084     char const *s = 0 ? (char *) 0 : (char const *) 0;
21085
21086     *t++ = 0;
21087     if (s) return 0;
21088   }
21089   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21090     int x[] = {25, 17};
21091     const int *foo = &x[0];
21092     ++foo;
21093   }
21094   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21095     typedef const int *iptr;
21096     iptr p = 0;
21097     ++p;
21098   }
21099   { /* AIX XL C 1.02.0.0 rejects this saying
21100        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21101     struct s { int j; const int *ap[3]; };
21102     struct s *b; b->j = 5;
21103   }
21104   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21105     const int foo = 10;
21106     if (!foo) return 0;
21107   }
21108   return !cs[0] && !zero.x;
21109 #endif
21110
21111   ;
21112   return 0;
21113 }
21114 _ACEOF
21115 rm -f conftest.$ac_objext
21116 if { (ac_try="$ac_compile"
21117 case "(($ac_try" in
21118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119   *) ac_try_echo=$ac_try;;
21120 esac
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122   (eval "$ac_compile") 2>conftest.er1
21123   ac_status=$?
21124   grep -v '^ *+' conftest.er1 >conftest.err
21125   rm -f conftest.er1
21126   cat conftest.err >&5
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); } && {
21129          test -z "$ac_c_werror_flag" ||
21130          test ! -s conftest.err
21131        } && test -s conftest.$ac_objext; then
21132   ac_cv_c_const=yes
21133 else
21134   echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21136
21137         ac_cv_c_const=no
21138 fi
21139
21140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21141 fi
21142 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21143 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21144 if test $ac_cv_c_const = no; then
21145
21146 cat >>confdefs.h <<\_ACEOF
21147 #define const
21148 _ACEOF
21149
21150 fi
21151
21152 { echo "$as_me:$LINENO: checking for inline" >&5
21153 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21154 if test "${ac_cv_c_inline+set}" = set; then
21155   echo $ECHO_N "(cached) $ECHO_C" >&6
21156 else
21157   ac_cv_c_inline=no
21158 for ac_kw in inline __inline__ __inline; do
21159   cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h.  */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h.  */
21165 #ifndef __cplusplus
21166 typedef int foo_t;
21167 static $ac_kw foo_t static_foo () {return 0; }
21168 $ac_kw foo_t foo () {return 0; }
21169 #endif
21170
21171 _ACEOF
21172 rm -f conftest.$ac_objext
21173 if { (ac_try="$ac_compile"
21174 case "(($ac_try" in
21175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176   *) ac_try_echo=$ac_try;;
21177 esac
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179   (eval "$ac_compile") 2>conftest.er1
21180   ac_status=$?
21181   grep -v '^ *+' conftest.er1 >conftest.err
21182   rm -f conftest.er1
21183   cat conftest.err >&5
21184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185   (exit $ac_status); } && {
21186          test -z "$ac_c_werror_flag" ||
21187          test ! -s conftest.err
21188        } && test -s conftest.$ac_objext; then
21189   ac_cv_c_inline=$ac_kw
21190 else
21191   echo "$as_me: failed program was:" >&5
21192 sed 's/^/| /' conftest.$ac_ext >&5
21193
21194
21195 fi
21196
21197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21198   test "$ac_cv_c_inline" != no && break
21199 done
21200
21201 fi
21202 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21203 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21204
21205
21206 case $ac_cv_c_inline in
21207   inline | yes) ;;
21208   *)
21209     case $ac_cv_c_inline in
21210       no) ac_val=;;
21211       *) ac_val=$ac_cv_c_inline;;
21212     esac
21213     cat >>confdefs.h <<_ACEOF
21214 #ifndef __cplusplus
21215 #define inline $ac_val
21216 #endif
21217 _ACEOF
21218     ;;
21219 esac
21220
21221
21222 { echo "$as_me:$LINENO: checking for short" >&5
21223 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21224 if test "${ac_cv_type_short+set}" = set; then
21225   echo $ECHO_N "(cached) $ECHO_C" >&6
21226 else
21227   cat >conftest.$ac_ext <<_ACEOF
21228 /* confdefs.h.  */
21229 _ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h.  */
21233 $ac_includes_default
21234 typedef short ac__type_new_;
21235 int
21236 main ()
21237 {
21238 if ((ac__type_new_ *) 0)
21239   return 0;
21240 if (sizeof (ac__type_new_))
21241   return 0;
21242   ;
21243   return 0;
21244 }
21245 _ACEOF
21246 rm -f conftest.$ac_objext
21247 if { (ac_try="$ac_compile"
21248 case "(($ac_try" in
21249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250   *) ac_try_echo=$ac_try;;
21251 esac
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253   (eval "$ac_compile") 2>conftest.er1
21254   ac_status=$?
21255   grep -v '^ *+' conftest.er1 >conftest.err
21256   rm -f conftest.er1
21257   cat conftest.err >&5
21258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259   (exit $ac_status); } && {
21260          test -z "$ac_c_werror_flag" ||
21261          test ! -s conftest.err
21262        } && test -s conftest.$ac_objext; then
21263   ac_cv_type_short=yes
21264 else
21265   echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21267
21268         ac_cv_type_short=no
21269 fi
21270
21271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21272 fi
21273 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21274 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21275
21276 # The cast to long int works around a bug in the HP C Compiler
21277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21279 # This bug is HP SR number 8606223364.
21280 { echo "$as_me:$LINENO: checking size of short" >&5
21281 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21282 if test "${ac_cv_sizeof_short+set}" = set; then
21283   echo $ECHO_N "(cached) $ECHO_C" >&6
21284 else
21285   if test "$cross_compiling" = yes; then
21286   # Depending upon the size, compute the lo and hi bounds.
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 short ac__type_sizeof_;
21295 int
21296 main ()
21297 {
21298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21299 test_array [0] = 0
21300
21301   ;
21302   return 0;
21303 }
21304 _ACEOF
21305 rm -f conftest.$ac_objext
21306 if { (ac_try="$ac_compile"
21307 case "(($ac_try" in
21308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309   *) ac_try_echo=$ac_try;;
21310 esac
21311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312   (eval "$ac_compile") 2>conftest.er1
21313   ac_status=$?
21314   grep -v '^ *+' conftest.er1 >conftest.err
21315   rm -f conftest.er1
21316   cat conftest.err >&5
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); } && {
21319          test -z "$ac_c_werror_flag" ||
21320          test ! -s conftest.err
21321        } && test -s conftest.$ac_objext; then
21322   ac_lo=0 ac_mid=0
21323   while :; do
21324     cat >conftest.$ac_ext <<_ACEOF
21325 /* confdefs.h.  */
21326 _ACEOF
21327 cat confdefs.h >>conftest.$ac_ext
21328 cat >>conftest.$ac_ext <<_ACEOF
21329 /* end confdefs.h.  */
21330 $ac_includes_default
21331    typedef short ac__type_sizeof_;
21332 int
21333 main ()
21334 {
21335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21336 test_array [0] = 0
21337
21338   ;
21339   return 0;
21340 }
21341 _ACEOF
21342 rm -f conftest.$ac_objext
21343 if { (ac_try="$ac_compile"
21344 case "(($ac_try" in
21345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21346   *) ac_try_echo=$ac_try;;
21347 esac
21348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21349   (eval "$ac_compile") 2>conftest.er1
21350   ac_status=$?
21351   grep -v '^ *+' conftest.er1 >conftest.err
21352   rm -f conftest.er1
21353   cat conftest.err >&5
21354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355   (exit $ac_status); } && {
21356          test -z "$ac_c_werror_flag" ||
21357          test ! -s conftest.err
21358        } && test -s conftest.$ac_objext; then
21359   ac_hi=$ac_mid; break
21360 else
21361   echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364         ac_lo=`expr $ac_mid + 1`
21365                         if test $ac_lo -le $ac_mid; then
21366                           ac_lo= ac_hi=
21367                           break
21368                         fi
21369                         ac_mid=`expr 2 '*' $ac_mid + 1`
21370 fi
21371
21372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21373   done
21374 else
21375   echo "$as_me: failed program was:" >&5
21376 sed 's/^/| /' conftest.$ac_ext >&5
21377
21378         cat >conftest.$ac_ext <<_ACEOF
21379 /* confdefs.h.  */
21380 _ACEOF
21381 cat confdefs.h >>conftest.$ac_ext
21382 cat >>conftest.$ac_ext <<_ACEOF
21383 /* end confdefs.h.  */
21384 $ac_includes_default
21385    typedef short ac__type_sizeof_;
21386 int
21387 main ()
21388 {
21389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21390 test_array [0] = 0
21391
21392   ;
21393   return 0;
21394 }
21395 _ACEOF
21396 rm -f conftest.$ac_objext
21397 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21404   ac_status=$?
21405   grep -v '^ *+' conftest.er1 >conftest.err
21406   rm -f conftest.er1
21407   cat conftest.err >&5
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); } && {
21410          test -z "$ac_c_werror_flag" ||
21411          test ! -s conftest.err
21412        } && test -s conftest.$ac_objext; then
21413   ac_hi=-1 ac_mid=-1
21414   while :; do
21415     cat >conftest.$ac_ext <<_ACEOF
21416 /* confdefs.h.  */
21417 _ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h.  */
21421 $ac_includes_default
21422    typedef short ac__type_sizeof_;
21423 int
21424 main ()
21425 {
21426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21427 test_array [0] = 0
21428
21429   ;
21430   return 0;
21431 }
21432 _ACEOF
21433 rm -f conftest.$ac_objext
21434 if { (ac_try="$ac_compile"
21435 case "(($ac_try" in
21436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21437   *) ac_try_echo=$ac_try;;
21438 esac
21439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21440   (eval "$ac_compile") 2>conftest.er1
21441   ac_status=$?
21442   grep -v '^ *+' conftest.er1 >conftest.err
21443   rm -f conftest.er1
21444   cat conftest.err >&5
21445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446   (exit $ac_status); } && {
21447          test -z "$ac_c_werror_flag" ||
21448          test ! -s conftest.err
21449        } && test -s conftest.$ac_objext; then
21450   ac_lo=$ac_mid; break
21451 else
21452   echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455         ac_hi=`expr '(' $ac_mid ')' - 1`
21456                         if test $ac_mid -le $ac_hi; then
21457                           ac_lo= ac_hi=
21458                           break
21459                         fi
21460                         ac_mid=`expr 2 '*' $ac_mid`
21461 fi
21462
21463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464   done
21465 else
21466   echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469         ac_lo= ac_hi=
21470 fi
21471
21472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21473 fi
21474
21475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21476 # Binary search between lo and hi bounds.
21477 while test "x$ac_lo" != "x$ac_hi"; do
21478   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21479   cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h.  */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h.  */
21485 $ac_includes_default
21486    typedef short ac__type_sizeof_;
21487 int
21488 main ()
21489 {
21490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21491 test_array [0] = 0
21492
21493   ;
21494   return 0;
21495 }
21496 _ACEOF
21497 rm -f conftest.$ac_objext
21498 if { (ac_try="$ac_compile"
21499 case "(($ac_try" in
21500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501   *) ac_try_echo=$ac_try;;
21502 esac
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504   (eval "$ac_compile") 2>conftest.er1
21505   ac_status=$?
21506   grep -v '^ *+' conftest.er1 >conftest.err
21507   rm -f conftest.er1
21508   cat conftest.err >&5
21509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); } && {
21511          test -z "$ac_c_werror_flag" ||
21512          test ! -s conftest.err
21513        } && test -s conftest.$ac_objext; then
21514   ac_hi=$ac_mid
21515 else
21516   echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21518
21519         ac_lo=`expr '(' $ac_mid ')' + 1`
21520 fi
21521
21522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21523 done
21524 case $ac_lo in
21525 ?*) ac_cv_sizeof_short=$ac_lo;;
21526 '') if test "$ac_cv_type_short" = yes; then
21527      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21528 See \`config.log' for more details." >&5
21529 echo "$as_me: error: cannot compute sizeof (short)
21530 See \`config.log' for more details." >&2;}
21531    { (exit 77); exit 77; }; }
21532    else
21533      ac_cv_sizeof_short=0
21534    fi ;;
21535 esac
21536 else
21537   cat >conftest.$ac_ext <<_ACEOF
21538 /* confdefs.h.  */
21539 _ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h.  */
21543 $ac_includes_default
21544    typedef short ac__type_sizeof_;
21545 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21546 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21547 #include <stdio.h>
21548 #include <stdlib.h>
21549 int
21550 main ()
21551 {
21552
21553   FILE *f = fopen ("conftest.val", "w");
21554   if (! f)
21555     return 1;
21556   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21557     {
21558       long int i = longval ();
21559       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21560         return 1;
21561       fprintf (f, "%ld\n", i);
21562     }
21563   else
21564     {
21565       unsigned long int i = ulongval ();
21566       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21567         return 1;
21568       fprintf (f, "%lu\n", i);
21569     }
21570   return ferror (f) || fclose (f) != 0;
21571
21572   ;
21573   return 0;
21574 }
21575 _ACEOF
21576 rm -f conftest$ac_exeext
21577 if { (ac_try="$ac_link"
21578 case "(($ac_try" in
21579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21580   *) ac_try_echo=$ac_try;;
21581 esac
21582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21583   (eval "$ac_link") 2>&5
21584   ac_status=$?
21585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_short=`cat conftest.val`
21597 else
21598   echo "$as_me: program exited with status $ac_status" >&5
21599 echo "$as_me: failed program was:" >&5
21600 sed 's/^/| /' conftest.$ac_ext >&5
21601
21602 ( exit $ac_status )
21603 if test "$ac_cv_type_short" = yes; then
21604      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
21605 See \`config.log' for more details." >&5
21606 echo "$as_me: error: cannot compute sizeof (short)
21607 See \`config.log' for more details." >&2;}
21608    { (exit 77); exit 77; }; }
21609    else
21610      ac_cv_sizeof_short=0
21611    fi
21612 fi
21613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21614 fi
21615 rm -f conftest.val
21616 fi
21617 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
21618 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
21619
21620
21621
21622 cat >>confdefs.h <<_ACEOF
21623 #define SIZEOF_SHORT $ac_cv_sizeof_short
21624 _ACEOF
21625
21626
21627 { echo "$as_me:$LINENO: checking for void *" >&5
21628 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21629 if test "${ac_cv_type_void_p+set}" = set; then
21630   echo $ECHO_N "(cached) $ECHO_C" >&6
21631 else
21632   cat >conftest.$ac_ext <<_ACEOF
21633 /* confdefs.h.  */
21634 _ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h.  */
21638 $ac_includes_default
21639 typedef void * ac__type_new_;
21640 int
21641 main ()
21642 {
21643 if ((ac__type_new_ *) 0)
21644   return 0;
21645 if (sizeof (ac__type_new_))
21646   return 0;
21647   ;
21648   return 0;
21649 }
21650 _ACEOF
21651 rm -f conftest.$ac_objext
21652 if { (ac_try="$ac_compile"
21653 case "(($ac_try" in
21654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655   *) ac_try_echo=$ac_try;;
21656 esac
21657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21658   (eval "$ac_compile") 2>conftest.er1
21659   ac_status=$?
21660   grep -v '^ *+' conftest.er1 >conftest.err
21661   rm -f conftest.er1
21662   cat conftest.err >&5
21663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664   (exit $ac_status); } && {
21665          test -z "$ac_c_werror_flag" ||
21666          test ! -s conftest.err
21667        } && test -s conftest.$ac_objext; then
21668   ac_cv_type_void_p=yes
21669 else
21670   echo "$as_me: failed program was:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21672
21673         ac_cv_type_void_p=no
21674 fi
21675
21676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21677 fi
21678 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21679 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21680
21681 # The cast to long int works around a bug in the HP C Compiler
21682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21684 # This bug is HP SR number 8606223364.
21685 { echo "$as_me:$LINENO: checking size of void *" >&5
21686 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21687 if test "${ac_cv_sizeof_void_p+set}" = set; then
21688   echo $ECHO_N "(cached) $ECHO_C" >&6
21689 else
21690   if test "$cross_compiling" = yes; then
21691   # Depending upon the size, compute the lo and hi bounds.
21692 cat >conftest.$ac_ext <<_ACEOF
21693 /* confdefs.h.  */
21694 _ACEOF
21695 cat confdefs.h >>conftest.$ac_ext
21696 cat >>conftest.$ac_ext <<_ACEOF
21697 /* end confdefs.h.  */
21698 $ac_includes_default
21699    typedef void * ac__type_sizeof_;
21700 int
21701 main ()
21702 {
21703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21704 test_array [0] = 0
21705
21706   ;
21707   return 0;
21708 }
21709 _ACEOF
21710 rm -f conftest.$ac_objext
21711 if { (ac_try="$ac_compile"
21712 case "(($ac_try" in
21713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714   *) ac_try_echo=$ac_try;;
21715 esac
21716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21717   (eval "$ac_compile") 2>conftest.er1
21718   ac_status=$?
21719   grep -v '^ *+' conftest.er1 >conftest.err
21720   rm -f conftest.er1
21721   cat conftest.err >&5
21722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723   (exit $ac_status); } && {
21724          test -z "$ac_c_werror_flag" ||
21725          test ! -s conftest.err
21726        } && test -s conftest.$ac_objext; then
21727   ac_lo=0 ac_mid=0
21728   while :; do
21729     cat >conftest.$ac_ext <<_ACEOF
21730 /* confdefs.h.  */
21731 _ACEOF
21732 cat confdefs.h >>conftest.$ac_ext
21733 cat >>conftest.$ac_ext <<_ACEOF
21734 /* end confdefs.h.  */
21735 $ac_includes_default
21736    typedef void * ac__type_sizeof_;
21737 int
21738 main ()
21739 {
21740 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21741 test_array [0] = 0
21742
21743   ;
21744   return 0;
21745 }
21746 _ACEOF
21747 rm -f conftest.$ac_objext
21748 if { (ac_try="$ac_compile"
21749 case "(($ac_try" in
21750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751   *) ac_try_echo=$ac_try;;
21752 esac
21753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754   (eval "$ac_compile") 2>conftest.er1
21755   ac_status=$?
21756   grep -v '^ *+' conftest.er1 >conftest.err
21757   rm -f conftest.er1
21758   cat conftest.err >&5
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); } && {
21761          test -z "$ac_c_werror_flag" ||
21762          test ! -s conftest.err
21763        } && test -s conftest.$ac_objext; then
21764   ac_hi=$ac_mid; break
21765 else
21766   echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21768
21769         ac_lo=`expr $ac_mid + 1`
21770                         if test $ac_lo -le $ac_mid; then
21771                           ac_lo= ac_hi=
21772                           break
21773                         fi
21774                         ac_mid=`expr 2 '*' $ac_mid + 1`
21775 fi
21776
21777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21778   done
21779 else
21780   echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21782
21783         cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h.  */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h.  */
21789 $ac_includes_default
21790    typedef void * ac__type_sizeof_;
21791 int
21792 main ()
21793 {
21794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21795 test_array [0] = 0
21796
21797   ;
21798   return 0;
21799 }
21800 _ACEOF
21801 rm -f conftest.$ac_objext
21802 if { (ac_try="$ac_compile"
21803 case "(($ac_try" in
21804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805   *) ac_try_echo=$ac_try;;
21806 esac
21807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21808   (eval "$ac_compile") 2>conftest.er1
21809   ac_status=$?
21810   grep -v '^ *+' conftest.er1 >conftest.err
21811   rm -f conftest.er1
21812   cat conftest.err >&5
21813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21814   (exit $ac_status); } && {
21815          test -z "$ac_c_werror_flag" ||
21816          test ! -s conftest.err
21817        } && test -s conftest.$ac_objext; then
21818   ac_hi=-1 ac_mid=-1
21819   while :; do
21820     cat >conftest.$ac_ext <<_ACEOF
21821 /* confdefs.h.  */
21822 _ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h.  */
21826 $ac_includes_default
21827    typedef void * ac__type_sizeof_;
21828 int
21829 main ()
21830 {
21831 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21832 test_array [0] = 0
21833
21834   ;
21835   return 0;
21836 }
21837 _ACEOF
21838 rm -f conftest.$ac_objext
21839 if { (ac_try="$ac_compile"
21840 case "(($ac_try" in
21841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842   *) ac_try_echo=$ac_try;;
21843 esac
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845   (eval "$ac_compile") 2>conftest.er1
21846   ac_status=$?
21847   grep -v '^ *+' conftest.er1 >conftest.err
21848   rm -f conftest.er1
21849   cat conftest.err >&5
21850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851   (exit $ac_status); } && {
21852          test -z "$ac_c_werror_flag" ||
21853          test ! -s conftest.err
21854        } && test -s conftest.$ac_objext; then
21855   ac_lo=$ac_mid; break
21856 else
21857   echo "$as_me: failed program was:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21859
21860         ac_hi=`expr '(' $ac_mid ')' - 1`
21861                         if test $ac_mid -le $ac_hi; then
21862                           ac_lo= ac_hi=
21863                           break
21864                         fi
21865                         ac_mid=`expr 2 '*' $ac_mid`
21866 fi
21867
21868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21869   done
21870 else
21871   echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21873
21874         ac_lo= ac_hi=
21875 fi
21876
21877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21878 fi
21879
21880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 # Binary search between lo and hi bounds.
21882 while test "x$ac_lo" != "x$ac_hi"; do
21883   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21884   cat >conftest.$ac_ext <<_ACEOF
21885 /* confdefs.h.  */
21886 _ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h.  */
21890 $ac_includes_default
21891    typedef void * ac__type_sizeof_;
21892 int
21893 main ()
21894 {
21895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21896 test_array [0] = 0
21897
21898   ;
21899   return 0;
21900 }
21901 _ACEOF
21902 rm -f conftest.$ac_objext
21903 if { (ac_try="$ac_compile"
21904 case "(($ac_try" in
21905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906   *) ac_try_echo=$ac_try;;
21907 esac
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909   (eval "$ac_compile") 2>conftest.er1
21910   ac_status=$?
21911   grep -v '^ *+' conftest.er1 >conftest.err
21912   rm -f conftest.er1
21913   cat conftest.err >&5
21914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915   (exit $ac_status); } && {
21916          test -z "$ac_c_werror_flag" ||
21917          test ! -s conftest.err
21918        } && test -s conftest.$ac_objext; then
21919   ac_hi=$ac_mid
21920 else
21921   echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924         ac_lo=`expr '(' $ac_mid ')' + 1`
21925 fi
21926
21927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928 done
21929 case $ac_lo in
21930 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21931 '') if test "$ac_cv_type_void_p" = yes; then
21932      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21933 See \`config.log' for more details." >&5
21934 echo "$as_me: error: cannot compute sizeof (void *)
21935 See \`config.log' for more details." >&2;}
21936    { (exit 77); exit 77; }; }
21937    else
21938      ac_cv_sizeof_void_p=0
21939    fi ;;
21940 esac
21941 else
21942   cat >conftest.$ac_ext <<_ACEOF
21943 /* confdefs.h.  */
21944 _ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h.  */
21948 $ac_includes_default
21949    typedef void * ac__type_sizeof_;
21950 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21951 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21952 #include <stdio.h>
21953 #include <stdlib.h>
21954 int
21955 main ()
21956 {
21957
21958   FILE *f = fopen ("conftest.val", "w");
21959   if (! f)
21960     return 1;
21961   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21962     {
21963       long int i = longval ();
21964       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21965         return 1;
21966       fprintf (f, "%ld\n", i);
21967     }
21968   else
21969     {
21970       unsigned long int i = ulongval ();
21971       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21972         return 1;
21973       fprintf (f, "%lu\n", i);
21974     }
21975   return ferror (f) || fclose (f) != 0;
21976
21977   ;
21978   return 0;
21979 }
21980 _ACEOF
21981 rm -f conftest$ac_exeext
21982 if { (ac_try="$ac_link"
21983 case "(($ac_try" in
21984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985   *) ac_try_echo=$ac_try;;
21986 esac
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988   (eval "$ac_link") 2>&5
21989   ac_status=$?
21990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21992   { (case "(($ac_try" in
21993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994   *) ac_try_echo=$ac_try;;
21995 esac
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997   (eval "$ac_try") 2>&5
21998   ac_status=$?
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); }; }; then
22001   ac_cv_sizeof_void_p=`cat conftest.val`
22002 else
22003   echo "$as_me: program exited with status $ac_status" >&5
22004 echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22006
22007 ( exit $ac_status )
22008 if test "$ac_cv_type_void_p" = yes; then
22009      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22010 See \`config.log' for more details." >&5
22011 echo "$as_me: error: cannot compute sizeof (void *)
22012 See \`config.log' for more details." >&2;}
22013    { (exit 77); exit 77; }; }
22014    else
22015      ac_cv_sizeof_void_p=0
22016    fi
22017 fi
22018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22019 fi
22020 rm -f conftest.val
22021 fi
22022 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22023 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22024
22025
22026
22027 cat >>confdefs.h <<_ACEOF
22028 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22029 _ACEOF
22030
22031
22032 { echo "$as_me:$LINENO: checking for int" >&5
22033 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22034 if test "${ac_cv_type_int+set}" = set; then
22035   echo $ECHO_N "(cached) $ECHO_C" >&6
22036 else
22037   cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h.  */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h.  */
22043 $ac_includes_default
22044 typedef int ac__type_new_;
22045 int
22046 main ()
22047 {
22048 if ((ac__type_new_ *) 0)
22049   return 0;
22050 if (sizeof (ac__type_new_))
22051   return 0;
22052   ;
22053   return 0;
22054 }
22055 _ACEOF
22056 rm -f conftest.$ac_objext
22057 if { (ac_try="$ac_compile"
22058 case "(($ac_try" in
22059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060   *) ac_try_echo=$ac_try;;
22061 esac
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063   (eval "$ac_compile") 2>conftest.er1
22064   ac_status=$?
22065   grep -v '^ *+' conftest.er1 >conftest.err
22066   rm -f conftest.er1
22067   cat conftest.err >&5
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); } && {
22070          test -z "$ac_c_werror_flag" ||
22071          test ! -s conftest.err
22072        } && test -s conftest.$ac_objext; then
22073   ac_cv_type_int=yes
22074 else
22075   echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078         ac_cv_type_int=no
22079 fi
22080
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082 fi
22083 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22084 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22085
22086 # The cast to long int works around a bug in the HP C Compiler
22087 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22088 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22089 # This bug is HP SR number 8606223364.
22090 { echo "$as_me:$LINENO: checking size of int" >&5
22091 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22092 if test "${ac_cv_sizeof_int+set}" = set; then
22093   echo $ECHO_N "(cached) $ECHO_C" >&6
22094 else
22095   if test "$cross_compiling" = yes; then
22096   # Depending upon the size, compute the lo and hi bounds.
22097 cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h.  */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h.  */
22103 $ac_includes_default
22104    typedef int ac__type_sizeof_;
22105 int
22106 main ()
22107 {
22108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22109 test_array [0] = 0
22110
22111   ;
22112   return 0;
22113 }
22114 _ACEOF
22115 rm -f conftest.$ac_objext
22116 if { (ac_try="$ac_compile"
22117 case "(($ac_try" in
22118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119   *) ac_try_echo=$ac_try;;
22120 esac
22121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22122   (eval "$ac_compile") 2>conftest.er1
22123   ac_status=$?
22124   grep -v '^ *+' conftest.er1 >conftest.err
22125   rm -f conftest.er1
22126   cat conftest.err >&5
22127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128   (exit $ac_status); } && {
22129          test -z "$ac_c_werror_flag" ||
22130          test ! -s conftest.err
22131        } && test -s conftest.$ac_objext; then
22132   ac_lo=0 ac_mid=0
22133   while :; do
22134     cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h.  */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h.  */
22140 $ac_includes_default
22141    typedef int ac__type_sizeof_;
22142 int
22143 main ()
22144 {
22145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22146 test_array [0] = 0
22147
22148   ;
22149   return 0;
22150 }
22151 _ACEOF
22152 rm -f conftest.$ac_objext
22153 if { (ac_try="$ac_compile"
22154 case "(($ac_try" in
22155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156   *) ac_try_echo=$ac_try;;
22157 esac
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159   (eval "$ac_compile") 2>conftest.er1
22160   ac_status=$?
22161   grep -v '^ *+' conftest.er1 >conftest.err
22162   rm -f conftest.er1
22163   cat conftest.err >&5
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); } && {
22166          test -z "$ac_c_werror_flag" ||
22167          test ! -s conftest.err
22168        } && test -s conftest.$ac_objext; then
22169   ac_hi=$ac_mid; break
22170 else
22171   echo "$as_me: failed program was:" >&5
22172 sed 's/^/| /' conftest.$ac_ext >&5
22173
22174         ac_lo=`expr $ac_mid + 1`
22175                         if test $ac_lo -le $ac_mid; then
22176                           ac_lo= ac_hi=
22177                           break
22178                         fi
22179                         ac_mid=`expr 2 '*' $ac_mid + 1`
22180 fi
22181
22182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22183   done
22184 else
22185   echo "$as_me: failed program was:" >&5
22186 sed 's/^/| /' conftest.$ac_ext >&5
22187
22188         cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h.  */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h.  */
22194 $ac_includes_default
22195    typedef int ac__type_sizeof_;
22196 int
22197 main ()
22198 {
22199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22200 test_array [0] = 0
22201
22202   ;
22203   return 0;
22204 }
22205 _ACEOF
22206 rm -f conftest.$ac_objext
22207 if { (ac_try="$ac_compile"
22208 case "(($ac_try" in
22209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210   *) ac_try_echo=$ac_try;;
22211 esac
22212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22213   (eval "$ac_compile") 2>conftest.er1
22214   ac_status=$?
22215   grep -v '^ *+' conftest.er1 >conftest.err
22216   rm -f conftest.er1
22217   cat conftest.err >&5
22218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219   (exit $ac_status); } && {
22220          test -z "$ac_c_werror_flag" ||
22221          test ! -s conftest.err
22222        } && test -s conftest.$ac_objext; then
22223   ac_hi=-1 ac_mid=-1
22224   while :; do
22225     cat >conftest.$ac_ext <<_ACEOF
22226 /* confdefs.h.  */
22227 _ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h.  */
22231 $ac_includes_default
22232    typedef int ac__type_sizeof_;
22233 int
22234 main ()
22235 {
22236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22237 test_array [0] = 0
22238
22239   ;
22240   return 0;
22241 }
22242 _ACEOF
22243 rm -f conftest.$ac_objext
22244 if { (ac_try="$ac_compile"
22245 case "(($ac_try" in
22246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247   *) ac_try_echo=$ac_try;;
22248 esac
22249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250   (eval "$ac_compile") 2>conftest.er1
22251   ac_status=$?
22252   grep -v '^ *+' conftest.er1 >conftest.err
22253   rm -f conftest.er1
22254   cat conftest.err >&5
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); } && {
22257          test -z "$ac_c_werror_flag" ||
22258          test ! -s conftest.err
22259        } && test -s conftest.$ac_objext; then
22260   ac_lo=$ac_mid; break
22261 else
22262   echo "$as_me: failed program was:" >&5
22263 sed 's/^/| /' conftest.$ac_ext >&5
22264
22265         ac_hi=`expr '(' $ac_mid ')' - 1`
22266                         if test $ac_mid -le $ac_hi; then
22267                           ac_lo= ac_hi=
22268                           break
22269                         fi
22270                         ac_mid=`expr 2 '*' $ac_mid`
22271 fi
22272
22273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22274   done
22275 else
22276   echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22278
22279         ac_lo= ac_hi=
22280 fi
22281
22282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283 fi
22284
22285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286 # Binary search between lo and hi bounds.
22287 while test "x$ac_lo" != "x$ac_hi"; do
22288   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22289   cat >conftest.$ac_ext <<_ACEOF
22290 /* confdefs.h.  */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h.  */
22295 $ac_includes_default
22296    typedef int ac__type_sizeof_;
22297 int
22298 main ()
22299 {
22300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22301 test_array [0] = 0
22302
22303   ;
22304   return 0;
22305 }
22306 _ACEOF
22307 rm -f conftest.$ac_objext
22308 if { (ac_try="$ac_compile"
22309 case "(($ac_try" in
22310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311   *) ac_try_echo=$ac_try;;
22312 esac
22313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22314   (eval "$ac_compile") 2>conftest.er1
22315   ac_status=$?
22316   grep -v '^ *+' conftest.er1 >conftest.err
22317   rm -f conftest.er1
22318   cat conftest.err >&5
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); } && {
22321          test -z "$ac_c_werror_flag" ||
22322          test ! -s conftest.err
22323        } && test -s conftest.$ac_objext; then
22324   ac_hi=$ac_mid
22325 else
22326   echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22328
22329         ac_lo=`expr '(' $ac_mid ')' + 1`
22330 fi
22331
22332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22333 done
22334 case $ac_lo in
22335 ?*) ac_cv_sizeof_int=$ac_lo;;
22336 '') if test "$ac_cv_type_int" = yes; then
22337      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22338 See \`config.log' for more details." >&5
22339 echo "$as_me: error: cannot compute sizeof (int)
22340 See \`config.log' for more details." >&2;}
22341    { (exit 77); exit 77; }; }
22342    else
22343      ac_cv_sizeof_int=0
22344    fi ;;
22345 esac
22346 else
22347   cat >conftest.$ac_ext <<_ACEOF
22348 /* confdefs.h.  */
22349 _ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h.  */
22353 $ac_includes_default
22354    typedef int ac__type_sizeof_;
22355 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22356 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22357 #include <stdio.h>
22358 #include <stdlib.h>
22359 int
22360 main ()
22361 {
22362
22363   FILE *f = fopen ("conftest.val", "w");
22364   if (! f)
22365     return 1;
22366   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22367     {
22368       long int i = longval ();
22369       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22370         return 1;
22371       fprintf (f, "%ld\n", i);
22372     }
22373   else
22374     {
22375       unsigned long int i = ulongval ();
22376       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22377         return 1;
22378       fprintf (f, "%lu\n", i);
22379     }
22380   return ferror (f) || fclose (f) != 0;
22381
22382   ;
22383   return 0;
22384 }
22385 _ACEOF
22386 rm -f conftest$ac_exeext
22387 if { (ac_try="$ac_link"
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_link") 2>&5
22394   ac_status=$?
22395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22397   { (case "(($ac_try" in
22398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399   *) ac_try_echo=$ac_try;;
22400 esac
22401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402   (eval "$ac_try") 2>&5
22403   ac_status=$?
22404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405   (exit $ac_status); }; }; then
22406   ac_cv_sizeof_int=`cat conftest.val`
22407 else
22408   echo "$as_me: program exited with status $ac_status" >&5
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22411
22412 ( exit $ac_status )
22413 if test "$ac_cv_type_int" = yes; then
22414      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22415 See \`config.log' for more details." >&5
22416 echo "$as_me: error: cannot compute sizeof (int)
22417 See \`config.log' for more details." >&2;}
22418    { (exit 77); exit 77; }; }
22419    else
22420      ac_cv_sizeof_int=0
22421    fi
22422 fi
22423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22424 fi
22425 rm -f conftest.val
22426 fi
22427 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
22428 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
22429
22430
22431
22432 cat >>confdefs.h <<_ACEOF
22433 #define SIZEOF_INT $ac_cv_sizeof_int
22434 _ACEOF
22435
22436
22437 { echo "$as_me:$LINENO: checking for long" >&5
22438 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22439 if test "${ac_cv_type_long+set}" = set; then
22440   echo $ECHO_N "(cached) $ECHO_C" >&6
22441 else
22442   cat >conftest.$ac_ext <<_ACEOF
22443 /* confdefs.h.  */
22444 _ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h.  */
22448 $ac_includes_default
22449 typedef long ac__type_new_;
22450 int
22451 main ()
22452 {
22453 if ((ac__type_new_ *) 0)
22454   return 0;
22455 if (sizeof (ac__type_new_))
22456   return 0;
22457   ;
22458   return 0;
22459 }
22460 _ACEOF
22461 rm -f conftest.$ac_objext
22462 if { (ac_try="$ac_compile"
22463 case "(($ac_try" in
22464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22465   *) ac_try_echo=$ac_try;;
22466 esac
22467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22468   (eval "$ac_compile") 2>conftest.er1
22469   ac_status=$?
22470   grep -v '^ *+' conftest.er1 >conftest.err
22471   rm -f conftest.er1
22472   cat conftest.err >&5
22473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); } && {
22475          test -z "$ac_c_werror_flag" ||
22476          test ! -s conftest.err
22477        } && test -s conftest.$ac_objext; then
22478   ac_cv_type_long=yes
22479 else
22480   echo "$as_me: failed program was:" >&5
22481 sed 's/^/| /' conftest.$ac_ext >&5
22482
22483         ac_cv_type_long=no
22484 fi
22485
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 fi
22488 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22489 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22490
22491 # The cast to long int works around a bug in the HP C Compiler
22492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22494 # This bug is HP SR number 8606223364.
22495 { echo "$as_me:$LINENO: checking size of long" >&5
22496 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
22497 if test "${ac_cv_sizeof_long+set}" = set; then
22498   echo $ECHO_N "(cached) $ECHO_C" >&6
22499 else
22500   if test "$cross_compiling" = yes; then
22501   # Depending upon the size, compute the lo and hi bounds.
22502 cat >conftest.$ac_ext <<_ACEOF
22503 /* confdefs.h.  */
22504 _ACEOF
22505 cat confdefs.h >>conftest.$ac_ext
22506 cat >>conftest.$ac_ext <<_ACEOF
22507 /* end confdefs.h.  */
22508 $ac_includes_default
22509    typedef long ac__type_sizeof_;
22510 int
22511 main ()
22512 {
22513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22514 test_array [0] = 0
22515
22516   ;
22517   return 0;
22518 }
22519 _ACEOF
22520 rm -f conftest.$ac_objext
22521 if { (ac_try="$ac_compile"
22522 case "(($ac_try" in
22523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22524   *) ac_try_echo=$ac_try;;
22525 esac
22526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22527   (eval "$ac_compile") 2>conftest.er1
22528   ac_status=$?
22529   grep -v '^ *+' conftest.er1 >conftest.err
22530   rm -f conftest.er1
22531   cat conftest.err >&5
22532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   (exit $ac_status); } && {
22534          test -z "$ac_c_werror_flag" ||
22535          test ! -s conftest.err
22536        } && test -s conftest.$ac_objext; then
22537   ac_lo=0 ac_mid=0
22538   while :; do
22539     cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h.  */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h.  */
22545 $ac_includes_default
22546    typedef long ac__type_sizeof_;
22547 int
22548 main ()
22549 {
22550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22551 test_array [0] = 0
22552
22553   ;
22554   return 0;
22555 }
22556 _ACEOF
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561   *) ac_try_echo=$ac_try;;
22562 esac
22563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22564   (eval "$ac_compile") 2>conftest.er1
22565   ac_status=$?
22566   grep -v '^ *+' conftest.er1 >conftest.err
22567   rm -f conftest.er1
22568   cat conftest.err >&5
22569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); } && {
22571          test -z "$ac_c_werror_flag" ||
22572          test ! -s conftest.err
22573        } && test -s conftest.$ac_objext; then
22574   ac_hi=$ac_mid; break
22575 else
22576   echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22578
22579         ac_lo=`expr $ac_mid + 1`
22580                         if test $ac_lo -le $ac_mid; then
22581                           ac_lo= ac_hi=
22582                           break
22583                         fi
22584                         ac_mid=`expr 2 '*' $ac_mid + 1`
22585 fi
22586
22587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22588   done
22589 else
22590   echo "$as_me: failed program was:" >&5
22591 sed 's/^/| /' conftest.$ac_ext >&5
22592
22593         cat >conftest.$ac_ext <<_ACEOF
22594 /* confdefs.h.  */
22595 _ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h.  */
22599 $ac_includes_default
22600    typedef long ac__type_sizeof_;
22601 int
22602 main ()
22603 {
22604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22605 test_array [0] = 0
22606
22607   ;
22608   return 0;
22609 }
22610 _ACEOF
22611 rm -f conftest.$ac_objext
22612 if { (ac_try="$ac_compile"
22613 case "(($ac_try" in
22614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22615   *) ac_try_echo=$ac_try;;
22616 esac
22617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22618   (eval "$ac_compile") 2>conftest.er1
22619   ac_status=$?
22620   grep -v '^ *+' conftest.er1 >conftest.err
22621   rm -f conftest.er1
22622   cat conftest.err >&5
22623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624   (exit $ac_status); } && {
22625          test -z "$ac_c_werror_flag" ||
22626          test ! -s conftest.err
22627        } && test -s conftest.$ac_objext; then
22628   ac_hi=-1 ac_mid=-1
22629   while :; do
22630     cat >conftest.$ac_ext <<_ACEOF
22631 /* confdefs.h.  */
22632 _ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h.  */
22636 $ac_includes_default
22637    typedef long ac__type_sizeof_;
22638 int
22639 main ()
22640 {
22641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22642 test_array [0] = 0
22643
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 rm -f conftest.$ac_objext
22649 if { (ac_try="$ac_compile"
22650 case "(($ac_try" in
22651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652   *) ac_try_echo=$ac_try;;
22653 esac
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655   (eval "$ac_compile") 2>conftest.er1
22656   ac_status=$?
22657   grep -v '^ *+' conftest.er1 >conftest.err
22658   rm -f conftest.er1
22659   cat conftest.err >&5
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); } && {
22662          test -z "$ac_c_werror_flag" ||
22663          test ! -s conftest.err
22664        } && test -s conftest.$ac_objext; then
22665   ac_lo=$ac_mid; break
22666 else
22667   echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22669
22670         ac_hi=`expr '(' $ac_mid ')' - 1`
22671                         if test $ac_mid -le $ac_hi; then
22672                           ac_lo= ac_hi=
22673                           break
22674                         fi
22675                         ac_mid=`expr 2 '*' $ac_mid`
22676 fi
22677
22678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22679   done
22680 else
22681   echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22683
22684         ac_lo= ac_hi=
22685 fi
22686
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 fi
22689
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22691 # Binary search between lo and hi bounds.
22692 while test "x$ac_lo" != "x$ac_hi"; do
22693   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22694   cat >conftest.$ac_ext <<_ACEOF
22695 /* confdefs.h.  */
22696 _ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h.  */
22700 $ac_includes_default
22701    typedef long ac__type_sizeof_;
22702 int
22703 main ()
22704 {
22705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22706 test_array [0] = 0
22707
22708   ;
22709   return 0;
22710 }
22711 _ACEOF
22712 rm -f conftest.$ac_objext
22713 if { (ac_try="$ac_compile"
22714 case "(($ac_try" in
22715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22716   *) ac_try_echo=$ac_try;;
22717 esac
22718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22719   (eval "$ac_compile") 2>conftest.er1
22720   ac_status=$?
22721   grep -v '^ *+' conftest.er1 >conftest.err
22722   rm -f conftest.er1
22723   cat conftest.err >&5
22724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725   (exit $ac_status); } && {
22726          test -z "$ac_c_werror_flag" ||
22727          test ! -s conftest.err
22728        } && test -s conftest.$ac_objext; then
22729   ac_hi=$ac_mid
22730 else
22731   echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22733
22734         ac_lo=`expr '(' $ac_mid ')' + 1`
22735 fi
22736
22737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22738 done
22739 case $ac_lo in
22740 ?*) ac_cv_sizeof_long=$ac_lo;;
22741 '') if test "$ac_cv_type_long" = yes; then
22742      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22743 See \`config.log' for more details." >&5
22744 echo "$as_me: error: cannot compute sizeof (long)
22745 See \`config.log' for more details." >&2;}
22746    { (exit 77); exit 77; }; }
22747    else
22748      ac_cv_sizeof_long=0
22749    fi ;;
22750 esac
22751 else
22752   cat >conftest.$ac_ext <<_ACEOF
22753 /* confdefs.h.  */
22754 _ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h.  */
22758 $ac_includes_default
22759    typedef long ac__type_sizeof_;
22760 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22761 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22762 #include <stdio.h>
22763 #include <stdlib.h>
22764 int
22765 main ()
22766 {
22767
22768   FILE *f = fopen ("conftest.val", "w");
22769   if (! f)
22770     return 1;
22771   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22772     {
22773       long int i = longval ();
22774       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22775         return 1;
22776       fprintf (f, "%ld\n", i);
22777     }
22778   else
22779     {
22780       unsigned long int i = ulongval ();
22781       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22782         return 1;
22783       fprintf (f, "%lu\n", i);
22784     }
22785   return ferror (f) || fclose (f) != 0;
22786
22787   ;
22788   return 0;
22789 }
22790 _ACEOF
22791 rm -f conftest$ac_exeext
22792 if { (ac_try="$ac_link"
22793 case "(($ac_try" in
22794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795   *) ac_try_echo=$ac_try;;
22796 esac
22797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22798   (eval "$ac_link") 2>&5
22799   ac_status=$?
22800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22802   { (case "(($ac_try" in
22803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804   *) ac_try_echo=$ac_try;;
22805 esac
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807   (eval "$ac_try") 2>&5
22808   ac_status=$?
22809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810   (exit $ac_status); }; }; then
22811   ac_cv_sizeof_long=`cat conftest.val`
22812 else
22813   echo "$as_me: program exited with status $ac_status" >&5
22814 echo "$as_me: failed program was:" >&5
22815 sed 's/^/| /' conftest.$ac_ext >&5
22816
22817 ( exit $ac_status )
22818 if test "$ac_cv_type_long" = yes; then
22819      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
22820 See \`config.log' for more details." >&5
22821 echo "$as_me: error: cannot compute sizeof (long)
22822 See \`config.log' for more details." >&2;}
22823    { (exit 77); exit 77; }; }
22824    else
22825      ac_cv_sizeof_long=0
22826    fi
22827 fi
22828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22829 fi
22830 rm -f conftest.val
22831 fi
22832 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
22833 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
22834
22835
22836
22837 cat >>confdefs.h <<_ACEOF
22838 #define SIZEOF_LONG $ac_cv_sizeof_long
22839 _ACEOF
22840
22841
22842 { echo "$as_me:$LINENO: checking for size_t" >&5
22843 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22844 if test "${ac_cv_type_size_t+set}" = set; then
22845   echo $ECHO_N "(cached) $ECHO_C" >&6
22846 else
22847   cat >conftest.$ac_ext <<_ACEOF
22848 /* confdefs.h.  */
22849 _ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h.  */
22853 $ac_includes_default
22854 typedef size_t ac__type_new_;
22855 int
22856 main ()
22857 {
22858 if ((ac__type_new_ *) 0)
22859   return 0;
22860 if (sizeof (ac__type_new_))
22861   return 0;
22862   ;
22863   return 0;
22864 }
22865 _ACEOF
22866 rm -f conftest.$ac_objext
22867 if { (ac_try="$ac_compile"
22868 case "(($ac_try" in
22869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22870   *) ac_try_echo=$ac_try;;
22871 esac
22872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22873   (eval "$ac_compile") 2>conftest.er1
22874   ac_status=$?
22875   grep -v '^ *+' conftest.er1 >conftest.err
22876   rm -f conftest.er1
22877   cat conftest.err >&5
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); } && {
22880          test -z "$ac_c_werror_flag" ||
22881          test ! -s conftest.err
22882        } && test -s conftest.$ac_objext; then
22883   ac_cv_type_size_t=yes
22884 else
22885   echo "$as_me: failed program was:" >&5
22886 sed 's/^/| /' conftest.$ac_ext >&5
22887
22888         ac_cv_type_size_t=no
22889 fi
22890
22891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22892 fi
22893 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22894 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22895
22896 # The cast to long int works around a bug in the HP C Compiler
22897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22899 # This bug is HP SR number 8606223364.
22900 { echo "$as_me:$LINENO: checking size of size_t" >&5
22901 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
22902 if test "${ac_cv_sizeof_size_t+set}" = set; then
22903   echo $ECHO_N "(cached) $ECHO_C" >&6
22904 else
22905   if test "$cross_compiling" = yes; then
22906   # Depending upon the size, compute the lo and hi bounds.
22907 cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h.  */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h.  */
22913 $ac_includes_default
22914    typedef size_t ac__type_sizeof_;
22915 int
22916 main ()
22917 {
22918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22919 test_array [0] = 0
22920
22921   ;
22922   return 0;
22923 }
22924 _ACEOF
22925 rm -f conftest.$ac_objext
22926 if { (ac_try="$ac_compile"
22927 case "(($ac_try" in
22928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929   *) ac_try_echo=$ac_try;;
22930 esac
22931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22932   (eval "$ac_compile") 2>conftest.er1
22933   ac_status=$?
22934   grep -v '^ *+' conftest.er1 >conftest.err
22935   rm -f conftest.er1
22936   cat conftest.err >&5
22937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); } && {
22939          test -z "$ac_c_werror_flag" ||
22940          test ! -s conftest.err
22941        } && test -s conftest.$ac_objext; then
22942   ac_lo=0 ac_mid=0
22943   while :; do
22944     cat >conftest.$ac_ext <<_ACEOF
22945 /* confdefs.h.  */
22946 _ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h.  */
22950 $ac_includes_default
22951    typedef size_t ac__type_sizeof_;
22952 int
22953 main ()
22954 {
22955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22956 test_array [0] = 0
22957
22958   ;
22959   return 0;
22960 }
22961 _ACEOF
22962 rm -f conftest.$ac_objext
22963 if { (ac_try="$ac_compile"
22964 case "(($ac_try" in
22965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966   *) ac_try_echo=$ac_try;;
22967 esac
22968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969   (eval "$ac_compile") 2>conftest.er1
22970   ac_status=$?
22971   grep -v '^ *+' conftest.er1 >conftest.err
22972   rm -f conftest.er1
22973   cat conftest.err >&5
22974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975   (exit $ac_status); } && {
22976          test -z "$ac_c_werror_flag" ||
22977          test ! -s conftest.err
22978        } && test -s conftest.$ac_objext; then
22979   ac_hi=$ac_mid; break
22980 else
22981   echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22983
22984         ac_lo=`expr $ac_mid + 1`
22985                         if test $ac_lo -le $ac_mid; then
22986                           ac_lo= ac_hi=
22987                           break
22988                         fi
22989                         ac_mid=`expr 2 '*' $ac_mid + 1`
22990 fi
22991
22992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22993   done
22994 else
22995   echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22997
22998         cat >conftest.$ac_ext <<_ACEOF
22999 /* confdefs.h.  */
23000 _ACEOF
23001 cat confdefs.h >>conftest.$ac_ext
23002 cat >>conftest.$ac_ext <<_ACEOF
23003 /* end confdefs.h.  */
23004 $ac_includes_default
23005    typedef size_t ac__type_sizeof_;
23006 int
23007 main ()
23008 {
23009 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23010 test_array [0] = 0
23011
23012   ;
23013   return 0;
23014 }
23015 _ACEOF
23016 rm -f conftest.$ac_objext
23017 if { (ac_try="$ac_compile"
23018 case "(($ac_try" in
23019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23020   *) ac_try_echo=$ac_try;;
23021 esac
23022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23023   (eval "$ac_compile") 2>conftest.er1
23024   ac_status=$?
23025   grep -v '^ *+' conftest.er1 >conftest.err
23026   rm -f conftest.er1
23027   cat conftest.err >&5
23028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029   (exit $ac_status); } && {
23030          test -z "$ac_c_werror_flag" ||
23031          test ! -s conftest.err
23032        } && test -s conftest.$ac_objext; then
23033   ac_hi=-1 ac_mid=-1
23034   while :; do
23035     cat >conftest.$ac_ext <<_ACEOF
23036 /* confdefs.h.  */
23037 _ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h.  */
23041 $ac_includes_default
23042    typedef size_t ac__type_sizeof_;
23043 int
23044 main ()
23045 {
23046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23047 test_array [0] = 0
23048
23049   ;
23050   return 0;
23051 }
23052 _ACEOF
23053 rm -f conftest.$ac_objext
23054 if { (ac_try="$ac_compile"
23055 case "(($ac_try" in
23056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23057   *) ac_try_echo=$ac_try;;
23058 esac
23059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23060   (eval "$ac_compile") 2>conftest.er1
23061   ac_status=$?
23062   grep -v '^ *+' conftest.er1 >conftest.err
23063   rm -f conftest.er1
23064   cat conftest.err >&5
23065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066   (exit $ac_status); } && {
23067          test -z "$ac_c_werror_flag" ||
23068          test ! -s conftest.err
23069        } && test -s conftest.$ac_objext; then
23070   ac_lo=$ac_mid; break
23071 else
23072   echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23074
23075         ac_hi=`expr '(' $ac_mid ')' - 1`
23076                         if test $ac_mid -le $ac_hi; then
23077                           ac_lo= ac_hi=
23078                           break
23079                         fi
23080                         ac_mid=`expr 2 '*' $ac_mid`
23081 fi
23082
23083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23084   done
23085 else
23086   echo "$as_me: failed program was:" >&5
23087 sed 's/^/| /' conftest.$ac_ext >&5
23088
23089         ac_lo= ac_hi=
23090 fi
23091
23092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23093 fi
23094
23095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23096 # Binary search between lo and hi bounds.
23097 while test "x$ac_lo" != "x$ac_hi"; do
23098   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23099   cat >conftest.$ac_ext <<_ACEOF
23100 /* confdefs.h.  */
23101 _ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h.  */
23105 $ac_includes_default
23106    typedef size_t ac__type_sizeof_;
23107 int
23108 main ()
23109 {
23110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23111 test_array [0] = 0
23112
23113   ;
23114   return 0;
23115 }
23116 _ACEOF
23117 rm -f conftest.$ac_objext
23118 if { (ac_try="$ac_compile"
23119 case "(($ac_try" in
23120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121   *) ac_try_echo=$ac_try;;
23122 esac
23123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23124   (eval "$ac_compile") 2>conftest.er1
23125   ac_status=$?
23126   grep -v '^ *+' conftest.er1 >conftest.err
23127   rm -f conftest.er1
23128   cat conftest.err >&5
23129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130   (exit $ac_status); } && {
23131          test -z "$ac_c_werror_flag" ||
23132          test ! -s conftest.err
23133        } && test -s conftest.$ac_objext; then
23134   ac_hi=$ac_mid
23135 else
23136   echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23138
23139         ac_lo=`expr '(' $ac_mid ')' + 1`
23140 fi
23141
23142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143 done
23144 case $ac_lo in
23145 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23146 '') if test "$ac_cv_type_size_t" = yes; then
23147      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23148 See \`config.log' for more details." >&5
23149 echo "$as_me: error: cannot compute sizeof (size_t)
23150 See \`config.log' for more details." >&2;}
23151    { (exit 77); exit 77; }; }
23152    else
23153      ac_cv_sizeof_size_t=0
23154    fi ;;
23155 esac
23156 else
23157   cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h.  */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h.  */
23163 $ac_includes_default
23164    typedef size_t ac__type_sizeof_;
23165 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23166 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23167 #include <stdio.h>
23168 #include <stdlib.h>
23169 int
23170 main ()
23171 {
23172
23173   FILE *f = fopen ("conftest.val", "w");
23174   if (! f)
23175     return 1;
23176   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23177     {
23178       long int i = longval ();
23179       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23180         return 1;
23181       fprintf (f, "%ld\n", i);
23182     }
23183   else
23184     {
23185       unsigned long int i = ulongval ();
23186       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23187         return 1;
23188       fprintf (f, "%lu\n", i);
23189     }
23190   return ferror (f) || fclose (f) != 0;
23191
23192   ;
23193   return 0;
23194 }
23195 _ACEOF
23196 rm -f conftest$ac_exeext
23197 if { (ac_try="$ac_link"
23198 case "(($ac_try" in
23199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23200   *) ac_try_echo=$ac_try;;
23201 esac
23202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23203   (eval "$ac_link") 2>&5
23204   ac_status=$?
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23207   { (case "(($ac_try" in
23208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209   *) ac_try_echo=$ac_try;;
23210 esac
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212   (eval "$ac_try") 2>&5
23213   ac_status=$?
23214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215   (exit $ac_status); }; }; then
23216   ac_cv_sizeof_size_t=`cat conftest.val`
23217 else
23218   echo "$as_me: program exited with status $ac_status" >&5
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23221
23222 ( exit $ac_status )
23223 if test "$ac_cv_type_size_t" = yes; then
23224      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23225 See \`config.log' for more details." >&5
23226 echo "$as_me: error: cannot compute sizeof (size_t)
23227 See \`config.log' for more details." >&2;}
23228    { (exit 77); exit 77; }; }
23229    else
23230      ac_cv_sizeof_size_t=0
23231    fi
23232 fi
23233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23234 fi
23235 rm -f conftest.val
23236 fi
23237 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23238 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
23239
23240
23241
23242 cat >>confdefs.h <<_ACEOF
23243 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23244 _ACEOF
23245
23246
23247
23248 case "${host}" in
23249     arm-*-linux* )
23250         { echo "$as_me:$LINENO: checking for long long" >&5
23251 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23252 if test "${ac_cv_type_long_long+set}" = set; then
23253   echo $ECHO_N "(cached) $ECHO_C" >&6
23254 else
23255   cat >conftest.$ac_ext <<_ACEOF
23256 /* confdefs.h.  */
23257 _ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h.  */
23261 $ac_includes_default
23262 typedef long long ac__type_new_;
23263 int
23264 main ()
23265 {
23266 if ((ac__type_new_ *) 0)
23267   return 0;
23268 if (sizeof (ac__type_new_))
23269   return 0;
23270   ;
23271   return 0;
23272 }
23273 _ACEOF
23274 rm -f conftest.$ac_objext
23275 if { (ac_try="$ac_compile"
23276 case "(($ac_try" in
23277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278   *) ac_try_echo=$ac_try;;
23279 esac
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281   (eval "$ac_compile") 2>conftest.er1
23282   ac_status=$?
23283   grep -v '^ *+' conftest.er1 >conftest.err
23284   rm -f conftest.er1
23285   cat conftest.err >&5
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); } && {
23288          test -z "$ac_c_werror_flag" ||
23289          test ! -s conftest.err
23290        } && test -s conftest.$ac_objext; then
23291   ac_cv_type_long_long=yes
23292 else
23293   echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23295
23296         ac_cv_type_long_long=no
23297 fi
23298
23299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23300 fi
23301 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23302 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23303
23304 # The cast to long int works around a bug in the HP C Compiler
23305 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23306 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23307 # This bug is HP SR number 8606223364.
23308 { echo "$as_me:$LINENO: checking size of long long" >&5
23309 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23310 if test "${ac_cv_sizeof_long_long+set}" = set; then
23311   echo $ECHO_N "(cached) $ECHO_C" >&6
23312 else
23313   if test "$cross_compiling" = yes; then
23314   # Depending upon the size, compute the lo and hi bounds.
23315 cat >conftest.$ac_ext <<_ACEOF
23316 /* confdefs.h.  */
23317 _ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h.  */
23321 $ac_includes_default
23322    typedef long long ac__type_sizeof_;
23323 int
23324 main ()
23325 {
23326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23327 test_array [0] = 0
23328
23329   ;
23330   return 0;
23331 }
23332 _ACEOF
23333 rm -f conftest.$ac_objext
23334 if { (ac_try="$ac_compile"
23335 case "(($ac_try" in
23336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23337   *) ac_try_echo=$ac_try;;
23338 esac
23339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23340   (eval "$ac_compile") 2>conftest.er1
23341   ac_status=$?
23342   grep -v '^ *+' conftest.er1 >conftest.err
23343   rm -f conftest.er1
23344   cat conftest.err >&5
23345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346   (exit $ac_status); } && {
23347          test -z "$ac_c_werror_flag" ||
23348          test ! -s conftest.err
23349        } && test -s conftest.$ac_objext; then
23350   ac_lo=0 ac_mid=0
23351   while :; do
23352     cat >conftest.$ac_ext <<_ACEOF
23353 /* confdefs.h.  */
23354 _ACEOF
23355 cat confdefs.h >>conftest.$ac_ext
23356 cat >>conftest.$ac_ext <<_ACEOF
23357 /* end confdefs.h.  */
23358 $ac_includes_default
23359    typedef long long ac__type_sizeof_;
23360 int
23361 main ()
23362 {
23363 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23364 test_array [0] = 0
23365
23366   ;
23367   return 0;
23368 }
23369 _ACEOF
23370 rm -f conftest.$ac_objext
23371 if { (ac_try="$ac_compile"
23372 case "(($ac_try" in
23373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374   *) ac_try_echo=$ac_try;;
23375 esac
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377   (eval "$ac_compile") 2>conftest.er1
23378   ac_status=$?
23379   grep -v '^ *+' conftest.er1 >conftest.err
23380   rm -f conftest.er1
23381   cat conftest.err >&5
23382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383   (exit $ac_status); } && {
23384          test -z "$ac_c_werror_flag" ||
23385          test ! -s conftest.err
23386        } && test -s conftest.$ac_objext; then
23387   ac_hi=$ac_mid; break
23388 else
23389   echo "$as_me: failed program was:" >&5
23390 sed 's/^/| /' conftest.$ac_ext >&5
23391
23392         ac_lo=`expr $ac_mid + 1`
23393                         if test $ac_lo -le $ac_mid; then
23394                           ac_lo= ac_hi=
23395                           break
23396                         fi
23397                         ac_mid=`expr 2 '*' $ac_mid + 1`
23398 fi
23399
23400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23401   done
23402 else
23403   echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23405
23406         cat >conftest.$ac_ext <<_ACEOF
23407 /* confdefs.h.  */
23408 _ACEOF
23409 cat confdefs.h >>conftest.$ac_ext
23410 cat >>conftest.$ac_ext <<_ACEOF
23411 /* end confdefs.h.  */
23412 $ac_includes_default
23413    typedef long long ac__type_sizeof_;
23414 int
23415 main ()
23416 {
23417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23418 test_array [0] = 0
23419
23420   ;
23421   return 0;
23422 }
23423 _ACEOF
23424 rm -f conftest.$ac_objext
23425 if { (ac_try="$ac_compile"
23426 case "(($ac_try" in
23427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428   *) ac_try_echo=$ac_try;;
23429 esac
23430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431   (eval "$ac_compile") 2>conftest.er1
23432   ac_status=$?
23433   grep -v '^ *+' conftest.er1 >conftest.err
23434   rm -f conftest.er1
23435   cat conftest.err >&5
23436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); } && {
23438          test -z "$ac_c_werror_flag" ||
23439          test ! -s conftest.err
23440        } && test -s conftest.$ac_objext; then
23441   ac_hi=-1 ac_mid=-1
23442   while :; do
23443     cat >conftest.$ac_ext <<_ACEOF
23444 /* confdefs.h.  */
23445 _ACEOF
23446 cat confdefs.h >>conftest.$ac_ext
23447 cat >>conftest.$ac_ext <<_ACEOF
23448 /* end confdefs.h.  */
23449 $ac_includes_default
23450    typedef long long ac__type_sizeof_;
23451 int
23452 main ()
23453 {
23454 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23455 test_array [0] = 0
23456
23457   ;
23458   return 0;
23459 }
23460 _ACEOF
23461 rm -f conftest.$ac_objext
23462 if { (ac_try="$ac_compile"
23463 case "(($ac_try" in
23464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465   *) ac_try_echo=$ac_try;;
23466 esac
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468   (eval "$ac_compile") 2>conftest.er1
23469   ac_status=$?
23470   grep -v '^ *+' conftest.er1 >conftest.err
23471   rm -f conftest.er1
23472   cat conftest.err >&5
23473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474   (exit $ac_status); } && {
23475          test -z "$ac_c_werror_flag" ||
23476          test ! -s conftest.err
23477        } && test -s conftest.$ac_objext; then
23478   ac_lo=$ac_mid; break
23479 else
23480   echo "$as_me: failed program was:" >&5
23481 sed 's/^/| /' conftest.$ac_ext >&5
23482
23483         ac_hi=`expr '(' $ac_mid ')' - 1`
23484                         if test $ac_mid -le $ac_hi; then
23485                           ac_lo= ac_hi=
23486                           break
23487                         fi
23488                         ac_mid=`expr 2 '*' $ac_mid`
23489 fi
23490
23491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23492   done
23493 else
23494   echo "$as_me: failed program was:" >&5
23495 sed 's/^/| /' conftest.$ac_ext >&5
23496
23497         ac_lo= ac_hi=
23498 fi
23499
23500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23501 fi
23502
23503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23504 # Binary search between lo and hi bounds.
23505 while test "x$ac_lo" != "x$ac_hi"; do
23506   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23507   cat >conftest.$ac_ext <<_ACEOF
23508 /* confdefs.h.  */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h.  */
23513 $ac_includes_default
23514    typedef long long ac__type_sizeof_;
23515 int
23516 main ()
23517 {
23518 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23519 test_array [0] = 0
23520
23521   ;
23522   return 0;
23523 }
23524 _ACEOF
23525 rm -f conftest.$ac_objext
23526 if { (ac_try="$ac_compile"
23527 case "(($ac_try" in
23528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23529   *) ac_try_echo=$ac_try;;
23530 esac
23531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23532   (eval "$ac_compile") 2>conftest.er1
23533   ac_status=$?
23534   grep -v '^ *+' conftest.er1 >conftest.err
23535   rm -f conftest.er1
23536   cat conftest.err >&5
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); } && {
23539          test -z "$ac_c_werror_flag" ||
23540          test ! -s conftest.err
23541        } && test -s conftest.$ac_objext; then
23542   ac_hi=$ac_mid
23543 else
23544   echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23546
23547         ac_lo=`expr '(' $ac_mid ')' + 1`
23548 fi
23549
23550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23551 done
23552 case $ac_lo in
23553 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23554 '') if test "$ac_cv_type_long_long" = yes; then
23555      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23556 See \`config.log' for more details." >&5
23557 echo "$as_me: error: cannot compute sizeof (long long)
23558 See \`config.log' for more details." >&2;}
23559    { (exit 77); exit 77; }; }
23560    else
23561      ac_cv_sizeof_long_long=0
23562    fi ;;
23563 esac
23564 else
23565   cat >conftest.$ac_ext <<_ACEOF
23566 /* confdefs.h.  */
23567 _ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h.  */
23571 $ac_includes_default
23572    typedef long long ac__type_sizeof_;
23573 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23574 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23575 #include <stdio.h>
23576 #include <stdlib.h>
23577 int
23578 main ()
23579 {
23580
23581   FILE *f = fopen ("conftest.val", "w");
23582   if (! f)
23583     return 1;
23584   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23585     {
23586       long int i = longval ();
23587       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23588         return 1;
23589       fprintf (f, "%ld\n", i);
23590     }
23591   else
23592     {
23593       unsigned long int i = ulongval ();
23594       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23595         return 1;
23596       fprintf (f, "%lu\n", i);
23597     }
23598   return ferror (f) || fclose (f) != 0;
23599
23600   ;
23601   return 0;
23602 }
23603 _ACEOF
23604 rm -f conftest$ac_exeext
23605 if { (ac_try="$ac_link"
23606 case "(($ac_try" in
23607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608   *) ac_try_echo=$ac_try;;
23609 esac
23610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23611   (eval "$ac_link") 2>&5
23612   ac_status=$?
23613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23615   { (case "(($ac_try" in
23616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617   *) ac_try_echo=$ac_try;;
23618 esac
23619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23620   (eval "$ac_try") 2>&5
23621   ac_status=$?
23622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623   (exit $ac_status); }; }; then
23624   ac_cv_sizeof_long_long=`cat conftest.val`
23625 else
23626   echo "$as_me: program exited with status $ac_status" >&5
23627 echo "$as_me: failed program was:" >&5
23628 sed 's/^/| /' conftest.$ac_ext >&5
23629
23630 ( exit $ac_status )
23631 if test "$ac_cv_type_long_long" = yes; then
23632      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23633 See \`config.log' for more details." >&5
23634 echo "$as_me: error: cannot compute sizeof (long long)
23635 See \`config.log' for more details." >&2;}
23636    { (exit 77); exit 77; }; }
23637    else
23638      ac_cv_sizeof_long_long=0
23639    fi
23640 fi
23641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23642 fi
23643 rm -f conftest.val
23644 fi
23645 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
23646 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
23647
23648
23649
23650 cat >>confdefs.h <<_ACEOF
23651 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23652 _ACEOF
23653
23654
23655     ;;
23656     *-hp-hpux* )
23657         { echo "$as_me:$LINENO: checking for long long" >&5
23658 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23659 if test "${ac_cv_type_long_long+set}" = set; then
23660   echo $ECHO_N "(cached) $ECHO_C" >&6
23661 else
23662   cat >conftest.$ac_ext <<_ACEOF
23663 /* confdefs.h.  */
23664 _ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h.  */
23668 $ac_includes_default
23669 typedef long long ac__type_new_;
23670 int
23671 main ()
23672 {
23673 if ((ac__type_new_ *) 0)
23674   return 0;
23675 if (sizeof (ac__type_new_))
23676   return 0;
23677   ;
23678   return 0;
23679 }
23680 _ACEOF
23681 rm -f conftest.$ac_objext
23682 if { (ac_try="$ac_compile"
23683 case "(($ac_try" in
23684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685   *) ac_try_echo=$ac_try;;
23686 esac
23687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688   (eval "$ac_compile") 2>conftest.er1
23689   ac_status=$?
23690   grep -v '^ *+' conftest.er1 >conftest.err
23691   rm -f conftest.er1
23692   cat conftest.err >&5
23693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694   (exit $ac_status); } && {
23695          test -z "$ac_c_werror_flag" ||
23696          test ! -s conftest.err
23697        } && test -s conftest.$ac_objext; then
23698   ac_cv_type_long_long=yes
23699 else
23700   echo "$as_me: failed program was:" >&5
23701 sed 's/^/| /' conftest.$ac_ext >&5
23702
23703         ac_cv_type_long_long=no
23704 fi
23705
23706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23707 fi
23708 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23709 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23710
23711 # The cast to long int works around a bug in the HP C Compiler
23712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23714 # This bug is HP SR number 8606223364.
23715 { echo "$as_me:$LINENO: checking size of long long" >&5
23716 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23717 if test "${ac_cv_sizeof_long_long+set}" = set; then
23718   echo $ECHO_N "(cached) $ECHO_C" >&6
23719 else
23720   if test "$cross_compiling" = yes; then
23721   # Depending upon the size, compute the lo and hi bounds.
23722 cat >conftest.$ac_ext <<_ACEOF
23723 /* confdefs.h.  */
23724 _ACEOF
23725 cat confdefs.h >>conftest.$ac_ext
23726 cat >>conftest.$ac_ext <<_ACEOF
23727 /* end confdefs.h.  */
23728 $ac_includes_default
23729    typedef long long ac__type_sizeof_;
23730 int
23731 main ()
23732 {
23733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23734 test_array [0] = 0
23735
23736   ;
23737   return 0;
23738 }
23739 _ACEOF
23740 rm -f conftest.$ac_objext
23741 if { (ac_try="$ac_compile"
23742 case "(($ac_try" in
23743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23744   *) ac_try_echo=$ac_try;;
23745 esac
23746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23747   (eval "$ac_compile") 2>conftest.er1
23748   ac_status=$?
23749   grep -v '^ *+' conftest.er1 >conftest.err
23750   rm -f conftest.er1
23751   cat conftest.err >&5
23752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753   (exit $ac_status); } && {
23754          test -z "$ac_c_werror_flag" ||
23755          test ! -s conftest.err
23756        } && test -s conftest.$ac_objext; then
23757   ac_lo=0 ac_mid=0
23758   while :; do
23759     cat >conftest.$ac_ext <<_ACEOF
23760 /* confdefs.h.  */
23761 _ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h.  */
23765 $ac_includes_default
23766    typedef long long ac__type_sizeof_;
23767 int
23768 main ()
23769 {
23770 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23771 test_array [0] = 0
23772
23773   ;
23774   return 0;
23775 }
23776 _ACEOF
23777 rm -f conftest.$ac_objext
23778 if { (ac_try="$ac_compile"
23779 case "(($ac_try" in
23780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23781   *) ac_try_echo=$ac_try;;
23782 esac
23783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23784   (eval "$ac_compile") 2>conftest.er1
23785   ac_status=$?
23786   grep -v '^ *+' conftest.er1 >conftest.err
23787   rm -f conftest.er1
23788   cat conftest.err >&5
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); } && {
23791          test -z "$ac_c_werror_flag" ||
23792          test ! -s conftest.err
23793        } && test -s conftest.$ac_objext; then
23794   ac_hi=$ac_mid; break
23795 else
23796   echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23798
23799         ac_lo=`expr $ac_mid + 1`
23800                         if test $ac_lo -le $ac_mid; then
23801                           ac_lo= ac_hi=
23802                           break
23803                         fi
23804                         ac_mid=`expr 2 '*' $ac_mid + 1`
23805 fi
23806
23807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23808   done
23809 else
23810   echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23812
23813         cat >conftest.$ac_ext <<_ACEOF
23814 /* confdefs.h.  */
23815 _ACEOF
23816 cat confdefs.h >>conftest.$ac_ext
23817 cat >>conftest.$ac_ext <<_ACEOF
23818 /* end confdefs.h.  */
23819 $ac_includes_default
23820    typedef long long ac__type_sizeof_;
23821 int
23822 main ()
23823 {
23824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23825 test_array [0] = 0
23826
23827   ;
23828   return 0;
23829 }
23830 _ACEOF
23831 rm -f conftest.$ac_objext
23832 if { (ac_try="$ac_compile"
23833 case "(($ac_try" in
23834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23835   *) ac_try_echo=$ac_try;;
23836 esac
23837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23838   (eval "$ac_compile") 2>conftest.er1
23839   ac_status=$?
23840   grep -v '^ *+' conftest.er1 >conftest.err
23841   rm -f conftest.er1
23842   cat conftest.err >&5
23843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844   (exit $ac_status); } && {
23845          test -z "$ac_c_werror_flag" ||
23846          test ! -s conftest.err
23847        } && test -s conftest.$ac_objext; then
23848   ac_hi=-1 ac_mid=-1
23849   while :; do
23850     cat >conftest.$ac_ext <<_ACEOF
23851 /* confdefs.h.  */
23852 _ACEOF
23853 cat confdefs.h >>conftest.$ac_ext
23854 cat >>conftest.$ac_ext <<_ACEOF
23855 /* end confdefs.h.  */
23856 $ac_includes_default
23857    typedef long long ac__type_sizeof_;
23858 int
23859 main ()
23860 {
23861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23862 test_array [0] = 0
23863
23864   ;
23865   return 0;
23866 }
23867 _ACEOF
23868 rm -f conftest.$ac_objext
23869 if { (ac_try="$ac_compile"
23870 case "(($ac_try" in
23871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23872   *) ac_try_echo=$ac_try;;
23873 esac
23874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23875   (eval "$ac_compile") 2>conftest.er1
23876   ac_status=$?
23877   grep -v '^ *+' conftest.er1 >conftest.err
23878   rm -f conftest.er1
23879   cat conftest.err >&5
23880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881   (exit $ac_status); } && {
23882          test -z "$ac_c_werror_flag" ||
23883          test ! -s conftest.err
23884        } && test -s conftest.$ac_objext; then
23885   ac_lo=$ac_mid; break
23886 else
23887   echo "$as_me: failed program was:" >&5
23888 sed 's/^/| /' conftest.$ac_ext >&5
23889
23890         ac_hi=`expr '(' $ac_mid ')' - 1`
23891                         if test $ac_mid -le $ac_hi; then
23892                           ac_lo= ac_hi=
23893                           break
23894                         fi
23895                         ac_mid=`expr 2 '*' $ac_mid`
23896 fi
23897
23898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23899   done
23900 else
23901   echo "$as_me: failed program was:" >&5
23902 sed 's/^/| /' conftest.$ac_ext >&5
23903
23904         ac_lo= ac_hi=
23905 fi
23906
23907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23908 fi
23909
23910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23911 # Binary search between lo and hi bounds.
23912 while test "x$ac_lo" != "x$ac_hi"; do
23913   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23914   cat >conftest.$ac_ext <<_ACEOF
23915 /* confdefs.h.  */
23916 _ACEOF
23917 cat confdefs.h >>conftest.$ac_ext
23918 cat >>conftest.$ac_ext <<_ACEOF
23919 /* end confdefs.h.  */
23920 $ac_includes_default
23921    typedef long long ac__type_sizeof_;
23922 int
23923 main ()
23924 {
23925 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23926 test_array [0] = 0
23927
23928   ;
23929   return 0;
23930 }
23931 _ACEOF
23932 rm -f conftest.$ac_objext
23933 if { (ac_try="$ac_compile"
23934 case "(($ac_try" in
23935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23936   *) ac_try_echo=$ac_try;;
23937 esac
23938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23939   (eval "$ac_compile") 2>conftest.er1
23940   ac_status=$?
23941   grep -v '^ *+' conftest.er1 >conftest.err
23942   rm -f conftest.er1
23943   cat conftest.err >&5
23944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945   (exit $ac_status); } && {
23946          test -z "$ac_c_werror_flag" ||
23947          test ! -s conftest.err
23948        } && test -s conftest.$ac_objext; then
23949   ac_hi=$ac_mid
23950 else
23951   echo "$as_me: failed program was:" >&5
23952 sed 's/^/| /' conftest.$ac_ext >&5
23953
23954         ac_lo=`expr '(' $ac_mid ')' + 1`
23955 fi
23956
23957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958 done
23959 case $ac_lo in
23960 ?*) ac_cv_sizeof_long_long=$ac_lo;;
23961 '') if test "$ac_cv_type_long_long" = yes; then
23962      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23963 See \`config.log' for more details." >&5
23964 echo "$as_me: error: cannot compute sizeof (long long)
23965 See \`config.log' for more details." >&2;}
23966    { (exit 77); exit 77; }; }
23967    else
23968      ac_cv_sizeof_long_long=0
23969    fi ;;
23970 esac
23971 else
23972   cat >conftest.$ac_ext <<_ACEOF
23973 /* confdefs.h.  */
23974 _ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h.  */
23978 $ac_includes_default
23979    typedef long long ac__type_sizeof_;
23980 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23981 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23982 #include <stdio.h>
23983 #include <stdlib.h>
23984 int
23985 main ()
23986 {
23987
23988   FILE *f = fopen ("conftest.val", "w");
23989   if (! f)
23990     return 1;
23991   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23992     {
23993       long int i = longval ();
23994       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23995         return 1;
23996       fprintf (f, "%ld\n", i);
23997     }
23998   else
23999     {
24000       unsigned long int i = ulongval ();
24001       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24002         return 1;
24003       fprintf (f, "%lu\n", i);
24004     }
24005   return ferror (f) || fclose (f) != 0;
24006
24007   ;
24008   return 0;
24009 }
24010 _ACEOF
24011 rm -f conftest$ac_exeext
24012 if { (ac_try="$ac_link"
24013 case "(($ac_try" in
24014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24015   *) ac_try_echo=$ac_try;;
24016 esac
24017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24018   (eval "$ac_link") 2>&5
24019   ac_status=$?
24020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24022   { (case "(($ac_try" in
24023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24024   *) ac_try_echo=$ac_try;;
24025 esac
24026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24027   (eval "$ac_try") 2>&5
24028   ac_status=$?
24029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030   (exit $ac_status); }; }; then
24031   ac_cv_sizeof_long_long=`cat conftest.val`
24032 else
24033   echo "$as_me: program exited with status $ac_status" >&5
24034 echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.$ac_ext >&5
24036
24037 ( exit $ac_status )
24038 if test "$ac_cv_type_long_long" = yes; then
24039      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24040 See \`config.log' for more details." >&5
24041 echo "$as_me: error: cannot compute sizeof (long long)
24042 See \`config.log' for more details." >&2;}
24043    { (exit 77); exit 77; }; }
24044    else
24045      ac_cv_sizeof_long_long=0
24046    fi
24047 fi
24048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24049 fi
24050 rm -f conftest.val
24051 fi
24052 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24053 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24054
24055
24056
24057 cat >>confdefs.h <<_ACEOF
24058 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24059 _ACEOF
24060
24061
24062         if test "$ac_cv_sizeof_long_long" != "0"; then
24063                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
24064         fi
24065     ;;
24066     * )
24067         { echo "$as_me:$LINENO: checking for long long" >&5
24068 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24069 if test "${ac_cv_type_long_long+set}" = set; then
24070   echo $ECHO_N "(cached) $ECHO_C" >&6
24071 else
24072   cat >conftest.$ac_ext <<_ACEOF
24073 /* confdefs.h.  */
24074 _ACEOF
24075 cat confdefs.h >>conftest.$ac_ext
24076 cat >>conftest.$ac_ext <<_ACEOF
24077 /* end confdefs.h.  */
24078 $ac_includes_default
24079 typedef long long ac__type_new_;
24080 int
24081 main ()
24082 {
24083 if ((ac__type_new_ *) 0)
24084   return 0;
24085 if (sizeof (ac__type_new_))
24086   return 0;
24087   ;
24088   return 0;
24089 }
24090 _ACEOF
24091 rm -f conftest.$ac_objext
24092 if { (ac_try="$ac_compile"
24093 case "(($ac_try" in
24094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24095   *) ac_try_echo=$ac_try;;
24096 esac
24097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24098   (eval "$ac_compile") 2>conftest.er1
24099   ac_status=$?
24100   grep -v '^ *+' conftest.er1 >conftest.err
24101   rm -f conftest.er1
24102   cat conftest.err >&5
24103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104   (exit $ac_status); } && {
24105          test -z "$ac_c_werror_flag" ||
24106          test ! -s conftest.err
24107        } && test -s conftest.$ac_objext; then
24108   ac_cv_type_long_long=yes
24109 else
24110   echo "$as_me: failed program was:" >&5
24111 sed 's/^/| /' conftest.$ac_ext >&5
24112
24113         ac_cv_type_long_long=no
24114 fi
24115
24116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24117 fi
24118 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24119 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24120
24121 # The cast to long int works around a bug in the HP C Compiler
24122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24124 # This bug is HP SR number 8606223364.
24125 { echo "$as_me:$LINENO: checking size of long long" >&5
24126 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24127 if test "${ac_cv_sizeof_long_long+set}" = set; then
24128   echo $ECHO_N "(cached) $ECHO_C" >&6
24129 else
24130   if test "$cross_compiling" = yes; then
24131   # Depending upon the size, compute the lo and hi bounds.
24132 cat >conftest.$ac_ext <<_ACEOF
24133 /* confdefs.h.  */
24134 _ACEOF
24135 cat confdefs.h >>conftest.$ac_ext
24136 cat >>conftest.$ac_ext <<_ACEOF
24137 /* end confdefs.h.  */
24138 $ac_includes_default
24139    typedef long long ac__type_sizeof_;
24140 int
24141 main ()
24142 {
24143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24144 test_array [0] = 0
24145
24146   ;
24147   return 0;
24148 }
24149 _ACEOF
24150 rm -f conftest.$ac_objext
24151 if { (ac_try="$ac_compile"
24152 case "(($ac_try" in
24153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24154   *) ac_try_echo=$ac_try;;
24155 esac
24156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24157   (eval "$ac_compile") 2>conftest.er1
24158   ac_status=$?
24159   grep -v '^ *+' conftest.er1 >conftest.err
24160   rm -f conftest.er1
24161   cat conftest.err >&5
24162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163   (exit $ac_status); } && {
24164          test -z "$ac_c_werror_flag" ||
24165          test ! -s conftest.err
24166        } && test -s conftest.$ac_objext; then
24167   ac_lo=0 ac_mid=0
24168   while :; do
24169     cat >conftest.$ac_ext <<_ACEOF
24170 /* confdefs.h.  */
24171 _ACEOF
24172 cat confdefs.h >>conftest.$ac_ext
24173 cat >>conftest.$ac_ext <<_ACEOF
24174 /* end confdefs.h.  */
24175 $ac_includes_default
24176    typedef long long ac__type_sizeof_;
24177 int
24178 main ()
24179 {
24180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24181 test_array [0] = 0
24182
24183   ;
24184   return 0;
24185 }
24186 _ACEOF
24187 rm -f conftest.$ac_objext
24188 if { (ac_try="$ac_compile"
24189 case "(($ac_try" in
24190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191   *) ac_try_echo=$ac_try;;
24192 esac
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194   (eval "$ac_compile") 2>conftest.er1
24195   ac_status=$?
24196   grep -v '^ *+' conftest.er1 >conftest.err
24197   rm -f conftest.er1
24198   cat conftest.err >&5
24199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); } && {
24201          test -z "$ac_c_werror_flag" ||
24202          test ! -s conftest.err
24203        } && test -s conftest.$ac_objext; then
24204   ac_hi=$ac_mid; break
24205 else
24206   echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24208
24209         ac_lo=`expr $ac_mid + 1`
24210                         if test $ac_lo -le $ac_mid; then
24211                           ac_lo= ac_hi=
24212                           break
24213                         fi
24214                         ac_mid=`expr 2 '*' $ac_mid + 1`
24215 fi
24216
24217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24218   done
24219 else
24220   echo "$as_me: failed program was:" >&5
24221 sed 's/^/| /' conftest.$ac_ext >&5
24222
24223         cat >conftest.$ac_ext <<_ACEOF
24224 /* confdefs.h.  */
24225 _ACEOF
24226 cat confdefs.h >>conftest.$ac_ext
24227 cat >>conftest.$ac_ext <<_ACEOF
24228 /* end confdefs.h.  */
24229 $ac_includes_default
24230    typedef long long ac__type_sizeof_;
24231 int
24232 main ()
24233 {
24234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24235 test_array [0] = 0
24236
24237   ;
24238   return 0;
24239 }
24240 _ACEOF
24241 rm -f conftest.$ac_objext
24242 if { (ac_try="$ac_compile"
24243 case "(($ac_try" in
24244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245   *) ac_try_echo=$ac_try;;
24246 esac
24247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248   (eval "$ac_compile") 2>conftest.er1
24249   ac_status=$?
24250   grep -v '^ *+' conftest.er1 >conftest.err
24251   rm -f conftest.er1
24252   cat conftest.err >&5
24253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254   (exit $ac_status); } && {
24255          test -z "$ac_c_werror_flag" ||
24256          test ! -s conftest.err
24257        } && test -s conftest.$ac_objext; then
24258   ac_hi=-1 ac_mid=-1
24259   while :; do
24260     cat >conftest.$ac_ext <<_ACEOF
24261 /* confdefs.h.  */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h.  */
24266 $ac_includes_default
24267    typedef long long ac__type_sizeof_;
24268 int
24269 main ()
24270 {
24271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24272 test_array [0] = 0
24273
24274   ;
24275   return 0;
24276 }
24277 _ACEOF
24278 rm -f conftest.$ac_objext
24279 if { (ac_try="$ac_compile"
24280 case "(($ac_try" in
24281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24282   *) ac_try_echo=$ac_try;;
24283 esac
24284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24285   (eval "$ac_compile") 2>conftest.er1
24286   ac_status=$?
24287   grep -v '^ *+' conftest.er1 >conftest.err
24288   rm -f conftest.er1
24289   cat conftest.err >&5
24290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291   (exit $ac_status); } && {
24292          test -z "$ac_c_werror_flag" ||
24293          test ! -s conftest.err
24294        } && test -s conftest.$ac_objext; then
24295   ac_lo=$ac_mid; break
24296 else
24297   echo "$as_me: failed program was:" >&5
24298 sed 's/^/| /' conftest.$ac_ext >&5
24299
24300         ac_hi=`expr '(' $ac_mid ')' - 1`
24301                         if test $ac_mid -le $ac_hi; then
24302                           ac_lo= ac_hi=
24303                           break
24304                         fi
24305                         ac_mid=`expr 2 '*' $ac_mid`
24306 fi
24307
24308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24309   done
24310 else
24311   echo "$as_me: failed program was:" >&5
24312 sed 's/^/| /' conftest.$ac_ext >&5
24313
24314         ac_lo= ac_hi=
24315 fi
24316
24317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24318 fi
24319
24320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24321 # Binary search between lo and hi bounds.
24322 while test "x$ac_lo" != "x$ac_hi"; do
24323   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24324   cat >conftest.$ac_ext <<_ACEOF
24325 /* confdefs.h.  */
24326 _ACEOF
24327 cat confdefs.h >>conftest.$ac_ext
24328 cat >>conftest.$ac_ext <<_ACEOF
24329 /* end confdefs.h.  */
24330 $ac_includes_default
24331    typedef long long ac__type_sizeof_;
24332 int
24333 main ()
24334 {
24335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24336 test_array [0] = 0
24337
24338   ;
24339   return 0;
24340 }
24341 _ACEOF
24342 rm -f conftest.$ac_objext
24343 if { (ac_try="$ac_compile"
24344 case "(($ac_try" in
24345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24346   *) ac_try_echo=$ac_try;;
24347 esac
24348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24349   (eval "$ac_compile") 2>conftest.er1
24350   ac_status=$?
24351   grep -v '^ *+' conftest.er1 >conftest.err
24352   rm -f conftest.er1
24353   cat conftest.err >&5
24354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355   (exit $ac_status); } && {
24356          test -z "$ac_c_werror_flag" ||
24357          test ! -s conftest.err
24358        } && test -s conftest.$ac_objext; then
24359   ac_hi=$ac_mid
24360 else
24361   echo "$as_me: failed program was:" >&5
24362 sed 's/^/| /' conftest.$ac_ext >&5
24363
24364         ac_lo=`expr '(' $ac_mid ')' + 1`
24365 fi
24366
24367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24368 done
24369 case $ac_lo in
24370 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24371 '') if test "$ac_cv_type_long_long" = yes; then
24372      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24373 See \`config.log' for more details." >&5
24374 echo "$as_me: error: cannot compute sizeof (long long)
24375 See \`config.log' for more details." >&2;}
24376    { (exit 77); exit 77; }; }
24377    else
24378      ac_cv_sizeof_long_long=0
24379    fi ;;
24380 esac
24381 else
24382   cat >conftest.$ac_ext <<_ACEOF
24383 /* confdefs.h.  */
24384 _ACEOF
24385 cat confdefs.h >>conftest.$ac_ext
24386 cat >>conftest.$ac_ext <<_ACEOF
24387 /* end confdefs.h.  */
24388 $ac_includes_default
24389    typedef long long ac__type_sizeof_;
24390 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24391 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24392 #include <stdio.h>
24393 #include <stdlib.h>
24394 int
24395 main ()
24396 {
24397
24398   FILE *f = fopen ("conftest.val", "w");
24399   if (! f)
24400     return 1;
24401   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24402     {
24403       long int i = longval ();
24404       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24405         return 1;
24406       fprintf (f, "%ld\n", i);
24407     }
24408   else
24409     {
24410       unsigned long int i = ulongval ();
24411       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24412         return 1;
24413       fprintf (f, "%lu\n", i);
24414     }
24415   return ferror (f) || fclose (f) != 0;
24416
24417   ;
24418   return 0;
24419 }
24420 _ACEOF
24421 rm -f conftest$ac_exeext
24422 if { (ac_try="$ac_link"
24423 case "(($ac_try" in
24424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24425   *) ac_try_echo=$ac_try;;
24426 esac
24427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24428   (eval "$ac_link") 2>&5
24429   ac_status=$?
24430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24432   { (case "(($ac_try" in
24433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434   *) ac_try_echo=$ac_try;;
24435 esac
24436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24437   (eval "$ac_try") 2>&5
24438   ac_status=$?
24439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440   (exit $ac_status); }; }; then
24441   ac_cv_sizeof_long_long=`cat conftest.val`
24442 else
24443   echo "$as_me: program exited with status $ac_status" >&5
24444 echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24446
24447 ( exit $ac_status )
24448 if test "$ac_cv_type_long_long" = yes; then
24449      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24450 See \`config.log' for more details." >&5
24451 echo "$as_me: error: cannot compute sizeof (long long)
24452 See \`config.log' for more details." >&2;}
24453    { (exit 77); exit 77; }; }
24454    else
24455      ac_cv_sizeof_long_long=0
24456    fi
24457 fi
24458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24459 fi
24460 rm -f conftest.val
24461 fi
24462 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24463 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24464
24465
24466
24467 cat >>confdefs.h <<_ACEOF
24468 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24469 _ACEOF
24470
24471
24472 esac
24473
24474 { echo "$as_me:$LINENO: checking for wchar_t" >&5
24475 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
24476 if test "${ac_cv_type_wchar_t+set}" = set; then
24477   echo $ECHO_N "(cached) $ECHO_C" >&6
24478 else
24479   cat >conftest.$ac_ext <<_ACEOF
24480 /* confdefs.h.  */
24481 _ACEOF
24482 cat confdefs.h >>conftest.$ac_ext
24483 cat >>conftest.$ac_ext <<_ACEOF
24484 /* end confdefs.h.  */
24485
24486         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24487         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24488         #  error "fake wchar_t"
24489         #endif
24490         #ifdef HAVE_WCHAR_H
24491         #  ifdef __CYGWIN__
24492         #    include <stddef.h>
24493         #  endif
24494         #  include <wchar.h>
24495         #endif
24496         #ifdef HAVE_STDLIB_H
24497         #  include <stdlib.h>
24498         #endif
24499         #include <stdio.h>
24500
24501
24502
24503 typedef wchar_t ac__type_new_;
24504 int
24505 main ()
24506 {
24507 if ((ac__type_new_ *) 0)
24508   return 0;
24509 if (sizeof (ac__type_new_))
24510   return 0;
24511   ;
24512   return 0;
24513 }
24514 _ACEOF
24515 rm -f conftest.$ac_objext
24516 if { (ac_try="$ac_compile"
24517 case "(($ac_try" in
24518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519   *) ac_try_echo=$ac_try;;
24520 esac
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522   (eval "$ac_compile") 2>conftest.er1
24523   ac_status=$?
24524   grep -v '^ *+' conftest.er1 >conftest.err
24525   rm -f conftest.er1
24526   cat conftest.err >&5
24527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528   (exit $ac_status); } && {
24529          test -z "$ac_c_werror_flag" ||
24530          test ! -s conftest.err
24531        } && test -s conftest.$ac_objext; then
24532   ac_cv_type_wchar_t=yes
24533 else
24534   echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24536
24537         ac_cv_type_wchar_t=no
24538 fi
24539
24540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24541 fi
24542 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
24543 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
24544
24545 # The cast to long int works around a bug in the HP C Compiler
24546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24548 # This bug is HP SR number 8606223364.
24549 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
24550 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
24551 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
24552   echo $ECHO_N "(cached) $ECHO_C" >&6
24553 else
24554   if test "$cross_compiling" = yes; then
24555   # Depending upon the size, compute the lo and hi bounds.
24556 cat >conftest.$ac_ext <<_ACEOF
24557 /* confdefs.h.  */
24558 _ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h.  */
24562
24563         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24564         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24565         #  error "fake wchar_t"
24566         #endif
24567         #ifdef HAVE_WCHAR_H
24568         #  ifdef __CYGWIN__
24569         #    include <stddef.h>
24570         #  endif
24571         #  include <wchar.h>
24572         #endif
24573         #ifdef HAVE_STDLIB_H
24574         #  include <stdlib.h>
24575         #endif
24576         #include <stdio.h>
24577
24578
24579
24580    typedef wchar_t ac__type_sizeof_;
24581 int
24582 main ()
24583 {
24584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24585 test_array [0] = 0
24586
24587   ;
24588   return 0;
24589 }
24590 _ACEOF
24591 rm -f conftest.$ac_objext
24592 if { (ac_try="$ac_compile"
24593 case "(($ac_try" in
24594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24595   *) ac_try_echo=$ac_try;;
24596 esac
24597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24598   (eval "$ac_compile") 2>conftest.er1
24599   ac_status=$?
24600   grep -v '^ *+' conftest.er1 >conftest.err
24601   rm -f conftest.er1
24602   cat conftest.err >&5
24603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); } && {
24605          test -z "$ac_c_werror_flag" ||
24606          test ! -s conftest.err
24607        } && test -s conftest.$ac_objext; then
24608   ac_lo=0 ac_mid=0
24609   while :; do
24610     cat >conftest.$ac_ext <<_ACEOF
24611 /* confdefs.h.  */
24612 _ACEOF
24613 cat confdefs.h >>conftest.$ac_ext
24614 cat >>conftest.$ac_ext <<_ACEOF
24615 /* end confdefs.h.  */
24616
24617         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24618         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24619         #  error "fake wchar_t"
24620         #endif
24621         #ifdef HAVE_WCHAR_H
24622         #  ifdef __CYGWIN__
24623         #    include <stddef.h>
24624         #  endif
24625         #  include <wchar.h>
24626         #endif
24627         #ifdef HAVE_STDLIB_H
24628         #  include <stdlib.h>
24629         #endif
24630         #include <stdio.h>
24631
24632
24633
24634    typedef wchar_t ac__type_sizeof_;
24635 int
24636 main ()
24637 {
24638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24639 test_array [0] = 0
24640
24641   ;
24642   return 0;
24643 }
24644 _ACEOF
24645 rm -f conftest.$ac_objext
24646 if { (ac_try="$ac_compile"
24647 case "(($ac_try" in
24648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24649   *) ac_try_echo=$ac_try;;
24650 esac
24651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24652   (eval "$ac_compile") 2>conftest.er1
24653   ac_status=$?
24654   grep -v '^ *+' conftest.er1 >conftest.err
24655   rm -f conftest.er1
24656   cat conftest.err >&5
24657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658   (exit $ac_status); } && {
24659          test -z "$ac_c_werror_flag" ||
24660          test ! -s conftest.err
24661        } && test -s conftest.$ac_objext; then
24662   ac_hi=$ac_mid; break
24663 else
24664   echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24666
24667         ac_lo=`expr $ac_mid + 1`
24668                         if test $ac_lo -le $ac_mid; then
24669                           ac_lo= ac_hi=
24670                           break
24671                         fi
24672                         ac_mid=`expr 2 '*' $ac_mid + 1`
24673 fi
24674
24675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24676   done
24677 else
24678   echo "$as_me: failed program was:" >&5
24679 sed 's/^/| /' conftest.$ac_ext >&5
24680
24681         cat >conftest.$ac_ext <<_ACEOF
24682 /* confdefs.h.  */
24683 _ACEOF
24684 cat confdefs.h >>conftest.$ac_ext
24685 cat >>conftest.$ac_ext <<_ACEOF
24686 /* end confdefs.h.  */
24687
24688         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24689         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24690         #  error "fake wchar_t"
24691         #endif
24692         #ifdef HAVE_WCHAR_H
24693         #  ifdef __CYGWIN__
24694         #    include <stddef.h>
24695         #  endif
24696         #  include <wchar.h>
24697         #endif
24698         #ifdef HAVE_STDLIB_H
24699         #  include <stdlib.h>
24700         #endif
24701         #include <stdio.h>
24702
24703
24704
24705    typedef wchar_t ac__type_sizeof_;
24706 int
24707 main ()
24708 {
24709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24710 test_array [0] = 0
24711
24712   ;
24713   return 0;
24714 }
24715 _ACEOF
24716 rm -f conftest.$ac_objext
24717 if { (ac_try="$ac_compile"
24718 case "(($ac_try" in
24719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720   *) ac_try_echo=$ac_try;;
24721 esac
24722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723   (eval "$ac_compile") 2>conftest.er1
24724   ac_status=$?
24725   grep -v '^ *+' conftest.er1 >conftest.err
24726   rm -f conftest.er1
24727   cat conftest.err >&5
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); } && {
24730          test -z "$ac_c_werror_flag" ||
24731          test ! -s conftest.err
24732        } && test -s conftest.$ac_objext; then
24733   ac_hi=-1 ac_mid=-1
24734   while :; do
24735     cat >conftest.$ac_ext <<_ACEOF
24736 /* confdefs.h.  */
24737 _ACEOF
24738 cat confdefs.h >>conftest.$ac_ext
24739 cat >>conftest.$ac_ext <<_ACEOF
24740 /* end confdefs.h.  */
24741
24742         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24743         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24744         #  error "fake wchar_t"
24745         #endif
24746         #ifdef HAVE_WCHAR_H
24747         #  ifdef __CYGWIN__
24748         #    include <stddef.h>
24749         #  endif
24750         #  include <wchar.h>
24751         #endif
24752         #ifdef HAVE_STDLIB_H
24753         #  include <stdlib.h>
24754         #endif
24755         #include <stdio.h>
24756
24757
24758
24759    typedef wchar_t ac__type_sizeof_;
24760 int
24761 main ()
24762 {
24763 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24764 test_array [0] = 0
24765
24766   ;
24767   return 0;
24768 }
24769 _ACEOF
24770 rm -f conftest.$ac_objext
24771 if { (ac_try="$ac_compile"
24772 case "(($ac_try" in
24773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774   *) ac_try_echo=$ac_try;;
24775 esac
24776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24777   (eval "$ac_compile") 2>conftest.er1
24778   ac_status=$?
24779   grep -v '^ *+' conftest.er1 >conftest.err
24780   rm -f conftest.er1
24781   cat conftest.err >&5
24782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783   (exit $ac_status); } && {
24784          test -z "$ac_c_werror_flag" ||
24785          test ! -s conftest.err
24786        } && test -s conftest.$ac_objext; then
24787   ac_lo=$ac_mid; break
24788 else
24789   echo "$as_me: failed program was:" >&5
24790 sed 's/^/| /' conftest.$ac_ext >&5
24791
24792         ac_hi=`expr '(' $ac_mid ')' - 1`
24793                         if test $ac_mid -le $ac_hi; then
24794                           ac_lo= ac_hi=
24795                           break
24796                         fi
24797                         ac_mid=`expr 2 '*' $ac_mid`
24798 fi
24799
24800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24801   done
24802 else
24803   echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24805
24806         ac_lo= ac_hi=
24807 fi
24808
24809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24810 fi
24811
24812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24813 # Binary search between lo and hi bounds.
24814 while test "x$ac_lo" != "x$ac_hi"; do
24815   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24816   cat >conftest.$ac_ext <<_ACEOF
24817 /* confdefs.h.  */
24818 _ACEOF
24819 cat confdefs.h >>conftest.$ac_ext
24820 cat >>conftest.$ac_ext <<_ACEOF
24821 /* end confdefs.h.  */
24822
24823         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24824         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24825         #  error "fake wchar_t"
24826         #endif
24827         #ifdef HAVE_WCHAR_H
24828         #  ifdef __CYGWIN__
24829         #    include <stddef.h>
24830         #  endif
24831         #  include <wchar.h>
24832         #endif
24833         #ifdef HAVE_STDLIB_H
24834         #  include <stdlib.h>
24835         #endif
24836         #include <stdio.h>
24837
24838
24839
24840    typedef wchar_t ac__type_sizeof_;
24841 int
24842 main ()
24843 {
24844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24845 test_array [0] = 0
24846
24847   ;
24848   return 0;
24849 }
24850 _ACEOF
24851 rm -f conftest.$ac_objext
24852 if { (ac_try="$ac_compile"
24853 case "(($ac_try" in
24854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24855   *) ac_try_echo=$ac_try;;
24856 esac
24857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24858   (eval "$ac_compile") 2>conftest.er1
24859   ac_status=$?
24860   grep -v '^ *+' conftest.er1 >conftest.err
24861   rm -f conftest.er1
24862   cat conftest.err >&5
24863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864   (exit $ac_status); } && {
24865          test -z "$ac_c_werror_flag" ||
24866          test ! -s conftest.err
24867        } && test -s conftest.$ac_objext; then
24868   ac_hi=$ac_mid
24869 else
24870   echo "$as_me: failed program was:" >&5
24871 sed 's/^/| /' conftest.$ac_ext >&5
24872
24873         ac_lo=`expr '(' $ac_mid ')' + 1`
24874 fi
24875
24876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24877 done
24878 case $ac_lo in
24879 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
24880 '') if test "$ac_cv_type_wchar_t" = yes; then
24881      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24882 See \`config.log' for more details." >&5
24883 echo "$as_me: error: cannot compute sizeof (wchar_t)
24884 See \`config.log' for more details." >&2;}
24885    { (exit 77); exit 77; }; }
24886    else
24887      ac_cv_sizeof_wchar_t=0
24888    fi ;;
24889 esac
24890 else
24891   cat >conftest.$ac_ext <<_ACEOF
24892 /* confdefs.h.  */
24893 _ACEOF
24894 cat confdefs.h >>conftest.$ac_ext
24895 cat >>conftest.$ac_ext <<_ACEOF
24896 /* end confdefs.h.  */
24897
24898         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
24899         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
24900         #  error "fake wchar_t"
24901         #endif
24902         #ifdef HAVE_WCHAR_H
24903         #  ifdef __CYGWIN__
24904         #    include <stddef.h>
24905         #  endif
24906         #  include <wchar.h>
24907         #endif
24908         #ifdef HAVE_STDLIB_H
24909         #  include <stdlib.h>
24910         #endif
24911         #include <stdio.h>
24912
24913
24914
24915    typedef wchar_t ac__type_sizeof_;
24916 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24917 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24918 #include <stdio.h>
24919 #include <stdlib.h>
24920 int
24921 main ()
24922 {
24923
24924   FILE *f = fopen ("conftest.val", "w");
24925   if (! f)
24926     return 1;
24927   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24928     {
24929       long int i = longval ();
24930       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24931         return 1;
24932       fprintf (f, "%ld\n", i);
24933     }
24934   else
24935     {
24936       unsigned long int i = ulongval ();
24937       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24938         return 1;
24939       fprintf (f, "%lu\n", i);
24940     }
24941   return ferror (f) || fclose (f) != 0;
24942
24943   ;
24944   return 0;
24945 }
24946 _ACEOF
24947 rm -f conftest$ac_exeext
24948 if { (ac_try="$ac_link"
24949 case "(($ac_try" in
24950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24951   *) ac_try_echo=$ac_try;;
24952 esac
24953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24954   (eval "$ac_link") 2>&5
24955   ac_status=$?
24956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24958   { (case "(($ac_try" in
24959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24960   *) ac_try_echo=$ac_try;;
24961 esac
24962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24963   (eval "$ac_try") 2>&5
24964   ac_status=$?
24965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966   (exit $ac_status); }; }; then
24967   ac_cv_sizeof_wchar_t=`cat conftest.val`
24968 else
24969   echo "$as_me: program exited with status $ac_status" >&5
24970 echo "$as_me: failed program was:" >&5
24971 sed 's/^/| /' conftest.$ac_ext >&5
24972
24973 ( exit $ac_status )
24974 if test "$ac_cv_type_wchar_t" = yes; then
24975      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
24976 See \`config.log' for more details." >&5
24977 echo "$as_me: error: cannot compute sizeof (wchar_t)
24978 See \`config.log' for more details." >&2;}
24979    { (exit 77); exit 77; }; }
24980    else
24981      ac_cv_sizeof_wchar_t=0
24982    fi
24983 fi
24984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24985 fi
24986 rm -f conftest.val
24987 fi
24988 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
24989 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
24990
24991
24992
24993 cat >>confdefs.h <<_ACEOF
24994 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
24995 _ACEOF
24996
24997
24998 if test "$ac_cv_sizeof_wchar_t" != "0"; then
24999     wxUSE_WCHAR_T=yes
25000 else
25001     wxUSE_WCHAR_T=no
25002 fi
25003
25004 { echo "$as_me:$LINENO: checking for va_copy" >&5
25005 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
25006 if test "${wx_cv_func_va_copy+set}" = set; then
25007   echo $ECHO_N "(cached) $ECHO_C" >&6
25008 else
25009
25010         ac_ext=cpp
25011 ac_cpp='$CXXCPP $CPPFLAGS'
25012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25015
25016         cat >conftest.$ac_ext <<_ACEOF
25017
25018             #include <stdarg.h>
25019             void foo(char *f, ...)
25020             {
25021                 va_list ap1, ap2;
25022                 va_start(ap1, f);
25023                 va_copy(ap2, ap1);
25024                 va_end(ap2);
25025                 va_end(ap1);
25026             }
25027             int main()
25028             {
25029                 foo("hi", 17);
25030                 return 0;
25031             }
25032 _ACEOF
25033 rm -f conftest.$ac_objext conftest$ac_exeext
25034 if { (ac_try="$ac_link"
25035 case "(($ac_try" in
25036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037   *) ac_try_echo=$ac_try;;
25038 esac
25039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25040   (eval "$ac_link") 2>conftest.er1
25041   ac_status=$?
25042   grep -v '^ *+' conftest.er1 >conftest.err
25043   rm -f conftest.er1
25044   cat conftest.err >&5
25045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25046   (exit $ac_status); } && {
25047          test -z "$ac_cxx_werror_flag" ||
25048          test ! -s conftest.err
25049        } && test -s conftest$ac_exeext &&
25050        $as_test_x conftest$ac_exeext; then
25051   wx_cv_func_va_copy=yes
25052 else
25053   echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25055
25056         wx_cv_func_va_copy=no
25057
25058 fi
25059
25060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25061       conftest$ac_exeext conftest.$ac_ext
25062         ac_ext=c
25063 ac_cpp='$CPP $CPPFLAGS'
25064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25067
25068
25069
25070 fi
25071 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
25072 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
25073
25074 if test $wx_cv_func_va_copy = "yes"; then
25075     cat >>confdefs.h <<\_ACEOF
25076 #define HAVE_VA_COPY 1
25077 _ACEOF
25078
25079 else
25080         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
25081 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
25082 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
25083   echo $ECHO_N "(cached) $ECHO_C" >&6
25084 else
25085
25086             if test "$cross_compiling" = yes; then
25087                   wx_cv_type_va_list_lvalue=yes
25088
25089 else
25090   cat >conftest.$ac_ext <<_ACEOF
25091
25092                 #include <stdarg.h>
25093                 int foo(char *f, ...)
25094                 {
25095                     va_list ap1, ap2;
25096                     va_start(ap1, f);
25097                     ap2 = ap1;
25098                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
25099                         return 1;
25100                     va_end(ap2);
25101                     va_end(ap1);
25102                     return 0;
25103                 }
25104                 int main()
25105                 {
25106                     return foo("hi", 17);
25107                 }
25108 _ACEOF
25109 rm -f conftest$ac_exeext
25110 if { (ac_try="$ac_link"
25111 case "(($ac_try" in
25112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113   *) ac_try_echo=$ac_try;;
25114 esac
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116   (eval "$ac_link") 2>&5
25117   ac_status=$?
25118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25120   { (case "(($ac_try" in
25121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122   *) ac_try_echo=$ac_try;;
25123 esac
25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125   (eval "$ac_try") 2>&5
25126   ac_status=$?
25127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); }; }; then
25129   wx_cv_type_va_list_lvalue=yes
25130 else
25131   echo "$as_me: program exited with status $ac_status" >&5
25132 echo "$as_me: failed program was:" >&5
25133 sed 's/^/| /' conftest.$ac_ext >&5
25134
25135 ( exit $ac_status )
25136 wx_cv_type_va_list_lvalue=no
25137 fi
25138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25139 fi
25140
25141
25142
25143
25144 fi
25145 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
25146 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
25147
25148     if test $wx_cv_type_va_list_lvalue != "yes"; then
25149                         cat >>confdefs.h <<\_ACEOF
25150 #define VA_LIST_IS_ARRAY 1
25151 _ACEOF
25152
25153     fi
25154 fi
25155
25156 if test "$wxUSE_VARARG_MACROS" = "yes"; then
25157
25158 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
25159 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
25160 if test "${wx_cv_have_variadic_macros+set}" = set; then
25161   echo $ECHO_N "(cached) $ECHO_C" >&6
25162 else
25163
25164                         ac_ext=cpp
25165 ac_cpp='$CXXCPP $CPPFLAGS'
25166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25169
25170         cat >conftest.$ac_ext <<_ACEOF
25171 /* confdefs.h.  */
25172 _ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h.  */
25176
25177                     #include <stdio.h>
25178                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
25179
25180 int
25181 main ()
25182 {
25183
25184                     test("%s %d %p", "test", 1, 0);
25185
25186
25187   ;
25188   return 0;
25189 }
25190 _ACEOF
25191 rm -f conftest.$ac_objext
25192 if { (ac_try="$ac_compile"
25193 case "(($ac_try" in
25194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25195   *) ac_try_echo=$ac_try;;
25196 esac
25197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25198   (eval "$ac_compile") 2>conftest.er1
25199   ac_status=$?
25200   grep -v '^ *+' conftest.er1 >conftest.err
25201   rm -f conftest.er1
25202   cat conftest.err >&5
25203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204   (exit $ac_status); } && {
25205          test -z "$ac_cxx_werror_flag" ||
25206          test ! -s conftest.err
25207        } && test -s conftest.$ac_objext; then
25208   wx_cv_have_variadic_macros=yes
25209 else
25210   echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25212
25213         wx_cv_have_variadic_macros=no
25214
25215 fi
25216
25217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25218         ac_ext=c
25219 ac_cpp='$CPP $CPPFLAGS'
25220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25223
25224
25225
25226 fi
25227 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
25228 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
25229
25230 if test $wx_cv_have_variadic_macros = "yes"; then
25231     cat >>confdefs.h <<\_ACEOF
25232 #define HAVE_VARIADIC_MACROS 1
25233 _ACEOF
25234
25235 fi
25236
25237 fi
25238 # Check whether --enable-largefile was given.
25239 if test "${enable_largefile+set}" = set; then
25240   enableval=$enable_largefile;
25241 fi
25242
25243 if test "$enable_largefile" != no; then
25244             wx_largefile=no
25245
25246     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25247 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25248 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25249   echo $ECHO_N "(cached) $ECHO_C" >&6
25250 else
25251
25252           cat >conftest.$ac_ext <<_ACEOF
25253 /* confdefs.h.  */
25254 _ACEOF
25255 cat confdefs.h >>conftest.$ac_ext
25256 cat >>conftest.$ac_ext <<_ACEOF
25257 /* end confdefs.h.  */
25258 #define _FILE_OFFSET_BITS 64
25259                           #include <sys/types.h>
25260 int
25261 main ()
25262 {
25263 typedef struct {
25264     unsigned int field: sizeof(off_t) == 8;
25265 } wxlf;
25266
25267   ;
25268   return 0;
25269 }
25270 _ACEOF
25271 rm -f conftest.$ac_objext
25272 if { (ac_try="$ac_compile"
25273 case "(($ac_try" in
25274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275   *) ac_try_echo=$ac_try;;
25276 esac
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278   (eval "$ac_compile") 2>conftest.er1
25279   ac_status=$?
25280   grep -v '^ *+' conftest.er1 >conftest.err
25281   rm -f conftest.er1
25282   cat conftest.err >&5
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); } && {
25285          test -z "$ac_c_werror_flag" ||
25286          test ! -s conftest.err
25287        } && test -s conftest.$ac_objext; then
25288   ac_cv_sys_file_offset_bits=64
25289 else
25290   echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25292
25293         ac_cv_sys_file_offset_bits=no
25294 fi
25295
25296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25297
25298
25299 fi
25300 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25301 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25302
25303     if test "$ac_cv_sys_file_offset_bits" != no; then
25304         wx_largefile=yes
25305         cat >>confdefs.h <<_ACEOF
25306 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25307 _ACEOF
25308
25309     fi
25310
25311     if test "x$wx_largefile" != "xyes"; then
25312
25313     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25314 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25315 if test "${ac_cv_sys_large_files+set}" = set; then
25316   echo $ECHO_N "(cached) $ECHO_C" >&6
25317 else
25318
25319           cat >conftest.$ac_ext <<_ACEOF
25320 /* confdefs.h.  */
25321 _ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h.  */
25325 #define _LARGE_FILES 1
25326                           #include <sys/types.h>
25327 int
25328 main ()
25329 {
25330 typedef struct {
25331     unsigned int field: sizeof(off_t) == 8;
25332 } wxlf;
25333
25334   ;
25335   return 0;
25336 }
25337 _ACEOF
25338 rm -f conftest.$ac_objext
25339 if { (ac_try="$ac_compile"
25340 case "(($ac_try" in
25341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25342   *) ac_try_echo=$ac_try;;
25343 esac
25344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25345   (eval "$ac_compile") 2>conftest.er1
25346   ac_status=$?
25347   grep -v '^ *+' conftest.er1 >conftest.err
25348   rm -f conftest.er1
25349   cat conftest.err >&5
25350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351   (exit $ac_status); } && {
25352          test -z "$ac_c_werror_flag" ||
25353          test ! -s conftest.err
25354        } && test -s conftest.$ac_objext; then
25355   ac_cv_sys_large_files=1
25356 else
25357   echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25359
25360         ac_cv_sys_large_files=no
25361 fi
25362
25363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25364
25365
25366 fi
25367 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25368 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25369
25370     if test "$ac_cv_sys_large_files" != no; then
25371         wx_largefile=yes
25372         cat >>confdefs.h <<_ACEOF
25373 #define _LARGE_FILES $ac_cv_sys_large_files
25374 _ACEOF
25375
25376     fi
25377
25378     fi
25379
25380     { echo "$as_me:$LINENO: checking if large file support is available" >&5
25381 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
25382     if test "x$wx_largefile" = "xyes"; then
25383         cat >>confdefs.h <<\_ACEOF
25384 #define HAVE_LARGEFILE_SUPPORT 1
25385 _ACEOF
25386
25387     fi
25388     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
25389 echo "${ECHO_T}$wx_largefile" >&6; }
25390 fi
25391
25392
25393 if test "x$wx_largefile" = "xyes"; then
25394     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
25395         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
25396
25397                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
25398             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
25399 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
25400 if test "${wx_cv_STDC_EXT_required+set}" = set; then
25401   echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25403
25404                     ac_ext=cpp
25405 ac_cpp='$CXXCPP $CPPFLAGS'
25406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25409
25410                     cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h.  */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h.  */
25416
25417 int
25418 main ()
25419 {
25420
25421                             #ifndef __STDC_EXT__
25422                                 choke me
25423                             #endif
25424
25425   ;
25426   return 0;
25427 }
25428 _ACEOF
25429 rm -f conftest.$ac_objext
25430 if { (ac_try="$ac_compile"
25431 case "(($ac_try" in
25432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433   *) ac_try_echo=$ac_try;;
25434 esac
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436   (eval "$ac_compile") 2>conftest.er1
25437   ac_status=$?
25438   grep -v '^ *+' conftest.er1 >conftest.err
25439   rm -f conftest.er1
25440   cat conftest.err >&5
25441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442   (exit $ac_status); } && {
25443          test -z "$ac_cxx_werror_flag" ||
25444          test ! -s conftest.err
25445        } && test -s conftest.$ac_objext; then
25446   wx_cv_STDC_EXT_required=no
25447 else
25448   echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25450
25451         wx_cv_STDC_EXT_required=yes
25452
25453 fi
25454
25455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25456                     ac_ext=c
25457 ac_cpp='$CPP $CPPFLAGS'
25458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25461
25462
25463
25464 fi
25465 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
25466 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
25467             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
25468                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
25469             fi
25470         fi
25471     else
25472         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
25473     fi
25474         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25475 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
25476 if test "${ac_cv_sys_largefile_source+set}" = set; then
25477   echo $ECHO_N "(cached) $ECHO_C" >&6
25478 else
25479   while :; do
25480   cat >conftest.$ac_ext <<_ACEOF
25481 /* confdefs.h.  */
25482 _ACEOF
25483 cat confdefs.h >>conftest.$ac_ext
25484 cat >>conftest.$ac_ext <<_ACEOF
25485 /* end confdefs.h.  */
25486 #include <sys/types.h> /* for off_t */
25487      #include <stdio.h>
25488 int
25489 main ()
25490 {
25491 int (*fp) (FILE *, off_t, int) = fseeko;
25492      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25493   ;
25494   return 0;
25495 }
25496 _ACEOF
25497 rm -f conftest.$ac_objext conftest$ac_exeext
25498 if { (ac_try="$ac_link"
25499 case "(($ac_try" in
25500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501   *) ac_try_echo=$ac_try;;
25502 esac
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504   (eval "$ac_link") 2>conftest.er1
25505   ac_status=$?
25506   grep -v '^ *+' conftest.er1 >conftest.err
25507   rm -f conftest.er1
25508   cat conftest.err >&5
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); } && {
25511          test -z "$ac_c_werror_flag" ||
25512          test ! -s conftest.err
25513        } && test -s conftest$ac_exeext &&
25514        $as_test_x conftest$ac_exeext; then
25515   ac_cv_sys_largefile_source=no; break
25516 else
25517   echo "$as_me: failed program was:" >&5
25518 sed 's/^/| /' conftest.$ac_ext >&5
25519
25520
25521 fi
25522
25523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25524       conftest$ac_exeext conftest.$ac_ext
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 #define _LARGEFILE_SOURCE 1
25532 #include <sys/types.h> /* for off_t */
25533      #include <stdio.h>
25534 int
25535 main ()
25536 {
25537 int (*fp) (FILE *, off_t, int) = fseeko;
25538      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25539   ;
25540   return 0;
25541 }
25542 _ACEOF
25543 rm -f conftest.$ac_objext conftest$ac_exeext
25544 if { (ac_try="$ac_link"
25545 case "(($ac_try" in
25546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25547   *) ac_try_echo=$ac_try;;
25548 esac
25549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25550   (eval "$ac_link") 2>conftest.er1
25551   ac_status=$?
25552   grep -v '^ *+' conftest.er1 >conftest.err
25553   rm -f conftest.er1
25554   cat conftest.err >&5
25555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25556   (exit $ac_status); } && {
25557          test -z "$ac_c_werror_flag" ||
25558          test ! -s conftest.err
25559        } && test -s conftest$ac_exeext &&
25560        $as_test_x conftest$ac_exeext; then
25561   ac_cv_sys_largefile_source=1; break
25562 else
25563   echo "$as_me: failed program was:" >&5
25564 sed 's/^/| /' conftest.$ac_ext >&5
25565
25566
25567 fi
25568
25569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25570       conftest$ac_exeext conftest.$ac_ext
25571   ac_cv_sys_largefile_source=unknown
25572   break
25573 done
25574 fi
25575 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
25576 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
25577 case $ac_cv_sys_largefile_source in #(
25578   no | unknown) ;;
25579   *)
25580 cat >>confdefs.h <<_ACEOF
25581 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25582 _ACEOF
25583 ;;
25584 esac
25585 rm -f conftest*
25586
25587 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25588 # in glibc 2.1.3, but that breaks too many other things.
25589 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25590 if test $ac_cv_sys_largefile_source != unknown; then
25591
25592 cat >>confdefs.h <<\_ACEOF
25593 #define HAVE_FSEEKO 1
25594 _ACEOF
25595
25596 fi
25597
25598     if test "$ac_cv_sys_largefile_source" != no; then
25599         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
25600     fi
25601 fi
25602
25603 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25604 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
25605 if test "${ac_cv_c_bigendian+set}" = set; then
25606   echo $ECHO_N "(cached) $ECHO_C" >&6
25607 else
25608   ac_cv_c_bigendian=unknown
25609 # See if sys/param.h defines the BYTE_ORDER macro.
25610 cat >conftest.$ac_ext <<_ACEOF
25611 /* confdefs.h.  */
25612 _ACEOF
25613 cat confdefs.h >>conftest.$ac_ext
25614 cat >>conftest.$ac_ext <<_ACEOF
25615 /* end confdefs.h.  */
25616 #include <sys/types.h>
25617 #include <sys/param.h>
25618 int
25619 main ()
25620 {
25621
25622 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25623  bogus endian macros
25624 #endif
25625   ;
25626   return 0;
25627 }
25628 _ACEOF
25629 rm -f conftest.$ac_objext
25630 if { (ac_try="$ac_compile"
25631 case "(($ac_try" in
25632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25633   *) ac_try_echo=$ac_try;;
25634 esac
25635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25636   (eval "$ac_compile") 2>conftest.er1
25637   ac_status=$?
25638   grep -v '^ *+' conftest.er1 >conftest.err
25639   rm -f conftest.er1
25640   cat conftest.err >&5
25641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642   (exit $ac_status); } && {
25643          test -z "$ac_c_werror_flag" ||
25644          test ! -s conftest.err
25645        } && test -s conftest.$ac_objext; then
25646   # It does; now see whether it defined to BIG_ENDIAN or not.
25647 cat >conftest.$ac_ext <<_ACEOF
25648 /* confdefs.h.  */
25649 _ACEOF
25650 cat confdefs.h >>conftest.$ac_ext
25651 cat >>conftest.$ac_ext <<_ACEOF
25652 /* end confdefs.h.  */
25653 #include <sys/types.h>
25654 #include <sys/param.h>
25655 int
25656 main ()
25657 {
25658
25659 #if BYTE_ORDER != BIG_ENDIAN
25660  not big endian
25661 #endif
25662   ;
25663   return 0;
25664 }
25665 _ACEOF
25666 rm -f conftest.$ac_objext
25667 if { (ac_try="$ac_compile"
25668 case "(($ac_try" in
25669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670   *) ac_try_echo=$ac_try;;
25671 esac
25672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25673   (eval "$ac_compile") 2>conftest.er1
25674   ac_status=$?
25675   grep -v '^ *+' conftest.er1 >conftest.err
25676   rm -f conftest.er1
25677   cat conftest.err >&5
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); } && {
25680          test -z "$ac_c_werror_flag" ||
25681          test ! -s conftest.err
25682        } && test -s conftest.$ac_objext; then
25683   ac_cv_c_bigendian=yes
25684 else
25685   echo "$as_me: failed program was:" >&5
25686 sed 's/^/| /' conftest.$ac_ext >&5
25687
25688         ac_cv_c_bigendian=no
25689 fi
25690
25691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25692 else
25693   echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25695
25696
25697 fi
25698
25699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25700 if test $ac_cv_c_bigendian = unknown; then
25701 if test "$cross_compiling" = yes; then
25702   ac_cv_c_bigendian=unknown
25703 else
25704   cat >conftest.$ac_ext <<_ACEOF
25705 /* confdefs.h.  */
25706 _ACEOF
25707 cat confdefs.h >>conftest.$ac_ext
25708 cat >>conftest.$ac_ext <<_ACEOF
25709 /* end confdefs.h.  */
25710 main () {
25711   /* Are we little or big endian?  From Harbison&Steele.  */
25712   union
25713   {
25714     long l;
25715     char c[sizeof (long)];
25716   } u;
25717   u.l = 1;
25718   exit (u.c[sizeof (long) - 1] == 1);
25719 }
25720 _ACEOF
25721 rm -f conftest$ac_exeext
25722 if { (ac_try="$ac_link"
25723 case "(($ac_try" in
25724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25725   *) ac_try_echo=$ac_try;;
25726 esac
25727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25728   (eval "$ac_link") 2>&5
25729   ac_status=$?
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25732   { (case "(($ac_try" in
25733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25734   *) ac_try_echo=$ac_try;;
25735 esac
25736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25737   (eval "$ac_try") 2>&5
25738   ac_status=$?
25739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740   (exit $ac_status); }; }; then
25741   ac_cv_c_bigendian=no
25742 else
25743   echo "$as_me: program exited with status $ac_status" >&5
25744 echo "$as_me: failed program was:" >&5
25745 sed 's/^/| /' conftest.$ac_ext >&5
25746
25747 ( exit $ac_status )
25748 ac_cv_c_bigendian=yes
25749 fi
25750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25751 fi
25752
25753
25754 fi
25755 fi
25756 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25757 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25758 if test $ac_cv_c_bigendian = unknown; then
25759   { 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
25760 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;}
25761 fi
25762 if test $ac_cv_c_bigendian = yes; then
25763   cat >>confdefs.h <<\_ACEOF
25764 #define WORDS_BIGENDIAN 1
25765 _ACEOF
25766
25767 fi
25768
25769
25770
25771
25772     ac_ext=cpp
25773 ac_cpp='$CXXCPP $CPPFLAGS'
25774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25777
25778
25779
25780 for ac_header in iostream
25781 do
25782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25786   echo $ECHO_N "(cached) $ECHO_C" >&6
25787 else
25788   cat >conftest.$ac_ext <<_ACEOF
25789 /* confdefs.h.  */
25790 _ACEOF
25791 cat confdefs.h >>conftest.$ac_ext
25792 cat >>conftest.$ac_ext <<_ACEOF
25793 /* end confdefs.h.  */
25794
25795
25796 #include <$ac_header>
25797 _ACEOF
25798 rm -f conftest.$ac_objext
25799 if { (ac_try="$ac_compile"
25800 case "(($ac_try" in
25801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25802   *) ac_try_echo=$ac_try;;
25803 esac
25804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25805   (eval "$ac_compile") 2>conftest.er1
25806   ac_status=$?
25807   grep -v '^ *+' conftest.er1 >conftest.err
25808   rm -f conftest.er1
25809   cat conftest.err >&5
25810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811   (exit $ac_status); } && {
25812          test -z "$ac_cxx_werror_flag" ||
25813          test ! -s conftest.err
25814        } && test -s conftest.$ac_objext; then
25815   eval "$as_ac_Header=yes"
25816 else
25817   echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25819
25820         eval "$as_ac_Header=no"
25821 fi
25822
25823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25824 fi
25825 ac_res=`eval echo '${'$as_ac_Header'}'`
25826                { echo "$as_me:$LINENO: result: $ac_res" >&5
25827 echo "${ECHO_T}$ac_res" >&6; }
25828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25829   cat >>confdefs.h <<_ACEOF
25830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25831 _ACEOF
25832
25833 fi
25834
25835 done
25836
25837
25838     if test "$ac_cv_header_iostream" = "yes" ; then
25839       :
25840     else
25841       cat >>confdefs.h <<\_ACEOF
25842 #define wxUSE_IOSTREAMH 1
25843 _ACEOF
25844
25845     fi
25846
25847     ac_ext=c
25848 ac_cpp='$CPP $CPPFLAGS'
25849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25852
25853
25854
25855
25856   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
25857 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
25858 if test "${wx_cv_cpp_bool+set}" = set; then
25859   echo $ECHO_N "(cached) $ECHO_C" >&6
25860 else
25861
25862
25863     ac_ext=cpp
25864 ac_cpp='$CXXCPP $CPPFLAGS'
25865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25868
25869
25870     cat >conftest.$ac_ext <<_ACEOF
25871 /* confdefs.h.  */
25872 _ACEOF
25873 cat confdefs.h >>conftest.$ac_ext
25874 cat >>conftest.$ac_ext <<_ACEOF
25875 /* end confdefs.h.  */
25876
25877
25878 int
25879 main ()
25880 {
25881
25882         bool b = true;
25883
25884         return 0;
25885
25886   ;
25887   return 0;
25888 }
25889 _ACEOF
25890 rm -f conftest.$ac_objext
25891 if { (ac_try="$ac_compile"
25892 case "(($ac_try" in
25893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25894   *) ac_try_echo=$ac_try;;
25895 esac
25896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25897   (eval "$ac_compile") 2>conftest.er1
25898   ac_status=$?
25899   grep -v '^ *+' conftest.er1 >conftest.err
25900   rm -f conftest.er1
25901   cat conftest.err >&5
25902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903   (exit $ac_status); } && {
25904          test -z "$ac_cxx_werror_flag" ||
25905          test ! -s conftest.err
25906        } && test -s conftest.$ac_objext; then
25907
25908         wx_cv_cpp_bool=yes
25909
25910 else
25911   echo "$as_me: failed program was:" >&5
25912 sed 's/^/| /' conftest.$ac_ext >&5
25913
25914
25915         wx_cv_cpp_bool=no
25916
25917
25918 fi
25919
25920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25921
25922     ac_ext=c
25923 ac_cpp='$CPP $CPPFLAGS'
25924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25927
25928
25929 fi
25930 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
25931 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
25932
25933   if test "$wx_cv_cpp_bool" = "yes"; then
25934     cat >>confdefs.h <<\_ACEOF
25935 #define HAVE_BOOL 1
25936 _ACEOF
25937
25938   fi
25939
25940
25941
25942   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
25943 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
25944 if test "${wx_cv_explicit+set}" = set; then
25945   echo $ECHO_N "(cached) $ECHO_C" >&6
25946 else
25947
25948
25949     ac_ext=cpp
25950 ac_cpp='$CXXCPP $CPPFLAGS'
25951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25954
25955
25956             cat >conftest.$ac_ext <<_ACEOF
25957 /* confdefs.h.  */
25958 _ACEOF
25959 cat confdefs.h >>conftest.$ac_ext
25960 cat >>conftest.$ac_ext <<_ACEOF
25961 /* end confdefs.h.  */
25962
25963         class Foo { public: explicit Foo(int) {} };
25964
25965 int
25966 main ()
25967 {
25968
25969         return 0;
25970
25971   ;
25972   return 0;
25973 }
25974 _ACEOF
25975 rm -f conftest.$ac_objext
25976 if { (ac_try="$ac_compile"
25977 case "(($ac_try" in
25978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979   *) ac_try_echo=$ac_try;;
25980 esac
25981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25982   (eval "$ac_compile") 2>conftest.er1
25983   ac_status=$?
25984   grep -v '^ *+' conftest.er1 >conftest.err
25985   rm -f conftest.er1
25986   cat conftest.err >&5
25987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988   (exit $ac_status); } && {
25989          test -z "$ac_cxx_werror_flag" ||
25990          test ! -s conftest.err
25991        } && test -s conftest.$ac_objext; then
25992
25993         cat >conftest.$ac_ext <<_ACEOF
25994 /* confdefs.h.  */
25995 _ACEOF
25996 cat confdefs.h >>conftest.$ac_ext
25997 cat >>conftest.$ac_ext <<_ACEOF
25998 /* end confdefs.h.  */
25999
26000                 class Foo { public: explicit Foo(int) {} };
26001                 static void TakeFoo(const Foo& foo) { }
26002
26003 int
26004 main ()
26005 {
26006
26007                 TakeFoo(17);
26008                 return 0;
26009
26010   ;
26011   return 0;
26012 }
26013 _ACEOF
26014 rm -f conftest.$ac_objext
26015 if { (ac_try="$ac_compile"
26016 case "(($ac_try" in
26017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26018   *) ac_try_echo=$ac_try;;
26019 esac
26020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26021   (eval "$ac_compile") 2>conftest.er1
26022   ac_status=$?
26023   grep -v '^ *+' conftest.er1 >conftest.err
26024   rm -f conftest.er1
26025   cat conftest.err >&5
26026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027   (exit $ac_status); } && {
26028          test -z "$ac_cxx_werror_flag" ||
26029          test ! -s conftest.err
26030        } && test -s conftest.$ac_objext; then
26031   wx_cv_explicit=no
26032 else
26033   echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26035
26036         wx_cv_explicit=yes
26037
26038 fi
26039
26040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26041
26042 else
26043   echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26045
26046         wx_cv_explicit=no
26047
26048 fi
26049
26050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26051
26052     ac_ext=c
26053 ac_cpp='$CPP $CPPFLAGS'
26054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26057
26058
26059 fi
26060 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
26061 echo "${ECHO_T}$wx_cv_explicit" >&6; }
26062
26063   if test "$wx_cv_explicit" = "yes"; then
26064     cat >>confdefs.h <<\_ACEOF
26065 #define HAVE_EXPLICIT 1
26066 _ACEOF
26067
26068   fi
26069
26070
26071 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
26072 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
26073 if test "${ac_cv_cxx_const_cast+set}" = set; then
26074   echo $ECHO_N "(cached) $ECHO_C" >&6
26075 else
26076
26077  ac_ext=cpp
26078 ac_cpp='$CXXCPP $CPPFLAGS'
26079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26082
26083  cat >conftest.$ac_ext <<_ACEOF
26084 /* confdefs.h.  */
26085 _ACEOF
26086 cat confdefs.h >>conftest.$ac_ext
26087 cat >>conftest.$ac_ext <<_ACEOF
26088 /* end confdefs.h.  */
26089
26090 int
26091 main ()
26092 {
26093 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
26094   ;
26095   return 0;
26096 }
26097 _ACEOF
26098 rm -f conftest.$ac_objext
26099 if { (ac_try="$ac_compile"
26100 case "(($ac_try" in
26101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26102   *) ac_try_echo=$ac_try;;
26103 esac
26104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26105   (eval "$ac_compile") 2>conftest.er1
26106   ac_status=$?
26107   grep -v '^ *+' conftest.er1 >conftest.err
26108   rm -f conftest.er1
26109   cat conftest.err >&5
26110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111   (exit $ac_status); } && {
26112          test -z "$ac_cxx_werror_flag" ||
26113          test ! -s conftest.err
26114        } && test -s conftest.$ac_objext; then
26115   ac_cv_cxx_const_cast=yes
26116 else
26117   echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26119
26120         ac_cv_cxx_const_cast=no
26121 fi
26122
26123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26124  ac_ext=c
26125 ac_cpp='$CPP $CPPFLAGS'
26126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26129
26130
26131 fi
26132 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
26133 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
26134 if test "$ac_cv_cxx_const_cast" = yes; then
26135
26136 cat >>confdefs.h <<\_ACEOF
26137 #define HAVE_CONST_CAST
26138 _ACEOF
26139
26140 fi
26141
26142 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
26143 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
26144 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
26145   echo $ECHO_N "(cached) $ECHO_C" >&6
26146 else
26147
26148  ac_ext=cpp
26149 ac_cpp='$CXXCPP $CPPFLAGS'
26150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26153
26154  cat >conftest.$ac_ext <<_ACEOF
26155 /* confdefs.h.  */
26156 _ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h.  */
26160 #include <typeinfo>
26161 class Base { public : Base () {} virtual void f () = 0;};
26162 class Derived : public Base { public : Derived () {} virtual void f () {} };
26163 class Unrelated { public : Unrelated () {} };
26164 int g (Unrelated&) { return 0; }
26165 int
26166 main ()
26167 {
26168
26169 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
26170   ;
26171   return 0;
26172 }
26173 _ACEOF
26174 rm -f conftest.$ac_objext
26175 if { (ac_try="$ac_compile"
26176 case "(($ac_try" in
26177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26178   *) ac_try_echo=$ac_try;;
26179 esac
26180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26181   (eval "$ac_compile") 2>conftest.er1
26182   ac_status=$?
26183   grep -v '^ *+' conftest.er1 >conftest.err
26184   rm -f conftest.er1
26185   cat conftest.err >&5
26186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187   (exit $ac_status); } && {
26188          test -z "$ac_cxx_werror_flag" ||
26189          test ! -s conftest.err
26190        } && test -s conftest.$ac_objext; then
26191   ac_cv_cxx_reinterpret_cast=yes
26192 else
26193   echo "$as_me: failed program was:" >&5
26194 sed 's/^/| /' conftest.$ac_ext >&5
26195
26196         ac_cv_cxx_reinterpret_cast=no
26197 fi
26198
26199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26200  ac_ext=c
26201 ac_cpp='$CPP $CPPFLAGS'
26202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26205
26206
26207 fi
26208 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
26209 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
26210 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
26211
26212 cat >>confdefs.h <<\_ACEOF
26213 #define HAVE_REINTERPRET_CAST
26214 _ACEOF
26215
26216 fi
26217
26218 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
26219 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
26220 if test "${ac_cv_cxx_static_cast+set}" = set; then
26221   echo $ECHO_N "(cached) $ECHO_C" >&6
26222 else
26223
26224  ac_ext=cpp
26225 ac_cpp='$CXXCPP $CPPFLAGS'
26226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26229
26230  cat >conftest.$ac_ext <<_ACEOF
26231 /* confdefs.h.  */
26232 _ACEOF
26233 cat confdefs.h >>conftest.$ac_ext
26234 cat >>conftest.$ac_ext <<_ACEOF
26235 /* end confdefs.h.  */
26236 #include <typeinfo>
26237 class Base { public : Base () {} virtual void f () = 0; };
26238 class Derived : public Base { public : Derived () {} virtual void f () {} };
26239 int g (Derived&) { return 0; }
26240 int
26241 main ()
26242 {
26243
26244 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
26245   ;
26246   return 0;
26247 }
26248 _ACEOF
26249 rm -f conftest.$ac_objext
26250 if { (ac_try="$ac_compile"
26251 case "(($ac_try" in
26252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26253   *) ac_try_echo=$ac_try;;
26254 esac
26255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26256   (eval "$ac_compile") 2>conftest.er1
26257   ac_status=$?
26258   grep -v '^ *+' conftest.er1 >conftest.err
26259   rm -f conftest.er1
26260   cat conftest.err >&5
26261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262   (exit $ac_status); } && {
26263          test -z "$ac_cxx_werror_flag" ||
26264          test ! -s conftest.err
26265        } && test -s conftest.$ac_objext; then
26266   ac_cv_cxx_static_cast=yes
26267 else
26268   echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26270
26271         ac_cv_cxx_static_cast=no
26272 fi
26273
26274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26275  ac_ext=c
26276 ac_cpp='$CPP $CPPFLAGS'
26277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26280
26281
26282 fi
26283 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
26284 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
26285 if test "$ac_cv_cxx_static_cast" = yes; then
26286
26287 cat >>confdefs.h <<\_ACEOF
26288 #define HAVE_STATIC_CAST
26289 _ACEOF
26290
26291 fi
26292
26293
26294 if test "x$SUNCXX" = xyes; then
26295     CXXFLAGS="-features=tmplife $CXXFLAGS"
26296 fi
26297
26298 if test "x$SUNCC" = xyes; then
26299     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
26300 fi
26301
26302 if test "x$SGICC" = "xyes"; then
26303     CFLAGS="-woff 3970 $CFLAGS"
26304 fi
26305 if test "x$SGICXX" = "xyes"; then
26306     CXXFLAGS="-woff 3970 $CXXFLAGS"
26307 fi
26308
26309 if test "x$HPCC" = "xyes"; then
26310                     CFLAGS="+W 2011,2450 $CFLAGS"
26311 fi
26312 if test "x$HPCXX" = "xyes"; then
26313             CXXFLAGS="+W 2340 $CXXFLAGS"
26314 fi
26315
26316 if test "x$COMPAQCXX" = "xyes"; then
26317                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
26318 fi
26319
26320 ac_ext=cpp
26321 ac_cpp='$CXXCPP $CPPFLAGS'
26322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26325
26326
26327 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
26328     if test "$wxUSE_UNICODE" = "yes"; then
26329         std_string="std::wstring"
26330         char_type="wchar_t"
26331     else
26332         std_string="std::string"
26333         char_type="char"
26334     fi
26335
26336         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
26337 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
26338 if test "${wx_cv_class_stdstring+set}" = set; then
26339   echo $ECHO_N "(cached) $ECHO_C" >&6
26340 else
26341
26342             cat >conftest.$ac_ext <<_ACEOF
26343 /* confdefs.h.  */
26344 _ACEOF
26345 cat confdefs.h >>conftest.$ac_ext
26346 cat >>conftest.$ac_ext <<_ACEOF
26347 /* end confdefs.h.  */
26348 #include <string>
26349 int
26350 main ()
26351 {
26352 $std_string foo;
26353   ;
26354   return 0;
26355 }
26356 _ACEOF
26357 rm -f conftest.$ac_objext
26358 if { (ac_try="$ac_compile"
26359 case "(($ac_try" in
26360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26361   *) ac_try_echo=$ac_try;;
26362 esac
26363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26364   (eval "$ac_compile") 2>conftest.er1
26365   ac_status=$?
26366   grep -v '^ *+' conftest.er1 >conftest.err
26367   rm -f conftest.er1
26368   cat conftest.err >&5
26369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370   (exit $ac_status); } && {
26371          test -z "$ac_cxx_werror_flag" ||
26372          test ! -s conftest.err
26373        } && test -s conftest.$ac_objext; then
26374   wx_cv_class_stdstring=yes
26375 else
26376   echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26378
26379         wx_cv_class_stdstring=no
26380
26381 fi
26382
26383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26384
26385
26386 fi
26387 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
26388 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
26389
26390     if test "$wx_cv_class_stdstring" = yes; then
26391         if test "$wxUSE_UNICODE" = "yes"; then
26392             cat >>confdefs.h <<\_ACEOF
26393 #define HAVE_STD_WSTRING 1
26394 _ACEOF
26395
26396         fi
26397                     else
26398         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
26399 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
26400 if test "${wx_cv_class_stdbasicstring+set}" = set; then
26401   echo $ECHO_N "(cached) $ECHO_C" >&6
26402 else
26403
26404                 cat >conftest.$ac_ext <<_ACEOF
26405 /* confdefs.h.  */
26406 _ACEOF
26407 cat confdefs.h >>conftest.$ac_ext
26408 cat >>conftest.$ac_ext <<_ACEOF
26409 /* end confdefs.h.  */
26410
26411                     #ifdef HAVE_WCHAR_H
26412                     #  ifdef __CYGWIN__
26413                     #    include <stddef.h>
26414                     #  endif
26415                     #  include <wchar.h>
26416                     #endif
26417                     #ifdef HAVE_STDLIB_H
26418                     #  include <stdlib.h>
26419                     #endif
26420                     #include <stdio.h>
26421                     #include <string>
26422
26423 int
26424 main ()
26425 {
26426 std::basic_string<$char_type> foo;
26427                      const $char_type* dummy = foo.c_str();
26428   ;
26429   return 0;
26430 }
26431 _ACEOF
26432 rm -f conftest.$ac_objext
26433 if { (ac_try="$ac_compile"
26434 case "(($ac_try" in
26435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26436   *) ac_try_echo=$ac_try;;
26437 esac
26438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26439   (eval "$ac_compile") 2>conftest.er1
26440   ac_status=$?
26441   grep -v '^ *+' conftest.er1 >conftest.err
26442   rm -f conftest.er1
26443   cat conftest.err >&5
26444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445   (exit $ac_status); } && {
26446          test -z "$ac_cxx_werror_flag" ||
26447          test ! -s conftest.err
26448        } && test -s conftest.$ac_objext; then
26449   wx_cv_class_stdbasicstring=yes
26450 else
26451   echo "$as_me: failed program was:" >&5
26452 sed 's/^/| /' conftest.$ac_ext >&5
26453
26454         wx_cv_class_stdbasicstring=no
26455
26456 fi
26457
26458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26459
26460
26461 fi
26462 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
26463 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
26464
26465         if test "$wx_cv_class_stdbasicstring" != yes; then
26466             if test "$wxUSE_STL" = "yes"; then
26467                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
26468 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
26469    { (exit 1); exit 1; }; }
26470             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
26471                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
26472 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
26473    { (exit 1); exit 1; }; }
26474             else
26475                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
26476 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
26477                 wxUSE_STD_STRING=no
26478             fi
26479         fi
26480     fi
26481 fi
26482
26483 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
26484     { echo "$as_me:$LINENO: checking for std::istream" >&5
26485 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
26486 if test "${ac_cv_type_std__istream+set}" = set; then
26487   echo $ECHO_N "(cached) $ECHO_C" >&6
26488 else
26489   cat >conftest.$ac_ext <<_ACEOF
26490 /* confdefs.h.  */
26491 _ACEOF
26492 cat confdefs.h >>conftest.$ac_ext
26493 cat >>conftest.$ac_ext <<_ACEOF
26494 /* end confdefs.h.  */
26495 #include <iostream>
26496
26497 typedef std::istream ac__type_new_;
26498 int
26499 main ()
26500 {
26501 if ((ac__type_new_ *) 0)
26502   return 0;
26503 if (sizeof (ac__type_new_))
26504   return 0;
26505   ;
26506   return 0;
26507 }
26508 _ACEOF
26509 rm -f conftest.$ac_objext
26510 if { (ac_try="$ac_compile"
26511 case "(($ac_try" in
26512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26513   *) ac_try_echo=$ac_try;;
26514 esac
26515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26516   (eval "$ac_compile") 2>conftest.er1
26517   ac_status=$?
26518   grep -v '^ *+' conftest.er1 >conftest.err
26519   rm -f conftest.er1
26520   cat conftest.err >&5
26521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522   (exit $ac_status); } && {
26523          test -z "$ac_cxx_werror_flag" ||
26524          test ! -s conftest.err
26525        } && test -s conftest.$ac_objext; then
26526   ac_cv_type_std__istream=yes
26527 else
26528   echo "$as_me: failed program was:" >&5
26529 sed 's/^/| /' conftest.$ac_ext >&5
26530
26531         ac_cv_type_std__istream=no
26532 fi
26533
26534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26535 fi
26536 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
26537 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
26538 if test $ac_cv_type_std__istream = yes; then
26539
26540 cat >>confdefs.h <<_ACEOF
26541 #define HAVE_STD__ISTREAM 1
26542 _ACEOF
26543
26544
26545 else
26546   wxUSE_STD_IOSTREAM=no
26547 fi
26548 { echo "$as_me:$LINENO: checking for std::ostream" >&5
26549 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
26550 if test "${ac_cv_type_std__ostream+set}" = set; then
26551   echo $ECHO_N "(cached) $ECHO_C" >&6
26552 else
26553   cat >conftest.$ac_ext <<_ACEOF
26554 /* confdefs.h.  */
26555 _ACEOF
26556 cat confdefs.h >>conftest.$ac_ext
26557 cat >>conftest.$ac_ext <<_ACEOF
26558 /* end confdefs.h.  */
26559 #include <iostream>
26560
26561 typedef std::ostream ac__type_new_;
26562 int
26563 main ()
26564 {
26565 if ((ac__type_new_ *) 0)
26566   return 0;
26567 if (sizeof (ac__type_new_))
26568   return 0;
26569   ;
26570   return 0;
26571 }
26572 _ACEOF
26573 rm -f conftest.$ac_objext
26574 if { (ac_try="$ac_compile"
26575 case "(($ac_try" in
26576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26577   *) ac_try_echo=$ac_try;;
26578 esac
26579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26580   (eval "$ac_compile") 2>conftest.er1
26581   ac_status=$?
26582   grep -v '^ *+' conftest.er1 >conftest.err
26583   rm -f conftest.er1
26584   cat conftest.err >&5
26585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586   (exit $ac_status); } && {
26587          test -z "$ac_cxx_werror_flag" ||
26588          test ! -s conftest.err
26589        } && test -s conftest.$ac_objext; then
26590   ac_cv_type_std__ostream=yes
26591 else
26592   echo "$as_me: failed program was:" >&5
26593 sed 's/^/| /' conftest.$ac_ext >&5
26594
26595         ac_cv_type_std__ostream=no
26596 fi
26597
26598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26599 fi
26600 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
26601 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
26602 if test $ac_cv_type_std__ostream = yes; then
26603
26604 cat >>confdefs.h <<_ACEOF
26605 #define HAVE_STD__OSTREAM 1
26606 _ACEOF
26607
26608
26609 else
26610   wxUSE_STD_IOSTREAM=no
26611 fi
26612
26613
26614     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
26615         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
26616             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
26617 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
26618    { (exit 1); exit 1; }; }
26619         else
26620             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
26621 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
26622         fi
26623     fi
26624 fi
26625
26626 if test "$wxUSE_STL" = "yes"; then
26627         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
26628 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
26629 if test "${wx_cv_lib_stl+set}" = set; then
26630   echo $ECHO_N "(cached) $ECHO_C" >&6
26631 else
26632   cat >conftest.$ac_ext <<_ACEOF
26633 /* confdefs.h.  */
26634 _ACEOF
26635 cat confdefs.h >>conftest.$ac_ext
26636 cat >>conftest.$ac_ext <<_ACEOF
26637 /* end confdefs.h.  */
26638 #include <string>
26639             #include <functional>
26640             #include <algorithm>
26641             #include <vector>
26642             #include <list>
26643 int
26644 main ()
26645 {
26646 std::vector<int> moo;
26647              std::list<int> foo;
26648              std::vector<int>::iterator it =
26649                  std::find_if(moo.begin(), moo.end(),
26650                               std::bind2nd(std::less<int>(), 3));
26651   ;
26652   return 0;
26653 }
26654 _ACEOF
26655 rm -f conftest.$ac_objext
26656 if { (ac_try="$ac_compile"
26657 case "(($ac_try" in
26658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26659   *) ac_try_echo=$ac_try;;
26660 esac
26661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26662   (eval "$ac_compile") 2>conftest.er1
26663   ac_status=$?
26664   grep -v '^ *+' conftest.er1 >conftest.err
26665   rm -f conftest.er1
26666   cat conftest.err >&5
26667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668   (exit $ac_status); } && {
26669          test -z "$ac_cxx_werror_flag" ||
26670          test ! -s conftest.err
26671        } && test -s conftest.$ac_objext; then
26672   wx_cv_lib_stl=yes
26673 else
26674   echo "$as_me: failed program was:" >&5
26675 sed 's/^/| /' conftest.$ac_ext >&5
26676
26677         wx_cv_lib_stl=no
26678
26679 fi
26680
26681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26682
26683 fi
26684 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
26685 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
26686
26687     if test "$wx_cv_lib_stl" != yes; then
26688          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
26689 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
26690    { (exit 1); exit 1; }; }
26691     fi
26692
26693         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
26694 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
26695 if test "${wx_cv_func_stdstring_compare+set}" = set; then
26696   echo $ECHO_N "(cached) $ECHO_C" >&6
26697 else
26698   cat >conftest.$ac_ext <<_ACEOF
26699 /* confdefs.h.  */
26700 _ACEOF
26701 cat confdefs.h >>conftest.$ac_ext
26702 cat >>conftest.$ac_ext <<_ACEOF
26703 /* end confdefs.h.  */
26704 #include <string>
26705 int
26706 main ()
26707 {
26708 std::string foo, bar;
26709             foo.compare(bar);
26710             foo.compare(1, 1, bar);
26711             foo.compare(1, 1, bar, 1, 1);
26712             foo.compare("");
26713             foo.compare(1, 1, "");
26714             foo.compare(1, 1, "", 2);
26715   ;
26716   return 0;
26717 }
26718 _ACEOF
26719 rm -f conftest.$ac_objext
26720 if { (ac_try="$ac_compile"
26721 case "(($ac_try" in
26722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723   *) ac_try_echo=$ac_try;;
26724 esac
26725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26726   (eval "$ac_compile") 2>conftest.er1
26727   ac_status=$?
26728   grep -v '^ *+' conftest.er1 >conftest.err
26729   rm -f conftest.er1
26730   cat conftest.err >&5
26731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732   (exit $ac_status); } && {
26733          test -z "$ac_cxx_werror_flag" ||
26734          test ! -s conftest.err
26735        } && test -s conftest.$ac_objext; then
26736   wx_cv_func_stdstring_compare=yes
26737 else
26738   echo "$as_me: failed program was:" >&5
26739 sed 's/^/| /' conftest.$ac_ext >&5
26740
26741         wx_cv_func_stdstring_compare=no
26742
26743 fi
26744
26745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26746
26747 fi
26748 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
26749 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
26750
26751     if test "$wx_cv_func_stdstring_compare" = yes; then
26752         cat >>confdefs.h <<\_ACEOF
26753 #define HAVE_STD_STRING_COMPARE 1
26754 _ACEOF
26755
26756     fi
26757
26758         { echo "$as_me:$LINENO: checking for hash_map" >&5
26759 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
26760 if test "${ac_cv_header_hash_map+set}" = set; then
26761   echo $ECHO_N "(cached) $ECHO_C" >&6
26762 else
26763   cat >conftest.$ac_ext <<_ACEOF
26764 /* confdefs.h.  */
26765 _ACEOF
26766 cat confdefs.h >>conftest.$ac_ext
26767 cat >>conftest.$ac_ext <<_ACEOF
26768 /* end confdefs.h.  */
26769
26770
26771
26772 #include <hash_map>
26773 _ACEOF
26774 rm -f conftest.$ac_objext
26775 if { (ac_try="$ac_compile"
26776 case "(($ac_try" in
26777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26778   *) ac_try_echo=$ac_try;;
26779 esac
26780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26781   (eval "$ac_compile") 2>conftest.er1
26782   ac_status=$?
26783   grep -v '^ *+' conftest.er1 >conftest.err
26784   rm -f conftest.er1
26785   cat conftest.err >&5
26786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787   (exit $ac_status); } && {
26788          test -z "$ac_cxx_werror_flag" ||
26789          test ! -s conftest.err
26790        } && test -s conftest.$ac_objext; then
26791   ac_cv_header_hash_map=yes
26792 else
26793   echo "$as_me: failed program was:" >&5
26794 sed 's/^/| /' conftest.$ac_ext >&5
26795
26796         ac_cv_header_hash_map=no
26797 fi
26798
26799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26800 fi
26801 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
26802 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
26803 if test $ac_cv_header_hash_map = yes; then
26804   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
26805 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
26806 if test "${wx_cv_class_stdhashmapset+set}" = set; then
26807   echo $ECHO_N "(cached) $ECHO_C" >&6
26808 else
26809   cat >conftest.$ac_ext <<_ACEOF
26810 /* confdefs.h.  */
26811 _ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h.  */
26815 #include <hash_map>
26816                 #include <hash_set>
26817 int
26818 main ()
26819 {
26820 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
26821                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
26822   ;
26823   return 0;
26824 }
26825 _ACEOF
26826 rm -f conftest.$ac_objext
26827 if { (ac_try="$ac_compile"
26828 case "(($ac_try" in
26829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26830   *) ac_try_echo=$ac_try;;
26831 esac
26832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26833   (eval "$ac_compile") 2>conftest.er1
26834   ac_status=$?
26835   grep -v '^ *+' conftest.er1 >conftest.err
26836   rm -f conftest.er1
26837   cat conftest.err >&5
26838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839   (exit $ac_status); } && {
26840          test -z "$ac_cxx_werror_flag" ||
26841          test ! -s conftest.err
26842        } && test -s conftest.$ac_objext; then
26843   wx_cv_class_stdhashmapset=yes
26844 else
26845   echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26847
26848         wx_cv_class_stdhashmapset=no
26849 fi
26850
26851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26852
26853
26854 fi
26855 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
26856 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
26857 fi
26858
26859
26860
26861     if test "$wx_cv_class_stdhashmapset" = yes; then
26862         cat >>confdefs.h <<\_ACEOF
26863 #define HAVE_HASH_MAP 1
26864 _ACEOF
26865
26866         cat >>confdefs.h <<\_ACEOF
26867 #define HAVE_STD_HASH_MAP 1
26868 _ACEOF
26869
26870     fi
26871
26872     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
26873 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
26874 if test "${ac_cv_header_ext_hash_map+set}" = set; then
26875   echo $ECHO_N "(cached) $ECHO_C" >&6
26876 else
26877   cat >conftest.$ac_ext <<_ACEOF
26878 /* confdefs.h.  */
26879 _ACEOF
26880 cat confdefs.h >>conftest.$ac_ext
26881 cat >>conftest.$ac_ext <<_ACEOF
26882 /* end confdefs.h.  */
26883
26884
26885
26886 #include <ext/hash_map>
26887 _ACEOF
26888 rm -f conftest.$ac_objext
26889 if { (ac_try="$ac_compile"
26890 case "(($ac_try" in
26891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26892   *) ac_try_echo=$ac_try;;
26893 esac
26894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26895   (eval "$ac_compile") 2>conftest.er1
26896   ac_status=$?
26897   grep -v '^ *+' conftest.er1 >conftest.err
26898   rm -f conftest.er1
26899   cat conftest.err >&5
26900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901   (exit $ac_status); } && {
26902          test -z "$ac_cxx_werror_flag" ||
26903          test ! -s conftest.err
26904        } && test -s conftest.$ac_objext; then
26905   ac_cv_header_ext_hash_map=yes
26906 else
26907   echo "$as_me: failed program was:" >&5
26908 sed 's/^/| /' conftest.$ac_ext >&5
26909
26910         ac_cv_header_ext_hash_map=no
26911 fi
26912
26913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26914 fi
26915 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
26916 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
26917 if test $ac_cv_header_ext_hash_map = yes; then
26918   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
26919 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
26920 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
26921   echo $ECHO_N "(cached) $ECHO_C" >&6
26922 else
26923   cat >conftest.$ac_ext <<_ACEOF
26924 /* confdefs.h.  */
26925 _ACEOF
26926 cat confdefs.h >>conftest.$ac_ext
26927 cat >>conftest.$ac_ext <<_ACEOF
26928 /* end confdefs.h.  */
26929 #include <ext/hash_map>
26930                 #include <ext/hash_set>
26931 int
26932 main ()
26933 {
26934 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
26935                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
26936   ;
26937   return 0;
26938 }
26939 _ACEOF
26940 rm -f conftest.$ac_objext
26941 if { (ac_try="$ac_compile"
26942 case "(($ac_try" in
26943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944   *) ac_try_echo=$ac_try;;
26945 esac
26946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947   (eval "$ac_compile") 2>conftest.er1
26948   ac_status=$?
26949   grep -v '^ *+' conftest.er1 >conftest.err
26950   rm -f conftest.er1
26951   cat conftest.err >&5
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); } && {
26954          test -z "$ac_cxx_werror_flag" ||
26955          test ! -s conftest.err
26956        } && test -s conftest.$ac_objext; then
26957   wx_cv_class_gnuhashmapset=yes
26958 else
26959   echo "$as_me: failed program was:" >&5
26960 sed 's/^/| /' conftest.$ac_ext >&5
26961
26962         wx_cv_class_gnuhashmapset=no
26963 fi
26964
26965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26966
26967
26968 fi
26969 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
26970 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
26971 fi
26972
26973
26974
26975     if test "$wx_cv_class_gnuhashmapset" = yes; then
26976          cat >>confdefs.h <<\_ACEOF
26977 #define HAVE_EXT_HASH_MAP 1
26978 _ACEOF
26979
26980          cat >>confdefs.h <<\_ACEOF
26981 #define HAVE_GNU_CXX_HASH_MAP 1
26982 _ACEOF
26983
26984     fi
26985 fi
26986
26987 ac_ext=c
26988 ac_cpp='$CPP $CPPFLAGS'
26989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26992
26993
26994
26995 SEARCH_INCLUDE="\
26996     /usr/local/include        \
26997                               \
26998     /usr/Motif-2.1/include    \
26999     /usr/Motif-1.2/include    \
27000     /usr/include/Motif1.2     \
27001                               \
27002     /usr/dt/include           \
27003     /usr/openwin/include      \
27004                               \
27005     /usr/include/Xm           \
27006                               \
27007     /usr/X11R6/include        \
27008     /usr/X11R6.4/include      \
27009     /usr/X11R5/include        \
27010     /usr/X11R4/include        \
27011                               \
27012     /usr/include/X11R6        \
27013     /usr/include/X11R5        \
27014     /usr/include/X11R4        \
27015                               \
27016     /usr/local/X11R6/include  \
27017     /usr/local/X11R5/include  \
27018     /usr/local/X11R4/include  \
27019                               \
27020     /usr/local/include/X11R6  \
27021     /usr/local/include/X11R5  \
27022     /usr/local/include/X11R4  \
27023                               \
27024     /usr/X11/include          \
27025     /usr/include/X11          \
27026     /usr/local/X11/include    \
27027     /usr/local/include/X11    \
27028                               \
27029     /usr/XFree86/include/X11  \
27030     /usr/pkg/include          \
27031                               \
27032     /usr/openwin/share/include"
27033
27034 { echo "$as_me:$LINENO: checking for libraries directory" >&5
27035 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
27036
27037 case "${host}" in
27038     *-*-irix6* )
27039         if test "${wx_cv_std_libpath+set}" = set; then
27040   echo $ECHO_N "(cached) $ECHO_C" >&6
27041 else
27042
27043                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27044                     for e in a so sl dylib dll.a; do
27045                         libc="$d/libc.$e"
27046                         if test -f $libc; then
27047                             save_LIBS="$LIBS"
27048                             LIBS="$libc"
27049                             cat >conftest.$ac_ext <<_ACEOF
27050 int main() { return 0; }
27051 _ACEOF
27052 rm -f conftest.$ac_objext conftest$ac_exeext
27053 if { (ac_try="$ac_link"
27054 case "(($ac_try" in
27055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056   *) ac_try_echo=$ac_try;;
27057 esac
27058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059   (eval "$ac_link") 2>conftest.er1
27060   ac_status=$?
27061   grep -v '^ *+' conftest.er1 >conftest.err
27062   rm -f conftest.er1
27063   cat conftest.err >&5
27064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065   (exit $ac_status); } && {
27066          test -z "$ac_c_werror_flag" ||
27067          test ! -s conftest.err
27068        } && test -s conftest$ac_exeext &&
27069        $as_test_x conftest$ac_exeext; then
27070   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27071 else
27072   echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27074
27075
27076 fi
27077
27078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27079       conftest$ac_exeext conftest.$ac_ext
27080                             LIBS="$save_LIBS"
27081                             if test "x$wx_cv_std_libpath" != "x"; then
27082                                 break 2
27083                             fi
27084                         fi
27085                     done
27086                 done
27087                 if test "x$wx_cv_std_libpath" = "x"; then
27088                     wx_cv_std_libpath="lib"
27089                 fi
27090
27091
27092 fi
27093
27094         ;;
27095
27096     *-*-solaris2* )
27097                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27098             wx_cv_std_libpath="lib/64"
27099         else
27100             wx_cv_std_libpath="lib"
27101         fi
27102         ;;
27103
27104     *-*-linux* )
27105                 if test "$ac_cv_sizeof_void_p" = 8 -a \
27106                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27107             wx_cv_std_libpath="lib64"
27108         else
27109             wx_cv_std_libpath="lib"
27110         fi
27111         ;;
27112
27113     *)
27114         wx_cv_std_libpath="lib";
27115         ;;
27116 esac
27117
27118 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27119 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
27120
27121 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
27122
27123 if test "$build" != "$host" -a "$GCC" = yes; then
27124                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27125         cross_root=`dirname $cross_root`
27126         cross_root=`dirname $cross_root`
27127
27128                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27129         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27130         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27131
27132                 if test -z "$PKG_CONFIG_PATH"; then
27133             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27134             export PKG_CONFIG_PATH
27135         fi
27136
27137                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27138
27139 ac_find_includes=
27140 for ac_dir in $SEARCH_INCLUDE /usr/include;
27141   do
27142     if test -f "$ac_dir/X11/Intrinsic.h"; then
27143       ac_find_includes=$ac_dir
27144       break
27145     fi
27146   done
27147
27148             x_includes=$ac_find_includes
27149         fi
27150         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27151
27152   ac_find_libraries=
27153   for ac_dir in $SEARCH_LIB;
27154   do
27155     for ac_extension in a so sl dylib dll.a; do
27156       if test -f "$ac_dir/libXt.$ac_extension"; then
27157         ac_find_libraries=$ac_dir
27158         break 2
27159       fi
27160     done
27161   done
27162
27163             x_libraries=$ac_find_libraries
27164         fi
27165     fi
27166 fi
27167
27168
27169 cat >confcache <<\_ACEOF
27170 # This file is a shell script that caches the results of configure
27171 # tests run on this system so they can be shared between configure
27172 # scripts and configure runs, see configure's option --config-cache.
27173 # It is not useful on other systems.  If it contains results you don't
27174 # want to keep, you may remove or edit it.
27175 #
27176 # config.status only pays attention to the cache file if you give it
27177 # the --recheck option to rerun configure.
27178 #
27179 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27180 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27181 # following values.
27182
27183 _ACEOF
27184
27185 # The following way of writing the cache mishandles newlines in values,
27186 # but we know of no workaround that is simple, portable, and efficient.
27187 # So, we kill variables containing newlines.
27188 # Ultrix sh set writes to stderr and can't be redirected directly,
27189 # and sets the high bit in the cache file unless we assign to the vars.
27190 (
27191   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27192     eval ac_val=\$$ac_var
27193     case $ac_val in #(
27194     *${as_nl}*)
27195       case $ac_var in #(
27196       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27197 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27198       esac
27199       case $ac_var in #(
27200       _ | IFS | as_nl) ;; #(
27201       *) $as_unset $ac_var ;;
27202       esac ;;
27203     esac
27204   done
27205
27206   (set) 2>&1 |
27207     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27208     *${as_nl}ac_space=\ *)
27209       # `set' does not quote correctly, so add quotes (double-quote
27210       # substitution turns \\\\ into \\, and sed turns \\ into \).
27211       sed -n \
27212         "s/'/'\\\\''/g;
27213           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27214       ;; #(
27215     *)
27216       # `set' quotes correctly as required by POSIX, so do not add quotes.
27217       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27218       ;;
27219     esac |
27220     sort
27221 ) |
27222   sed '
27223      /^ac_cv_env_/b end
27224      t clear
27225      :clear
27226      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27227      t end
27228      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27229      :end' >>confcache
27230 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27231   if test -w "$cache_file"; then
27232     test "x$cache_file" != "x/dev/null" &&
27233       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27234 echo "$as_me: updating cache $cache_file" >&6;}
27235     cat confcache >$cache_file
27236   else
27237     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27238 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27239   fi
27240 fi
27241 rm -f confcache
27242
27243 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27244     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27245 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27246 if test "${wx_cv_lib_glibc21+set}" = set; then
27247   echo $ECHO_N "(cached) $ECHO_C" >&6
27248 else
27249
27250         cat >conftest.$ac_ext <<_ACEOF
27251 /* confdefs.h.  */
27252 _ACEOF
27253 cat confdefs.h >>conftest.$ac_ext
27254 cat >>conftest.$ac_ext <<_ACEOF
27255 /* end confdefs.h.  */
27256 #include <features.h>
27257 int
27258 main ()
27259 {
27260
27261                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27262                 not glibc 2.1
27263                 #endif
27264
27265   ;
27266   return 0;
27267 }
27268 _ACEOF
27269 rm -f conftest.$ac_objext
27270 if { (ac_try="$ac_compile"
27271 case "(($ac_try" in
27272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27273   *) ac_try_echo=$ac_try;;
27274 esac
27275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27276   (eval "$ac_compile") 2>conftest.er1
27277   ac_status=$?
27278   grep -v '^ *+' conftest.er1 >conftest.err
27279   rm -f conftest.er1
27280   cat conftest.err >&5
27281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282   (exit $ac_status); } && {
27283          test -z "$ac_c_werror_flag" ||
27284          test ! -s conftest.err
27285        } && test -s conftest.$ac_objext; then
27286
27287                 wx_cv_lib_glibc21=yes
27288
27289 else
27290   echo "$as_me: failed program was:" >&5
27291 sed 's/^/| /' conftest.$ac_ext >&5
27292
27293
27294                 wx_cv_lib_glibc21=no
27295
27296
27297 fi
27298
27299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27300
27301 fi
27302 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27303 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27304     if test "$wx_cv_lib_glibc21" = "yes"; then
27305         cat >>confdefs.h <<\_ACEOF
27306 #define wxHAVE_GLIBC2 1
27307 _ACEOF
27308
27309     fi
27310 fi
27311
27312 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27313     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27314         cat >>confdefs.h <<\_ACEOF
27315 #define _GNU_SOURCE 1
27316 _ACEOF
27317
27318     fi
27319 fi
27320
27321 have_cos=0
27322 have_floor=0
27323
27324 for ac_func in cos
27325 do
27326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27327 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27329 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27330   echo $ECHO_N "(cached) $ECHO_C" >&6
27331 else
27332   cat >conftest.$ac_ext <<_ACEOF
27333 /* confdefs.h.  */
27334 _ACEOF
27335 cat confdefs.h >>conftest.$ac_ext
27336 cat >>conftest.$ac_ext <<_ACEOF
27337 /* end confdefs.h.  */
27338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27339    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27340 #define $ac_func innocuous_$ac_func
27341
27342 /* System header to define __stub macros and hopefully few prototypes,
27343     which can conflict with char $ac_func (); below.
27344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27345     <limits.h> exists even on freestanding compilers.  */
27346
27347 #ifdef __STDC__
27348 # include <limits.h>
27349 #else
27350 # include <assert.h>
27351 #endif
27352
27353 #undef $ac_func
27354
27355 /* Override any GCC internal prototype to avoid an error.
27356    Use char because int might match the return type of a GCC
27357    builtin and then its argument prototype would still apply.  */
27358 #ifdef __cplusplus
27359 extern "C"
27360 #endif
27361 char $ac_func ();
27362 /* The GNU C library defines this for functions which it implements
27363     to always fail with ENOSYS.  Some functions are actually named
27364     something starting with __ and the normal name is an alias.  */
27365 #if defined __stub_$ac_func || defined __stub___$ac_func
27366 choke me
27367 #endif
27368
27369 int
27370 main ()
27371 {
27372 return $ac_func ();
27373   ;
27374   return 0;
27375 }
27376 _ACEOF
27377 rm -f conftest.$ac_objext conftest$ac_exeext
27378 if { (ac_try="$ac_link"
27379 case "(($ac_try" in
27380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27381   *) ac_try_echo=$ac_try;;
27382 esac
27383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27384   (eval "$ac_link") 2>conftest.er1
27385   ac_status=$?
27386   grep -v '^ *+' conftest.er1 >conftest.err
27387   rm -f conftest.er1
27388   cat conftest.err >&5
27389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390   (exit $ac_status); } && {
27391          test -z "$ac_c_werror_flag" ||
27392          test ! -s conftest.err
27393        } && test -s conftest$ac_exeext &&
27394        $as_test_x conftest$ac_exeext; then
27395   eval "$as_ac_var=yes"
27396 else
27397   echo "$as_me: failed program was:" >&5
27398 sed 's/^/| /' conftest.$ac_ext >&5
27399
27400         eval "$as_ac_var=no"
27401 fi
27402
27403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27404       conftest$ac_exeext conftest.$ac_ext
27405 fi
27406 ac_res=`eval echo '${'$as_ac_var'}'`
27407                { echo "$as_me:$LINENO: result: $ac_res" >&5
27408 echo "${ECHO_T}$ac_res" >&6; }
27409 if test `eval echo '${'$as_ac_var'}'` = yes; then
27410   cat >>confdefs.h <<_ACEOF
27411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27412 _ACEOF
27413  have_cos=1
27414 fi
27415 done
27416
27417
27418 for ac_func in floor
27419 do
27420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27424   echo $ECHO_N "(cached) $ECHO_C" >&6
27425 else
27426   cat >conftest.$ac_ext <<_ACEOF
27427 /* confdefs.h.  */
27428 _ACEOF
27429 cat confdefs.h >>conftest.$ac_ext
27430 cat >>conftest.$ac_ext <<_ACEOF
27431 /* end confdefs.h.  */
27432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27434 #define $ac_func innocuous_$ac_func
27435
27436 /* System header to define __stub macros and hopefully few prototypes,
27437     which can conflict with char $ac_func (); below.
27438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27439     <limits.h> exists even on freestanding compilers.  */
27440
27441 #ifdef __STDC__
27442 # include <limits.h>
27443 #else
27444 # include <assert.h>
27445 #endif
27446
27447 #undef $ac_func
27448
27449 /* Override any GCC internal prototype to avoid an error.
27450    Use char because int might match the return type of a GCC
27451    builtin and then its argument prototype would still apply.  */
27452 #ifdef __cplusplus
27453 extern "C"
27454 #endif
27455 char $ac_func ();
27456 /* The GNU C library defines this for functions which it implements
27457     to always fail with ENOSYS.  Some functions are actually named
27458     something starting with __ and the normal name is an alias.  */
27459 #if defined __stub_$ac_func || defined __stub___$ac_func
27460 choke me
27461 #endif
27462
27463 int
27464 main ()
27465 {
27466 return $ac_func ();
27467   ;
27468   return 0;
27469 }
27470 _ACEOF
27471 rm -f conftest.$ac_objext conftest$ac_exeext
27472 if { (ac_try="$ac_link"
27473 case "(($ac_try" in
27474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475   *) ac_try_echo=$ac_try;;
27476 esac
27477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478   (eval "$ac_link") 2>conftest.er1
27479   ac_status=$?
27480   grep -v '^ *+' conftest.er1 >conftest.err
27481   rm -f conftest.er1
27482   cat conftest.err >&5
27483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484   (exit $ac_status); } && {
27485          test -z "$ac_c_werror_flag" ||
27486          test ! -s conftest.err
27487        } && test -s conftest$ac_exeext &&
27488        $as_test_x conftest$ac_exeext; then
27489   eval "$as_ac_var=yes"
27490 else
27491   echo "$as_me: failed program was:" >&5
27492 sed 's/^/| /' conftest.$ac_ext >&5
27493
27494         eval "$as_ac_var=no"
27495 fi
27496
27497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27498       conftest$ac_exeext conftest.$ac_ext
27499 fi
27500 ac_res=`eval echo '${'$as_ac_var'}'`
27501                { echo "$as_me:$LINENO: result: $ac_res" >&5
27502 echo "${ECHO_T}$ac_res" >&6; }
27503 if test `eval echo '${'$as_ac_var'}'` = yes; then
27504   cat >>confdefs.h <<_ACEOF
27505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27506 _ACEOF
27507  have_floor=1
27508 fi
27509 done
27510
27511 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
27512 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
27513 if test "$have_cos" = 1 -a "$have_floor" = 1; then
27514     { echo "$as_me:$LINENO: result: yes" >&5
27515 echo "${ECHO_T}yes" >&6; }
27516 else
27517     { echo "$as_me:$LINENO: result: no" >&5
27518 echo "${ECHO_T}no" >&6; }
27519     LIBS="$LIBS -lm"
27520     # use different functions to avoid configure caching
27521     have_sin=0
27522     have_ceil=0
27523
27524 for ac_func in sin
27525 do
27526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27530   echo $ECHO_N "(cached) $ECHO_C" >&6
27531 else
27532   cat >conftest.$ac_ext <<_ACEOF
27533 /* confdefs.h.  */
27534 _ACEOF
27535 cat confdefs.h >>conftest.$ac_ext
27536 cat >>conftest.$ac_ext <<_ACEOF
27537 /* end confdefs.h.  */
27538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27540 #define $ac_func innocuous_$ac_func
27541
27542 /* System header to define __stub macros and hopefully few prototypes,
27543     which can conflict with char $ac_func (); below.
27544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27545     <limits.h> exists even on freestanding compilers.  */
27546
27547 #ifdef __STDC__
27548 # include <limits.h>
27549 #else
27550 # include <assert.h>
27551 #endif
27552
27553 #undef $ac_func
27554
27555 /* Override any GCC internal prototype to avoid an error.
27556    Use char because int might match the return type of a GCC
27557    builtin and then its argument prototype would still apply.  */
27558 #ifdef __cplusplus
27559 extern "C"
27560 #endif
27561 char $ac_func ();
27562 /* The GNU C library defines this for functions which it implements
27563     to always fail with ENOSYS.  Some functions are actually named
27564     something starting with __ and the normal name is an alias.  */
27565 #if defined __stub_$ac_func || defined __stub___$ac_func
27566 choke me
27567 #endif
27568
27569 int
27570 main ()
27571 {
27572 return $ac_func ();
27573   ;
27574   return 0;
27575 }
27576 _ACEOF
27577 rm -f conftest.$ac_objext conftest$ac_exeext
27578 if { (ac_try="$ac_link"
27579 case "(($ac_try" in
27580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27581   *) ac_try_echo=$ac_try;;
27582 esac
27583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27584   (eval "$ac_link") 2>conftest.er1
27585   ac_status=$?
27586   grep -v '^ *+' conftest.er1 >conftest.err
27587   rm -f conftest.er1
27588   cat conftest.err >&5
27589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590   (exit $ac_status); } && {
27591          test -z "$ac_c_werror_flag" ||
27592          test ! -s conftest.err
27593        } && test -s conftest$ac_exeext &&
27594        $as_test_x conftest$ac_exeext; then
27595   eval "$as_ac_var=yes"
27596 else
27597   echo "$as_me: failed program was:" >&5
27598 sed 's/^/| /' conftest.$ac_ext >&5
27599
27600         eval "$as_ac_var=no"
27601 fi
27602
27603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27604       conftest$ac_exeext conftest.$ac_ext
27605 fi
27606 ac_res=`eval echo '${'$as_ac_var'}'`
27607                { echo "$as_me:$LINENO: result: $ac_res" >&5
27608 echo "${ECHO_T}$ac_res" >&6; }
27609 if test `eval echo '${'$as_ac_var'}'` = yes; then
27610   cat >>confdefs.h <<_ACEOF
27611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27612 _ACEOF
27613  have_sin=1
27614 fi
27615 done
27616
27617
27618 for ac_func in ceil
27619 do
27620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27624   echo $ECHO_N "(cached) $ECHO_C" >&6
27625 else
27626   cat >conftest.$ac_ext <<_ACEOF
27627 /* confdefs.h.  */
27628 _ACEOF
27629 cat confdefs.h >>conftest.$ac_ext
27630 cat >>conftest.$ac_ext <<_ACEOF
27631 /* end confdefs.h.  */
27632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27634 #define $ac_func innocuous_$ac_func
27635
27636 /* System header to define __stub macros and hopefully few prototypes,
27637     which can conflict with char $ac_func (); below.
27638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27639     <limits.h> exists even on freestanding compilers.  */
27640
27641 #ifdef __STDC__
27642 # include <limits.h>
27643 #else
27644 # include <assert.h>
27645 #endif
27646
27647 #undef $ac_func
27648
27649 /* Override any GCC internal prototype to avoid an error.
27650    Use char because int might match the return type of a GCC
27651    builtin and then its argument prototype would still apply.  */
27652 #ifdef __cplusplus
27653 extern "C"
27654 #endif
27655 char $ac_func ();
27656 /* The GNU C library defines this for functions which it implements
27657     to always fail with ENOSYS.  Some functions are actually named
27658     something starting with __ and the normal name is an alias.  */
27659 #if defined __stub_$ac_func || defined __stub___$ac_func
27660 choke me
27661 #endif
27662
27663 int
27664 main ()
27665 {
27666 return $ac_func ();
27667   ;
27668   return 0;
27669 }
27670 _ACEOF
27671 rm -f conftest.$ac_objext conftest$ac_exeext
27672 if { (ac_try="$ac_link"
27673 case "(($ac_try" in
27674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675   *) ac_try_echo=$ac_try;;
27676 esac
27677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678   (eval "$ac_link") 2>conftest.er1
27679   ac_status=$?
27680   grep -v '^ *+' conftest.er1 >conftest.err
27681   rm -f conftest.er1
27682   cat conftest.err >&5
27683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684   (exit $ac_status); } && {
27685          test -z "$ac_c_werror_flag" ||
27686          test ! -s conftest.err
27687        } && test -s conftest$ac_exeext &&
27688        $as_test_x conftest$ac_exeext; then
27689   eval "$as_ac_var=yes"
27690 else
27691   echo "$as_me: failed program was:" >&5
27692 sed 's/^/| /' conftest.$ac_ext >&5
27693
27694         eval "$as_ac_var=no"
27695 fi
27696
27697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27698       conftest$ac_exeext conftest.$ac_ext
27699 fi
27700 ac_res=`eval echo '${'$as_ac_var'}'`
27701                { echo "$as_me:$LINENO: result: $ac_res" >&5
27702 echo "${ECHO_T}$ac_res" >&6; }
27703 if test `eval echo '${'$as_ac_var'}'` = yes; then
27704   cat >>confdefs.h <<_ACEOF
27705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27706 _ACEOF
27707  have_ceil=1
27708 fi
27709 done
27710
27711     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
27712 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
27713     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
27714         { echo "$as_me:$LINENO: result: yes" >&5
27715 echo "${ECHO_T}yes" >&6; }
27716     else
27717         { echo "$as_me:$LINENO: result: no" >&5
27718 echo "${ECHO_T}no" >&6; }
27719         # not sure we should warn the user, crash, etc.
27720     fi
27721 fi
27722
27723 ac_ext=cpp
27724 ac_cpp='$CXXCPP $CPPFLAGS'
27725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27728
27729 if test "wxUSE_UNICODE" = "yes"; then
27730
27731   for wx_func in wcstoull
27732   do
27733     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27734 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27735 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27736   echo $ECHO_N "(cached) $ECHO_C" >&6
27737 else
27738
27739         cat >conftest.$ac_ext <<_ACEOF
27740
27741             /* confdefs.h.  */
27742 _ACEOF
27743 cat confdefs.h >>conftest.$ac_ext
27744 cat >>conftest.$ac_ext <<_ACEOF
27745 /* end confdefs.h.  */
27746
27747
27748                 $ac_includes_default
27749
27750 int
27751 main ()
27752 {
27753
27754                 #ifndef $wx_func
27755                   &$wx_func;
27756                 #endif
27757
27758
27759   ;
27760   return 0;
27761 }
27762
27763 _ACEOF
27764 rm -f conftest.$ac_objext conftest$ac_exeext
27765 if { (ac_try="$ac_link"
27766 case "(($ac_try" in
27767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27768   *) ac_try_echo=$ac_try;;
27769 esac
27770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27771   (eval "$ac_link") 2>conftest.er1
27772   ac_status=$?
27773   grep -v '^ *+' conftest.er1 >conftest.err
27774   rm -f conftest.er1
27775   cat conftest.err >&5
27776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777   (exit $ac_status); } && {
27778          test -z "$ac_cxx_werror_flag" ||
27779          test ! -s conftest.err
27780        } && test -s conftest$ac_exeext &&
27781        $as_test_x conftest$ac_exeext; then
27782   eval wx_cv_func_$wx_func=yes
27783 else
27784   echo "$as_me: failed program was:" >&5
27785 sed 's/^/| /' conftest.$ac_ext >&5
27786
27787         eval wx_cv_func_$wx_func=no
27788 fi
27789
27790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27791       conftest$ac_exeext conftest.$ac_ext
27792
27793 fi
27794 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27795                { echo "$as_me:$LINENO: result: $ac_res" >&5
27796 echo "${ECHO_T}$ac_res" >&6; }
27797
27798     if eval test \$wx_cv_func_$wx_func = yes
27799     then
27800       cat >>confdefs.h <<_ACEOF
27801 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
27802 _ACEOF
27803
27804
27805     else
27806       :
27807
27808     fi
27809   done
27810
27811 else
27812
27813   for wx_func in strtoull
27814   do
27815     { echo "$as_me:$LINENO: checking for $wx_func" >&5
27816 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
27817 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
27818   echo $ECHO_N "(cached) $ECHO_C" >&6
27819 else
27820
27821         cat >conftest.$ac_ext <<_ACEOF
27822
27823             /* confdefs.h.  */
27824 _ACEOF
27825 cat confdefs.h >>conftest.$ac_ext
27826 cat >>conftest.$ac_ext <<_ACEOF
27827 /* end confdefs.h.  */
27828
27829
27830                 $ac_includes_default
27831
27832 int
27833 main ()
27834 {
27835
27836                 #ifndef $wx_func
27837                   &$wx_func;
27838                 #endif
27839
27840
27841   ;
27842   return 0;
27843 }
27844
27845 _ACEOF
27846 rm -f conftest.$ac_objext conftest$ac_exeext
27847 if { (ac_try="$ac_link"
27848 case "(($ac_try" in
27849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27850   *) ac_try_echo=$ac_try;;
27851 esac
27852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27853   (eval "$ac_link") 2>conftest.er1
27854   ac_status=$?
27855   grep -v '^ *+' conftest.er1 >conftest.err
27856   rm -f conftest.er1
27857   cat conftest.err >&5
27858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859   (exit $ac_status); } && {
27860          test -z "$ac_cxx_werror_flag" ||
27861          test ! -s conftest.err
27862        } && test -s conftest$ac_exeext &&
27863        $as_test_x conftest$ac_exeext; then
27864   eval wx_cv_func_$wx_func=yes
27865 else
27866   echo "$as_me: failed program was:" >&5
27867 sed 's/^/| /' conftest.$ac_ext >&5
27868
27869         eval wx_cv_func_$wx_func=no
27870 fi
27871
27872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27873       conftest$ac_exeext conftest.$ac_ext
27874
27875 fi
27876 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
27877                { echo "$as_me:$LINENO: result: $ac_res" >&5
27878 echo "${ECHO_T}$ac_res" >&6; }
27879
27880     if eval test \$wx_cv_func_$wx_func = yes
27881     then
27882       cat >>confdefs.h <<_ACEOF
27883 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
27884 _ACEOF
27885
27886
27887     else
27888       :
27889
27890     fi
27891   done
27892
27893 fi
27894 ac_ext=c
27895 ac_cpp='$CPP $CPPFLAGS'
27896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27899
27900
27901
27902
27903 if test "$wxUSE_REGEX" != "no"; then
27904     cat >>confdefs.h <<\_ACEOF
27905 #define wxUSE_REGEX 1
27906 _ACEOF
27907
27908
27909     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
27910         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
27911 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
27912         wxUSE_REGEX=builtin
27913     fi
27914
27915     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
27916                         { echo "$as_me:$LINENO: checking for regex.h" >&5
27917 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
27918 if test "${ac_cv_header_regex_h+set}" = set; then
27919   echo $ECHO_N "(cached) $ECHO_C" >&6
27920 else
27921   cat >conftest.$ac_ext <<_ACEOF
27922 /* confdefs.h.  */
27923 _ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h.  */
27927
27928
27929 #include <regex.h>
27930 _ACEOF
27931 rm -f conftest.$ac_objext
27932 if { (ac_try="$ac_compile"
27933 case "(($ac_try" in
27934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27935   *) ac_try_echo=$ac_try;;
27936 esac
27937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27938   (eval "$ac_compile") 2>conftest.er1
27939   ac_status=$?
27940   grep -v '^ *+' conftest.er1 >conftest.err
27941   rm -f conftest.er1
27942   cat conftest.err >&5
27943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944   (exit $ac_status); } && {
27945          test -z "$ac_c_werror_flag" ||
27946          test ! -s conftest.err
27947        } && test -s conftest.$ac_objext; then
27948   ac_cv_header_regex_h=yes
27949 else
27950   echo "$as_me: failed program was:" >&5
27951 sed 's/^/| /' conftest.$ac_ext >&5
27952
27953         ac_cv_header_regex_h=no
27954 fi
27955
27956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27957 fi
27958 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
27959 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
27960 if test $ac_cv_header_regex_h = yes; then
27961
27962
27963 for ac_func in regcomp re_search
27964 do
27965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27966 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27969   echo $ECHO_N "(cached) $ECHO_C" >&6
27970 else
27971   cat >conftest.$ac_ext <<_ACEOF
27972 /* confdefs.h.  */
27973 _ACEOF
27974 cat confdefs.h >>conftest.$ac_ext
27975 cat >>conftest.$ac_ext <<_ACEOF
27976 /* end confdefs.h.  */
27977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27979 #define $ac_func innocuous_$ac_func
27980
27981 /* System header to define __stub macros and hopefully few prototypes,
27982     which can conflict with char $ac_func (); below.
27983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27984     <limits.h> exists even on freestanding compilers.  */
27985
27986 #ifdef __STDC__
27987 # include <limits.h>
27988 #else
27989 # include <assert.h>
27990 #endif
27991
27992 #undef $ac_func
27993
27994 /* Override any GCC internal prototype to avoid an error.
27995    Use char because int might match the return type of a GCC
27996    builtin and then its argument prototype would still apply.  */
27997 #ifdef __cplusplus
27998 extern "C"
27999 #endif
28000 char $ac_func ();
28001 /* The GNU C library defines this for functions which it implements
28002     to always fail with ENOSYS.  Some functions are actually named
28003     something starting with __ and the normal name is an alias.  */
28004 #if defined __stub_$ac_func || defined __stub___$ac_func
28005 choke me
28006 #endif
28007
28008 int
28009 main ()
28010 {
28011 return $ac_func ();
28012   ;
28013   return 0;
28014 }
28015 _ACEOF
28016 rm -f conftest.$ac_objext conftest$ac_exeext
28017 if { (ac_try="$ac_link"
28018 case "(($ac_try" in
28019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28020   *) ac_try_echo=$ac_try;;
28021 esac
28022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28023   (eval "$ac_link") 2>conftest.er1
28024   ac_status=$?
28025   grep -v '^ *+' conftest.er1 >conftest.err
28026   rm -f conftest.er1
28027   cat conftest.err >&5
28028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029   (exit $ac_status); } && {
28030          test -z "$ac_c_werror_flag" ||
28031          test ! -s conftest.err
28032        } && test -s conftest$ac_exeext &&
28033        $as_test_x conftest$ac_exeext; then
28034   eval "$as_ac_var=yes"
28035 else
28036   echo "$as_me: failed program was:" >&5
28037 sed 's/^/| /' conftest.$ac_ext >&5
28038
28039         eval "$as_ac_var=no"
28040 fi
28041
28042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28043       conftest$ac_exeext conftest.$ac_ext
28044 fi
28045 ac_res=`eval echo '${'$as_ac_var'}'`
28046                { echo "$as_me:$LINENO: result: $ac_res" >&5
28047 echo "${ECHO_T}$ac_res" >&6; }
28048 if test `eval echo '${'$as_ac_var'}'` = yes; then
28049   cat >>confdefs.h <<_ACEOF
28050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28051 _ACEOF
28052
28053 fi
28054 done
28055
28056 fi
28057
28058
28059
28060         if test "x$ac_cv_func_regcomp" != "xyes"; then
28061             if test "$wxUSE_REGEX" = "sys" ; then
28062                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28063 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28064    { (exit 1); exit 1; }; }
28065             else
28066                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28067 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28068                 wxUSE_REGEX=builtin
28069             fi
28070         else
28071                         wxUSE_REGEX=sys
28072                         cat >>confdefs.h <<\_ACEOF
28073 #define WX_NO_REGEX_ADVANCED 1
28074 _ACEOF
28075
28076         fi
28077     fi
28078 fi
28079
28080
28081 ZLIB_LINK=
28082 if test "$wxUSE_ZLIB" != "no" ; then
28083     cat >>confdefs.h <<\_ACEOF
28084 #define wxUSE_ZLIB 1
28085 _ACEOF
28086
28087
28088     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28089                                                 if test "$USE_DARWIN" = 1; then
28090             system_zlib_h_ok="yes"
28091         else
28092                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28093 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28094 if test "${ac_cv_header_zlib_h+set}" = set; then
28095   echo $ECHO_N "(cached) $ECHO_C" >&6
28096 else
28097   if test "$cross_compiling" = yes; then
28098                       unset ac_cv_header_zlib_h
28099
28100 else
28101   cat >conftest.$ac_ext <<_ACEOF
28102 /* confdefs.h.  */
28103 _ACEOF
28104 cat confdefs.h >>conftest.$ac_ext
28105 cat >>conftest.$ac_ext <<_ACEOF
28106 /* end confdefs.h.  */
28107
28108                         #include <zlib.h>
28109                         #include <stdio.h>
28110
28111                         int main()
28112                         {
28113                             FILE *f=fopen("conftestval", "w");
28114                             if (!f) exit(1);
28115                             fprintf(f, "%s",
28116                                     ZLIB_VERSION[0] == '1' &&
28117                                     (ZLIB_VERSION[2] > '1' ||
28118                                     (ZLIB_VERSION[2] == '1' &&
28119                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28120                             exit(0);
28121                         }
28122
28123 _ACEOF
28124 rm -f conftest$ac_exeext
28125 if { (ac_try="$ac_link"
28126 case "(($ac_try" in
28127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28128   *) ac_try_echo=$ac_try;;
28129 esac
28130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28131   (eval "$ac_link") 2>&5
28132   ac_status=$?
28133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28135   { (case "(($ac_try" in
28136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28137   *) ac_try_echo=$ac_try;;
28138 esac
28139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28140   (eval "$ac_try") 2>&5
28141   ac_status=$?
28142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143   (exit $ac_status); }; }; then
28144   ac_cv_header_zlib_h=`cat conftestval`
28145 else
28146   echo "$as_me: program exited with status $ac_status" >&5
28147 echo "$as_me: failed program was:" >&5
28148 sed 's/^/| /' conftest.$ac_ext >&5
28149
28150 ( exit $ac_status )
28151 ac_cv_header_zlib_h=no
28152 fi
28153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28154 fi
28155
28156
28157
28158 fi
28159 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28160 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28161                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28162 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28163 if test "${ac_cv_header_zlib_h+set}" = set; then
28164   echo $ECHO_N "(cached) $ECHO_C" >&6
28165 else
28166   cat >conftest.$ac_ext <<_ACEOF
28167 /* confdefs.h.  */
28168 _ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h.  */
28172
28173
28174 #include <zlib.h>
28175 _ACEOF
28176 rm -f conftest.$ac_objext
28177 if { (ac_try="$ac_compile"
28178 case "(($ac_try" in
28179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180   *) ac_try_echo=$ac_try;;
28181 esac
28182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183   (eval "$ac_compile") 2>conftest.er1
28184   ac_status=$?
28185   grep -v '^ *+' conftest.er1 >conftest.err
28186   rm -f conftest.er1
28187   cat conftest.err >&5
28188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189   (exit $ac_status); } && {
28190          test -z "$ac_c_werror_flag" ||
28191          test ! -s conftest.err
28192        } && test -s conftest.$ac_objext; then
28193   ac_cv_header_zlib_h=yes
28194 else
28195   echo "$as_me: failed program was:" >&5
28196 sed 's/^/| /' conftest.$ac_ext >&5
28197
28198         ac_cv_header_zlib_h=no
28199 fi
28200
28201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28202 fi
28203 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28204 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28205
28206
28207
28208             system_zlib_h_ok=$ac_cv_header_zlib_h
28209         fi
28210
28211         if test "$system_zlib_h_ok" = "yes"; then
28212             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28213 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28214 if test "${ac_cv_lib_z_deflate+set}" = set; then
28215   echo $ECHO_N "(cached) $ECHO_C" >&6
28216 else
28217   ac_check_lib_save_LIBS=$LIBS
28218 LIBS="-lz  $LIBS"
28219 cat >conftest.$ac_ext <<_ACEOF
28220 /* confdefs.h.  */
28221 _ACEOF
28222 cat confdefs.h >>conftest.$ac_ext
28223 cat >>conftest.$ac_ext <<_ACEOF
28224 /* end confdefs.h.  */
28225
28226 /* Override any GCC internal prototype to avoid an error.
28227    Use char because int might match the return type of a GCC
28228    builtin and then its argument prototype would still apply.  */
28229 #ifdef __cplusplus
28230 extern "C"
28231 #endif
28232 char deflate ();
28233 int
28234 main ()
28235 {
28236 return deflate ();
28237   ;
28238   return 0;
28239 }
28240 _ACEOF
28241 rm -f conftest.$ac_objext conftest$ac_exeext
28242 if { (ac_try="$ac_link"
28243 case "(($ac_try" in
28244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28245   *) ac_try_echo=$ac_try;;
28246 esac
28247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28248   (eval "$ac_link") 2>conftest.er1
28249   ac_status=$?
28250   grep -v '^ *+' conftest.er1 >conftest.err
28251   rm -f conftest.er1
28252   cat conftest.err >&5
28253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254   (exit $ac_status); } && {
28255          test -z "$ac_c_werror_flag" ||
28256          test ! -s conftest.err
28257        } && test -s conftest$ac_exeext &&
28258        $as_test_x conftest$ac_exeext; then
28259   ac_cv_lib_z_deflate=yes
28260 else
28261   echo "$as_me: failed program was:" >&5
28262 sed 's/^/| /' conftest.$ac_ext >&5
28263
28264         ac_cv_lib_z_deflate=no
28265 fi
28266
28267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28268       conftest$ac_exeext conftest.$ac_ext
28269 LIBS=$ac_check_lib_save_LIBS
28270 fi
28271 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28272 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28273 if test $ac_cv_lib_z_deflate = yes; then
28274   ZLIB_LINK=" -lz"
28275 fi
28276
28277         fi
28278
28279         if test "x$ZLIB_LINK" = "x" ; then
28280             if test "$wxUSE_ZLIB" = "sys" ; then
28281                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28282 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28283    { (exit 1); exit 1; }; }
28284             else
28285                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28286 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28287                 wxUSE_ZLIB=builtin
28288             fi
28289         else
28290                         wxUSE_ZLIB=sys
28291         fi
28292     fi
28293 fi
28294
28295
28296 PNG_LINK=
28297 if test "$wxUSE_LIBPNG" != "no" ; then
28298     cat >>confdefs.h <<\_ACEOF
28299 #define wxUSE_LIBPNG 1
28300 _ACEOF
28301
28302
28303     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28304         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28305 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28306         wxUSE_LIBPNG=sys
28307     fi
28308
28309                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28310         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28311 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28312         wxUSE_LIBPNG=builtin
28313     fi
28314
28315     if test "$wxUSE_MGL" != 1 ; then
28316                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28317                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28318 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28319 if test "${ac_cv_header_png_h+set}" = set; then
28320   echo $ECHO_N "(cached) $ECHO_C" >&6
28321 else
28322   if test "$cross_compiling" = yes; then
28323                       unset ac_cv_header_png_h
28324
28325 else
28326   cat >conftest.$ac_ext <<_ACEOF
28327 /* confdefs.h.  */
28328 _ACEOF
28329 cat confdefs.h >>conftest.$ac_ext
28330 cat >>conftest.$ac_ext <<_ACEOF
28331 /* end confdefs.h.  */
28332
28333                         #include <png.h>
28334                         #include <stdio.h>
28335
28336                         int main()
28337                         {
28338                             FILE *f=fopen("conftestval", "w");
28339                             if (!f) exit(1);
28340                             fprintf(f, "%s",
28341                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28342                             exit(0);
28343                         }
28344
28345 _ACEOF
28346 rm -f conftest$ac_exeext
28347 if { (ac_try="$ac_link"
28348 case "(($ac_try" in
28349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28350   *) ac_try_echo=$ac_try;;
28351 esac
28352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28353   (eval "$ac_link") 2>&5
28354   ac_status=$?
28355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28357   { (case "(($ac_try" in
28358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359   *) ac_try_echo=$ac_try;;
28360 esac
28361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362   (eval "$ac_try") 2>&5
28363   ac_status=$?
28364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365   (exit $ac_status); }; }; then
28366   ac_cv_header_png_h=`cat conftestval`
28367 else
28368   echo "$as_me: program exited with status $ac_status" >&5
28369 echo "$as_me: failed program was:" >&5
28370 sed 's/^/| /' conftest.$ac_ext >&5
28371
28372 ( exit $ac_status )
28373 ac_cv_header_png_h=no
28374 fi
28375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28376 fi
28377
28378
28379
28380 fi
28381 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28382 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28383             { echo "$as_me:$LINENO: checking for png.h" >&5
28384 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
28385 if test "${ac_cv_header_png_h+set}" = set; then
28386   echo $ECHO_N "(cached) $ECHO_C" >&6
28387 else
28388   cat >conftest.$ac_ext <<_ACEOF
28389 /* confdefs.h.  */
28390 _ACEOF
28391 cat confdefs.h >>conftest.$ac_ext
28392 cat >>conftest.$ac_ext <<_ACEOF
28393 /* end confdefs.h.  */
28394
28395
28396 #include <png.h>
28397 _ACEOF
28398 rm -f conftest.$ac_objext
28399 if { (ac_try="$ac_compile"
28400 case "(($ac_try" in
28401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402   *) ac_try_echo=$ac_try;;
28403 esac
28404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405   (eval "$ac_compile") 2>conftest.er1
28406   ac_status=$?
28407   grep -v '^ *+' conftest.er1 >conftest.err
28408   rm -f conftest.er1
28409   cat conftest.err >&5
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); } && {
28412          test -z "$ac_c_werror_flag" ||
28413          test ! -s conftest.err
28414        } && test -s conftest.$ac_objext; then
28415   ac_cv_header_png_h=yes
28416 else
28417   echo "$as_me: failed program was:" >&5
28418 sed 's/^/| /' conftest.$ac_ext >&5
28419
28420         ac_cv_header_png_h=no
28421 fi
28422
28423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28424 fi
28425 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
28426 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
28427
28428
28429
28430             if test "$ac_cv_header_png_h" = "yes"; then
28431                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
28432 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
28433 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
28434   echo $ECHO_N "(cached) $ECHO_C" >&6
28435 else
28436   ac_check_lib_save_LIBS=$LIBS
28437 LIBS="-lpng -lz -lm $LIBS"
28438 cat >conftest.$ac_ext <<_ACEOF
28439 /* confdefs.h.  */
28440 _ACEOF
28441 cat confdefs.h >>conftest.$ac_ext
28442 cat >>conftest.$ac_ext <<_ACEOF
28443 /* end confdefs.h.  */
28444
28445 /* Override any GCC internal prototype to avoid an error.
28446    Use char because int might match the return type of a GCC
28447    builtin and then its argument prototype would still apply.  */
28448 #ifdef __cplusplus
28449 extern "C"
28450 #endif
28451 char png_check_sig ();
28452 int
28453 main ()
28454 {
28455 return png_check_sig ();
28456   ;
28457   return 0;
28458 }
28459 _ACEOF
28460 rm -f conftest.$ac_objext conftest$ac_exeext
28461 if { (ac_try="$ac_link"
28462 case "(($ac_try" in
28463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28464   *) ac_try_echo=$ac_try;;
28465 esac
28466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28467   (eval "$ac_link") 2>conftest.er1
28468   ac_status=$?
28469   grep -v '^ *+' conftest.er1 >conftest.err
28470   rm -f conftest.er1
28471   cat conftest.err >&5
28472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473   (exit $ac_status); } && {
28474          test -z "$ac_c_werror_flag" ||
28475          test ! -s conftest.err
28476        } && test -s conftest$ac_exeext &&
28477        $as_test_x conftest$ac_exeext; then
28478   ac_cv_lib_png_png_check_sig=yes
28479 else
28480   echo "$as_me: failed program was:" >&5
28481 sed 's/^/| /' conftest.$ac_ext >&5
28482
28483         ac_cv_lib_png_png_check_sig=no
28484 fi
28485
28486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28487       conftest$ac_exeext conftest.$ac_ext
28488 LIBS=$ac_check_lib_save_LIBS
28489 fi
28490 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
28491 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
28492 if test $ac_cv_lib_png_png_check_sig = yes; then
28493   PNG_LINK=" -lpng -lz"
28494 fi
28495
28496             fi
28497
28498             if test "x$PNG_LINK" = "x" ; then
28499                 if test "$wxUSE_LIBPNG" = "sys" ; then
28500                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
28501 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
28502    { (exit 1); exit 1; }; }
28503                 else
28504                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
28505 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
28506                     wxUSE_LIBPNG=builtin
28507                 fi
28508             else
28509                                 wxUSE_LIBPNG=sys
28510             fi
28511         fi
28512     fi
28513
28514     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
28515 fi
28516
28517
28518 JPEG_LINK=
28519 if test "$wxUSE_LIBJPEG" != "no" ; then
28520     cat >>confdefs.h <<\_ACEOF
28521 #define wxUSE_LIBJPEG 1
28522 _ACEOF
28523
28524
28525     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
28526         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
28527 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
28528         wxUSE_LIBJPEG=sys
28529     fi
28530
28531     if test "$wxUSE_MGL" != 1 ; then
28532                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
28533                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
28534 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
28535             if test "${ac_cv_header_jpeglib_h+set}" = set; then
28536   echo $ECHO_N "(cached) $ECHO_C" >&6
28537 else
28538   cat >conftest.$ac_ext <<_ACEOF
28539 /* confdefs.h.  */
28540 _ACEOF
28541 cat confdefs.h >>conftest.$ac_ext
28542 cat >>conftest.$ac_ext <<_ACEOF
28543 /* end confdefs.h.  */
28544
28545                         #undef HAVE_STDLIB_H
28546                         #include <stdio.h>
28547                         #include <jpeglib.h>
28548
28549 int
28550 main ()
28551 {
28552
28553
28554   ;
28555   return 0;
28556 }
28557 _ACEOF
28558 rm -f conftest.$ac_objext
28559 if { (ac_try="$ac_compile"
28560 case "(($ac_try" in
28561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28562   *) ac_try_echo=$ac_try;;
28563 esac
28564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28565   (eval "$ac_compile") 2>conftest.er1
28566   ac_status=$?
28567   grep -v '^ *+' conftest.er1 >conftest.err
28568   rm -f conftest.er1
28569   cat conftest.err >&5
28570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571   (exit $ac_status); } && {
28572          test -z "$ac_c_werror_flag" ||
28573          test ! -s conftest.err
28574        } && test -s conftest.$ac_objext; then
28575   ac_cv_header_jpeglib_h=yes
28576 else
28577   echo "$as_me: failed program was:" >&5
28578 sed 's/^/| /' conftest.$ac_ext >&5
28579
28580         ac_cv_header_jpeglib_h=no
28581
28582 fi
28583
28584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28585
28586 fi
28587
28588             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
28589 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
28590
28591             if test "$ac_cv_header_jpeglib_h" = "yes"; then
28592                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
28593 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
28594 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
28595   echo $ECHO_N "(cached) $ECHO_C" >&6
28596 else
28597   ac_check_lib_save_LIBS=$LIBS
28598 LIBS="-ljpeg  $LIBS"
28599 cat >conftest.$ac_ext <<_ACEOF
28600 /* confdefs.h.  */
28601 _ACEOF
28602 cat confdefs.h >>conftest.$ac_ext
28603 cat >>conftest.$ac_ext <<_ACEOF
28604 /* end confdefs.h.  */
28605
28606 /* Override any GCC internal prototype to avoid an error.
28607    Use char because int might match the return type of a GCC
28608    builtin and then its argument prototype would still apply.  */
28609 #ifdef __cplusplus
28610 extern "C"
28611 #endif
28612 char jpeg_read_header ();
28613 int
28614 main ()
28615 {
28616 return jpeg_read_header ();
28617   ;
28618   return 0;
28619 }
28620 _ACEOF
28621 rm -f conftest.$ac_objext conftest$ac_exeext
28622 if { (ac_try="$ac_link"
28623 case "(($ac_try" in
28624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625   *) ac_try_echo=$ac_try;;
28626 esac
28627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628   (eval "$ac_link") 2>conftest.er1
28629   ac_status=$?
28630   grep -v '^ *+' conftest.er1 >conftest.err
28631   rm -f conftest.er1
28632   cat conftest.err >&5
28633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634   (exit $ac_status); } && {
28635          test -z "$ac_c_werror_flag" ||
28636          test ! -s conftest.err
28637        } && test -s conftest$ac_exeext &&
28638        $as_test_x conftest$ac_exeext; then
28639   ac_cv_lib_jpeg_jpeg_read_header=yes
28640 else
28641   echo "$as_me: failed program was:" >&5
28642 sed 's/^/| /' conftest.$ac_ext >&5
28643
28644         ac_cv_lib_jpeg_jpeg_read_header=no
28645 fi
28646
28647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28648       conftest$ac_exeext conftest.$ac_ext
28649 LIBS=$ac_check_lib_save_LIBS
28650 fi
28651 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28652 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28653 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
28654   JPEG_LINK=" -ljpeg"
28655 fi
28656
28657             fi
28658
28659             if test "x$JPEG_LINK" = "x" ; then
28660                 if test "$wxUSE_LIBJPEG" = "sys" ; then
28661                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
28662 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
28663    { (exit 1); exit 1; }; }
28664                 else
28665                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
28666 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
28667                     wxUSE_LIBJPEG=builtin
28668                 fi
28669             else
28670                                 wxUSE_LIBJPEG=sys
28671
28672                 if test "$wxUSE_MSW" = 1; then
28673                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
28674 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28675 if test "${ac_cv_type_boolean+set}" = set; then
28676   echo $ECHO_N "(cached) $ECHO_C" >&6
28677 else
28678   cat >conftest.$ac_ext <<_ACEOF
28679 /* confdefs.h.  */
28680 _ACEOF
28681 cat confdefs.h >>conftest.$ac_ext
28682 cat >>conftest.$ac_ext <<_ACEOF
28683 /* end confdefs.h.  */
28684 #include <windows.h>
28685
28686 typedef boolean ac__type_new_;
28687 int
28688 main ()
28689 {
28690 if ((ac__type_new_ *) 0)
28691   return 0;
28692 if (sizeof (ac__type_new_))
28693   return 0;
28694   ;
28695   return 0;
28696 }
28697 _ACEOF
28698 rm -f conftest.$ac_objext
28699 if { (ac_try="$ac_compile"
28700 case "(($ac_try" in
28701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28702   *) ac_try_echo=$ac_try;;
28703 esac
28704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28705   (eval "$ac_compile") 2>conftest.er1
28706   ac_status=$?
28707   grep -v '^ *+' conftest.er1 >conftest.err
28708   rm -f conftest.er1
28709   cat conftest.err >&5
28710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711   (exit $ac_status); } && {
28712          test -z "$ac_c_werror_flag" ||
28713          test ! -s conftest.err
28714        } && test -s conftest.$ac_objext; then
28715   ac_cv_type_boolean=yes
28716 else
28717   echo "$as_me: failed program was:" >&5
28718 sed 's/^/| /' conftest.$ac_ext >&5
28719
28720         ac_cv_type_boolean=no
28721 fi
28722
28723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28724 fi
28725 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28726 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28727 if test $ac_cv_type_boolean = yes; then
28728
28729 cat >>confdefs.h <<_ACEOF
28730 #define HAVE_BOOLEAN 1
28731 _ACEOF
28732
28733
28734                             { echo "$as_me:$LINENO: checking for boolean" >&5
28735 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
28736 if test "${ac_cv_type_boolean+set}" = set; then
28737   echo $ECHO_N "(cached) $ECHO_C" >&6
28738 else
28739   cat >conftest.$ac_ext <<_ACEOF
28740 /* confdefs.h.  */
28741 _ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h.  */
28745
28746                                     #undef HAVE_BOOLEAN
28747                                     #include <stdio.h>
28748                                     #include <jpeglib.h>
28749
28750
28751 typedef boolean ac__type_new_;
28752 int
28753 main ()
28754 {
28755 if ((ac__type_new_ *) 0)
28756   return 0;
28757 if (sizeof (ac__type_new_))
28758   return 0;
28759   ;
28760   return 0;
28761 }
28762 _ACEOF
28763 rm -f conftest.$ac_objext
28764 if { (ac_try="$ac_compile"
28765 case "(($ac_try" in
28766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767   *) ac_try_echo=$ac_try;;
28768 esac
28769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770   (eval "$ac_compile") 2>conftest.er1
28771   ac_status=$?
28772   grep -v '^ *+' conftest.er1 >conftest.err
28773   rm -f conftest.er1
28774   cat conftest.err >&5
28775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776   (exit $ac_status); } && {
28777          test -z "$ac_c_werror_flag" ||
28778          test ! -s conftest.err
28779        } && test -s conftest.$ac_objext; then
28780   ac_cv_type_boolean=yes
28781 else
28782   echo "$as_me: failed program was:" >&5
28783 sed 's/^/| /' conftest.$ac_ext >&5
28784
28785         ac_cv_type_boolean=no
28786 fi
28787
28788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28789 fi
28790 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
28791 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
28792
28793 # The cast to long int works around a bug in the HP C Compiler
28794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28796 # This bug is HP SR number 8606223364.
28797 { echo "$as_me:$LINENO: checking size of boolean" >&5
28798 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
28799 if test "${ac_cv_sizeof_boolean+set}" = set; then
28800   echo $ECHO_N "(cached) $ECHO_C" >&6
28801 else
28802   if test "$cross_compiling" = yes; then
28803   # Depending upon the size, compute the lo and hi bounds.
28804 cat >conftest.$ac_ext <<_ACEOF
28805 /* confdefs.h.  */
28806 _ACEOF
28807 cat confdefs.h >>conftest.$ac_ext
28808 cat >>conftest.$ac_ext <<_ACEOF
28809 /* end confdefs.h.  */
28810
28811                                     #undef HAVE_BOOLEAN
28812                                     #include <stdio.h>
28813                                     #include <jpeglib.h>
28814
28815
28816    typedef boolean ac__type_sizeof_;
28817 int
28818 main ()
28819 {
28820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28821 test_array [0] = 0
28822
28823   ;
28824   return 0;
28825 }
28826 _ACEOF
28827 rm -f conftest.$ac_objext
28828 if { (ac_try="$ac_compile"
28829 case "(($ac_try" in
28830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28831   *) ac_try_echo=$ac_try;;
28832 esac
28833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28834   (eval "$ac_compile") 2>conftest.er1
28835   ac_status=$?
28836   grep -v '^ *+' conftest.er1 >conftest.err
28837   rm -f conftest.er1
28838   cat conftest.err >&5
28839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840   (exit $ac_status); } && {
28841          test -z "$ac_c_werror_flag" ||
28842          test ! -s conftest.err
28843        } && test -s conftest.$ac_objext; then
28844   ac_lo=0 ac_mid=0
28845   while :; do
28846     cat >conftest.$ac_ext <<_ACEOF
28847 /* confdefs.h.  */
28848 _ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h.  */
28852
28853                                     #undef HAVE_BOOLEAN
28854                                     #include <stdio.h>
28855                                     #include <jpeglib.h>
28856
28857
28858    typedef boolean ac__type_sizeof_;
28859 int
28860 main ()
28861 {
28862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28863 test_array [0] = 0
28864
28865   ;
28866   return 0;
28867 }
28868 _ACEOF
28869 rm -f conftest.$ac_objext
28870 if { (ac_try="$ac_compile"
28871 case "(($ac_try" in
28872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28873   *) ac_try_echo=$ac_try;;
28874 esac
28875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28876   (eval "$ac_compile") 2>conftest.er1
28877   ac_status=$?
28878   grep -v '^ *+' conftest.er1 >conftest.err
28879   rm -f conftest.er1
28880   cat conftest.err >&5
28881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882   (exit $ac_status); } && {
28883          test -z "$ac_c_werror_flag" ||
28884          test ! -s conftest.err
28885        } && test -s conftest.$ac_objext; then
28886   ac_hi=$ac_mid; break
28887 else
28888   echo "$as_me: failed program was:" >&5
28889 sed 's/^/| /' conftest.$ac_ext >&5
28890
28891         ac_lo=`expr $ac_mid + 1`
28892                         if test $ac_lo -le $ac_mid; then
28893                           ac_lo= ac_hi=
28894                           break
28895                         fi
28896                         ac_mid=`expr 2 '*' $ac_mid + 1`
28897 fi
28898
28899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28900   done
28901 else
28902   echo "$as_me: failed program was:" >&5
28903 sed 's/^/| /' conftest.$ac_ext >&5
28904
28905         cat >conftest.$ac_ext <<_ACEOF
28906 /* confdefs.h.  */
28907 _ACEOF
28908 cat confdefs.h >>conftest.$ac_ext
28909 cat >>conftest.$ac_ext <<_ACEOF
28910 /* end confdefs.h.  */
28911
28912                                     #undef HAVE_BOOLEAN
28913                                     #include <stdio.h>
28914                                     #include <jpeglib.h>
28915
28916
28917    typedef boolean ac__type_sizeof_;
28918 int
28919 main ()
28920 {
28921 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28922 test_array [0] = 0
28923
28924   ;
28925   return 0;
28926 }
28927 _ACEOF
28928 rm -f conftest.$ac_objext
28929 if { (ac_try="$ac_compile"
28930 case "(($ac_try" in
28931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28932   *) ac_try_echo=$ac_try;;
28933 esac
28934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28935   (eval "$ac_compile") 2>conftest.er1
28936   ac_status=$?
28937   grep -v '^ *+' conftest.er1 >conftest.err
28938   rm -f conftest.er1
28939   cat conftest.err >&5
28940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941   (exit $ac_status); } && {
28942          test -z "$ac_c_werror_flag" ||
28943          test ! -s conftest.err
28944        } && test -s conftest.$ac_objext; then
28945   ac_hi=-1 ac_mid=-1
28946   while :; do
28947     cat >conftest.$ac_ext <<_ACEOF
28948 /* confdefs.h.  */
28949 _ACEOF
28950 cat confdefs.h >>conftest.$ac_ext
28951 cat >>conftest.$ac_ext <<_ACEOF
28952 /* end confdefs.h.  */
28953
28954                                     #undef HAVE_BOOLEAN
28955                                     #include <stdio.h>
28956                                     #include <jpeglib.h>
28957
28958
28959    typedef boolean ac__type_sizeof_;
28960 int
28961 main ()
28962 {
28963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28964 test_array [0] = 0
28965
28966   ;
28967   return 0;
28968 }
28969 _ACEOF
28970 rm -f conftest.$ac_objext
28971 if { (ac_try="$ac_compile"
28972 case "(($ac_try" in
28973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974   *) ac_try_echo=$ac_try;;
28975 esac
28976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977   (eval "$ac_compile") 2>conftest.er1
28978   ac_status=$?
28979   grep -v '^ *+' conftest.er1 >conftest.err
28980   rm -f conftest.er1
28981   cat conftest.err >&5
28982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983   (exit $ac_status); } && {
28984          test -z "$ac_c_werror_flag" ||
28985          test ! -s conftest.err
28986        } && test -s conftest.$ac_objext; then
28987   ac_lo=$ac_mid; break
28988 else
28989   echo "$as_me: failed program was:" >&5
28990 sed 's/^/| /' conftest.$ac_ext >&5
28991
28992         ac_hi=`expr '(' $ac_mid ')' - 1`
28993                         if test $ac_mid -le $ac_hi; then
28994                           ac_lo= ac_hi=
28995                           break
28996                         fi
28997                         ac_mid=`expr 2 '*' $ac_mid`
28998 fi
28999
29000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29001   done
29002 else
29003   echo "$as_me: failed program was:" >&5
29004 sed 's/^/| /' conftest.$ac_ext >&5
29005
29006         ac_lo= ac_hi=
29007 fi
29008
29009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29010 fi
29011
29012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29013 # Binary search between lo and hi bounds.
29014 while test "x$ac_lo" != "x$ac_hi"; do
29015   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29016   cat >conftest.$ac_ext <<_ACEOF
29017 /* confdefs.h.  */
29018 _ACEOF
29019 cat confdefs.h >>conftest.$ac_ext
29020 cat >>conftest.$ac_ext <<_ACEOF
29021 /* end confdefs.h.  */
29022
29023                                     #undef HAVE_BOOLEAN
29024                                     #include <stdio.h>
29025                                     #include <jpeglib.h>
29026
29027
29028    typedef boolean ac__type_sizeof_;
29029 int
29030 main ()
29031 {
29032 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29033 test_array [0] = 0
29034
29035   ;
29036   return 0;
29037 }
29038 _ACEOF
29039 rm -f conftest.$ac_objext
29040 if { (ac_try="$ac_compile"
29041 case "(($ac_try" in
29042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29043   *) ac_try_echo=$ac_try;;
29044 esac
29045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29046   (eval "$ac_compile") 2>conftest.er1
29047   ac_status=$?
29048   grep -v '^ *+' conftest.er1 >conftest.err
29049   rm -f conftest.er1
29050   cat conftest.err >&5
29051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052   (exit $ac_status); } && {
29053          test -z "$ac_c_werror_flag" ||
29054          test ! -s conftest.err
29055        } && test -s conftest.$ac_objext; then
29056   ac_hi=$ac_mid
29057 else
29058   echo "$as_me: failed program was:" >&5
29059 sed 's/^/| /' conftest.$ac_ext >&5
29060
29061         ac_lo=`expr '(' $ac_mid ')' + 1`
29062 fi
29063
29064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29065 done
29066 case $ac_lo in
29067 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29068 '') if test "$ac_cv_type_boolean" = yes; then
29069      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29070 See \`config.log' for more details." >&5
29071 echo "$as_me: error: cannot compute sizeof (boolean)
29072 See \`config.log' for more details." >&2;}
29073    { (exit 77); exit 77; }; }
29074    else
29075      ac_cv_sizeof_boolean=0
29076    fi ;;
29077 esac
29078 else
29079   cat >conftest.$ac_ext <<_ACEOF
29080 /* confdefs.h.  */
29081 _ACEOF
29082 cat confdefs.h >>conftest.$ac_ext
29083 cat >>conftest.$ac_ext <<_ACEOF
29084 /* end confdefs.h.  */
29085
29086                                     #undef HAVE_BOOLEAN
29087                                     #include <stdio.h>
29088                                     #include <jpeglib.h>
29089
29090
29091    typedef boolean ac__type_sizeof_;
29092 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29093 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29094 #include <stdio.h>
29095 #include <stdlib.h>
29096 int
29097 main ()
29098 {
29099
29100   FILE *f = fopen ("conftest.val", "w");
29101   if (! f)
29102     return 1;
29103   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29104     {
29105       long int i = longval ();
29106       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29107         return 1;
29108       fprintf (f, "%ld\n", i);
29109     }
29110   else
29111     {
29112       unsigned long int i = ulongval ();
29113       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29114         return 1;
29115       fprintf (f, "%lu\n", i);
29116     }
29117   return ferror (f) || fclose (f) != 0;
29118
29119   ;
29120   return 0;
29121 }
29122 _ACEOF
29123 rm -f conftest$ac_exeext
29124 if { (ac_try="$ac_link"
29125 case "(($ac_try" in
29126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29127   *) ac_try_echo=$ac_try;;
29128 esac
29129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29130   (eval "$ac_link") 2>&5
29131   ac_status=$?
29132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29134   { (case "(($ac_try" in
29135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29136   *) ac_try_echo=$ac_try;;
29137 esac
29138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29139   (eval "$ac_try") 2>&5
29140   ac_status=$?
29141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142   (exit $ac_status); }; }; then
29143   ac_cv_sizeof_boolean=`cat conftest.val`
29144 else
29145   echo "$as_me: program exited with status $ac_status" >&5
29146 echo "$as_me: failed program was:" >&5
29147 sed 's/^/| /' conftest.$ac_ext >&5
29148
29149 ( exit $ac_status )
29150 if test "$ac_cv_type_boolean" = yes; then
29151      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29152 See \`config.log' for more details." >&5
29153 echo "$as_me: error: cannot compute sizeof (boolean)
29154 See \`config.log' for more details." >&2;}
29155    { (exit 77); exit 77; }; }
29156    else
29157      ac_cv_sizeof_boolean=0
29158    fi
29159 fi
29160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29161 fi
29162 rm -f conftest.val
29163 fi
29164 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29165 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29166
29167
29168
29169 cat >>confdefs.h <<_ACEOF
29170 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29171 _ACEOF
29172
29173
29174                             cat >>confdefs.h <<_ACEOF
29175 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29176 _ACEOF
29177
29178
29179 fi
29180
29181                 fi
29182             fi
29183         fi
29184     fi
29185 fi
29186
29187
29188 TIFF_LINK=
29189 TIFF_PREREQ_LINKS=-lm
29190 if test "$wxUSE_LIBTIFF" != "no" ; then
29191     cat >>confdefs.h <<\_ACEOF
29192 #define wxUSE_LIBTIFF 1
29193 _ACEOF
29194
29195
29196     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29197                         if test "$wxUSE_LIBJPEG" = "sys"; then
29198             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29199         fi
29200         if test "$wxUSE_ZLIB" = "sys"; then
29201             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29202         fi
29203         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29204 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29205 if test "${ac_cv_header_tiffio_h+set}" = set; then
29206   echo $ECHO_N "(cached) $ECHO_C" >&6
29207 else
29208   cat >conftest.$ac_ext <<_ACEOF
29209 /* confdefs.h.  */
29210 _ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h.  */
29214
29215
29216
29217 #include <tiffio.h>
29218 _ACEOF
29219 rm -f conftest.$ac_objext
29220 if { (ac_try="$ac_compile"
29221 case "(($ac_try" in
29222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29223   *) ac_try_echo=$ac_try;;
29224 esac
29225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29226   (eval "$ac_compile") 2>conftest.er1
29227   ac_status=$?
29228   grep -v '^ *+' conftest.er1 >conftest.err
29229   rm -f conftest.er1
29230   cat conftest.err >&5
29231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29232   (exit $ac_status); } && {
29233          test -z "$ac_c_werror_flag" ||
29234          test ! -s conftest.err
29235        } && test -s conftest.$ac_objext; then
29236   ac_cv_header_tiffio_h=yes
29237 else
29238   echo "$as_me: failed program was:" >&5
29239 sed 's/^/| /' conftest.$ac_ext >&5
29240
29241         ac_cv_header_tiffio_h=no
29242 fi
29243
29244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29245 fi
29246 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29247 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29248 if test $ac_cv_header_tiffio_h = yes; then
29249
29250                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29251 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29252 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29253   echo $ECHO_N "(cached) $ECHO_C" >&6
29254 else
29255   ac_check_lib_save_LIBS=$LIBS
29256 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29257 cat >conftest.$ac_ext <<_ACEOF
29258 /* confdefs.h.  */
29259 _ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h.  */
29263
29264 /* Override any GCC internal prototype to avoid an error.
29265    Use char because int might match the return type of a GCC
29266    builtin and then its argument prototype would still apply.  */
29267 #ifdef __cplusplus
29268 extern "C"
29269 #endif
29270 char TIFFError ();
29271 int
29272 main ()
29273 {
29274 return TIFFError ();
29275   ;
29276   return 0;
29277 }
29278 _ACEOF
29279 rm -f conftest.$ac_objext conftest$ac_exeext
29280 if { (ac_try="$ac_link"
29281 case "(($ac_try" in
29282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29283   *) ac_try_echo=$ac_try;;
29284 esac
29285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29286   (eval "$ac_link") 2>conftest.er1
29287   ac_status=$?
29288   grep -v '^ *+' conftest.er1 >conftest.err
29289   rm -f conftest.er1
29290   cat conftest.err >&5
29291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29292   (exit $ac_status); } && {
29293          test -z "$ac_c_werror_flag" ||
29294          test ! -s conftest.err
29295        } && test -s conftest$ac_exeext &&
29296        $as_test_x conftest$ac_exeext; then
29297   ac_cv_lib_tiff_TIFFError=yes
29298 else
29299   echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29301
29302         ac_cv_lib_tiff_TIFFError=no
29303 fi
29304
29305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29306       conftest$ac_exeext conftest.$ac_ext
29307 LIBS=$ac_check_lib_save_LIBS
29308 fi
29309 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29310 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29311 if test $ac_cv_lib_tiff_TIFFError = yes; then
29312   TIFF_LINK=" -ltiff"
29313 fi
29314
29315
29316 fi
29317
29318
29319
29320         if test "x$TIFF_LINK" = "x" ; then
29321             if test "$wxUSE_LIBTIFF" = "sys" ; then
29322                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29323 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29324    { (exit 1); exit 1; }; }
29325             else
29326                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29327 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29328                 wxUSE_LIBTIFF=builtin
29329             fi
29330         else
29331                         wxUSE_LIBTIFF=sys
29332         fi
29333     fi
29334 fi
29335
29336
29337 if test "$wxUSE_WCHAR_T" != "yes"; then
29338     if test "$wxUSE_EXPAT" != "no"; then
29339         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
29340 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
29341         wxUSE_EXPAT=no
29342     fi
29343     if test "$wxUSE_XML" != "no"; then
29344         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
29345 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
29346         wxUSE_XML=no
29347     fi
29348 fi
29349
29350 if test "$wxUSE_EXPAT" != "no"; then
29351     wxUSE_XML=yes
29352     cat >>confdefs.h <<\_ACEOF
29353 #define wxUSE_EXPAT 1
29354 _ACEOF
29355
29356     cat >>confdefs.h <<\_ACEOF
29357 #define wxUSE_XML 1
29358 _ACEOF
29359
29360
29361     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
29362         { echo "$as_me:$LINENO: checking for expat.h" >&5
29363 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
29364 if test "${ac_cv_header_expat_h+set}" = set; then
29365   echo $ECHO_N "(cached) $ECHO_C" >&6
29366 else
29367   cat >conftest.$ac_ext <<_ACEOF
29368 /* confdefs.h.  */
29369 _ACEOF
29370 cat confdefs.h >>conftest.$ac_ext
29371 cat >>conftest.$ac_ext <<_ACEOF
29372 /* end confdefs.h.  */
29373
29374
29375 #include <expat.h>
29376 _ACEOF
29377 rm -f conftest.$ac_objext
29378 if { (ac_try="$ac_compile"
29379 case "(($ac_try" in
29380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29381   *) ac_try_echo=$ac_try;;
29382 esac
29383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29384   (eval "$ac_compile") 2>conftest.er1
29385   ac_status=$?
29386   grep -v '^ *+' conftest.er1 >conftest.err
29387   rm -f conftest.er1
29388   cat conftest.err >&5
29389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); } && {
29391          test -z "$ac_c_werror_flag" ||
29392          test ! -s conftest.err
29393        } && test -s conftest.$ac_objext; then
29394   ac_cv_header_expat_h=yes
29395 else
29396   echo "$as_me: failed program was:" >&5
29397 sed 's/^/| /' conftest.$ac_ext >&5
29398
29399         ac_cv_header_expat_h=no
29400 fi
29401
29402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29403 fi
29404 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
29405 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
29406 if test $ac_cv_header_expat_h = yes; then
29407   found_expat_h=1
29408 fi
29409
29410
29411         if test "x$found_expat_h" = "x1"; then
29412                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
29413 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
29414 if test "${wx_cv_expat_is_not_broken+set}" = set; then
29415   echo $ECHO_N "(cached) $ECHO_C" >&6
29416 else
29417
29418                 ac_ext=cpp
29419 ac_cpp='$CXXCPP $CPPFLAGS'
29420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29423
29424                 cat >conftest.$ac_ext <<_ACEOF
29425 /* confdefs.h.  */
29426 _ACEOF
29427 cat confdefs.h >>conftest.$ac_ext
29428 cat >>conftest.$ac_ext <<_ACEOF
29429 /* end confdefs.h.  */
29430 #include <expat.h>
29431 int
29432 main ()
29433 {
29434
29435   ;
29436   return 0;
29437 }
29438 _ACEOF
29439 rm -f conftest.$ac_objext
29440 if { (ac_try="$ac_compile"
29441 case "(($ac_try" in
29442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443   *) ac_try_echo=$ac_try;;
29444 esac
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446   (eval "$ac_compile") 2>conftest.er1
29447   ac_status=$?
29448   grep -v '^ *+' conftest.er1 >conftest.err
29449   rm -f conftest.er1
29450   cat conftest.err >&5
29451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452   (exit $ac_status); } && {
29453          test -z "$ac_cxx_werror_flag" ||
29454          test ! -s conftest.err
29455        } && test -s conftest.$ac_objext; then
29456   wx_cv_expat_is_not_broken=yes
29457 else
29458   echo "$as_me: failed program was:" >&5
29459 sed 's/^/| /' conftest.$ac_ext >&5
29460
29461         wx_cv_expat_is_not_broken=no
29462
29463 fi
29464
29465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29466                 ac_ext=c
29467 ac_cpp='$CPP $CPPFLAGS'
29468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29471
29472
29473
29474 fi
29475 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
29476 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
29477             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
29478                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
29479 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
29480 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
29481   echo $ECHO_N "(cached) $ECHO_C" >&6
29482 else
29483   ac_check_lib_save_LIBS=$LIBS
29484 LIBS="-lexpat  $LIBS"
29485 cat >conftest.$ac_ext <<_ACEOF
29486 /* confdefs.h.  */
29487 _ACEOF
29488 cat confdefs.h >>conftest.$ac_ext
29489 cat >>conftest.$ac_ext <<_ACEOF
29490 /* end confdefs.h.  */
29491
29492 /* Override any GCC internal prototype to avoid an error.
29493    Use char because int might match the return type of a GCC
29494    builtin and then its argument prototype would still apply.  */
29495 #ifdef __cplusplus
29496 extern "C"
29497 #endif
29498 char XML_ParserCreate ();
29499 int
29500 main ()
29501 {
29502 return XML_ParserCreate ();
29503   ;
29504   return 0;
29505 }
29506 _ACEOF
29507 rm -f conftest.$ac_objext conftest$ac_exeext
29508 if { (ac_try="$ac_link"
29509 case "(($ac_try" in
29510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511   *) ac_try_echo=$ac_try;;
29512 esac
29513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29514   (eval "$ac_link") 2>conftest.er1
29515   ac_status=$?
29516   grep -v '^ *+' conftest.er1 >conftest.err
29517   rm -f conftest.er1
29518   cat conftest.err >&5
29519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520   (exit $ac_status); } && {
29521          test -z "$ac_c_werror_flag" ||
29522          test ! -s conftest.err
29523        } && test -s conftest$ac_exeext &&
29524        $as_test_x conftest$ac_exeext; then
29525   ac_cv_lib_expat_XML_ParserCreate=yes
29526 else
29527   echo "$as_me: failed program was:" >&5
29528 sed 's/^/| /' conftest.$ac_ext >&5
29529
29530         ac_cv_lib_expat_XML_ParserCreate=no
29531 fi
29532
29533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29534       conftest$ac_exeext conftest.$ac_ext
29535 LIBS=$ac_check_lib_save_LIBS
29536 fi
29537 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
29538 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
29539 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
29540   EXPAT_LINK=" -lexpat"
29541 fi
29542
29543             fi
29544         fi
29545         if test "x$EXPAT_LINK" = "x" ; then
29546             if test "$wxUSE_EXPAT" = "sys" ; then
29547                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
29548 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
29549    { (exit 1); exit 1; }; }
29550             else
29551                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
29552 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
29553                 wxUSE_EXPAT=builtin
29554             fi
29555         else
29556                         wxUSE_EXPAT=sys
29557         fi
29558     fi
29559     if test "$wxUSE_EXPAT" = "builtin" ; then
29560                 subdirs="$subdirs src/expat"
29561
29562     fi
29563 fi
29564
29565
29566
29567 if test "$wxUSE_LIBMSPACK" != "no"; then
29568     { echo "$as_me:$LINENO: checking for mspack.h" >&5
29569 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
29570 if test "${ac_cv_header_mspack_h+set}" = set; then
29571   echo $ECHO_N "(cached) $ECHO_C" >&6
29572 else
29573   cat >conftest.$ac_ext <<_ACEOF
29574 /* confdefs.h.  */
29575 _ACEOF
29576 cat confdefs.h >>conftest.$ac_ext
29577 cat >>conftest.$ac_ext <<_ACEOF
29578 /* end confdefs.h.  */
29579
29580
29581 #include <mspack.h>
29582 _ACEOF
29583 rm -f conftest.$ac_objext
29584 if { (ac_try="$ac_compile"
29585 case "(($ac_try" in
29586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587   *) ac_try_echo=$ac_try;;
29588 esac
29589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590   (eval "$ac_compile") 2>conftest.er1
29591   ac_status=$?
29592   grep -v '^ *+' conftest.er1 >conftest.err
29593   rm -f conftest.er1
29594   cat conftest.err >&5
29595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596   (exit $ac_status); } && {
29597          test -z "$ac_c_werror_flag" ||
29598          test ! -s conftest.err
29599        } && test -s conftest.$ac_objext; then
29600   ac_cv_header_mspack_h=yes
29601 else
29602   echo "$as_me: failed program was:" >&5
29603 sed 's/^/| /' conftest.$ac_ext >&5
29604
29605         ac_cv_header_mspack_h=no
29606 fi
29607
29608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29609 fi
29610 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
29611 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
29612 if test $ac_cv_header_mspack_h = yes; then
29613   found_mspack_h=1
29614 fi
29615
29616
29617     if test "x$found_mspack_h" = "x1"; then
29618         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
29619 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
29620 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
29621   echo $ECHO_N "(cached) $ECHO_C" >&6
29622 else
29623   ac_check_lib_save_LIBS=$LIBS
29624 LIBS="-lmspack  $LIBS"
29625 cat >conftest.$ac_ext <<_ACEOF
29626 /* confdefs.h.  */
29627 _ACEOF
29628 cat confdefs.h >>conftest.$ac_ext
29629 cat >>conftest.$ac_ext <<_ACEOF
29630 /* end confdefs.h.  */
29631
29632 /* Override any GCC internal prototype to avoid an error.
29633    Use char because int might match the return type of a GCC
29634    builtin and then its argument prototype would still apply.  */
29635 #ifdef __cplusplus
29636 extern "C"
29637 #endif
29638 char mspack_create_chm_decompressor ();
29639 int
29640 main ()
29641 {
29642 return mspack_create_chm_decompressor ();
29643   ;
29644   return 0;
29645 }
29646 _ACEOF
29647 rm -f conftest.$ac_objext conftest$ac_exeext
29648 if { (ac_try="$ac_link"
29649 case "(($ac_try" in
29650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29651   *) ac_try_echo=$ac_try;;
29652 esac
29653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29654   (eval "$ac_link") 2>conftest.er1
29655   ac_status=$?
29656   grep -v '^ *+' conftest.er1 >conftest.err
29657   rm -f conftest.er1
29658   cat conftest.err >&5
29659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29660   (exit $ac_status); } && {
29661          test -z "$ac_c_werror_flag" ||
29662          test ! -s conftest.err
29663        } && test -s conftest$ac_exeext &&
29664        $as_test_x conftest$ac_exeext; then
29665   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
29666 else
29667   echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29669
29670         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
29671 fi
29672
29673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29674       conftest$ac_exeext conftest.$ac_ext
29675 LIBS=$ac_check_lib_save_LIBS
29676 fi
29677 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
29678 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
29679 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
29680   MSPACK_LINK=" -lmspack"
29681 fi
29682
29683     fi
29684     if test "x$MSPACK_LINK" = "x" ; then
29685         wxUSE_LIBMSPACK=no
29686     fi
29687 fi
29688
29689 if test "$wxUSE_LIBMSPACK" != "no"; then
29690     cat >>confdefs.h <<\_ACEOF
29691 #define wxUSE_LIBMSPACK 1
29692 _ACEOF
29693
29694 fi
29695
29696
29697
29698 AFMINSTALL=
29699 WIN32INSTALL=
29700
29701 TOOLKIT=
29702 TOOLKIT_INCLUDE=
29703 WIDGET_SET=
29704
29705 if test "$USE_WIN32" = 1 ; then
29706
29707 for ac_header in w32api.h
29708 do
29709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29713   echo $ECHO_N "(cached) $ECHO_C" >&6
29714 else
29715   cat >conftest.$ac_ext <<_ACEOF
29716 /* confdefs.h.  */
29717 _ACEOF
29718 cat confdefs.h >>conftest.$ac_ext
29719 cat >>conftest.$ac_ext <<_ACEOF
29720 /* end confdefs.h.  */
29721
29722
29723 #include <$ac_header>
29724 _ACEOF
29725 rm -f conftest.$ac_objext
29726 if { (ac_try="$ac_compile"
29727 case "(($ac_try" in
29728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29729   *) ac_try_echo=$ac_try;;
29730 esac
29731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29732   (eval "$ac_compile") 2>conftest.er1
29733   ac_status=$?
29734   grep -v '^ *+' conftest.er1 >conftest.err
29735   rm -f conftest.er1
29736   cat conftest.err >&5
29737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738   (exit $ac_status); } && {
29739          test -z "$ac_c_werror_flag" ||
29740          test ! -s conftest.err
29741        } && test -s conftest.$ac_objext; then
29742   eval "$as_ac_Header=yes"
29743 else
29744   echo "$as_me: failed program was:" >&5
29745 sed 's/^/| /' conftest.$ac_ext >&5
29746
29747         eval "$as_ac_Header=no"
29748 fi
29749
29750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29751 fi
29752 ac_res=`eval echo '${'$as_ac_Header'}'`
29753                { echo "$as_me:$LINENO: result: $ac_res" >&5
29754 echo "${ECHO_T}$ac_res" >&6; }
29755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29756   cat >>confdefs.h <<_ACEOF
29757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29758 _ACEOF
29759
29760 fi
29761
29762 done
29763
29764     { echo "$as_me:$LINENO: checking for windows.h" >&5
29765 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
29766 if test "${ac_cv_header_windows_h+set}" = set; then
29767   echo $ECHO_N "(cached) $ECHO_C" >&6
29768 else
29769   cat >conftest.$ac_ext <<_ACEOF
29770 /* confdefs.h.  */
29771 _ACEOF
29772 cat confdefs.h >>conftest.$ac_ext
29773 cat >>conftest.$ac_ext <<_ACEOF
29774 /* end confdefs.h.  */
29775
29776
29777 #include <windows.h>
29778 _ACEOF
29779 rm -f conftest.$ac_objext
29780 if { (ac_try="$ac_compile"
29781 case "(($ac_try" in
29782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783   *) ac_try_echo=$ac_try;;
29784 esac
29785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786   (eval "$ac_compile") 2>conftest.er1
29787   ac_status=$?
29788   grep -v '^ *+' conftest.er1 >conftest.err
29789   rm -f conftest.er1
29790   cat conftest.err >&5
29791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792   (exit $ac_status); } && {
29793          test -z "$ac_c_werror_flag" ||
29794          test ! -s conftest.err
29795        } && test -s conftest.$ac_objext; then
29796   ac_cv_header_windows_h=yes
29797 else
29798   echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29800
29801         ac_cv_header_windows_h=no
29802 fi
29803
29804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29805 fi
29806 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
29807 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
29808 if test $ac_cv_header_windows_h = yes; then
29809   :
29810 else
29811
29812         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
29813 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
29814    { (exit 1); exit 1; }; }
29815
29816 fi
29817
29818
29819
29820             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
29821
29822     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
29823         LIBS="$LIBS -loleacc"
29824     fi
29825
29826     case "${host}" in
29827         *-*-cygwin* )
29828                         LIBS="$LIBS -lkernel32 -luser32"
29829     esac
29830
29831         if test "$wxUSE_ODBC" = "sys" ; then
29832         wxUSE_ODBC = "yes"
29833     fi
29834     if test "$wxUSE_ODBC" = "yes" ; then
29835         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
29836         cat >>confdefs.h <<\_ACEOF
29837 #define wxUSE_ODBC 1
29838 _ACEOF
29839
29840     fi
29841
29842         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
29843     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
29844
29845                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
29846
29847         WIN32INSTALL=win32install
29848
29849         { echo "$as_me:$LINENO: checking for pbt.h" >&5
29850 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
29851 if test "${ac_cv_header_pbt_h+set}" = set; then
29852   echo $ECHO_N "(cached) $ECHO_C" >&6
29853 else
29854   cat >conftest.$ac_ext <<_ACEOF
29855 /* confdefs.h.  */
29856 _ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h.  */
29860
29861
29862 #include <pbt.h>
29863 _ACEOF
29864 rm -f conftest.$ac_objext
29865 if { (ac_try="$ac_compile"
29866 case "(($ac_try" in
29867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29868   *) ac_try_echo=$ac_try;;
29869 esac
29870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29871   (eval "$ac_compile") 2>conftest.er1
29872   ac_status=$?
29873   grep -v '^ *+' conftest.er1 >conftest.err
29874   rm -f conftest.er1
29875   cat conftest.err >&5
29876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877   (exit $ac_status); } && {
29878          test -z "$ac_c_werror_flag" ||
29879          test ! -s conftest.err
29880        } && test -s conftest.$ac_objext; then
29881   ac_cv_header_pbt_h=yes
29882 else
29883   echo "$as_me: failed program was:" >&5
29884 sed 's/^/| /' conftest.$ac_ext >&5
29885
29886         ac_cv_header_pbt_h=no
29887 fi
29888
29889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29890 fi
29891 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
29892 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
29893 if test $ac_cv_header_pbt_h = yes; then
29894   :
29895 else
29896   cat >>confdefs.h <<\_ACEOF
29897 #define NEED_PBT_H 1
29898 _ACEOF
29899
29900 fi
29901
29902
29903 fi
29904
29905 if test "$wxUSE_GUI" = "yes"; then
29906     USE_GUI=1
29907
29908     GUI_TK_LIBRARY=
29909
29910     WXGTK12=
29911     WXGTK127=
29912     WXGTK20=
29913     WXGPE=
29914
29915     if test "$wxUSE_COCOA" = 1 ; then
29916         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
29917             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
29918 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
29919             wxUSE_PRINTING_ARCHITECTURE=no
29920         fi
29921         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
29922             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
29923 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
29924             wxUSE_DRAG_AND_DROP=no
29925         fi
29926         if test "$wxUSE_DRAGIMAGE" = "yes"; then
29927             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
29928 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
29929             wxUSE_DRAGIMAGE=no
29930         fi
29931     fi
29932
29933     if test "$wxUSE_MSW" = 1 ; then
29934         TOOLKIT=MSW
29935         GUIDIST=MSW_DIST
29936
29937                 case "${host}" in
29938             *-*-mingw32* )
29939                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
29940         esac
29941     fi
29942
29943     if test "$wxUSE_GTK" = 1; then
29944                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
29945 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
29946
29947         gtk_version_cached=1
29948         if test "${wx_cv_lib_gtk+set}" = set; then
29949   echo $ECHO_N "(cached) $ECHO_C" >&6
29950 else
29951
29952                                                 gtk_version_cached=0
29953                 { echo "$as_me:$LINENO: result: " >&5
29954 echo "${ECHO_T}" >&6; }
29955
29956                                                 GTK_MODULES=
29957                 if test "$wxUSE_THREADS" = "yes"; then
29958                     GTK_MODULES=gthread
29959                 fi
29960
29961                                 wx_cv_lib_gtk=
29962                 if test "x$wxGTK_VERSION" != "x1"
29963                 then
29964                                                                                 case "${host}" in
29965                         *-*-solaris2* )
29966                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
29967                                 enable_gtktest=no
29968                             fi
29969                     esac
29970
29971                     # Check whether --enable-gtktest was given.
29972 if test "${enable_gtktest+set}" = set; then
29973   enableval=$enable_gtktest;
29974 else
29975   enable_gtktest=yes
29976 fi
29977
29978
29979   pkg_config_args=gtk+-2.0
29980   for module in . $GTK_MODULES
29981   do
29982       case "$module" in
29983          gthread)
29984              pkg_config_args="$pkg_config_args gthread-2.0"
29985          ;;
29986       esac
29987   done
29988
29989   no_gtk=""
29990
29991   # Extract the first word of "pkg-config", so it can be a program name with args.
29992 set dummy pkg-config; ac_word=$2
29993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29995 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29996   echo $ECHO_N "(cached) $ECHO_C" >&6
29997 else
29998   case $PKG_CONFIG in
29999   [\\/]* | ?:[\\/]*)
30000   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30001   ;;
30002   *)
30003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30004 for as_dir in $PATH
30005 do
30006   IFS=$as_save_IFS
30007   test -z "$as_dir" && as_dir=.
30008   for ac_exec_ext in '' $ac_executable_extensions; do
30009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30010     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30012     break 2
30013   fi
30014 done
30015 done
30016 IFS=$as_save_IFS
30017
30018   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30019   ;;
30020 esac
30021 fi
30022 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30023 if test -n "$PKG_CONFIG"; then
30024   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30025 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30026 else
30027   { echo "$as_me:$LINENO: result: no" >&5
30028 echo "${ECHO_T}no" >&6; }
30029 fi
30030
30031
30032
30033   if test x$PKG_CONFIG != xno ; then
30034     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30035       :
30036     else
30037       echo "*** pkg-config too old; version 0.7 or better required."
30038       no_gtk=yes
30039       PKG_CONFIG=no
30040     fi
30041   else
30042     no_gtk=yes
30043   fi
30044
30045   min_gtk_version=2.0.0
30046   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30047 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30048
30049   if test x$PKG_CONFIG != xno ; then
30050     ## don't try to run the test against uninstalled libtool libs
30051     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30052           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30053           enable_gtktest=no
30054     fi
30055
30056     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30057           :
30058     else
30059           no_gtk=yes
30060     fi
30061   fi
30062
30063   if test x"$no_gtk" = x ; then
30064     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30065     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30066     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30067            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30068     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30069            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30070     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30071            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30072     if test "x$enable_gtktest" = "xyes" ; then
30073       ac_save_CFLAGS="$CFLAGS"
30074       ac_save_LIBS="$LIBS"
30075       CFLAGS="$CFLAGS $GTK_CFLAGS"
30076       LIBS="$GTK_LIBS $LIBS"
30077       rm -f conf.gtktest
30078       if test "$cross_compiling" = yes; then
30079   echo $ac_n "cross compiling; assumed OK... $ac_c"
30080 else
30081   cat >conftest.$ac_ext <<_ACEOF
30082 /* confdefs.h.  */
30083 _ACEOF
30084 cat confdefs.h >>conftest.$ac_ext
30085 cat >>conftest.$ac_ext <<_ACEOF
30086 /* end confdefs.h.  */
30087
30088 #include <gtk/gtk.h>
30089 #include <stdio.h>
30090 #include <stdlib.h>
30091
30092 int
30093 main ()
30094 {
30095   int major, minor, micro;
30096   char *tmp_version;
30097
30098   system ("touch conf.gtktest");
30099
30100   /* HP/UX 9 (%@#!) writes to sscanf strings */
30101   tmp_version = g_strdup("$min_gtk_version");
30102   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30103      printf("%s, bad version string\n", "$min_gtk_version");
30104      exit(1);
30105    }
30106
30107   if ((gtk_major_version != $gtk_config_major_version) ||
30108       (gtk_minor_version != $gtk_config_minor_version) ||
30109       (gtk_micro_version != $gtk_config_micro_version))
30110     {
30111       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30112              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30113              gtk_major_version, gtk_minor_version, gtk_micro_version);
30114       printf ("*** was found! If pkg-config was correct, then it is best\n");
30115       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30116       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30117       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30118       printf("*** required on your system.\n");
30119       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30120       printf("*** to point to the correct configuration files\n");
30121     }
30122   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30123            (gtk_minor_version != GTK_MINOR_VERSION) ||
30124            (gtk_micro_version != GTK_MICRO_VERSION))
30125     {
30126       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30127              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30128       printf("*** library (version %d.%d.%d)\n",
30129              gtk_major_version, gtk_minor_version, gtk_micro_version);
30130     }
30131   else
30132     {
30133       if ((gtk_major_version > major) ||
30134         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30135         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30136       {
30137         return 0;
30138        }
30139      else
30140       {
30141         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30142                gtk_major_version, gtk_minor_version, gtk_micro_version);
30143         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30144                major, minor, micro);
30145         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30146         printf("***\n");
30147         printf("*** If you have already installed a sufficiently new version, this error\n");
30148         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30149         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30150         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30151         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30152         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30153         printf("*** so that the correct libraries are found at run-time))\n");
30154       }
30155     }
30156   return 1;
30157 }
30158
30159 _ACEOF
30160 rm -f conftest$ac_exeext
30161 if { (ac_try="$ac_link"
30162 case "(($ac_try" in
30163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30164   *) ac_try_echo=$ac_try;;
30165 esac
30166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30167   (eval "$ac_link") 2>&5
30168   ac_status=$?
30169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30171   { (case "(($ac_try" in
30172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30173   *) ac_try_echo=$ac_try;;
30174 esac
30175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30176   (eval "$ac_try") 2>&5
30177   ac_status=$?
30178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179   (exit $ac_status); }; }; then
30180   :
30181 else
30182   echo "$as_me: program exited with status $ac_status" >&5
30183 echo "$as_me: failed program was:" >&5
30184 sed 's/^/| /' conftest.$ac_ext >&5
30185
30186 ( exit $ac_status )
30187 no_gtk=yes
30188 fi
30189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30190 fi
30191
30192
30193        CFLAGS="$ac_save_CFLAGS"
30194        LIBS="$ac_save_LIBS"
30195      fi
30196   fi
30197   if test "x$no_gtk" = x ; then
30198      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30199 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30200      wx_cv_lib_gtk=2.0
30201   else
30202      { echo "$as_me:$LINENO: result: no" >&5
30203 echo "${ECHO_T}no" >&6; }
30204      if test "$PKG_CONFIG" = "no" ; then
30205        echo "*** A new enough version of pkg-config was not found."
30206        echo "*** See http://pkgconfig.sourceforge.net"
30207      else
30208        if test -f conf.gtktest ; then
30209         :
30210        else
30211           echo "*** Could not run GTK+ test program, checking why..."
30212           ac_save_CFLAGS="$CFLAGS"
30213           ac_save_LIBS="$LIBS"
30214           CFLAGS="$CFLAGS $GTK_CFLAGS"
30215           LIBS="$LIBS $GTK_LIBS"
30216           cat >conftest.$ac_ext <<_ACEOF
30217 /* confdefs.h.  */
30218 _ACEOF
30219 cat confdefs.h >>conftest.$ac_ext
30220 cat >>conftest.$ac_ext <<_ACEOF
30221 /* end confdefs.h.  */
30222
30223 #include <gtk/gtk.h>
30224 #include <stdio.h>
30225
30226 int
30227 main ()
30228 {
30229  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30230   ;
30231   return 0;
30232 }
30233 _ACEOF
30234 rm -f conftest.$ac_objext conftest$ac_exeext
30235 if { (ac_try="$ac_link"
30236 case "(($ac_try" in
30237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238   *) ac_try_echo=$ac_try;;
30239 esac
30240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241   (eval "$ac_link") 2>conftest.er1
30242   ac_status=$?
30243   grep -v '^ *+' conftest.er1 >conftest.err
30244   rm -f conftest.er1
30245   cat conftest.err >&5
30246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30247   (exit $ac_status); } && {
30248          test -z "$ac_c_werror_flag" ||
30249          test ! -s conftest.err
30250        } && test -s conftest$ac_exeext &&
30251        $as_test_x conftest$ac_exeext; then
30252    echo "*** The test program compiled, but did not run. This usually means"
30253           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30254           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30255           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30256           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30257           echo "*** is required on your system"
30258           echo "***"
30259           echo "*** If you have an old version installed, it is best to remove it, although"
30260           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30261 else
30262   echo "$as_me: failed program was:" >&5
30263 sed 's/^/| /' conftest.$ac_ext >&5
30264
30265          echo "*** The test program failed to compile or link. See the file config.log for the"
30266           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30267 fi
30268
30269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30270       conftest$ac_exeext conftest.$ac_ext
30271           CFLAGS="$ac_save_CFLAGS"
30272           LIBS="$ac_save_LIBS"
30273        fi
30274      fi
30275      GTK_CFLAGS=""
30276      GTK_LIBS=""
30277      :
30278   fi
30279
30280
30281   rm -f conf.gtktest
30282
30283
30284                                         case "${host}" in
30285                         *-*-solaris2* )
30286                             if test "$wxUSE_SHARED" != "yes"; then
30287                                 GTK_LIBS="$GTK_LIBS -lX11"
30288                             fi
30289                     esac
30290                 fi
30291
30292                                 if test -z "$wx_cv_lib_gtk"; then
30293                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30294
30295 # Check whether --with-gtk-prefix was given.
30296 if test "${with_gtk_prefix+set}" = set; then
30297   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30298 else
30299   gtk_config_prefix=""
30300 fi
30301
30302
30303 # Check whether --with-gtk-exec-prefix was given.
30304 if test "${with_gtk_exec_prefix+set}" = set; then
30305   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30306 else
30307   gtk_config_exec_prefix=""
30308 fi
30309
30310 # Check whether --enable-gtktest was given.
30311 if test "${enable_gtktest+set}" = set; then
30312   enableval=$enable_gtktest;
30313 else
30314   enable_gtktest=yes
30315 fi
30316
30317
30318   for module in . $GTK_MODULES
30319   do
30320       case "$module" in
30321          gthread)
30322              gtk_config_args="$gtk_config_args gthread"
30323          ;;
30324       esac
30325   done
30326
30327   if test x$gtk_config_exec_prefix != x ; then
30328      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30329      if test x${GTK_CONFIG+set} != xset ; then
30330         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30331      fi
30332   fi
30333   if test x$gtk_config_prefix != x ; then
30334      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30335      if test x${GTK_CONFIG+set} != xset ; then
30336         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30337      fi
30338   fi
30339
30340   # Extract the first word of "gtk-config", so it can be a program name with args.
30341 set dummy gtk-config; ac_word=$2
30342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30344 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30345   echo $ECHO_N "(cached) $ECHO_C" >&6
30346 else
30347   case $GTK_CONFIG in
30348   [\\/]* | ?:[\\/]*)
30349   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30350   ;;
30351   *)
30352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30353 for as_dir in $PATH
30354 do
30355   IFS=$as_save_IFS
30356   test -z "$as_dir" && as_dir=.
30357   for ac_exec_ext in '' $ac_executable_extensions; do
30358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30359     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30361     break 2
30362   fi
30363 done
30364 done
30365 IFS=$as_save_IFS
30366
30367   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30368   ;;
30369 esac
30370 fi
30371 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30372 if test -n "$GTK_CONFIG"; then
30373   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30374 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30375 else
30376   { echo "$as_me:$LINENO: result: no" >&5
30377 echo "${ECHO_T}no" >&6; }
30378 fi
30379
30380
30381   min_gtk_version=1.2.7
30382   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30383 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30384   no_gtk=""
30385   if test "$GTK_CONFIG" = "no" ; then
30386     no_gtk=yes
30387   else
30388     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30389     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30390     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30391            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30392     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30393            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30394     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30395            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30396     if test "x$enable_gtktest" = "xyes" ; then
30397       ac_save_CFLAGS="$CFLAGS"
30398       ac_save_LIBS="$LIBS"
30399       CFLAGS="$CFLAGS $GTK_CFLAGS"
30400       LIBS="$GTK_LIBS $LIBS"
30401       rm -f conf.gtktest
30402       if test "$cross_compiling" = yes; then
30403   echo $ac_n "cross compiling; assumed OK... $ac_c"
30404 else
30405   cat >conftest.$ac_ext <<_ACEOF
30406 /* confdefs.h.  */
30407 _ACEOF
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h.  */
30411
30412 #include <gtk/gtk.h>
30413 #include <stdio.h>
30414 #include <stdlib.h>
30415
30416 int
30417 main ()
30418 {
30419   int major, minor, micro;
30420   char *tmp_version;
30421
30422   system ("touch conf.gtktest");
30423
30424   /* HP/UX 9 (%@#!) writes to sscanf strings */
30425   tmp_version = g_strdup("$min_gtk_version");
30426   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30427      printf("%s, bad version string\n", "$min_gtk_version");
30428      exit(1);
30429    }
30430
30431   if ((gtk_major_version != $gtk_config_major_version) ||
30432       (gtk_minor_version != $gtk_config_minor_version) ||
30433       (gtk_micro_version != $gtk_config_micro_version))
30434     {
30435       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30436              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30437              gtk_major_version, gtk_minor_version, gtk_micro_version);
30438       printf ("*** was found! If gtk-config was correct, then it is best\n");
30439       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30440       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30441       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30442       printf("*** required on your system.\n");
30443       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30444       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30445       printf("*** before re-running configure\n");
30446     }
30447 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30448   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30449            (gtk_minor_version != GTK_MINOR_VERSION) ||
30450            (gtk_micro_version != GTK_MICRO_VERSION))
30451     {
30452       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30453              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30454       printf("*** library (version %d.%d.%d)\n",
30455              gtk_major_version, gtk_minor_version, gtk_micro_version);
30456     }
30457 #endif /* defined (GTK_MAJOR_VERSION) ... */
30458   else
30459     {
30460       if ((gtk_major_version > major) ||
30461         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30462         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30463       {
30464         return 0;
30465        }
30466      else
30467       {
30468         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30469                gtk_major_version, gtk_minor_version, gtk_micro_version);
30470         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30471                major, minor, micro);
30472         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30473         printf("***\n");
30474         printf("*** If you have already installed a sufficiently new version, this error\n");
30475         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30476         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30477         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30478         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30479         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30480         printf("*** so that the correct libraries are found at run-time))\n");
30481       }
30482     }
30483   return 1;
30484 }
30485
30486 _ACEOF
30487 rm -f conftest$ac_exeext
30488 if { (ac_try="$ac_link"
30489 case "(($ac_try" in
30490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491   *) ac_try_echo=$ac_try;;
30492 esac
30493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494   (eval "$ac_link") 2>&5
30495   ac_status=$?
30496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30498   { (case "(($ac_try" in
30499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500   *) ac_try_echo=$ac_try;;
30501 esac
30502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503   (eval "$ac_try") 2>&5
30504   ac_status=$?
30505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506   (exit $ac_status); }; }; then
30507   :
30508 else
30509   echo "$as_me: program exited with status $ac_status" >&5
30510 echo "$as_me: failed program was:" >&5
30511 sed 's/^/| /' conftest.$ac_ext >&5
30512
30513 ( exit $ac_status )
30514 no_gtk=yes
30515 fi
30516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30517 fi
30518
30519
30520        CFLAGS="$ac_save_CFLAGS"
30521        LIBS="$ac_save_LIBS"
30522      fi
30523   fi
30524   if test "x$no_gtk" = x ; then
30525      { echo "$as_me:$LINENO: result: yes" >&5
30526 echo "${ECHO_T}yes" >&6; }
30527      wx_cv_lib_gtk=1.2.7
30528   else
30529      { echo "$as_me:$LINENO: result: no" >&5
30530 echo "${ECHO_T}no" >&6; }
30531      if test "$GTK_CONFIG" = "no" ; then
30532        echo "*** The gtk-config script installed by GTK could not be found"
30533        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30534        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30535        echo "*** full path to gtk-config."
30536      else
30537        if test -f conf.gtktest ; then
30538         :
30539        else
30540           echo "*** Could not run GTK test program, checking why..."
30541           CFLAGS="$CFLAGS $GTK_CFLAGS"
30542           LIBS="$LIBS $GTK_LIBS"
30543           cat >conftest.$ac_ext <<_ACEOF
30544 /* confdefs.h.  */
30545 _ACEOF
30546 cat confdefs.h >>conftest.$ac_ext
30547 cat >>conftest.$ac_ext <<_ACEOF
30548 /* end confdefs.h.  */
30549
30550 #include <gtk/gtk.h>
30551 #include <stdio.h>
30552
30553 int
30554 main ()
30555 {
30556  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30557   ;
30558   return 0;
30559 }
30560 _ACEOF
30561 rm -f conftest.$ac_objext conftest$ac_exeext
30562 if { (ac_try="$ac_link"
30563 case "(($ac_try" in
30564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30565   *) ac_try_echo=$ac_try;;
30566 esac
30567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30568   (eval "$ac_link") 2>conftest.er1
30569   ac_status=$?
30570   grep -v '^ *+' conftest.er1 >conftest.err
30571   rm -f conftest.er1
30572   cat conftest.err >&5
30573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574   (exit $ac_status); } && {
30575          test -z "$ac_c_werror_flag" ||
30576          test ! -s conftest.err
30577        } && test -s conftest$ac_exeext &&
30578        $as_test_x conftest$ac_exeext; then
30579    echo "*** The test program compiled, but did not run. This usually means"
30580           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30581           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30582           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30583           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30584           echo "*** is required on your system"
30585           echo "***"
30586           echo "*** If you have an old version installed, it is best to remove it, although"
30587           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30588           echo "***"
30589           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30590           echo "*** came with the system with the command"
30591           echo "***"
30592           echo "***    rpm --erase --nodeps gtk gtk-devel"
30593 else
30594   echo "$as_me: failed program was:" >&5
30595 sed 's/^/| /' conftest.$ac_ext >&5
30596
30597          echo "*** The test program failed to compile or link. See the file config.log for the"
30598           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30599           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30600           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30601 fi
30602
30603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30604       conftest$ac_exeext conftest.$ac_ext
30605           CFLAGS="$ac_save_CFLAGS"
30606           LIBS="$ac_save_LIBS"
30607        fi
30608      fi
30609      GTK_CFLAGS=""
30610      GTK_LIBS=""
30611      :
30612   fi
30613
30614
30615   rm -f conf.gtktest
30616
30617
30618                         if test -z "$wx_cv_lib_gtk"; then
30619
30620 # Check whether --with-gtk-prefix was given.
30621 if test "${with_gtk_prefix+set}" = set; then
30622   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30623 else
30624   gtk_config_prefix=""
30625 fi
30626
30627
30628 # Check whether --with-gtk-exec-prefix was given.
30629 if test "${with_gtk_exec_prefix+set}" = set; then
30630   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30631 else
30632   gtk_config_exec_prefix=""
30633 fi
30634
30635 # Check whether --enable-gtktest was given.
30636 if test "${enable_gtktest+set}" = set; then
30637   enableval=$enable_gtktest;
30638 else
30639   enable_gtktest=yes
30640 fi
30641
30642
30643   for module in . $GTK_MODULES
30644   do
30645       case "$module" in
30646          gthread)
30647              gtk_config_args="$gtk_config_args gthread"
30648          ;;
30649       esac
30650   done
30651
30652   if test x$gtk_config_exec_prefix != x ; then
30653      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30654      if test x${GTK_CONFIG+set} != xset ; then
30655         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30656      fi
30657   fi
30658   if test x$gtk_config_prefix != x ; then
30659      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30660      if test x${GTK_CONFIG+set} != xset ; then
30661         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30662      fi
30663   fi
30664
30665   # Extract the first word of "gtk-config", so it can be a program name with args.
30666 set dummy gtk-config; ac_word=$2
30667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30669 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30670   echo $ECHO_N "(cached) $ECHO_C" >&6
30671 else
30672   case $GTK_CONFIG in
30673   [\\/]* | ?:[\\/]*)
30674   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30675   ;;
30676   *)
30677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30678 for as_dir in $PATH
30679 do
30680   IFS=$as_save_IFS
30681   test -z "$as_dir" && as_dir=.
30682   for ac_exec_ext in '' $ac_executable_extensions; do
30683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30684     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30686     break 2
30687   fi
30688 done
30689 done
30690 IFS=$as_save_IFS
30691
30692   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
30693   ;;
30694 esac
30695 fi
30696 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
30697 if test -n "$GTK_CONFIG"; then
30698   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
30699 echo "${ECHO_T}$GTK_CONFIG" >&6; }
30700 else
30701   { echo "$as_me:$LINENO: result: no" >&5
30702 echo "${ECHO_T}no" >&6; }
30703 fi
30704
30705
30706   min_gtk_version=1.2.3
30707   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
30708 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
30709   no_gtk=""
30710   if test "$GTK_CONFIG" = "no" ; then
30711     no_gtk=yes
30712   else
30713     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
30714     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
30715     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
30716            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30717     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
30718            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30719     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
30720            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30721     if test "x$enable_gtktest" = "xyes" ; then
30722       ac_save_CFLAGS="$CFLAGS"
30723       ac_save_LIBS="$LIBS"
30724       CFLAGS="$CFLAGS $GTK_CFLAGS"
30725       LIBS="$GTK_LIBS $LIBS"
30726       rm -f conf.gtktest
30727       if test "$cross_compiling" = yes; then
30728   echo $ac_n "cross compiling; assumed OK... $ac_c"
30729 else
30730   cat >conftest.$ac_ext <<_ACEOF
30731 /* confdefs.h.  */
30732 _ACEOF
30733 cat confdefs.h >>conftest.$ac_ext
30734 cat >>conftest.$ac_ext <<_ACEOF
30735 /* end confdefs.h.  */
30736
30737 #include <gtk/gtk.h>
30738 #include <stdio.h>
30739 #include <stdlib.h>
30740
30741 int
30742 main ()
30743 {
30744   int major, minor, micro;
30745   char *tmp_version;
30746
30747   system ("touch conf.gtktest");
30748
30749   /* HP/UX 9 (%@#!) writes to sscanf strings */
30750   tmp_version = g_strdup("$min_gtk_version");
30751   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30752      printf("%s, bad version string\n", "$min_gtk_version");
30753      exit(1);
30754    }
30755
30756   if ((gtk_major_version != $gtk_config_major_version) ||
30757       (gtk_minor_version != $gtk_config_minor_version) ||
30758       (gtk_micro_version != $gtk_config_micro_version))
30759     {
30760       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30761              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30762              gtk_major_version, gtk_minor_version, gtk_micro_version);
30763       printf ("*** was found! If gtk-config was correct, then it is best\n");
30764       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30765       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30766       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30767       printf("*** required on your system.\n");
30768       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
30769       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
30770       printf("*** before re-running configure\n");
30771     }
30772 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
30773   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30774            (gtk_minor_version != GTK_MINOR_VERSION) ||
30775            (gtk_micro_version != GTK_MICRO_VERSION))
30776     {
30777       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30778              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30779       printf("*** library (version %d.%d.%d)\n",
30780              gtk_major_version, gtk_minor_version, gtk_micro_version);
30781     }
30782 #endif /* defined (GTK_MAJOR_VERSION) ... */
30783   else
30784     {
30785       if ((gtk_major_version > major) ||
30786         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30787         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30788       {
30789         return 0;
30790        }
30791      else
30792       {
30793         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30794                gtk_major_version, gtk_minor_version, gtk_micro_version);
30795         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30796                major, minor, micro);
30797         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30798         printf("***\n");
30799         printf("*** If you have already installed a sufficiently new version, this error\n");
30800         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
30801         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30802         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
30803         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
30804         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30805         printf("*** so that the correct libraries are found at run-time))\n");
30806       }
30807     }
30808   return 1;
30809 }
30810
30811 _ACEOF
30812 rm -f conftest$ac_exeext
30813 if { (ac_try="$ac_link"
30814 case "(($ac_try" in
30815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816   *) ac_try_echo=$ac_try;;
30817 esac
30818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819   (eval "$ac_link") 2>&5
30820   ac_status=$?
30821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30823   { (case "(($ac_try" in
30824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825   *) ac_try_echo=$ac_try;;
30826 esac
30827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828   (eval "$ac_try") 2>&5
30829   ac_status=$?
30830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831   (exit $ac_status); }; }; then
30832   :
30833 else
30834   echo "$as_me: program exited with status $ac_status" >&5
30835 echo "$as_me: failed program was:" >&5
30836 sed 's/^/| /' conftest.$ac_ext >&5
30837
30838 ( exit $ac_status )
30839 no_gtk=yes
30840 fi
30841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30842 fi
30843
30844
30845        CFLAGS="$ac_save_CFLAGS"
30846        LIBS="$ac_save_LIBS"
30847      fi
30848   fi
30849   if test "x$no_gtk" = x ; then
30850      { echo "$as_me:$LINENO: result: yes" >&5
30851 echo "${ECHO_T}yes" >&6; }
30852      wx_cv_lib_gtk=1.2.3
30853   else
30854      { echo "$as_me:$LINENO: result: no" >&5
30855 echo "${ECHO_T}no" >&6; }
30856      if test "$GTK_CONFIG" = "no" ; then
30857        echo "*** The gtk-config script installed by GTK could not be found"
30858        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
30859        echo "*** your path, or set the GTK_CONFIG environment variable to the"
30860        echo "*** full path to gtk-config."
30861      else
30862        if test -f conf.gtktest ; then
30863         :
30864        else
30865           echo "*** Could not run GTK test program, checking why..."
30866           CFLAGS="$CFLAGS $GTK_CFLAGS"
30867           LIBS="$LIBS $GTK_LIBS"
30868           cat >conftest.$ac_ext <<_ACEOF
30869 /* confdefs.h.  */
30870 _ACEOF
30871 cat confdefs.h >>conftest.$ac_ext
30872 cat >>conftest.$ac_ext <<_ACEOF
30873 /* end confdefs.h.  */
30874
30875 #include <gtk/gtk.h>
30876 #include <stdio.h>
30877
30878 int
30879 main ()
30880 {
30881  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30882   ;
30883   return 0;
30884 }
30885 _ACEOF
30886 rm -f conftest.$ac_objext conftest$ac_exeext
30887 if { (ac_try="$ac_link"
30888 case "(($ac_try" in
30889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890   *) ac_try_echo=$ac_try;;
30891 esac
30892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893   (eval "$ac_link") 2>conftest.er1
30894   ac_status=$?
30895   grep -v '^ *+' conftest.er1 >conftest.err
30896   rm -f conftest.er1
30897   cat conftest.err >&5
30898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30899   (exit $ac_status); } && {
30900          test -z "$ac_c_werror_flag" ||
30901          test ! -s conftest.err
30902        } && test -s conftest$ac_exeext &&
30903        $as_test_x conftest$ac_exeext; then
30904    echo "*** The test program compiled, but did not run. This usually means"
30905           echo "*** that the run-time linker is not finding GTK or finding the wrong"
30906           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
30907           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30908           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30909           echo "*** is required on your system"
30910           echo "***"
30911           echo "*** If you have an old version installed, it is best to remove it, although"
30912           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30913           echo "***"
30914           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
30915           echo "*** came with the system with the command"
30916           echo "***"
30917           echo "***    rpm --erase --nodeps gtk gtk-devel"
30918 else
30919   echo "$as_me: failed program was:" >&5
30920 sed 's/^/| /' conftest.$ac_ext >&5
30921
30922          echo "*** The test program failed to compile or link. See the file config.log for the"
30923           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
30924           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
30925           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
30926 fi
30927
30928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30929       conftest$ac_exeext conftest.$ac_ext
30930           CFLAGS="$ac_save_CFLAGS"
30931           LIBS="$ac_save_LIBS"
30932        fi
30933      fi
30934      GTK_CFLAGS=""
30935      GTK_LIBS=""
30936      :
30937   fi
30938
30939
30940   rm -f conf.gtktest
30941
30942                         fi
30943                     fi
30944                 fi
30945
30946                 if test -z "$wx_cv_lib_gtk"; then
30947                                         wx_cv_lib_gtk=none
30948                 else
30949                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
30950                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
30951                 fi
30952
30953
30954 fi
30955
30956
30957                         if test "$gtk_version_cached" = 1; then
30958             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
30959 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
30960         fi
30961
30962         case "$wx_cv_lib_gtk" in
30963             2.0)    WXGTK20=1
30964                     TOOLKIT_VERSION=2
30965                     ;;
30966             1.2.7)  WXGTK127=1
30967                     WXGTK12=1
30968                     ;;
30969             1.2.3)  WXGTK12=1
30970                     ;;
30971             *)      { { echo "$as_me:$LINENO: error:
30972 The development files for GTK+ were not found. For GTK+ 2, please
30973 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30974 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30975 and that the version is 1.2.3 or above. Also check that the
30976 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30977 --libs' are in the LD_LIBRARY_PATH or equivalent.
30978                             " >&5
30979 echo "$as_me: error:
30980 The development files for GTK+ were not found. For GTK+ 2, please
30981 ensure that pkg-config is in the path and that gtk+-2.0.pc is
30982 installed. For GTK+ 1.2 please check that gtk-config is in the path,
30983 and that the version is 1.2.3 or above. Also check that the
30984 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
30985 --libs' are in the LD_LIBRARY_PATH or equivalent.
30986                             " >&2;}
30987    { (exit 1); exit 1; }; }
30988                     ;;
30989         esac
30990
30991         if test "$WXGTK20" = 1; then
30992             save_CFLAGS="$CFLAGS"
30993             save_LIBS="$LIBS"
30994             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
30995             LIBS="$LIBS $wx_cv_libs_gtk"
30996
30997                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
30998 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
30999 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
31000   echo $ECHO_N "(cached) $ECHO_C" >&6
31001 else
31002   cat >conftest.$ac_ext <<_ACEOF
31003 /* confdefs.h.  */
31004 _ACEOF
31005 cat confdefs.h >>conftest.$ac_ext
31006 cat >>conftest.$ac_ext <<_ACEOF
31007 /* end confdefs.h.  */
31008 #include <gtk/gtk.h>
31009
31010 int
31011 main ()
31012 {
31013 #ifndef gtk_icon_size_lookup
31014   (void) gtk_icon_size_lookup;
31015 #endif
31016
31017   ;
31018   return 0;
31019 }
31020 _ACEOF
31021 rm -f conftest.$ac_objext
31022 if { (ac_try="$ac_compile"
31023 case "(($ac_try" in
31024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31025   *) ac_try_echo=$ac_try;;
31026 esac
31027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31028   (eval "$ac_compile") 2>conftest.er1
31029   ac_status=$?
31030   grep -v '^ *+' conftest.er1 >conftest.err
31031   rm -f conftest.er1
31032   cat conftest.err >&5
31033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034   (exit $ac_status); } && {
31035          test -z "$ac_c_werror_flag" ||
31036          test ! -s conftest.err
31037        } && test -s conftest.$ac_objext; then
31038   ac_cv_have_decl_gtk_icon_size_lookup=yes
31039 else
31040   echo "$as_me: failed program was:" >&5
31041 sed 's/^/| /' conftest.$ac_ext >&5
31042
31043         ac_cv_have_decl_gtk_icon_size_lookup=no
31044 fi
31045
31046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31047 fi
31048 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
31049 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
31050 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
31051
31052 cat >>confdefs.h <<_ACEOF
31053 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
31054 _ACEOF
31055
31056
31057 else
31058   cat >>confdefs.h <<_ACEOF
31059 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
31060 _ACEOF
31061
31062 cat >>confdefs.h <<\_ACEOF
31063 #define NEED_GTK_ICON_SIZE_LOOKUP 1
31064 _ACEOF
31065
31066 fi
31067
31068
31069
31070
31071                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31072 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31073             cat >conftest.$ac_ext <<_ACEOF
31074 /* confdefs.h.  */
31075 _ACEOF
31076 cat confdefs.h >>conftest.$ac_ext
31077 cat >>conftest.$ac_ext <<_ACEOF
31078 /* end confdefs.h.  */
31079
31080                             #include <gtk/gtk.h>
31081
31082 int
31083 main ()
31084 {
31085
31086                             #if !GTK_CHECK_VERSION(2,10,0)
31087                             Not GTK+ 2.10
31088                             #endif
31089
31090   ;
31091   return 0;
31092 }
31093 _ACEOF
31094 rm -f conftest.$ac_objext
31095 if { (ac_try="$ac_compile"
31096 case "(($ac_try" in
31097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31098   *) ac_try_echo=$ac_try;;
31099 esac
31100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31101   (eval "$ac_compile") 2>conftest.er1
31102   ac_status=$?
31103   grep -v '^ *+' conftest.er1 >conftest.err
31104   rm -f conftest.er1
31105   cat conftest.err >&5
31106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107   (exit $ac_status); } && {
31108          test -z "$ac_c_werror_flag" ||
31109          test ! -s conftest.err
31110        } && test -s conftest.$ac_objext; then
31111
31112                             cat >>confdefs.h <<\_ACEOF
31113 #define __WXGTK210__ 1
31114 _ACEOF
31115
31116                             cat >>confdefs.h <<\_ACEOF
31117 #define __WXGTK26__ 1
31118 _ACEOF
31119
31120                             cat >>confdefs.h <<\_ACEOF
31121 #define __WXGTK24__ 1
31122 _ACEOF
31123
31124                             { echo "$as_me:$LINENO: result: yes" >&5
31125 echo "${ECHO_T}yes" >&6; }
31126                             ac_wxgtk210=1
31127
31128 else
31129   echo "$as_me: failed program was:" >&5
31130 sed 's/^/| /' conftest.$ac_ext >&5
31131
31132
31133                             { echo "$as_me:$LINENO: result: no" >&5
31134 echo "${ECHO_T}no" >&6; }
31135                             ac_wxgtk210=0
31136
31137 fi
31138
31139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31140
31141             if test "$ac_wxgtk210" = 0; then
31142                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31143 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31144                 cat >conftest.$ac_ext <<_ACEOF
31145 /* confdefs.h.  */
31146 _ACEOF
31147 cat confdefs.h >>conftest.$ac_ext
31148 cat >>conftest.$ac_ext <<_ACEOF
31149 /* end confdefs.h.  */
31150
31151                                 #include <gtk/gtk.h>
31152
31153 int
31154 main ()
31155 {
31156
31157                                 #if !GTK_CHECK_VERSION(2,6,0)
31158                                 Not GTK+ 2.6
31159                                 #endif
31160
31161   ;
31162   return 0;
31163 }
31164 _ACEOF
31165 rm -f conftest.$ac_objext
31166 if { (ac_try="$ac_compile"
31167 case "(($ac_try" in
31168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31169   *) ac_try_echo=$ac_try;;
31170 esac
31171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31172   (eval "$ac_compile") 2>conftest.er1
31173   ac_status=$?
31174   grep -v '^ *+' conftest.er1 >conftest.err
31175   rm -f conftest.er1
31176   cat conftest.err >&5
31177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178   (exit $ac_status); } && {
31179          test -z "$ac_c_werror_flag" ||
31180          test ! -s conftest.err
31181        } && test -s conftest.$ac_objext; then
31182
31183                                 cat >>confdefs.h <<\_ACEOF
31184 #define __WXGTK26__ 1
31185 _ACEOF
31186
31187                                 cat >>confdefs.h <<\_ACEOF
31188 #define __WXGTK24__ 1
31189 _ACEOF
31190
31191                                 { echo "$as_me:$LINENO: result: yes" >&5
31192 echo "${ECHO_T}yes" >&6; }
31193                                 ac_wxgtk26=1
31194
31195 else
31196   echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31198
31199
31200                                 { echo "$as_me:$LINENO: result: no" >&5
31201 echo "${ECHO_T}no" >&6; }
31202                                 ac_wxgtk26=0
31203
31204 fi
31205
31206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31207             fi
31208
31209             if test "$ac_wxgtk26" = 0; then
31210                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
31211 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
31212                 cat >conftest.$ac_ext <<_ACEOF
31213 /* confdefs.h.  */
31214 _ACEOF
31215 cat confdefs.h >>conftest.$ac_ext
31216 cat >>conftest.$ac_ext <<_ACEOF
31217 /* end confdefs.h.  */
31218
31219                                 #include <gtk/gtk.h>
31220
31221 int
31222 main ()
31223 {
31224
31225                                 #if !GTK_CHECK_VERSION(2,4,0)
31226                                 Not GTK+ 2.4
31227                                 #endif
31228
31229   ;
31230   return 0;
31231 }
31232 _ACEOF
31233 rm -f conftest.$ac_objext
31234 if { (ac_try="$ac_compile"
31235 case "(($ac_try" in
31236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31237   *) ac_try_echo=$ac_try;;
31238 esac
31239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31240   (eval "$ac_compile") 2>conftest.er1
31241   ac_status=$?
31242   grep -v '^ *+' conftest.er1 >conftest.err
31243   rm -f conftest.er1
31244   cat conftest.err >&5
31245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246   (exit $ac_status); } && {
31247          test -z "$ac_c_werror_flag" ||
31248          test ! -s conftest.err
31249        } && test -s conftest.$ac_objext; then
31250
31251                                 cat >>confdefs.h <<\_ACEOF
31252 #define __WXGTK24__ 1
31253 _ACEOF
31254
31255                                 { echo "$as_me:$LINENO: result: yes" >&5
31256 echo "${ECHO_T}yes" >&6; }
31257
31258 else
31259   echo "$as_me: failed program was:" >&5
31260 sed 's/^/| /' conftest.$ac_ext >&5
31261
31262
31263                                 { echo "$as_me:$LINENO: result: no" >&5
31264 echo "${ECHO_T}no" >&6; }
31265
31266 fi
31267
31268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31269             fi
31270
31271             CFLAGS="$save_CFLAGS"
31272             LIBS="$save_LIBS"
31273         else
31274             if test "$wxUSE_UNICODE" = "yes"; then
31275                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31276 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31277                 wxUSE_UNICODE=no
31278             fi
31279
31280                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31281 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31282 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31283   echo $ECHO_N "(cached) $ECHO_C" >&6
31284 else
31285   ac_check_lib_save_LIBS=$LIBS
31286 LIBS="-lgdk  $LIBS"
31287 cat >conftest.$ac_ext <<_ACEOF
31288 /* confdefs.h.  */
31289 _ACEOF
31290 cat confdefs.h >>conftest.$ac_ext
31291 cat >>conftest.$ac_ext <<_ACEOF
31292 /* end confdefs.h.  */
31293
31294 /* Override any GCC internal prototype to avoid an error.
31295    Use char because int might match the return type of a GCC
31296    builtin and then its argument prototype would still apply.  */
31297 #ifdef __cplusplus
31298 extern "C"
31299 #endif
31300 char gdk_im_open ();
31301 int
31302 main ()
31303 {
31304 return gdk_im_open ();
31305   ;
31306   return 0;
31307 }
31308 _ACEOF
31309 rm -f conftest.$ac_objext conftest$ac_exeext
31310 if { (ac_try="$ac_link"
31311 case "(($ac_try" in
31312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313   *) ac_try_echo=$ac_try;;
31314 esac
31315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316   (eval "$ac_link") 2>conftest.er1
31317   ac_status=$?
31318   grep -v '^ *+' conftest.er1 >conftest.err
31319   rm -f conftest.er1
31320   cat conftest.err >&5
31321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322   (exit $ac_status); } && {
31323          test -z "$ac_c_werror_flag" ||
31324          test ! -s conftest.err
31325        } && test -s conftest$ac_exeext &&
31326        $as_test_x conftest$ac_exeext; then
31327   ac_cv_lib_gdk_gdk_im_open=yes
31328 else
31329   echo "$as_me: failed program was:" >&5
31330 sed 's/^/| /' conftest.$ac_ext >&5
31331
31332         ac_cv_lib_gdk_gdk_im_open=no
31333 fi
31334
31335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31336       conftest$ac_exeext conftest.$ac_ext
31337 LIBS=$ac_check_lib_save_LIBS
31338 fi
31339 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31340 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31341 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31342   cat >>confdefs.h <<\_ACEOF
31343 #define HAVE_XIM 1
31344 _ACEOF
31345
31346 fi
31347
31348
31349                                     if test "$USE_DARWIN" != 1; then
31350
31351 for ac_func in poll
31352 do
31353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31357   echo $ECHO_N "(cached) $ECHO_C" >&6
31358 else
31359   cat >conftest.$ac_ext <<_ACEOF
31360 /* confdefs.h.  */
31361 _ACEOF
31362 cat confdefs.h >>conftest.$ac_ext
31363 cat >>conftest.$ac_ext <<_ACEOF
31364 /* end confdefs.h.  */
31365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31367 #define $ac_func innocuous_$ac_func
31368
31369 /* System header to define __stub macros and hopefully few prototypes,
31370     which can conflict with char $ac_func (); below.
31371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31372     <limits.h> exists even on freestanding compilers.  */
31373
31374 #ifdef __STDC__
31375 # include <limits.h>
31376 #else
31377 # include <assert.h>
31378 #endif
31379
31380 #undef $ac_func
31381
31382 /* Override any GCC internal prototype to avoid an error.
31383    Use char because int might match the return type of a GCC
31384    builtin and then its argument prototype would still apply.  */
31385 #ifdef __cplusplus
31386 extern "C"
31387 #endif
31388 char $ac_func ();
31389 /* The GNU C library defines this for functions which it implements
31390     to always fail with ENOSYS.  Some functions are actually named
31391     something starting with __ and the normal name is an alias.  */
31392 #if defined __stub_$ac_func || defined __stub___$ac_func
31393 choke me
31394 #endif
31395
31396 int
31397 main ()
31398 {
31399 return $ac_func ();
31400   ;
31401   return 0;
31402 }
31403 _ACEOF
31404 rm -f conftest.$ac_objext conftest$ac_exeext
31405 if { (ac_try="$ac_link"
31406 case "(($ac_try" in
31407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408   *) ac_try_echo=$ac_try;;
31409 esac
31410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411   (eval "$ac_link") 2>conftest.er1
31412   ac_status=$?
31413   grep -v '^ *+' conftest.er1 >conftest.err
31414   rm -f conftest.er1
31415   cat conftest.err >&5
31416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417   (exit $ac_status); } && {
31418          test -z "$ac_c_werror_flag" ||
31419          test ! -s conftest.err
31420        } && test -s conftest$ac_exeext &&
31421        $as_test_x conftest$ac_exeext; then
31422   eval "$as_ac_var=yes"
31423 else
31424   echo "$as_me: failed program was:" >&5
31425 sed 's/^/| /' conftest.$ac_ext >&5
31426
31427         eval "$as_ac_var=no"
31428 fi
31429
31430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31431       conftest$ac_exeext conftest.$ac_ext
31432 fi
31433 ac_res=`eval echo '${'$as_ac_var'}'`
31434                { echo "$as_me:$LINENO: result: $ac_res" >&5
31435 echo "${ECHO_T}$ac_res" >&6; }
31436 if test `eval echo '${'$as_ac_var'}'` = yes; then
31437   cat >>confdefs.h <<_ACEOF
31438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31439 _ACEOF
31440
31441 fi
31442 done
31443
31444             fi
31445         fi
31446
31447         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
31448         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
31449
31450         AFMINSTALL=afminstall
31451         TOOLKIT=GTK
31452         GUIDIST=GTK_DIST
31453
31454                 if test "$wxUSE_GPE" = "yes"; then
31455             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
31456 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
31457
31458   ac_find_libraries=
31459   for ac_dir in $SEARCH_LIB;
31460   do
31461     for ac_extension in a so sl dylib dll.a; do
31462       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
31463         ac_find_libraries=$ac_dir
31464         break 2
31465       fi
31466     done
31467   done
31468
31469             if test "$ac_find_libraries" != "" ; then
31470
31471     if test "$ac_find_libraries" = "default location"; then
31472     ac_path_to_link=""
31473   else
31474     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31475     result=$?
31476     if test $result = 0; then
31477       ac_path_to_link=""
31478     else
31479       ac_path_to_link=" -L$ac_find_libraries"
31480     fi
31481   fi
31482
31483                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
31484                 WXGPE=1
31485                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31486 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31487             else
31488                 { echo "$as_me:$LINENO: result: not found" >&5
31489 echo "${ECHO_T}not found" >&6; }
31490             fi
31491
31492                                                                                                                     fi
31493     fi
31494
31495     if test "$wxUSE_MGL" = 1; then
31496        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
31497 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
31498         if test "x$MGL_ROOT" = x ; then
31499             { echo "$as_me:$LINENO: result: not found" >&5
31500 echo "${ECHO_T}not found" >&6; }
31501             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
31502 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
31503    { (exit 1); exit 1; }; }
31504         else
31505             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
31506 echo "${ECHO_T}$MGL_ROOT" >&6; }
31507         fi
31508
31509         { echo "$as_me:$LINENO: checking for libmgl location" >&5
31510 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
31511                                 case "${host}" in
31512             *-*-linux* )
31513                                           if test "x$wxUSE_SHARED" = xyes ; then
31514                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
31515               else
31516                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
31517               fi
31518               ;;
31519             *-pc-msdosdjgpp )
31520               mgl_os_candidates="dos32/dj2"
31521               ;;
31522             *)
31523               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
31524 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
31525    { (exit 1); exit 1; }; }
31526         esac
31527
31528         mgl_lib_type=""
31529         mgl_os=""
31530
31531         for mgl_os_i in $mgl_os_candidates ; do
31532             if test "x$mgl_os" = x ; then
31533                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
31534                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
31535                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
31536                         mgl_lib_type=debug
31537                         mgl_os=$mgl_os_i
31538                     fi
31539                 fi
31540                 if test "x$mgl_lib_type" = x ; then
31541                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
31542                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
31543                         mgl_lib_type=release
31544                         mgl_os=$mgl_os_i
31545                     fi
31546                 fi
31547             fi
31548         done
31549
31550         if test "x$mgl_os" = x ; then
31551             { echo "$as_me:$LINENO: result: not found" >&5
31552 echo "${ECHO_T}not found" >&6; }
31553             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
31554 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
31555    { (exit 1); exit 1; }; }
31556         fi
31557         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
31558 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
31559
31560         wxUSE_UNIVERSAL="yes"
31561
31562         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
31563         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
31564
31565         AFMINSTALL=afminstall
31566         TOOLKIT=MGL
31567         GUIDIST=MGL_DIST
31568     fi
31569
31570     if test "$wxUSE_DFB" = 1; then
31571
31572
31573 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31574         if test -n "$ac_tool_prefix"; then
31575   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31576 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31579 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31580   echo $ECHO_N "(cached) $ECHO_C" >&6
31581 else
31582   case $PKG_CONFIG in
31583   [\\/]* | ?:[\\/]*)
31584   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31585   ;;
31586   *)
31587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31588 for as_dir in $PATH
31589 do
31590   IFS=$as_save_IFS
31591   test -z "$as_dir" && as_dir=.
31592   for ac_exec_ext in '' $ac_executable_extensions; do
31593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31594     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31596     break 2
31597   fi
31598 done
31599 done
31600 IFS=$as_save_IFS
31601
31602   ;;
31603 esac
31604 fi
31605 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31606 if test -n "$PKG_CONFIG"; then
31607   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31608 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31609 else
31610   { echo "$as_me:$LINENO: result: no" >&5
31611 echo "${ECHO_T}no" >&6; }
31612 fi
31613
31614
31615 fi
31616 if test -z "$ac_cv_path_PKG_CONFIG"; then
31617   ac_pt_PKG_CONFIG=$PKG_CONFIG
31618   # Extract the first word of "pkg-config", so it can be a program name with args.
31619 set dummy pkg-config; ac_word=$2
31620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31622 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31623   echo $ECHO_N "(cached) $ECHO_C" >&6
31624 else
31625   case $ac_pt_PKG_CONFIG in
31626   [\\/]* | ?:[\\/]*)
31627   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31628   ;;
31629   *)
31630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31631 for as_dir in $PATH
31632 do
31633   IFS=$as_save_IFS
31634   test -z "$as_dir" && as_dir=.
31635   for ac_exec_ext in '' $ac_executable_extensions; do
31636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31637     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31639     break 2
31640   fi
31641 done
31642 done
31643 IFS=$as_save_IFS
31644
31645   ;;
31646 esac
31647 fi
31648 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31649 if test -n "$ac_pt_PKG_CONFIG"; then
31650   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31651 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31652 else
31653   { echo "$as_me:$LINENO: result: no" >&5
31654 echo "${ECHO_T}no" >&6; }
31655 fi
31656
31657   if test "x$ac_pt_PKG_CONFIG" = x; then
31658     PKG_CONFIG=""
31659   else
31660     case $cross_compiling:$ac_tool_warned in
31661 yes:)
31662 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31663 whose name does not start with the host triplet.  If you think this
31664 configuration is useful to you, please write to autoconf@gnu.org." >&5
31665 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31666 whose name does not start with the host triplet.  If you think this
31667 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31668 ac_tool_warned=yes ;;
31669 esac
31670     PKG_CONFIG=$ac_pt_PKG_CONFIG
31671   fi
31672 else
31673   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31674 fi
31675
31676 fi
31677 if test -n "$PKG_CONFIG"; then
31678         _pkg_min_version=0.9.0
31679         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31680 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31681         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31682                 { echo "$as_me:$LINENO: result: yes" >&5
31683 echo "${ECHO_T}yes" >&6; }
31684         else
31685                 { echo "$as_me:$LINENO: result: no" >&5
31686 echo "${ECHO_T}no" >&6; }
31687                 PKG_CONFIG=""
31688         fi
31689
31690 fi
31691
31692
31693 pkg_failed=no
31694 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
31695 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
31696
31697 if test -n "$PKG_CONFIG"; then
31698     if test -n "$DIRECTFB_CFLAGS"; then
31699         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
31700     else
31701         if test -n "$PKG_CONFIG" && \
31702     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31703   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31704   ac_status=$?
31705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706   (exit $ac_status); }; then
31707   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
31708 else
31709   pkg_failed=yes
31710 fi
31711     fi
31712 else
31713         pkg_failed=untried
31714 fi
31715 if test -n "$PKG_CONFIG"; then
31716     if test -n "$DIRECTFB_LIBS"; then
31717         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
31718     else
31719         if test -n "$PKG_CONFIG" && \
31720     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
31721   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
31722   ac_status=$?
31723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724   (exit $ac_status); }; then
31725   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
31726 else
31727   pkg_failed=yes
31728 fi
31729     fi
31730 else
31731         pkg_failed=untried
31732 fi
31733
31734
31735
31736 if test $pkg_failed = yes; then
31737
31738 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31739         _pkg_short_errors_supported=yes
31740 else
31741         _pkg_short_errors_supported=no
31742 fi
31743         if test $_pkg_short_errors_supported = yes; then
31744                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31745         else
31746                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
31747         fi
31748         # Put the nasty error message in config.log where it belongs
31749         echo "$DIRECTFB_PKG_ERRORS" >&5
31750
31751
31752                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31753 echo "$as_me: error: DirectFB not found." >&2;}
31754    { (exit 1); exit 1; }; }
31755
31756
31757 elif test $pkg_failed = untried; then
31758
31759                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
31760 echo "$as_me: error: DirectFB not found." >&2;}
31761    { (exit 1); exit 1; }; }
31762
31763
31764 else
31765         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
31766         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
31767         { echo "$as_me:$LINENO: result: yes" >&5
31768 echo "${ECHO_T}yes" >&6; }
31769
31770                            wxUSE_UNIVERSAL="yes"
31771                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
31772                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
31773                            TOOLKIT=DFB
31774                            GUIDIST=DFB_DIST
31775
31776 fi
31777     fi
31778
31779     if test "$wxUSE_MICROWIN" = 1; then
31780         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
31781 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
31782         if test "x$MICROWINDOWS" = x ; then
31783             { echo "$as_me:$LINENO: result: not found" >&5
31784 echo "${ECHO_T}not found" >&6; }
31785             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
31786 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
31787    { (exit 1); exit 1; }; }
31788         else
31789             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
31790 echo "${ECHO_T}$MICROWINDOWS" >&6; }
31791         fi
31792
31793         if test -f $MICROWINDOWS/lib/libmwin.a; then
31794             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
31795 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
31796         else
31797             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
31798 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
31799    { (exit 1); exit 1; }; }
31800         fi
31801
31802         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
31803         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
31804
31805         wxUSE_UNIVERSAL="yes"
31806
31807         AFMINSTALL=afminstall
31808         TOOLKIT=MICROWIN
31809         GUIDIST=MICROWIN_DIST
31810
31811         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
31812     fi
31813
31814         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
31815                                 { echo "$as_me:$LINENO: checking for X" >&5
31816 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
31817
31818
31819 # Check whether --with-x was given.
31820 if test "${with_x+set}" = set; then
31821   withval=$with_x;
31822 fi
31823
31824 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
31825 if test "x$with_x" = xno; then
31826   # The user explicitly disabled X.
31827   have_x=disabled
31828 else
31829   case $x_includes,$x_libraries in #(
31830     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
31831 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
31832    { (exit 1); exit 1; }; };; #(
31833     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
31834   echo $ECHO_N "(cached) $ECHO_C" >&6
31835 else
31836   # One or both of the vars are not set, and there is no cached value.
31837 ac_x_includes=no ac_x_libraries=no
31838 rm -f -r conftest.dir
31839 if mkdir conftest.dir; then
31840   cd conftest.dir
31841   cat >Imakefile <<'_ACEOF'
31842 incroot:
31843         @echo incroot='${INCROOT}'
31844 usrlibdir:
31845         @echo usrlibdir='${USRLIBDIR}'
31846 libdir:
31847         @echo libdir='${LIBDIR}'
31848 _ACEOF
31849   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
31850     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
31851     for ac_var in incroot usrlibdir libdir; do
31852       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
31853     done
31854     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
31855     for ac_extension in a so sl; do
31856       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
31857          test -f "$ac_im_libdir/libX11.$ac_extension"; then
31858         ac_im_usrlibdir=$ac_im_libdir; break
31859       fi
31860     done
31861     # Screen out bogus values from the imake configuration.  They are
31862     # bogus both because they are the default anyway, and because
31863     # using them would break gcc on systems where it needs fixed includes.
31864     case $ac_im_incroot in
31865         /usr/include) ac_x_includes= ;;
31866         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
31867     esac
31868     case $ac_im_usrlibdir in
31869         /usr/lib | /lib) ;;
31870         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
31871     esac
31872   fi
31873   cd ..
31874   rm -f -r conftest.dir
31875 fi
31876
31877 # Standard set of common directories for X headers.
31878 # Check X11 before X11Rn because it is often a symlink to the current release.
31879 ac_x_header_dirs='
31880 /usr/X11/include
31881 /usr/X11R6/include
31882 /usr/X11R5/include
31883 /usr/X11R4/include
31884
31885 /usr/include/X11
31886 /usr/include/X11R6
31887 /usr/include/X11R5
31888 /usr/include/X11R4
31889
31890 /usr/local/X11/include
31891 /usr/local/X11R6/include
31892 /usr/local/X11R5/include
31893 /usr/local/X11R4/include
31894
31895 /usr/local/include/X11
31896 /usr/local/include/X11R6
31897 /usr/local/include/X11R5
31898 /usr/local/include/X11R4
31899
31900 /usr/X386/include
31901 /usr/x386/include
31902 /usr/XFree86/include/X11
31903
31904 /usr/include
31905 /usr/local/include
31906 /usr/unsupported/include
31907 /usr/athena/include
31908 /usr/local/x11r5/include
31909 /usr/lpp/Xamples/include
31910
31911 /usr/openwin/include
31912 /usr/openwin/share/include'
31913
31914 if test "$ac_x_includes" = no; then
31915   # Guess where to find include files, by looking for Xlib.h.
31916   # First, try using that file with no special directory specified.
31917   cat >conftest.$ac_ext <<_ACEOF
31918 /* confdefs.h.  */
31919 _ACEOF
31920 cat confdefs.h >>conftest.$ac_ext
31921 cat >>conftest.$ac_ext <<_ACEOF
31922 /* end confdefs.h.  */
31923 #include <X11/Xlib.h>
31924 _ACEOF
31925 if { (ac_try="$ac_cpp conftest.$ac_ext"
31926 case "(($ac_try" in
31927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31928   *) ac_try_echo=$ac_try;;
31929 esac
31930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31932   ac_status=$?
31933   grep -v '^ *+' conftest.er1 >conftest.err
31934   rm -f conftest.er1
31935   cat conftest.err >&5
31936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31937   (exit $ac_status); } >/dev/null && {
31938          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31939          test ! -s conftest.err
31940        }; then
31941   # We can compile using X headers with no special include directory.
31942 ac_x_includes=
31943 else
31944   echo "$as_me: failed program was:" >&5
31945 sed 's/^/| /' conftest.$ac_ext >&5
31946
31947   for ac_dir in $ac_x_header_dirs; do
31948   if test -r "$ac_dir/X11/Xlib.h"; then
31949     ac_x_includes=$ac_dir
31950     break
31951   fi
31952 done
31953 fi
31954
31955 rm -f conftest.err conftest.$ac_ext
31956 fi # $ac_x_includes = no
31957
31958 if test "$ac_x_libraries" = no; then
31959   # Check for the libraries.
31960   # See if we find them without any special options.
31961   # Don't add to $LIBS permanently.
31962   ac_save_LIBS=$LIBS
31963   LIBS="-lX11 $LIBS"
31964   cat >conftest.$ac_ext <<_ACEOF
31965 /* confdefs.h.  */
31966 _ACEOF
31967 cat confdefs.h >>conftest.$ac_ext
31968 cat >>conftest.$ac_ext <<_ACEOF
31969 /* end confdefs.h.  */
31970 #include <X11/Xlib.h>
31971 int
31972 main ()
31973 {
31974 XrmInitialize ()
31975   ;
31976   return 0;
31977 }
31978 _ACEOF
31979 rm -f conftest.$ac_objext conftest$ac_exeext
31980 if { (ac_try="$ac_link"
31981 case "(($ac_try" in
31982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31983   *) ac_try_echo=$ac_try;;
31984 esac
31985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31986   (eval "$ac_link") 2>conftest.er1
31987   ac_status=$?
31988   grep -v '^ *+' conftest.er1 >conftest.err
31989   rm -f conftest.er1
31990   cat conftest.err >&5
31991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992   (exit $ac_status); } && {
31993          test -z "$ac_c_werror_flag" ||
31994          test ! -s conftest.err
31995        } && test -s conftest$ac_exeext &&
31996        $as_test_x conftest$ac_exeext; then
31997   LIBS=$ac_save_LIBS
31998 # We can link X programs with no special library path.
31999 ac_x_libraries=
32000 else
32001   echo "$as_me: failed program was:" >&5
32002 sed 's/^/| /' conftest.$ac_ext >&5
32003
32004         LIBS=$ac_save_LIBS
32005 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32006 do
32007   # Don't even attempt the hair of trying to link an X program!
32008   for ac_extension in a so sl; do
32009     if test -r "$ac_dir/libX11.$ac_extension"; then
32010       ac_x_libraries=$ac_dir
32011       break 2
32012     fi
32013   done
32014 done
32015 fi
32016
32017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32018       conftest$ac_exeext conftest.$ac_ext
32019 fi # $ac_x_libraries = no
32020
32021 case $ac_x_includes,$ac_x_libraries in #(
32022   no,* | *,no | *\'*)
32023     # Didn't find X, or a directory has "'" in its name.
32024     ac_cv_have_x="have_x=no";; #(
32025   *)
32026     # Record where we found X for the cache.
32027     ac_cv_have_x="have_x=yes\
32028         ac_x_includes='$ac_x_includes'\
32029         ac_x_libraries='$ac_x_libraries'"
32030 esac
32031 fi
32032 ;; #(
32033     *) have_x=yes;;
32034   esac
32035   eval "$ac_cv_have_x"
32036 fi # $with_x != no
32037
32038 if test "$have_x" != yes; then
32039   { echo "$as_me:$LINENO: result: $have_x" >&5
32040 echo "${ECHO_T}$have_x" >&6; }
32041   no_x=yes
32042 else
32043   # If each of the values was on the command line, it overrides each guess.
32044   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32045   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32046   # Update the cache value to reflect the command line values.
32047   ac_cv_have_x="have_x=yes\
32048         ac_x_includes='$x_includes'\
32049         ac_x_libraries='$x_libraries'"
32050   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32051 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
32052 fi
32053
32054 if test "$no_x" = yes; then
32055   # Not all programs may use this symbol, but it does not hurt to define it.
32056
32057 cat >>confdefs.h <<\_ACEOF
32058 #define X_DISPLAY_MISSING 1
32059 _ACEOF
32060
32061   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32062 else
32063   if test -n "$x_includes"; then
32064     X_CFLAGS="$X_CFLAGS -I$x_includes"
32065   fi
32066
32067   # It would also be nice to do this for all -L options, not just this one.
32068   if test -n "$x_libraries"; then
32069     X_LIBS="$X_LIBS -L$x_libraries"
32070     # For Solaris; some versions of Sun CC require a space after -R and
32071     # others require no space.  Words are not sufficient . . . .
32072     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32073 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32074     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32075     ac_xsave_c_werror_flag=$ac_c_werror_flag
32076     ac_c_werror_flag=yes
32077     cat >conftest.$ac_ext <<_ACEOF
32078 /* confdefs.h.  */
32079 _ACEOF
32080 cat confdefs.h >>conftest.$ac_ext
32081 cat >>conftest.$ac_ext <<_ACEOF
32082 /* end confdefs.h.  */
32083
32084 int
32085 main ()
32086 {
32087
32088   ;
32089   return 0;
32090 }
32091 _ACEOF
32092 rm -f conftest.$ac_objext conftest$ac_exeext
32093 if { (ac_try="$ac_link"
32094 case "(($ac_try" in
32095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32096   *) ac_try_echo=$ac_try;;
32097 esac
32098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32099   (eval "$ac_link") 2>conftest.er1
32100   ac_status=$?
32101   grep -v '^ *+' conftest.er1 >conftest.err
32102   rm -f conftest.er1
32103   cat conftest.err >&5
32104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105   (exit $ac_status); } && {
32106          test -z "$ac_c_werror_flag" ||
32107          test ! -s conftest.err
32108        } && test -s conftest$ac_exeext &&
32109        $as_test_x conftest$ac_exeext; then
32110   { echo "$as_me:$LINENO: result: no" >&5
32111 echo "${ECHO_T}no" >&6; }
32112        X_LIBS="$X_LIBS -R$x_libraries"
32113 else
32114   echo "$as_me: failed program was:" >&5
32115 sed 's/^/| /' conftest.$ac_ext >&5
32116
32117         LIBS="$ac_xsave_LIBS -R $x_libraries"
32118        cat >conftest.$ac_ext <<_ACEOF
32119 /* confdefs.h.  */
32120 _ACEOF
32121 cat confdefs.h >>conftest.$ac_ext
32122 cat >>conftest.$ac_ext <<_ACEOF
32123 /* end confdefs.h.  */
32124
32125 int
32126 main ()
32127 {
32128
32129   ;
32130   return 0;
32131 }
32132 _ACEOF
32133 rm -f conftest.$ac_objext conftest$ac_exeext
32134 if { (ac_try="$ac_link"
32135 case "(($ac_try" in
32136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32137   *) ac_try_echo=$ac_try;;
32138 esac
32139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32140   (eval "$ac_link") 2>conftest.er1
32141   ac_status=$?
32142   grep -v '^ *+' conftest.er1 >conftest.err
32143   rm -f conftest.er1
32144   cat conftest.err >&5
32145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146   (exit $ac_status); } && {
32147          test -z "$ac_c_werror_flag" ||
32148          test ! -s conftest.err
32149        } && test -s conftest$ac_exeext &&
32150        $as_test_x conftest$ac_exeext; then
32151   { echo "$as_me:$LINENO: result: yes" >&5
32152 echo "${ECHO_T}yes" >&6; }
32153           X_LIBS="$X_LIBS -R $x_libraries"
32154 else
32155   echo "$as_me: failed program was:" >&5
32156 sed 's/^/| /' conftest.$ac_ext >&5
32157
32158         { echo "$as_me:$LINENO: result: neither works" >&5
32159 echo "${ECHO_T}neither works" >&6; }
32160 fi
32161
32162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32163       conftest$ac_exeext conftest.$ac_ext
32164 fi
32165
32166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32167       conftest$ac_exeext conftest.$ac_ext
32168     ac_c_werror_flag=$ac_xsave_c_werror_flag
32169     LIBS=$ac_xsave_LIBS
32170   fi
32171
32172   # Check for system-dependent libraries X programs must link with.
32173   # Do this before checking for the system-independent R6 libraries
32174   # (-lICE), since we may need -lsocket or whatever for X linking.
32175
32176   if test "$ISC" = yes; then
32177     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32178   else
32179     # Martyn Johnson says this is needed for Ultrix, if the X
32180     # libraries were built with DECnet support.  And Karl Berry says
32181     # the Alpha needs dnet_stub (dnet does not exist).
32182     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32183     cat >conftest.$ac_ext <<_ACEOF
32184 /* confdefs.h.  */
32185 _ACEOF
32186 cat confdefs.h >>conftest.$ac_ext
32187 cat >>conftest.$ac_ext <<_ACEOF
32188 /* end confdefs.h.  */
32189
32190 /* Override any GCC internal prototype to avoid an error.
32191    Use char because int might match the return type of a GCC
32192    builtin and then its argument prototype would still apply.  */
32193 #ifdef __cplusplus
32194 extern "C"
32195 #endif
32196 char XOpenDisplay ();
32197 int
32198 main ()
32199 {
32200 return XOpenDisplay ();
32201   ;
32202   return 0;
32203 }
32204 _ACEOF
32205 rm -f conftest.$ac_objext conftest$ac_exeext
32206 if { (ac_try="$ac_link"
32207 case "(($ac_try" in
32208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209   *) ac_try_echo=$ac_try;;
32210 esac
32211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212   (eval "$ac_link") 2>conftest.er1
32213   ac_status=$?
32214   grep -v '^ *+' conftest.er1 >conftest.err
32215   rm -f conftest.er1
32216   cat conftest.err >&5
32217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218   (exit $ac_status); } && {
32219          test -z "$ac_c_werror_flag" ||
32220          test ! -s conftest.err
32221        } && test -s conftest$ac_exeext &&
32222        $as_test_x conftest$ac_exeext; then
32223   :
32224 else
32225   echo "$as_me: failed program was:" >&5
32226 sed 's/^/| /' conftest.$ac_ext >&5
32227
32228         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32229 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32230 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32231   echo $ECHO_N "(cached) $ECHO_C" >&6
32232 else
32233   ac_check_lib_save_LIBS=$LIBS
32234 LIBS="-ldnet  $LIBS"
32235 cat >conftest.$ac_ext <<_ACEOF
32236 /* confdefs.h.  */
32237 _ACEOF
32238 cat confdefs.h >>conftest.$ac_ext
32239 cat >>conftest.$ac_ext <<_ACEOF
32240 /* end confdefs.h.  */
32241
32242 /* Override any GCC internal prototype to avoid an error.
32243    Use char because int might match the return type of a GCC
32244    builtin and then its argument prototype would still apply.  */
32245 #ifdef __cplusplus
32246 extern "C"
32247 #endif
32248 char dnet_ntoa ();
32249 int
32250 main ()
32251 {
32252 return dnet_ntoa ();
32253   ;
32254   return 0;
32255 }
32256 _ACEOF
32257 rm -f conftest.$ac_objext conftest$ac_exeext
32258 if { (ac_try="$ac_link"
32259 case "(($ac_try" in
32260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32261   *) ac_try_echo=$ac_try;;
32262 esac
32263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32264   (eval "$ac_link") 2>conftest.er1
32265   ac_status=$?
32266   grep -v '^ *+' conftest.er1 >conftest.err
32267   rm -f conftest.er1
32268   cat conftest.err >&5
32269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270   (exit $ac_status); } && {
32271          test -z "$ac_c_werror_flag" ||
32272          test ! -s conftest.err
32273        } && test -s conftest$ac_exeext &&
32274        $as_test_x conftest$ac_exeext; then
32275   ac_cv_lib_dnet_dnet_ntoa=yes
32276 else
32277   echo "$as_me: failed program was:" >&5
32278 sed 's/^/| /' conftest.$ac_ext >&5
32279
32280         ac_cv_lib_dnet_dnet_ntoa=no
32281 fi
32282
32283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32284       conftest$ac_exeext conftest.$ac_ext
32285 LIBS=$ac_check_lib_save_LIBS
32286 fi
32287 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32288 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32289 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32290   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32291 fi
32292
32293     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32294       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32295 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32296 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32297   echo $ECHO_N "(cached) $ECHO_C" >&6
32298 else
32299   ac_check_lib_save_LIBS=$LIBS
32300 LIBS="-ldnet_stub  $LIBS"
32301 cat >conftest.$ac_ext <<_ACEOF
32302 /* confdefs.h.  */
32303 _ACEOF
32304 cat confdefs.h >>conftest.$ac_ext
32305 cat >>conftest.$ac_ext <<_ACEOF
32306 /* end confdefs.h.  */
32307
32308 /* Override any GCC internal prototype to avoid an error.
32309    Use char because int might match the return type of a GCC
32310    builtin and then its argument prototype would still apply.  */
32311 #ifdef __cplusplus
32312 extern "C"
32313 #endif
32314 char dnet_ntoa ();
32315 int
32316 main ()
32317 {
32318 return dnet_ntoa ();
32319   ;
32320   return 0;
32321 }
32322 _ACEOF
32323 rm -f conftest.$ac_objext conftest$ac_exeext
32324 if { (ac_try="$ac_link"
32325 case "(($ac_try" in
32326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32327   *) ac_try_echo=$ac_try;;
32328 esac
32329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32330   (eval "$ac_link") 2>conftest.er1
32331   ac_status=$?
32332   grep -v '^ *+' conftest.er1 >conftest.err
32333   rm -f conftest.er1
32334   cat conftest.err >&5
32335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336   (exit $ac_status); } && {
32337          test -z "$ac_c_werror_flag" ||
32338          test ! -s conftest.err
32339        } && test -s conftest$ac_exeext &&
32340        $as_test_x conftest$ac_exeext; then
32341   ac_cv_lib_dnet_stub_dnet_ntoa=yes
32342 else
32343   echo "$as_me: failed program was:" >&5
32344 sed 's/^/| /' conftest.$ac_ext >&5
32345
32346         ac_cv_lib_dnet_stub_dnet_ntoa=no
32347 fi
32348
32349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32350       conftest$ac_exeext conftest.$ac_ext
32351 LIBS=$ac_check_lib_save_LIBS
32352 fi
32353 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
32354 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32355 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32356   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32357 fi
32358
32359     fi
32360 fi
32361
32362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32363       conftest$ac_exeext conftest.$ac_ext
32364     LIBS="$ac_xsave_LIBS"
32365
32366     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32367     # to get the SysV transport functions.
32368     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32369     # needs -lnsl.
32370     # The nsl library prevents programs from opening the X display
32371     # on Irix 5.2, according to T.E. Dickey.
32372     # The functions gethostbyname, getservbyname, and inet_addr are
32373     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32374     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32375 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32376 if test "${ac_cv_func_gethostbyname+set}" = set; then
32377   echo $ECHO_N "(cached) $ECHO_C" >&6
32378 else
32379   cat >conftest.$ac_ext <<_ACEOF
32380 /* confdefs.h.  */
32381 _ACEOF
32382 cat confdefs.h >>conftest.$ac_ext
32383 cat >>conftest.$ac_ext <<_ACEOF
32384 /* end confdefs.h.  */
32385 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32387 #define gethostbyname innocuous_gethostbyname
32388
32389 /* System header to define __stub macros and hopefully few prototypes,
32390     which can conflict with char gethostbyname (); below.
32391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32392     <limits.h> exists even on freestanding compilers.  */
32393
32394 #ifdef __STDC__
32395 # include <limits.h>
32396 #else
32397 # include <assert.h>
32398 #endif
32399
32400 #undef gethostbyname
32401
32402 /* Override any GCC internal prototype to avoid an error.
32403    Use char because int might match the return type of a GCC
32404    builtin and then its argument prototype would still apply.  */
32405 #ifdef __cplusplus
32406 extern "C"
32407 #endif
32408 char gethostbyname ();
32409 /* The GNU C library defines this for functions which it implements
32410     to always fail with ENOSYS.  Some functions are actually named
32411     something starting with __ and the normal name is an alias.  */
32412 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32413 choke me
32414 #endif
32415
32416 int
32417 main ()
32418 {
32419 return gethostbyname ();
32420   ;
32421   return 0;
32422 }
32423 _ACEOF
32424 rm -f conftest.$ac_objext conftest$ac_exeext
32425 if { (ac_try="$ac_link"
32426 case "(($ac_try" in
32427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32428   *) ac_try_echo=$ac_try;;
32429 esac
32430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32431   (eval "$ac_link") 2>conftest.er1
32432   ac_status=$?
32433   grep -v '^ *+' conftest.er1 >conftest.err
32434   rm -f conftest.er1
32435   cat conftest.err >&5
32436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437   (exit $ac_status); } && {
32438          test -z "$ac_c_werror_flag" ||
32439          test ! -s conftest.err
32440        } && test -s conftest$ac_exeext &&
32441        $as_test_x conftest$ac_exeext; then
32442   ac_cv_func_gethostbyname=yes
32443 else
32444   echo "$as_me: failed program was:" >&5
32445 sed 's/^/| /' conftest.$ac_ext >&5
32446
32447         ac_cv_func_gethostbyname=no
32448 fi
32449
32450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32451       conftest$ac_exeext conftest.$ac_ext
32452 fi
32453 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
32454 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
32455
32456     if test $ac_cv_func_gethostbyname = no; then
32457       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
32458 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
32459 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
32460   echo $ECHO_N "(cached) $ECHO_C" >&6
32461 else
32462   ac_check_lib_save_LIBS=$LIBS
32463 LIBS="-lnsl  $LIBS"
32464 cat >conftest.$ac_ext <<_ACEOF
32465 /* confdefs.h.  */
32466 _ACEOF
32467 cat confdefs.h >>conftest.$ac_ext
32468 cat >>conftest.$ac_ext <<_ACEOF
32469 /* end confdefs.h.  */
32470
32471 /* Override any GCC internal prototype to avoid an error.
32472    Use char because int might match the return type of a GCC
32473    builtin and then its argument prototype would still apply.  */
32474 #ifdef __cplusplus
32475 extern "C"
32476 #endif
32477 char gethostbyname ();
32478 int
32479 main ()
32480 {
32481 return gethostbyname ();
32482   ;
32483   return 0;
32484 }
32485 _ACEOF
32486 rm -f conftest.$ac_objext conftest$ac_exeext
32487 if { (ac_try="$ac_link"
32488 case "(($ac_try" in
32489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32490   *) ac_try_echo=$ac_try;;
32491 esac
32492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32493   (eval "$ac_link") 2>conftest.er1
32494   ac_status=$?
32495   grep -v '^ *+' conftest.er1 >conftest.err
32496   rm -f conftest.er1
32497   cat conftest.err >&5
32498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499   (exit $ac_status); } && {
32500          test -z "$ac_c_werror_flag" ||
32501          test ! -s conftest.err
32502        } && test -s conftest$ac_exeext &&
32503        $as_test_x conftest$ac_exeext; then
32504   ac_cv_lib_nsl_gethostbyname=yes
32505 else
32506   echo "$as_me: failed program was:" >&5
32507 sed 's/^/| /' conftest.$ac_ext >&5
32508
32509         ac_cv_lib_nsl_gethostbyname=no
32510 fi
32511
32512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32513       conftest$ac_exeext conftest.$ac_ext
32514 LIBS=$ac_check_lib_save_LIBS
32515 fi
32516 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
32517 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
32518 if test $ac_cv_lib_nsl_gethostbyname = yes; then
32519   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
32520 fi
32521
32522       if test $ac_cv_lib_nsl_gethostbyname = no; then
32523         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
32524 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
32525 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
32526   echo $ECHO_N "(cached) $ECHO_C" >&6
32527 else
32528   ac_check_lib_save_LIBS=$LIBS
32529 LIBS="-lbsd  $LIBS"
32530 cat >conftest.$ac_ext <<_ACEOF
32531 /* confdefs.h.  */
32532 _ACEOF
32533 cat confdefs.h >>conftest.$ac_ext
32534 cat >>conftest.$ac_ext <<_ACEOF
32535 /* end confdefs.h.  */
32536
32537 /* Override any GCC internal prototype to avoid an error.
32538    Use char because int might match the return type of a GCC
32539    builtin and then its argument prototype would still apply.  */
32540 #ifdef __cplusplus
32541 extern "C"
32542 #endif
32543 char gethostbyname ();
32544 int
32545 main ()
32546 {
32547 return gethostbyname ();
32548   ;
32549   return 0;
32550 }
32551 _ACEOF
32552 rm -f conftest.$ac_objext conftest$ac_exeext
32553 if { (ac_try="$ac_link"
32554 case "(($ac_try" in
32555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32556   *) ac_try_echo=$ac_try;;
32557 esac
32558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32559   (eval "$ac_link") 2>conftest.er1
32560   ac_status=$?
32561   grep -v '^ *+' conftest.er1 >conftest.err
32562   rm -f conftest.er1
32563   cat conftest.err >&5
32564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32565   (exit $ac_status); } && {
32566          test -z "$ac_c_werror_flag" ||
32567          test ! -s conftest.err
32568        } && test -s conftest$ac_exeext &&
32569        $as_test_x conftest$ac_exeext; then
32570   ac_cv_lib_bsd_gethostbyname=yes
32571 else
32572   echo "$as_me: failed program was:" >&5
32573 sed 's/^/| /' conftest.$ac_ext >&5
32574
32575         ac_cv_lib_bsd_gethostbyname=no
32576 fi
32577
32578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32579       conftest$ac_exeext conftest.$ac_ext
32580 LIBS=$ac_check_lib_save_LIBS
32581 fi
32582 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
32583 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
32584 if test $ac_cv_lib_bsd_gethostbyname = yes; then
32585   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
32586 fi
32587
32588       fi
32589     fi
32590
32591     # lieder@skyler.mavd.honeywell.com says without -lsocket,
32592     # socket/setsockopt and other routines are undefined under SCO ODT
32593     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
32594     # on later versions), says Simon Leinen: it contains gethostby*
32595     # variants that don't use the name server (or something).  -lsocket
32596     # must be given before -lnsl if both are needed.  We assume that
32597     # if connect needs -lnsl, so does gethostbyname.
32598     { echo "$as_me:$LINENO: checking for connect" >&5
32599 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
32600 if test "${ac_cv_func_connect+set}" = set; then
32601   echo $ECHO_N "(cached) $ECHO_C" >&6
32602 else
32603   cat >conftest.$ac_ext <<_ACEOF
32604 /* confdefs.h.  */
32605 _ACEOF
32606 cat confdefs.h >>conftest.$ac_ext
32607 cat >>conftest.$ac_ext <<_ACEOF
32608 /* end confdefs.h.  */
32609 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
32610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32611 #define connect innocuous_connect
32612
32613 /* System header to define __stub macros and hopefully few prototypes,
32614     which can conflict with char connect (); below.
32615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32616     <limits.h> exists even on freestanding compilers.  */
32617
32618 #ifdef __STDC__
32619 # include <limits.h>
32620 #else
32621 # include <assert.h>
32622 #endif
32623
32624 #undef connect
32625
32626 /* Override any GCC internal prototype to avoid an error.
32627    Use char because int might match the return type of a GCC
32628    builtin and then its argument prototype would still apply.  */
32629 #ifdef __cplusplus
32630 extern "C"
32631 #endif
32632 char connect ();
32633 /* The GNU C library defines this for functions which it implements
32634     to always fail with ENOSYS.  Some functions are actually named
32635     something starting with __ and the normal name is an alias.  */
32636 #if defined __stub_connect || defined __stub___connect
32637 choke me
32638 #endif
32639
32640 int
32641 main ()
32642 {
32643 return connect ();
32644   ;
32645   return 0;
32646 }
32647 _ACEOF
32648 rm -f conftest.$ac_objext conftest$ac_exeext
32649 if { (ac_try="$ac_link"
32650 case "(($ac_try" in
32651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652   *) ac_try_echo=$ac_try;;
32653 esac
32654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655   (eval "$ac_link") 2>conftest.er1
32656   ac_status=$?
32657   grep -v '^ *+' conftest.er1 >conftest.err
32658   rm -f conftest.er1
32659   cat conftest.err >&5
32660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661   (exit $ac_status); } && {
32662          test -z "$ac_c_werror_flag" ||
32663          test ! -s conftest.err
32664        } && test -s conftest$ac_exeext &&
32665        $as_test_x conftest$ac_exeext; then
32666   ac_cv_func_connect=yes
32667 else
32668   echo "$as_me: failed program was:" >&5
32669 sed 's/^/| /' conftest.$ac_ext >&5
32670
32671         ac_cv_func_connect=no
32672 fi
32673
32674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32675       conftest$ac_exeext conftest.$ac_ext
32676 fi
32677 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
32678 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
32679
32680     if test $ac_cv_func_connect = no; then
32681       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
32682 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
32683 if test "${ac_cv_lib_socket_connect+set}" = set; then
32684   echo $ECHO_N "(cached) $ECHO_C" >&6
32685 else
32686   ac_check_lib_save_LIBS=$LIBS
32687 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
32688 cat >conftest.$ac_ext <<_ACEOF
32689 /* confdefs.h.  */
32690 _ACEOF
32691 cat confdefs.h >>conftest.$ac_ext
32692 cat >>conftest.$ac_ext <<_ACEOF
32693 /* end confdefs.h.  */
32694
32695 /* Override any GCC internal prototype to avoid an error.
32696    Use char because int might match the return type of a GCC
32697    builtin and then its argument prototype would still apply.  */
32698 #ifdef __cplusplus
32699 extern "C"
32700 #endif
32701 char connect ();
32702 int
32703 main ()
32704 {
32705 return connect ();
32706   ;
32707   return 0;
32708 }
32709 _ACEOF
32710 rm -f conftest.$ac_objext conftest$ac_exeext
32711 if { (ac_try="$ac_link"
32712 case "(($ac_try" in
32713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32714   *) ac_try_echo=$ac_try;;
32715 esac
32716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32717   (eval "$ac_link") 2>conftest.er1
32718   ac_status=$?
32719   grep -v '^ *+' conftest.er1 >conftest.err
32720   rm -f conftest.er1
32721   cat conftest.err >&5
32722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723   (exit $ac_status); } && {
32724          test -z "$ac_c_werror_flag" ||
32725          test ! -s conftest.err
32726        } && test -s conftest$ac_exeext &&
32727        $as_test_x conftest$ac_exeext; then
32728   ac_cv_lib_socket_connect=yes
32729 else
32730   echo "$as_me: failed program was:" >&5
32731 sed 's/^/| /' conftest.$ac_ext >&5
32732
32733         ac_cv_lib_socket_connect=no
32734 fi
32735
32736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32737       conftest$ac_exeext conftest.$ac_ext
32738 LIBS=$ac_check_lib_save_LIBS
32739 fi
32740 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
32741 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
32742 if test $ac_cv_lib_socket_connect = yes; then
32743   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
32744 fi
32745
32746     fi
32747
32748     # Guillermo Gomez says -lposix is necessary on A/UX.
32749     { echo "$as_me:$LINENO: checking for remove" >&5
32750 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
32751 if test "${ac_cv_func_remove+set}" = set; then
32752   echo $ECHO_N "(cached) $ECHO_C" >&6
32753 else
32754   cat >conftest.$ac_ext <<_ACEOF
32755 /* confdefs.h.  */
32756 _ACEOF
32757 cat confdefs.h >>conftest.$ac_ext
32758 cat >>conftest.$ac_ext <<_ACEOF
32759 /* end confdefs.h.  */
32760 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
32761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32762 #define remove innocuous_remove
32763
32764 /* System header to define __stub macros and hopefully few prototypes,
32765     which can conflict with char remove (); below.
32766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32767     <limits.h> exists even on freestanding compilers.  */
32768
32769 #ifdef __STDC__
32770 # include <limits.h>
32771 #else
32772 # include <assert.h>
32773 #endif
32774
32775 #undef remove
32776
32777 /* Override any GCC internal prototype to avoid an error.
32778    Use char because int might match the return type of a GCC
32779    builtin and then its argument prototype would still apply.  */
32780 #ifdef __cplusplus
32781 extern "C"
32782 #endif
32783 char remove ();
32784 /* The GNU C library defines this for functions which it implements
32785     to always fail with ENOSYS.  Some functions are actually named
32786     something starting with __ and the normal name is an alias.  */
32787 #if defined __stub_remove || defined __stub___remove
32788 choke me
32789 #endif
32790
32791 int
32792 main ()
32793 {
32794 return remove ();
32795   ;
32796   return 0;
32797 }
32798 _ACEOF
32799 rm -f conftest.$ac_objext conftest$ac_exeext
32800 if { (ac_try="$ac_link"
32801 case "(($ac_try" in
32802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32803   *) ac_try_echo=$ac_try;;
32804 esac
32805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32806   (eval "$ac_link") 2>conftest.er1
32807   ac_status=$?
32808   grep -v '^ *+' conftest.er1 >conftest.err
32809   rm -f conftest.er1
32810   cat conftest.err >&5
32811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812   (exit $ac_status); } && {
32813          test -z "$ac_c_werror_flag" ||
32814          test ! -s conftest.err
32815        } && test -s conftest$ac_exeext &&
32816        $as_test_x conftest$ac_exeext; then
32817   ac_cv_func_remove=yes
32818 else
32819   echo "$as_me: failed program was:" >&5
32820 sed 's/^/| /' conftest.$ac_ext >&5
32821
32822         ac_cv_func_remove=no
32823 fi
32824
32825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32826       conftest$ac_exeext conftest.$ac_ext
32827 fi
32828 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
32829 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
32830
32831     if test $ac_cv_func_remove = no; then
32832       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
32833 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
32834 if test "${ac_cv_lib_posix_remove+set}" = set; then
32835   echo $ECHO_N "(cached) $ECHO_C" >&6
32836 else
32837   ac_check_lib_save_LIBS=$LIBS
32838 LIBS="-lposix  $LIBS"
32839 cat >conftest.$ac_ext <<_ACEOF
32840 /* confdefs.h.  */
32841 _ACEOF
32842 cat confdefs.h >>conftest.$ac_ext
32843 cat >>conftest.$ac_ext <<_ACEOF
32844 /* end confdefs.h.  */
32845
32846 /* Override any GCC internal prototype to avoid an error.
32847    Use char because int might match the return type of a GCC
32848    builtin and then its argument prototype would still apply.  */
32849 #ifdef __cplusplus
32850 extern "C"
32851 #endif
32852 char remove ();
32853 int
32854 main ()
32855 {
32856 return remove ();
32857   ;
32858   return 0;
32859 }
32860 _ACEOF
32861 rm -f conftest.$ac_objext conftest$ac_exeext
32862 if { (ac_try="$ac_link"
32863 case "(($ac_try" in
32864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32865   *) ac_try_echo=$ac_try;;
32866 esac
32867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868   (eval "$ac_link") 2>conftest.er1
32869   ac_status=$?
32870   grep -v '^ *+' conftest.er1 >conftest.err
32871   rm -f conftest.er1
32872   cat conftest.err >&5
32873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874   (exit $ac_status); } && {
32875          test -z "$ac_c_werror_flag" ||
32876          test ! -s conftest.err
32877        } && test -s conftest$ac_exeext &&
32878        $as_test_x conftest$ac_exeext; then
32879   ac_cv_lib_posix_remove=yes
32880 else
32881   echo "$as_me: failed program was:" >&5
32882 sed 's/^/| /' conftest.$ac_ext >&5
32883
32884         ac_cv_lib_posix_remove=no
32885 fi
32886
32887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32888       conftest$ac_exeext conftest.$ac_ext
32889 LIBS=$ac_check_lib_save_LIBS
32890 fi
32891 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
32892 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
32893 if test $ac_cv_lib_posix_remove = yes; then
32894   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
32895 fi
32896
32897     fi
32898
32899     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
32900     { echo "$as_me:$LINENO: checking for shmat" >&5
32901 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
32902 if test "${ac_cv_func_shmat+set}" = set; then
32903   echo $ECHO_N "(cached) $ECHO_C" >&6
32904 else
32905   cat >conftest.$ac_ext <<_ACEOF
32906 /* confdefs.h.  */
32907 _ACEOF
32908 cat confdefs.h >>conftest.$ac_ext
32909 cat >>conftest.$ac_ext <<_ACEOF
32910 /* end confdefs.h.  */
32911 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
32912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32913 #define shmat innocuous_shmat
32914
32915 /* System header to define __stub macros and hopefully few prototypes,
32916     which can conflict with char shmat (); below.
32917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32918     <limits.h> exists even on freestanding compilers.  */
32919
32920 #ifdef __STDC__
32921 # include <limits.h>
32922 #else
32923 # include <assert.h>
32924 #endif
32925
32926 #undef shmat
32927
32928 /* Override any GCC internal prototype to avoid an error.
32929    Use char because int might match the return type of a GCC
32930    builtin and then its argument prototype would still apply.  */
32931 #ifdef __cplusplus
32932 extern "C"
32933 #endif
32934 char shmat ();
32935 /* The GNU C library defines this for functions which it implements
32936     to always fail with ENOSYS.  Some functions are actually named
32937     something starting with __ and the normal name is an alias.  */
32938 #if defined __stub_shmat || defined __stub___shmat
32939 choke me
32940 #endif
32941
32942 int
32943 main ()
32944 {
32945 return shmat ();
32946   ;
32947   return 0;
32948 }
32949 _ACEOF
32950 rm -f conftest.$ac_objext conftest$ac_exeext
32951 if { (ac_try="$ac_link"
32952 case "(($ac_try" in
32953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32954   *) ac_try_echo=$ac_try;;
32955 esac
32956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32957   (eval "$ac_link") 2>conftest.er1
32958   ac_status=$?
32959   grep -v '^ *+' conftest.er1 >conftest.err
32960   rm -f conftest.er1
32961   cat conftest.err >&5
32962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963   (exit $ac_status); } && {
32964          test -z "$ac_c_werror_flag" ||
32965          test ! -s conftest.err
32966        } && test -s conftest$ac_exeext &&
32967        $as_test_x conftest$ac_exeext; then
32968   ac_cv_func_shmat=yes
32969 else
32970   echo "$as_me: failed program was:" >&5
32971 sed 's/^/| /' conftest.$ac_ext >&5
32972
32973         ac_cv_func_shmat=no
32974 fi
32975
32976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32977       conftest$ac_exeext conftest.$ac_ext
32978 fi
32979 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
32980 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
32981
32982     if test $ac_cv_func_shmat = no; then
32983       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
32984 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
32985 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
32986   echo $ECHO_N "(cached) $ECHO_C" >&6
32987 else
32988   ac_check_lib_save_LIBS=$LIBS
32989 LIBS="-lipc  $LIBS"
32990 cat >conftest.$ac_ext <<_ACEOF
32991 /* confdefs.h.  */
32992 _ACEOF
32993 cat confdefs.h >>conftest.$ac_ext
32994 cat >>conftest.$ac_ext <<_ACEOF
32995 /* end confdefs.h.  */
32996
32997 /* Override any GCC internal prototype to avoid an error.
32998    Use char because int might match the return type of a GCC
32999    builtin and then its argument prototype would still apply.  */
33000 #ifdef __cplusplus
33001 extern "C"
33002 #endif
33003 char shmat ();
33004 int
33005 main ()
33006 {
33007 return shmat ();
33008   ;
33009   return 0;
33010 }
33011 _ACEOF
33012 rm -f conftest.$ac_objext conftest$ac_exeext
33013 if { (ac_try="$ac_link"
33014 case "(($ac_try" in
33015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33016   *) ac_try_echo=$ac_try;;
33017 esac
33018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33019   (eval "$ac_link") 2>conftest.er1
33020   ac_status=$?
33021   grep -v '^ *+' conftest.er1 >conftest.err
33022   rm -f conftest.er1
33023   cat conftest.err >&5
33024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025   (exit $ac_status); } && {
33026          test -z "$ac_c_werror_flag" ||
33027          test ! -s conftest.err
33028        } && test -s conftest$ac_exeext &&
33029        $as_test_x conftest$ac_exeext; then
33030   ac_cv_lib_ipc_shmat=yes
33031 else
33032   echo "$as_me: failed program was:" >&5
33033 sed 's/^/| /' conftest.$ac_ext >&5
33034
33035         ac_cv_lib_ipc_shmat=no
33036 fi
33037
33038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33039       conftest$ac_exeext conftest.$ac_ext
33040 LIBS=$ac_check_lib_save_LIBS
33041 fi
33042 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33043 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
33044 if test $ac_cv_lib_ipc_shmat = yes; then
33045   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33046 fi
33047
33048     fi
33049   fi
33050
33051   # Check for libraries that X11R6 Xt/Xaw programs need.
33052   ac_save_LDFLAGS=$LDFLAGS
33053   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33054   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33055   # check for ICE first), but we must link in the order -lSM -lICE or
33056   # we get undefined symbols.  So assume we have SM if we have ICE.
33057   # These have to be linked with before -lX11, unlike the other
33058   # libraries we check for below, so use a different variable.
33059   # John Interrante, Karl Berry
33060   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33061 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
33062 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33063   echo $ECHO_N "(cached) $ECHO_C" >&6
33064 else
33065   ac_check_lib_save_LIBS=$LIBS
33066 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33067 cat >conftest.$ac_ext <<_ACEOF
33068 /* confdefs.h.  */
33069 _ACEOF
33070 cat confdefs.h >>conftest.$ac_ext
33071 cat >>conftest.$ac_ext <<_ACEOF
33072 /* end confdefs.h.  */
33073
33074 /* Override any GCC internal prototype to avoid an error.
33075    Use char because int might match the return type of a GCC
33076    builtin and then its argument prototype would still apply.  */
33077 #ifdef __cplusplus
33078 extern "C"
33079 #endif
33080 char IceConnectionNumber ();
33081 int
33082 main ()
33083 {
33084 return IceConnectionNumber ();
33085   ;
33086   return 0;
33087 }
33088 _ACEOF
33089 rm -f conftest.$ac_objext conftest$ac_exeext
33090 if { (ac_try="$ac_link"
33091 case "(($ac_try" in
33092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33093   *) ac_try_echo=$ac_try;;
33094 esac
33095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33096   (eval "$ac_link") 2>conftest.er1
33097   ac_status=$?
33098   grep -v '^ *+' conftest.er1 >conftest.err
33099   rm -f conftest.er1
33100   cat conftest.err >&5
33101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33102   (exit $ac_status); } && {
33103          test -z "$ac_c_werror_flag" ||
33104          test ! -s conftest.err
33105        } && test -s conftest$ac_exeext &&
33106        $as_test_x conftest$ac_exeext; then
33107   ac_cv_lib_ICE_IceConnectionNumber=yes
33108 else
33109   echo "$as_me: failed program was:" >&5
33110 sed 's/^/| /' conftest.$ac_ext >&5
33111
33112         ac_cv_lib_ICE_IceConnectionNumber=no
33113 fi
33114
33115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33116       conftest$ac_exeext conftest.$ac_ext
33117 LIBS=$ac_check_lib_save_LIBS
33118 fi
33119 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33120 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33121 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33122   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33123 fi
33124
33125   LDFLAGS=$ac_save_LDFLAGS
33126
33127 fi
33128
33129
33130         if test "$no_x" = "yes"; then
33131           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33132 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33133    { (exit 1); exit 1; }; }
33134         fi
33135
33136                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33137         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33138         AFMINSTALL=afminstall
33139         COMPILED_X_PROGRAM=0
33140
33141     fi
33142
33143     if test "$wxUSE_X11" = 1; then
33144         if test "$wxUSE_NANOX" = "yes"; then
33145             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33146 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33147             if test "x$MICROWIN" = x ; then
33148                 { echo "$as_me:$LINENO: result: not found" >&5
33149 echo "${ECHO_T}not found" >&6; }
33150                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33151 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33152    { (exit 1); exit 1; }; }
33153             else
33154                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33155 echo "${ECHO_T}$MICROWIN" >&6; }
33156                 cat >>confdefs.h <<\_ACEOF
33157 #define wxUSE_NANOX 1
33158 _ACEOF
33159
33160             fi
33161         fi
33162
33163         if test "$wxUSE_UNICODE" = "yes"; then
33164
33165
33166 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33167         if test -n "$ac_tool_prefix"; then
33168   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33169 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33172 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33173   echo $ECHO_N "(cached) $ECHO_C" >&6
33174 else
33175   case $PKG_CONFIG in
33176   [\\/]* | ?:[\\/]*)
33177   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33178   ;;
33179   *)
33180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33181 for as_dir in $PATH
33182 do
33183   IFS=$as_save_IFS
33184   test -z "$as_dir" && as_dir=.
33185   for ac_exec_ext in '' $ac_executable_extensions; do
33186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33187     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33189     break 2
33190   fi
33191 done
33192 done
33193 IFS=$as_save_IFS
33194
33195   ;;
33196 esac
33197 fi
33198 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33199 if test -n "$PKG_CONFIG"; then
33200   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33201 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33202 else
33203   { echo "$as_me:$LINENO: result: no" >&5
33204 echo "${ECHO_T}no" >&6; }
33205 fi
33206
33207
33208 fi
33209 if test -z "$ac_cv_path_PKG_CONFIG"; then
33210   ac_pt_PKG_CONFIG=$PKG_CONFIG
33211   # Extract the first word of "pkg-config", so it can be a program name with args.
33212 set dummy pkg-config; ac_word=$2
33213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33215 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33216   echo $ECHO_N "(cached) $ECHO_C" >&6
33217 else
33218   case $ac_pt_PKG_CONFIG in
33219   [\\/]* | ?:[\\/]*)
33220   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33221   ;;
33222   *)
33223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33224 for as_dir in $PATH
33225 do
33226   IFS=$as_save_IFS
33227   test -z "$as_dir" && as_dir=.
33228   for ac_exec_ext in '' $ac_executable_extensions; do
33229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33230     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33232     break 2
33233   fi
33234 done
33235 done
33236 IFS=$as_save_IFS
33237
33238   ;;
33239 esac
33240 fi
33241 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33242 if test -n "$ac_pt_PKG_CONFIG"; then
33243   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33244 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33245 else
33246   { echo "$as_me:$LINENO: result: no" >&5
33247 echo "${ECHO_T}no" >&6; }
33248 fi
33249
33250   if test "x$ac_pt_PKG_CONFIG" = x; then
33251     PKG_CONFIG=""
33252   else
33253     case $cross_compiling:$ac_tool_warned in
33254 yes:)
33255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33256 whose name does not start with the host triplet.  If you think this
33257 configuration is useful to you, please write to autoconf@gnu.org." >&5
33258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33259 whose name does not start with the host triplet.  If you think this
33260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33261 ac_tool_warned=yes ;;
33262 esac
33263     PKG_CONFIG=$ac_pt_PKG_CONFIG
33264   fi
33265 else
33266   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33267 fi
33268
33269 fi
33270 if test -n "$PKG_CONFIG"; then
33271         _pkg_min_version=0.9.0
33272         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33273 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33274         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33275                 { echo "$as_me:$LINENO: result: yes" >&5
33276 echo "${ECHO_T}yes" >&6; }
33277         else
33278                 { echo "$as_me:$LINENO: result: no" >&5
33279 echo "${ECHO_T}no" >&6; }
33280                 PKG_CONFIG=""
33281         fi
33282
33283 fi
33284
33285
33286 pkg_failed=no
33287 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33288 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33289
33290 if test -n "$PKG_CONFIG"; then
33291     if test -n "$PANGOX_CFLAGS"; then
33292         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33293     else
33294         if test -n "$PKG_CONFIG" && \
33295     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33296   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33297   ac_status=$?
33298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299   (exit $ac_status); }; then
33300   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33301 else
33302   pkg_failed=yes
33303 fi
33304     fi
33305 else
33306         pkg_failed=untried
33307 fi
33308 if test -n "$PKG_CONFIG"; then
33309     if test -n "$PANGOX_LIBS"; then
33310         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33311     else
33312         if test -n "$PKG_CONFIG" && \
33313     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33314   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33315   ac_status=$?
33316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33317   (exit $ac_status); }; then
33318   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33319 else
33320   pkg_failed=yes
33321 fi
33322     fi
33323 else
33324         pkg_failed=untried
33325 fi
33326
33327
33328
33329 if test $pkg_failed = yes; then
33330
33331 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33332         _pkg_short_errors_supported=yes
33333 else
33334         _pkg_short_errors_supported=no
33335 fi
33336         if test $_pkg_short_errors_supported = yes; then
33337                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33338         else
33339                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33340         fi
33341         # Put the nasty error message in config.log where it belongs
33342         echo "$PANGOX_PKG_ERRORS" >&5
33343
33344
33345                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33346 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33347    { (exit 1); exit 1; }; }
33348
33349
33350 elif test $pkg_failed = untried; then
33351
33352                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33353 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33354    { (exit 1); exit 1; }; }
33355
33356
33357 else
33358         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33359         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33360         { echo "$as_me:$LINENO: result: yes" >&5
33361 echo "${ECHO_T}yes" >&6; }
33362
33363                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33364                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33365                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33366
33367 fi
33368
33369 pkg_failed=no
33370 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33371 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33372
33373 if test -n "$PKG_CONFIG"; then
33374     if test -n "$PANGOFT2_CFLAGS"; then
33375         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33376     else
33377         if test -n "$PKG_CONFIG" && \
33378     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33379   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33380   ac_status=$?
33381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382   (exit $ac_status); }; then
33383   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33384 else
33385   pkg_failed=yes
33386 fi
33387     fi
33388 else
33389         pkg_failed=untried
33390 fi
33391 if test -n "$PKG_CONFIG"; then
33392     if test -n "$PANGOFT2_LIBS"; then
33393         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33394     else
33395         if test -n "$PKG_CONFIG" && \
33396     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33397   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33398   ac_status=$?
33399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400   (exit $ac_status); }; then
33401   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33402 else
33403   pkg_failed=yes
33404 fi
33405     fi
33406 else
33407         pkg_failed=untried
33408 fi
33409
33410
33411
33412 if test $pkg_failed = yes; then
33413
33414 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33415         _pkg_short_errors_supported=yes
33416 else
33417         _pkg_short_errors_supported=no
33418 fi
33419         if test $_pkg_short_errors_supported = yes; then
33420                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33421         else
33422                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
33423         fi
33424         # Put the nasty error message in config.log where it belongs
33425         echo "$PANGOFT2_PKG_ERRORS" >&5
33426
33427
33428                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33429 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33430                     wxUSE_PRINTING_ARCHITECTURE="no"
33431
33432
33433 elif test $pkg_failed = untried; then
33434
33435                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
33436 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
33437                     wxUSE_PRINTING_ARCHITECTURE="no"
33438
33439
33440 else
33441         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
33442         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
33443         { echo "$as_me:$LINENO: result: yes" >&5
33444 echo "${ECHO_T}yes" >&6; }
33445
33446                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
33447                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
33448                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
33449
33450 fi
33451
33452 pkg_failed=no
33453 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
33454 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
33455
33456 if test -n "$PKG_CONFIG"; then
33457     if test -n "$PANGOXFT_CFLAGS"; then
33458         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
33459     else
33460         if test -n "$PKG_CONFIG" && \
33461     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33462   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33463   ac_status=$?
33464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465   (exit $ac_status); }; then
33466   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
33467 else
33468   pkg_failed=yes
33469 fi
33470     fi
33471 else
33472         pkg_failed=untried
33473 fi
33474 if test -n "$PKG_CONFIG"; then
33475     if test -n "$PANGOXFT_LIBS"; then
33476         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
33477     else
33478         if test -n "$PKG_CONFIG" && \
33479     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
33480   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
33481   ac_status=$?
33482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483   (exit $ac_status); }; then
33484   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
33485 else
33486   pkg_failed=yes
33487 fi
33488     fi
33489 else
33490         pkg_failed=untried
33491 fi
33492
33493
33494
33495 if test $pkg_failed = yes; then
33496
33497 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33498         _pkg_short_errors_supported=yes
33499 else
33500         _pkg_short_errors_supported=no
33501 fi
33502         if test $_pkg_short_errors_supported = yes; then
33503                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
33504         else
33505                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
33506         fi
33507         # Put the nasty error message in config.log where it belongs
33508         echo "$PANGOXFT_PKG_ERRORS" >&5
33509
33510
33511                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33512 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33513
33514
33515 elif test $pkg_failed = untried; then
33516
33517                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
33518 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
33519
33520
33521 else
33522         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
33523         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
33524         { echo "$as_me:$LINENO: result: yes" >&5
33525 echo "${ECHO_T}yes" >&6; }
33526
33527                     cat >>confdefs.h <<\_ACEOF
33528 #define HAVE_PANGO_XFT 1
33529 _ACEOF
33530
33531                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
33532                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
33533                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
33534
33535 fi
33536             save_LIBS="$LIBS"
33537             LIBS="$LIBS $PANGOX_LIBS"
33538
33539 for ac_func in pango_font_family_is_monospace
33540 do
33541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
33543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33545   echo $ECHO_N "(cached) $ECHO_C" >&6
33546 else
33547   cat >conftest.$ac_ext <<_ACEOF
33548 /* confdefs.h.  */
33549 _ACEOF
33550 cat confdefs.h >>conftest.$ac_ext
33551 cat >>conftest.$ac_ext <<_ACEOF
33552 /* end confdefs.h.  */
33553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33555 #define $ac_func innocuous_$ac_func
33556
33557 /* System header to define __stub macros and hopefully few prototypes,
33558     which can conflict with char $ac_func (); below.
33559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33560     <limits.h> exists even on freestanding compilers.  */
33561
33562 #ifdef __STDC__
33563 # include <limits.h>
33564 #else
33565 # include <assert.h>
33566 #endif
33567
33568 #undef $ac_func
33569
33570 /* Override any GCC internal prototype to avoid an error.
33571    Use char because int might match the return type of a GCC
33572    builtin and then its argument prototype would still apply.  */
33573 #ifdef __cplusplus
33574 extern "C"
33575 #endif
33576 char $ac_func ();
33577 /* The GNU C library defines this for functions which it implements
33578     to always fail with ENOSYS.  Some functions are actually named
33579     something starting with __ and the normal name is an alias.  */
33580 #if defined __stub_$ac_func || defined __stub___$ac_func
33581 choke me
33582 #endif
33583
33584 int
33585 main ()
33586 {
33587 return $ac_func ();
33588   ;
33589   return 0;
33590 }
33591 _ACEOF
33592 rm -f conftest.$ac_objext conftest$ac_exeext
33593 if { (ac_try="$ac_link"
33594 case "(($ac_try" in
33595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33596   *) ac_try_echo=$ac_try;;
33597 esac
33598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33599   (eval "$ac_link") 2>conftest.er1
33600   ac_status=$?
33601   grep -v '^ *+' conftest.er1 >conftest.err
33602   rm -f conftest.er1
33603   cat conftest.err >&5
33604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605   (exit $ac_status); } && {
33606          test -z "$ac_c_werror_flag" ||
33607          test ! -s conftest.err
33608        } && test -s conftest$ac_exeext &&
33609        $as_test_x conftest$ac_exeext; then
33610   eval "$as_ac_var=yes"
33611 else
33612   echo "$as_me: failed program was:" >&5
33613 sed 's/^/| /' conftest.$ac_ext >&5
33614
33615         eval "$as_ac_var=no"
33616 fi
33617
33618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33619       conftest$ac_exeext conftest.$ac_ext
33620 fi
33621 ac_res=`eval echo '${'$as_ac_var'}'`
33622                { echo "$as_me:$LINENO: result: $ac_res" >&5
33623 echo "${ECHO_T}$ac_res" >&6; }
33624 if test `eval echo '${'$as_ac_var'}'` = yes; then
33625   cat >>confdefs.h <<_ACEOF
33626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33627 _ACEOF
33628
33629 fi
33630 done
33631
33632             LIBS="$save_LIBS"
33633         fi
33634
33635         wxUSE_UNIVERSAL="yes"
33636
33637         if test "$wxUSE_NANOX" = "yes"; then
33638             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
33639             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"
33640             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
33641         else
33642             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
33643         fi
33644
33645         TOOLKIT=X11
33646         GUIDIST=X11_DIST
33647     fi
33648
33649     if test "$wxUSE_MOTIF" = 1; then
33650         if test "$wxUSE_UNICODE" = "yes"; then
33651             { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
33652 echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
33653    { (exit 1); exit 1; }; }
33654         fi
33655
33656         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
33657 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
33658
33659 ac_find_includes=
33660 for ac_dir in $SEARCH_INCLUDE /usr/include;
33661   do
33662     if test -f "$ac_dir/Xm/Xm.h"; then
33663       ac_find_includes=$ac_dir
33664       break
33665     fi
33666   done
33667
33668         if test "$ac_find_includes" != "" ; then
33669             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33670 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33671
33672     if test "x$ac_find_includes" = "x/usr/include"; then
33673     ac_path_to_include=""
33674   else
33675     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
33676     result=$?
33677     if test $result = 0; then
33678       ac_path_to_include=""
33679     else
33680       ac_path_to_include=" -I$ac_find_includes"
33681     fi
33682   fi
33683
33684             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
33685         else
33686             save_CFLAGS=$CFLAGS
33687             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33688
33689             cat >conftest.$ac_ext <<_ACEOF
33690 /* confdefs.h.  */
33691 _ACEOF
33692 cat confdefs.h >>conftest.$ac_ext
33693 cat >>conftest.$ac_ext <<_ACEOF
33694 /* end confdefs.h.  */
33695
33696                     #include <Xm/Xm.h>
33697
33698 int
33699 main ()
33700 {
33701
33702                     int version;
33703                     version = xmUseVersion;
33704
33705   ;
33706   return 0;
33707 }
33708 _ACEOF
33709 rm -f conftest.$ac_objext
33710 if { (ac_try="$ac_compile"
33711 case "(($ac_try" in
33712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33713   *) ac_try_echo=$ac_try;;
33714 esac
33715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33716   (eval "$ac_compile") 2>conftest.er1
33717   ac_status=$?
33718   grep -v '^ *+' conftest.er1 >conftest.err
33719   rm -f conftest.er1
33720   cat conftest.err >&5
33721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33722   (exit $ac_status); } && {
33723          test -z "$ac_c_werror_flag" ||
33724          test ! -s conftest.err
33725        } && test -s conftest.$ac_objext; then
33726
33727                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33728 echo "${ECHO_T}found in default search path" >&6; }
33729                     COMPILED_X_PROGRAM=1
33730
33731 else
33732   echo "$as_me: failed program was:" >&5
33733 sed 's/^/| /' conftest.$ac_ext >&5
33734
33735
33736                     { echo "$as_me:$LINENO: result: no" >&5
33737 echo "${ECHO_T}no" >&6; }
33738                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
33739 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
33740    { (exit 1); exit 1; }; }
33741
33742
33743 fi
33744
33745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33746
33747             CFLAGS=$save_CFLAGS
33748         fi
33749
33750
33751         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
33752 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
33753
33754   ac_find_libraries=
33755   for ac_dir in $SEARCH_LIB;
33756   do
33757     for ac_extension in a so sl dylib dll.a; do
33758       if test -f "$ac_dir/libXm.$ac_extension"; then
33759         ac_find_libraries=$ac_dir
33760         break 2
33761       fi
33762     done
33763   done
33764
33765
33766         if test "x$ac_find_libraries" != "x" ; then
33767             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33768 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33769
33770
33771     if test "$ac_find_libraries" = "default location"; then
33772     ac_path_to_link=""
33773   else
33774     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
33775     result=$?
33776     if test $result = 0; then
33777       ac_path_to_link=""
33778     else
33779       ac_path_to_link=" -L$ac_find_libraries"
33780     fi
33781   fi
33782
33783             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
33784         else
33785                                                 save_CFLAGS=$CFLAGS
33786             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33787             save_LIBS="$LIBS"
33788             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
33789
33790             cat >conftest.$ac_ext <<_ACEOF
33791 /* confdefs.h.  */
33792 _ACEOF
33793 cat confdefs.h >>conftest.$ac_ext
33794 cat >>conftest.$ac_ext <<_ACEOF
33795 /* end confdefs.h.  */
33796
33797                     #include <Xm/Xm.h>
33798
33799 int
33800 main ()
33801 {
33802
33803                     int version;
33804                     version = xmUseVersion;
33805
33806   ;
33807   return 0;
33808 }
33809 _ACEOF
33810 rm -f conftest.$ac_objext conftest$ac_exeext
33811 if { (ac_try="$ac_link"
33812 case "(($ac_try" in
33813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33814   *) ac_try_echo=$ac_try;;
33815 esac
33816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33817   (eval "$ac_link") 2>conftest.er1
33818   ac_status=$?
33819   grep -v '^ *+' conftest.er1 >conftest.err
33820   rm -f conftest.er1
33821   cat conftest.err >&5
33822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823   (exit $ac_status); } && {
33824          test -z "$ac_c_werror_flag" ||
33825          test ! -s conftest.err
33826        } && test -s conftest$ac_exeext &&
33827        $as_test_x conftest$ac_exeext; then
33828
33829                     { echo "$as_me:$LINENO: result: found in default search path" >&5
33830 echo "${ECHO_T}found in default search path" >&6; }
33831                     COMPILED_X_PROGRAM=1
33832
33833 else
33834   echo "$as_me: failed program was:" >&5
33835 sed 's/^/| /' conftest.$ac_ext >&5
33836
33837
33838                     { echo "$as_me:$LINENO: result: no" >&5
33839 echo "${ECHO_T}no" >&6; }
33840                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
33841 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
33842    { (exit 1); exit 1; }; }
33843
33844
33845 fi
33846
33847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33848       conftest$ac_exeext conftest.$ac_ext
33849
33850             CFLAGS=$save_CFLAGS
33851             LIBS="$save_LIBS"
33852         fi
33853
33854         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
33855 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
33856         libp_link=""
33857         libsm_ice_link=""
33858         libs_found=0
33859         for libp in "" " -lXp"; do
33860             if test "$libs_found" = "0"; then
33861                 for libsm_ice in "" " -lSM -lICE"; do
33862                     if test "$libs_found" = "0"; then
33863                         save_LIBS="$LIBS"
33864                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
33865                         save_CFLAGS=$CFLAGS
33866                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
33867
33868                         cat >conftest.$ac_ext <<_ACEOF
33869 /* confdefs.h.  */
33870 _ACEOF
33871 cat confdefs.h >>conftest.$ac_ext
33872 cat >>conftest.$ac_ext <<_ACEOF
33873 /* end confdefs.h.  */
33874
33875                                 #include <Xm/Xm.h>
33876                                 #include <Xm/List.h>
33877
33878 int
33879 main ()
33880 {
33881
33882                                 XmString string = NULL;
33883                                 Widget w = NULL;
33884                                 int position = 0;
33885                                 XmListAddItem(w, string, position);
33886
33887   ;
33888   return 0;
33889 }
33890 _ACEOF
33891 rm -f conftest.$ac_objext conftest$ac_exeext
33892 if { (ac_try="$ac_link"
33893 case "(($ac_try" in
33894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33895   *) ac_try_echo=$ac_try;;
33896 esac
33897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33898   (eval "$ac_link") 2>conftest.er1
33899   ac_status=$?
33900   grep -v '^ *+' conftest.er1 >conftest.err
33901   rm -f conftest.er1
33902   cat conftest.err >&5
33903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33904   (exit $ac_status); } && {
33905          test -z "$ac_c_werror_flag" ||
33906          test ! -s conftest.err
33907        } && test -s conftest$ac_exeext &&
33908        $as_test_x conftest$ac_exeext; then
33909
33910                                 libp_link="$libp"
33911                                 libsm_ice_link="$libsm_ice"
33912                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
33913 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
33914                                 libs_found=1
33915
33916 else
33917   echo "$as_me: failed program was:" >&5
33918 sed 's/^/| /' conftest.$ac_ext >&5
33919
33920
33921
33922 fi
33923
33924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33925       conftest$ac_exeext conftest.$ac_ext
33926
33927                         LIBS="$save_LIBS"
33928                         CFLAGS=$save_CFLAGS
33929                     fi
33930                 done
33931             fi
33932         done
33933
33934         if test "$libs_found" = "0"; then
33935             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
33936 echo "${ECHO_T}can't find the right libraries" >&6; }
33937             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
33938 echo "$as_me: error: can't link a simple motif program" >&2;}
33939    { (exit 1); exit 1; }; }
33940         fi
33941
33942                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
33943 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
33944 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
33945   echo $ECHO_N "(cached) $ECHO_C" >&6
33946 else
33947   ac_check_lib_save_LIBS=$LIBS
33948 LIBS="-lSgm  $LIBS"
33949 cat >conftest.$ac_ext <<_ACEOF
33950 /* confdefs.h.  */
33951 _ACEOF
33952 cat confdefs.h >>conftest.$ac_ext
33953 cat >>conftest.$ac_ext <<_ACEOF
33954 /* end confdefs.h.  */
33955
33956 /* Override any GCC internal prototype to avoid an error.
33957    Use char because int might match the return type of a GCC
33958    builtin and then its argument prototype would still apply.  */
33959 #ifdef __cplusplus
33960 extern "C"
33961 #endif
33962 char SgCreateList ();
33963 int
33964 main ()
33965 {
33966 return SgCreateList ();
33967   ;
33968   return 0;
33969 }
33970 _ACEOF
33971 rm -f conftest.$ac_objext conftest$ac_exeext
33972 if { (ac_try="$ac_link"
33973 case "(($ac_try" in
33974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33975   *) ac_try_echo=$ac_try;;
33976 esac
33977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33978   (eval "$ac_link") 2>conftest.er1
33979   ac_status=$?
33980   grep -v '^ *+' conftest.er1 >conftest.err
33981   rm -f conftest.er1
33982   cat conftest.err >&5
33983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984   (exit $ac_status); } && {
33985          test -z "$ac_c_werror_flag" ||
33986          test ! -s conftest.err
33987        } && test -s conftest$ac_exeext &&
33988        $as_test_x conftest$ac_exeext; then
33989   ac_cv_lib_Sgm_SgCreateList=yes
33990 else
33991   echo "$as_me: failed program was:" >&5
33992 sed 's/^/| /' conftest.$ac_ext >&5
33993
33994         ac_cv_lib_Sgm_SgCreateList=no
33995 fi
33996
33997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33998       conftest$ac_exeext conftest.$ac_ext
33999 LIBS=$ac_check_lib_save_LIBS
34000 fi
34001 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
34002 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
34003 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
34004   libsgm_link=" -lSgm"
34005 fi
34006
34007
34008         save_CFLAGS=$CFLAGS
34009         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34010
34011         { echo "$as_me:$LINENO: checking for Motif 2" >&5
34012 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
34013 if test "${wx_cv_lib_motif2+set}" = set; then
34014   echo $ECHO_N "(cached) $ECHO_C" >&6
34015 else
34016   cat >conftest.$ac_ext <<_ACEOF
34017 /* confdefs.h.  */
34018 _ACEOF
34019 cat confdefs.h >>conftest.$ac_ext
34020 cat >>conftest.$ac_ext <<_ACEOF
34021 /* end confdefs.h.  */
34022
34023                             #include <Xm/Xm.h>
34024
34025 int
34026 main ()
34027 {
34028
34029                             #if XmVersion < 2000
34030                             Not Motif 2
34031                             #endif
34032
34033   ;
34034   return 0;
34035 }
34036 _ACEOF
34037 rm -f conftest.$ac_objext
34038 if { (ac_try="$ac_compile"
34039 case "(($ac_try" in
34040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34041   *) ac_try_echo=$ac_try;;
34042 esac
34043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34044   (eval "$ac_compile") 2>conftest.er1
34045   ac_status=$?
34046   grep -v '^ *+' conftest.er1 >conftest.err
34047   rm -f conftest.er1
34048   cat conftest.err >&5
34049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34050   (exit $ac_status); } && {
34051          test -z "$ac_c_werror_flag" ||
34052          test ! -s conftest.err
34053        } && test -s conftest.$ac_objext; then
34054   wx_cv_lib_motif2="yes"
34055 else
34056   echo "$as_me: failed program was:" >&5
34057 sed 's/^/| /' conftest.$ac_ext >&5
34058
34059         wx_cv_lib_motif2="no"
34060 fi
34061
34062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34063 fi
34064 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34065 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
34066         if test "$wx_cv_lib_motif2" = "yes"; then
34067             cat >>confdefs.h <<\_ACEOF
34068 #define __WXMOTIF20__ 1
34069 _ACEOF
34070
34071         else
34072             cat >>confdefs.h <<\_ACEOF
34073 #define __WXMOTIF20__ 0
34074 _ACEOF
34075
34076         fi
34077
34078         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34079 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34080 if test "${wx_cv_lib_lesstif+set}" = set; then
34081   echo $ECHO_N "(cached) $ECHO_C" >&6
34082 else
34083   cat >conftest.$ac_ext <<_ACEOF
34084 /* confdefs.h.  */
34085 _ACEOF
34086 cat confdefs.h >>conftest.$ac_ext
34087 cat >>conftest.$ac_ext <<_ACEOF
34088 /* end confdefs.h.  */
34089
34090                             #include <Xm/Xm.h>
34091
34092 int
34093 main ()
34094 {
34095
34096                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34097                             Not Lesstif
34098                             #endif
34099
34100   ;
34101   return 0;
34102 }
34103 _ACEOF
34104 rm -f conftest.$ac_objext
34105 if { (ac_try="$ac_compile"
34106 case "(($ac_try" in
34107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34108   *) ac_try_echo=$ac_try;;
34109 esac
34110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34111   (eval "$ac_compile") 2>conftest.er1
34112   ac_status=$?
34113   grep -v '^ *+' conftest.er1 >conftest.err
34114   rm -f conftest.er1
34115   cat conftest.err >&5
34116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117   (exit $ac_status); } && {
34118          test -z "$ac_c_werror_flag" ||
34119          test ! -s conftest.err
34120        } && test -s conftest.$ac_objext; then
34121   wx_cv_lib_lesstif="yes"
34122 else
34123   echo "$as_me: failed program was:" >&5
34124 sed 's/^/| /' conftest.$ac_ext >&5
34125
34126         wx_cv_lib_lesstif="no"
34127 fi
34128
34129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34130
34131 fi
34132 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34133 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34134         if test "$wx_cv_lib_lesstif" = "yes"; then
34135             cat >>confdefs.h <<\_ACEOF
34136 #define __WXLESSTIF__ 1
34137 _ACEOF
34138
34139         else
34140             cat >>confdefs.h <<\_ACEOF
34141 #define __WXLESSTIF__ 0
34142 _ACEOF
34143
34144         fi
34145
34146         CFLAGS=$save_CFLAGS
34147
34148         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34149         TOOLKIT=MOTIF
34150         GUIDIST=MOTIF_DIST
34151     fi
34152
34153         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34154                 if test "$wxUSE_LIBXPM" = "sys"; then
34155             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34156 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34157
34158   ac_find_libraries=
34159   for ac_dir in $SEARCH_LIB;
34160   do
34161     for ac_extension in a so sl dylib dll.a; do
34162       if test -f "$ac_dir/libXpm.$ac_extension"; then
34163         ac_find_libraries=$ac_dir
34164         break 2
34165       fi
34166     done
34167   done
34168
34169             if test "$ac_find_libraries" != "" ; then
34170
34171     if test "$ac_find_libraries" = "default location"; then
34172     ac_path_to_link=""
34173   else
34174     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34175     result=$?
34176     if test $result = 0; then
34177       ac_path_to_link=""
34178     else
34179       ac_path_to_link=" -L$ac_find_libraries"
34180     fi
34181   fi
34182
34183                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34184                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34185 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34186
34187                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34188 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34189 if test "${wx_cv_x11_xpm_h+set}" = set; then
34190   echo $ECHO_N "(cached) $ECHO_C" >&6
34191 else
34192
34193                         save_CFLAGS=$CFLAGS
34194                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34195
34196                         cat >conftest.$ac_ext <<_ACEOF
34197 /* confdefs.h.  */
34198 _ACEOF
34199 cat confdefs.h >>conftest.$ac_ext
34200 cat >>conftest.$ac_ext <<_ACEOF
34201 /* end confdefs.h.  */
34202
34203                                 #include <X11/xpm.h>
34204
34205 int
34206 main ()
34207 {
34208
34209                                 int version;
34210                                 version = XpmLibraryVersion();
34211
34212   ;
34213   return 0;
34214 }
34215 _ACEOF
34216 rm -f conftest.$ac_objext
34217 if { (ac_try="$ac_compile"
34218 case "(($ac_try" in
34219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34220   *) ac_try_echo=$ac_try;;
34221 esac
34222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34223   (eval "$ac_compile") 2>conftest.er1
34224   ac_status=$?
34225   grep -v '^ *+' conftest.er1 >conftest.err
34226   rm -f conftest.er1
34227   cat conftest.err >&5
34228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34229   (exit $ac_status); } && {
34230          test -z "$ac_c_werror_flag" ||
34231          test ! -s conftest.err
34232        } && test -s conftest.$ac_objext; then
34233   wx_cv_x11_xpm_h=yes
34234 else
34235   echo "$as_me: failed program was:" >&5
34236 sed 's/^/| /' conftest.$ac_ext >&5
34237
34238         wx_cv_x11_xpm_h=no
34239
34240 fi
34241
34242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34243
34244                         CFLAGS=$save_CFLAGS
34245
34246
34247 fi
34248 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34249 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34250
34251                 if test $wx_cv_x11_xpm_h = "yes"; then
34252                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34253                     cat >>confdefs.h <<\_ACEOF
34254 #define wxHAVE_LIB_XPM 1
34255 _ACEOF
34256
34257                 else
34258                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34259 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34260                 fi
34261             fi
34262
34263         fi
34264
34265                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34266 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34267 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34268   echo $ECHO_N "(cached) $ECHO_C" >&6
34269 else
34270   ac_check_lib_save_LIBS=$LIBS
34271 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34272 cat >conftest.$ac_ext <<_ACEOF
34273 /* confdefs.h.  */
34274 _ACEOF
34275 cat confdefs.h >>conftest.$ac_ext
34276 cat >>conftest.$ac_ext <<_ACEOF
34277 /* end confdefs.h.  */
34278
34279 /* Override any GCC internal prototype to avoid an error.
34280    Use char because int might match the return type of a GCC
34281    builtin and then its argument prototype would still apply.  */
34282 #ifdef __cplusplus
34283 extern "C"
34284 #endif
34285 char XShapeQueryExtension ();
34286 int
34287 main ()
34288 {
34289 return XShapeQueryExtension ();
34290   ;
34291   return 0;
34292 }
34293 _ACEOF
34294 rm -f conftest.$ac_objext conftest$ac_exeext
34295 if { (ac_try="$ac_link"
34296 case "(($ac_try" in
34297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34298   *) ac_try_echo=$ac_try;;
34299 esac
34300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34301   (eval "$ac_link") 2>conftest.er1
34302   ac_status=$?
34303   grep -v '^ *+' conftest.er1 >conftest.err
34304   rm -f conftest.er1
34305   cat conftest.err >&5
34306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34307   (exit $ac_status); } && {
34308          test -z "$ac_c_werror_flag" ||
34309          test ! -s conftest.err
34310        } && test -s conftest$ac_exeext &&
34311        $as_test_x conftest$ac_exeext; then
34312   ac_cv_lib_Xext_XShapeQueryExtension=yes
34313 else
34314   echo "$as_me: failed program was:" >&5
34315 sed 's/^/| /' conftest.$ac_ext >&5
34316
34317         ac_cv_lib_Xext_XShapeQueryExtension=no
34318 fi
34319
34320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34321       conftest$ac_exeext conftest.$ac_ext
34322 LIBS=$ac_check_lib_save_LIBS
34323 fi
34324 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34325 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34326 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34327
34328                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34329                       wxHAVE_XEXT_LIB=1
34330
34331 fi
34332
34333
34334         if test "$wxHAVE_XEXT_LIB" = 1; then
34335             save_CFLAGS="$CFLAGS"
34336             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34337
34338             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34339 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34340             cat >conftest.$ac_ext <<_ACEOF
34341 /* confdefs.h.  */
34342 _ACEOF
34343 cat confdefs.h >>conftest.$ac_ext
34344 cat >>conftest.$ac_ext <<_ACEOF
34345 /* end confdefs.h.  */
34346
34347                             #include <X11/Xlib.h>
34348                             #include <X11/extensions/shape.h>
34349
34350 int
34351 main ()
34352 {
34353
34354                             int dummy1, dummy2;
34355                             XShapeQueryExtension((Display*)NULL,
34356                                                  (int*)NULL, (int*)NULL);
34357
34358   ;
34359   return 0;
34360 }
34361 _ACEOF
34362 rm -f conftest.$ac_objext
34363 if { (ac_try="$ac_compile"
34364 case "(($ac_try" in
34365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34366   *) ac_try_echo=$ac_try;;
34367 esac
34368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34369   (eval "$ac_compile") 2>conftest.er1
34370   ac_status=$?
34371   grep -v '^ *+' conftest.er1 >conftest.err
34372   rm -f conftest.er1
34373   cat conftest.err >&5
34374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375   (exit $ac_status); } && {
34376          test -z "$ac_c_werror_flag" ||
34377          test ! -s conftest.err
34378        } && test -s conftest.$ac_objext; then
34379
34380                             cat >>confdefs.h <<\_ACEOF
34381 #define HAVE_XSHAPE 1
34382 _ACEOF
34383
34384                             { echo "$as_me:$LINENO: result: found" >&5
34385 echo "${ECHO_T}found" >&6; }
34386
34387 else
34388   echo "$as_me: failed program was:" >&5
34389 sed 's/^/| /' conftest.$ac_ext >&5
34390
34391
34392                             { echo "$as_me:$LINENO: result: not found" >&5
34393 echo "${ECHO_T}not found" >&6; }
34394
34395 fi
34396
34397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34398             CFLAGS="$save_CFLAGS"
34399
34400         fi
34401     fi
34402
34403     if test "$wxUSE_MAC" = 1; then
34404         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34405 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34406         if test "$GCC" = yes; then
34407             { echo "$as_me:$LINENO: result: gcc" >&5
34408 echo "${ECHO_T}gcc" >&6; }
34409             CPPFLAGS_PASCAL="-fpascal-strings"
34410         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34411             { echo "$as_me:$LINENO: result: xlc" >&5
34412 echo "${ECHO_T}xlc" >&6; }
34413             CPPFLAGS_PASCAL="-qmacpstr"
34414         else
34415             { echo "$as_me:$LINENO: result: none" >&5
34416 echo "${ECHO_T}none" >&6; }
34417         fi
34418
34419         if test "x$wxUSE_UNIX" = "xyes"; then
34420             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34421         else
34422                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
34423         fi
34424
34425         TOOLKIT=MAC
34426                 GUIDIST=MACX_DIST
34427                         WXBASEPORT="_carbon"
34428     fi
34429
34430     if test "$wxUSE_COCOA" = 1; then
34431         TOOLKIT=COCOA
34432         GUIDIST=COCOA_DIST
34433     fi
34434
34435     if test "$wxUSE_PM" = 1; then
34436         TOOLKIT=PM
34437         GUIDIST=PM_DIST
34438         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
34439 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
34440 if test "${wx_cv_spbcdata+set}" = set; then
34441   echo $ECHO_N "(cached) $ECHO_C" >&6
34442 else
34443
34444                 cat >conftest.$ac_ext <<_ACEOF
34445 /* confdefs.h.  */
34446 _ACEOF
34447 cat confdefs.h >>conftest.$ac_ext
34448 cat >>conftest.$ac_ext <<_ACEOF
34449 /* end confdefs.h.  */
34450
34451                         #define INCL_PM
34452                         #include <os2.h>
34453
34454 int
34455 main ()
34456 {
34457
34458                         SPBCDATA test;
34459
34460   ;
34461   return 0;
34462 }
34463 _ACEOF
34464 rm -f conftest.$ac_objext
34465 if { (ac_try="$ac_compile"
34466 case "(($ac_try" in
34467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34468   *) ac_try_echo=$ac_try;;
34469 esac
34470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34471   (eval "$ac_compile") 2>conftest.er1
34472   ac_status=$?
34473   grep -v '^ *+' conftest.er1 >conftest.err
34474   rm -f conftest.er1
34475   cat conftest.err >&5
34476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477   (exit $ac_status); } && {
34478          test -z "$ac_c_werror_flag" ||
34479          test ! -s conftest.err
34480        } && test -s conftest.$ac_objext; then
34481   wx_cv_spbcdata=yes
34482 else
34483   echo "$as_me: failed program was:" >&5
34484 sed 's/^/| /' conftest.$ac_ext >&5
34485
34486         wx_cv_spbcdata=no
34487
34488 fi
34489
34490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34491
34492
34493 fi
34494 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
34495 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
34496
34497         if test $wx_cv_spbcdata = "yes"; then
34498             cat >>confdefs.h <<\_ACEOF
34499 #define HAVE_SPBCDATA 1
34500 _ACEOF
34501
34502         fi
34503     fi
34504
34505         if test "$TOOLKIT" = "PM" ; then
34506         TOOLKIT_DIR="os2"
34507     else
34508         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
34509     fi
34510
34511     if test "$wxUSE_UNIVERSAL" = "yes"; then
34512         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
34513         WIDGET_SET=univ
34514     fi
34515
34516         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
34517     DISTDIR="wx\$(TOOLKIT)"
34518 else
34519     USE_GUI=0
34520
34521             TOOLKIT_DIR="base"
34522
34523         if test "$USE_WIN32" = 1 ; then
34524                         TOOLKIT="MSW"
34525     fi
34526
34527         GUIDIST="BASE_DIST"
34528     DISTDIR="wxBase"
34529 fi
34530
34531
34532
34533 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
34534     if test "$TOOLKIT" = "DFB" ; then
34535         wxUSE_UNICODE_UTF8=yes
34536     elif test "$TOOLKIT" = "GTK" -a "$WXGTK20" = "1" ; then
34537         wxUSE_UNICODE_UTF8=yes
34538     elif test "$USE_OS2" = "1" ; then
34539                                 wxUSE_UNICODE_UTF8=yes
34540     else
34541         wxUSE_UNICODE_UTF8=no
34542     fi
34543 fi
34544
34545
34546 if test "$wxUSE_GUI" = "yes"; then
34547     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
34548
34549 for ac_header in X11/Xlib.h
34550 do
34551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34555   echo $ECHO_N "(cached) $ECHO_C" >&6
34556 else
34557   cat >conftest.$ac_ext <<_ACEOF
34558 /* confdefs.h.  */
34559 _ACEOF
34560 cat confdefs.h >>conftest.$ac_ext
34561 cat >>conftest.$ac_ext <<_ACEOF
34562 /* end confdefs.h.  */
34563
34564
34565 #include <$ac_header>
34566 _ACEOF
34567 rm -f conftest.$ac_objext
34568 if { (ac_try="$ac_compile"
34569 case "(($ac_try" in
34570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34571   *) ac_try_echo=$ac_try;;
34572 esac
34573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34574   (eval "$ac_compile") 2>conftest.er1
34575   ac_status=$?
34576   grep -v '^ *+' conftest.er1 >conftest.err
34577   rm -f conftest.er1
34578   cat conftest.err >&5
34579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580   (exit $ac_status); } && {
34581          test -z "$ac_c_werror_flag" ||
34582          test ! -s conftest.err
34583        } && test -s conftest.$ac_objext; then
34584   eval "$as_ac_Header=yes"
34585 else
34586   echo "$as_me: failed program was:" >&5
34587 sed 's/^/| /' conftest.$ac_ext >&5
34588
34589         eval "$as_ac_Header=no"
34590 fi
34591
34592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34593 fi
34594 ac_res=`eval echo '${'$as_ac_Header'}'`
34595                { echo "$as_me:$LINENO: result: $ac_res" >&5
34596 echo "${ECHO_T}$ac_res" >&6; }
34597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34598   cat >>confdefs.h <<_ACEOF
34599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34600 _ACEOF
34601
34602 fi
34603
34604 done
34605
34606
34607 for ac_header in X11/XKBlib.h
34608 do
34609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34613   echo $ECHO_N "(cached) $ECHO_C" >&6
34614 else
34615   cat >conftest.$ac_ext <<_ACEOF
34616 /* confdefs.h.  */
34617 _ACEOF
34618 cat confdefs.h >>conftest.$ac_ext
34619 cat >>conftest.$ac_ext <<_ACEOF
34620 /* end confdefs.h.  */
34621
34622                           #if HAVE_X11_XLIB_H
34623                             #include <X11/Xlib.h>
34624                           #endif
34625
34626
34627 #include <$ac_header>
34628 _ACEOF
34629 rm -f conftest.$ac_objext
34630 if { (ac_try="$ac_compile"
34631 case "(($ac_try" in
34632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34633   *) ac_try_echo=$ac_try;;
34634 esac
34635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34636   (eval "$ac_compile") 2>conftest.er1
34637   ac_status=$?
34638   grep -v '^ *+' conftest.er1 >conftest.err
34639   rm -f conftest.er1
34640   cat conftest.err >&5
34641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642   (exit $ac_status); } && {
34643          test -z "$ac_c_werror_flag" ||
34644          test ! -s conftest.err
34645        } && test -s conftest.$ac_objext; then
34646   eval "$as_ac_Header=yes"
34647 else
34648   echo "$as_me: failed program was:" >&5
34649 sed 's/^/| /' conftest.$ac_ext >&5
34650
34651         eval "$as_ac_Header=no"
34652 fi
34653
34654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34655 fi
34656 ac_res=`eval echo '${'$as_ac_Header'}'`
34657                { echo "$as_me:$LINENO: result: $ac_res" >&5
34658 echo "${ECHO_T}$ac_res" >&6; }
34659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34660   cat >>confdefs.h <<_ACEOF
34661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34662 _ACEOF
34663
34664 fi
34665
34666 done
34667
34668     fi
34669 fi
34670
34671
34672
34673 IODBC_C_SRC=""
34674
34675
34676 if test "$TOOLKIT" != "MSW" ; then
34677
34678     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
34679
34680         { echo "$as_me:$LINENO: checking for sql.h" >&5
34681 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
34682 if test "${ac_cv_header_sql_h+set}" = set; then
34683   echo $ECHO_N "(cached) $ECHO_C" >&6
34684 else
34685   cat >conftest.$ac_ext <<_ACEOF
34686 /* confdefs.h.  */
34687 _ACEOF
34688 cat confdefs.h >>conftest.$ac_ext
34689 cat >>conftest.$ac_ext <<_ACEOF
34690 /* end confdefs.h.  */
34691
34692
34693 #include <sql.h>
34694 _ACEOF
34695 rm -f conftest.$ac_objext
34696 if { (ac_try="$ac_compile"
34697 case "(($ac_try" in
34698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34699   *) ac_try_echo=$ac_try;;
34700 esac
34701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34702   (eval "$ac_compile") 2>conftest.er1
34703   ac_status=$?
34704   grep -v '^ *+' conftest.er1 >conftest.err
34705   rm -f conftest.er1
34706   cat conftest.err >&5
34707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34708   (exit $ac_status); } && {
34709          test -z "$ac_c_werror_flag" ||
34710          test ! -s conftest.err
34711        } && test -s conftest.$ac_objext; then
34712   ac_cv_header_sql_h=yes
34713 else
34714   echo "$as_me: failed program was:" >&5
34715 sed 's/^/| /' conftest.$ac_ext >&5
34716
34717         ac_cv_header_sql_h=no
34718 fi
34719
34720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34721 fi
34722 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
34723 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
34724 if test $ac_cv_header_sql_h = yes; then
34725   found_sql_h=1
34726 fi
34727
34728
34729         if test "x$found_sql_h" = "x1" ; then
34730             { echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
34731 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6; }
34732 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
34733   echo $ECHO_N "(cached) $ECHO_C" >&6
34734 else
34735   ac_check_lib_save_LIBS=$LIBS
34736 LIBS="-liodbc  $LIBS"
34737 cat >conftest.$ac_ext <<_ACEOF
34738 /* confdefs.h.  */
34739 _ACEOF
34740 cat confdefs.h >>conftest.$ac_ext
34741 cat >>conftest.$ac_ext <<_ACEOF
34742 /* end confdefs.h.  */
34743
34744 /* Override any GCC internal prototype to avoid an error.
34745    Use char because int might match the return type of a GCC
34746    builtin and then its argument prototype would still apply.  */
34747 #ifdef __cplusplus
34748 extern "C"
34749 #endif
34750 char SQLAllocEnv ();
34751 int
34752 main ()
34753 {
34754 return SQLAllocEnv ();
34755   ;
34756   return 0;
34757 }
34758 _ACEOF
34759 rm -f conftest.$ac_objext conftest$ac_exeext
34760 if { (ac_try="$ac_link"
34761 case "(($ac_try" in
34762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34763   *) ac_try_echo=$ac_try;;
34764 esac
34765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34766   (eval "$ac_link") 2>conftest.er1
34767   ac_status=$?
34768   grep -v '^ *+' conftest.er1 >conftest.err
34769   rm -f conftest.er1
34770   cat conftest.err >&5
34771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772   (exit $ac_status); } && {
34773          test -z "$ac_c_werror_flag" ||
34774          test ! -s conftest.err
34775        } && test -s conftest$ac_exeext &&
34776        $as_test_x conftest$ac_exeext; then
34777   ac_cv_lib_iodbc_SQLAllocEnv=yes
34778 else
34779   echo "$as_me: failed program was:" >&5
34780 sed 's/^/| /' conftest.$ac_ext >&5
34781
34782         ac_cv_lib_iodbc_SQLAllocEnv=no
34783 fi
34784
34785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34786       conftest$ac_exeext conftest.$ac_ext
34787 LIBS=$ac_check_lib_save_LIBS
34788 fi
34789 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
34790 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6; }
34791 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
34792   ODBC_LINK=" -liodbc"
34793 else
34794
34795                 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
34796 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6; }
34797 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
34798   echo $ECHO_N "(cached) $ECHO_C" >&6
34799 else
34800   ac_check_lib_save_LIBS=$LIBS
34801 LIBS="-lunixodbc  $LIBS"
34802 cat >conftest.$ac_ext <<_ACEOF
34803 /* confdefs.h.  */
34804 _ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h.  */
34808
34809 /* Override any GCC internal prototype to avoid an error.
34810    Use char because int might match the return type of a GCC
34811    builtin and then its argument prototype would still apply.  */
34812 #ifdef __cplusplus
34813 extern "C"
34814 #endif
34815 char SQLAllocEnv ();
34816 int
34817 main ()
34818 {
34819 return SQLAllocEnv ();
34820   ;
34821   return 0;
34822 }
34823 _ACEOF
34824 rm -f conftest.$ac_objext conftest$ac_exeext
34825 if { (ac_try="$ac_link"
34826 case "(($ac_try" in
34827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34828   *) ac_try_echo=$ac_try;;
34829 esac
34830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34831   (eval "$ac_link") 2>conftest.er1
34832   ac_status=$?
34833   grep -v '^ *+' conftest.er1 >conftest.err
34834   rm -f conftest.er1
34835   cat conftest.err >&5
34836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837   (exit $ac_status); } && {
34838          test -z "$ac_c_werror_flag" ||
34839          test ! -s conftest.err
34840        } && test -s conftest$ac_exeext &&
34841        $as_test_x conftest$ac_exeext; then
34842   ac_cv_lib_unixodbc_SQLAllocEnv=yes
34843 else
34844   echo "$as_me: failed program was:" >&5
34845 sed 's/^/| /' conftest.$ac_ext >&5
34846
34847         ac_cv_lib_unixodbc_SQLAllocEnv=no
34848 fi
34849
34850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34851       conftest$ac_exeext conftest.$ac_ext
34852 LIBS=$ac_check_lib_save_LIBS
34853 fi
34854 { echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
34855 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6; }
34856 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
34857   ODBC_LINK=" -lunixodbc"
34858 else
34859
34860                     { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
34861 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6; }
34862 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
34863   echo $ECHO_N "(cached) $ECHO_C" >&6
34864 else
34865   ac_check_lib_save_LIBS=$LIBS
34866 LIBS="-lodbc  $LIBS"
34867 cat >conftest.$ac_ext <<_ACEOF
34868 /* confdefs.h.  */
34869 _ACEOF
34870 cat confdefs.h >>conftest.$ac_ext
34871 cat >>conftest.$ac_ext <<_ACEOF
34872 /* end confdefs.h.  */
34873
34874 /* Override any GCC internal prototype to avoid an error.
34875    Use char because int might match the return type of a GCC
34876    builtin and then its argument prototype would still apply.  */
34877 #ifdef __cplusplus
34878 extern "C"
34879 #endif
34880 char SQLAllocEnv ();
34881 int
34882 main ()
34883 {
34884 return SQLAllocEnv ();
34885   ;
34886   return 0;
34887 }
34888 _ACEOF
34889 rm -f conftest.$ac_objext conftest$ac_exeext
34890 if { (ac_try="$ac_link"
34891 case "(($ac_try" in
34892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34893   *) ac_try_echo=$ac_try;;
34894 esac
34895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34896   (eval "$ac_link") 2>conftest.er1
34897   ac_status=$?
34898   grep -v '^ *+' conftest.er1 >conftest.err
34899   rm -f conftest.er1
34900   cat conftest.err >&5
34901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902   (exit $ac_status); } && {
34903          test -z "$ac_c_werror_flag" ||
34904          test ! -s conftest.err
34905        } && test -s conftest$ac_exeext &&
34906        $as_test_x conftest$ac_exeext; then
34907   ac_cv_lib_odbc_SQLAllocEnv=yes
34908 else
34909   echo "$as_me: failed program was:" >&5
34910 sed 's/^/| /' conftest.$ac_ext >&5
34911
34912         ac_cv_lib_odbc_SQLAllocEnv=no
34913 fi
34914
34915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34916       conftest$ac_exeext conftest.$ac_ext
34917 LIBS=$ac_check_lib_save_LIBS
34918 fi
34919 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
34920 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6; }
34921 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
34922   ODBC_LINK=" -lodbc"
34923 fi
34924
34925
34926 fi
34927
34928
34929 fi
34930
34931         fi
34932         if test "x$ODBC_LINK" = "x" ; then
34933             if test "$wxUSE_ODBC" = "sys" ; then
34934                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
34935 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
34936    { (exit 1); exit 1; }; }
34937             else
34938                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
34939 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
34940                 wxUSE_ODBC=builtin
34941             fi
34942         else
34943                         wxUSE_ODBC=sys
34944         fi
34945     fi
34946
34947     if test "$wxUSE_ODBC" = "builtin" ; then
34948         cat >>confdefs.h <<\_ACEOF
34949 #define wxUSE_BUILTIN_IODBC 1
34950 _ACEOF
34951
34952     fi
34953 fi
34954
34955 if test "$wxUSE_ODBC" != "no" ; then
34956     cat >>confdefs.h <<\_ACEOF
34957 #define wxUSE_ODBC 1
34958 _ACEOF
34959
34960     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
34961
34962         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
34963 fi
34964
34965
34966 if test "$wxUSE_DISPLAY" = "yes"; then
34967     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
34968         { echo "$as_me:$LINENO: checking for Xinerama" >&5
34969 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
34970
34971   ac_find_libraries=
34972   for ac_dir in $SEARCH_LIB;
34973   do
34974     for ac_extension in a so sl dylib dll.a; do
34975       if test -f "$ac_dir/libXinerama.$ac_extension"; then
34976         ac_find_libraries=$ac_dir
34977         break 2
34978       fi
34979     done
34980   done
34981
34982         if test "$ac_find_libraries" != "" ; then
34983
34984     if test "$ac_find_libraries" = "default location"; then
34985     ac_path_to_link=""
34986   else
34987     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
34988     result=$?
34989     if test $result = 0; then
34990       ac_path_to_link=""
34991     else
34992       ac_path_to_link=" -L$ac_find_libraries"
34993     fi
34994   fi
34995
34996             if test "$ac_path_to_link" != " -L/usr/lib" ; then
34997                 LDFLAGS="$LDFLAGS $ac_path_to_link"
34998             fi
34999             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
35000             { echo "$as_me:$LINENO: result: yes" >&5
35001 echo "${ECHO_T}yes" >&6; }
35002
35003             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
35004 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
35005
35006   ac_find_libraries=
35007   for ac_dir in $SEARCH_LIB;
35008   do
35009     for ac_extension in a so sl dylib dll.a; do
35010       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35011         ac_find_libraries=$ac_dir
35012         break 2
35013       fi
35014     done
35015   done
35016
35017             if test "$ac_find_libraries" != "" ; then
35018                 { echo "$as_me:$LINENO: result: yes" >&5
35019 echo "${ECHO_T}yes" >&6; }
35020
35021 for ac_header in X11/extensions/xf86vmode.h
35022 do
35023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35027   echo $ECHO_N "(cached) $ECHO_C" >&6
35028 else
35029   cat >conftest.$ac_ext <<_ACEOF
35030 /* confdefs.h.  */
35031 _ACEOF
35032 cat confdefs.h >>conftest.$ac_ext
35033 cat >>conftest.$ac_ext <<_ACEOF
35034 /* end confdefs.h.  */
35035
35036                                       #if HAVE_X11_XLIB_H
35037                                         #include <X11/Xlib.h>
35038                                       #endif
35039
35040
35041 #include <$ac_header>
35042 _ACEOF
35043 rm -f conftest.$ac_objext
35044 if { (ac_try="$ac_compile"
35045 case "(($ac_try" in
35046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35047   *) ac_try_echo=$ac_try;;
35048 esac
35049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35050   (eval "$ac_compile") 2>conftest.er1
35051   ac_status=$?
35052   grep -v '^ *+' conftest.er1 >conftest.err
35053   rm -f conftest.er1
35054   cat conftest.err >&5
35055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056   (exit $ac_status); } && {
35057          test -z "$ac_c_werror_flag" ||
35058          test ! -s conftest.err
35059        } && test -s conftest.$ac_objext; then
35060   eval "$as_ac_Header=yes"
35061 else
35062   echo "$as_me: failed program was:" >&5
35063 sed 's/^/| /' conftest.$ac_ext >&5
35064
35065         eval "$as_ac_Header=no"
35066 fi
35067
35068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35069 fi
35070 ac_res=`eval echo '${'$as_ac_Header'}'`
35071                { echo "$as_me:$LINENO: result: $ac_res" >&5
35072 echo "${ECHO_T}$ac_res" >&6; }
35073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35074   cat >>confdefs.h <<_ACEOF
35075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35076 _ACEOF
35077
35078                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35079
35080 fi
35081
35082 done
35083
35084             else
35085                 { echo "$as_me:$LINENO: result: no" >&5
35086 echo "${ECHO_T}no" >&6; }
35087             fi
35088
35089         else
35090             { echo "$as_me:$LINENO: result: no" >&5
35091 echo "${ECHO_T}no" >&6; }
35092             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35093 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
35094             wxUSE_DISPLAY="no"
35095         fi
35096     elif test "$wxUSE_MSW" = 1; then
35097         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35098 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
35099 if test "${ac_cv_header_ddraw_h+set}" = set; then
35100   echo $ECHO_N "(cached) $ECHO_C" >&6
35101 else
35102   cat >conftest.$ac_ext <<_ACEOF
35103 /* confdefs.h.  */
35104 _ACEOF
35105 cat confdefs.h >>conftest.$ac_ext
35106 cat >>conftest.$ac_ext <<_ACEOF
35107 /* end confdefs.h.  */
35108 #include <windows.h>
35109
35110 #include <ddraw.h>
35111 _ACEOF
35112 rm -f conftest.$ac_objext
35113 if { (ac_try="$ac_compile"
35114 case "(($ac_try" in
35115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35116   *) ac_try_echo=$ac_try;;
35117 esac
35118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35119   (eval "$ac_compile") 2>conftest.er1
35120   ac_status=$?
35121   grep -v '^ *+' conftest.er1 >conftest.err
35122   rm -f conftest.er1
35123   cat conftest.err >&5
35124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35125   (exit $ac_status); } && {
35126          test -z "$ac_c_werror_flag" ||
35127          test ! -s conftest.err
35128        } && test -s conftest.$ac_objext; then
35129   ac_cv_header_ddraw_h=yes
35130 else
35131   echo "$as_me: failed program was:" >&5
35132 sed 's/^/| /' conftest.$ac_ext >&5
35133
35134         ac_cv_header_ddraw_h=no
35135 fi
35136
35137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35138 fi
35139 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35140 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
35141
35142
35143     fi
35144 fi
35145
35146 if test "$wxUSE_DETECT_SM" = "yes"; then
35147     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35148         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
35149 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
35150
35151   ac_find_libraries=
35152   for ac_dir in $SEARCH_LIB;
35153   do
35154     for ac_extension in a so sl dylib dll.a; do
35155       if test -f "$ac_dir/libSM.$ac_extension"; then
35156         ac_find_libraries=$ac_dir
35157         break 2
35158       fi
35159     done
35160   done
35161
35162         if test "$ac_find_libraries" != "" ; then
35163
35164     if test "$ac_find_libraries" = "default location"; then
35165     ac_path_to_link=""
35166   else
35167     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35168     result=$?
35169     if test $result = 0; then
35170       ac_path_to_link=""
35171     else
35172       ac_path_to_link=" -L$ac_find_libraries"
35173     fi
35174   fi
35175
35176             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35177                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35178             fi
35179             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
35180             { echo "$as_me:$LINENO: result: yes" >&5
35181 echo "${ECHO_T}yes" >&6; }
35182         else
35183             { echo "$as_me:$LINENO: result: no" >&5
35184 echo "${ECHO_T}no" >&6; }
35185             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35186 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35187             wxUSE_DETECT_SM="no"
35188         fi
35189     else
35190         wxUSE_DETECT_SM="no"
35191     fi
35192 fi
35193
35194
35195
35196 USE_OPENGL=0
35197 if test "$wxUSE_OPENGL" = "yes"; then
35198     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
35199         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35200 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35201         wxUSE_OPENGL="no"
35202     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
35203         OPENGL_LIBS="-framework OpenGL -framework AGL"
35204     elif test "$wxUSE_MSW" = 1; then
35205         OPENGL_LIBS="-lopengl32 -lglu32"
35206     else
35207                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35208 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
35209
35210 ac_find_includes=
35211 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
35212   do
35213     if test -f "$ac_dir/GL/gl.h"; then
35214       ac_find_includes=$ac_dir
35215       break
35216     fi
35217   done
35218
35219         if test "$ac_find_includes" != "" ; then
35220             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35221 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35222
35223     if test "x$ac_find_includes" = "x/usr/include"; then
35224     ac_path_to_include=""
35225   else
35226     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35227     result=$?
35228     if test $result = 0; then
35229       ac_path_to_include=""
35230     else
35231       ac_path_to_include=" -I$ac_find_includes"
35232     fi
35233   fi
35234
35235             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
35236         else
35237             { echo "$as_me:$LINENO: result: not found" >&5
35238 echo "${ECHO_T}not found" >&6; }
35239         fi
35240
35241         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
35242 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
35243 if test "${ac_cv_header_GL_gl_h+set}" = set; then
35244   echo $ECHO_N "(cached) $ECHO_C" >&6
35245 else
35246   cat >conftest.$ac_ext <<_ACEOF
35247 /* confdefs.h.  */
35248 _ACEOF
35249 cat confdefs.h >>conftest.$ac_ext
35250 cat >>conftest.$ac_ext <<_ACEOF
35251 /* end confdefs.h.  */
35252
35253
35254 #include <GL/gl.h>
35255 _ACEOF
35256 rm -f conftest.$ac_objext
35257 if { (ac_try="$ac_compile"
35258 case "(($ac_try" in
35259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35260   *) ac_try_echo=$ac_try;;
35261 esac
35262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35263   (eval "$ac_compile") 2>conftest.er1
35264   ac_status=$?
35265   grep -v '^ *+' conftest.er1 >conftest.err
35266   rm -f conftest.er1
35267   cat conftest.err >&5
35268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35269   (exit $ac_status); } && {
35270          test -z "$ac_c_werror_flag" ||
35271          test ! -s conftest.err
35272        } && test -s conftest.$ac_objext; then
35273   ac_cv_header_GL_gl_h=yes
35274 else
35275   echo "$as_me: failed program was:" >&5
35276 sed 's/^/| /' conftest.$ac_ext >&5
35277
35278         ac_cv_header_GL_gl_h=no
35279 fi
35280
35281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35282 fi
35283 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
35284 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
35285 if test $ac_cv_header_GL_gl_h = yes; then
35286
35287             if test "${ac_cv_header_GL_glu_h+set}" = set; then
35288   { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
35289 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
35290 if test "${ac_cv_header_GL_glu_h+set}" = set; then
35291   echo $ECHO_N "(cached) $ECHO_C" >&6
35292 fi
35293 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35294 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35295 else
35296   # Is the header compilable?
35297 { echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
35298 echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6; }
35299 cat >conftest.$ac_ext <<_ACEOF
35300 /* confdefs.h.  */
35301 _ACEOF
35302 cat confdefs.h >>conftest.$ac_ext
35303 cat >>conftest.$ac_ext <<_ACEOF
35304 /* end confdefs.h.  */
35305 $ac_includes_default
35306 #include <GL/glu.h>
35307 _ACEOF
35308 rm -f conftest.$ac_objext
35309 if { (ac_try="$ac_compile"
35310 case "(($ac_try" in
35311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35312   *) ac_try_echo=$ac_try;;
35313 esac
35314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35315   (eval "$ac_compile") 2>conftest.er1
35316   ac_status=$?
35317   grep -v '^ *+' conftest.er1 >conftest.err
35318   rm -f conftest.er1
35319   cat conftest.err >&5
35320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321   (exit $ac_status); } && {
35322          test -z "$ac_c_werror_flag" ||
35323          test ! -s conftest.err
35324        } && test -s conftest.$ac_objext; then
35325   ac_header_compiler=yes
35326 else
35327   echo "$as_me: failed program was:" >&5
35328 sed 's/^/| /' conftest.$ac_ext >&5
35329
35330         ac_header_compiler=no
35331 fi
35332
35333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35335 echo "${ECHO_T}$ac_header_compiler" >&6; }
35336
35337 # Is the header present?
35338 { echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
35339 echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6; }
35340 cat >conftest.$ac_ext <<_ACEOF
35341 /* confdefs.h.  */
35342 _ACEOF
35343 cat confdefs.h >>conftest.$ac_ext
35344 cat >>conftest.$ac_ext <<_ACEOF
35345 /* end confdefs.h.  */
35346 #include <GL/glu.h>
35347 _ACEOF
35348 if { (ac_try="$ac_cpp conftest.$ac_ext"
35349 case "(($ac_try" in
35350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35351   *) ac_try_echo=$ac_try;;
35352 esac
35353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35354   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35355   ac_status=$?
35356   grep -v '^ *+' conftest.er1 >conftest.err
35357   rm -f conftest.er1
35358   cat conftest.err >&5
35359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35360   (exit $ac_status); } >/dev/null && {
35361          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35362          test ! -s conftest.err
35363        }; then
35364   ac_header_preproc=yes
35365 else
35366   echo "$as_me: failed program was:" >&5
35367 sed 's/^/| /' conftest.$ac_ext >&5
35368
35369   ac_header_preproc=no
35370 fi
35371
35372 rm -f conftest.err conftest.$ac_ext
35373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35374 echo "${ECHO_T}$ac_header_preproc" >&6; }
35375
35376 # So?  What about this header?
35377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35378   yes:no: )
35379     { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
35380 echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35381     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
35382 echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
35383     ac_header_preproc=yes
35384     ;;
35385   no:yes:* )
35386     { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
35387 echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
35388     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
35389 echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
35390     { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
35391 echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
35392     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
35393 echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
35394     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
35395 echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
35396     { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
35397 echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
35398     ( cat <<\_ASBOX
35399 ## ----------------------------------------- ##
35400 ## Report this to wx-dev@lists.wxwidgets.org ##
35401 ## ----------------------------------------- ##
35402 _ASBOX
35403      ) | sed "s/^/$as_me: WARNING:     /" >&2
35404     ;;
35405 esac
35406 { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
35407 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
35408 if test "${ac_cv_header_GL_glu_h+set}" = set; then
35409   echo $ECHO_N "(cached) $ECHO_C" >&6
35410 else
35411   ac_cv_header_GL_glu_h=$ac_header_preproc
35412 fi
35413 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35414 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35415
35416 fi
35417 if test $ac_cv_header_GL_glu_h = yes; then
35418
35419                 found_gl=0
35420
35421                 { echo "$as_me:$LINENO: checking for -lGL" >&5
35422 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
35423
35424   ac_find_libraries=
35425   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
35426   do
35427     for ac_extension in a so sl dylib dll.a; do
35428       if test -f "$ac_dir/libGL.$ac_extension"; then
35429         ac_find_libraries=$ac_dir
35430         break 2
35431       fi
35432     done
35433   done
35434
35435                 if test "$ac_find_libraries" != "" ; then
35436                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
35437 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
35438
35439
35440     if test "$ac_find_libraries" = "default location"; then
35441     ac_path_to_link=""
35442   else
35443     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35444     result=$?
35445     if test $result = 0; then
35446       ac_path_to_link=""
35447     else
35448       ac_path_to_link=" -L$ac_find_libraries"
35449     fi
35450   fi
35451
35452                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
35453                         LDFLAGS_GL="$ac_path_to_link"
35454                     fi
35455
35456                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
35457 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
35458
35459   ac_find_libraries=
35460   for ac_dir in $SEARCH_LIB;
35461   do
35462     for ac_extension in a so sl dylib dll.a; do
35463       if test -f "$ac_dir/libGLU.$ac_extension"; then
35464         ac_find_libraries=$ac_dir
35465         break 2
35466       fi
35467     done
35468   done
35469
35470                     if test "$ac_find_libraries" != "" ; then
35471
35472     if test "$ac_find_libraries" = "default location"; then
35473     ac_path_to_link=""
35474   else
35475     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35476     result=$?
35477     if test $result = 0; then
35478       ac_path_to_link=""
35479     else
35480       ac_path_to_link=" -L$ac_find_libraries"
35481     fi
35482   fi
35483
35484                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
35485                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
35486                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
35487                         fi
35488
35489                         found_gl=1
35490                         OPENGL_LIBS="-lGL -lGLU"
35491                         { echo "$as_me:$LINENO: result: yes" >&5
35492 echo "${ECHO_T}yes" >&6; }
35493                     else
35494                         { echo "$as_me:$LINENO: result: no" >&5
35495 echo "${ECHO_T}no" >&6; }
35496                     fi
35497                 else
35498                     { echo "$as_me:$LINENO: result: no" >&5
35499 echo "${ECHO_T}no" >&6; }
35500                 fi
35501
35502                 if test "$found_gl" != 1; then
35503                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
35504 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
35505
35506   ac_find_libraries=
35507   for ac_dir in $SEARCH_LIB;
35508   do
35509     for ac_extension in a so sl dylib dll.a; do
35510       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
35511         ac_find_libraries=$ac_dir
35512         break 2
35513       fi
35514     done
35515   done
35516
35517                     if test "$ac_find_libraries" != "" ; then
35518
35519     if test "$ac_find_libraries" = "default location"; then
35520     ac_path_to_link=""
35521   else
35522     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35523     result=$?
35524     if test $result = 0; then
35525       ac_path_to_link=""
35526     else
35527       ac_path_to_link=" -L$ac_find_libraries"
35528     fi
35529   fi
35530
35531                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
35532                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
35533                         { echo "$as_me:$LINENO: result: yes" >&5
35534 echo "${ECHO_T}yes" >&6; }
35535                     else
35536                         { echo "$as_me:$LINENO: result: no" >&5
35537 echo "${ECHO_T}no" >&6; }
35538                     fi
35539                 fi
35540
35541 fi
35542
35543
35544
35545 fi
35546
35547
35548
35549         if test "x$OPENGL_LIBS" = "x"; then
35550                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
35551 echo "$as_me: error: OpenGL libraries not available" >&2;}
35552    { (exit 1); exit 1; }; }
35553         fi
35554     fi
35555
35556     if test "$wxUSE_OPENGL" = "yes"; then
35557         USE_OPENGL=1
35558         cat >>confdefs.h <<\_ACEOF
35559 #define wxUSE_OPENGL 1
35560 _ACEOF
35561
35562         cat >>confdefs.h <<\_ACEOF
35563 #define wxUSE_GLCANVAS 1
35564 _ACEOF
35565
35566         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
35567     fi
35568 fi
35569
35570
35571 if test -n "$TOOLKIT" ; then
35572     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
35573 fi
35574
35575
35576
35577 if test "$wxUSE_SHARED" = "yes"; then
35578     case "${host}" in
35579       *-pc-msdosdjgpp )
35580                 wxUSE_SHARED=no
35581         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
35582 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
35583       ;;
35584     esac
35585 fi
35586
35587 if test "$wxUSE_SHARED" = "yes"; then
35588
35589
35590     case "${host}" in
35591         *-*-cygwin* | *-*-mingw* )
35592                                                                                                 wx_cv_version_script=no
35593             ;;
35594
35595         *)
35596             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
35597 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
35598 if test "${wx_cv_version_script+set}" = set; then
35599   echo $ECHO_N "(cached) $ECHO_C" >&6
35600 else
35601
35602                 echo "VER_1 { *; };" >conftest.sym
35603                 echo "int main() { return 0; }" >conftest.cpp
35604
35605                 if { ac_try='
35606                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35607                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
35608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35609   (eval $ac_try) 2>&5
35610   ac_status=$?
35611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35612   (exit $ac_status); }; } ; then
35613                   if test -s conftest.stderr ; then
35614                       wx_cv_version_script=no
35615                   else
35616                       wx_cv_version_script=yes
35617                   fi
35618                 else
35619                   wx_cv_version_script=no
35620                 fi
35621
35622                                                                                                                                                                                                 if test $wx_cv_version_script = yes
35623                 then
35624                   echo "struct B { virtual ~B() { } }; \
35625                         struct D : public B { }; \
35626                         void F() { D d; }" > conftest.cpp
35627
35628                   if { ac_try='
35629                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35630                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
35631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35632   (eval $ac_try) 2>&5
35633   ac_status=$?
35634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35635   (exit $ac_status); }; } &&
35636                      { ac_try='
35637                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35638                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
35639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35640   (eval $ac_try) 2>&5
35641   ac_status=$?
35642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643   (exit $ac_status); }; }
35644                   then
35645                     if { ac_try='
35646                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35647                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
35648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35649   (eval $ac_try) 2>&5
35650   ac_status=$?
35651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35652   (exit $ac_status); }; }
35653                     then
35654                       wx_cv_version_script=yes
35655                     else
35656                       wx_cv_version_script=no
35657                     fi
35658                   fi
35659                 fi
35660
35661                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
35662                 rm -f conftest1.output conftest2.output conftest3.output
35663
35664 fi
35665 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
35666 echo "${ECHO_T}$wx_cv_version_script" >&6; }
35667
35668             if test $wx_cv_version_script = yes ; then
35669                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
35670             fi
35671             ;;
35672     esac
35673
35674
35675             if test "$wxUSE_VISIBILITY" != "no"; then
35676
35677
35678   if test -n "$GCC"; then
35679     CFLAGS_VISIBILITY="-fvisibility=hidden"
35680     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
35681     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
35682 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
35683     if test "${wx_cv_cc_visibility+set}" = set; then
35684   echo $ECHO_N "(cached) $ECHO_C" >&6
35685 else
35686
35687       wx_save_CXXFLAGS="$CXXFLAGS"
35688       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35689       ac_ext=cpp
35690 ac_cpp='$CXXCPP $CPPFLAGS'
35691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35694
35695       cat >conftest.$ac_ext <<_ACEOF
35696 /* confdefs.h.  */
35697 _ACEOF
35698 cat confdefs.h >>conftest.$ac_ext
35699 cat >>conftest.$ac_ext <<_ACEOF
35700 /* end confdefs.h.  */
35701
35702          /* we need gcc >= 4.0, older versions with visibility support
35703             didn't have class visibility: */
35704          #if defined(__GNUC__) && __GNUC__ < 4
35705          error this gcc is too old;
35706          #endif
35707
35708          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
35709          extern __attribute__((__visibility__("default"))) int exportedvar;
35710          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
35711          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
35712          class __attribute__((__visibility__("default"))) Foo {
35713            Foo() {}
35714          };
35715
35716 int
35717 main ()
35718 {
35719
35720   ;
35721   return 0;
35722 }
35723 _ACEOF
35724 rm -f conftest.$ac_objext
35725 if { (ac_try="$ac_compile"
35726 case "(($ac_try" in
35727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35728   *) ac_try_echo=$ac_try;;
35729 esac
35730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35731   (eval "$ac_compile") 2>conftest.er1
35732   ac_status=$?
35733   grep -v '^ *+' conftest.er1 >conftest.err
35734   rm -f conftest.er1
35735   cat conftest.err >&5
35736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737   (exit $ac_status); } && {
35738          test -z "$ac_cxx_werror_flag" ||
35739          test ! -s conftest.err
35740        } && test -s conftest.$ac_objext; then
35741   wx_cv_cc_visibility=yes
35742 else
35743   echo "$as_me: failed program was:" >&5
35744 sed 's/^/| /' conftest.$ac_ext >&5
35745
35746         wx_cv_cc_visibility=no
35747 fi
35748
35749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35750       ac_ext=c
35751 ac_cpp='$CPP $CPPFLAGS'
35752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35755
35756       CXXFLAGS="$wx_save_CXXFLAGS"
35757 fi
35758
35759     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
35760 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
35761     if test $wx_cv_cc_visibility = yes; then
35762       cat >>confdefs.h <<\_ACEOF
35763 #define HAVE_VISIBILITY 1
35764 _ACEOF
35765
35766     else
35767       CFLAGS_VISIBILITY=""
35768       CXXFLAGS_VISIBILITY=""
35769     fi
35770
35771
35772   fi
35773
35774     fi
35775
35776         if test "x$SUNCXX" = xyes; then
35777         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
35778         WXCONFIG_RPATH="-R\$libdir"
35779     else
35780     case "${host}" in
35781       *-*-linux* | *-*-gnu* )
35782         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35783         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35784         ;;
35785
35786       *-*-solaris2* )
35787
35788                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
35789
35790                         saveLdflags="$LDFLAGS"
35791         LDFLAGS="$saveLdflags -Wl,-rpath,/"
35792         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
35793 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
35794         cat >conftest.$ac_ext <<_ACEOF
35795 /* confdefs.h.  */
35796 _ACEOF
35797 cat confdefs.h >>conftest.$ac_ext
35798 cat >>conftest.$ac_ext <<_ACEOF
35799 /* end confdefs.h.  */
35800
35801 int
35802 main ()
35803 {
35804
35805   ;
35806   return 0;
35807 }
35808 _ACEOF
35809 rm -f conftest.$ac_objext conftest$ac_exeext
35810 if { (ac_try="$ac_link"
35811 case "(($ac_try" in
35812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35813   *) ac_try_echo=$ac_try;;
35814 esac
35815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35816   (eval "$ac_link") 2>conftest.er1
35817   ac_status=$?
35818   grep -v '^ *+' conftest.er1 >conftest.err
35819   rm -f conftest.er1
35820   cat conftest.err >&5
35821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35822   (exit $ac_status); } && {
35823          test -z "$ac_c_werror_flag" ||
35824          test ! -s conftest.err
35825        } && test -s conftest$ac_exeext &&
35826        $as_test_x conftest$ac_exeext; then
35827
35828                 { echo "$as_me:$LINENO: result: yes" >&5
35829 echo "${ECHO_T}yes" >&6; }
35830                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
35831                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
35832
35833 else
35834   echo "$as_me: failed program was:" >&5
35835 sed 's/^/| /' conftest.$ac_ext >&5
35836
35837
35838                 { echo "$as_me:$LINENO: result: no" >&5
35839 echo "${ECHO_T}no" >&6; }
35840                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
35841 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
35842                 LDFLAGS="$saveLdflags -Wl,-R,/"
35843                 cat >conftest.$ac_ext <<_ACEOF
35844 /* confdefs.h.  */
35845 _ACEOF
35846 cat confdefs.h >>conftest.$ac_ext
35847 cat >>conftest.$ac_ext <<_ACEOF
35848 /* end confdefs.h.  */
35849
35850 int
35851 main ()
35852 {
35853
35854   ;
35855   return 0;
35856 }
35857 _ACEOF
35858 rm -f conftest.$ac_objext conftest$ac_exeext
35859 if { (ac_try="$ac_link"
35860 case "(($ac_try" in
35861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35862   *) ac_try_echo=$ac_try;;
35863 esac
35864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35865   (eval "$ac_link") 2>conftest.er1
35866   ac_status=$?
35867   grep -v '^ *+' conftest.er1 >conftest.err
35868   rm -f conftest.er1
35869   cat conftest.err >&5
35870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871   (exit $ac_status); } && {
35872          test -z "$ac_c_werror_flag" ||
35873          test ! -s conftest.err
35874        } && test -s conftest$ac_exeext &&
35875        $as_test_x conftest$ac_exeext; then
35876
35877                         { echo "$as_me:$LINENO: result: yes" >&5
35878 echo "${ECHO_T}yes" >&6; }
35879                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
35880                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
35881
35882 else
35883   echo "$as_me: failed program was:" >&5
35884 sed 's/^/| /' conftest.$ac_ext >&5
35885
35886
35887                         { echo "$as_me:$LINENO: result: no" >&5
35888 echo "${ECHO_T}no" >&6; }
35889
35890 fi
35891
35892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35893       conftest$ac_exeext conftest.$ac_ext
35894
35895 fi
35896
35897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35898       conftest$ac_exeext conftest.$ac_ext
35899         LDFLAGS="$saveLdflags"
35900       ;;
35901
35902       *-*-darwin* )
35903         install_name_tool=`which install_name_tool`
35904         if test "$install_name_tool" -a -x "$install_name_tool"; then
35905             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
35906             cat <<EOF >change-install-names
35907 #!/bin/sh
35908 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
35909 inst_cmd="install_name_tool "
35910 for i in \${libnames} ; do
35911     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
35912 done
35913 \${inst_cmd} \${3}
35914 EOF
35915             chmod +x change-install-names
35916         fi
35917       ;;
35918
35919       *-*-cygwin* | *-*-mingw32* )
35920                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
35921         ;;
35922
35923       *-*-hpux* )
35924         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
35925         WXCONFIG_RPATH="-Wl,+b,\$libdir"
35926         ;;
35927
35928     esac
35929     fi
35930
35931     if test $wxUSE_RPATH = "no"; then
35932         SAMPLES_RPATH_FLAG=''
35933         SAMPLES_RPATH_POSTLINK=''
35934         WXCONFIG_RPATH=''
35935     fi
35936
35937     SHARED=1
35938
35939 else
35940
35941     config_linkage_component="-static"
35942     SHARED=0
35943
35944 fi
35945
35946
35947 UNICODE=0
35948 lib_unicode_suffix=
35949 WX_CHARTYPE="ansi"
35950 if test "$wxUSE_UNICODE" = "yes"; then
35951     lib_unicode_suffix=u
35952     WX_CHARTYPE="unicode"
35953     UNICODE=1
35954 fi
35955
35956 lib_debug_suffix=
35957 WX_DEBUGTYPE="release"
35958 DEBUG_FLAG=0
35959 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
35960     lib_debug_suffix=d
35961     WX_DEBUGTYPE="debug"
35962     DEBUG_FLAG=1
35963 fi
35964
35965 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
35966 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
35967
35968 DEBUG_INFO=0
35969 if test "$wxUSE_DEBUG_INFO" = "yes"; then
35970     DEBUG_INFO=1
35971 fi
35972
35973 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
35974
35975 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
35976
35977 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
35978
35979 if test "$cross_compiling" = "yes"; then
35980     HOST_SUFFIX="-$host_alias"
35981     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
35982     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
35983 fi
35984
35985 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
35986 if test "${TOOLKIT_DIR}" = "os2"; then
35987     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
35988 else
35989     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
35990 fi
35991
35992
35993
35994 if test "$wxUSE_COCOA" = 1; then
35995
35996     ac_ext=c
35997 ac_cpp='$CPP $CPPFLAGS'
35998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36001
36002 ac_ext=m
36003
36004     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
36005 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
36006     cat >conftest.$ac_ext <<_ACEOF
36007 /* confdefs.h.  */
36008 _ACEOF
36009 cat confdefs.h >>conftest.$ac_ext
36010 cat >>conftest.$ac_ext <<_ACEOF
36011 /* end confdefs.h.  */
36012 #include <AppKit/NSEvent.h>
36013 #include <CoreFoundation/CoreFoundation.h>
36014
36015 int
36016 main ()
36017 {
36018
36019   ;
36020   return 0;
36021 }
36022 _ACEOF
36023 rm -f conftest.$ac_objext
36024 if { (ac_try="$ac_compile"
36025 case "(($ac_try" in
36026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36027   *) ac_try_echo=$ac_try;;
36028 esac
36029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36030   (eval "$ac_compile") 2>conftest.er1
36031   ac_status=$?
36032   grep -v '^ *+' conftest.er1 >conftest.err
36033   rm -f conftest.er1
36034   cat conftest.err >&5
36035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36036   (exit $ac_status); } && {
36037          test -z "$ac_c_werror_flag" ||
36038          test ! -s conftest.err
36039        } && test -s conftest.$ac_objext; then
36040   { echo "$as_me:$LINENO: result: no" >&5
36041 echo "${ECHO_T}no" >&6; }
36042 else
36043   echo "$as_me: failed program was:" >&5
36044 sed 's/^/| /' conftest.$ac_ext >&5
36045
36046         { echo "$as_me:$LINENO: result: yes" >&5
36047 echo "${ECHO_T}yes" >&6; }
36048         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
36049 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
36050         cat >conftest.$ac_ext <<_ACEOF
36051 /* confdefs.h.  */
36052 _ACEOF
36053 cat confdefs.h >>conftest.$ac_ext
36054 cat >>conftest.$ac_ext <<_ACEOF
36055 /* end confdefs.h.  */
36056 #define __Point__ 1
36057 #include <AppKit/NSEvent.h>
36058 #include <CoreFoundation/CoreFoundation.h>
36059
36060 int
36061 main ()
36062 {
36063
36064   ;
36065   return 0;
36066 }
36067 _ACEOF
36068 rm -f conftest.$ac_objext
36069 if { (ac_try="$ac_compile"
36070 case "(($ac_try" in
36071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36072   *) ac_try_echo=$ac_try;;
36073 esac
36074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36075   (eval "$ac_compile") 2>conftest.er1
36076   ac_status=$?
36077   grep -v '^ *+' conftest.er1 >conftest.err
36078   rm -f conftest.er1
36079   cat conftest.err >&5
36080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36081   (exit $ac_status); } && {
36082          test -z "$ac_c_werror_flag" ||
36083          test ! -s conftest.err
36084        } && test -s conftest.$ac_objext; then
36085   { echo "$as_me:$LINENO: result: yes" >&5
36086 echo "${ECHO_T}yes" >&6; }
36087             cat >>confdefs.h <<\_ACEOF
36088 #define __Point__ 1
36089 _ACEOF
36090
36091
36092 else
36093   echo "$as_me: failed program was:" >&5
36094 sed 's/^/| /' conftest.$ac_ext >&5
36095
36096         { { echo "$as_me:$LINENO: error: no
36097 See \`config.log' for more details." >&5
36098 echo "$as_me: error: no
36099 See \`config.log' for more details." >&2;}
36100    { (exit 1); exit 1; }; }
36101
36102 fi
36103
36104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36105
36106 fi
36107
36108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36109     ac_ext=c
36110 ac_cpp='$CPP $CPPFLAGS'
36111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36114
36115 fi
36116
36117 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
36118             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
36119     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
36120
36121         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
36122
36123     # Extract the first word of "Rez", so it can be a program name with args.
36124 set dummy Rez; ac_word=$2
36125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36127 if test "${ac_cv_prog_REZ+set}" = set; then
36128   echo $ECHO_N "(cached) $ECHO_C" >&6
36129 else
36130   if test -n "$REZ"; then
36131   ac_cv_prog_REZ="$REZ" # Let the user override the test.
36132 else
36133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36134 for as_dir in $PATH
36135 do
36136   IFS=$as_save_IFS
36137   test -z "$as_dir" && as_dir=.
36138   for ac_exec_ext in '' $ac_executable_extensions; do
36139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36140     ac_cv_prog_REZ="Rez"
36141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36142     break 2
36143   fi
36144 done
36145 done
36146 IFS=$as_save_IFS
36147
36148   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
36149 fi
36150 fi
36151 REZ=$ac_cv_prog_REZ
36152 if test -n "$REZ"; then
36153   { echo "$as_me:$LINENO: result: $REZ" >&5
36154 echo "${ECHO_T}$REZ" >&6; }
36155 else
36156   { echo "$as_me:$LINENO: result: no" >&5
36157 echo "${ECHO_T}no" >&6; }
36158 fi
36159
36160
36161     # Extract the first word of "DeRez", so it can be a program name with args.
36162 set dummy DeRez; ac_word=$2
36163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36165 if test "${ac_cv_prog_DEREZ+set}" = set; then
36166   echo $ECHO_N "(cached) $ECHO_C" >&6
36167 else
36168   if test -n "$DEREZ"; then
36169   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
36170 else
36171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36172 for as_dir in $PATH
36173 do
36174   IFS=$as_save_IFS
36175   test -z "$as_dir" && as_dir=.
36176   for ac_exec_ext in '' $ac_executable_extensions; do
36177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36178     ac_cv_prog_DEREZ="DeRez"
36179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36180     break 2
36181   fi
36182 done
36183 done
36184 IFS=$as_save_IFS
36185
36186   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
36187 fi
36188 fi
36189 DEREZ=$ac_cv_prog_DEREZ
36190 if test -n "$DEREZ"; then
36191   { echo "$as_me:$LINENO: result: $DEREZ" >&5
36192 echo "${ECHO_T}$DEREZ" >&6; }
36193 else
36194   { echo "$as_me:$LINENO: result: no" >&5
36195 echo "${ECHO_T}no" >&6; }
36196 fi
36197
36198
36199     # Extract the first word of "SetFile", so it can be a program name with args.
36200 set dummy SetFile; ac_word=$2
36201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36203 if test "${ac_cv_prog_SETFILE+set}" = set; then
36204   echo $ECHO_N "(cached) $ECHO_C" >&6
36205 else
36206   if test -n "$SETFILE"; then
36207   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
36208 else
36209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36210 for as_dir in $PATH
36211 do
36212   IFS=$as_save_IFS
36213   test -z "$as_dir" && as_dir=.
36214   for ac_exec_ext in '' $ac_executable_extensions; do
36215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36216     ac_cv_prog_SETFILE="SetFile"
36217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36218     break 2
36219   fi
36220 done
36221 done
36222 IFS=$as_save_IFS
36223
36224   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
36225 fi
36226 fi
36227 SETFILE=$ac_cv_prog_SETFILE
36228 if test -n "$SETFILE"; then
36229   { echo "$as_me:$LINENO: result: $SETFILE" >&5
36230 echo "${ECHO_T}$SETFILE" >&6; }
36231 else
36232   { echo "$as_me:$LINENO: result: no" >&5
36233 echo "${ECHO_T}no" >&6; }
36234 fi
36235
36236
36237
36238     MACSETFILE="\$(SETFILE)"
36239
36240             if test "$wxUSE_MAC" = 1; then
36241         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
36242         RESCOMP="$REZ"
36243         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
36244     else
36245         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
36246         RESCOMP="echo -n \| $REZ"
36247         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
36248     fi
36249
36250 else
36251         MACSETFILE="@true"
36252
36253     if test "$wxUSE_PM" = 1; then
36254         RESCOMP="emxbind"
36255         WXCONFIG_RESFLAGS="-ep"
36256
36257                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
36258     else
36259         POSTLINK_COMMAND="@true"
36260     fi
36261
36262 fi
36263
36264
36265
36266 { echo "$as_me:$LINENO: checking for mode_t" >&5
36267 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
36268 if test "${ac_cv_type_mode_t+set}" = set; then
36269   echo $ECHO_N "(cached) $ECHO_C" >&6
36270 else
36271   cat >conftest.$ac_ext <<_ACEOF
36272 /* confdefs.h.  */
36273 _ACEOF
36274 cat confdefs.h >>conftest.$ac_ext
36275 cat >>conftest.$ac_ext <<_ACEOF
36276 /* end confdefs.h.  */
36277 $ac_includes_default
36278 typedef mode_t ac__type_new_;
36279 int
36280 main ()
36281 {
36282 if ((ac__type_new_ *) 0)
36283   return 0;
36284 if (sizeof (ac__type_new_))
36285   return 0;
36286   ;
36287   return 0;
36288 }
36289 _ACEOF
36290 rm -f conftest.$ac_objext
36291 if { (ac_try="$ac_compile"
36292 case "(($ac_try" in
36293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36294   *) ac_try_echo=$ac_try;;
36295 esac
36296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36297   (eval "$ac_compile") 2>conftest.er1
36298   ac_status=$?
36299   grep -v '^ *+' conftest.er1 >conftest.err
36300   rm -f conftest.er1
36301   cat conftest.err >&5
36302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36303   (exit $ac_status); } && {
36304          test -z "$ac_c_werror_flag" ||
36305          test ! -s conftest.err
36306        } && test -s conftest.$ac_objext; then
36307   ac_cv_type_mode_t=yes
36308 else
36309   echo "$as_me: failed program was:" >&5
36310 sed 's/^/| /' conftest.$ac_ext >&5
36311
36312         ac_cv_type_mode_t=no
36313 fi
36314
36315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36316 fi
36317 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36318 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
36319 if test $ac_cv_type_mode_t = yes; then
36320   :
36321 else
36322
36323 cat >>confdefs.h <<_ACEOF
36324 #define mode_t int
36325 _ACEOF
36326
36327 fi
36328
36329 { echo "$as_me:$LINENO: checking for off_t" >&5
36330 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
36331 if test "${ac_cv_type_off_t+set}" = set; then
36332   echo $ECHO_N "(cached) $ECHO_C" >&6
36333 else
36334   cat >conftest.$ac_ext <<_ACEOF
36335 /* confdefs.h.  */
36336 _ACEOF
36337 cat confdefs.h >>conftest.$ac_ext
36338 cat >>conftest.$ac_ext <<_ACEOF
36339 /* end confdefs.h.  */
36340 $ac_includes_default
36341 typedef off_t ac__type_new_;
36342 int
36343 main ()
36344 {
36345 if ((ac__type_new_ *) 0)
36346   return 0;
36347 if (sizeof (ac__type_new_))
36348   return 0;
36349   ;
36350   return 0;
36351 }
36352 _ACEOF
36353 rm -f conftest.$ac_objext
36354 if { (ac_try="$ac_compile"
36355 case "(($ac_try" in
36356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36357   *) ac_try_echo=$ac_try;;
36358 esac
36359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36360   (eval "$ac_compile") 2>conftest.er1
36361   ac_status=$?
36362   grep -v '^ *+' conftest.er1 >conftest.err
36363   rm -f conftest.er1
36364   cat conftest.err >&5
36365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36366   (exit $ac_status); } && {
36367          test -z "$ac_c_werror_flag" ||
36368          test ! -s conftest.err
36369        } && test -s conftest.$ac_objext; then
36370   ac_cv_type_off_t=yes
36371 else
36372   echo "$as_me: failed program was:" >&5
36373 sed 's/^/| /' conftest.$ac_ext >&5
36374
36375         ac_cv_type_off_t=no
36376 fi
36377
36378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36379 fi
36380 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36381 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
36382 if test $ac_cv_type_off_t = yes; then
36383   :
36384 else
36385
36386 cat >>confdefs.h <<_ACEOF
36387 #define off_t long int
36388 _ACEOF
36389
36390 fi
36391
36392 { echo "$as_me:$LINENO: checking for pid_t" >&5
36393 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
36394 if test "${ac_cv_type_pid_t+set}" = set; then
36395   echo $ECHO_N "(cached) $ECHO_C" >&6
36396 else
36397   cat >conftest.$ac_ext <<_ACEOF
36398 /* confdefs.h.  */
36399 _ACEOF
36400 cat confdefs.h >>conftest.$ac_ext
36401 cat >>conftest.$ac_ext <<_ACEOF
36402 /* end confdefs.h.  */
36403 $ac_includes_default
36404 typedef pid_t ac__type_new_;
36405 int
36406 main ()
36407 {
36408 if ((ac__type_new_ *) 0)
36409   return 0;
36410 if (sizeof (ac__type_new_))
36411   return 0;
36412   ;
36413   return 0;
36414 }
36415 _ACEOF
36416 rm -f conftest.$ac_objext
36417 if { (ac_try="$ac_compile"
36418 case "(($ac_try" in
36419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36420   *) ac_try_echo=$ac_try;;
36421 esac
36422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36423   (eval "$ac_compile") 2>conftest.er1
36424   ac_status=$?
36425   grep -v '^ *+' conftest.er1 >conftest.err
36426   rm -f conftest.er1
36427   cat conftest.err >&5
36428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36429   (exit $ac_status); } && {
36430          test -z "$ac_c_werror_flag" ||
36431          test ! -s conftest.err
36432        } && test -s conftest.$ac_objext; then
36433   ac_cv_type_pid_t=yes
36434 else
36435   echo "$as_me: failed program was:" >&5
36436 sed 's/^/| /' conftest.$ac_ext >&5
36437
36438         ac_cv_type_pid_t=no
36439 fi
36440
36441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36442 fi
36443 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
36444 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
36445 if test $ac_cv_type_pid_t = yes; then
36446   :
36447 else
36448
36449 cat >>confdefs.h <<_ACEOF
36450 #define pid_t int
36451 _ACEOF
36452
36453 fi
36454
36455 { echo "$as_me:$LINENO: checking for size_t" >&5
36456 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
36457 if test "${ac_cv_type_size_t+set}" = set; then
36458   echo $ECHO_N "(cached) $ECHO_C" >&6
36459 else
36460   cat >conftest.$ac_ext <<_ACEOF
36461 /* confdefs.h.  */
36462 _ACEOF
36463 cat confdefs.h >>conftest.$ac_ext
36464 cat >>conftest.$ac_ext <<_ACEOF
36465 /* end confdefs.h.  */
36466 $ac_includes_default
36467 typedef size_t ac__type_new_;
36468 int
36469 main ()
36470 {
36471 if ((ac__type_new_ *) 0)
36472   return 0;
36473 if (sizeof (ac__type_new_))
36474   return 0;
36475   ;
36476   return 0;
36477 }
36478 _ACEOF
36479 rm -f conftest.$ac_objext
36480 if { (ac_try="$ac_compile"
36481 case "(($ac_try" in
36482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36483   *) ac_try_echo=$ac_try;;
36484 esac
36485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36486   (eval "$ac_compile") 2>conftest.er1
36487   ac_status=$?
36488   grep -v '^ *+' conftest.er1 >conftest.err
36489   rm -f conftest.er1
36490   cat conftest.err >&5
36491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36492   (exit $ac_status); } && {
36493          test -z "$ac_c_werror_flag" ||
36494          test ! -s conftest.err
36495        } && test -s conftest.$ac_objext; then
36496   ac_cv_type_size_t=yes
36497 else
36498   echo "$as_me: failed program was:" >&5
36499 sed 's/^/| /' conftest.$ac_ext >&5
36500
36501         ac_cv_type_size_t=no
36502 fi
36503
36504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36505 fi
36506 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
36507 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
36508 if test $ac_cv_type_size_t = yes; then
36509   :
36510 else
36511
36512 cat >>confdefs.h <<_ACEOF
36513 #define size_t unsigned int
36514 _ACEOF
36515
36516 fi
36517
36518 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
36519 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
36520 if test "${ac_cv_type_uid_t+set}" = set; then
36521   echo $ECHO_N "(cached) $ECHO_C" >&6
36522 else
36523   cat >conftest.$ac_ext <<_ACEOF
36524 /* confdefs.h.  */
36525 _ACEOF
36526 cat confdefs.h >>conftest.$ac_ext
36527 cat >>conftest.$ac_ext <<_ACEOF
36528 /* end confdefs.h.  */
36529 #include <sys/types.h>
36530
36531 _ACEOF
36532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36533   $EGREP "uid_t" >/dev/null 2>&1; then
36534   ac_cv_type_uid_t=yes
36535 else
36536   ac_cv_type_uid_t=no
36537 fi
36538 rm -f conftest*
36539
36540 fi
36541 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
36542 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
36543 if test $ac_cv_type_uid_t = no; then
36544
36545 cat >>confdefs.h <<\_ACEOF
36546 #define uid_t int
36547 _ACEOF
36548
36549
36550 cat >>confdefs.h <<\_ACEOF
36551 #define gid_t int
36552 _ACEOF
36553
36554 fi
36555
36556
36557 { echo "$as_me:$LINENO: checking for ssize_t" >&5
36558 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
36559 if test "${ac_cv_type_ssize_t+set}" = set; then
36560   echo $ECHO_N "(cached) $ECHO_C" >&6
36561 else
36562   cat >conftest.$ac_ext <<_ACEOF
36563 /* confdefs.h.  */
36564 _ACEOF
36565 cat confdefs.h >>conftest.$ac_ext
36566 cat >>conftest.$ac_ext <<_ACEOF
36567 /* end confdefs.h.  */
36568 $ac_includes_default
36569 typedef ssize_t ac__type_new_;
36570 int
36571 main ()
36572 {
36573 if ((ac__type_new_ *) 0)
36574   return 0;
36575 if (sizeof (ac__type_new_))
36576   return 0;
36577   ;
36578   return 0;
36579 }
36580 _ACEOF
36581 rm -f conftest.$ac_objext
36582 if { (ac_try="$ac_compile"
36583 case "(($ac_try" in
36584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36585   *) ac_try_echo=$ac_try;;
36586 esac
36587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36588   (eval "$ac_compile") 2>conftest.er1
36589   ac_status=$?
36590   grep -v '^ *+' conftest.er1 >conftest.err
36591   rm -f conftest.er1
36592   cat conftest.err >&5
36593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594   (exit $ac_status); } && {
36595          test -z "$ac_c_werror_flag" ||
36596          test ! -s conftest.err
36597        } && test -s conftest.$ac_objext; then
36598   ac_cv_type_ssize_t=yes
36599 else
36600   echo "$as_me: failed program was:" >&5
36601 sed 's/^/| /' conftest.$ac_ext >&5
36602
36603         ac_cv_type_ssize_t=no
36604 fi
36605
36606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36607 fi
36608 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36609 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
36610 if test $ac_cv_type_ssize_t = yes; then
36611
36612 cat >>confdefs.h <<_ACEOF
36613 #define HAVE_SSIZE_T 1
36614 _ACEOF
36615
36616
36617 fi
36618
36619
36620 ac_ext=cpp
36621 ac_cpp='$CXXCPP $CPPFLAGS'
36622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36625  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
36626 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
36627 if test "${wx_cv_size_t_is_uint+set}" = set; then
36628   echo $ECHO_N "(cached) $ECHO_C" >&6
36629 else
36630
36631                             cat >conftest.$ac_ext <<_ACEOF
36632 /* confdefs.h.  */
36633 _ACEOF
36634 cat confdefs.h >>conftest.$ac_ext
36635 cat >>conftest.$ac_ext <<_ACEOF
36636 /* end confdefs.h.  */
36637 #include <stddef.h>
36638 int
36639 main ()
36640 {
36641
36642             return 0; }
36643
36644             struct Foo { void foo(size_t); void foo(unsigned int); };
36645
36646             int bar() {
36647
36648   ;
36649   return 0;
36650 }
36651 _ACEOF
36652 rm -f conftest.$ac_objext
36653 if { (ac_try="$ac_compile"
36654 case "(($ac_try" in
36655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36656   *) ac_try_echo=$ac_try;;
36657 esac
36658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36659   (eval "$ac_compile") 2>conftest.er1
36660   ac_status=$?
36661   grep -v '^ *+' conftest.er1 >conftest.err
36662   rm -f conftest.er1
36663   cat conftest.err >&5
36664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36665   (exit $ac_status); } && {
36666          test -z "$ac_cxx_werror_flag" ||
36667          test ! -s conftest.err
36668        } && test -s conftest.$ac_objext; then
36669   wx_cv_size_t_is_uint=no
36670 else
36671   echo "$as_me: failed program was:" >&5
36672 sed 's/^/| /' conftest.$ac_ext >&5
36673
36674         wx_cv_size_t_is_uint=yes
36675
36676 fi
36677
36678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36679
36680
36681 fi
36682 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
36683 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
36684
36685 if test "$wx_cv_size_t_is_uint" = "yes"; then
36686     cat >>confdefs.h <<\_ACEOF
36687 #define wxSIZE_T_IS_UINT 1
36688 _ACEOF
36689
36690 else
36691     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
36692 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
36693 if test "${wx_cv_size_t_is_ulong+set}" = set; then
36694   echo $ECHO_N "(cached) $ECHO_C" >&6
36695 else
36696   cat >conftest.$ac_ext <<_ACEOF
36697 /* confdefs.h.  */
36698 _ACEOF
36699 cat confdefs.h >>conftest.$ac_ext
36700 cat >>conftest.$ac_ext <<_ACEOF
36701 /* end confdefs.h.  */
36702 #include <stddef.h>
36703 int
36704 main ()
36705 {
36706
36707                 return 0; }
36708
36709                 struct Foo { void foo(size_t); void foo(unsigned long); };
36710
36711                 int bar() {
36712
36713   ;
36714   return 0;
36715 }
36716 _ACEOF
36717 rm -f conftest.$ac_objext
36718 if { (ac_try="$ac_compile"
36719 case "(($ac_try" in
36720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36721   *) ac_try_echo=$ac_try;;
36722 esac
36723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36724   (eval "$ac_compile") 2>conftest.er1
36725   ac_status=$?
36726   grep -v '^ *+' conftest.er1 >conftest.err
36727   rm -f conftest.er1
36728   cat conftest.err >&5
36729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36730   (exit $ac_status); } && {
36731          test -z "$ac_cxx_werror_flag" ||
36732          test ! -s conftest.err
36733        } && test -s conftest.$ac_objext; then
36734   wx_cv_size_t_is_ulong=no
36735 else
36736   echo "$as_me: failed program was:" >&5
36737 sed 's/^/| /' conftest.$ac_ext >&5
36738
36739         wx_cv_size_t_is_ulong=yes
36740
36741 fi
36742
36743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36744
36745 fi
36746 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
36747 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
36748
36749     if test "$wx_cv_size_t_is_ulong" = "yes"; then
36750         cat >>confdefs.h <<\_ACEOF
36751 #define wxSIZE_T_IS_ULONG 1
36752 _ACEOF
36753
36754     fi
36755 fi
36756
36757 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
36758 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
36759 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
36760   echo $ECHO_N "(cached) $ECHO_C" >&6
36761 else
36762   cat >conftest.$ac_ext <<_ACEOF
36763 /* confdefs.h.  */
36764 _ACEOF
36765 cat confdefs.h >>conftest.$ac_ext
36766 cat >>conftest.$ac_ext <<_ACEOF
36767 /* end confdefs.h.  */
36768 #include <wchar.h>
36769 int
36770 main ()
36771 {
36772
36773             return 0; }
36774
36775             struct Foo { void foo(wchar_t);
36776                          void foo(unsigned short);
36777                          void foo(unsigned int);
36778                          void foo(unsigned long); };
36779
36780             int bar() {
36781
36782   ;
36783   return 0;
36784 }
36785 _ACEOF
36786 rm -f conftest.$ac_objext
36787 if { (ac_try="$ac_compile"
36788 case "(($ac_try" in
36789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36790   *) ac_try_echo=$ac_try;;
36791 esac
36792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36793   (eval "$ac_compile") 2>conftest.er1
36794   ac_status=$?
36795   grep -v '^ *+' conftest.er1 >conftest.err
36796   rm -f conftest.er1
36797   cat conftest.err >&5
36798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36799   (exit $ac_status); } && {
36800          test -z "$ac_cxx_werror_flag" ||
36801          test ! -s conftest.err
36802        } && test -s conftest.$ac_objext; then
36803   wx_cv_wchar_t_is_separate_type=yes
36804 else
36805   echo "$as_me: failed program was:" >&5
36806 sed 's/^/| /' conftest.$ac_ext >&5
36807
36808         wx_cv_wchar_t_is_separate_type=no
36809
36810 fi
36811
36812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36813
36814 fi
36815 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
36816 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
36817
36818 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
36819     cat >>confdefs.h <<\_ACEOF
36820 #define wxWCHAR_T_IS_REAL_TYPE 1
36821 _ACEOF
36822
36823 else
36824     cat >>confdefs.h <<\_ACEOF
36825 #define wxWCHAR_T_IS_REAL_TYPE 0
36826 _ACEOF
36827
36828 fi
36829
36830 ac_ext=c
36831 ac_cpp='$CPP $CPPFLAGS'
36832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36835
36836
36837 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
36838 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
36839 if test "${wx_cv_struct_pw_gecos+set}" = set; then
36840   echo $ECHO_N "(cached) $ECHO_C" >&6
36841 else
36842
36843         cat >conftest.$ac_ext <<_ACEOF
36844 /* confdefs.h.  */
36845 _ACEOF
36846 cat confdefs.h >>conftest.$ac_ext
36847 cat >>conftest.$ac_ext <<_ACEOF
36848 /* end confdefs.h.  */
36849 #include <pwd.h>
36850 int
36851 main ()
36852 {
36853
36854                 char *p;
36855                 struct passwd *pw;
36856                 p = pw->pw_gecos;
36857
36858   ;
36859   return 0;
36860 }
36861 _ACEOF
36862 rm -f conftest.$ac_objext
36863 if { (ac_try="$ac_compile"
36864 case "(($ac_try" in
36865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36866   *) ac_try_echo=$ac_try;;
36867 esac
36868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36869   (eval "$ac_compile") 2>conftest.er1
36870   ac_status=$?
36871   grep -v '^ *+' conftest.er1 >conftest.err
36872   rm -f conftest.er1
36873   cat conftest.err >&5
36874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875   (exit $ac_status); } && {
36876          test -z "$ac_c_werror_flag" ||
36877          test ! -s conftest.err
36878        } && test -s conftest.$ac_objext; then
36879
36880                 wx_cv_struct_pw_gecos=yes
36881
36882 else
36883   echo "$as_me: failed program was:" >&5
36884 sed 's/^/| /' conftest.$ac_ext >&5
36885
36886
36887                 wx_cv_struct_pw_gecos=no
36888
36889
36890 fi
36891
36892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36893
36894
36895 fi
36896 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
36897 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
36898
36899 if test "$wx_cv_struct_pw_gecos" = "yes"; then
36900     cat >>confdefs.h <<\_ACEOF
36901 #define HAVE_PW_GECOS 1
36902 _ACEOF
36903
36904 fi
36905
36906
36907 if test "$wxUSE_WCHAR_T" = "yes"; then
36908     cat >>confdefs.h <<\_ACEOF
36909 #define wxUSE_WCHAR_T 1
36910 _ACEOF
36911
36912
36913         WCSLEN_FOUND=0
36914     WCHAR_LINK=
36915
36916 for ac_func in wcslen
36917 do
36918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36922   echo $ECHO_N "(cached) $ECHO_C" >&6
36923 else
36924   cat >conftest.$ac_ext <<_ACEOF
36925 /* confdefs.h.  */
36926 _ACEOF
36927 cat confdefs.h >>conftest.$ac_ext
36928 cat >>conftest.$ac_ext <<_ACEOF
36929 /* end confdefs.h.  */
36930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36932 #define $ac_func innocuous_$ac_func
36933
36934 /* System header to define __stub macros and hopefully few prototypes,
36935     which can conflict with char $ac_func (); below.
36936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36937     <limits.h> exists even on freestanding compilers.  */
36938
36939 #ifdef __STDC__
36940 # include <limits.h>
36941 #else
36942 # include <assert.h>
36943 #endif
36944
36945 #undef $ac_func
36946
36947 /* Override any GCC internal prototype to avoid an error.
36948    Use char because int might match the return type of a GCC
36949    builtin and then its argument prototype would still apply.  */
36950 #ifdef __cplusplus
36951 extern "C"
36952 #endif
36953 char $ac_func ();
36954 /* The GNU C library defines this for functions which it implements
36955     to always fail with ENOSYS.  Some functions are actually named
36956     something starting with __ and the normal name is an alias.  */
36957 #if defined __stub_$ac_func || defined __stub___$ac_func
36958 choke me
36959 #endif
36960
36961 int
36962 main ()
36963 {
36964 return $ac_func ();
36965   ;
36966   return 0;
36967 }
36968 _ACEOF
36969 rm -f conftest.$ac_objext conftest$ac_exeext
36970 if { (ac_try="$ac_link"
36971 case "(($ac_try" in
36972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36973   *) ac_try_echo=$ac_try;;
36974 esac
36975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36976   (eval "$ac_link") 2>conftest.er1
36977   ac_status=$?
36978   grep -v '^ *+' conftest.er1 >conftest.err
36979   rm -f conftest.er1
36980   cat conftest.err >&5
36981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36982   (exit $ac_status); } && {
36983          test -z "$ac_c_werror_flag" ||
36984          test ! -s conftest.err
36985        } && test -s conftest$ac_exeext &&
36986        $as_test_x conftest$ac_exeext; then
36987   eval "$as_ac_var=yes"
36988 else
36989   echo "$as_me: failed program was:" >&5
36990 sed 's/^/| /' conftest.$ac_ext >&5
36991
36992         eval "$as_ac_var=no"
36993 fi
36994
36995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36996       conftest$ac_exeext conftest.$ac_ext
36997 fi
36998 ac_res=`eval echo '${'$as_ac_var'}'`
36999                { echo "$as_me:$LINENO: result: $ac_res" >&5
37000 echo "${ECHO_T}$ac_res" >&6; }
37001 if test `eval echo '${'$as_ac_var'}'` = yes; then
37002   cat >>confdefs.h <<_ACEOF
37003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37004 _ACEOF
37005  WCSLEN_FOUND=1
37006 fi
37007 done
37008
37009
37010     if test "$WCSLEN_FOUND" = 0; then
37011         if test "$TOOLKIT" = "MSW"; then
37012             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
37013 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
37014 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
37015   echo $ECHO_N "(cached) $ECHO_C" >&6
37016 else
37017   ac_check_lib_save_LIBS=$LIBS
37018 LIBS="-lmsvcrt  $LIBS"
37019 cat >conftest.$ac_ext <<_ACEOF
37020 /* confdefs.h.  */
37021 _ACEOF
37022 cat confdefs.h >>conftest.$ac_ext
37023 cat >>conftest.$ac_ext <<_ACEOF
37024 /* end confdefs.h.  */
37025
37026 /* Override any GCC internal prototype to avoid an error.
37027    Use char because int might match the return type of a GCC
37028    builtin and then its argument prototype would still apply.  */
37029 #ifdef __cplusplus
37030 extern "C"
37031 #endif
37032 char wcslen ();
37033 int
37034 main ()
37035 {
37036 return wcslen ();
37037   ;
37038   return 0;
37039 }
37040 _ACEOF
37041 rm -f conftest.$ac_objext conftest$ac_exeext
37042 if { (ac_try="$ac_link"
37043 case "(($ac_try" in
37044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37045   *) ac_try_echo=$ac_try;;
37046 esac
37047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37048   (eval "$ac_link") 2>conftest.er1
37049   ac_status=$?
37050   grep -v '^ *+' conftest.er1 >conftest.err
37051   rm -f conftest.er1
37052   cat conftest.err >&5
37053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054   (exit $ac_status); } && {
37055          test -z "$ac_c_werror_flag" ||
37056          test ! -s conftest.err
37057        } && test -s conftest$ac_exeext &&
37058        $as_test_x conftest$ac_exeext; then
37059   ac_cv_lib_msvcrt_wcslen=yes
37060 else
37061   echo "$as_me: failed program was:" >&5
37062 sed 's/^/| /' conftest.$ac_ext >&5
37063
37064         ac_cv_lib_msvcrt_wcslen=no
37065 fi
37066
37067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37068       conftest$ac_exeext conftest.$ac_ext
37069 LIBS=$ac_check_lib_save_LIBS
37070 fi
37071 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
37072 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
37073 if test $ac_cv_lib_msvcrt_wcslen = yes; then
37074   WCHAR_OK=1
37075 fi
37076
37077         else
37078             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
37079 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
37080 if test "${ac_cv_lib_w_wcslen+set}" = set; then
37081   echo $ECHO_N "(cached) $ECHO_C" >&6
37082 else
37083   ac_check_lib_save_LIBS=$LIBS
37084 LIBS="-lw  $LIBS"
37085 cat >conftest.$ac_ext <<_ACEOF
37086 /* confdefs.h.  */
37087 _ACEOF
37088 cat confdefs.h >>conftest.$ac_ext
37089 cat >>conftest.$ac_ext <<_ACEOF
37090 /* end confdefs.h.  */
37091
37092 /* Override any GCC internal prototype to avoid an error.
37093    Use char because int might match the return type of a GCC
37094    builtin and then its argument prototype would still apply.  */
37095 #ifdef __cplusplus
37096 extern "C"
37097 #endif
37098 char wcslen ();
37099 int
37100 main ()
37101 {
37102 return wcslen ();
37103   ;
37104   return 0;
37105 }
37106 _ACEOF
37107 rm -f conftest.$ac_objext conftest$ac_exeext
37108 if { (ac_try="$ac_link"
37109 case "(($ac_try" in
37110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37111   *) ac_try_echo=$ac_try;;
37112 esac
37113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37114   (eval "$ac_link") 2>conftest.er1
37115   ac_status=$?
37116   grep -v '^ *+' conftest.er1 >conftest.err
37117   rm -f conftest.er1
37118   cat conftest.err >&5
37119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37120   (exit $ac_status); } && {
37121          test -z "$ac_c_werror_flag" ||
37122          test ! -s conftest.err
37123        } && test -s conftest$ac_exeext &&
37124        $as_test_x conftest$ac_exeext; then
37125   ac_cv_lib_w_wcslen=yes
37126 else
37127   echo "$as_me: failed program was:" >&5
37128 sed 's/^/| /' conftest.$ac_ext >&5
37129
37130         ac_cv_lib_w_wcslen=no
37131 fi
37132
37133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37134       conftest$ac_exeext conftest.$ac_ext
37135 LIBS=$ac_check_lib_save_LIBS
37136 fi
37137 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
37138 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
37139 if test $ac_cv_lib_w_wcslen = yes; then
37140
37141                             WCHAR_LINK=" -lw"
37142                             WCSLEN_FOUND=1
37143
37144 fi
37145
37146         fi
37147     fi
37148
37149     if test "$WCSLEN_FOUND" = 1; then
37150         cat >>confdefs.h <<\_ACEOF
37151 #define HAVE_WCSLEN 1
37152 _ACEOF
37153
37154     fi
37155
37156
37157 for ac_func in wcsdup
37158 do
37159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37163   echo $ECHO_N "(cached) $ECHO_C" >&6
37164 else
37165   cat >conftest.$ac_ext <<_ACEOF
37166 /* confdefs.h.  */
37167 _ACEOF
37168 cat confdefs.h >>conftest.$ac_ext
37169 cat >>conftest.$ac_ext <<_ACEOF
37170 /* end confdefs.h.  */
37171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37173 #define $ac_func innocuous_$ac_func
37174
37175 /* System header to define __stub macros and hopefully few prototypes,
37176     which can conflict with char $ac_func (); below.
37177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37178     <limits.h> exists even on freestanding compilers.  */
37179
37180 #ifdef __STDC__
37181 # include <limits.h>
37182 #else
37183 # include <assert.h>
37184 #endif
37185
37186 #undef $ac_func
37187
37188 /* Override any GCC internal prototype to avoid an error.
37189    Use char because int might match the return type of a GCC
37190    builtin and then its argument prototype would still apply.  */
37191 #ifdef __cplusplus
37192 extern "C"
37193 #endif
37194 char $ac_func ();
37195 /* The GNU C library defines this for functions which it implements
37196     to always fail with ENOSYS.  Some functions are actually named
37197     something starting with __ and the normal name is an alias.  */
37198 #if defined __stub_$ac_func || defined __stub___$ac_func
37199 choke me
37200 #endif
37201
37202 int
37203 main ()
37204 {
37205 return $ac_func ();
37206   ;
37207   return 0;
37208 }
37209 _ACEOF
37210 rm -f conftest.$ac_objext conftest$ac_exeext
37211 if { (ac_try="$ac_link"
37212 case "(($ac_try" in
37213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37214   *) ac_try_echo=$ac_try;;
37215 esac
37216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37217   (eval "$ac_link") 2>conftest.er1
37218   ac_status=$?
37219   grep -v '^ *+' conftest.er1 >conftest.err
37220   rm -f conftest.er1
37221   cat conftest.err >&5
37222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37223   (exit $ac_status); } && {
37224          test -z "$ac_c_werror_flag" ||
37225          test ! -s conftest.err
37226        } && test -s conftest$ac_exeext &&
37227        $as_test_x conftest$ac_exeext; then
37228   eval "$as_ac_var=yes"
37229 else
37230   echo "$as_me: failed program was:" >&5
37231 sed 's/^/| /' conftest.$ac_ext >&5
37232
37233         eval "$as_ac_var=no"
37234 fi
37235
37236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37237       conftest$ac_exeext conftest.$ac_ext
37238 fi
37239 ac_res=`eval echo '${'$as_ac_var'}'`
37240                { echo "$as_me:$LINENO: result: $ac_res" >&5
37241 echo "${ECHO_T}$ac_res" >&6; }
37242 if test `eval echo '${'$as_ac_var'}'` = yes; then
37243   cat >>confdefs.h <<_ACEOF
37244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37245 _ACEOF
37246
37247 fi
37248 done
37249
37250
37251                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
37252         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
37253     fi
37254
37255                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
37256 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
37257 if test "${ac_cv_type_mbstate_t+set}" = set; then
37258   echo $ECHO_N "(cached) $ECHO_C" >&6
37259 else
37260   cat >conftest.$ac_ext <<_ACEOF
37261 /* confdefs.h.  */
37262 _ACEOF
37263 cat confdefs.h >>conftest.$ac_ext
37264 cat >>conftest.$ac_ext <<_ACEOF
37265 /* end confdefs.h.  */
37266 #include <wchar.h>
37267
37268 typedef mbstate_t ac__type_new_;
37269 int
37270 main ()
37271 {
37272 if ((ac__type_new_ *) 0)
37273   return 0;
37274 if (sizeof (ac__type_new_))
37275   return 0;
37276   ;
37277   return 0;
37278 }
37279 _ACEOF
37280 rm -f conftest.$ac_objext
37281 if { (ac_try="$ac_compile"
37282 case "(($ac_try" in
37283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37284   *) ac_try_echo=$ac_try;;
37285 esac
37286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37287   (eval "$ac_compile") 2>conftest.er1
37288   ac_status=$?
37289   grep -v '^ *+' conftest.er1 >conftest.err
37290   rm -f conftest.er1
37291   cat conftest.err >&5
37292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293   (exit $ac_status); } && {
37294          test -z "$ac_c_werror_flag" ||
37295          test ! -s conftest.err
37296        } && test -s conftest.$ac_objext; then
37297   ac_cv_type_mbstate_t=yes
37298 else
37299   echo "$as_me: failed program was:" >&5
37300 sed 's/^/| /' conftest.$ac_ext >&5
37301
37302         ac_cv_type_mbstate_t=no
37303 fi
37304
37305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37306 fi
37307 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
37308 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
37309 if test $ac_cv_type_mbstate_t = yes; then
37310
37311 cat >>confdefs.h <<_ACEOF
37312 #define HAVE_MBSTATE_T 1
37313 _ACEOF
37314
37315
37316 for ac_func in wcsrtombs
37317 do
37318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37322   echo $ECHO_N "(cached) $ECHO_C" >&6
37323 else
37324   cat >conftest.$ac_ext <<_ACEOF
37325 /* confdefs.h.  */
37326 _ACEOF
37327 cat confdefs.h >>conftest.$ac_ext
37328 cat >>conftest.$ac_ext <<_ACEOF
37329 /* end confdefs.h.  */
37330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37332 #define $ac_func innocuous_$ac_func
37333
37334 /* System header to define __stub macros and hopefully few prototypes,
37335     which can conflict with char $ac_func (); below.
37336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37337     <limits.h> exists even on freestanding compilers.  */
37338
37339 #ifdef __STDC__
37340 # include <limits.h>
37341 #else
37342 # include <assert.h>
37343 #endif
37344
37345 #undef $ac_func
37346
37347 /* Override any GCC internal prototype to avoid an error.
37348    Use char because int might match the return type of a GCC
37349    builtin and then its argument prototype would still apply.  */
37350 #ifdef __cplusplus
37351 extern "C"
37352 #endif
37353 char $ac_func ();
37354 /* The GNU C library defines this for functions which it implements
37355     to always fail with ENOSYS.  Some functions are actually named
37356     something starting with __ and the normal name is an alias.  */
37357 #if defined __stub_$ac_func || defined __stub___$ac_func
37358 choke me
37359 #endif
37360
37361 int
37362 main ()
37363 {
37364 return $ac_func ();
37365   ;
37366   return 0;
37367 }
37368 _ACEOF
37369 rm -f conftest.$ac_objext conftest$ac_exeext
37370 if { (ac_try="$ac_link"
37371 case "(($ac_try" in
37372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37373   *) ac_try_echo=$ac_try;;
37374 esac
37375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37376   (eval "$ac_link") 2>conftest.er1
37377   ac_status=$?
37378   grep -v '^ *+' conftest.er1 >conftest.err
37379   rm -f conftest.er1
37380   cat conftest.err >&5
37381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382   (exit $ac_status); } && {
37383          test -z "$ac_c_werror_flag" ||
37384          test ! -s conftest.err
37385        } && test -s conftest$ac_exeext &&
37386        $as_test_x conftest$ac_exeext; then
37387   eval "$as_ac_var=yes"
37388 else
37389   echo "$as_me: failed program was:" >&5
37390 sed 's/^/| /' conftest.$ac_ext >&5
37391
37392         eval "$as_ac_var=no"
37393 fi
37394
37395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37396       conftest$ac_exeext conftest.$ac_ext
37397 fi
37398 ac_res=`eval echo '${'$as_ac_var'}'`
37399                { echo "$as_me:$LINENO: result: $ac_res" >&5
37400 echo "${ECHO_T}$ac_res" >&6; }
37401 if test `eval echo '${'$as_ac_var'}'` = yes; then
37402   cat >>confdefs.h <<_ACEOF
37403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37404 _ACEOF
37405
37406 fi
37407 done
37408
37409 fi
37410
37411 else
37412     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
37413 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
37414 fi
37415
37416
37417
37418 for ac_func in snprintf vsnprintf
37419 do
37420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37424   echo $ECHO_N "(cached) $ECHO_C" >&6
37425 else
37426   cat >conftest.$ac_ext <<_ACEOF
37427 /* confdefs.h.  */
37428 _ACEOF
37429 cat confdefs.h >>conftest.$ac_ext
37430 cat >>conftest.$ac_ext <<_ACEOF
37431 /* end confdefs.h.  */
37432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37434 #define $ac_func innocuous_$ac_func
37435
37436 /* System header to define __stub macros and hopefully few prototypes,
37437     which can conflict with char $ac_func (); below.
37438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37439     <limits.h> exists even on freestanding compilers.  */
37440
37441 #ifdef __STDC__
37442 # include <limits.h>
37443 #else
37444 # include <assert.h>
37445 #endif
37446
37447 #undef $ac_func
37448
37449 /* Override any GCC internal prototype to avoid an error.
37450    Use char because int might match the return type of a GCC
37451    builtin and then its argument prototype would still apply.  */
37452 #ifdef __cplusplus
37453 extern "C"
37454 #endif
37455 char $ac_func ();
37456 /* The GNU C library defines this for functions which it implements
37457     to always fail with ENOSYS.  Some functions are actually named
37458     something starting with __ and the normal name is an alias.  */
37459 #if defined __stub_$ac_func || defined __stub___$ac_func
37460 choke me
37461 #endif
37462
37463 int
37464 main ()
37465 {
37466 return $ac_func ();
37467   ;
37468   return 0;
37469 }
37470 _ACEOF
37471 rm -f conftest.$ac_objext conftest$ac_exeext
37472 if { (ac_try="$ac_link"
37473 case "(($ac_try" in
37474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37475   *) ac_try_echo=$ac_try;;
37476 esac
37477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37478   (eval "$ac_link") 2>conftest.er1
37479   ac_status=$?
37480   grep -v '^ *+' conftest.er1 >conftest.err
37481   rm -f conftest.er1
37482   cat conftest.err >&5
37483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484   (exit $ac_status); } && {
37485          test -z "$ac_c_werror_flag" ||
37486          test ! -s conftest.err
37487        } && test -s conftest$ac_exeext &&
37488        $as_test_x conftest$ac_exeext; then
37489   eval "$as_ac_var=yes"
37490 else
37491   echo "$as_me: failed program was:" >&5
37492 sed 's/^/| /' conftest.$ac_ext >&5
37493
37494         eval "$as_ac_var=no"
37495 fi
37496
37497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37498       conftest$ac_exeext conftest.$ac_ext
37499 fi
37500 ac_res=`eval echo '${'$as_ac_var'}'`
37501                { echo "$as_me:$LINENO: result: $ac_res" >&5
37502 echo "${ECHO_T}$ac_res" >&6; }
37503 if test `eval echo '${'$as_ac_var'}'` = yes; then
37504   cat >>confdefs.h <<_ACEOF
37505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37506 _ACEOF
37507
37508 fi
37509 done
37510
37511
37512 if test "$ac_cv_func_vsnprintf" = "yes"; then
37513         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
37514 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
37515 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
37516   echo $ECHO_N "(cached) $ECHO_C" >&6
37517 else
37518
37519                                                             cat >conftest.$ac_ext <<_ACEOF
37520 /* confdefs.h.  */
37521 _ACEOF
37522 cat confdefs.h >>conftest.$ac_ext
37523 cat >>conftest.$ac_ext <<_ACEOF
37524 /* end confdefs.h.  */
37525
37526                     #include <stdio.h>
37527                     #include <stdarg.h>
37528                     #ifdef __MSL__
37529                     #if __MSL__ >= 0x6000
37530                     namespace std {}
37531                     using namespace std;
37532                     #endif
37533                     #endif
37534
37535 int
37536 main ()
37537 {
37538
37539                     char *buf;
37540                     va_list ap;
37541                     vsnprintf(buf, 10u, "%s", ap);
37542
37543   ;
37544   return 0;
37545 }
37546 _ACEOF
37547 rm -f conftest.$ac_objext
37548 if { (ac_try="$ac_compile"
37549 case "(($ac_try" in
37550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37551   *) ac_try_echo=$ac_try;;
37552 esac
37553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37554   (eval "$ac_compile") 2>conftest.er1
37555   ac_status=$?
37556   grep -v '^ *+' conftest.er1 >conftest.err
37557   rm -f conftest.er1
37558   cat conftest.err >&5
37559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37560   (exit $ac_status); } && {
37561          test -z "$ac_c_werror_flag" ||
37562          test ! -s conftest.err
37563        } && test -s conftest.$ac_objext; then
37564   wx_cv_func_vsnprintf_decl=yes
37565 else
37566   echo "$as_me: failed program was:" >&5
37567 sed 's/^/| /' conftest.$ac_ext >&5
37568
37569         wx_cv_func_vsnprintf_decl=no
37570
37571 fi
37572
37573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37574
37575
37576 fi
37577 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
37578 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
37579
37580     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
37581         cat >>confdefs.h <<\_ACEOF
37582 #define HAVE_VSNPRINTF_DECL 1
37583 _ACEOF
37584
37585
37586                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
37587 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
37588 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
37589   echo $ECHO_N "(cached) $ECHO_C" >&6
37590 else
37591
37592                 cat >conftest.$ac_ext <<_ACEOF
37593 /* confdefs.h.  */
37594 _ACEOF
37595 cat confdefs.h >>conftest.$ac_ext
37596 cat >>conftest.$ac_ext <<_ACEOF
37597 /* end confdefs.h.  */
37598
37599                         #include <stdio.h>
37600                         #include <stdarg.h>
37601                         #ifdef __MSL__
37602                         #if __MSL__ >= 0x6000
37603                         namespace std {}
37604                         using namespace std;
37605                         #endif
37606                         #endif
37607
37608 int
37609 main ()
37610 {
37611
37612                         char *buf;
37613                         va_list ap;
37614                         const char *fmt = "%s";
37615                         vsnprintf(buf, 10u, fmt, ap);
37616
37617   ;
37618   return 0;
37619 }
37620 _ACEOF
37621 rm -f conftest.$ac_objext
37622 if { (ac_try="$ac_compile"
37623 case "(($ac_try" in
37624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37625   *) ac_try_echo=$ac_try;;
37626 esac
37627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37628   (eval "$ac_compile") 2>conftest.er1
37629   ac_status=$?
37630   grep -v '^ *+' conftest.er1 >conftest.err
37631   rm -f conftest.er1
37632   cat conftest.err >&5
37633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634   (exit $ac_status); } && {
37635          test -z "$ac_c_werror_flag" ||
37636          test ! -s conftest.err
37637        } && test -s conftest.$ac_objext; then
37638   wx_cv_func_broken_vsnprintf_decl=no
37639 else
37640   echo "$as_me: failed program was:" >&5
37641 sed 's/^/| /' conftest.$ac_ext >&5
37642
37643         wx_cv_func_broken_vsnprintf_decl=yes
37644
37645 fi
37646
37647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37648
37649
37650 fi
37651 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
37652 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
37653
37654         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
37655             cat >>confdefs.h <<\_ACEOF
37656 #define HAVE_BROKEN_VSNPRINTF_DECL 1
37657 _ACEOF
37658
37659         fi
37660     fi
37661 fi
37662
37663 if test "$ac_cv_func_snprintf" = "yes"; then
37664     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
37665 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
37666 if test "${wx_cv_func_snprintf_decl+set}" = set; then
37667   echo $ECHO_N "(cached) $ECHO_C" >&6
37668 else
37669
37670             cat >conftest.$ac_ext <<_ACEOF
37671 /* confdefs.h.  */
37672 _ACEOF
37673 cat confdefs.h >>conftest.$ac_ext
37674 cat >>conftest.$ac_ext <<_ACEOF
37675 /* end confdefs.h.  */
37676
37677                     #include <stdio.h>
37678                     #include <stdarg.h>
37679                     #ifdef __MSL__
37680                     #if __MSL__ >= 0x6000
37681                     namespace std {}
37682                     using namespace std;
37683                     #endif
37684                     #endif
37685
37686 int
37687 main ()
37688 {
37689
37690                     char *buf;
37691                     snprintf(buf, 10u, "%s", "wx");
37692
37693   ;
37694   return 0;
37695 }
37696 _ACEOF
37697 rm -f conftest.$ac_objext
37698 if { (ac_try="$ac_compile"
37699 case "(($ac_try" in
37700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37701   *) ac_try_echo=$ac_try;;
37702 esac
37703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37704   (eval "$ac_compile") 2>conftest.er1
37705   ac_status=$?
37706   grep -v '^ *+' conftest.er1 >conftest.err
37707   rm -f conftest.er1
37708   cat conftest.err >&5
37709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37710   (exit $ac_status); } && {
37711          test -z "$ac_c_werror_flag" ||
37712          test ! -s conftest.err
37713        } && test -s conftest.$ac_objext; then
37714   wx_cv_func_snprintf_decl=yes
37715 else
37716   echo "$as_me: failed program was:" >&5
37717 sed 's/^/| /' conftest.$ac_ext >&5
37718
37719         wx_cv_func_snprintf_decl=no
37720
37721 fi
37722
37723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37724
37725
37726 fi
37727 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
37728 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
37729
37730     if test "$wx_cv_func_snprintf_decl" = "yes"; then
37731         cat >>confdefs.h <<\_ACEOF
37732 #define HAVE_SNPRINTF_DECL 1
37733 _ACEOF
37734
37735
37736                         { echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
37737 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6; }
37738 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
37739   echo $ECHO_N "(cached) $ECHO_C" >&6
37740 else
37741
37742                 cat >conftest.$ac_ext <<_ACEOF
37743 /* confdefs.h.  */
37744 _ACEOF
37745 cat confdefs.h >>conftest.$ac_ext
37746 cat >>conftest.$ac_ext <<_ACEOF
37747 /* end confdefs.h.  */
37748
37749                         #include <stdio.h>
37750                         #include <stdarg.h>
37751                         #ifdef __MSL__
37752                         #if __MSL__ >= 0x6000
37753                         namespace std {}
37754                         using namespace std;
37755                         #endif
37756                         #endif
37757
37758 int
37759 main ()
37760 {
37761
37762                         char *buf;
37763                         const char *fmt = "%s";
37764                         snprintf(buf, 10u, fmt, "wx");
37765
37766   ;
37767   return 0;
37768 }
37769 _ACEOF
37770 rm -f conftest.$ac_objext
37771 if { (ac_try="$ac_compile"
37772 case "(($ac_try" in
37773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37774   *) ac_try_echo=$ac_try;;
37775 esac
37776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37777   (eval "$ac_compile") 2>conftest.er1
37778   ac_status=$?
37779   grep -v '^ *+' conftest.er1 >conftest.err
37780   rm -f conftest.er1
37781   cat conftest.err >&5
37782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37783   (exit $ac_status); } && {
37784          test -z "$ac_c_werror_flag" ||
37785          test ! -s conftest.err
37786        } && test -s conftest.$ac_objext; then
37787   wx_cv_func_broken_snprintf_decl=no
37788 else
37789   echo "$as_me: failed program was:" >&5
37790 sed 's/^/| /' conftest.$ac_ext >&5
37791
37792         wx_cv_func_broken_snprintf_decl=yes
37793
37794 fi
37795
37796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37797
37798
37799 fi
37800 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
37801 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6; }
37802
37803         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
37804             cat >>confdefs.h <<\_ACEOF
37805 #define HAVE_BROKEN_SNPRINTF_DECL 1
37806 _ACEOF
37807
37808         fi
37809     fi
37810
37811     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
37812
37813                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
37814 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
37815 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
37816   echo $ECHO_N "(cached) $ECHO_C" >&6
37817 else
37818
37819                 if test "$cross_compiling" = yes; then
37820
37821                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
37822 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
37823 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
37824 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
37825                         wx_cv_func_snprintf_pos_params=no
37826
37827
37828 else
37829   cat >conftest.$ac_ext <<_ACEOF
37830 /* confdefs.h.  */
37831 _ACEOF
37832 cat confdefs.h >>conftest.$ac_ext
37833 cat >>conftest.$ac_ext <<_ACEOF
37834 /* end confdefs.h.  */
37835
37836                         #include <stdio.h>
37837
37838                         int main (void)
37839                         {
37840                             char buffer[128];
37841                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
37842                             if (strcmp ("2 3 1", buffer) == 0)
37843                                 exit (0);
37844                             exit (1);
37845                         }
37846
37847 _ACEOF
37848 rm -f conftest$ac_exeext
37849 if { (ac_try="$ac_link"
37850 case "(($ac_try" in
37851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37852   *) ac_try_echo=$ac_try;;
37853 esac
37854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37855   (eval "$ac_link") 2>&5
37856   ac_status=$?
37857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37858   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37859   { (case "(($ac_try" in
37860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37861   *) ac_try_echo=$ac_try;;
37862 esac
37863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37864   (eval "$ac_try") 2>&5
37865   ac_status=$?
37866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867   (exit $ac_status); }; }; then
37868   wx_cv_func_snprintf_pos_params=no
37869 else
37870   echo "$as_me: program exited with status $ac_status" >&5
37871 echo "$as_me: failed program was:" >&5
37872 sed 's/^/| /' conftest.$ac_ext >&5
37873
37874 ( exit $ac_status )
37875 wx_cv_func_snprintf_pos_params=yes
37876 fi
37877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37878 fi
37879
37880
37881
37882
37883 fi
37884 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
37885 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
37886
37887         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
37888             cat >>confdefs.h <<\_ACEOF
37889 #define HAVE_UNIX98_PRINTF 1
37890 _ACEOF
37891
37892         fi
37893     fi
37894 fi
37895
37896 if test "$wxUSE_UNICODE" = yes; then
37897
37898
37899 for ac_func in swprintf
37900 do
37901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37905   echo $ECHO_N "(cached) $ECHO_C" >&6
37906 else
37907   cat >conftest.$ac_ext <<_ACEOF
37908 /* confdefs.h.  */
37909 _ACEOF
37910 cat confdefs.h >>conftest.$ac_ext
37911 cat >>conftest.$ac_ext <<_ACEOF
37912 /* end confdefs.h.  */
37913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37915 #define $ac_func innocuous_$ac_func
37916
37917 /* System header to define __stub macros and hopefully few prototypes,
37918     which can conflict with char $ac_func (); below.
37919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37920     <limits.h> exists even on freestanding compilers.  */
37921
37922 #ifdef __STDC__
37923 # include <limits.h>
37924 #else
37925 # include <assert.h>
37926 #endif
37927
37928 #undef $ac_func
37929
37930 /* Override any GCC internal prototype to avoid an error.
37931    Use char because int might match the return type of a GCC
37932    builtin and then its argument prototype would still apply.  */
37933 #ifdef __cplusplus
37934 extern "C"
37935 #endif
37936 char $ac_func ();
37937 /* The GNU C library defines this for functions which it implements
37938     to always fail with ENOSYS.  Some functions are actually named
37939     something starting with __ and the normal name is an alias.  */
37940 #if defined __stub_$ac_func || defined __stub___$ac_func
37941 choke me
37942 #endif
37943
37944 int
37945 main ()
37946 {
37947 return $ac_func ();
37948   ;
37949   return 0;
37950 }
37951 _ACEOF
37952 rm -f conftest.$ac_objext conftest$ac_exeext
37953 if { (ac_try="$ac_link"
37954 case "(($ac_try" in
37955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37956   *) ac_try_echo=$ac_try;;
37957 esac
37958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37959   (eval "$ac_link") 2>conftest.er1
37960   ac_status=$?
37961   grep -v '^ *+' conftest.er1 >conftest.err
37962   rm -f conftest.er1
37963   cat conftest.err >&5
37964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37965   (exit $ac_status); } && {
37966          test -z "$ac_c_werror_flag" ||
37967          test ! -s conftest.err
37968        } && test -s conftest$ac_exeext &&
37969        $as_test_x conftest$ac_exeext; then
37970   eval "$as_ac_var=yes"
37971 else
37972   echo "$as_me: failed program was:" >&5
37973 sed 's/^/| /' conftest.$ac_ext >&5
37974
37975         eval "$as_ac_var=no"
37976 fi
37977
37978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37979       conftest$ac_exeext conftest.$ac_ext
37980 fi
37981 ac_res=`eval echo '${'$as_ac_var'}'`
37982                { echo "$as_me:$LINENO: result: $ac_res" >&5
37983 echo "${ECHO_T}$ac_res" >&6; }
37984 if test `eval echo '${'$as_ac_var'}'` = yes; then
37985   cat >>confdefs.h <<_ACEOF
37986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37987 _ACEOF
37988
37989 fi
37990 done
37991
37992
37993     if test "$ac_cv_func_swprintf" = "yes"; then
37994         { echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
37995 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6; }
37996 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
37997   echo $ECHO_N "(cached) $ECHO_C" >&6
37998 else
37999
38000                 cat >conftest.$ac_ext <<_ACEOF
38001 /* confdefs.h.  */
38002 _ACEOF
38003 cat confdefs.h >>conftest.$ac_ext
38004 cat >>conftest.$ac_ext <<_ACEOF
38005 /* end confdefs.h.  */
38006
38007                         #include <stdio.h>
38008                         #include <stdarg.h>
38009                         #include <wchar.h>
38010
38011 int
38012 main ()
38013 {
38014
38015                         wchar_t *buf;
38016                         const wchar_t *fmt = L"test";
38017                         swprintf(buf, 10u, fmt);
38018
38019   ;
38020   return 0;
38021 }
38022 _ACEOF
38023 rm -f conftest.$ac_objext
38024 if { (ac_try="$ac_compile"
38025 case "(($ac_try" in
38026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38027   *) ac_try_echo=$ac_try;;
38028 esac
38029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38030   (eval "$ac_compile") 2>conftest.er1
38031   ac_status=$?
38032   grep -v '^ *+' conftest.er1 >conftest.err
38033   rm -f conftest.er1
38034   cat conftest.err >&5
38035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38036   (exit $ac_status); } && {
38037          test -z "$ac_c_werror_flag" ||
38038          test ! -s conftest.err
38039        } && test -s conftest.$ac_objext; then
38040   wx_cv_func_broken_swprintf_decl=no
38041 else
38042   echo "$as_me: failed program was:" >&5
38043 sed 's/^/| /' conftest.$ac_ext >&5
38044
38045         wx_cv_func_broken_swprintf_decl=yes
38046
38047 fi
38048
38049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38050
38051
38052 fi
38053 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
38054 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6; }
38055
38056         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
38057             cat >>confdefs.h <<\_ACEOF
38058 #define HAVE_BROKEN_SWPRINTF_DECL 1
38059 _ACEOF
38060
38061         fi
38062     fi
38063
38064             wchar_headers="#include <stdio.h>
38065 #include <wchar.h>"
38066     case "${host}" in
38067         *-*-solaris2* )
38068
38069 for ac_header in widec.h
38070 do
38071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38075   echo $ECHO_N "(cached) $ECHO_C" >&6
38076 else
38077   cat >conftest.$ac_ext <<_ACEOF
38078 /* confdefs.h.  */
38079 _ACEOF
38080 cat confdefs.h >>conftest.$ac_ext
38081 cat >>conftest.$ac_ext <<_ACEOF
38082 /* end confdefs.h.  */
38083 $ac_includes_default
38084
38085 #include <$ac_header>
38086 _ACEOF
38087 rm -f conftest.$ac_objext
38088 if { (ac_try="$ac_compile"
38089 case "(($ac_try" in
38090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38091   *) ac_try_echo=$ac_try;;
38092 esac
38093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38094   (eval "$ac_compile") 2>conftest.er1
38095   ac_status=$?
38096   grep -v '^ *+' conftest.er1 >conftest.err
38097   rm -f conftest.er1
38098   cat conftest.err >&5
38099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38100   (exit $ac_status); } && {
38101          test -z "$ac_c_werror_flag" ||
38102          test ! -s conftest.err
38103        } && test -s conftest.$ac_objext; then
38104   eval "$as_ac_Header=yes"
38105 else
38106   echo "$as_me: failed program was:" >&5
38107 sed 's/^/| /' conftest.$ac_ext >&5
38108
38109         eval "$as_ac_Header=no"
38110 fi
38111
38112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38113 fi
38114 ac_res=`eval echo '${'$as_ac_Header'}'`
38115                { echo "$as_me:$LINENO: result: $ac_res" >&5
38116 echo "${ECHO_T}$ac_res" >&6; }
38117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38118   cat >>confdefs.h <<_ACEOF
38119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38120 _ACEOF
38121
38122 fi
38123
38124 done
38125
38126             if test "$ac_cv_header_widec_h" = "yes"; then
38127                 wchar_headers="$wchar_headers
38128 #include <widec.h>"
38129             fi
38130     esac
38131
38132
38133   for wx_func in wputc wputchar putws fputws wprintf vswprintf
38134   do
38135     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38136 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38137 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38138   echo $ECHO_N "(cached) $ECHO_C" >&6
38139 else
38140
38141         cat >conftest.$ac_ext <<_ACEOF
38142
38143             /* confdefs.h.  */
38144 _ACEOF
38145 cat confdefs.h >>conftest.$ac_ext
38146 cat >>conftest.$ac_ext <<_ACEOF
38147 /* end confdefs.h.  */
38148
38149                 $wchar_headers
38150                 $ac_includes_default
38151
38152 int
38153 main ()
38154 {
38155
38156                 #ifndef $wx_func
38157                   &$wx_func;
38158                 #endif
38159
38160
38161   ;
38162   return 0;
38163 }
38164
38165 _ACEOF
38166 rm -f conftest.$ac_objext conftest$ac_exeext
38167 if { (ac_try="$ac_link"
38168 case "(($ac_try" in
38169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38170   *) ac_try_echo=$ac_try;;
38171 esac
38172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38173   (eval "$ac_link") 2>conftest.er1
38174   ac_status=$?
38175   grep -v '^ *+' conftest.er1 >conftest.err
38176   rm -f conftest.er1
38177   cat conftest.err >&5
38178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38179   (exit $ac_status); } && {
38180          test -z "$ac_c_werror_flag" ||
38181          test ! -s conftest.err
38182        } && test -s conftest$ac_exeext &&
38183        $as_test_x conftest$ac_exeext; then
38184   eval wx_cv_func_$wx_func=yes
38185 else
38186   echo "$as_me: failed program was:" >&5
38187 sed 's/^/| /' conftest.$ac_ext >&5
38188
38189         eval wx_cv_func_$wx_func=no
38190 fi
38191
38192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38193       conftest$ac_exeext conftest.$ac_ext
38194
38195 fi
38196 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38197                { echo "$as_me:$LINENO: result: $ac_res" >&5
38198 echo "${ECHO_T}$ac_res" >&6; }
38199
38200     if eval test \$wx_cv_func_$wx_func = yes
38201     then
38202       cat >>confdefs.h <<_ACEOF
38203 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38204 _ACEOF
38205
38206
38207     else
38208       :
38209
38210     fi
38211   done
38212
38213
38214                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
38215 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
38216     cat >conftest.$ac_ext <<_ACEOF
38217 /* confdefs.h.  */
38218 _ACEOF
38219 cat confdefs.h >>conftest.$ac_ext
38220 cat >>conftest.$ac_ext <<_ACEOF
38221 /* end confdefs.h.  */
38222 #include <wchar.h>
38223 int
38224 main ()
38225 {
38226 &_vsnwprintf;
38227   ;
38228   return 0;
38229 }
38230 _ACEOF
38231 rm -f conftest.$ac_objext
38232 if { (ac_try="$ac_compile"
38233 case "(($ac_try" in
38234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38235   *) ac_try_echo=$ac_try;;
38236 esac
38237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38238   (eval "$ac_compile") 2>conftest.er1
38239   ac_status=$?
38240   grep -v '^ *+' conftest.er1 >conftest.err
38241   rm -f conftest.er1
38242   cat conftest.err >&5
38243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38244   (exit $ac_status); } && {
38245          test -z "$ac_c_werror_flag" ||
38246          test ! -s conftest.err
38247        } && test -s conftest.$ac_objext; then
38248   { echo "$as_me:$LINENO: result: yes" >&5
38249 echo "${ECHO_T}yes" >&6; }
38250                     cat >>confdefs.h <<\_ACEOF
38251 #define HAVE__VSNWPRINTF 1
38252 _ACEOF
38253
38254 else
38255   echo "$as_me: failed program was:" >&5
38256 sed 's/^/| /' conftest.$ac_ext >&5
38257
38258         { echo "$as_me:$LINENO: result: no" >&5
38259 echo "${ECHO_T}no" >&6; }
38260 fi
38261
38262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
38263 fi
38264
38265 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
38266
38267   for wx_func in fnmatch
38268   do
38269     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38270 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38271 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38272   echo $ECHO_N "(cached) $ECHO_C" >&6
38273 else
38274
38275         cat >conftest.$ac_ext <<_ACEOF
38276
38277             /* confdefs.h.  */
38278 _ACEOF
38279 cat confdefs.h >>conftest.$ac_ext
38280 cat >>conftest.$ac_ext <<_ACEOF
38281 /* end confdefs.h.  */
38282
38283                 #include <fnmatch.h>
38284                 $ac_includes_default
38285
38286 int
38287 main ()
38288 {
38289
38290                 #ifndef $wx_func
38291                   &$wx_func;
38292                 #endif
38293
38294
38295   ;
38296   return 0;
38297 }
38298
38299 _ACEOF
38300 rm -f conftest.$ac_objext conftest$ac_exeext
38301 if { (ac_try="$ac_link"
38302 case "(($ac_try" in
38303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38304   *) ac_try_echo=$ac_try;;
38305 esac
38306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38307   (eval "$ac_link") 2>conftest.er1
38308   ac_status=$?
38309   grep -v '^ *+' conftest.er1 >conftest.err
38310   rm -f conftest.er1
38311   cat conftest.err >&5
38312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38313   (exit $ac_status); } && {
38314          test -z "$ac_c_werror_flag" ||
38315          test ! -s conftest.err
38316        } && test -s conftest$ac_exeext &&
38317        $as_test_x conftest$ac_exeext; then
38318   eval wx_cv_func_$wx_func=yes
38319 else
38320   echo "$as_me: failed program was:" >&5
38321 sed 's/^/| /' conftest.$ac_ext >&5
38322
38323         eval wx_cv_func_$wx_func=no
38324 fi
38325
38326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38327       conftest$ac_exeext conftest.$ac_ext
38328
38329 fi
38330 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38331                { echo "$as_me:$LINENO: result: $ac_res" >&5
38332 echo "${ECHO_T}$ac_res" >&6; }
38333
38334     if eval test \$wx_cv_func_$wx_func = yes
38335     then
38336       cat >>confdefs.h <<_ACEOF
38337 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38338 _ACEOF
38339
38340
38341     else
38342       :
38343
38344     fi
38345   done
38346
38347 fi
38348
38349 if test "$wxUSE_FILE" = "yes"; then
38350
38351   for wx_func in fsync
38352   do
38353     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38354 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38355 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38356   echo $ECHO_N "(cached) $ECHO_C" >&6
38357 else
38358
38359         cat >conftest.$ac_ext <<_ACEOF
38360
38361             /* confdefs.h.  */
38362 _ACEOF
38363 cat confdefs.h >>conftest.$ac_ext
38364 cat >>conftest.$ac_ext <<_ACEOF
38365 /* end confdefs.h.  */
38366
38367
38368                 $ac_includes_default
38369
38370 int
38371 main ()
38372 {
38373
38374                 #ifndef $wx_func
38375                   &$wx_func;
38376                 #endif
38377
38378
38379   ;
38380   return 0;
38381 }
38382
38383 _ACEOF
38384 rm -f conftest.$ac_objext conftest$ac_exeext
38385 if { (ac_try="$ac_link"
38386 case "(($ac_try" in
38387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38388   *) ac_try_echo=$ac_try;;
38389 esac
38390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38391   (eval "$ac_link") 2>conftest.er1
38392   ac_status=$?
38393   grep -v '^ *+' conftest.er1 >conftest.err
38394   rm -f conftest.er1
38395   cat conftest.err >&5
38396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38397   (exit $ac_status); } && {
38398          test -z "$ac_c_werror_flag" ||
38399          test ! -s conftest.err
38400        } && test -s conftest$ac_exeext &&
38401        $as_test_x conftest$ac_exeext; then
38402   eval wx_cv_func_$wx_func=yes
38403 else
38404   echo "$as_me: failed program was:" >&5
38405 sed 's/^/| /' conftest.$ac_ext >&5
38406
38407         eval wx_cv_func_$wx_func=no
38408 fi
38409
38410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38411       conftest$ac_exeext conftest.$ac_ext
38412
38413 fi
38414 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38415                { echo "$as_me:$LINENO: result: $ac_res" >&5
38416 echo "${ECHO_T}$ac_res" >&6; }
38417
38418     if eval test \$wx_cv_func_$wx_func = yes
38419     then
38420       cat >>confdefs.h <<_ACEOF
38421 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38422 _ACEOF
38423
38424
38425     else
38426       :
38427
38428     fi
38429   done
38430
38431 fi
38432
38433 ac_ext=cpp
38434 ac_cpp='$CXXCPP $CPPFLAGS'
38435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38438
38439
38440   for wx_func in round
38441   do
38442     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38443 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38444 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38445   echo $ECHO_N "(cached) $ECHO_C" >&6
38446 else
38447
38448         cat >conftest.$ac_ext <<_ACEOF
38449
38450             /* confdefs.h.  */
38451 _ACEOF
38452 cat confdefs.h >>conftest.$ac_ext
38453 cat >>conftest.$ac_ext <<_ACEOF
38454 /* end confdefs.h.  */
38455
38456                 #include <math.h>
38457                 $ac_includes_default
38458
38459 int
38460 main ()
38461 {
38462
38463                 #ifndef $wx_func
38464                   &$wx_func;
38465                 #endif
38466
38467
38468   ;
38469   return 0;
38470 }
38471
38472 _ACEOF
38473 rm -f conftest.$ac_objext conftest$ac_exeext
38474 if { (ac_try="$ac_link"
38475 case "(($ac_try" in
38476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38477   *) ac_try_echo=$ac_try;;
38478 esac
38479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38480   (eval "$ac_link") 2>conftest.er1
38481   ac_status=$?
38482   grep -v '^ *+' conftest.er1 >conftest.err
38483   rm -f conftest.er1
38484   cat conftest.err >&5
38485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38486   (exit $ac_status); } && {
38487          test -z "$ac_cxx_werror_flag" ||
38488          test ! -s conftest.err
38489        } && test -s conftest$ac_exeext &&
38490        $as_test_x conftest$ac_exeext; then
38491   eval wx_cv_func_$wx_func=yes
38492 else
38493   echo "$as_me: failed program was:" >&5
38494 sed 's/^/| /' conftest.$ac_ext >&5
38495
38496         eval wx_cv_func_$wx_func=no
38497 fi
38498
38499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38500       conftest$ac_exeext conftest.$ac_ext
38501
38502 fi
38503 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38504                { echo "$as_me:$LINENO: result: $ac_res" >&5
38505 echo "${ECHO_T}$ac_res" >&6; }
38506
38507     if eval test \$wx_cv_func_$wx_func = yes
38508     then
38509       cat >>confdefs.h <<_ACEOF
38510 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38511 _ACEOF
38512
38513
38514     else
38515       :
38516
38517     fi
38518   done
38519
38520 ac_ext=c
38521 ac_cpp='$CPP $CPPFLAGS'
38522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38525
38526
38527 if test "$TOOLKIT" != "MSW"; then
38528
38529
38530
38531
38532
38533 # Check whether --with-libiconv-prefix was given.
38534 if test "${with_libiconv_prefix+set}" = set; then
38535   withval=$with_libiconv_prefix;
38536     for dir in `echo "$withval" | tr : ' '`; do
38537       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
38538       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
38539     done
38540
38541 fi
38542
38543
38544   { echo "$as_me:$LINENO: checking for iconv" >&5
38545 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
38546 if test "${am_cv_func_iconv+set}" = set; then
38547   echo $ECHO_N "(cached) $ECHO_C" >&6
38548 else
38549
38550     am_cv_func_iconv="no, consider installing GNU libiconv"
38551     am_cv_lib_iconv=no
38552     cat >conftest.$ac_ext <<_ACEOF
38553 /* confdefs.h.  */
38554 _ACEOF
38555 cat confdefs.h >>conftest.$ac_ext
38556 cat >>conftest.$ac_ext <<_ACEOF
38557 /* end confdefs.h.  */
38558 #include <stdlib.h>
38559 #include <iconv.h>
38560 int
38561 main ()
38562 {
38563 iconv_t cd = iconv_open("","");
38564        iconv(cd,NULL,NULL,NULL,NULL);
38565        iconv_close(cd);
38566   ;
38567   return 0;
38568 }
38569 _ACEOF
38570 rm -f conftest.$ac_objext conftest$ac_exeext
38571 if { (ac_try="$ac_link"
38572 case "(($ac_try" in
38573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38574   *) ac_try_echo=$ac_try;;
38575 esac
38576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38577   (eval "$ac_link") 2>conftest.er1
38578   ac_status=$?
38579   grep -v '^ *+' conftest.er1 >conftest.err
38580   rm -f conftest.er1
38581   cat conftest.err >&5
38582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583   (exit $ac_status); } && {
38584          test -z "$ac_c_werror_flag" ||
38585          test ! -s conftest.err
38586        } && test -s conftest$ac_exeext &&
38587        $as_test_x conftest$ac_exeext; then
38588   am_cv_func_iconv=yes
38589 else
38590   echo "$as_me: failed program was:" >&5
38591 sed 's/^/| /' conftest.$ac_ext >&5
38592
38593
38594 fi
38595
38596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38597       conftest$ac_exeext conftest.$ac_ext
38598     if test "$am_cv_func_iconv" != yes; then
38599       am_save_LIBS="$LIBS"
38600       LIBS="$LIBS -liconv"
38601       cat >conftest.$ac_ext <<_ACEOF
38602 /* confdefs.h.  */
38603 _ACEOF
38604 cat confdefs.h >>conftest.$ac_ext
38605 cat >>conftest.$ac_ext <<_ACEOF
38606 /* end confdefs.h.  */
38607 #include <stdlib.h>
38608 #include <iconv.h>
38609 int
38610 main ()
38611 {
38612 iconv_t cd = iconv_open("","");
38613          iconv(cd,NULL,NULL,NULL,NULL);
38614          iconv_close(cd);
38615   ;
38616   return 0;
38617 }
38618 _ACEOF
38619 rm -f conftest.$ac_objext conftest$ac_exeext
38620 if { (ac_try="$ac_link"
38621 case "(($ac_try" in
38622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38623   *) ac_try_echo=$ac_try;;
38624 esac
38625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38626   (eval "$ac_link") 2>conftest.er1
38627   ac_status=$?
38628   grep -v '^ *+' conftest.er1 >conftest.err
38629   rm -f conftest.er1
38630   cat conftest.err >&5
38631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38632   (exit $ac_status); } && {
38633          test -z "$ac_c_werror_flag" ||
38634          test ! -s conftest.err
38635        } && test -s conftest$ac_exeext &&
38636        $as_test_x conftest$ac_exeext; then
38637   am_cv_lib_iconv=yes
38638         am_cv_func_iconv=yes
38639 else
38640   echo "$as_me: failed program was:" >&5
38641 sed 's/^/| /' conftest.$ac_ext >&5
38642
38643
38644 fi
38645
38646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38647       conftest$ac_exeext conftest.$ac_ext
38648       LIBS="$am_save_LIBS"
38649     fi
38650
38651 fi
38652 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38653 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
38654   if test "$am_cv_func_iconv" = yes; then
38655
38656 cat >>confdefs.h <<\_ACEOF
38657 #define HAVE_ICONV 1
38658 _ACEOF
38659
38660     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
38661 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
38662 if test "${wx_cv_func_iconv_const+set}" = set; then
38663   echo $ECHO_N "(cached) $ECHO_C" >&6
38664 else
38665   cat >conftest.$ac_ext <<_ACEOF
38666 /* confdefs.h.  */
38667 _ACEOF
38668 cat confdefs.h >>conftest.$ac_ext
38669 cat >>conftest.$ac_ext <<_ACEOF
38670 /* end confdefs.h.  */
38671
38672 #include <stdlib.h>
38673 #include <iconv.h>
38674 extern
38675 #ifdef __cplusplus
38676 "C"
38677 #endif
38678 #if defined(__STDC__) || defined(__cplusplus)
38679 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
38680 #else
38681 size_t iconv();
38682 #endif
38683
38684 int
38685 main ()
38686 {
38687
38688   ;
38689   return 0;
38690 }
38691 _ACEOF
38692 rm -f conftest.$ac_objext
38693 if { (ac_try="$ac_compile"
38694 case "(($ac_try" in
38695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38696   *) ac_try_echo=$ac_try;;
38697 esac
38698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38699   (eval "$ac_compile") 2>conftest.er1
38700   ac_status=$?
38701   grep -v '^ *+' conftest.er1 >conftest.err
38702   rm -f conftest.er1
38703   cat conftest.err >&5
38704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38705   (exit $ac_status); } && {
38706          test -z "$ac_c_werror_flag" ||
38707          test ! -s conftest.err
38708        } && test -s conftest.$ac_objext; then
38709   wx_cv_func_iconv_const="no"
38710 else
38711   echo "$as_me: failed program was:" >&5
38712 sed 's/^/| /' conftest.$ac_ext >&5
38713
38714         wx_cv_func_iconv_const="yes"
38715
38716 fi
38717
38718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38719
38720 fi
38721 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
38722 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
38723
38724     iconv_const=
38725     if test "x$wx_cv_func_iconv_const" = "xyes"; then
38726         iconv_const="const"
38727     fi
38728
38729
38730 cat >>confdefs.h <<_ACEOF
38731 #define ICONV_CONST $iconv_const
38732 _ACEOF
38733
38734   fi
38735   LIBICONV=
38736   if test "$am_cv_lib_iconv" = yes; then
38737     LIBICONV="-liconv"
38738   fi
38739
38740
38741 LIBS="$LIBICONV $LIBS"
38742
38743 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38744
38745 for ac_func in sigaction
38746 do
38747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38751   echo $ECHO_N "(cached) $ECHO_C" >&6
38752 else
38753   cat >conftest.$ac_ext <<_ACEOF
38754 /* confdefs.h.  */
38755 _ACEOF
38756 cat confdefs.h >>conftest.$ac_ext
38757 cat >>conftest.$ac_ext <<_ACEOF
38758 /* end confdefs.h.  */
38759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38761 #define $ac_func innocuous_$ac_func
38762
38763 /* System header to define __stub macros and hopefully few prototypes,
38764     which can conflict with char $ac_func (); below.
38765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38766     <limits.h> exists even on freestanding compilers.  */
38767
38768 #ifdef __STDC__
38769 # include <limits.h>
38770 #else
38771 # include <assert.h>
38772 #endif
38773
38774 #undef $ac_func
38775
38776 /* Override any GCC internal prototype to avoid an error.
38777    Use char because int might match the return type of a GCC
38778    builtin and then its argument prototype would still apply.  */
38779 #ifdef __cplusplus
38780 extern "C"
38781 #endif
38782 char $ac_func ();
38783 /* The GNU C library defines this for functions which it implements
38784     to always fail with ENOSYS.  Some functions are actually named
38785     something starting with __ and the normal name is an alias.  */
38786 #if defined __stub_$ac_func || defined __stub___$ac_func
38787 choke me
38788 #endif
38789
38790 int
38791 main ()
38792 {
38793 return $ac_func ();
38794   ;
38795   return 0;
38796 }
38797 _ACEOF
38798 rm -f conftest.$ac_objext conftest$ac_exeext
38799 if { (ac_try="$ac_link"
38800 case "(($ac_try" in
38801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38802   *) ac_try_echo=$ac_try;;
38803 esac
38804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38805   (eval "$ac_link") 2>conftest.er1
38806   ac_status=$?
38807   grep -v '^ *+' conftest.er1 >conftest.err
38808   rm -f conftest.er1
38809   cat conftest.err >&5
38810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811   (exit $ac_status); } && {
38812          test -z "$ac_c_werror_flag" ||
38813          test ! -s conftest.err
38814        } && test -s conftest$ac_exeext &&
38815        $as_test_x conftest$ac_exeext; then
38816   eval "$as_ac_var=yes"
38817 else
38818   echo "$as_me: failed program was:" >&5
38819 sed 's/^/| /' conftest.$ac_ext >&5
38820
38821         eval "$as_ac_var=no"
38822 fi
38823
38824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38825       conftest$ac_exeext conftest.$ac_ext
38826 fi
38827 ac_res=`eval echo '${'$as_ac_var'}'`
38828                { echo "$as_me:$LINENO: result: $ac_res" >&5
38829 echo "${ECHO_T}$ac_res" >&6; }
38830 if test `eval echo '${'$as_ac_var'}'` = yes; then
38831   cat >>confdefs.h <<_ACEOF
38832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38833 _ACEOF
38834
38835 fi
38836 done
38837
38838
38839     if test "$ac_cv_func_sigaction" = "no"; then
38840         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
38841 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
38842         wxUSE_ON_FATAL_EXCEPTION=no
38843     fi
38844
38845     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38846       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
38847 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
38848 if test "${wx_cv_type_sa_handler+set}" = set; then
38849   echo $ECHO_N "(cached) $ECHO_C" >&6
38850 else
38851
38852                 ac_ext=cpp
38853 ac_cpp='$CXXCPP $CPPFLAGS'
38854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38857
38858         cat >conftest.$ac_ext <<_ACEOF
38859 /* confdefs.h.  */
38860 _ACEOF
38861 cat confdefs.h >>conftest.$ac_ext
38862 cat >>conftest.$ac_ext <<_ACEOF
38863 /* end confdefs.h.  */
38864 #include <signal.h>
38865 int
38866 main ()
38867 {
38868
38869                         extern void testSigHandler(int);
38870
38871                         struct sigaction sa;
38872                         sa.sa_handler = testSigHandler;
38873
38874   ;
38875   return 0;
38876 }
38877 _ACEOF
38878 rm -f conftest.$ac_objext
38879 if { (ac_try="$ac_compile"
38880 case "(($ac_try" in
38881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38882   *) ac_try_echo=$ac_try;;
38883 esac
38884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38885   (eval "$ac_compile") 2>conftest.er1
38886   ac_status=$?
38887   grep -v '^ *+' conftest.er1 >conftest.err
38888   rm -f conftest.er1
38889   cat conftest.err >&5
38890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38891   (exit $ac_status); } && {
38892          test -z "$ac_cxx_werror_flag" ||
38893          test ! -s conftest.err
38894        } && test -s conftest.$ac_objext; then
38895
38896                         wx_cv_type_sa_handler=int
38897
38898 else
38899   echo "$as_me: failed program was:" >&5
38900 sed 's/^/| /' conftest.$ac_ext >&5
38901
38902
38903                         wx_cv_type_sa_handler=void
38904
38905 fi
38906
38907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38908         ac_ext=c
38909 ac_cpp='$CPP $CPPFLAGS'
38910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38913
38914
38915 fi
38916 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
38917 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
38918
38919       cat >>confdefs.h <<_ACEOF
38920 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
38921 _ACEOF
38922
38923     fi
38924 fi
38925
38926 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38927     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
38928 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
38929 if test "${wx_cv_func_backtrace+set}" = set; then
38930   echo $ECHO_N "(cached) $ECHO_C" >&6
38931 else
38932
38933             ac_ext=cpp
38934 ac_cpp='$CXXCPP $CPPFLAGS'
38935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38938
38939             cat >conftest.$ac_ext <<_ACEOF
38940 /* confdefs.h.  */
38941 _ACEOF
38942 cat confdefs.h >>conftest.$ac_ext
38943 cat >>conftest.$ac_ext <<_ACEOF
38944 /* end confdefs.h.  */
38945 #include <execinfo.h>
38946 int
38947 main ()
38948 {
38949
38950                     void *trace[1];
38951                     char **messages;
38952
38953                     backtrace(trace, 1);
38954                     messages = backtrace_symbols(trace, 1);
38955
38956   ;
38957   return 0;
38958 }
38959 _ACEOF
38960 rm -f conftest.$ac_objext
38961 if { (ac_try="$ac_compile"
38962 case "(($ac_try" in
38963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38964   *) ac_try_echo=$ac_try;;
38965 esac
38966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38967   (eval "$ac_compile") 2>conftest.er1
38968   ac_status=$?
38969   grep -v '^ *+' conftest.er1 >conftest.err
38970   rm -f conftest.er1
38971   cat conftest.err >&5
38972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38973   (exit $ac_status); } && {
38974          test -z "$ac_cxx_werror_flag" ||
38975          test ! -s conftest.err
38976        } && test -s conftest.$ac_objext; then
38977   wx_cv_func_backtrace=yes
38978 else
38979   echo "$as_me: failed program was:" >&5
38980 sed 's/^/| /' conftest.$ac_ext >&5
38981
38982         wx_cv_func_backtrace=no
38983
38984 fi
38985
38986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38987             ac_ext=c
38988 ac_cpp='$CPP $CPPFLAGS'
38989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38992
38993
38994
38995 fi
38996 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
38997 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
38998
38999
39000     if test "$wx_cv_func_backtrace" = "no"; then
39001         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
39002 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
39003         wxUSE_STACKWALKER=no
39004     else
39005         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
39006 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
39007 if test "${wx_cv_func_cxa_demangle+set}" = set; then
39008   echo $ECHO_N "(cached) $ECHO_C" >&6
39009 else
39010
39011                 ac_ext=cpp
39012 ac_cpp='$CXXCPP $CPPFLAGS'
39013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39016
39017                 cat >conftest.$ac_ext <<_ACEOF
39018 /* confdefs.h.  */
39019 _ACEOF
39020 cat confdefs.h >>conftest.$ac_ext
39021 cat >>conftest.$ac_ext <<_ACEOF
39022 /* end confdefs.h.  */
39023 #include <cxxabi.h>
39024 int
39025 main ()
39026 {
39027
39028                         int rc;
39029                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
39030
39031   ;
39032   return 0;
39033 }
39034 _ACEOF
39035 rm -f conftest.$ac_objext conftest$ac_exeext
39036 if { (ac_try="$ac_link"
39037 case "(($ac_try" in
39038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39039   *) ac_try_echo=$ac_try;;
39040 esac
39041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39042   (eval "$ac_link") 2>conftest.er1
39043   ac_status=$?
39044   grep -v '^ *+' conftest.er1 >conftest.err
39045   rm -f conftest.er1
39046   cat conftest.err >&5
39047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39048   (exit $ac_status); } && {
39049          test -z "$ac_cxx_werror_flag" ||
39050          test ! -s conftest.err
39051        } && test -s conftest$ac_exeext &&
39052        $as_test_x conftest$ac_exeext; then
39053   wx_cv_func_cxa_demangle=yes
39054 else
39055   echo "$as_me: failed program was:" >&5
39056 sed 's/^/| /' conftest.$ac_ext >&5
39057
39058         wx_cv_func_cxa_demangle=no
39059
39060 fi
39061
39062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39063       conftest$ac_exeext conftest.$ac_ext
39064                 ac_ext=c
39065 ac_cpp='$CPP $CPPFLAGS'
39066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39069
39070
39071
39072 fi
39073 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
39074 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
39075
39076         if test "$wx_cv_func_cxa_demangle" = "yes"; then
39077             cat >>confdefs.h <<\_ACEOF
39078 #define HAVE_CXA_DEMANGLE 1
39079 _ACEOF
39080
39081         fi
39082     fi
39083 fi
39084
39085 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
39086     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
39087 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
39088     wxUSE_STACKWALKER=no
39089 fi
39090
39091
39092
39093
39094 for ac_func in mkstemp mktemp
39095 do
39096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39100   echo $ECHO_N "(cached) $ECHO_C" >&6
39101 else
39102   cat >conftest.$ac_ext <<_ACEOF
39103 /* confdefs.h.  */
39104 _ACEOF
39105 cat confdefs.h >>conftest.$ac_ext
39106 cat >>conftest.$ac_ext <<_ACEOF
39107 /* end confdefs.h.  */
39108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39110 #define $ac_func innocuous_$ac_func
39111
39112 /* System header to define __stub macros and hopefully few prototypes,
39113     which can conflict with char $ac_func (); below.
39114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39115     <limits.h> exists even on freestanding compilers.  */
39116
39117 #ifdef __STDC__
39118 # include <limits.h>
39119 #else
39120 # include <assert.h>
39121 #endif
39122
39123 #undef $ac_func
39124
39125 /* Override any GCC internal prototype to avoid an error.
39126    Use char because int might match the return type of a GCC
39127    builtin and then its argument prototype would still apply.  */
39128 #ifdef __cplusplus
39129 extern "C"
39130 #endif
39131 char $ac_func ();
39132 /* The GNU C library defines this for functions which it implements
39133     to always fail with ENOSYS.  Some functions are actually named
39134     something starting with __ and the normal name is an alias.  */
39135 #if defined __stub_$ac_func || defined __stub___$ac_func
39136 choke me
39137 #endif
39138
39139 int
39140 main ()
39141 {
39142 return $ac_func ();
39143   ;
39144   return 0;
39145 }
39146 _ACEOF
39147 rm -f conftest.$ac_objext conftest$ac_exeext
39148 if { (ac_try="$ac_link"
39149 case "(($ac_try" in
39150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39151   *) ac_try_echo=$ac_try;;
39152 esac
39153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39154   (eval "$ac_link") 2>conftest.er1
39155   ac_status=$?
39156   grep -v '^ *+' conftest.er1 >conftest.err
39157   rm -f conftest.er1
39158   cat conftest.err >&5
39159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39160   (exit $ac_status); } && {
39161          test -z "$ac_c_werror_flag" ||
39162          test ! -s conftest.err
39163        } && test -s conftest$ac_exeext &&
39164        $as_test_x conftest$ac_exeext; then
39165   eval "$as_ac_var=yes"
39166 else
39167   echo "$as_me: failed program was:" >&5
39168 sed 's/^/| /' conftest.$ac_ext >&5
39169
39170         eval "$as_ac_var=no"
39171 fi
39172
39173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39174       conftest$ac_exeext conftest.$ac_ext
39175 fi
39176 ac_res=`eval echo '${'$as_ac_var'}'`
39177                { echo "$as_me:$LINENO: result: $ac_res" >&5
39178 echo "${ECHO_T}$ac_res" >&6; }
39179 if test `eval echo '${'$as_ac_var'}'` = yes; then
39180   cat >>confdefs.h <<_ACEOF
39181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39182 _ACEOF
39183  break
39184 fi
39185 done
39186
39187
39188 { echo "$as_me:$LINENO: checking for statfs" >&5
39189 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
39190 if test "${wx_cv_func_statfs+set}" = set; then
39191   echo $ECHO_N "(cached) $ECHO_C" >&6
39192 else
39193   cat >conftest.$ac_ext <<_ACEOF
39194 /* confdefs.h.  */
39195 _ACEOF
39196 cat confdefs.h >>conftest.$ac_ext
39197 cat >>conftest.$ac_ext <<_ACEOF
39198 /* end confdefs.h.  */
39199
39200              #if defined(__BSD__)
39201              #include <sys/param.h>
39202              #include <sys/mount.h>
39203              #else
39204              #include <sys/vfs.h>
39205              #endif
39206
39207 int
39208 main ()
39209 {
39210
39211              long l;
39212              struct statfs fs;
39213              statfs("/", &fs);
39214              l = fs.f_bsize;
39215              l += fs.f_blocks;
39216              l += fs.f_bavail;
39217
39218   ;
39219   return 0;
39220 }
39221 _ACEOF
39222 rm -f conftest.$ac_objext
39223 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
39230   ac_status=$?
39231   grep -v '^ *+' conftest.er1 >conftest.err
39232   rm -f conftest.er1
39233   cat conftest.err >&5
39234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39235   (exit $ac_status); } && {
39236          test -z "$ac_c_werror_flag" ||
39237          test ! -s conftest.err
39238        } && test -s conftest.$ac_objext; then
39239   wx_cv_func_statfs=yes
39240 else
39241   echo "$as_me: failed program was:" >&5
39242 sed 's/^/| /' conftest.$ac_ext >&5
39243
39244         wx_cv_func_statfs=no
39245
39246 fi
39247
39248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39249
39250 fi
39251 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
39252 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
39253
39254 if test "$wx_cv_func_statfs" = "yes"; then
39255         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
39256 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
39257 if test "${wx_cv_func_statfs_decl+set}" = set; then
39258   echo $ECHO_N "(cached) $ECHO_C" >&6
39259 else
39260   ac_ext=cpp
39261 ac_cpp='$CXXCPP $CPPFLAGS'
39262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39265
39266         cat >conftest.$ac_ext <<_ACEOF
39267 /* confdefs.h.  */
39268 _ACEOF
39269 cat confdefs.h >>conftest.$ac_ext
39270 cat >>conftest.$ac_ext <<_ACEOF
39271 /* end confdefs.h.  */
39272
39273                  #if defined(__BSD__)
39274                  #include <sys/param.h>
39275                  #include <sys/mount.h>
39276                  #else
39277                  #include <sys/vfs.h>
39278                  #endif
39279
39280 int
39281 main ()
39282 {
39283
39284                 struct statfs fs;
39285                 statfs("", &fs);
39286
39287   ;
39288   return 0;
39289 }
39290 _ACEOF
39291 rm -f conftest.$ac_objext
39292 if { (ac_try="$ac_compile"
39293 case "(($ac_try" in
39294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39295   *) ac_try_echo=$ac_try;;
39296 esac
39297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39298   (eval "$ac_compile") 2>conftest.er1
39299   ac_status=$?
39300   grep -v '^ *+' conftest.er1 >conftest.err
39301   rm -f conftest.er1
39302   cat conftest.err >&5
39303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39304   (exit $ac_status); } && {
39305          test -z "$ac_cxx_werror_flag" ||
39306          test ! -s conftest.err
39307        } && test -s conftest.$ac_objext; then
39308   wx_cv_func_statfs_decl=yes
39309 else
39310   echo "$as_me: failed program was:" >&5
39311 sed 's/^/| /' conftest.$ac_ext >&5
39312
39313         wx_cv_func_statfs_decl=no
39314
39315 fi
39316
39317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39318         ac_ext=c
39319 ac_cpp='$CPP $CPPFLAGS'
39320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39323
39324
39325 fi
39326 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
39327 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
39328
39329     if test "$wx_cv_func_statfs_decl" = "yes"; then
39330         cat >>confdefs.h <<\_ACEOF
39331 #define HAVE_STATFS_DECL 1
39332 _ACEOF
39333
39334     fi
39335
39336     wx_cv_type_statvfs_t="struct statfs"
39337     cat >>confdefs.h <<\_ACEOF
39338 #define HAVE_STATFS 1
39339 _ACEOF
39340
39341 else
39342     { echo "$as_me:$LINENO: checking for statvfs" >&5
39343 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
39344 if test "${wx_cv_func_statvfs+set}" = set; then
39345   echo $ECHO_N "(cached) $ECHO_C" >&6
39346 else
39347   cat >conftest.$ac_ext <<_ACEOF
39348 /* confdefs.h.  */
39349 _ACEOF
39350 cat confdefs.h >>conftest.$ac_ext
39351 cat >>conftest.$ac_ext <<_ACEOF
39352 /* end confdefs.h.  */
39353
39354                 #include <stddef.h>
39355                 #include <sys/statvfs.h>
39356
39357 int
39358 main ()
39359 {
39360
39361                 statvfs("/", NULL);
39362
39363   ;
39364   return 0;
39365 }
39366 _ACEOF
39367 rm -f conftest.$ac_objext
39368 if { (ac_try="$ac_compile"
39369 case "(($ac_try" in
39370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39371   *) ac_try_echo=$ac_try;;
39372 esac
39373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39374   (eval "$ac_compile") 2>conftest.er1
39375   ac_status=$?
39376   grep -v '^ *+' conftest.er1 >conftest.err
39377   rm -f conftest.er1
39378   cat conftest.err >&5
39379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39380   (exit $ac_status); } && {
39381          test -z "$ac_c_werror_flag" ||
39382          test ! -s conftest.err
39383        } && test -s conftest.$ac_objext; then
39384   wx_cv_func_statvfs=yes
39385 else
39386   echo "$as_me: failed program was:" >&5
39387 sed 's/^/| /' conftest.$ac_ext >&5
39388
39389         wx_cv_func_statvfs=no
39390
39391 fi
39392
39393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39394
39395 fi
39396 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
39397 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
39398
39399     if test "$wx_cv_func_statvfs" = "yes"; then
39400                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
39401 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
39402 if test "${wx_cv_type_statvfs_t+set}" = set; then
39403   echo $ECHO_N "(cached) $ECHO_C" >&6
39404 else
39405   ac_ext=cpp
39406 ac_cpp='$CXXCPP $CPPFLAGS'
39407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39410
39411             cat >conftest.$ac_ext <<_ACEOF
39412 /* confdefs.h.  */
39413 _ACEOF
39414 cat confdefs.h >>conftest.$ac_ext
39415 cat >>conftest.$ac_ext <<_ACEOF
39416 /* end confdefs.h.  */
39417
39418                     #include <sys/statvfs.h>
39419
39420 int
39421 main ()
39422 {
39423
39424                     long l;
39425                     statvfs_t fs;
39426                     statvfs("/", &fs);
39427                     l = fs.f_bsize;
39428                     l += fs.f_blocks;
39429                     l += fs.f_bavail;
39430
39431   ;
39432   return 0;
39433 }
39434 _ACEOF
39435 rm -f conftest.$ac_objext
39436 if { (ac_try="$ac_compile"
39437 case "(($ac_try" in
39438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39439   *) ac_try_echo=$ac_try;;
39440 esac
39441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39442   (eval "$ac_compile") 2>conftest.er1
39443   ac_status=$?
39444   grep -v '^ *+' conftest.er1 >conftest.err
39445   rm -f conftest.er1
39446   cat conftest.err >&5
39447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39448   (exit $ac_status); } && {
39449          test -z "$ac_cxx_werror_flag" ||
39450          test ! -s conftest.err
39451        } && test -s conftest.$ac_objext; then
39452   wx_cv_type_statvfs_t=statvfs_t
39453 else
39454   echo "$as_me: failed program was:" >&5
39455 sed 's/^/| /' conftest.$ac_ext >&5
39456
39457
39458                     cat >conftest.$ac_ext <<_ACEOF
39459 /* confdefs.h.  */
39460 _ACEOF
39461 cat confdefs.h >>conftest.$ac_ext
39462 cat >>conftest.$ac_ext <<_ACEOF
39463 /* end confdefs.h.  */
39464
39465                             #include <sys/statvfs.h>
39466
39467 int
39468 main ()
39469 {
39470
39471                             long l;
39472                             struct statvfs fs;
39473                             statvfs("/", &fs);
39474                             l = fs.f_bsize;
39475                             l += fs.f_blocks;
39476                             l += fs.f_bavail;
39477
39478   ;
39479   return 0;
39480 }
39481 _ACEOF
39482 rm -f conftest.$ac_objext
39483 if { (ac_try="$ac_compile"
39484 case "(($ac_try" in
39485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39486   *) ac_try_echo=$ac_try;;
39487 esac
39488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39489   (eval "$ac_compile") 2>conftest.er1
39490   ac_status=$?
39491   grep -v '^ *+' conftest.er1 >conftest.err
39492   rm -f conftest.er1
39493   cat conftest.err >&5
39494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39495   (exit $ac_status); } && {
39496          test -z "$ac_cxx_werror_flag" ||
39497          test ! -s conftest.err
39498        } && test -s conftest.$ac_objext; then
39499   wx_cv_type_statvfs_t="struct statvfs"
39500 else
39501   echo "$as_me: failed program was:" >&5
39502 sed 's/^/| /' conftest.$ac_ext >&5
39503
39504         wx_cv_type_statvfs_t="unknown"
39505
39506 fi
39507
39508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39509
39510
39511 fi
39512
39513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39514             ac_ext=c
39515 ac_cpp='$CPP $CPPFLAGS'
39516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39519
39520
39521 fi
39522 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
39523 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
39524
39525         if test "$wx_cv_type_statvfs_t" != "unknown"; then
39526             cat >>confdefs.h <<\_ACEOF
39527 #define HAVE_STATVFS 1
39528 _ACEOF
39529
39530         fi
39531     else
39532                 wx_cv_type_statvfs_t="unknown"
39533     fi
39534 fi
39535
39536 if test "$wx_cv_type_statvfs_t" != "unknown"; then
39537     cat >>confdefs.h <<_ACEOF
39538 #define WX_STATFS_T $wx_cv_type_statvfs_t
39539 _ACEOF
39540
39541 else
39542     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
39543 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
39544 fi
39545
39546 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39547
39548
39549 for ac_func in fcntl flock
39550 do
39551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39552 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39554 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39565 #define $ac_func innocuous_$ac_func
39566
39567 /* System header to define __stub macros and hopefully few prototypes,
39568     which can conflict with char $ac_func (); below.
39569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39570     <limits.h> exists even on freestanding compilers.  */
39571
39572 #ifdef __STDC__
39573 # include <limits.h>
39574 #else
39575 # include <assert.h>
39576 #endif
39577
39578 #undef $ac_func
39579
39580 /* Override any GCC internal prototype to avoid an error.
39581    Use char because int might match the return type of a GCC
39582    builtin and then its argument prototype would still apply.  */
39583 #ifdef __cplusplus
39584 extern "C"
39585 #endif
39586 char $ac_func ();
39587 /* The GNU C library defines this for functions which it implements
39588     to always fail with ENOSYS.  Some functions are actually named
39589     something starting with __ and the normal name is an alias.  */
39590 #if defined __stub_$ac_func || defined __stub___$ac_func
39591 choke me
39592 #endif
39593
39594 int
39595 main ()
39596 {
39597 return $ac_func ();
39598   ;
39599   return 0;
39600 }
39601 _ACEOF
39602 rm -f conftest.$ac_objext conftest$ac_exeext
39603 if { (ac_try="$ac_link"
39604 case "(($ac_try" in
39605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39606   *) ac_try_echo=$ac_try;;
39607 esac
39608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39609   (eval "$ac_link") 2>conftest.er1
39610   ac_status=$?
39611   grep -v '^ *+' conftest.er1 >conftest.err
39612   rm -f conftest.er1
39613   cat conftest.err >&5
39614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39615   (exit $ac_status); } && {
39616          test -z "$ac_c_werror_flag" ||
39617          test ! -s conftest.err
39618        } && test -s conftest$ac_exeext &&
39619        $as_test_x conftest$ac_exeext; then
39620   eval "$as_ac_var=yes"
39621 else
39622   echo "$as_me: failed program was:" >&5
39623 sed 's/^/| /' conftest.$ac_ext >&5
39624
39625         eval "$as_ac_var=no"
39626 fi
39627
39628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39629       conftest$ac_exeext conftest.$ac_ext
39630 fi
39631 ac_res=`eval echo '${'$as_ac_var'}'`
39632                { echo "$as_me:$LINENO: result: $ac_res" >&5
39633 echo "${ECHO_T}$ac_res" >&6; }
39634 if test `eval echo '${'$as_ac_var'}'` = yes; then
39635   cat >>confdefs.h <<_ACEOF
39636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39637 _ACEOF
39638  break
39639 fi
39640 done
39641
39642
39643     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
39644         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
39645 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
39646         wxUSE_SNGLINST_CHECKER=no
39647     fi
39648 fi
39649
39650
39651 for ac_func in timegm
39652 do
39653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39657   echo $ECHO_N "(cached) $ECHO_C" >&6
39658 else
39659   cat >conftest.$ac_ext <<_ACEOF
39660 /* confdefs.h.  */
39661 _ACEOF
39662 cat confdefs.h >>conftest.$ac_ext
39663 cat >>conftest.$ac_ext <<_ACEOF
39664 /* end confdefs.h.  */
39665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39667 #define $ac_func innocuous_$ac_func
39668
39669 /* System header to define __stub macros and hopefully few prototypes,
39670     which can conflict with char $ac_func (); below.
39671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39672     <limits.h> exists even on freestanding compilers.  */
39673
39674 #ifdef __STDC__
39675 # include <limits.h>
39676 #else
39677 # include <assert.h>
39678 #endif
39679
39680 #undef $ac_func
39681
39682 /* Override any GCC internal prototype to avoid an error.
39683    Use char because int might match the return type of a GCC
39684    builtin and then its argument prototype would still apply.  */
39685 #ifdef __cplusplus
39686 extern "C"
39687 #endif
39688 char $ac_func ();
39689 /* The GNU C library defines this for functions which it implements
39690     to always fail with ENOSYS.  Some functions are actually named
39691     something starting with __ and the normal name is an alias.  */
39692 #if defined __stub_$ac_func || defined __stub___$ac_func
39693 choke me
39694 #endif
39695
39696 int
39697 main ()
39698 {
39699 return $ac_func ();
39700   ;
39701   return 0;
39702 }
39703 _ACEOF
39704 rm -f conftest.$ac_objext conftest$ac_exeext
39705 if { (ac_try="$ac_link"
39706 case "(($ac_try" in
39707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39708   *) ac_try_echo=$ac_try;;
39709 esac
39710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39711   (eval "$ac_link") 2>conftest.er1
39712   ac_status=$?
39713   grep -v '^ *+' conftest.er1 >conftest.err
39714   rm -f conftest.er1
39715   cat conftest.err >&5
39716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39717   (exit $ac_status); } && {
39718          test -z "$ac_c_werror_flag" ||
39719          test ! -s conftest.err
39720        } && test -s conftest$ac_exeext &&
39721        $as_test_x conftest$ac_exeext; then
39722   eval "$as_ac_var=yes"
39723 else
39724   echo "$as_me: failed program was:" >&5
39725 sed 's/^/| /' conftest.$ac_ext >&5
39726
39727         eval "$as_ac_var=no"
39728 fi
39729
39730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39731       conftest$ac_exeext conftest.$ac_ext
39732 fi
39733 ac_res=`eval echo '${'$as_ac_var'}'`
39734                { echo "$as_me:$LINENO: result: $ac_res" >&5
39735 echo "${ECHO_T}$ac_res" >&6; }
39736 if test `eval echo '${'$as_ac_var'}'` = yes; then
39737   cat >>confdefs.h <<_ACEOF
39738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39739 _ACEOF
39740
39741 fi
39742 done
39743
39744
39745
39746
39747 for ac_func in setenv putenv
39748 do
39749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39753   echo $ECHO_N "(cached) $ECHO_C" >&6
39754 else
39755   cat >conftest.$ac_ext <<_ACEOF
39756 /* confdefs.h.  */
39757 _ACEOF
39758 cat confdefs.h >>conftest.$ac_ext
39759 cat >>conftest.$ac_ext <<_ACEOF
39760 /* end confdefs.h.  */
39761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39763 #define $ac_func innocuous_$ac_func
39764
39765 /* System header to define __stub macros and hopefully few prototypes,
39766     which can conflict with char $ac_func (); below.
39767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39768     <limits.h> exists even on freestanding compilers.  */
39769
39770 #ifdef __STDC__
39771 # include <limits.h>
39772 #else
39773 # include <assert.h>
39774 #endif
39775
39776 #undef $ac_func
39777
39778 /* Override any GCC internal prototype to avoid an error.
39779    Use char because int might match the return type of a GCC
39780    builtin and then its argument prototype would still apply.  */
39781 #ifdef __cplusplus
39782 extern "C"
39783 #endif
39784 char $ac_func ();
39785 /* The GNU C library defines this for functions which it implements
39786     to always fail with ENOSYS.  Some functions are actually named
39787     something starting with __ and the normal name is an alias.  */
39788 #if defined __stub_$ac_func || defined __stub___$ac_func
39789 choke me
39790 #endif
39791
39792 int
39793 main ()
39794 {
39795 return $ac_func ();
39796   ;
39797   return 0;
39798 }
39799 _ACEOF
39800 rm -f conftest.$ac_objext conftest$ac_exeext
39801 if { (ac_try="$ac_link"
39802 case "(($ac_try" in
39803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39804   *) ac_try_echo=$ac_try;;
39805 esac
39806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39807   (eval "$ac_link") 2>conftest.er1
39808   ac_status=$?
39809   grep -v '^ *+' conftest.er1 >conftest.err
39810   rm -f conftest.er1
39811   cat conftest.err >&5
39812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39813   (exit $ac_status); } && {
39814          test -z "$ac_c_werror_flag" ||
39815          test ! -s conftest.err
39816        } && test -s conftest$ac_exeext &&
39817        $as_test_x conftest$ac_exeext; then
39818   eval "$as_ac_var=yes"
39819 else
39820   echo "$as_me: failed program was:" >&5
39821 sed 's/^/| /' conftest.$ac_ext >&5
39822
39823         eval "$as_ac_var=no"
39824 fi
39825
39826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39827       conftest$ac_exeext conftest.$ac_ext
39828 fi
39829 ac_res=`eval echo '${'$as_ac_var'}'`
39830                { echo "$as_me:$LINENO: result: $ac_res" >&5
39831 echo "${ECHO_T}$ac_res" >&6; }
39832 if test `eval echo '${'$as_ac_var'}'` = yes; then
39833   cat >>confdefs.h <<_ACEOF
39834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39835 _ACEOF
39836  break
39837 fi
39838 done
39839
39840
39841 HAVE_SOME_SLEEP_FUNC=0
39842 if test "$USE_BEOS" = 1; then
39843             cat >>confdefs.h <<\_ACEOF
39844 #define HAVE_SLEEP 1
39845 _ACEOF
39846
39847     HAVE_SOME_SLEEP_FUNC=1
39848 fi
39849
39850 if test "$USE_DARWIN" = 1; then
39851             cat >>confdefs.h <<\_ACEOF
39852 #define HAVE_USLEEP 1
39853 _ACEOF
39854
39855     HAVE_SOME_SLEEP_FUNC=1
39856 fi
39857
39858 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
39859         POSIX4_LINK=
39860
39861 for ac_func in nanosleep
39862 do
39863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39867   echo $ECHO_N "(cached) $ECHO_C" >&6
39868 else
39869   cat >conftest.$ac_ext <<_ACEOF
39870 /* confdefs.h.  */
39871 _ACEOF
39872 cat confdefs.h >>conftest.$ac_ext
39873 cat >>conftest.$ac_ext <<_ACEOF
39874 /* end confdefs.h.  */
39875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39877 #define $ac_func innocuous_$ac_func
39878
39879 /* System header to define __stub macros and hopefully few prototypes,
39880     which can conflict with char $ac_func (); below.
39881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39882     <limits.h> exists even on freestanding compilers.  */
39883
39884 #ifdef __STDC__
39885 # include <limits.h>
39886 #else
39887 # include <assert.h>
39888 #endif
39889
39890 #undef $ac_func
39891
39892 /* Override any GCC internal prototype to avoid an error.
39893    Use char because int might match the return type of a GCC
39894    builtin and then its argument prototype would still apply.  */
39895 #ifdef __cplusplus
39896 extern "C"
39897 #endif
39898 char $ac_func ();
39899 /* The GNU C library defines this for functions which it implements
39900     to always fail with ENOSYS.  Some functions are actually named
39901     something starting with __ and the normal name is an alias.  */
39902 #if defined __stub_$ac_func || defined __stub___$ac_func
39903 choke me
39904 #endif
39905
39906 int
39907 main ()
39908 {
39909 return $ac_func ();
39910   ;
39911   return 0;
39912 }
39913 _ACEOF
39914 rm -f conftest.$ac_objext conftest$ac_exeext
39915 if { (ac_try="$ac_link"
39916 case "(($ac_try" in
39917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39918   *) ac_try_echo=$ac_try;;
39919 esac
39920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39921   (eval "$ac_link") 2>conftest.er1
39922   ac_status=$?
39923   grep -v '^ *+' conftest.er1 >conftest.err
39924   rm -f conftest.er1
39925   cat conftest.err >&5
39926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39927   (exit $ac_status); } && {
39928          test -z "$ac_c_werror_flag" ||
39929          test ! -s conftest.err
39930        } && test -s conftest$ac_exeext &&
39931        $as_test_x conftest$ac_exeext; then
39932   eval "$as_ac_var=yes"
39933 else
39934   echo "$as_me: failed program was:" >&5
39935 sed 's/^/| /' conftest.$ac_ext >&5
39936
39937         eval "$as_ac_var=no"
39938 fi
39939
39940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39941       conftest$ac_exeext conftest.$ac_ext
39942 fi
39943 ac_res=`eval echo '${'$as_ac_var'}'`
39944                { echo "$as_me:$LINENO: result: $ac_res" >&5
39945 echo "${ECHO_T}$ac_res" >&6; }
39946 if test `eval echo '${'$as_ac_var'}'` = yes; then
39947   cat >>confdefs.h <<_ACEOF
39948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39949 _ACEOF
39950  cat >>confdefs.h <<\_ACEOF
39951 #define HAVE_NANOSLEEP 1
39952 _ACEOF
39953
39954 else
39955
39956             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
39957 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
39958 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
39959   echo $ECHO_N "(cached) $ECHO_C" >&6
39960 else
39961   ac_check_lib_save_LIBS=$LIBS
39962 LIBS="-lposix4  $LIBS"
39963 cat >conftest.$ac_ext <<_ACEOF
39964 /* confdefs.h.  */
39965 _ACEOF
39966 cat confdefs.h >>conftest.$ac_ext
39967 cat >>conftest.$ac_ext <<_ACEOF
39968 /* end confdefs.h.  */
39969
39970 /* Override any GCC internal prototype to avoid an error.
39971    Use char because int might match the return type of a GCC
39972    builtin and then its argument prototype would still apply.  */
39973 #ifdef __cplusplus
39974 extern "C"
39975 #endif
39976 char nanosleep ();
39977 int
39978 main ()
39979 {
39980 return nanosleep ();
39981   ;
39982   return 0;
39983 }
39984 _ACEOF
39985 rm -f conftest.$ac_objext conftest$ac_exeext
39986 if { (ac_try="$ac_link"
39987 case "(($ac_try" in
39988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39989   *) ac_try_echo=$ac_try;;
39990 esac
39991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39992   (eval "$ac_link") 2>conftest.er1
39993   ac_status=$?
39994   grep -v '^ *+' conftest.er1 >conftest.err
39995   rm -f conftest.er1
39996   cat conftest.err >&5
39997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998   (exit $ac_status); } && {
39999          test -z "$ac_c_werror_flag" ||
40000          test ! -s conftest.err
40001        } && test -s conftest$ac_exeext &&
40002        $as_test_x conftest$ac_exeext; then
40003   ac_cv_lib_posix4_nanosleep=yes
40004 else
40005   echo "$as_me: failed program was:" >&5
40006 sed 's/^/| /' conftest.$ac_ext >&5
40007
40008         ac_cv_lib_posix4_nanosleep=no
40009 fi
40010
40011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40012       conftest$ac_exeext conftest.$ac_ext
40013 LIBS=$ac_check_lib_save_LIBS
40014 fi
40015 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
40016 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
40017 if test $ac_cv_lib_posix4_nanosleep = yes; then
40018
40019                     cat >>confdefs.h <<\_ACEOF
40020 #define HAVE_NANOSLEEP 1
40021 _ACEOF
40022
40023                     POSIX4_LINK=" -lposix4"
40024
40025 else
40026
40027
40028   for wx_func in usleep
40029   do
40030     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40031 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40032 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40033   echo $ECHO_N "(cached) $ECHO_C" >&6
40034 else
40035
40036         cat >conftest.$ac_ext <<_ACEOF
40037
40038             /* confdefs.h.  */
40039 _ACEOF
40040 cat confdefs.h >>conftest.$ac_ext
40041 cat >>conftest.$ac_ext <<_ACEOF
40042 /* end confdefs.h.  */
40043
40044
40045                 $ac_includes_default
40046
40047 int
40048 main ()
40049 {
40050
40051                 #ifndef $wx_func
40052                   &$wx_func;
40053                 #endif
40054
40055
40056   ;
40057   return 0;
40058 }
40059
40060 _ACEOF
40061 rm -f conftest.$ac_objext conftest$ac_exeext
40062 if { (ac_try="$ac_link"
40063 case "(($ac_try" in
40064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40065   *) ac_try_echo=$ac_try;;
40066 esac
40067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40068   (eval "$ac_link") 2>conftest.er1
40069   ac_status=$?
40070   grep -v '^ *+' conftest.er1 >conftest.err
40071   rm -f conftest.er1
40072   cat conftest.err >&5
40073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40074   (exit $ac_status); } && {
40075          test -z "$ac_c_werror_flag" ||
40076          test ! -s conftest.err
40077        } && test -s conftest$ac_exeext &&
40078        $as_test_x conftest$ac_exeext; then
40079   eval wx_cv_func_$wx_func=yes
40080 else
40081   echo "$as_me: failed program was:" >&5
40082 sed 's/^/| /' conftest.$ac_ext >&5
40083
40084         eval wx_cv_func_$wx_func=no
40085 fi
40086
40087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40088       conftest$ac_exeext conftest.$ac_ext
40089
40090 fi
40091 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40092                { echo "$as_me:$LINENO: result: $ac_res" >&5
40093 echo "${ECHO_T}$ac_res" >&6; }
40094
40095     if eval test \$wx_cv_func_$wx_func = yes
40096     then
40097       cat >>confdefs.h <<_ACEOF
40098 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40099 _ACEOF
40100
40101
40102     else
40103       :
40104       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
40105 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
40106
40107     fi
40108   done
40109
40110
40111
40112 fi
40113
40114
40115
40116 fi
40117 done
40118
40119 fi
40120
40121
40122   for wx_func in uname
40123   do
40124     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40125 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40126 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40127   echo $ECHO_N "(cached) $ECHO_C" >&6
40128 else
40129
40130         cat >conftest.$ac_ext <<_ACEOF
40131
40132             /* confdefs.h.  */
40133 _ACEOF
40134 cat confdefs.h >>conftest.$ac_ext
40135 cat >>conftest.$ac_ext <<_ACEOF
40136 /* end confdefs.h.  */
40137
40138                 #include <sys/utsname.h>
40139                 $ac_includes_default
40140
40141 int
40142 main ()
40143 {
40144
40145                 #ifndef $wx_func
40146                   &$wx_func;
40147                 #endif
40148
40149
40150   ;
40151   return 0;
40152 }
40153
40154 _ACEOF
40155 rm -f conftest.$ac_objext conftest$ac_exeext
40156 if { (ac_try="$ac_link"
40157 case "(($ac_try" in
40158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40159   *) ac_try_echo=$ac_try;;
40160 esac
40161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40162   (eval "$ac_link") 2>conftest.er1
40163   ac_status=$?
40164   grep -v '^ *+' conftest.er1 >conftest.err
40165   rm -f conftest.er1
40166   cat conftest.err >&5
40167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40168   (exit $ac_status); } && {
40169          test -z "$ac_c_werror_flag" ||
40170          test ! -s conftest.err
40171        } && test -s conftest$ac_exeext &&
40172        $as_test_x conftest$ac_exeext; then
40173   eval wx_cv_func_$wx_func=yes
40174 else
40175   echo "$as_me: failed program was:" >&5
40176 sed 's/^/| /' conftest.$ac_ext >&5
40177
40178         eval wx_cv_func_$wx_func=no
40179 fi
40180
40181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40182       conftest$ac_exeext conftest.$ac_ext
40183
40184 fi
40185 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40186                { echo "$as_me:$LINENO: result: $ac_res" >&5
40187 echo "${ECHO_T}$ac_res" >&6; }
40188
40189     if eval test \$wx_cv_func_$wx_func = yes
40190     then
40191       cat >>confdefs.h <<_ACEOF
40192 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40193 _ACEOF
40194
40195
40196     else
40197       :
40198
40199     fi
40200   done
40201
40202 if test "$wx_cv_func_uname" != yes; then
40203
40204   for wx_func in gethostname
40205   do
40206     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40207 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40208 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40209   echo $ECHO_N "(cached) $ECHO_C" >&6
40210 else
40211
40212         cat >conftest.$ac_ext <<_ACEOF
40213
40214             /* confdefs.h.  */
40215 _ACEOF
40216 cat confdefs.h >>conftest.$ac_ext
40217 cat >>conftest.$ac_ext <<_ACEOF
40218 /* end confdefs.h.  */
40219
40220
40221                 $ac_includes_default
40222
40223 int
40224 main ()
40225 {
40226
40227                 #ifndef $wx_func
40228                   &$wx_func;
40229                 #endif
40230
40231
40232   ;
40233   return 0;
40234 }
40235
40236 _ACEOF
40237 rm -f conftest.$ac_objext conftest$ac_exeext
40238 if { (ac_try="$ac_link"
40239 case "(($ac_try" in
40240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40241   *) ac_try_echo=$ac_try;;
40242 esac
40243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40244   (eval "$ac_link") 2>conftest.er1
40245   ac_status=$?
40246   grep -v '^ *+' conftest.er1 >conftest.err
40247   rm -f conftest.er1
40248   cat conftest.err >&5
40249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40250   (exit $ac_status); } && {
40251          test -z "$ac_c_werror_flag" ||
40252          test ! -s conftest.err
40253        } && test -s conftest$ac_exeext &&
40254        $as_test_x conftest$ac_exeext; then
40255   eval wx_cv_func_$wx_func=yes
40256 else
40257   echo "$as_me: failed program was:" >&5
40258 sed 's/^/| /' conftest.$ac_ext >&5
40259
40260         eval wx_cv_func_$wx_func=no
40261 fi
40262
40263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40264       conftest$ac_exeext conftest.$ac_ext
40265
40266 fi
40267 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40268                { echo "$as_me:$LINENO: result: $ac_res" >&5
40269 echo "${ECHO_T}$ac_res" >&6; }
40270
40271     if eval test \$wx_cv_func_$wx_func = yes
40272     then
40273       cat >>confdefs.h <<_ACEOF
40274 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40275 _ACEOF
40276
40277
40278     else
40279       :
40280
40281     fi
40282   done
40283
40284 fi
40285
40286
40287   for wx_func in strtok_r
40288   do
40289     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40290 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40291 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40292   echo $ECHO_N "(cached) $ECHO_C" >&6
40293 else
40294
40295         cat >conftest.$ac_ext <<_ACEOF
40296
40297             /* confdefs.h.  */
40298 _ACEOF
40299 cat confdefs.h >>conftest.$ac_ext
40300 cat >>conftest.$ac_ext <<_ACEOF
40301 /* end confdefs.h.  */
40302
40303                 #define _REENTRANT
40304                 $ac_includes_default
40305
40306 int
40307 main ()
40308 {
40309
40310                 #ifndef $wx_func
40311                   &$wx_func;
40312                 #endif
40313
40314
40315   ;
40316   return 0;
40317 }
40318
40319 _ACEOF
40320 rm -f conftest.$ac_objext conftest$ac_exeext
40321 if { (ac_try="$ac_link"
40322 case "(($ac_try" in
40323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40324   *) ac_try_echo=$ac_try;;
40325 esac
40326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40327   (eval "$ac_link") 2>conftest.er1
40328   ac_status=$?
40329   grep -v '^ *+' conftest.er1 >conftest.err
40330   rm -f conftest.er1
40331   cat conftest.err >&5
40332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40333   (exit $ac_status); } && {
40334          test -z "$ac_c_werror_flag" ||
40335          test ! -s conftest.err
40336        } && test -s conftest$ac_exeext &&
40337        $as_test_x conftest$ac_exeext; then
40338   eval wx_cv_func_$wx_func=yes
40339 else
40340   echo "$as_me: failed program was:" >&5
40341 sed 's/^/| /' conftest.$ac_ext >&5
40342
40343         eval wx_cv_func_$wx_func=no
40344 fi
40345
40346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40347       conftest$ac_exeext conftest.$ac_ext
40348
40349 fi
40350 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40351                { echo "$as_me:$LINENO: result: $ac_res" >&5
40352 echo "${ECHO_T}$ac_res" >&6; }
40353
40354     if eval test \$wx_cv_func_$wx_func = yes
40355     then
40356       cat >>confdefs.h <<_ACEOF
40357 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40358 _ACEOF
40359
40360
40361     else
40362       :
40363
40364     fi
40365   done
40366
40367
40368 INET_LINK=
40369
40370 for ac_func in inet_addr
40371 do
40372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40376   echo $ECHO_N "(cached) $ECHO_C" >&6
40377 else
40378   cat >conftest.$ac_ext <<_ACEOF
40379 /* confdefs.h.  */
40380 _ACEOF
40381 cat confdefs.h >>conftest.$ac_ext
40382 cat >>conftest.$ac_ext <<_ACEOF
40383 /* end confdefs.h.  */
40384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40386 #define $ac_func innocuous_$ac_func
40387
40388 /* System header to define __stub macros and hopefully few prototypes,
40389     which can conflict with char $ac_func (); below.
40390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40391     <limits.h> exists even on freestanding compilers.  */
40392
40393 #ifdef __STDC__
40394 # include <limits.h>
40395 #else
40396 # include <assert.h>
40397 #endif
40398
40399 #undef $ac_func
40400
40401 /* Override any GCC internal prototype to avoid an error.
40402    Use char because int might match the return type of a GCC
40403    builtin and then its argument prototype would still apply.  */
40404 #ifdef __cplusplus
40405 extern "C"
40406 #endif
40407 char $ac_func ();
40408 /* The GNU C library defines this for functions which it implements
40409     to always fail with ENOSYS.  Some functions are actually named
40410     something starting with __ and the normal name is an alias.  */
40411 #if defined __stub_$ac_func || defined __stub___$ac_func
40412 choke me
40413 #endif
40414
40415 int
40416 main ()
40417 {
40418 return $ac_func ();
40419   ;
40420   return 0;
40421 }
40422 _ACEOF
40423 rm -f conftest.$ac_objext conftest$ac_exeext
40424 if { (ac_try="$ac_link"
40425 case "(($ac_try" in
40426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40427   *) ac_try_echo=$ac_try;;
40428 esac
40429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40430   (eval "$ac_link") 2>conftest.er1
40431   ac_status=$?
40432   grep -v '^ *+' conftest.er1 >conftest.err
40433   rm -f conftest.er1
40434   cat conftest.err >&5
40435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40436   (exit $ac_status); } && {
40437          test -z "$ac_c_werror_flag" ||
40438          test ! -s conftest.err
40439        } && test -s conftest$ac_exeext &&
40440        $as_test_x conftest$ac_exeext; then
40441   eval "$as_ac_var=yes"
40442 else
40443   echo "$as_me: failed program was:" >&5
40444 sed 's/^/| /' conftest.$ac_ext >&5
40445
40446         eval "$as_ac_var=no"
40447 fi
40448
40449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40450       conftest$ac_exeext conftest.$ac_ext
40451 fi
40452 ac_res=`eval echo '${'$as_ac_var'}'`
40453                { echo "$as_me:$LINENO: result: $ac_res" >&5
40454 echo "${ECHO_T}$ac_res" >&6; }
40455 if test `eval echo '${'$as_ac_var'}'` = yes; then
40456   cat >>confdefs.h <<_ACEOF
40457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40458 _ACEOF
40459  cat >>confdefs.h <<\_ACEOF
40460 #define HAVE_INET_ADDR 1
40461 _ACEOF
40462
40463 else
40464
40465         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
40466 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
40467 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
40468   echo $ECHO_N "(cached) $ECHO_C" >&6
40469 else
40470   ac_check_lib_save_LIBS=$LIBS
40471 LIBS="-lnsl  $LIBS"
40472 cat >conftest.$ac_ext <<_ACEOF
40473 /* confdefs.h.  */
40474 _ACEOF
40475 cat confdefs.h >>conftest.$ac_ext
40476 cat >>conftest.$ac_ext <<_ACEOF
40477 /* end confdefs.h.  */
40478
40479 /* Override any GCC internal prototype to avoid an error.
40480    Use char because int might match the return type of a GCC
40481    builtin and then its argument prototype would still apply.  */
40482 #ifdef __cplusplus
40483 extern "C"
40484 #endif
40485 char inet_addr ();
40486 int
40487 main ()
40488 {
40489 return inet_addr ();
40490   ;
40491   return 0;
40492 }
40493 _ACEOF
40494 rm -f conftest.$ac_objext conftest$ac_exeext
40495 if { (ac_try="$ac_link"
40496 case "(($ac_try" in
40497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40498   *) ac_try_echo=$ac_try;;
40499 esac
40500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40501   (eval "$ac_link") 2>conftest.er1
40502   ac_status=$?
40503   grep -v '^ *+' conftest.er1 >conftest.err
40504   rm -f conftest.er1
40505   cat conftest.err >&5
40506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40507   (exit $ac_status); } && {
40508          test -z "$ac_c_werror_flag" ||
40509          test ! -s conftest.err
40510        } && test -s conftest$ac_exeext &&
40511        $as_test_x conftest$ac_exeext; then
40512   ac_cv_lib_nsl_inet_addr=yes
40513 else
40514   echo "$as_me: failed program was:" >&5
40515 sed 's/^/| /' conftest.$ac_ext >&5
40516
40517         ac_cv_lib_nsl_inet_addr=no
40518 fi
40519
40520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40521       conftest$ac_exeext conftest.$ac_ext
40522 LIBS=$ac_check_lib_save_LIBS
40523 fi
40524 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
40525 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
40526 if test $ac_cv_lib_nsl_inet_addr = yes; then
40527   INET_LINK="nsl"
40528 else
40529
40530                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
40531 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
40532 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
40533   echo $ECHO_N "(cached) $ECHO_C" >&6
40534 else
40535   ac_check_lib_save_LIBS=$LIBS
40536 LIBS="-lresolv  $LIBS"
40537 cat >conftest.$ac_ext <<_ACEOF
40538 /* confdefs.h.  */
40539 _ACEOF
40540 cat confdefs.h >>conftest.$ac_ext
40541 cat >>conftest.$ac_ext <<_ACEOF
40542 /* end confdefs.h.  */
40543
40544 /* Override any GCC internal prototype to avoid an error.
40545    Use char because int might match the return type of a GCC
40546    builtin and then its argument prototype would still apply.  */
40547 #ifdef __cplusplus
40548 extern "C"
40549 #endif
40550 char inet_addr ();
40551 int
40552 main ()
40553 {
40554 return inet_addr ();
40555   ;
40556   return 0;
40557 }
40558 _ACEOF
40559 rm -f conftest.$ac_objext conftest$ac_exeext
40560 if { (ac_try="$ac_link"
40561 case "(($ac_try" in
40562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40563   *) ac_try_echo=$ac_try;;
40564 esac
40565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40566   (eval "$ac_link") 2>conftest.er1
40567   ac_status=$?
40568   grep -v '^ *+' conftest.er1 >conftest.err
40569   rm -f conftest.er1
40570   cat conftest.err >&5
40571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40572   (exit $ac_status); } && {
40573          test -z "$ac_c_werror_flag" ||
40574          test ! -s conftest.err
40575        } && test -s conftest$ac_exeext &&
40576        $as_test_x conftest$ac_exeext; then
40577   ac_cv_lib_resolv_inet_addr=yes
40578 else
40579   echo "$as_me: failed program was:" >&5
40580 sed 's/^/| /' conftest.$ac_ext >&5
40581
40582         ac_cv_lib_resolv_inet_addr=no
40583 fi
40584
40585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40586       conftest$ac_exeext conftest.$ac_ext
40587 LIBS=$ac_check_lib_save_LIBS
40588 fi
40589 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
40590 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
40591 if test $ac_cv_lib_resolv_inet_addr = yes; then
40592   INET_LINK="resolv"
40593 else
40594
40595                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
40596 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
40597 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
40598   echo $ECHO_N "(cached) $ECHO_C" >&6
40599 else
40600   ac_check_lib_save_LIBS=$LIBS
40601 LIBS="-lsocket  $LIBS"
40602 cat >conftest.$ac_ext <<_ACEOF
40603 /* confdefs.h.  */
40604 _ACEOF
40605 cat confdefs.h >>conftest.$ac_ext
40606 cat >>conftest.$ac_ext <<_ACEOF
40607 /* end confdefs.h.  */
40608
40609 /* Override any GCC internal prototype to avoid an error.
40610    Use char because int might match the return type of a GCC
40611    builtin and then its argument prototype would still apply.  */
40612 #ifdef __cplusplus
40613 extern "C"
40614 #endif
40615 char inet_addr ();
40616 int
40617 main ()
40618 {
40619 return inet_addr ();
40620   ;
40621   return 0;
40622 }
40623 _ACEOF
40624 rm -f conftest.$ac_objext conftest$ac_exeext
40625 if { (ac_try="$ac_link"
40626 case "(($ac_try" in
40627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40628   *) ac_try_echo=$ac_try;;
40629 esac
40630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40631   (eval "$ac_link") 2>conftest.er1
40632   ac_status=$?
40633   grep -v '^ *+' conftest.er1 >conftest.err
40634   rm -f conftest.er1
40635   cat conftest.err >&5
40636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40637   (exit $ac_status); } && {
40638          test -z "$ac_c_werror_flag" ||
40639          test ! -s conftest.err
40640        } && test -s conftest$ac_exeext &&
40641        $as_test_x conftest$ac_exeext; then
40642   ac_cv_lib_socket_inet_addr=yes
40643 else
40644   echo "$as_me: failed program was:" >&5
40645 sed 's/^/| /' conftest.$ac_ext >&5
40646
40647         ac_cv_lib_socket_inet_addr=no
40648 fi
40649
40650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40651       conftest$ac_exeext conftest.$ac_ext
40652 LIBS=$ac_check_lib_save_LIBS
40653 fi
40654 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
40655 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
40656 if test $ac_cv_lib_socket_inet_addr = yes; then
40657   INET_LINK="socket"
40658
40659 fi
40660
40661
40662
40663 fi
40664
40665
40666
40667 fi
40668
40669
40670
40671 fi
40672 done
40673
40674
40675
40676 for ac_func in inet_aton
40677 do
40678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40679 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40681 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40682   echo $ECHO_N "(cached) $ECHO_C" >&6
40683 else
40684   cat >conftest.$ac_ext <<_ACEOF
40685 /* confdefs.h.  */
40686 _ACEOF
40687 cat confdefs.h >>conftest.$ac_ext
40688 cat >>conftest.$ac_ext <<_ACEOF
40689 /* end confdefs.h.  */
40690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40692 #define $ac_func innocuous_$ac_func
40693
40694 /* System header to define __stub macros and hopefully few prototypes,
40695     which can conflict with char $ac_func (); below.
40696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40697     <limits.h> exists even on freestanding compilers.  */
40698
40699 #ifdef __STDC__
40700 # include <limits.h>
40701 #else
40702 # include <assert.h>
40703 #endif
40704
40705 #undef $ac_func
40706
40707 /* Override any GCC internal prototype to avoid an error.
40708    Use char because int might match the return type of a GCC
40709    builtin and then its argument prototype would still apply.  */
40710 #ifdef __cplusplus
40711 extern "C"
40712 #endif
40713 char $ac_func ();
40714 /* The GNU C library defines this for functions which it implements
40715     to always fail with ENOSYS.  Some functions are actually named
40716     something starting with __ and the normal name is an alias.  */
40717 #if defined __stub_$ac_func || defined __stub___$ac_func
40718 choke me
40719 #endif
40720
40721 int
40722 main ()
40723 {
40724 return $ac_func ();
40725   ;
40726   return 0;
40727 }
40728 _ACEOF
40729 rm -f conftest.$ac_objext conftest$ac_exeext
40730 if { (ac_try="$ac_link"
40731 case "(($ac_try" in
40732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40733   *) ac_try_echo=$ac_try;;
40734 esac
40735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40736   (eval "$ac_link") 2>conftest.er1
40737   ac_status=$?
40738   grep -v '^ *+' conftest.er1 >conftest.err
40739   rm -f conftest.er1
40740   cat conftest.err >&5
40741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40742   (exit $ac_status); } && {
40743          test -z "$ac_c_werror_flag" ||
40744          test ! -s conftest.err
40745        } && test -s conftest$ac_exeext &&
40746        $as_test_x conftest$ac_exeext; then
40747   eval "$as_ac_var=yes"
40748 else
40749   echo "$as_me: failed program was:" >&5
40750 sed 's/^/| /' conftest.$ac_ext >&5
40751
40752         eval "$as_ac_var=no"
40753 fi
40754
40755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40756       conftest$ac_exeext conftest.$ac_ext
40757 fi
40758 ac_res=`eval echo '${'$as_ac_var'}'`
40759                { echo "$as_me:$LINENO: result: $ac_res" >&5
40760 echo "${ECHO_T}$ac_res" >&6; }
40761 if test `eval echo '${'$as_ac_var'}'` = yes; then
40762   cat >>confdefs.h <<_ACEOF
40763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40764 _ACEOF
40765  cat >>confdefs.h <<\_ACEOF
40766 #define HAVE_INET_ATON 1
40767 _ACEOF
40768
40769 else
40770
40771                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
40772 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
40773 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
40774 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
40775   echo $ECHO_N "(cached) $ECHO_C" >&6
40776 else
40777   ac_check_lib_save_LIBS=$LIBS
40778 LIBS="-l$INET_LINK  $LIBS"
40779 cat >conftest.$ac_ext <<_ACEOF
40780 /* confdefs.h.  */
40781 _ACEOF
40782 cat confdefs.h >>conftest.$ac_ext
40783 cat >>conftest.$ac_ext <<_ACEOF
40784 /* end confdefs.h.  */
40785
40786 /* Override any GCC internal prototype to avoid an error.
40787    Use char because int might match the return type of a GCC
40788    builtin and then its argument prototype would still apply.  */
40789 #ifdef __cplusplus
40790 extern "C"
40791 #endif
40792 char inet_aton ();
40793 int
40794 main ()
40795 {
40796 return inet_aton ();
40797   ;
40798   return 0;
40799 }
40800 _ACEOF
40801 rm -f conftest.$ac_objext conftest$ac_exeext
40802 if { (ac_try="$ac_link"
40803 case "(($ac_try" in
40804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40805   *) ac_try_echo=$ac_try;;
40806 esac
40807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40808   (eval "$ac_link") 2>conftest.er1
40809   ac_status=$?
40810   grep -v '^ *+' conftest.er1 >conftest.err
40811   rm -f conftest.er1
40812   cat conftest.err >&5
40813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40814   (exit $ac_status); } && {
40815          test -z "$ac_c_werror_flag" ||
40816          test ! -s conftest.err
40817        } && test -s conftest$ac_exeext &&
40818        $as_test_x conftest$ac_exeext; then
40819   eval "$as_ac_Lib=yes"
40820 else
40821   echo "$as_me: failed program was:" >&5
40822 sed 's/^/| /' conftest.$ac_ext >&5
40823
40824         eval "$as_ac_Lib=no"
40825 fi
40826
40827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40828       conftest$ac_exeext conftest.$ac_ext
40829 LIBS=$ac_check_lib_save_LIBS
40830 fi
40831 ac_res=`eval echo '${'$as_ac_Lib'}'`
40832                { echo "$as_me:$LINENO: result: $ac_res" >&5
40833 echo "${ECHO_T}$ac_res" >&6; }
40834 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
40835   cat >>confdefs.h <<\_ACEOF
40836 #define HAVE_INET_ATON 1
40837 _ACEOF
40838
40839 fi
40840
40841
40842 fi
40843 done
40844
40845
40846 if test "x$INET_LINK" != "x"; then
40847     cat >>confdefs.h <<\_ACEOF
40848 #define HAVE_INET_ADDR 1
40849 _ACEOF
40850
40851     INET_LINK=" -l$INET_LINK"
40852 fi
40853
40854
40855   for wx_func in fdopen
40856   do
40857     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40858 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40859 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40860   echo $ECHO_N "(cached) $ECHO_C" >&6
40861 else
40862
40863         cat >conftest.$ac_ext <<_ACEOF
40864
40865             /* confdefs.h.  */
40866 _ACEOF
40867 cat confdefs.h >>conftest.$ac_ext
40868 cat >>conftest.$ac_ext <<_ACEOF
40869 /* end confdefs.h.  */
40870
40871
40872                 $ac_includes_default
40873
40874 int
40875 main ()
40876 {
40877
40878                 #ifndef $wx_func
40879                   &$wx_func;
40880                 #endif
40881
40882
40883   ;
40884   return 0;
40885 }
40886
40887 _ACEOF
40888 rm -f conftest.$ac_objext conftest$ac_exeext
40889 if { (ac_try="$ac_link"
40890 case "(($ac_try" in
40891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40892   *) ac_try_echo=$ac_try;;
40893 esac
40894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40895   (eval "$ac_link") 2>conftest.er1
40896   ac_status=$?
40897   grep -v '^ *+' conftest.er1 >conftest.err
40898   rm -f conftest.er1
40899   cat conftest.err >&5
40900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40901   (exit $ac_status); } && {
40902          test -z "$ac_c_werror_flag" ||
40903          test ! -s conftest.err
40904        } && test -s conftest$ac_exeext &&
40905        $as_test_x conftest$ac_exeext; then
40906   eval wx_cv_func_$wx_func=yes
40907 else
40908   echo "$as_me: failed program was:" >&5
40909 sed 's/^/| /' conftest.$ac_ext >&5
40910
40911         eval wx_cv_func_$wx_func=no
40912 fi
40913
40914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40915       conftest$ac_exeext conftest.$ac_ext
40916
40917 fi
40918 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40919                { echo "$as_me:$LINENO: result: $ac_res" >&5
40920 echo "${ECHO_T}$ac_res" >&6; }
40921
40922     if eval test \$wx_cv_func_$wx_func = yes
40923     then
40924       cat >>confdefs.h <<_ACEOF
40925 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40926 _ACEOF
40927
40928
40929     else
40930       :
40931
40932     fi
40933   done
40934
40935
40936 fi
40937
40938
40939
40940 cat >confcache <<\_ACEOF
40941 # This file is a shell script that caches the results of configure
40942 # tests run on this system so they can be shared between configure
40943 # scripts and configure runs, see configure's option --config-cache.
40944 # It is not useful on other systems.  If it contains results you don't
40945 # want to keep, you may remove or edit it.
40946 #
40947 # config.status only pays attention to the cache file if you give it
40948 # the --recheck option to rerun configure.
40949 #
40950 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40951 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40952 # following values.
40953
40954 _ACEOF
40955
40956 # The following way of writing the cache mishandles newlines in values,
40957 # but we know of no workaround that is simple, portable, and efficient.
40958 # So, we kill variables containing newlines.
40959 # Ultrix sh set writes to stderr and can't be redirected directly,
40960 # and sets the high bit in the cache file unless we assign to the vars.
40961 (
40962   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
40963     eval ac_val=\$$ac_var
40964     case $ac_val in #(
40965     *${as_nl}*)
40966       case $ac_var in #(
40967       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
40968 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
40969       esac
40970       case $ac_var in #(
40971       _ | IFS | as_nl) ;; #(
40972       *) $as_unset $ac_var ;;
40973       esac ;;
40974     esac
40975   done
40976
40977   (set) 2>&1 |
40978     case $as_nl`(ac_space=' '; set) 2>&1` in #(
40979     *${as_nl}ac_space=\ *)
40980       # `set' does not quote correctly, so add quotes (double-quote
40981       # substitution turns \\\\ into \\, and sed turns \\ into \).
40982       sed -n \
40983         "s/'/'\\\\''/g;
40984           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40985       ;; #(
40986     *)
40987       # `set' quotes correctly as required by POSIX, so do not add quotes.
40988       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
40989       ;;
40990     esac |
40991     sort
40992 ) |
40993   sed '
40994      /^ac_cv_env_/b end
40995      t clear
40996      :clear
40997      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40998      t end
40999      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41000      :end' >>confcache
41001 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41002   if test -w "$cache_file"; then
41003     test "x$cache_file" != "x/dev/null" &&
41004       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41005 echo "$as_me: updating cache $cache_file" >&6;}
41006     cat confcache >$cache_file
41007   else
41008     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41009 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41010   fi
41011 fi
41012 rm -f confcache
41013
41014
41015 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41016
41017
41018     THREADS_LINK=
41019     THREADS_CFLAGS=
41020
41021     if test "$wxUSE_THREADS" = "yes" ; then
41022         if test "$USE_BEOS" = 1; then
41023             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
41024 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
41025             wxUSE_THREADS="no"
41026         fi
41027     fi
41028
41029     if test "$wxUSE_THREADS" = "yes" ; then
41030
41031
41032                                 THREAD_OPTS="-pthread"
41033         if test "x$SUNCXX" = xyes; then
41034             THREAD_OPTS="-mt lthread $THREAD_OPTS"
41035         fi
41036
41037         case "${host}" in
41038           *-*-solaris2* | *-*-sunos4* )
41039                 if test "x$GCC" = "xyes"; then
41040                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
41041                 fi
41042                 ;;
41043           *-*-freebsd*)
41044                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
41045                 ;;
41046           *-*-darwin* | *-*-cygwin* )
41047                                                 THREAD_OPTS=""
41048                 ;;
41049           *-*-aix*)
41050                                 THREAD_OPTS="pthreads"
41051                 ;;
41052           *-hp-hpux* )
41053                 if test "x$GCC" = "xyes"; then
41054                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
41055                         THREAD_OPTS=""
41056                 else
41057                                                             THREAD_OPTS="-mt"
41058                 fi
41059                 ;;
41060
41061           *-*-irix* )
41062                                                                 if test "x$GCC" = "xyes"; then
41063                     THREAD_OPTS=""
41064                 fi
41065                 ;;
41066
41067           *-*-*UnixWare*)
41068                                 if test "x$GCC" != "xyes"; then
41069                     THREAD_OPTS="-Ethread"
41070                 fi
41071                 ;;
41072         esac
41073
41074                                 THREAD_OPTS="$THREAD_OPTS pthread none"
41075
41076                 THREADS_OK=no
41077         for flag in $THREAD_OPTS; do
41078             case $flag in
41079                 none)
41080                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
41081 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
41082                     ;;
41083
41084                 -*)
41085                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
41086 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
41087                     THREADS_CFLAGS="$flag"
41088                     ;;
41089
41090                 *)
41091                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
41092 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
41093                     THREADS_LINK="-l$flag"
41094                     ;;
41095               esac
41096
41097               save_LIBS="$LIBS"
41098               save_CFLAGS="$CFLAGS"
41099               LIBS="$THREADS_LINK $LIBS"
41100               CFLAGS="$THREADS_CFLAGS $CFLAGS"
41101
41102               cat >conftest.$ac_ext <<_ACEOF
41103 /* confdefs.h.  */
41104 _ACEOF
41105 cat confdefs.h >>conftest.$ac_ext
41106 cat >>conftest.$ac_ext <<_ACEOF
41107 /* end confdefs.h.  */
41108 #include <pthread.h>
41109 int
41110 main ()
41111 {
41112 pthread_create(0,0,0,0);
41113   ;
41114   return 0;
41115 }
41116 _ACEOF
41117 rm -f conftest.$ac_objext conftest$ac_exeext
41118 if { (ac_try="$ac_link"
41119 case "(($ac_try" in
41120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41121   *) ac_try_echo=$ac_try;;
41122 esac
41123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41124   (eval "$ac_link") 2>conftest.er1
41125   ac_status=$?
41126   grep -v '^ *+' conftest.er1 >conftest.err
41127   rm -f conftest.er1
41128   cat conftest.err >&5
41129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41130   (exit $ac_status); } && {
41131          test -z "$ac_c_werror_flag" ||
41132          test ! -s conftest.err
41133        } && test -s conftest$ac_exeext &&
41134        $as_test_x conftest$ac_exeext; then
41135   THREADS_OK=yes
41136 else
41137   echo "$as_me: failed program was:" >&5
41138 sed 's/^/| /' conftest.$ac_ext >&5
41139
41140
41141 fi
41142
41143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41144       conftest$ac_exeext conftest.$ac_ext
41145
41146               LIBS="$save_LIBS"
41147               CFLAGS="$save_CFLAGS"
41148
41149               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
41150 echo "${ECHO_T}$THREADS_OK" >&6; }
41151               if test "x$THREADS_OK" = "xyes"; then
41152                       break;
41153               fi
41154
41155               THREADS_LINK=""
41156               THREADS_CFLAGS=""
41157       done
41158
41159       if test "x$THREADS_OK" != "xyes"; then
41160           wxUSE_THREADS=no
41161           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
41162 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
41163       else
41164                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
41165           LIBS="$THREADS_LINK $LIBS"
41166
41167           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
41168 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
41169           flag=no
41170           case "${host}" in
41171             *-aix*)
41172                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
41173                 flag="-D_THREAD_SAFE"
41174                 ;;
41175             *-freebsd*)
41176                 flag="-D_THREAD_SAFE"
41177                 ;;
41178             *-hp-hpux* )
41179                 flag="-D_REENTRANT"
41180                 if test "x$GCC" != "xyes"; then
41181                                         flag="$flag -D_RWSTD_MULTI_THREAD"
41182                 fi
41183                 ;;
41184             *solaris* | alpha*-osf*)
41185                 flag="-D_REENTRANT"
41186                 ;;
41187           esac
41188           { echo "$as_me:$LINENO: result: ${flag}" >&5
41189 echo "${ECHO_T}${flag}" >&6; }
41190           if test "x$flag" != xno; then
41191               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
41192           fi
41193
41194                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
41195       fi
41196     fi
41197
41198         if test "$wxUSE_THREADS" = "yes" ; then
41199
41200 for ac_func in thr_setconcurrency
41201 do
41202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41203 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41205 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41206   echo $ECHO_N "(cached) $ECHO_C" >&6
41207 else
41208   cat >conftest.$ac_ext <<_ACEOF
41209 /* confdefs.h.  */
41210 _ACEOF
41211 cat confdefs.h >>conftest.$ac_ext
41212 cat >>conftest.$ac_ext <<_ACEOF
41213 /* end confdefs.h.  */
41214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41216 #define $ac_func innocuous_$ac_func
41217
41218 /* System header to define __stub macros and hopefully few prototypes,
41219     which can conflict with char $ac_func (); below.
41220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41221     <limits.h> exists even on freestanding compilers.  */
41222
41223 #ifdef __STDC__
41224 # include <limits.h>
41225 #else
41226 # include <assert.h>
41227 #endif
41228
41229 #undef $ac_func
41230
41231 /* Override any GCC internal prototype to avoid an error.
41232    Use char because int might match the return type of a GCC
41233    builtin and then its argument prototype would still apply.  */
41234 #ifdef __cplusplus
41235 extern "C"
41236 #endif
41237 char $ac_func ();
41238 /* The GNU C library defines this for functions which it implements
41239     to always fail with ENOSYS.  Some functions are actually named
41240     something starting with __ and the normal name is an alias.  */
41241 #if defined __stub_$ac_func || defined __stub___$ac_func
41242 choke me
41243 #endif
41244
41245 int
41246 main ()
41247 {
41248 return $ac_func ();
41249   ;
41250   return 0;
41251 }
41252 _ACEOF
41253 rm -f conftest.$ac_objext conftest$ac_exeext
41254 if { (ac_try="$ac_link"
41255 case "(($ac_try" in
41256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41257   *) ac_try_echo=$ac_try;;
41258 esac
41259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41260   (eval "$ac_link") 2>conftest.er1
41261   ac_status=$?
41262   grep -v '^ *+' conftest.er1 >conftest.err
41263   rm -f conftest.er1
41264   cat conftest.err >&5
41265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41266   (exit $ac_status); } && {
41267          test -z "$ac_c_werror_flag" ||
41268          test ! -s conftest.err
41269        } && test -s conftest$ac_exeext &&
41270        $as_test_x conftest$ac_exeext; then
41271   eval "$as_ac_var=yes"
41272 else
41273   echo "$as_me: failed program was:" >&5
41274 sed 's/^/| /' conftest.$ac_ext >&5
41275
41276         eval "$as_ac_var=no"
41277 fi
41278
41279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41280       conftest$ac_exeext conftest.$ac_ext
41281 fi
41282 ac_res=`eval echo '${'$as_ac_var'}'`
41283                { echo "$as_me:$LINENO: result: $ac_res" >&5
41284 echo "${ECHO_T}$ac_res" >&6; }
41285 if test `eval echo '${'$as_ac_var'}'` = yes; then
41286   cat >>confdefs.h <<_ACEOF
41287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41288 _ACEOF
41289
41290 fi
41291 done
41292
41293
41294                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
41295 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
41296 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
41297   echo $ECHO_N "(cached) $ECHO_C" >&6
41298 else
41299
41300                                 ac_ext=cpp
41301 ac_cpp='$CXXCPP $CPPFLAGS'
41302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41305
41306         cat >conftest.$ac_ext <<_ACEOF
41307 /* confdefs.h.  */
41308 _ACEOF
41309 cat confdefs.h >>conftest.$ac_ext
41310 cat >>conftest.$ac_ext <<_ACEOF
41311 /* end confdefs.h.  */
41312 #include <pthread.h>
41313                void ThreadCleanupFunc(void *p);
41314
41315 int
41316 main ()
41317 {
41318
41319                 void *p;
41320                 pthread_cleanup_push(ThreadCleanupFunc, p);
41321                 pthread_cleanup_pop(0);
41322
41323   ;
41324   return 0;
41325 }
41326 _ACEOF
41327 rm -f conftest.$ac_objext
41328 if { (ac_try="$ac_compile"
41329 case "(($ac_try" in
41330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41331   *) ac_try_echo=$ac_try;;
41332 esac
41333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41334   (eval "$ac_compile") 2>conftest.er1
41335   ac_status=$?
41336   grep -v '^ *+' conftest.er1 >conftest.err
41337   rm -f conftest.er1
41338   cat conftest.err >&5
41339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41340   (exit $ac_status); } && {
41341          test -z "$ac_cxx_werror_flag" ||
41342          test ! -s conftest.err
41343        } && test -s conftest.$ac_objext; then
41344
41345                wx_cv_func_pthread_cleanup=yes
41346
41347 else
41348   echo "$as_me: failed program was:" >&5
41349 sed 's/^/| /' conftest.$ac_ext >&5
41350
41351
41352                wx_cv_func_pthread_cleanup=no
41353
41354
41355 fi
41356
41357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41358         ac_ext=c
41359 ac_cpp='$CPP $CPPFLAGS'
41360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41363
41364
41365 fi
41366 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
41367 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
41368       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
41369         cat >>confdefs.h <<\_ACEOF
41370 #define wxHAVE_PTHREAD_CLEANUP 1
41371 _ACEOF
41372
41373       fi
41374
41375
41376 for ac_header in sched.h
41377 do
41378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41382   echo $ECHO_N "(cached) $ECHO_C" >&6
41383 else
41384   cat >conftest.$ac_ext <<_ACEOF
41385 /* confdefs.h.  */
41386 _ACEOF
41387 cat confdefs.h >>conftest.$ac_ext
41388 cat >>conftest.$ac_ext <<_ACEOF
41389 /* end confdefs.h.  */
41390 $ac_includes_default
41391
41392 #include <$ac_header>
41393 _ACEOF
41394 rm -f conftest.$ac_objext
41395 if { (ac_try="$ac_compile"
41396 case "(($ac_try" in
41397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41398   *) ac_try_echo=$ac_try;;
41399 esac
41400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41401   (eval "$ac_compile") 2>conftest.er1
41402   ac_status=$?
41403   grep -v '^ *+' conftest.er1 >conftest.err
41404   rm -f conftest.er1
41405   cat conftest.err >&5
41406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41407   (exit $ac_status); } && {
41408          test -z "$ac_c_werror_flag" ||
41409          test ! -s conftest.err
41410        } && test -s conftest.$ac_objext; then
41411   eval "$as_ac_Header=yes"
41412 else
41413   echo "$as_me: failed program was:" >&5
41414 sed 's/^/| /' conftest.$ac_ext >&5
41415
41416         eval "$as_ac_Header=no"
41417 fi
41418
41419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41420 fi
41421 ac_res=`eval echo '${'$as_ac_Header'}'`
41422                { echo "$as_me:$LINENO: result: $ac_res" >&5
41423 echo "${ECHO_T}$ac_res" >&6; }
41424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41425   cat >>confdefs.h <<_ACEOF
41426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41427 _ACEOF
41428
41429 fi
41430
41431 done
41432
41433       if test "$ac_cv_header_sched_h" = "yes"; then
41434           { echo "$as_me:$LINENO: checking for sched_yield" >&5
41435 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
41436 if test "${ac_cv_func_sched_yield+set}" = set; then
41437   echo $ECHO_N "(cached) $ECHO_C" >&6
41438 else
41439   cat >conftest.$ac_ext <<_ACEOF
41440 /* confdefs.h.  */
41441 _ACEOF
41442 cat confdefs.h >>conftest.$ac_ext
41443 cat >>conftest.$ac_ext <<_ACEOF
41444 /* end confdefs.h.  */
41445 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
41446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41447 #define sched_yield innocuous_sched_yield
41448
41449 /* System header to define __stub macros and hopefully few prototypes,
41450     which can conflict with char sched_yield (); below.
41451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41452     <limits.h> exists even on freestanding compilers.  */
41453
41454 #ifdef __STDC__
41455 # include <limits.h>
41456 #else
41457 # include <assert.h>
41458 #endif
41459
41460 #undef sched_yield
41461
41462 /* Override any GCC internal prototype to avoid an error.
41463    Use char because int might match the return type of a GCC
41464    builtin and then its argument prototype would still apply.  */
41465 #ifdef __cplusplus
41466 extern "C"
41467 #endif
41468 char sched_yield ();
41469 /* The GNU C library defines this for functions which it implements
41470     to always fail with ENOSYS.  Some functions are actually named
41471     something starting with __ and the normal name is an alias.  */
41472 #if defined __stub_sched_yield || defined __stub___sched_yield
41473 choke me
41474 #endif
41475
41476 int
41477 main ()
41478 {
41479 return sched_yield ();
41480   ;
41481   return 0;
41482 }
41483 _ACEOF
41484 rm -f conftest.$ac_objext conftest$ac_exeext
41485 if { (ac_try="$ac_link"
41486 case "(($ac_try" in
41487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41488   *) ac_try_echo=$ac_try;;
41489 esac
41490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41491   (eval "$ac_link") 2>conftest.er1
41492   ac_status=$?
41493   grep -v '^ *+' conftest.er1 >conftest.err
41494   rm -f conftest.er1
41495   cat conftest.err >&5
41496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41497   (exit $ac_status); } && {
41498          test -z "$ac_c_werror_flag" ||
41499          test ! -s conftest.err
41500        } && test -s conftest$ac_exeext &&
41501        $as_test_x conftest$ac_exeext; then
41502   ac_cv_func_sched_yield=yes
41503 else
41504   echo "$as_me: failed program was:" >&5
41505 sed 's/^/| /' conftest.$ac_ext >&5
41506
41507         ac_cv_func_sched_yield=no
41508 fi
41509
41510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41511       conftest$ac_exeext conftest.$ac_ext
41512 fi
41513 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
41514 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
41515 if test $ac_cv_func_sched_yield = yes; then
41516   cat >>confdefs.h <<\_ACEOF
41517 #define HAVE_SCHED_YIELD 1
41518 _ACEOF
41519
41520 else
41521
41522                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
41523 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
41524 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
41525   echo $ECHO_N "(cached) $ECHO_C" >&6
41526 else
41527   ac_check_lib_save_LIBS=$LIBS
41528 LIBS="-lposix4  $LIBS"
41529 cat >conftest.$ac_ext <<_ACEOF
41530 /* confdefs.h.  */
41531 _ACEOF
41532 cat confdefs.h >>conftest.$ac_ext
41533 cat >>conftest.$ac_ext <<_ACEOF
41534 /* end confdefs.h.  */
41535
41536 /* Override any GCC internal prototype to avoid an error.
41537    Use char because int might match the return type of a GCC
41538    builtin and then its argument prototype would still apply.  */
41539 #ifdef __cplusplus
41540 extern "C"
41541 #endif
41542 char sched_yield ();
41543 int
41544 main ()
41545 {
41546 return sched_yield ();
41547   ;
41548   return 0;
41549 }
41550 _ACEOF
41551 rm -f conftest.$ac_objext conftest$ac_exeext
41552 if { (ac_try="$ac_link"
41553 case "(($ac_try" in
41554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41555   *) ac_try_echo=$ac_try;;
41556 esac
41557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41558   (eval "$ac_link") 2>conftest.er1
41559   ac_status=$?
41560   grep -v '^ *+' conftest.er1 >conftest.err
41561   rm -f conftest.er1
41562   cat conftest.err >&5
41563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41564   (exit $ac_status); } && {
41565          test -z "$ac_c_werror_flag" ||
41566          test ! -s conftest.err
41567        } && test -s conftest$ac_exeext &&
41568        $as_test_x conftest$ac_exeext; then
41569   ac_cv_lib_posix4_sched_yield=yes
41570 else
41571   echo "$as_me: failed program was:" >&5
41572 sed 's/^/| /' conftest.$ac_ext >&5
41573
41574         ac_cv_lib_posix4_sched_yield=no
41575 fi
41576
41577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41578       conftest$ac_exeext conftest.$ac_ext
41579 LIBS=$ac_check_lib_save_LIBS
41580 fi
41581 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
41582 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
41583 if test $ac_cv_lib_posix4_sched_yield = yes; then
41584   cat >>confdefs.h <<\_ACEOF
41585 #define HAVE_SCHED_YIELD 1
41586 _ACEOF
41587  POSIX4_LINK=" -lposix4"
41588 else
41589   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
41590 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
41591
41592 fi
41593
41594
41595
41596 fi
41597
41598       fi
41599
41600                                           HAVE_PRIOR_FUNCS=0
41601       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
41602 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
41603 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
41604   echo $ECHO_N "(cached) $ECHO_C" >&6
41605 else
41606   cat >conftest.$ac_ext <<_ACEOF
41607 /* confdefs.h.  */
41608 _ACEOF
41609 cat confdefs.h >>conftest.$ac_ext
41610 cat >>conftest.$ac_ext <<_ACEOF
41611 /* end confdefs.h.  */
41612 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
41613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41614 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
41615
41616 /* System header to define __stub macros and hopefully few prototypes,
41617     which can conflict with char pthread_attr_getschedpolicy (); below.
41618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41619     <limits.h> exists even on freestanding compilers.  */
41620
41621 #ifdef __STDC__
41622 # include <limits.h>
41623 #else
41624 # include <assert.h>
41625 #endif
41626
41627 #undef pthread_attr_getschedpolicy
41628
41629 /* Override any GCC internal prototype to avoid an error.
41630    Use char because int might match the return type of a GCC
41631    builtin and then its argument prototype would still apply.  */
41632 #ifdef __cplusplus
41633 extern "C"
41634 #endif
41635 char pthread_attr_getschedpolicy ();
41636 /* The GNU C library defines this for functions which it implements
41637     to always fail with ENOSYS.  Some functions are actually named
41638     something starting with __ and the normal name is an alias.  */
41639 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
41640 choke me
41641 #endif
41642
41643 int
41644 main ()
41645 {
41646 return pthread_attr_getschedpolicy ();
41647   ;
41648   return 0;
41649 }
41650 _ACEOF
41651 rm -f conftest.$ac_objext conftest$ac_exeext
41652 if { (ac_try="$ac_link"
41653 case "(($ac_try" in
41654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41655   *) ac_try_echo=$ac_try;;
41656 esac
41657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41658   (eval "$ac_link") 2>conftest.er1
41659   ac_status=$?
41660   grep -v '^ *+' conftest.er1 >conftest.err
41661   rm -f conftest.er1
41662   cat conftest.err >&5
41663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41664   (exit $ac_status); } && {
41665          test -z "$ac_c_werror_flag" ||
41666          test ! -s conftest.err
41667        } && test -s conftest$ac_exeext &&
41668        $as_test_x conftest$ac_exeext; then
41669   ac_cv_func_pthread_attr_getschedpolicy=yes
41670 else
41671   echo "$as_me: failed program was:" >&5
41672 sed 's/^/| /' conftest.$ac_ext >&5
41673
41674         ac_cv_func_pthread_attr_getschedpolicy=no
41675 fi
41676
41677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41678       conftest$ac_exeext conftest.$ac_ext
41679 fi
41680 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
41681 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
41682 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
41683   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
41684 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
41685 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
41686   echo $ECHO_N "(cached) $ECHO_C" >&6
41687 else
41688   cat >conftest.$ac_ext <<_ACEOF
41689 /* confdefs.h.  */
41690 _ACEOF
41691 cat confdefs.h >>conftest.$ac_ext
41692 cat >>conftest.$ac_ext <<_ACEOF
41693 /* end confdefs.h.  */
41694 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
41695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41696 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
41697
41698 /* System header to define __stub macros and hopefully few prototypes,
41699     which can conflict with char pthread_attr_setschedparam (); below.
41700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41701     <limits.h> exists even on freestanding compilers.  */
41702
41703 #ifdef __STDC__
41704 # include <limits.h>
41705 #else
41706 # include <assert.h>
41707 #endif
41708
41709 #undef pthread_attr_setschedparam
41710
41711 /* Override any GCC internal prototype to avoid an error.
41712    Use char because int might match the return type of a GCC
41713    builtin and then its argument prototype would still apply.  */
41714 #ifdef __cplusplus
41715 extern "C"
41716 #endif
41717 char pthread_attr_setschedparam ();
41718 /* The GNU C library defines this for functions which it implements
41719     to always fail with ENOSYS.  Some functions are actually named
41720     something starting with __ and the normal name is an alias.  */
41721 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
41722 choke me
41723 #endif
41724
41725 int
41726 main ()
41727 {
41728 return pthread_attr_setschedparam ();
41729   ;
41730   return 0;
41731 }
41732 _ACEOF
41733 rm -f conftest.$ac_objext conftest$ac_exeext
41734 if { (ac_try="$ac_link"
41735 case "(($ac_try" in
41736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41737   *) ac_try_echo=$ac_try;;
41738 esac
41739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41740   (eval "$ac_link") 2>conftest.er1
41741   ac_status=$?
41742   grep -v '^ *+' conftest.er1 >conftest.err
41743   rm -f conftest.er1
41744   cat conftest.err >&5
41745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41746   (exit $ac_status); } && {
41747          test -z "$ac_c_werror_flag" ||
41748          test ! -s conftest.err
41749        } && test -s conftest$ac_exeext &&
41750        $as_test_x conftest$ac_exeext; then
41751   ac_cv_func_pthread_attr_setschedparam=yes
41752 else
41753   echo "$as_me: failed program was:" >&5
41754 sed 's/^/| /' conftest.$ac_ext >&5
41755
41756         ac_cv_func_pthread_attr_setschedparam=no
41757 fi
41758
41759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41760       conftest$ac_exeext conftest.$ac_ext
41761 fi
41762 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41763 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
41764 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41765   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41766 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
41767 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41768   echo $ECHO_N "(cached) $ECHO_C" >&6
41769 else
41770   cat >conftest.$ac_ext <<_ACEOF
41771 /* confdefs.h.  */
41772 _ACEOF
41773 cat confdefs.h >>conftest.$ac_ext
41774 cat >>conftest.$ac_ext <<_ACEOF
41775 /* end confdefs.h.  */
41776 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41778 #define sched_get_priority_max innocuous_sched_get_priority_max
41779
41780 /* System header to define __stub macros and hopefully few prototypes,
41781     which can conflict with char sched_get_priority_max (); below.
41782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41783     <limits.h> exists even on freestanding compilers.  */
41784
41785 #ifdef __STDC__
41786 # include <limits.h>
41787 #else
41788 # include <assert.h>
41789 #endif
41790
41791 #undef sched_get_priority_max
41792
41793 /* Override any GCC internal prototype to avoid an error.
41794    Use char because int might match the return type of a GCC
41795    builtin and then its argument prototype would still apply.  */
41796 #ifdef __cplusplus
41797 extern "C"
41798 #endif
41799 char sched_get_priority_max ();
41800 /* The GNU C library defines this for functions which it implements
41801     to always fail with ENOSYS.  Some functions are actually named
41802     something starting with __ and the normal name is an alias.  */
41803 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
41804 choke me
41805 #endif
41806
41807 int
41808 main ()
41809 {
41810 return sched_get_priority_max ();
41811   ;
41812   return 0;
41813 }
41814 _ACEOF
41815 rm -f conftest.$ac_objext conftest$ac_exeext
41816 if { (ac_try="$ac_link"
41817 case "(($ac_try" in
41818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41819   *) ac_try_echo=$ac_try;;
41820 esac
41821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41822   (eval "$ac_link") 2>conftest.er1
41823   ac_status=$?
41824   grep -v '^ *+' conftest.er1 >conftest.err
41825   rm -f conftest.er1
41826   cat conftest.err >&5
41827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41828   (exit $ac_status); } && {
41829          test -z "$ac_c_werror_flag" ||
41830          test ! -s conftest.err
41831        } && test -s conftest$ac_exeext &&
41832        $as_test_x conftest$ac_exeext; then
41833   ac_cv_func_sched_get_priority_max=yes
41834 else
41835   echo "$as_me: failed program was:" >&5
41836 sed 's/^/| /' conftest.$ac_ext >&5
41837
41838         ac_cv_func_sched_get_priority_max=no
41839 fi
41840
41841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41842       conftest$ac_exeext conftest.$ac_ext
41843 fi
41844 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
41845 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
41846 if test $ac_cv_func_sched_get_priority_max = yes; then
41847   HAVE_PRIOR_FUNCS=1
41848 else
41849   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
41850 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
41851 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
41852   echo $ECHO_N "(cached) $ECHO_C" >&6
41853 else
41854   ac_check_lib_save_LIBS=$LIBS
41855 LIBS="-lposix4  $LIBS"
41856 cat >conftest.$ac_ext <<_ACEOF
41857 /* confdefs.h.  */
41858 _ACEOF
41859 cat confdefs.h >>conftest.$ac_ext
41860 cat >>conftest.$ac_ext <<_ACEOF
41861 /* end confdefs.h.  */
41862
41863 /* Override any GCC internal prototype to avoid an error.
41864    Use char because int might match the return type of a GCC
41865    builtin and then its argument prototype would still apply.  */
41866 #ifdef __cplusplus
41867 extern "C"
41868 #endif
41869 char sched_get_priority_max ();
41870 int
41871 main ()
41872 {
41873 return sched_get_priority_max ();
41874   ;
41875   return 0;
41876 }
41877 _ACEOF
41878 rm -f conftest.$ac_objext conftest$ac_exeext
41879 if { (ac_try="$ac_link"
41880 case "(($ac_try" in
41881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41882   *) ac_try_echo=$ac_try;;
41883 esac
41884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41885   (eval "$ac_link") 2>conftest.er1
41886   ac_status=$?
41887   grep -v '^ *+' conftest.er1 >conftest.err
41888   rm -f conftest.er1
41889   cat conftest.err >&5
41890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41891   (exit $ac_status); } && {
41892          test -z "$ac_c_werror_flag" ||
41893          test ! -s conftest.err
41894        } && test -s conftest$ac_exeext &&
41895        $as_test_x conftest$ac_exeext; then
41896   ac_cv_lib_posix4_sched_get_priority_max=yes
41897 else
41898   echo "$as_me: failed program was:" >&5
41899 sed 's/^/| /' conftest.$ac_ext >&5
41900
41901         ac_cv_lib_posix4_sched_get_priority_max=no
41902 fi
41903
41904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41905       conftest$ac_exeext conftest.$ac_ext
41906 LIBS=$ac_check_lib_save_LIBS
41907 fi
41908 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
41909 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
41910 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
41911
41912                                 HAVE_PRIOR_FUNCS=1
41913                                 POSIX4_LINK=" -lposix4"
41914
41915 fi
41916
41917
41918 fi
41919
41920
41921 fi
41922
41923
41924 fi
41925
41926
41927       if test "$HAVE_PRIOR_FUNCS" = 1; then
41928         cat >>confdefs.h <<\_ACEOF
41929 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
41930 _ACEOF
41931
41932       else
41933         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
41934 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
41935       fi
41936
41937       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
41938 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
41939 if test "${ac_cv_func_pthread_cancel+set}" = set; then
41940   echo $ECHO_N "(cached) $ECHO_C" >&6
41941 else
41942   cat >conftest.$ac_ext <<_ACEOF
41943 /* confdefs.h.  */
41944 _ACEOF
41945 cat confdefs.h >>conftest.$ac_ext
41946 cat >>conftest.$ac_ext <<_ACEOF
41947 /* end confdefs.h.  */
41948 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
41949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41950 #define pthread_cancel innocuous_pthread_cancel
41951
41952 /* System header to define __stub macros and hopefully few prototypes,
41953     which can conflict with char pthread_cancel (); below.
41954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41955     <limits.h> exists even on freestanding compilers.  */
41956
41957 #ifdef __STDC__
41958 # include <limits.h>
41959 #else
41960 # include <assert.h>
41961 #endif
41962
41963 #undef pthread_cancel
41964
41965 /* Override any GCC internal prototype to avoid an error.
41966    Use char because int might match the return type of a GCC
41967    builtin and then its argument prototype would still apply.  */
41968 #ifdef __cplusplus
41969 extern "C"
41970 #endif
41971 char pthread_cancel ();
41972 /* The GNU C library defines this for functions which it implements
41973     to always fail with ENOSYS.  Some functions are actually named
41974     something starting with __ and the normal name is an alias.  */
41975 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
41976 choke me
41977 #endif
41978
41979 int
41980 main ()
41981 {
41982 return pthread_cancel ();
41983   ;
41984   return 0;
41985 }
41986 _ACEOF
41987 rm -f conftest.$ac_objext conftest$ac_exeext
41988 if { (ac_try="$ac_link"
41989 case "(($ac_try" in
41990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41991   *) ac_try_echo=$ac_try;;
41992 esac
41993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41994   (eval "$ac_link") 2>conftest.er1
41995   ac_status=$?
41996   grep -v '^ *+' conftest.er1 >conftest.err
41997   rm -f conftest.er1
41998   cat conftest.err >&5
41999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42000   (exit $ac_status); } && {
42001          test -z "$ac_c_werror_flag" ||
42002          test ! -s conftest.err
42003        } && test -s conftest$ac_exeext &&
42004        $as_test_x conftest$ac_exeext; then
42005   ac_cv_func_pthread_cancel=yes
42006 else
42007   echo "$as_me: failed program was:" >&5
42008 sed 's/^/| /' conftest.$ac_ext >&5
42009
42010         ac_cv_func_pthread_cancel=no
42011 fi
42012
42013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42014       conftest$ac_exeext conftest.$ac_ext
42015 fi
42016 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
42017 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
42018 if test $ac_cv_func_pthread_cancel = yes; then
42019   cat >>confdefs.h <<\_ACEOF
42020 #define HAVE_PTHREAD_CANCEL 1
42021 _ACEOF
42022
42023 else
42024   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
42025 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
42026 fi
42027
42028
42029       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
42030 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
42031 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
42032   echo $ECHO_N "(cached) $ECHO_C" >&6
42033 else
42034   cat >conftest.$ac_ext <<_ACEOF
42035 /* confdefs.h.  */
42036 _ACEOF
42037 cat confdefs.h >>conftest.$ac_ext
42038 cat >>conftest.$ac_ext <<_ACEOF
42039 /* end confdefs.h.  */
42040 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
42041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42042 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
42043
42044 /* System header to define __stub macros and hopefully few prototypes,
42045     which can conflict with char pthread_mutex_timedlock (); below.
42046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42047     <limits.h> exists even on freestanding compilers.  */
42048
42049 #ifdef __STDC__
42050 # include <limits.h>
42051 #else
42052 # include <assert.h>
42053 #endif
42054
42055 #undef pthread_mutex_timedlock
42056
42057 /* Override any GCC internal prototype to avoid an error.
42058    Use char because int might match the return type of a GCC
42059    builtin and then its argument prototype would still apply.  */
42060 #ifdef __cplusplus
42061 extern "C"
42062 #endif
42063 char pthread_mutex_timedlock ();
42064 /* The GNU C library defines this for functions which it implements
42065     to always fail with ENOSYS.  Some functions are actually named
42066     something starting with __ and the normal name is an alias.  */
42067 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
42068 choke me
42069 #endif
42070
42071 int
42072 main ()
42073 {
42074 return pthread_mutex_timedlock ();
42075   ;
42076   return 0;
42077 }
42078 _ACEOF
42079 rm -f conftest.$ac_objext conftest$ac_exeext
42080 if { (ac_try="$ac_link"
42081 case "(($ac_try" in
42082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42083   *) ac_try_echo=$ac_try;;
42084 esac
42085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42086   (eval "$ac_link") 2>conftest.er1
42087   ac_status=$?
42088   grep -v '^ *+' conftest.er1 >conftest.err
42089   rm -f conftest.er1
42090   cat conftest.err >&5
42091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42092   (exit $ac_status); } && {
42093          test -z "$ac_c_werror_flag" ||
42094          test ! -s conftest.err
42095        } && test -s conftest$ac_exeext &&
42096        $as_test_x conftest$ac_exeext; then
42097   ac_cv_func_pthread_mutex_timedlock=yes
42098 else
42099   echo "$as_me: failed program was:" >&5
42100 sed 's/^/| /' conftest.$ac_ext >&5
42101
42102         ac_cv_func_pthread_mutex_timedlock=no
42103 fi
42104
42105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42106       conftest$ac_exeext conftest.$ac_ext
42107 fi
42108 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
42109 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
42110 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
42111   cat >>confdefs.h <<\_ACEOF
42112 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
42113 _ACEOF
42114
42115 else
42116   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
42117 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
42118 fi
42119
42120
42121       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
42122 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
42123 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
42124   echo $ECHO_N "(cached) $ECHO_C" >&6
42125 else
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 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
42133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42134 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
42135
42136 /* System header to define __stub macros and hopefully few prototypes,
42137     which can conflict with char pthread_attr_setstacksize (); below.
42138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42139     <limits.h> exists even on freestanding compilers.  */
42140
42141 #ifdef __STDC__
42142 # include <limits.h>
42143 #else
42144 # include <assert.h>
42145 #endif
42146
42147 #undef pthread_attr_setstacksize
42148
42149 /* Override any GCC internal prototype to avoid an error.
42150    Use char because int might match the return type of a GCC
42151    builtin and then its argument prototype would still apply.  */
42152 #ifdef __cplusplus
42153 extern "C"
42154 #endif
42155 char pthread_attr_setstacksize ();
42156 /* The GNU C library defines this for functions which it implements
42157     to always fail with ENOSYS.  Some functions are actually named
42158     something starting with __ and the normal name is an alias.  */
42159 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
42160 choke me
42161 #endif
42162
42163 int
42164 main ()
42165 {
42166 return pthread_attr_setstacksize ();
42167   ;
42168   return 0;
42169 }
42170 _ACEOF
42171 rm -f conftest.$ac_objext conftest$ac_exeext
42172 if { (ac_try="$ac_link"
42173 case "(($ac_try" in
42174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42175   *) ac_try_echo=$ac_try;;
42176 esac
42177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42178   (eval "$ac_link") 2>conftest.er1
42179   ac_status=$?
42180   grep -v '^ *+' conftest.er1 >conftest.err
42181   rm -f conftest.er1
42182   cat conftest.err >&5
42183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42184   (exit $ac_status); } && {
42185          test -z "$ac_c_werror_flag" ||
42186          test ! -s conftest.err
42187        } && test -s conftest$ac_exeext &&
42188        $as_test_x conftest$ac_exeext; then
42189   ac_cv_func_pthread_attr_setstacksize=yes
42190 else
42191   echo "$as_me: failed program was:" >&5
42192 sed 's/^/| /' conftest.$ac_ext >&5
42193
42194         ac_cv_func_pthread_attr_setstacksize=no
42195 fi
42196
42197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42198       conftest$ac_exeext conftest.$ac_ext
42199 fi
42200 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
42201 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
42202 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
42203   cat >>confdefs.h <<\_ACEOF
42204 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
42205 _ACEOF
42206
42207 fi
42208
42209
42210
42211       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
42212 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
42213 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
42214   echo $ECHO_N "(cached) $ECHO_C" >&6
42215 else
42216
42217         cat >conftest.$ac_ext <<_ACEOF
42218 /* confdefs.h.  */
42219 _ACEOF
42220 cat confdefs.h >>conftest.$ac_ext
42221 cat >>conftest.$ac_ext <<_ACEOF
42222 /* end confdefs.h.  */
42223 #include <pthread.h>
42224 int
42225 main ()
42226 {
42227
42228                pthread_mutexattr_t attr;
42229                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42230
42231   ;
42232   return 0;
42233 }
42234 _ACEOF
42235 rm -f conftest.$ac_objext
42236 if { (ac_try="$ac_compile"
42237 case "(($ac_try" in
42238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42239   *) ac_try_echo=$ac_try;;
42240 esac
42241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42242   (eval "$ac_compile") 2>conftest.er1
42243   ac_status=$?
42244   grep -v '^ *+' conftest.er1 >conftest.err
42245   rm -f conftest.er1
42246   cat conftest.err >&5
42247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42248   (exit $ac_status); } && {
42249          test -z "$ac_c_werror_flag" ||
42250          test ! -s conftest.err
42251        } && test -s conftest.$ac_objext; then
42252   wx_cv_type_pthread_mutexattr_t=yes
42253 else
42254   echo "$as_me: failed program was:" >&5
42255 sed 's/^/| /' conftest.$ac_ext >&5
42256
42257         wx_cv_type_pthread_mutexattr_t=no
42258
42259 fi
42260
42261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42262
42263 fi
42264 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
42265 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
42266
42267       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
42268         cat >>confdefs.h <<\_ACEOF
42269 #define HAVE_PTHREAD_MUTEXATTR_T 1
42270 _ACEOF
42271
42272
42273                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
42274 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
42275 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
42276   echo $ECHO_N "(cached) $ECHO_C" >&6
42277 else
42278
42279                        cat >conftest.$ac_ext <<_ACEOF
42280 /* confdefs.h.  */
42281 _ACEOF
42282 cat confdefs.h >>conftest.$ac_ext
42283 cat >>conftest.$ac_ext <<_ACEOF
42284 /* end confdefs.h.  */
42285 #include <pthread.h>
42286 int
42287 main ()
42288 {
42289
42290                                pthread_mutexattr_t attr;
42291                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42292
42293   ;
42294   return 0;
42295 }
42296 _ACEOF
42297 rm -f conftest.$ac_objext
42298 if { (ac_try="$ac_compile"
42299 case "(($ac_try" in
42300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42301   *) ac_try_echo=$ac_try;;
42302 esac
42303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42304   (eval "$ac_compile") 2>conftest.er1
42305   ac_status=$?
42306   grep -v '^ *+' conftest.er1 >conftest.err
42307   rm -f conftest.er1
42308   cat conftest.err >&5
42309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42310   (exit $ac_status); } && {
42311          test -z "$ac_c_werror_flag" ||
42312          test ! -s conftest.err
42313        } && test -s conftest.$ac_objext; then
42314   wx_cv_func_pthread_mutexattr_settype_decl=yes
42315 else
42316   echo "$as_me: failed program was:" >&5
42317 sed 's/^/| /' conftest.$ac_ext >&5
42318
42319         wx_cv_func_pthread_mutexattr_settype_decl=no
42320
42321 fi
42322
42323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42324
42325 fi
42326 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
42327 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
42328         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
42329             cat >>confdefs.h <<\_ACEOF
42330 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
42331 _ACEOF
42332
42333         fi
42334       else
42335                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
42336 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
42337 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
42338   echo $ECHO_N "(cached) $ECHO_C" >&6
42339 else
42340
42341             cat >conftest.$ac_ext <<_ACEOF
42342 /* confdefs.h.  */
42343 _ACEOF
42344 cat confdefs.h >>conftest.$ac_ext
42345 cat >>conftest.$ac_ext <<_ACEOF
42346 /* end confdefs.h.  */
42347 #include <pthread.h>
42348 int
42349 main ()
42350 {
42351
42352                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
42353
42354   ;
42355   return 0;
42356 }
42357 _ACEOF
42358 rm -f conftest.$ac_objext
42359 if { (ac_try="$ac_compile"
42360 case "(($ac_try" in
42361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42362   *) ac_try_echo=$ac_try;;
42363 esac
42364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42365   (eval "$ac_compile") 2>conftest.er1
42366   ac_status=$?
42367   grep -v '^ *+' conftest.er1 >conftest.err
42368   rm -f conftest.er1
42369   cat conftest.err >&5
42370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42371   (exit $ac_status); } && {
42372          test -z "$ac_c_werror_flag" ||
42373          test ! -s conftest.err
42374        } && test -s conftest.$ac_objext; then
42375
42376                     wx_cv_type_pthread_rec_mutex_init=yes
42377
42378 else
42379   echo "$as_me: failed program was:" >&5
42380 sed 's/^/| /' conftest.$ac_ext >&5
42381
42382
42383                     wx_cv_type_pthread_rec_mutex_init=no
42384
42385
42386 fi
42387
42388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42389
42390 fi
42391 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
42392 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
42393         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
42394           cat >>confdefs.h <<\_ACEOF
42395 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
42396 _ACEOF
42397
42398         else
42399                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
42400 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
42401         fi
42402       fi
42403     fi
42404
42405 else
42406     if test "$wxUSE_THREADS" = "yes" ; then
42407       case "${host}" in
42408         *-*-mingw32* )
42409                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
42410 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
42411 if test "${wx_cv_cflags_mthread+set}" = set; then
42412   echo $ECHO_N "(cached) $ECHO_C" >&6
42413 else
42414
42415                     CFLAGS_OLD="$CFLAGS"
42416                     CFLAGS="-mthreads $CFLAGS"
42417                     cat >conftest.$ac_ext <<_ACEOF
42418 /* confdefs.h.  */
42419 _ACEOF
42420 cat confdefs.h >>conftest.$ac_ext
42421 cat >>conftest.$ac_ext <<_ACEOF
42422 /* end confdefs.h.  */
42423
42424 int
42425 main ()
42426 {
42427
42428   ;
42429   return 0;
42430 }
42431 _ACEOF
42432 rm -f conftest.$ac_objext
42433 if { (ac_try="$ac_compile"
42434 case "(($ac_try" in
42435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42436   *) ac_try_echo=$ac_try;;
42437 esac
42438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42439   (eval "$ac_compile") 2>conftest.er1
42440   ac_status=$?
42441   grep -v '^ *+' conftest.er1 >conftest.err
42442   rm -f conftest.er1
42443   cat conftest.err >&5
42444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42445   (exit $ac_status); } && {
42446          test -z "$ac_c_werror_flag" ||
42447          test ! -s conftest.err
42448        } && test -s conftest.$ac_objext; then
42449   wx_cv_cflags_mthread=yes
42450 else
42451   echo "$as_me: failed program was:" >&5
42452 sed 's/^/| /' conftest.$ac_ext >&5
42453
42454         wx_cv_cflags_mthread=no
42455
42456 fi
42457
42458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42459
42460
42461 fi
42462 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
42463 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
42464
42465             if test "$wx_cv_cflags_mthread" = "yes"; then
42466                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
42467                 LDFLAGS="$LDFLAGS -mthreads"
42468             else
42469                                 CFLAGS="$CFLAGS_OLD"
42470             fi
42471         ;;
42472         *-pc-os2*emx )
42473             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
42474             LDFLAGS="$LDFLAGS -Zmt"
42475         ;;
42476       esac
42477     fi
42478 fi
42479
42480 { echo "$as_me:$LINENO: checking for localtime_r" >&5
42481 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
42482 if test "${ac_cv_func_localtime_r+set}" = set; then
42483   echo $ECHO_N "(cached) $ECHO_C" >&6
42484 else
42485   cat >conftest.$ac_ext <<_ACEOF
42486 /* confdefs.h.  */
42487 _ACEOF
42488 cat confdefs.h >>conftest.$ac_ext
42489 cat >>conftest.$ac_ext <<_ACEOF
42490 /* end confdefs.h.  */
42491 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
42492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42493 #define localtime_r innocuous_localtime_r
42494
42495 /* System header to define __stub macros and hopefully few prototypes,
42496     which can conflict with char localtime_r (); below.
42497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42498     <limits.h> exists even on freestanding compilers.  */
42499
42500 #ifdef __STDC__
42501 # include <limits.h>
42502 #else
42503 # include <assert.h>
42504 #endif
42505
42506 #undef localtime_r
42507
42508 /* Override any GCC internal prototype to avoid an error.
42509    Use char because int might match the return type of a GCC
42510    builtin and then its argument prototype would still apply.  */
42511 #ifdef __cplusplus
42512 extern "C"
42513 #endif
42514 char localtime_r ();
42515 /* The GNU C library defines this for functions which it implements
42516     to always fail with ENOSYS.  Some functions are actually named
42517     something starting with __ and the normal name is an alias.  */
42518 #if defined __stub_localtime_r || defined __stub___localtime_r
42519 choke me
42520 #endif
42521
42522 int
42523 main ()
42524 {
42525 return localtime_r ();
42526   ;
42527   return 0;
42528 }
42529 _ACEOF
42530 rm -f conftest.$ac_objext conftest$ac_exeext
42531 if { (ac_try="$ac_link"
42532 case "(($ac_try" in
42533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42534   *) ac_try_echo=$ac_try;;
42535 esac
42536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42537   (eval "$ac_link") 2>conftest.er1
42538   ac_status=$?
42539   grep -v '^ *+' conftest.er1 >conftest.err
42540   rm -f conftest.er1
42541   cat conftest.err >&5
42542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42543   (exit $ac_status); } && {
42544          test -z "$ac_c_werror_flag" ||
42545          test ! -s conftest.err
42546        } && test -s conftest$ac_exeext &&
42547        $as_test_x conftest$ac_exeext; then
42548   ac_cv_func_localtime_r=yes
42549 else
42550   echo "$as_me: failed program was:" >&5
42551 sed 's/^/| /' conftest.$ac_ext >&5
42552
42553         ac_cv_func_localtime_r=no
42554 fi
42555
42556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42557       conftest$ac_exeext conftest.$ac_ext
42558 fi
42559 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42560 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42561 if test $ac_cv_func_localtime_r = yes; then
42562    cat >>confdefs.h <<\_ACEOF
42563 #define HAVE_LOCALTIME_R 1
42564 _ACEOF
42565
42566 fi
42567
42568 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42569 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42570 if test "${ac_cv_func_gmtime_r+set}" = set; then
42571   echo $ECHO_N "(cached) $ECHO_C" >&6
42572 else
42573   cat >conftest.$ac_ext <<_ACEOF
42574 /* confdefs.h.  */
42575 _ACEOF
42576 cat confdefs.h >>conftest.$ac_ext
42577 cat >>conftest.$ac_ext <<_ACEOF
42578 /* end confdefs.h.  */
42579 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42581 #define gmtime_r innocuous_gmtime_r
42582
42583 /* System header to define __stub macros and hopefully few prototypes,
42584     which can conflict with char gmtime_r (); below.
42585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42586     <limits.h> exists even on freestanding compilers.  */
42587
42588 #ifdef __STDC__
42589 # include <limits.h>
42590 #else
42591 # include <assert.h>
42592 #endif
42593
42594 #undef gmtime_r
42595
42596 /* Override any GCC internal prototype to avoid an error.
42597    Use char because int might match the return type of a GCC
42598    builtin and then its argument prototype would still apply.  */
42599 #ifdef __cplusplus
42600 extern "C"
42601 #endif
42602 char gmtime_r ();
42603 /* The GNU C library defines this for functions which it implements
42604     to always fail with ENOSYS.  Some functions are actually named
42605     something starting with __ and the normal name is an alias.  */
42606 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42607 choke me
42608 #endif
42609
42610 int
42611 main ()
42612 {
42613 return gmtime_r ();
42614   ;
42615   return 0;
42616 }
42617 _ACEOF
42618 rm -f conftest.$ac_objext conftest$ac_exeext
42619 if { (ac_try="$ac_link"
42620 case "(($ac_try" in
42621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42622   *) ac_try_echo=$ac_try;;
42623 esac
42624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42625   (eval "$ac_link") 2>conftest.er1
42626   ac_status=$?
42627   grep -v '^ *+' conftest.er1 >conftest.err
42628   rm -f conftest.er1
42629   cat conftest.err >&5
42630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42631   (exit $ac_status); } && {
42632          test -z "$ac_c_werror_flag" ||
42633          test ! -s conftest.err
42634        } && test -s conftest$ac_exeext &&
42635        $as_test_x conftest$ac_exeext; then
42636   ac_cv_func_gmtime_r=yes
42637 else
42638   echo "$as_me: failed program was:" >&5
42639 sed 's/^/| /' conftest.$ac_ext >&5
42640
42641         ac_cv_func_gmtime_r=no
42642 fi
42643
42644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42645       conftest$ac_exeext conftest.$ac_ext
42646 fi
42647 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42648 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42649 if test $ac_cv_func_gmtime_r = yes; then
42650    cat >>confdefs.h <<\_ACEOF
42651 #define HAVE_GMTIME_R 1
42652 _ACEOF
42653
42654 fi
42655
42656 { echo "$as_me:$LINENO: checking for readdir_r" >&5
42657 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
42658 if test "${ac_cv_func_readdir_r+set}" = set; then
42659   echo $ECHO_N "(cached) $ECHO_C" >&6
42660 else
42661   cat >conftest.$ac_ext <<_ACEOF
42662 /* confdefs.h.  */
42663 _ACEOF
42664 cat confdefs.h >>conftest.$ac_ext
42665 cat >>conftest.$ac_ext <<_ACEOF
42666 /* end confdefs.h.  */
42667 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
42668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42669 #define readdir_r innocuous_readdir_r
42670
42671 /* System header to define __stub macros and hopefully few prototypes,
42672     which can conflict with char readdir_r (); below.
42673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42674     <limits.h> exists even on freestanding compilers.  */
42675
42676 #ifdef __STDC__
42677 # include <limits.h>
42678 #else
42679 # include <assert.h>
42680 #endif
42681
42682 #undef readdir_r
42683
42684 /* Override any GCC internal prototype to avoid an error.
42685    Use char because int might match the return type of a GCC
42686    builtin and then its argument prototype would still apply.  */
42687 #ifdef __cplusplus
42688 extern "C"
42689 #endif
42690 char readdir_r ();
42691 /* The GNU C library defines this for functions which it implements
42692     to always fail with ENOSYS.  Some functions are actually named
42693     something starting with __ and the normal name is an alias.  */
42694 #if defined __stub_readdir_r || defined __stub___readdir_r
42695 choke me
42696 #endif
42697
42698 int
42699 main ()
42700 {
42701 return readdir_r ();
42702   ;
42703   return 0;
42704 }
42705 _ACEOF
42706 rm -f conftest.$ac_objext conftest$ac_exeext
42707 if { (ac_try="$ac_link"
42708 case "(($ac_try" in
42709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42710   *) ac_try_echo=$ac_try;;
42711 esac
42712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42713   (eval "$ac_link") 2>conftest.er1
42714   ac_status=$?
42715   grep -v '^ *+' conftest.er1 >conftest.err
42716   rm -f conftest.er1
42717   cat conftest.err >&5
42718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42719   (exit $ac_status); } && {
42720          test -z "$ac_c_werror_flag" ||
42721          test ! -s conftest.err
42722        } && test -s conftest$ac_exeext &&
42723        $as_test_x conftest$ac_exeext; then
42724   ac_cv_func_readdir_r=yes
42725 else
42726   echo "$as_me: failed program was:" >&5
42727 sed 's/^/| /' conftest.$ac_ext >&5
42728
42729         ac_cv_func_readdir_r=no
42730 fi
42731
42732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42733       conftest$ac_exeext conftest.$ac_ext
42734 fi
42735 { echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
42736 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6; }
42737 if test $ac_cv_func_readdir_r = yes; then
42738    cat >>confdefs.h <<\_ACEOF
42739 #define HAVE_READDIR_R 1
42740 _ACEOF
42741
42742 fi
42743
42744
42745
42746
42747     ac_ext=c
42748 ac_cpp='$CPP $CPPFLAGS'
42749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42752
42753     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42754 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42755
42756     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42757   echo $ECHO_N "(cached) $ECHO_C" >&6
42758 else
42759
42760
42761 ################################################################
42762
42763 ac_cv_func_which_gethostbyname_r=unknown
42764
42765 #
42766 # ONE ARGUMENT (sanity check)
42767 #
42768
42769 # This should fail, as there is no variant of gethostbyname_r() that takes
42770 # a single argument. If it actually compiles, then we can assume that
42771 # netdb.h is not declaring the function, and the compiler is thereby
42772 # assuming an implicit prototype. In which case, we're out of luck.
42773 #
42774 cat >conftest.$ac_ext <<_ACEOF
42775 /* confdefs.h.  */
42776 _ACEOF
42777 cat confdefs.h >>conftest.$ac_ext
42778 cat >>conftest.$ac_ext <<_ACEOF
42779 /* end confdefs.h.  */
42780 #include <netdb.h>
42781 int
42782 main ()
42783 {
42784
42785             char *name = "www.gnu.org";
42786             (void)gethostbyname_r(name) /* ; */
42787
42788   ;
42789   return 0;
42790 }
42791 _ACEOF
42792 rm -f conftest.$ac_objext
42793 if { (ac_try="$ac_compile"
42794 case "(($ac_try" in
42795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42796   *) ac_try_echo=$ac_try;;
42797 esac
42798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42799   (eval "$ac_compile") 2>conftest.er1
42800   ac_status=$?
42801   grep -v '^ *+' conftest.er1 >conftest.err
42802   rm -f conftest.er1
42803   cat conftest.err >&5
42804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42805   (exit $ac_status); } && {
42806          test -z "$ac_c_werror_flag" ||
42807          test ! -s conftest.err
42808        } && test -s conftest.$ac_objext; then
42809   ac_cv_func_which_gethostbyname_r=no
42810 else
42811   echo "$as_me: failed program was:" >&5
42812 sed 's/^/| /' conftest.$ac_ext >&5
42813
42814
42815 fi
42816
42817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42818
42819 #
42820 # SIX ARGUMENTS
42821 # (e.g. Linux)
42822 #
42823
42824 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42825
42826 cat >conftest.$ac_ext <<_ACEOF
42827 /* confdefs.h.  */
42828 _ACEOF
42829 cat confdefs.h >>conftest.$ac_ext
42830 cat >>conftest.$ac_ext <<_ACEOF
42831 /* end confdefs.h.  */
42832 #include <netdb.h>
42833 int
42834 main ()
42835 {
42836
42837             char *name = "www.gnu.org";
42838             struct hostent ret, *retp;
42839             char buf[1024];
42840             int buflen = 1024;
42841             int my_h_errno;
42842             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42843
42844   ;
42845   return 0;
42846 }
42847 _ACEOF
42848 rm -f conftest.$ac_objext
42849 if { (ac_try="$ac_compile"
42850 case "(($ac_try" in
42851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42852   *) ac_try_echo=$ac_try;;
42853 esac
42854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42855   (eval "$ac_compile") 2>conftest.er1
42856   ac_status=$?
42857   grep -v '^ *+' conftest.er1 >conftest.err
42858   rm -f conftest.er1
42859   cat conftest.err >&5
42860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42861   (exit $ac_status); } && {
42862          test -z "$ac_c_werror_flag" ||
42863          test ! -s conftest.err
42864        } && test -s conftest.$ac_objext; then
42865   ac_cv_func_which_gethostbyname_r=six
42866 else
42867   echo "$as_me: failed program was:" >&5
42868 sed 's/^/| /' conftest.$ac_ext >&5
42869
42870
42871 fi
42872
42873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42874
42875 fi
42876
42877 #
42878 # FIVE ARGUMENTS
42879 # (e.g. Solaris)
42880 #
42881
42882 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42883
42884 cat >conftest.$ac_ext <<_ACEOF
42885 /* confdefs.h.  */
42886 _ACEOF
42887 cat confdefs.h >>conftest.$ac_ext
42888 cat >>conftest.$ac_ext <<_ACEOF
42889 /* end confdefs.h.  */
42890 #include <netdb.h>
42891 int
42892 main ()
42893 {
42894
42895             char *name = "www.gnu.org";
42896             struct hostent ret;
42897             char buf[1024];
42898             int buflen = 1024;
42899             int my_h_errno;
42900             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
42901
42902   ;
42903   return 0;
42904 }
42905 _ACEOF
42906 rm -f conftest.$ac_objext
42907 if { (ac_try="$ac_compile"
42908 case "(($ac_try" in
42909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42910   *) ac_try_echo=$ac_try;;
42911 esac
42912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42913   (eval "$ac_compile") 2>conftest.er1
42914   ac_status=$?
42915   grep -v '^ *+' conftest.er1 >conftest.err
42916   rm -f conftest.er1
42917   cat conftest.err >&5
42918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42919   (exit $ac_status); } && {
42920          test -z "$ac_c_werror_flag" ||
42921          test ! -s conftest.err
42922        } && test -s conftest.$ac_objext; then
42923   ac_cv_func_which_gethostbyname_r=five
42924 else
42925   echo "$as_me: failed program was:" >&5
42926 sed 's/^/| /' conftest.$ac_ext >&5
42927
42928
42929 fi
42930
42931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42932
42933 fi
42934
42935 #
42936 # THREE ARGUMENTS
42937 # (e.g. AIX, HP-UX, Tru64)
42938 #
42939
42940 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42941
42942 cat >conftest.$ac_ext <<_ACEOF
42943 /* confdefs.h.  */
42944 _ACEOF
42945 cat confdefs.h >>conftest.$ac_ext
42946 cat >>conftest.$ac_ext <<_ACEOF
42947 /* end confdefs.h.  */
42948 #include <netdb.h>
42949 int
42950 main ()
42951 {
42952
42953             char *name = "www.gnu.org";
42954             struct hostent ret;
42955             struct hostent_data data;
42956             (void)gethostbyname_r(name, &ret, &data) /* ; */
42957
42958   ;
42959   return 0;
42960 }
42961 _ACEOF
42962 rm -f conftest.$ac_objext
42963 if { (ac_try="$ac_compile"
42964 case "(($ac_try" in
42965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42966   *) ac_try_echo=$ac_try;;
42967 esac
42968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42969   (eval "$ac_compile") 2>conftest.er1
42970   ac_status=$?
42971   grep -v '^ *+' conftest.er1 >conftest.err
42972   rm -f conftest.er1
42973   cat conftest.err >&5
42974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42975   (exit $ac_status); } && {
42976          test -z "$ac_c_werror_flag" ||
42977          test ! -s conftest.err
42978        } && test -s conftest.$ac_objext; then
42979   ac_cv_func_which_gethostbyname_r=three
42980 else
42981   echo "$as_me: failed program was:" >&5
42982 sed 's/^/| /' conftest.$ac_ext >&5
42983
42984
42985 fi
42986
42987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42988
42989 fi
42990
42991 ################################################################
42992
42993
42994 fi
42995
42996 case "$ac_cv_func_which_gethostbyname_r" in
42997     three)
42998     { echo "$as_me:$LINENO: result: three" >&5
42999 echo "${ECHO_T}three" >&6; }
43000     cat >>confdefs.h <<\_ACEOF
43001 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
43002 _ACEOF
43003
43004     ;;
43005
43006     five)
43007     { echo "$as_me:$LINENO: result: five" >&5
43008 echo "${ECHO_T}five" >&6; }
43009     cat >>confdefs.h <<\_ACEOF
43010 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
43011 _ACEOF
43012
43013     ;;
43014
43015     six)
43016     { echo "$as_me:$LINENO: result: six" >&5
43017 echo "${ECHO_T}six" >&6; }
43018     cat >>confdefs.h <<\_ACEOF
43019 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
43020 _ACEOF
43021
43022     ;;
43023
43024     no)
43025     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
43026 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
43027     ;;
43028
43029     unknown)
43030     { echo "$as_me:$LINENO: result: can't tell" >&5
43031 echo "${ECHO_T}can't tell" >&6; }
43032     ;;
43033
43034     *)
43035     { { echo "$as_me:$LINENO: error: internal error" >&5
43036 echo "$as_me: error: internal error" >&2;}
43037    { (exit 1); exit 1; }; }
43038     ;;
43039 esac
43040
43041 ac_ext=c
43042 ac_cpp='$CPP $CPPFLAGS'
43043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43046
43047
43048
43049       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
43050               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
43051           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
43052 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
43053 if test "${ac_cv_func_gethostbyname+set}" = set; then
43054   echo $ECHO_N "(cached) $ECHO_C" >&6
43055 else
43056   cat >conftest.$ac_ext <<_ACEOF
43057 /* confdefs.h.  */
43058 _ACEOF
43059 cat confdefs.h >>conftest.$ac_ext
43060 cat >>conftest.$ac_ext <<_ACEOF
43061 /* end confdefs.h.  */
43062 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
43063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43064 #define gethostbyname innocuous_gethostbyname
43065
43066 /* System header to define __stub macros and hopefully few prototypes,
43067     which can conflict with char gethostbyname (); below.
43068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43069     <limits.h> exists even on freestanding compilers.  */
43070
43071 #ifdef __STDC__
43072 # include <limits.h>
43073 #else
43074 # include <assert.h>
43075 #endif
43076
43077 #undef gethostbyname
43078
43079 /* Override any GCC internal prototype to avoid an error.
43080    Use char because int might match the return type of a GCC
43081    builtin and then its argument prototype would still apply.  */
43082 #ifdef __cplusplus
43083 extern "C"
43084 #endif
43085 char gethostbyname ();
43086 /* The GNU C library defines this for functions which it implements
43087     to always fail with ENOSYS.  Some functions are actually named
43088     something starting with __ and the normal name is an alias.  */
43089 #if defined __stub_gethostbyname || defined __stub___gethostbyname
43090 choke me
43091 #endif
43092
43093 int
43094 main ()
43095 {
43096 return gethostbyname ();
43097   ;
43098   return 0;
43099 }
43100 _ACEOF
43101 rm -f conftest.$ac_objext conftest$ac_exeext
43102 if { (ac_try="$ac_link"
43103 case "(($ac_try" in
43104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43105   *) ac_try_echo=$ac_try;;
43106 esac
43107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43108   (eval "$ac_link") 2>conftest.er1
43109   ac_status=$?
43110   grep -v '^ *+' conftest.er1 >conftest.err
43111   rm -f conftest.er1
43112   cat conftest.err >&5
43113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43114   (exit $ac_status); } && {
43115          test -z "$ac_c_werror_flag" ||
43116          test ! -s conftest.err
43117        } && test -s conftest$ac_exeext &&
43118        $as_test_x conftest$ac_exeext; then
43119   ac_cv_func_gethostbyname=yes
43120 else
43121   echo "$as_me: failed program was:" >&5
43122 sed 's/^/| /' conftest.$ac_ext >&5
43123
43124         ac_cv_func_gethostbyname=no
43125 fi
43126
43127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43128       conftest$ac_exeext conftest.$ac_ext
43129 fi
43130 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
43131 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
43132 if test $ac_cv_func_gethostbyname = yes; then
43133    cat >>confdefs.h <<\_ACEOF
43134 #define HAVE_GETHOSTBYNAME 1
43135 _ACEOF
43136
43137 fi
43138
43139       fi
43140
43141 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
43142 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
43143 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
43144   echo $ECHO_N "(cached) $ECHO_C" >&6
43145 else
43146
43147                 ac_ext=cpp
43148 ac_cpp='$CXXCPP $CPPFLAGS'
43149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43152
43153
43154         cat >conftest.$ac_ext <<_ACEOF
43155 /* confdefs.h.  */
43156 _ACEOF
43157 cat confdefs.h >>conftest.$ac_ext
43158 cat >>conftest.$ac_ext <<_ACEOF
43159 /* end confdefs.h.  */
43160 #include <netdb.h>
43161 int
43162 main ()
43163 {
43164
43165                 char *name;
43166                 char *proto;
43167                 struct servent *se, *res;
43168                 char buffer[2048];
43169                 int buflen = 2048;
43170                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
43171
43172   ;
43173   return 0;
43174 }
43175 _ACEOF
43176 rm -f conftest.$ac_objext
43177 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
43184   ac_status=$?
43185   grep -v '^ *+' conftest.er1 >conftest.err
43186   rm -f conftest.er1
43187   cat conftest.err >&5
43188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43189   (exit $ac_status); } && {
43190          test -z "$ac_cxx_werror_flag" ||
43191          test ! -s conftest.err
43192        } && test -s conftest.$ac_objext; then
43193   ac_cv_func_which_getservbyname_r=six
43194 else
43195   echo "$as_me: failed program was:" >&5
43196 sed 's/^/| /' conftest.$ac_ext >&5
43197
43198
43199                 cat >conftest.$ac_ext <<_ACEOF
43200 /* confdefs.h.  */
43201 _ACEOF
43202 cat confdefs.h >>conftest.$ac_ext
43203 cat >>conftest.$ac_ext <<_ACEOF
43204 /* end confdefs.h.  */
43205 #include <netdb.h>
43206 int
43207 main ()
43208 {
43209
43210                         char *name;
43211                         char *proto;
43212                         struct servent *se;
43213                         char buffer[2048];
43214                         int buflen = 2048;
43215                         (void) getservbyname_r(name, proto, se, buffer, buflen)
43216
43217   ;
43218   return 0;
43219 }
43220 _ACEOF
43221 rm -f conftest.$ac_objext
43222 if { (ac_try="$ac_compile"
43223 case "(($ac_try" in
43224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43225   *) ac_try_echo=$ac_try;;
43226 esac
43227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43228   (eval "$ac_compile") 2>conftest.er1
43229   ac_status=$?
43230   grep -v '^ *+' conftest.er1 >conftest.err
43231   rm -f conftest.er1
43232   cat conftest.err >&5
43233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43234   (exit $ac_status); } && {
43235          test -z "$ac_cxx_werror_flag" ||
43236          test ! -s conftest.err
43237        } && test -s conftest.$ac_objext; then
43238   ac_cv_func_which_getservbyname_r=five
43239 else
43240   echo "$as_me: failed program was:" >&5
43241 sed 's/^/| /' conftest.$ac_ext >&5
43242
43243
43244                         cat >conftest.$ac_ext <<_ACEOF
43245 /* confdefs.h.  */
43246 _ACEOF
43247 cat confdefs.h >>conftest.$ac_ext
43248 cat >>conftest.$ac_ext <<_ACEOF
43249 /* end confdefs.h.  */
43250 #include <netdb.h>
43251 int
43252 main ()
43253 {
43254
43255                                 char *name;
43256                                 char *proto;
43257                                 struct servent *se;
43258                                 struct servent_data data;
43259                                 (void) getservbyname_r(name, proto, se, &data);
43260
43261   ;
43262   return 0;
43263 }
43264 _ACEOF
43265 rm -f conftest.$ac_objext
43266 if { (ac_try="$ac_compile"
43267 case "(($ac_try" in
43268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43269   *) ac_try_echo=$ac_try;;
43270 esac
43271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43272   (eval "$ac_compile") 2>conftest.er1
43273   ac_status=$?
43274   grep -v '^ *+' conftest.er1 >conftest.err
43275   rm -f conftest.er1
43276   cat conftest.err >&5
43277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43278   (exit $ac_status); } && {
43279          test -z "$ac_cxx_werror_flag" ||
43280          test ! -s conftest.err
43281        } && test -s conftest.$ac_objext; then
43282   ac_cv_func_which_getservbyname_r=four
43283 else
43284   echo "$as_me: failed program was:" >&5
43285 sed 's/^/| /' conftest.$ac_ext >&5
43286
43287         ac_cv_func_which_getservbyname_r=no
43288
43289 fi
43290
43291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43292
43293
43294 fi
43295
43296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43297
43298
43299 fi
43300
43301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43302         ac_ext=c
43303 ac_cpp='$CPP $CPPFLAGS'
43304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43307
43308
43309
43310 fi
43311 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
43312 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
43313
43314 if test $ac_cv_func_which_getservbyname_r = six; then
43315   cat >>confdefs.h <<\_ACEOF
43316 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
43317 _ACEOF
43318
43319 elif test $ac_cv_func_which_getservbyname_r = five; then
43320   cat >>confdefs.h <<\_ACEOF
43321 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
43322 _ACEOF
43323
43324 elif test $ac_cv_func_which_getservbyname_r = four; then
43325   cat >>confdefs.h <<\_ACEOF
43326 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
43327 _ACEOF
43328
43329 fi
43330
43331
43332       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
43333               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
43334
43335 for ac_func in getservbyname
43336 do
43337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43341   echo $ECHO_N "(cached) $ECHO_C" >&6
43342 else
43343   cat >conftest.$ac_ext <<_ACEOF
43344 /* confdefs.h.  */
43345 _ACEOF
43346 cat confdefs.h >>conftest.$ac_ext
43347 cat >>conftest.$ac_ext <<_ACEOF
43348 /* end confdefs.h.  */
43349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43351 #define $ac_func innocuous_$ac_func
43352
43353 /* System header to define __stub macros and hopefully few prototypes,
43354     which can conflict with char $ac_func (); below.
43355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43356     <limits.h> exists even on freestanding compilers.  */
43357
43358 #ifdef __STDC__
43359 # include <limits.h>
43360 #else
43361 # include <assert.h>
43362 #endif
43363
43364 #undef $ac_func
43365
43366 /* Override any GCC internal prototype to avoid an error.
43367    Use char because int might match the return type of a GCC
43368    builtin and then its argument prototype would still apply.  */
43369 #ifdef __cplusplus
43370 extern "C"
43371 #endif
43372 char $ac_func ();
43373 /* The GNU C library defines this for functions which it implements
43374     to always fail with ENOSYS.  Some functions are actually named
43375     something starting with __ and the normal name is an alias.  */
43376 #if defined __stub_$ac_func || defined __stub___$ac_func
43377 choke me
43378 #endif
43379
43380 int
43381 main ()
43382 {
43383 return $ac_func ();
43384   ;
43385   return 0;
43386 }
43387 _ACEOF
43388 rm -f conftest.$ac_objext conftest$ac_exeext
43389 if { (ac_try="$ac_link"
43390 case "(($ac_try" in
43391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43392   *) ac_try_echo=$ac_try;;
43393 esac
43394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43395   (eval "$ac_link") 2>conftest.er1
43396   ac_status=$?
43397   grep -v '^ *+' conftest.er1 >conftest.err
43398   rm -f conftest.er1
43399   cat conftest.err >&5
43400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43401   (exit $ac_status); } && {
43402          test -z "$ac_c_werror_flag" ||
43403          test ! -s conftest.err
43404        } && test -s conftest$ac_exeext &&
43405        $as_test_x conftest$ac_exeext; then
43406   eval "$as_ac_var=yes"
43407 else
43408   echo "$as_me: failed program was:" >&5
43409 sed 's/^/| /' conftest.$ac_ext >&5
43410
43411         eval "$as_ac_var=no"
43412 fi
43413
43414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43415       conftest$ac_exeext conftest.$ac_ext
43416 fi
43417 ac_res=`eval echo '${'$as_ac_var'}'`
43418                { echo "$as_me:$LINENO: result: $ac_res" >&5
43419 echo "${ECHO_T}$ac_res" >&6; }
43420 if test `eval echo '${'$as_ac_var'}'` = yes; then
43421   cat >>confdefs.h <<_ACEOF
43422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43423 _ACEOF
43424   cat >>confdefs.h <<\_ACEOF
43425 #define HAVE_GETSERVBYNAME 1
43426 _ACEOF
43427
43428 fi
43429 done
43430
43431       fi
43432
43433 if test "$wxUSE_THREADS" = "yes"; then
43434   cat >>confdefs.h <<\_ACEOF
43435 #define wxUSE_THREADS 1
43436 _ACEOF
43437
43438
43439   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
43440 else
43441       if test "$wx_cv_func_strtok_r" = "yes"; then
43442     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
43443 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
43444     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
43445         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
43446         { echo "$as_me:$LINENO: result: yes" >&5
43447 echo "${ECHO_T}yes" >&6; }
43448     else
43449         { echo "$as_me:$LINENO: result: no" >&5
43450 echo "${ECHO_T}no" >&6; }
43451     fi
43452   fi
43453 fi
43454
43455 if test "$WXGTK20" = 1 ; then
43456   cat >>confdefs.h <<_ACEOF
43457 #define __WXGTK20__ $WXGTK20
43458 _ACEOF
43459
43460   WXGTK12=1
43461 fi
43462
43463 if test "$WXGTK12" = 1 ; then
43464   cat >>confdefs.h <<_ACEOF
43465 #define __WXGTK12__ $WXGTK12
43466 _ACEOF
43467
43468 fi
43469
43470 if test "$WXGTK127" = 1 ; then
43471   cat >>confdefs.h <<_ACEOF
43472 #define __WXGTK127__ $WXGTK127
43473 _ACEOF
43474
43475 fi
43476
43477 if test "$WXGPE" = 1 ; then
43478   cat >>confdefs.h <<_ACEOF
43479 #define __WXGPE__ $WXGPE
43480 _ACEOF
43481
43482 fi
43483
43484 DEBUG_CFLAGS=
43485 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
43486     DEBUG_CFLAGS="-g"
43487     wxUSE_OPTIMISE=no
43488 fi
43489
43490 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
43491     wxUSE_DEBUG_INFO=yes
43492     if test "$GCC" = yes; then
43493         DEBUG_CFLAGS="-ggdb"
43494     fi
43495 fi
43496
43497 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
43498     cat >>confdefs.h <<\_ACEOF
43499 #define WXDEBUG 1
43500 _ACEOF
43501
43502     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
43503 else
43504     if test "$wxUSE_GTK" = 1 ; then
43505         if test "x$wxGTK_VERSION" = "x1" ; then
43506             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
43507         fi
43508     fi
43509 fi
43510
43511 if test "$wxUSE_MEM_TRACING" = "yes" ; then
43512     cat >>confdefs.h <<\_ACEOF
43513 #define wxUSE_MEMORY_TRACING 1
43514 _ACEOF
43515
43516     cat >>confdefs.h <<\_ACEOF
43517 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
43518 _ACEOF
43519
43520     cat >>confdefs.h <<\_ACEOF
43521 #define wxUSE_DEBUG_NEW_ALWAYS 1
43522 _ACEOF
43523
43524     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
43525 fi
43526
43527 if test "$wxUSE_DMALLOC" = "yes" ; then
43528     DMALLOC_LIBS="-ldmallocthcxx"
43529 fi
43530
43531 PROFILE_FLAGS=
43532 if test "$wxUSE_PROFILE" = "yes" ; then
43533     PROFILE_FLAGS=" -pg"
43534 fi
43535
43536 if test "$GCC" = "yes" ; then
43537     if test "$wxUSE_NO_RTTI" = "yes" ; then
43538         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
43539     fi
43540     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43541         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
43542     fi
43543     if test "$wxUSE_PERMISSIVE" = "yes" ; then
43544         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
43545     fi
43546
43547                                                 case "${host}" in
43548       powerpc*-*-aix* )
43549         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
43550         ;;
43551       *-hppa* )
43552         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
43553         ;;
43554     esac
43555 fi
43556
43557 OPTIMISE_CFLAGS=
43558 if test "$wxUSE_OPTIMISE" = "no" ; then
43559     if test "$GCC" = yes ; then
43560                         OPTIMISE_CFLAGS="-O0"
43561     fi
43562 else
43563     if test "$GCC" = yes ; then
43564         case "${host}" in
43565             *-pc-os2_emx | *-pc-os2-emx )
43566                                                 OPTIMISE_CFLAGS="-O2"
43567             ;;
43568             *)
43569                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
43570             ;;
43571         esac
43572     else
43573         OPTIMISE_CFLAGS="-O"
43574     fi
43575 fi
43576
43577
43578 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
43579     cat >>confdefs.h <<\_ACEOF
43580 #define WXWIN_COMPATIBILITY_2_6 1
43581 _ACEOF
43582
43583
43584     WXWIN_COMPATIBILITY_2_8="yes"
43585 fi
43586
43587 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43588     cat >>confdefs.h <<\_ACEOF
43589 #define WXWIN_COMPATIBILITY_2_8 1
43590 _ACEOF
43591
43592 fi
43593
43594
43595 if test "$wxUSE_GUI" = "yes"; then
43596     cat >>confdefs.h <<\_ACEOF
43597 #define wxUSE_GUI 1
43598 _ACEOF
43599
43600
43601                                             fi
43602
43603
43604 if test "$wxUSE_UNIX" = "yes"; then
43605   cat >>confdefs.h <<\_ACEOF
43606 #define wxUSE_UNIX 1
43607 _ACEOF
43608
43609 fi
43610
43611
43612 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43613
43614     HAVE_DL_FUNCS=0
43615     HAVE_SHL_FUNCS=0
43616     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43617         if test "$USE_DARWIN" = 1; then
43618                         HAVE_DL_FUNCS=1
43619         elif test "$USE_DOS" = 1; then
43620             HAVE_DL_FUNCS=0
43621         else
43622
43623 for ac_func in dlopen
43624 do
43625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43626 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43629   echo $ECHO_N "(cached) $ECHO_C" >&6
43630 else
43631   cat >conftest.$ac_ext <<_ACEOF
43632 /* confdefs.h.  */
43633 _ACEOF
43634 cat confdefs.h >>conftest.$ac_ext
43635 cat >>conftest.$ac_ext <<_ACEOF
43636 /* end confdefs.h.  */
43637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43639 #define $ac_func innocuous_$ac_func
43640
43641 /* System header to define __stub macros and hopefully few prototypes,
43642     which can conflict with char $ac_func (); below.
43643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43644     <limits.h> exists even on freestanding compilers.  */
43645
43646 #ifdef __STDC__
43647 # include <limits.h>
43648 #else
43649 # include <assert.h>
43650 #endif
43651
43652 #undef $ac_func
43653
43654 /* Override any GCC internal prototype to avoid an error.
43655    Use char because int might match the return type of a GCC
43656    builtin and then its argument prototype would still apply.  */
43657 #ifdef __cplusplus
43658 extern "C"
43659 #endif
43660 char $ac_func ();
43661 /* The GNU C library defines this for functions which it implements
43662     to always fail with ENOSYS.  Some functions are actually named
43663     something starting with __ and the normal name is an alias.  */
43664 #if defined __stub_$ac_func || defined __stub___$ac_func
43665 choke me
43666 #endif
43667
43668 int
43669 main ()
43670 {
43671 return $ac_func ();
43672   ;
43673   return 0;
43674 }
43675 _ACEOF
43676 rm -f conftest.$ac_objext conftest$ac_exeext
43677 if { (ac_try="$ac_link"
43678 case "(($ac_try" in
43679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43680   *) ac_try_echo=$ac_try;;
43681 esac
43682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43683   (eval "$ac_link") 2>conftest.er1
43684   ac_status=$?
43685   grep -v '^ *+' conftest.er1 >conftest.err
43686   rm -f conftest.er1
43687   cat conftest.err >&5
43688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43689   (exit $ac_status); } && {
43690          test -z "$ac_c_werror_flag" ||
43691          test ! -s conftest.err
43692        } && test -s conftest$ac_exeext &&
43693        $as_test_x conftest$ac_exeext; then
43694   eval "$as_ac_var=yes"
43695 else
43696   echo "$as_me: failed program was:" >&5
43697 sed 's/^/| /' conftest.$ac_ext >&5
43698
43699         eval "$as_ac_var=no"
43700 fi
43701
43702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43703       conftest$ac_exeext conftest.$ac_ext
43704 fi
43705 ac_res=`eval echo '${'$as_ac_var'}'`
43706                { echo "$as_me:$LINENO: result: $ac_res" >&5
43707 echo "${ECHO_T}$ac_res" >&6; }
43708 if test `eval echo '${'$as_ac_var'}'` = yes; then
43709   cat >>confdefs.h <<_ACEOF
43710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43711 _ACEOF
43712
43713                 cat >>confdefs.h <<\_ACEOF
43714 #define HAVE_DLOPEN 1
43715 _ACEOF
43716
43717                 HAVE_DL_FUNCS=1
43718
43719 else
43720
43721                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43722 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43723 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43724   echo $ECHO_N "(cached) $ECHO_C" >&6
43725 else
43726   ac_check_lib_save_LIBS=$LIBS
43727 LIBS="-ldl  $LIBS"
43728 cat >conftest.$ac_ext <<_ACEOF
43729 /* confdefs.h.  */
43730 _ACEOF
43731 cat confdefs.h >>conftest.$ac_ext
43732 cat >>conftest.$ac_ext <<_ACEOF
43733 /* end confdefs.h.  */
43734
43735 /* Override any GCC internal prototype to avoid an error.
43736    Use char because int might match the return type of a GCC
43737    builtin and then its argument prototype would still apply.  */
43738 #ifdef __cplusplus
43739 extern "C"
43740 #endif
43741 char dlopen ();
43742 int
43743 main ()
43744 {
43745 return dlopen ();
43746   ;
43747   return 0;
43748 }
43749 _ACEOF
43750 rm -f conftest.$ac_objext conftest$ac_exeext
43751 if { (ac_try="$ac_link"
43752 case "(($ac_try" in
43753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43754   *) ac_try_echo=$ac_try;;
43755 esac
43756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43757   (eval "$ac_link") 2>conftest.er1
43758   ac_status=$?
43759   grep -v '^ *+' conftest.er1 >conftest.err
43760   rm -f conftest.er1
43761   cat conftest.err >&5
43762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43763   (exit $ac_status); } && {
43764          test -z "$ac_c_werror_flag" ||
43765          test ! -s conftest.err
43766        } && test -s conftest$ac_exeext &&
43767        $as_test_x conftest$ac_exeext; then
43768   ac_cv_lib_dl_dlopen=yes
43769 else
43770   echo "$as_me: failed program was:" >&5
43771 sed 's/^/| /' conftest.$ac_ext >&5
43772
43773         ac_cv_lib_dl_dlopen=no
43774 fi
43775
43776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43777       conftest$ac_exeext conftest.$ac_ext
43778 LIBS=$ac_check_lib_save_LIBS
43779 fi
43780 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43781 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43782 if test $ac_cv_lib_dl_dlopen = yes; then
43783
43784                                 cat >>confdefs.h <<\_ACEOF
43785 #define HAVE_DLOPEN 1
43786 _ACEOF
43787
43788                                 HAVE_DL_FUNCS=1
43789                                 DL_LINK=" -ldl$DL_LINK"
43790
43791 else
43792
43793
43794 for ac_func in shl_load
43795 do
43796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43797 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43800   echo $ECHO_N "(cached) $ECHO_C" >&6
43801 else
43802   cat >conftest.$ac_ext <<_ACEOF
43803 /* confdefs.h.  */
43804 _ACEOF
43805 cat confdefs.h >>conftest.$ac_ext
43806 cat >>conftest.$ac_ext <<_ACEOF
43807 /* end confdefs.h.  */
43808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43810 #define $ac_func innocuous_$ac_func
43811
43812 /* System header to define __stub macros and hopefully few prototypes,
43813     which can conflict with char $ac_func (); below.
43814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43815     <limits.h> exists even on freestanding compilers.  */
43816
43817 #ifdef __STDC__
43818 # include <limits.h>
43819 #else
43820 # include <assert.h>
43821 #endif
43822
43823 #undef $ac_func
43824
43825 /* Override any GCC internal prototype to avoid an error.
43826    Use char because int might match the return type of a GCC
43827    builtin and then its argument prototype would still apply.  */
43828 #ifdef __cplusplus
43829 extern "C"
43830 #endif
43831 char $ac_func ();
43832 /* The GNU C library defines this for functions which it implements
43833     to always fail with ENOSYS.  Some functions are actually named
43834     something starting with __ and the normal name is an alias.  */
43835 #if defined __stub_$ac_func || defined __stub___$ac_func
43836 choke me
43837 #endif
43838
43839 int
43840 main ()
43841 {
43842 return $ac_func ();
43843   ;
43844   return 0;
43845 }
43846 _ACEOF
43847 rm -f conftest.$ac_objext conftest$ac_exeext
43848 if { (ac_try="$ac_link"
43849 case "(($ac_try" in
43850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43851   *) ac_try_echo=$ac_try;;
43852 esac
43853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43854   (eval "$ac_link") 2>conftest.er1
43855   ac_status=$?
43856   grep -v '^ *+' conftest.er1 >conftest.err
43857   rm -f conftest.er1
43858   cat conftest.err >&5
43859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43860   (exit $ac_status); } && {
43861          test -z "$ac_c_werror_flag" ||
43862          test ! -s conftest.err
43863        } && test -s conftest$ac_exeext &&
43864        $as_test_x conftest$ac_exeext; then
43865   eval "$as_ac_var=yes"
43866 else
43867   echo "$as_me: failed program was:" >&5
43868 sed 's/^/| /' conftest.$ac_ext >&5
43869
43870         eval "$as_ac_var=no"
43871 fi
43872
43873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43874       conftest$ac_exeext conftest.$ac_ext
43875 fi
43876 ac_res=`eval echo '${'$as_ac_var'}'`
43877                { echo "$as_me:$LINENO: result: $ac_res" >&5
43878 echo "${ECHO_T}$ac_res" >&6; }
43879 if test `eval echo '${'$as_ac_var'}'` = yes; then
43880   cat >>confdefs.h <<_ACEOF
43881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43882 _ACEOF
43883
43884                                                 cat >>confdefs.h <<\_ACEOF
43885 #define HAVE_SHL_LOAD 1
43886 _ACEOF
43887
43888                                                 HAVE_SHL_FUNCS=1
43889
43890 else
43891
43892                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
43893 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
43894 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
43895   echo $ECHO_N "(cached) $ECHO_C" >&6
43896 else
43897   ac_check_lib_save_LIBS=$LIBS
43898 LIBS="-lshl_load  $LIBS"
43899 cat >conftest.$ac_ext <<_ACEOF
43900 /* confdefs.h.  */
43901 _ACEOF
43902 cat confdefs.h >>conftest.$ac_ext
43903 cat >>conftest.$ac_ext <<_ACEOF
43904 /* end confdefs.h.  */
43905
43906 /* Override any GCC internal prototype to avoid an error.
43907    Use char because int might match the return type of a GCC
43908    builtin and then its argument prototype would still apply.  */
43909 #ifdef __cplusplus
43910 extern "C"
43911 #endif
43912 char dld ();
43913 int
43914 main ()
43915 {
43916 return dld ();
43917   ;
43918   return 0;
43919 }
43920 _ACEOF
43921 rm -f conftest.$ac_objext conftest$ac_exeext
43922 if { (ac_try="$ac_link"
43923 case "(($ac_try" in
43924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43925   *) ac_try_echo=$ac_try;;
43926 esac
43927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43928   (eval "$ac_link") 2>conftest.er1
43929   ac_status=$?
43930   grep -v '^ *+' conftest.er1 >conftest.err
43931   rm -f conftest.er1
43932   cat conftest.err >&5
43933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43934   (exit $ac_status); } && {
43935          test -z "$ac_c_werror_flag" ||
43936          test ! -s conftest.err
43937        } && test -s conftest$ac_exeext &&
43938        $as_test_x conftest$ac_exeext; then
43939   ac_cv_lib_shl_load_dld=yes
43940 else
43941   echo "$as_me: failed program was:" >&5
43942 sed 's/^/| /' conftest.$ac_ext >&5
43943
43944         ac_cv_lib_shl_load_dld=no
43945 fi
43946
43947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43948       conftest$ac_exeext conftest.$ac_ext
43949 LIBS=$ac_check_lib_save_LIBS
43950 fi
43951 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
43952 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
43953 if test $ac_cv_lib_shl_load_dld = yes; then
43954
43955                                                                 HAVE_SHL_FUNCS=1
43956                                                                 DL_LINK=" -ldld$DL_LINK"
43957
43958 fi
43959
43960
43961 fi
43962 done
43963
43964
43965 fi
43966
43967
43968 fi
43969 done
43970
43971
43972                 if test "$HAVE_DL_FUNCS" = 1; then
43973
43974 for ac_func in dlerror
43975 do
43976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43980   echo $ECHO_N "(cached) $ECHO_C" >&6
43981 else
43982   cat >conftest.$ac_ext <<_ACEOF
43983 /* confdefs.h.  */
43984 _ACEOF
43985 cat confdefs.h >>conftest.$ac_ext
43986 cat >>conftest.$ac_ext <<_ACEOF
43987 /* end confdefs.h.  */
43988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43990 #define $ac_func innocuous_$ac_func
43991
43992 /* System header to define __stub macros and hopefully few prototypes,
43993     which can conflict with char $ac_func (); below.
43994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43995     <limits.h> exists even on freestanding compilers.  */
43996
43997 #ifdef __STDC__
43998 # include <limits.h>
43999 #else
44000 # include <assert.h>
44001 #endif
44002
44003 #undef $ac_func
44004
44005 /* Override any GCC internal prototype to avoid an error.
44006    Use char because int might match the return type of a GCC
44007    builtin and then its argument prototype would still apply.  */
44008 #ifdef __cplusplus
44009 extern "C"
44010 #endif
44011 char $ac_func ();
44012 /* The GNU C library defines this for functions which it implements
44013     to always fail with ENOSYS.  Some functions are actually named
44014     something starting with __ and the normal name is an alias.  */
44015 #if defined __stub_$ac_func || defined __stub___$ac_func
44016 choke me
44017 #endif
44018
44019 int
44020 main ()
44021 {
44022 return $ac_func ();
44023   ;
44024   return 0;
44025 }
44026 _ACEOF
44027 rm -f conftest.$ac_objext conftest$ac_exeext
44028 if { (ac_try="$ac_link"
44029 case "(($ac_try" in
44030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44031   *) ac_try_echo=$ac_try;;
44032 esac
44033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44034   (eval "$ac_link") 2>conftest.er1
44035   ac_status=$?
44036   grep -v '^ *+' conftest.er1 >conftest.err
44037   rm -f conftest.er1
44038   cat conftest.err >&5
44039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44040   (exit $ac_status); } && {
44041          test -z "$ac_c_werror_flag" ||
44042          test ! -s conftest.err
44043        } && test -s conftest$ac_exeext &&
44044        $as_test_x conftest$ac_exeext; then
44045   eval "$as_ac_var=yes"
44046 else
44047   echo "$as_me: failed program was:" >&5
44048 sed 's/^/| /' conftest.$ac_ext >&5
44049
44050         eval "$as_ac_var=no"
44051 fi
44052
44053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44054       conftest$ac_exeext conftest.$ac_ext
44055 fi
44056 ac_res=`eval echo '${'$as_ac_var'}'`
44057                { echo "$as_me:$LINENO: result: $ac_res" >&5
44058 echo "${ECHO_T}$ac_res" >&6; }
44059 if test `eval echo '${'$as_ac_var'}'` = yes; then
44060   cat >>confdefs.h <<_ACEOF
44061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44062 _ACEOF
44063  cat >>confdefs.h <<\_ACEOF
44064 #define HAVE_DLERROR 1
44065 _ACEOF
44066
44067 else
44068
44069                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
44070 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
44071 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
44072   echo $ECHO_N "(cached) $ECHO_C" >&6
44073 else
44074   ac_check_lib_save_LIBS=$LIBS
44075 LIBS="-ldl  $LIBS"
44076 cat >conftest.$ac_ext <<_ACEOF
44077 /* confdefs.h.  */
44078 _ACEOF
44079 cat confdefs.h >>conftest.$ac_ext
44080 cat >>conftest.$ac_ext <<_ACEOF
44081 /* end confdefs.h.  */
44082
44083 /* Override any GCC internal prototype to avoid an error.
44084    Use char because int might match the return type of a GCC
44085    builtin and then its argument prototype would still apply.  */
44086 #ifdef __cplusplus
44087 extern "C"
44088 #endif
44089 char dlerror ();
44090 int
44091 main ()
44092 {
44093 return dlerror ();
44094   ;
44095   return 0;
44096 }
44097 _ACEOF
44098 rm -f conftest.$ac_objext conftest$ac_exeext
44099 if { (ac_try="$ac_link"
44100 case "(($ac_try" in
44101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44102   *) ac_try_echo=$ac_try;;
44103 esac
44104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44105   (eval "$ac_link") 2>conftest.er1
44106   ac_status=$?
44107   grep -v '^ *+' conftest.er1 >conftest.err
44108   rm -f conftest.er1
44109   cat conftest.err >&5
44110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44111   (exit $ac_status); } && {
44112          test -z "$ac_c_werror_flag" ||
44113          test ! -s conftest.err
44114        } && test -s conftest$ac_exeext &&
44115        $as_test_x conftest$ac_exeext; then
44116   ac_cv_lib_dl_dlerror=yes
44117 else
44118   echo "$as_me: failed program was:" >&5
44119 sed 's/^/| /' conftest.$ac_ext >&5
44120
44121         ac_cv_lib_dl_dlerror=no
44122 fi
44123
44124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44125       conftest$ac_exeext conftest.$ac_ext
44126 LIBS=$ac_check_lib_save_LIBS
44127 fi
44128 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
44129 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
44130 if test $ac_cv_lib_dl_dlerror = yes; then
44131   cat >>confdefs.h <<\_ACEOF
44132 #define HAVE_DLERROR 1
44133 _ACEOF
44134
44135 fi
44136
44137
44138
44139 fi
44140 done
44141
44142         fi
44143         fi
44144
44145         if test "$HAVE_DL_FUNCS" = 0; then
44146             if test "$HAVE_SHL_FUNCS" = 0; then
44147               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
44148                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
44149 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
44150                   wxUSE_DYNAMIC_LOADER=no
44151                   wxUSE_DYNLIB_CLASS=no
44152               else
44153                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
44154 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
44155               fi
44156             fi
44157         fi
44158     fi
44159 fi
44160
44161 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
44162     cat >>confdefs.h <<\_ACEOF
44163 #define wxUSE_DYNAMIC_LOADER 1
44164 _ACEOF
44165
44166 fi
44167 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44168     cat >>confdefs.h <<\_ACEOF
44169 #define wxUSE_DYNLIB_CLASS 1
44170 _ACEOF
44171
44172 fi
44173
44174
44175
44176 if test "$wxUSE_PLUGINS" = "yes" ; then
44177     if test "$wxUSE_SHARED" = "no" ; then
44178         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
44179 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
44180         wxUSE_PLUGINS=no
44181     fi
44182     if test "$wxUSE_MONOLITHIC" = "yes" ; then
44183         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
44184 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
44185         wxUSE_PLUGINS=no
44186     fi
44187     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
44188         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
44189 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
44190         wxUSE_PLUGINS=no
44191     fi
44192     if test "$wxUSE_PLUGINS" = "yes" ; then
44193         cat >>confdefs.h <<\_ACEOF
44194 #define wxUSE_PLUGINS 1
44195 _ACEOF
44196
44197     fi
44198 fi
44199
44200
44201 if test "$wxUSE_STL" = "yes"; then
44202   cat >>confdefs.h <<\_ACEOF
44203 #define wxUSE_STL 1
44204 _ACEOF
44205
44206 fi
44207
44208 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44209   cat >>confdefs.h <<\_ACEOF
44210 #define wxUSE_EXTENDED_RTTI 1
44211 _ACEOF
44212
44213 fi
44214
44215 if test "$wxUSE_APPLE_IEEE" = "yes"; then
44216   cat >>confdefs.h <<\_ACEOF
44217 #define wxUSE_APPLE_IEEE 1
44218 _ACEOF
44219
44220 fi
44221
44222 if test "$wxUSE_TIMER" = "yes"; then
44223   cat >>confdefs.h <<\_ACEOF
44224 #define wxUSE_TIMER 1
44225 _ACEOF
44226
44227 fi
44228
44229 if test "$USE_UNIX" = "1" ; then
44230         if test "$wxUSE_MGL" != 1; then
44231                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44232 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
44233 if test "${ac_cv_header_sys_soundcard+set}" = set; then
44234   echo $ECHO_N "(cached) $ECHO_C" >&6
44235 else
44236
44237             cat >conftest.$ac_ext <<_ACEOF
44238 /* confdefs.h.  */
44239 _ACEOF
44240 cat confdefs.h >>conftest.$ac_ext
44241 cat >>conftest.$ac_ext <<_ACEOF
44242 /* end confdefs.h.  */
44243
44244                     #include <sys/ioctl.h>
44245                     #include <sys/soundcard.h>
44246
44247 int
44248 main ()
44249 {
44250
44251                     ioctl(0, SNDCTL_DSP_SPEED, 0);
44252
44253   ;
44254   return 0;
44255 }
44256 _ACEOF
44257 rm -f conftest.$ac_objext conftest$ac_exeext
44258 if { (ac_try="$ac_link"
44259 case "(($ac_try" in
44260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44261   *) ac_try_echo=$ac_try;;
44262 esac
44263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44264   (eval "$ac_link") 2>conftest.er1
44265   ac_status=$?
44266   grep -v '^ *+' conftest.er1 >conftest.err
44267   rm -f conftest.er1
44268   cat conftest.err >&5
44269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44270   (exit $ac_status); } && {
44271          test -z "$ac_c_werror_flag" ||
44272          test ! -s conftest.err
44273        } && test -s conftest$ac_exeext &&
44274        $as_test_x conftest$ac_exeext; then
44275   ac_cv_header_sys_soundcard=yes
44276 else
44277   echo "$as_me: failed program was:" >&5
44278 sed 's/^/| /' conftest.$ac_ext >&5
44279
44280
44281                     saveLibs="$LIBS"
44282                     LIBS="$saveLibs -lossaudio"
44283                     cat >conftest.$ac_ext <<_ACEOF
44284 /* confdefs.h.  */
44285 _ACEOF
44286 cat confdefs.h >>conftest.$ac_ext
44287 cat >>conftest.$ac_ext <<_ACEOF
44288 /* end confdefs.h.  */
44289
44290                             #include <sys/ioctl.h>
44291                             #include <sys/soundcard.h>
44292
44293 int
44294 main ()
44295 {
44296
44297                             ioctl(0, SNDCTL_DSP_SPEED, 0);
44298
44299   ;
44300   return 0;
44301 }
44302 _ACEOF
44303 rm -f conftest.$ac_objext conftest$ac_exeext
44304 if { (ac_try="$ac_link"
44305 case "(($ac_try" in
44306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44307   *) ac_try_echo=$ac_try;;
44308 esac
44309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44310   (eval "$ac_link") 2>conftest.er1
44311   ac_status=$?
44312   grep -v '^ *+' conftest.er1 >conftest.err
44313   rm -f conftest.er1
44314   cat conftest.err >&5
44315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44316   (exit $ac_status); } && {
44317          test -z "$ac_c_werror_flag" ||
44318          test ! -s conftest.err
44319        } && test -s conftest$ac_exeext &&
44320        $as_test_x conftest$ac_exeext; then
44321   ac_cv_header_sys_soundcard=yes
44322 else
44323   echo "$as_me: failed program was:" >&5
44324 sed 's/^/| /' conftest.$ac_ext >&5
44325
44326
44327                             LIBS="$saveLibs"
44328                             ac_cv_header_sys_soundcard=no
44329
44330
44331 fi
44332
44333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44334       conftest$ac_exeext conftest.$ac_ext
44335
44336
44337 fi
44338
44339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44340       conftest$ac_exeext conftest.$ac_ext
44341
44342 fi
44343 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44344 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
44345     fi
44346
44347     if test "$ac_cv_header_sys_soundcard" = "yes"; then
44348         cat >>confdefs.h <<\_ACEOF
44349 #define HAVE_SYS_SOUNDCARD_H 1
44350 _ACEOF
44351
44352     fi
44353 fi
44354
44355 WITH_PLUGIN_SDL=0
44356 if test "$wxUSE_SOUND" = "yes"; then
44357   if test "$USE_UNIX" = "1" ; then
44358     if test "$wxUSE_LIBSDL" != "no"; then
44359
44360 # Check whether --with-sdl-prefix was given.
44361 if test "${with_sdl_prefix+set}" = set; then
44362   withval=$with_sdl_prefix; sdl_prefix="$withval"
44363 else
44364   sdl_prefix=""
44365 fi
44366
44367
44368 # Check whether --with-sdl-exec-prefix was given.
44369 if test "${with_sdl_exec_prefix+set}" = set; then
44370   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
44371 else
44372   sdl_exec_prefix=""
44373 fi
44374
44375 # Check whether --enable-sdltest was given.
44376 if test "${enable_sdltest+set}" = set; then
44377   enableval=$enable_sdltest;
44378 else
44379   enable_sdltest=yes
44380 fi
44381
44382
44383   if test x$sdl_exec_prefix != x ; then
44384     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44385     if test x${SDL_CONFIG+set} != xset ; then
44386       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44387     fi
44388   fi
44389   if test x$sdl_prefix != x ; then
44390     sdl_args="$sdl_args --prefix=$sdl_prefix"
44391     if test x${SDL_CONFIG+set} != xset ; then
44392       SDL_CONFIG=$sdl_prefix/bin/sdl-config
44393     fi
44394   fi
44395
44396   if test "x$prefix" != xNONE; then
44397     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44398   fi
44399   # Extract the first word of "sdl-config", so it can be a program name with args.
44400 set dummy sdl-config; ac_word=$2
44401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44403 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44404   echo $ECHO_N "(cached) $ECHO_C" >&6
44405 else
44406   case $SDL_CONFIG in
44407   [\\/]* | ?:[\\/]*)
44408   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44409   ;;
44410   *)
44411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44412 for as_dir in $PATH
44413 do
44414   IFS=$as_save_IFS
44415   test -z "$as_dir" && as_dir=.
44416   for ac_exec_ext in '' $ac_executable_extensions; do
44417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44418     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44420     break 2
44421   fi
44422 done
44423 done
44424 IFS=$as_save_IFS
44425
44426   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44427   ;;
44428 esac
44429 fi
44430 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44431 if test -n "$SDL_CONFIG"; then
44432   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44433 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44434 else
44435   { echo "$as_me:$LINENO: result: no" >&5
44436 echo "${ECHO_T}no" >&6; }
44437 fi
44438
44439
44440   min_sdl_version=1.2.0
44441   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44442 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44443   no_sdl=""
44444   if test "$SDL_CONFIG" = "no" ; then
44445     no_sdl=yes
44446   else
44447     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44448     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44449
44450     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44451            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44452     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44453            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44454     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44455            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44456     if test "x$enable_sdltest" = "xyes" ; then
44457       ac_save_CFLAGS="$CFLAGS"
44458       ac_save_CXXFLAGS="$CXXFLAGS"
44459       ac_save_LIBS="$LIBS"
44460       CFLAGS="$CFLAGS $SDL_CFLAGS"
44461       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44462       LIBS="$LIBS $SDL_LIBS"
44463       rm -f conf.sdltest
44464       if test "$cross_compiling" = yes; then
44465   echo $ac_n "cross compiling; assumed OK... $ac_c"
44466 else
44467   cat >conftest.$ac_ext <<_ACEOF
44468 /* confdefs.h.  */
44469 _ACEOF
44470 cat confdefs.h >>conftest.$ac_ext
44471 cat >>conftest.$ac_ext <<_ACEOF
44472 /* end confdefs.h.  */
44473
44474 #include <stdio.h>
44475 #include <stdlib.h>
44476 #include <string.h>
44477 #include "SDL.h"
44478
44479 char*
44480 my_strdup (char *str)
44481 {
44482   char *new_str;
44483
44484   if (str)
44485     {
44486       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44487       strcpy (new_str, str);
44488     }
44489   else
44490     new_str = NULL;
44491
44492   return new_str;
44493 }
44494
44495 int main (int argc, char *argv[])
44496 {
44497   int major, minor, micro;
44498   char *tmp_version;
44499
44500   /* This hangs on some systems (?)
44501   system ("touch conf.sdltest");
44502   */
44503   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44504
44505   /* HP/UX 9 (%@#!) writes to sscanf strings */
44506   tmp_version = my_strdup("$min_sdl_version");
44507   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44508      printf("%s, bad version string\n", "$min_sdl_version");
44509      exit(1);
44510    }
44511
44512    if (($sdl_major_version > major) ||
44513       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44514       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44515     {
44516       return 0;
44517     }
44518   else
44519     {
44520       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44521       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44522       printf("*** best to upgrade to the required version.\n");
44523       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44524       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44525       printf("*** config.cache before re-running configure\n");
44526       return 1;
44527     }
44528 }
44529
44530
44531 _ACEOF
44532 rm -f conftest$ac_exeext
44533 if { (ac_try="$ac_link"
44534 case "(($ac_try" in
44535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44536   *) ac_try_echo=$ac_try;;
44537 esac
44538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44539   (eval "$ac_link") 2>&5
44540   ac_status=$?
44541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44543   { (case "(($ac_try" in
44544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44545   *) ac_try_echo=$ac_try;;
44546 esac
44547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44548   (eval "$ac_try") 2>&5
44549   ac_status=$?
44550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44551   (exit $ac_status); }; }; then
44552   :
44553 else
44554   echo "$as_me: program exited with status $ac_status" >&5
44555 echo "$as_me: failed program was:" >&5
44556 sed 's/^/| /' conftest.$ac_ext >&5
44557
44558 ( exit $ac_status )
44559 no_sdl=yes
44560 fi
44561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44562 fi
44563
44564
44565        CFLAGS="$ac_save_CFLAGS"
44566        CXXFLAGS="$ac_save_CXXFLAGS"
44567        LIBS="$ac_save_LIBS"
44568      fi
44569   fi
44570   if test "x$no_sdl" = x ; then
44571      { echo "$as_me:$LINENO: result: yes" >&5
44572 echo "${ECHO_T}yes" >&6; }
44573
44574                     EXTRALIBS_SDL="$SDL_LIBS"
44575                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44576                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44577                     cat >>confdefs.h <<\_ACEOF
44578 #define wxUSE_LIBSDL 1
44579 _ACEOF
44580
44581
44582   else
44583      { echo "$as_me:$LINENO: result: no" >&5
44584 echo "${ECHO_T}no" >&6; }
44585      if test "$SDL_CONFIG" = "no" ; then
44586        echo "*** The sdl-config script installed by SDL could not be found"
44587        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44588        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44589        echo "*** full path to sdl-config."
44590      else
44591        if test -f conf.sdltest ; then
44592         :
44593        else
44594           echo "*** Could not run SDL test program, checking why..."
44595           CFLAGS="$CFLAGS $SDL_CFLAGS"
44596           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44597           LIBS="$LIBS $SDL_LIBS"
44598           cat >conftest.$ac_ext <<_ACEOF
44599 /* confdefs.h.  */
44600 _ACEOF
44601 cat confdefs.h >>conftest.$ac_ext
44602 cat >>conftest.$ac_ext <<_ACEOF
44603 /* end confdefs.h.  */
44604
44605 #include <stdio.h>
44606 #include "SDL.h"
44607
44608 int main(int argc, char *argv[])
44609 { return 0; }
44610 #undef  main
44611 #define main K_and_R_C_main
44612
44613 int
44614 main ()
44615 {
44616  return 0;
44617   ;
44618   return 0;
44619 }
44620 _ACEOF
44621 rm -f conftest.$ac_objext conftest$ac_exeext
44622 if { (ac_try="$ac_link"
44623 case "(($ac_try" in
44624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44625   *) ac_try_echo=$ac_try;;
44626 esac
44627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44628   (eval "$ac_link") 2>conftest.er1
44629   ac_status=$?
44630   grep -v '^ *+' conftest.er1 >conftest.err
44631   rm -f conftest.er1
44632   cat conftest.err >&5
44633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44634   (exit $ac_status); } && {
44635          test -z "$ac_c_werror_flag" ||
44636          test ! -s conftest.err
44637        } && test -s conftest$ac_exeext &&
44638        $as_test_x conftest$ac_exeext; then
44639    echo "*** The test program compiled, but did not run. This usually means"
44640           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44641           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44642           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44643           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44644           echo "*** is required on your system"
44645           echo "***"
44646           echo "*** If you have an old version installed, it is best to remove it, although"
44647           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44648 else
44649   echo "$as_me: failed program was:" >&5
44650 sed 's/^/| /' conftest.$ac_ext >&5
44651
44652          echo "*** The test program failed to compile or link. See the file config.log for the"
44653           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44654           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44655           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44656 fi
44657
44658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44659       conftest$ac_exeext conftest.$ac_ext
44660           CFLAGS="$ac_save_CFLAGS"
44661           CXXFLAGS="$ac_save_CXXFLAGS"
44662           LIBS="$ac_save_LIBS"
44663        fi
44664      fi
44665      SDL_CFLAGS=""
44666      SDL_LIBS=""
44667      wxUSE_LIBSDL="no"
44668   fi
44669
44670
44671   rm -f conf.sdltest
44672
44673       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44674         WITH_PLUGIN_SDL=1
44675       fi
44676     fi
44677   else
44678         if test "$wxUSE_MGL" = 1; then
44679         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44680 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44681         wxUSE_SOUND="no"
44682     fi
44683   fi
44684 fi
44685
44686 if test "$wxUSE_SOUND" = "yes"; then
44687   cat >>confdefs.h <<\_ACEOF
44688 #define wxUSE_SOUND 1
44689 _ACEOF
44690
44691   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44692 fi
44693
44694 if test "$WXGTK20" = 1; then
44695
44696
44697 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44698         if test -n "$ac_tool_prefix"; then
44699   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44700 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44703 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44704   echo $ECHO_N "(cached) $ECHO_C" >&6
44705 else
44706   case $PKG_CONFIG in
44707   [\\/]* | ?:[\\/]*)
44708   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44709   ;;
44710   *)
44711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44712 for as_dir in $PATH
44713 do
44714   IFS=$as_save_IFS
44715   test -z "$as_dir" && as_dir=.
44716   for ac_exec_ext in '' $ac_executable_extensions; do
44717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44718     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44720     break 2
44721   fi
44722 done
44723 done
44724 IFS=$as_save_IFS
44725
44726   ;;
44727 esac
44728 fi
44729 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44730 if test -n "$PKG_CONFIG"; then
44731   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44732 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44733 else
44734   { echo "$as_me:$LINENO: result: no" >&5
44735 echo "${ECHO_T}no" >&6; }
44736 fi
44737
44738
44739 fi
44740 if test -z "$ac_cv_path_PKG_CONFIG"; then
44741   ac_pt_PKG_CONFIG=$PKG_CONFIG
44742   # Extract the first word of "pkg-config", so it can be a program name with args.
44743 set dummy pkg-config; ac_word=$2
44744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44746 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44747   echo $ECHO_N "(cached) $ECHO_C" >&6
44748 else
44749   case $ac_pt_PKG_CONFIG in
44750   [\\/]* | ?:[\\/]*)
44751   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44752   ;;
44753   *)
44754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44755 for as_dir in $PATH
44756 do
44757   IFS=$as_save_IFS
44758   test -z "$as_dir" && as_dir=.
44759   for ac_exec_ext in '' $ac_executable_extensions; do
44760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44761     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44763     break 2
44764   fi
44765 done
44766 done
44767 IFS=$as_save_IFS
44768
44769   ;;
44770 esac
44771 fi
44772 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44773 if test -n "$ac_pt_PKG_CONFIG"; then
44774   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44775 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44776 else
44777   { echo "$as_me:$LINENO: result: no" >&5
44778 echo "${ECHO_T}no" >&6; }
44779 fi
44780
44781   if test "x$ac_pt_PKG_CONFIG" = x; then
44782     PKG_CONFIG=""
44783   else
44784     case $cross_compiling:$ac_tool_warned in
44785 yes:)
44786 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44787 whose name does not start with the host triplet.  If you think this
44788 configuration is useful to you, please write to autoconf@gnu.org." >&5
44789 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44790 whose name does not start with the host triplet.  If you think this
44791 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44792 ac_tool_warned=yes ;;
44793 esac
44794     PKG_CONFIG=$ac_pt_PKG_CONFIG
44795   fi
44796 else
44797   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44798 fi
44799
44800 fi
44801 if test -n "$PKG_CONFIG"; then
44802         _pkg_min_version=0.9.0
44803         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44804 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44805         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44806                 { echo "$as_me:$LINENO: result: yes" >&5
44807 echo "${ECHO_T}yes" >&6; }
44808         else
44809                 { echo "$as_me:$LINENO: result: no" >&5
44810 echo "${ECHO_T}no" >&6; }
44811                 PKG_CONFIG=""
44812         fi
44813
44814 fi
44815
44816     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44817         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
44818
44819
44820 pkg_failed=no
44821 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
44822 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
44823
44824 if test -n "$PKG_CONFIG"; then
44825     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
44826         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
44827     else
44828         if test -n "$PKG_CONFIG" && \
44829     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44830   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44831   ac_status=$?
44832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44833   (exit $ac_status); }; then
44834   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44835 else
44836   pkg_failed=yes
44837 fi
44838     fi
44839 else
44840         pkg_failed=untried
44841 fi
44842 if test -n "$PKG_CONFIG"; then
44843     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
44844         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
44845     else
44846         if test -n "$PKG_CONFIG" && \
44847     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44848   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44849   ac_status=$?
44850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44851   (exit $ac_status); }; then
44852   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44853 else
44854   pkg_failed=yes
44855 fi
44856     fi
44857 else
44858         pkg_failed=untried
44859 fi
44860
44861
44862
44863 if test $pkg_failed = yes; then
44864
44865 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44866         _pkg_short_errors_supported=yes
44867 else
44868         _pkg_short_errors_supported=no
44869 fi
44870         if test $_pkg_short_errors_supported = yes; then
44871                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44872         else
44873                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
44874         fi
44875         # Put the nasty error message in config.log where it belongs
44876         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
44877
44878
44879                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44880 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44881                         wxUSE_LIBGNOMEPRINT="no"
44882
44883
44884 elif test $pkg_failed = untried; then
44885
44886                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
44887 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
44888                         wxUSE_LIBGNOMEPRINT="no"
44889
44890
44891 else
44892         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
44893         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
44894         { echo "$as_me:$LINENO: result: yes" >&5
44895 echo "${ECHO_T}yes" >&6; }
44896
44897                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
44898                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
44899                         cat >>confdefs.h <<\_ACEOF
44900 #define wxUSE_LIBGNOMEPRINT 1
44901 _ACEOF
44902
44903
44904 fi
44905         fi
44906     fi
44907
44908     if test "$wxUSE_MIMETYPE" = "yes" ; then
44909         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
44910
44911
44912 pkg_failed=no
44913 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
44914 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
44915
44916 if test -n "$PKG_CONFIG"; then
44917     if test -n "$GNOMEVFS_CFLAGS"; then
44918         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
44919     else
44920         if test -n "$PKG_CONFIG" && \
44921     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44922   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44923   ac_status=$?
44924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44925   (exit $ac_status); }; then
44926   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44927 else
44928   pkg_failed=yes
44929 fi
44930     fi
44931 else
44932         pkg_failed=untried
44933 fi
44934 if test -n "$PKG_CONFIG"; then
44935     if test -n "$GNOMEVFS_LIBS"; then
44936         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
44937     else
44938         if test -n "$PKG_CONFIG" && \
44939     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
44940   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
44941   ac_status=$?
44942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44943   (exit $ac_status); }; then
44944   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
44945 else
44946   pkg_failed=yes
44947 fi
44948     fi
44949 else
44950         pkg_failed=untried
44951 fi
44952
44953
44954
44955 if test $pkg_failed = yes; then
44956
44957 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44958         _pkg_short_errors_supported=yes
44959 else
44960         _pkg_short_errors_supported=no
44961 fi
44962         if test $_pkg_short_errors_supported = yes; then
44963                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44964         else
44965                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
44966         fi
44967         # Put the nasty error message in config.log where it belongs
44968         echo "$GNOMEVFS_PKG_ERRORS" >&5
44969
44970
44971                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44972 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44973                         wxUSE_LIBGNOMEVFS="no"
44974
44975
44976 elif test $pkg_failed = untried; then
44977
44978                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
44979 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
44980                         wxUSE_LIBGNOMEVFS="no"
44981
44982
44983 else
44984         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
44985         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
44986         { echo "$as_me:$LINENO: result: yes" >&5
44987 echo "${ECHO_T}yes" >&6; }
44988
44989                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
44990                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
44991                         cat >>confdefs.h <<\_ACEOF
44992 #define wxUSE_LIBGNOMEVFS 1
44993 _ACEOF
44994
44995
44996 fi
44997         fi
44998     fi
44999
45000     if test "$wxUSE_LIBHILDON" = "yes" ; then
45001
45002 pkg_failed=no
45003 { echo "$as_me:$LINENO: checking for HILDON" >&5
45004 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
45005
45006 if test -n "$PKG_CONFIG"; then
45007     if test -n "$HILDON_CFLAGS"; then
45008         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
45009     else
45010         if test -n "$PKG_CONFIG" && \
45011     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45012   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45013   ac_status=$?
45014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45015   (exit $ac_status); }; then
45016   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
45017 else
45018   pkg_failed=yes
45019 fi
45020     fi
45021 else
45022         pkg_failed=untried
45023 fi
45024 if test -n "$PKG_CONFIG"; then
45025     if test -n "$HILDON_LIBS"; then
45026         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
45027     else
45028         if test -n "$PKG_CONFIG" && \
45029     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45030   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45031   ac_status=$?
45032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45033   (exit $ac_status); }; then
45034   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
45035 else
45036   pkg_failed=yes
45037 fi
45038     fi
45039 else
45040         pkg_failed=untried
45041 fi
45042
45043
45044
45045 if test $pkg_failed = yes; then
45046
45047 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45048         _pkg_short_errors_supported=yes
45049 else
45050         _pkg_short_errors_supported=no
45051 fi
45052         if test $_pkg_short_errors_supported = yes; then
45053                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45054         else
45055                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45056         fi
45057         # Put the nasty error message in config.log where it belongs
45058         echo "$HILDON_PKG_ERRORS" >&5
45059
45060
45061                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45062 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45063                         wxUSE_LIBHILDON="no"
45064
45065
45066 elif test $pkg_failed = untried; then
45067
45068                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45069 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45070                         wxUSE_LIBHILDON="no"
45071
45072
45073 else
45074         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45075         HILDON_LIBS=$pkg_cv_HILDON_LIBS
45076         { echo "$as_me:$LINENO: result: yes" >&5
45077 echo "${ECHO_T}yes" >&6; }
45078
45079                 EXTRALIBS_HILDON="$HILDON_LIBS"
45080                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
45081                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45082                 cat >>confdefs.h <<\_ACEOF
45083 #define wxUSE_LIBHILDON 1
45084 _ACEOF
45085
45086
45087 fi
45088     fi
45089 fi
45090
45091 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45092   cat >>confdefs.h <<\_ACEOF
45093 #define wxUSE_CMDLINE_PARSER 1
45094 _ACEOF
45095
45096 fi
45097
45098 if test "$wxUSE_STOPWATCH" = "yes"; then
45099   cat >>confdefs.h <<\_ACEOF
45100 #define wxUSE_STOPWATCH 1
45101 _ACEOF
45102
45103 fi
45104
45105 if test "$wxUSE_DATETIME" = "yes"; then
45106   cat >>confdefs.h <<\_ACEOF
45107 #define wxUSE_DATETIME 1
45108 _ACEOF
45109
45110 fi
45111
45112 if test "$wxUSE_FILE" = "yes"; then
45113   cat >>confdefs.h <<\_ACEOF
45114 #define wxUSE_FILE 1
45115 _ACEOF
45116
45117 fi
45118
45119 if test "$wxUSE_FFILE" = "yes"; then
45120   cat >>confdefs.h <<\_ACEOF
45121 #define wxUSE_FFILE 1
45122 _ACEOF
45123
45124 fi
45125
45126 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45127   if test "$wxUSE_STREAMS" != yes; then
45128     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45129 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45130     wxUSE_ARCHIVE_STREAMS=no
45131   else
45132     cat >>confdefs.h <<\_ACEOF
45133 #define wxUSE_ARCHIVE_STREAMS 1
45134 _ACEOF
45135
45136   fi
45137 fi
45138
45139 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45140   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45141     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45142 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45143   elif test "$wxUSE_ZLIB" = "no"; then
45144     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45145 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45146   else
45147     cat >>confdefs.h <<\_ACEOF
45148 #define wxUSE_ZIPSTREAM 1
45149 _ACEOF
45150
45151   fi
45152 fi
45153
45154 if test "$wxUSE_TARSTREAM" = "yes"; then
45155   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45156     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45157 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45158   else
45159     cat >>confdefs.h <<\_ACEOF
45160 #define wxUSE_TARSTREAM 1
45161 _ACEOF
45162
45163   fi
45164 fi
45165
45166 if test "$wxUSE_FILESYSTEM" = "yes"; then
45167   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45168     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45169 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45170     wxUSE_FILESYSTEM=no
45171   else
45172     cat >>confdefs.h <<\_ACEOF
45173 #define wxUSE_FILESYSTEM 1
45174 _ACEOF
45175
45176   fi
45177 fi
45178
45179 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45180   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45181     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45182 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45183   else
45184     cat >>confdefs.h <<\_ACEOF
45185 #define wxUSE_FS_ARCHIVE 1
45186 _ACEOF
45187
45188   fi
45189 fi
45190
45191 if test "$wxUSE_FS_ZIP" = "yes"; then
45192   if test "$wxUSE_FS_ARCHIVE" != yes; then
45193     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45194 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45195   else
45196     cat >>confdefs.h <<\_ACEOF
45197 #define wxUSE_FS_ZIP 1
45198 _ACEOF
45199
45200   fi
45201 fi
45202
45203 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45204   if test "$USE_UNIX" != 1; then
45205     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45206 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45207     wxUSE_ON_FATAL_EXCEPTION=no
45208   else
45209     cat >>confdefs.h <<\_ACEOF
45210 #define wxUSE_ON_FATAL_EXCEPTION 1
45211 _ACEOF
45212
45213   fi
45214 fi
45215
45216 if test "$wxUSE_STACKWALKER" = "yes"; then
45217     cat >>confdefs.h <<\_ACEOF
45218 #define wxUSE_STACKWALKER 1
45219 _ACEOF
45220
45221 fi
45222
45223 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45224     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
45225         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45226 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45227         wxUSE_DEBUGREPORT=no
45228     else
45229         cat >>confdefs.h <<\_ACEOF
45230 #define wxUSE_DEBUGREPORT 1
45231 _ACEOF
45232
45233         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45234             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45235         fi
45236     fi
45237 fi
45238
45239 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45240   cat >>confdefs.h <<\_ACEOF
45241 #define wxUSE_SNGLINST_CHECKER 1
45242 _ACEOF
45243
45244 fi
45245
45246 if test "$wxUSE_BUSYINFO" = "yes"; then
45247   cat >>confdefs.h <<\_ACEOF
45248 #define wxUSE_BUSYINFO 1
45249 _ACEOF
45250
45251 fi
45252
45253 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45254   cat >>confdefs.h <<\_ACEOF
45255 #define wxUSE_STD_IOSTREAM 1
45256 _ACEOF
45257
45258 fi
45259
45260 if test "$wxUSE_STD_STRING" = "yes"; then
45261   cat >>confdefs.h <<\_ACEOF
45262 #define wxUSE_STD_STRING 1
45263 _ACEOF
45264
45265 fi
45266
45267 if test "$wxUSE_STDPATHS" = "yes"; then
45268   cat >>confdefs.h <<\_ACEOF
45269 #define wxUSE_STDPATHS 1
45270 _ACEOF
45271
45272 fi
45273
45274 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45275     cat >>confdefs.h <<\_ACEOF
45276 #define wxUSE_TEXTBUFFER 1
45277 _ACEOF
45278
45279 fi
45280
45281 if test "$wxUSE_TEXTFILE" = "yes"; then
45282   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45283     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45284 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45285   else
45286     cat >>confdefs.h <<\_ACEOF
45287 #define wxUSE_TEXTFILE 1
45288 _ACEOF
45289
45290   fi
45291 fi
45292
45293 if test "$wxUSE_CONFIG" = "yes" ; then
45294   if test "$wxUSE_TEXTFILE" != "yes"; then
45295     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45296 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45297   else
45298     cat >>confdefs.h <<\_ACEOF
45299 #define wxUSE_CONFIG 1
45300 _ACEOF
45301
45302     cat >>confdefs.h <<\_ACEOF
45303 #define wxUSE_CONFIG_NATIVE 1
45304 _ACEOF
45305
45306     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45307   fi
45308 fi
45309
45310 if test "$wxUSE_INTL" = "yes" ; then
45311   if test "$wxUSE_FILE" != "yes"; then
45312     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45313 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45314   else
45315     cat >>confdefs.h <<\_ACEOF
45316 #define wxUSE_INTL 1
45317 _ACEOF
45318
45319     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45320     GUIDIST="$GUIDIST INTL_DIST"
45321   fi
45322 fi
45323
45324 if test "$wxUSE_LOG" = "yes"; then
45325   cat >>confdefs.h <<\_ACEOF
45326 #define wxUSE_LOG 1
45327 _ACEOF
45328
45329
45330     if test "$wxUSE_LOGGUI" = "yes"; then
45331       cat >>confdefs.h <<\_ACEOF
45332 #define wxUSE_LOGGUI 1
45333 _ACEOF
45334
45335     fi
45336
45337     if test "$wxUSE_LOGWINDOW" = "yes"; then
45338       cat >>confdefs.h <<\_ACEOF
45339 #define wxUSE_LOGWINDOW 1
45340 _ACEOF
45341
45342     fi
45343
45344     if test "$wxUSE_LOGDIALOG" = "yes"; then
45345       cat >>confdefs.h <<\_ACEOF
45346 #define wxUSE_LOG_DIALOG 1
45347 _ACEOF
45348
45349     fi
45350
45351         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45352 fi
45353
45354 if test "$wxUSE_LONGLONG" = "yes"; then
45355   cat >>confdefs.h <<\_ACEOF
45356 #define wxUSE_LONGLONG 1
45357 _ACEOF
45358
45359 fi
45360
45361 if test "$wxUSE_GEOMETRY" = "yes"; then
45362   cat >>confdefs.h <<\_ACEOF
45363 #define wxUSE_GEOMETRY 1
45364 _ACEOF
45365
45366 fi
45367
45368 if test "$wxUSE_BASE64" = "yes"; then
45369   cat >>confdefs.h <<\_ACEOF
45370 #define wxUSE_BASE64 1
45371 _ACEOF
45372
45373 fi
45374
45375 if test "$wxUSE_STREAMS" = "yes" ; then
45376   cat >>confdefs.h <<\_ACEOF
45377 #define wxUSE_STREAMS 1
45378 _ACEOF
45379
45380 fi
45381
45382 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45383   cat >>confdefs.h <<\_ACEOF
45384 #define wxUSE_PRINTF_POS_PARAMS 1
45385 _ACEOF
45386
45387 fi
45388
45389 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45390   cat >>confdefs.h <<\_ACEOF
45391 #define wxUSE_OBJC_UNIQUIFYING 1
45392 _ACEOF
45393
45394 fi
45395
45396
45397 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45398     cat >>confdefs.h <<\_ACEOF
45399 #define wxUSE_CONSOLE_EVENTLOOP 1
45400 _ACEOF
45401
45402
45403     if test "$wxUSE_UNIX" = "yes"; then
45404         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45405             cat >>confdefs.h <<\_ACEOF
45406 #define wxUSE_SELECT_DISPATCHER 1
45407 _ACEOF
45408
45409         fi
45410
45411         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45412
45413 for ac_header in sys/epoll.h
45414 do
45415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45417   { echo "$as_me:$LINENO: checking for $ac_header" >&5
45418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45420   echo $ECHO_N "(cached) $ECHO_C" >&6
45421 fi
45422 ac_res=`eval echo '${'$as_ac_Header'}'`
45423                { echo "$as_me:$LINENO: result: $ac_res" >&5
45424 echo "${ECHO_T}$ac_res" >&6; }
45425 else
45426   # Is the header compilable?
45427 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
45428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
45429 cat >conftest.$ac_ext <<_ACEOF
45430 /* confdefs.h.  */
45431 _ACEOF
45432 cat confdefs.h >>conftest.$ac_ext
45433 cat >>conftest.$ac_ext <<_ACEOF
45434 /* end confdefs.h.  */
45435 $ac_includes_default
45436 #include <$ac_header>
45437 _ACEOF
45438 rm -f conftest.$ac_objext
45439 if { (ac_try="$ac_compile"
45440 case "(($ac_try" in
45441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45442   *) ac_try_echo=$ac_try;;
45443 esac
45444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45445   (eval "$ac_compile") 2>conftest.er1
45446   ac_status=$?
45447   grep -v '^ *+' conftest.er1 >conftest.err
45448   rm -f conftest.er1
45449   cat conftest.err >&5
45450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45451   (exit $ac_status); } && {
45452          test -z "$ac_c_werror_flag" ||
45453          test ! -s conftest.err
45454        } && test -s conftest.$ac_objext; then
45455   ac_header_compiler=yes
45456 else
45457   echo "$as_me: failed program was:" >&5
45458 sed 's/^/| /' conftest.$ac_ext >&5
45459
45460         ac_header_compiler=no
45461 fi
45462
45463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45464 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45465 echo "${ECHO_T}$ac_header_compiler" >&6; }
45466
45467 # Is the header present?
45468 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
45469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
45470 cat >conftest.$ac_ext <<_ACEOF
45471 /* confdefs.h.  */
45472 _ACEOF
45473 cat confdefs.h >>conftest.$ac_ext
45474 cat >>conftest.$ac_ext <<_ACEOF
45475 /* end confdefs.h.  */
45476 #include <$ac_header>
45477 _ACEOF
45478 if { (ac_try="$ac_cpp conftest.$ac_ext"
45479 case "(($ac_try" in
45480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45481   *) ac_try_echo=$ac_try;;
45482 esac
45483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45485   ac_status=$?
45486   grep -v '^ *+' conftest.er1 >conftest.err
45487   rm -f conftest.er1
45488   cat conftest.err >&5
45489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45490   (exit $ac_status); } >/dev/null && {
45491          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45492          test ! -s conftest.err
45493        }; then
45494   ac_header_preproc=yes
45495 else
45496   echo "$as_me: failed program was:" >&5
45497 sed 's/^/| /' conftest.$ac_ext >&5
45498
45499   ac_header_preproc=no
45500 fi
45501
45502 rm -f conftest.err conftest.$ac_ext
45503 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45504 echo "${ECHO_T}$ac_header_preproc" >&6; }
45505
45506 # So?  What about this header?
45507 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45508   yes:no: )
45509     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45510 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45512 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45513     ac_header_preproc=yes
45514     ;;
45515   no:yes:* )
45516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45518     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45519 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45520     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45521 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45522     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45523 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45525 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45526     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45527 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45528     ( cat <<\_ASBOX
45529 ## ----------------------------------------- ##
45530 ## Report this to wx-dev@lists.wxwidgets.org ##
45531 ## ----------------------------------------- ##
45532 _ASBOX
45533      ) | sed "s/^/$as_me: WARNING:     /" >&2
45534     ;;
45535 esac
45536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45539   echo $ECHO_N "(cached) $ECHO_C" >&6
45540 else
45541   eval "$as_ac_Header=\$ac_header_preproc"
45542 fi
45543 ac_res=`eval echo '${'$as_ac_Header'}'`
45544                { echo "$as_me:$LINENO: result: $ac_res" >&5
45545 echo "${ECHO_T}$ac_res" >&6; }
45546
45547 fi
45548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45549   cat >>confdefs.h <<_ACEOF
45550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45551 _ACEOF
45552
45553 fi
45554
45555 done
45556
45557             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45558                 cat >>confdefs.h <<\_ACEOF
45559 #define wxUSE_EPOLL_DISPATCHER 1
45560 _ACEOF
45561
45562             else
45563                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45564 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45565             fi
45566         fi
45567     fi
45568 fi
45569
45570
45571
45572
45573 for ac_func in gettimeofday ftime
45574 do
45575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45579   echo $ECHO_N "(cached) $ECHO_C" >&6
45580 else
45581   cat >conftest.$ac_ext <<_ACEOF
45582 /* confdefs.h.  */
45583 _ACEOF
45584 cat confdefs.h >>conftest.$ac_ext
45585 cat >>conftest.$ac_ext <<_ACEOF
45586 /* end confdefs.h.  */
45587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45589 #define $ac_func innocuous_$ac_func
45590
45591 /* System header to define __stub macros and hopefully few prototypes,
45592     which can conflict with char $ac_func (); below.
45593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45594     <limits.h> exists even on freestanding compilers.  */
45595
45596 #ifdef __STDC__
45597 # include <limits.h>
45598 #else
45599 # include <assert.h>
45600 #endif
45601
45602 #undef $ac_func
45603
45604 /* Override any GCC internal prototype to avoid an error.
45605    Use char because int might match the return type of a GCC
45606    builtin and then its argument prototype would still apply.  */
45607 #ifdef __cplusplus
45608 extern "C"
45609 #endif
45610 char $ac_func ();
45611 /* The GNU C library defines this for functions which it implements
45612     to always fail with ENOSYS.  Some functions are actually named
45613     something starting with __ and the normal name is an alias.  */
45614 #if defined __stub_$ac_func || defined __stub___$ac_func
45615 choke me
45616 #endif
45617
45618 int
45619 main ()
45620 {
45621 return $ac_func ();
45622   ;
45623   return 0;
45624 }
45625 _ACEOF
45626 rm -f conftest.$ac_objext conftest$ac_exeext
45627 if { (ac_try="$ac_link"
45628 case "(($ac_try" in
45629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45630   *) ac_try_echo=$ac_try;;
45631 esac
45632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45633   (eval "$ac_link") 2>conftest.er1
45634   ac_status=$?
45635   grep -v '^ *+' conftest.er1 >conftest.err
45636   rm -f conftest.er1
45637   cat conftest.err >&5
45638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45639   (exit $ac_status); } && {
45640          test -z "$ac_c_werror_flag" ||
45641          test ! -s conftest.err
45642        } && test -s conftest$ac_exeext &&
45643        $as_test_x conftest$ac_exeext; then
45644   eval "$as_ac_var=yes"
45645 else
45646   echo "$as_me: failed program was:" >&5
45647 sed 's/^/| /' conftest.$ac_ext >&5
45648
45649         eval "$as_ac_var=no"
45650 fi
45651
45652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45653       conftest$ac_exeext conftest.$ac_ext
45654 fi
45655 ac_res=`eval echo '${'$as_ac_var'}'`
45656                { echo "$as_me:$LINENO: result: $ac_res" >&5
45657 echo "${ECHO_T}$ac_res" >&6; }
45658 if test `eval echo '${'$as_ac_var'}'` = yes; then
45659   cat >>confdefs.h <<_ACEOF
45660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45661 _ACEOF
45662  break
45663 fi
45664 done
45665
45666
45667 if test "$ac_cv_func_gettimeofday" = "yes"; then
45668     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45669 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45670 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45671   echo $ECHO_N "(cached) $ECHO_C" >&6
45672 else
45673
45674                 cat >conftest.$ac_ext <<_ACEOF
45675 /* confdefs.h.  */
45676 _ACEOF
45677 cat confdefs.h >>conftest.$ac_ext
45678 cat >>conftest.$ac_ext <<_ACEOF
45679 /* end confdefs.h.  */
45680
45681                 #include <sys/time.h>
45682                 #include <unistd.h>
45683
45684 int
45685 main ()
45686 {
45687
45688                 struct timeval tv;
45689                 gettimeofday(&tv, NULL);
45690
45691   ;
45692   return 0;
45693 }
45694 _ACEOF
45695 rm -f conftest.$ac_objext
45696 if { (ac_try="$ac_compile"
45697 case "(($ac_try" in
45698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45699   *) ac_try_echo=$ac_try;;
45700 esac
45701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45702   (eval "$ac_compile") 2>conftest.er1
45703   ac_status=$?
45704   grep -v '^ *+' conftest.er1 >conftest.err
45705   rm -f conftest.er1
45706   cat conftest.err >&5
45707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45708   (exit $ac_status); } && {
45709          test -z "$ac_c_werror_flag" ||
45710          test ! -s conftest.err
45711        } && test -s conftest.$ac_objext; then
45712   wx_cv_func_gettimeofday_has_2_args=yes
45713 else
45714   echo "$as_me: failed program was:" >&5
45715 sed 's/^/| /' conftest.$ac_ext >&5
45716
45717         cat >conftest.$ac_ext <<_ACEOF
45718 /* confdefs.h.  */
45719 _ACEOF
45720 cat confdefs.h >>conftest.$ac_ext
45721 cat >>conftest.$ac_ext <<_ACEOF
45722 /* end confdefs.h.  */
45723
45724                     #include <sys/time.h>
45725                     #include <unistd.h>
45726
45727 int
45728 main ()
45729 {
45730
45731                     struct timeval tv;
45732                     gettimeofday(&tv);
45733
45734   ;
45735   return 0;
45736 }
45737 _ACEOF
45738 rm -f conftest.$ac_objext
45739 if { (ac_try="$ac_compile"
45740 case "(($ac_try" in
45741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45742   *) ac_try_echo=$ac_try;;
45743 esac
45744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45745   (eval "$ac_compile") 2>conftest.er1
45746   ac_status=$?
45747   grep -v '^ *+' conftest.er1 >conftest.err
45748   rm -f conftest.er1
45749   cat conftest.err >&5
45750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45751   (exit $ac_status); } && {
45752          test -z "$ac_c_werror_flag" ||
45753          test ! -s conftest.err
45754        } && test -s conftest.$ac_objext; then
45755   wx_cv_func_gettimeofday_has_2_args=no
45756 else
45757   echo "$as_me: failed program was:" >&5
45758 sed 's/^/| /' conftest.$ac_ext >&5
45759
45760
45761                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45762 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45763                     wx_cv_func_gettimeofday_has_2_args=unknown
45764
45765
45766 fi
45767
45768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45769
45770 fi
45771
45772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45773
45774 fi
45775 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45776 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45777
45778     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45779         cat >>confdefs.h <<\_ACEOF
45780 #define WX_GETTIMEOFDAY_NO_TZ 1
45781 _ACEOF
45782
45783     fi
45784 fi
45785
45786 if test "$wxUSE_DATETIME" = "yes"; then
45787         { echo "$as_me:$LINENO: checking for strptime" >&5
45788 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
45789 if test "${ac_cv_func_strptime+set}" = set; then
45790   echo $ECHO_N "(cached) $ECHO_C" >&6
45791 else
45792   cat >conftest.$ac_ext <<_ACEOF
45793 /* confdefs.h.  */
45794 _ACEOF
45795 cat confdefs.h >>conftest.$ac_ext
45796 cat >>conftest.$ac_ext <<_ACEOF
45797 /* end confdefs.h.  */
45798 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
45799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45800 #define strptime innocuous_strptime
45801
45802 /* System header to define __stub macros and hopefully few prototypes,
45803     which can conflict with char strptime (); below.
45804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45805     <limits.h> exists even on freestanding compilers.  */
45806
45807 #ifdef __STDC__
45808 # include <limits.h>
45809 #else
45810 # include <assert.h>
45811 #endif
45812
45813 #undef strptime
45814
45815 /* Override any GCC internal prototype to avoid an error.
45816    Use char because int might match the return type of a GCC
45817    builtin and then its argument prototype would still apply.  */
45818 #ifdef __cplusplus
45819 extern "C"
45820 #endif
45821 char strptime ();
45822 /* The GNU C library defines this for functions which it implements
45823     to always fail with ENOSYS.  Some functions are actually named
45824     something starting with __ and the normal name is an alias.  */
45825 #if defined __stub_strptime || defined __stub___strptime
45826 choke me
45827 #endif
45828
45829 int
45830 main ()
45831 {
45832 return strptime ();
45833   ;
45834   return 0;
45835 }
45836 _ACEOF
45837 rm -f conftest.$ac_objext conftest$ac_exeext
45838 if { (ac_try="$ac_link"
45839 case "(($ac_try" in
45840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45841   *) ac_try_echo=$ac_try;;
45842 esac
45843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45844   (eval "$ac_link") 2>conftest.er1
45845   ac_status=$?
45846   grep -v '^ *+' conftest.er1 >conftest.err
45847   rm -f conftest.er1
45848   cat conftest.err >&5
45849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45850   (exit $ac_status); } && {
45851          test -z "$ac_c_werror_flag" ||
45852          test ! -s conftest.err
45853        } && test -s conftest$ac_exeext &&
45854        $as_test_x conftest$ac_exeext; then
45855   ac_cv_func_strptime=yes
45856 else
45857   echo "$as_me: failed program was:" >&5
45858 sed 's/^/| /' conftest.$ac_ext >&5
45859
45860         ac_cv_func_strptime=no
45861 fi
45862
45863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45864       conftest$ac_exeext conftest.$ac_ext
45865 fi
45866 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
45867 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
45868
45869     if test "$ac_cv_func_strptime" = "yes"; then
45870         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
45871 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
45872 if test "${wx_cv_func_strptime_decl+set}" = set; then
45873   echo $ECHO_N "(cached) $ECHO_C" >&6
45874 else
45875
45876                 ac_ext=cpp
45877 ac_cpp='$CXXCPP $CPPFLAGS'
45878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45881
45882                 cat >conftest.$ac_ext <<_ACEOF
45883 /* confdefs.h.  */
45884 _ACEOF
45885 cat confdefs.h >>conftest.$ac_ext
45886 cat >>conftest.$ac_ext <<_ACEOF
45887 /* end confdefs.h.  */
45888
45889                         #include <time.h>
45890
45891 int
45892 main ()
45893 {
45894
45895                         struct tm t;
45896                         strptime("foo", "bar", &t);
45897
45898   ;
45899   return 0;
45900 }
45901 _ACEOF
45902 rm -f conftest.$ac_objext
45903 if { (ac_try="$ac_compile"
45904 case "(($ac_try" in
45905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45906   *) ac_try_echo=$ac_try;;
45907 esac
45908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45909   (eval "$ac_compile") 2>conftest.er1
45910   ac_status=$?
45911   grep -v '^ *+' conftest.er1 >conftest.err
45912   rm -f conftest.er1
45913   cat conftest.err >&5
45914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45915   (exit $ac_status); } && {
45916          test -z "$ac_cxx_werror_flag" ||
45917          test ! -s conftest.err
45918        } && test -s conftest.$ac_objext; then
45919   wx_cv_func_strptime_decl=yes
45920 else
45921   echo "$as_me: failed program was:" >&5
45922 sed 's/^/| /' conftest.$ac_ext >&5
45923
45924         wx_cv_func_strptime_decl=no
45925
45926 fi
45927
45928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45929                 ac_ext=c
45930 ac_cpp='$CPP $CPPFLAGS'
45931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45934
45935
45936
45937 fi
45938 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
45939 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
45940     fi
45941     if test "$wx_cv_func_strptime_decl" = "yes"; then
45942         cat >>confdefs.h <<\_ACEOF
45943 #define HAVE_STRPTIME_DECL 1
45944 _ACEOF
45945
45946     else
45947         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
45948     fi
45949     if test "$ac_cv_func_strptime" = "yes"; then
45950                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
45951 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
45952 if test "${wx_cv_func_strptime_ok+set}" = set; then
45953   echo $ECHO_N "(cached) $ECHO_C" >&6
45954 else
45955   if test "$cross_compiling" = yes; then
45956                   wx_cv_func_strptime_ok=no
45957
45958 else
45959   cat >conftest.$ac_ext <<_ACEOF
45960
45961                     #include <stdlib.h>
45962                     #include <time.h>
45963                     #include "confdefs.h"
45964
45965                     $wx_strptime_decl
45966
45967                     int main()
45968                     {
45969                         struct tm t;
45970                         return !!strptime("", "%x", &t);
45971                     }
45972
45973 _ACEOF
45974 rm -f conftest$ac_exeext
45975 if { (ac_try="$ac_link"
45976 case "(($ac_try" in
45977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45978   *) ac_try_echo=$ac_try;;
45979 esac
45980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45981   (eval "$ac_link") 2>&5
45982   ac_status=$?
45983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45985   { (case "(($ac_try" in
45986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45987   *) ac_try_echo=$ac_try;;
45988 esac
45989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45990   (eval "$ac_try") 2>&5
45991   ac_status=$?
45992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45993   (exit $ac_status); }; }; then
45994   wx_cv_func_strptime_ok=yes
45995 else
45996   echo "$as_me: program exited with status $ac_status" >&5
45997 echo "$as_me: failed program was:" >&5
45998 sed 's/^/| /' conftest.$ac_ext >&5
45999
46000 ( exit $ac_status )
46001 wx_cv_func_strptime_ok=no
46002 fi
46003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46004 fi
46005
46006
46007
46008 fi
46009 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
46010 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
46011
46012         if test "$wx_cv_func_strptime_ok" = "yes"; then
46013             cat >>confdefs.h <<\_ACEOF
46014 #define HAVE_STRPTIME 1
46015 _ACEOF
46016
46017         fi
46018     fi
46019
46020             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
46021 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
46022 if test "${wx_cv_var_timezone+set}" = set; then
46023   echo $ECHO_N "(cached) $ECHO_C" >&6
46024 else
46025
46026                         ac_ext=cpp
46027 ac_cpp='$CXXCPP $CPPFLAGS'
46028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46031
46032                         cat >conftest.$ac_ext <<_ACEOF
46033 /* confdefs.h.  */
46034 _ACEOF
46035 cat confdefs.h >>conftest.$ac_ext
46036 cat >>conftest.$ac_ext <<_ACEOF
46037 /* end confdefs.h.  */
46038
46039                                 #include <time.h>
46040
46041 int
46042 main ()
46043 {
46044
46045                                 int tz;
46046                                 tz = timezone;
46047
46048   ;
46049   return 0;
46050 }
46051 _ACEOF
46052 rm -f conftest.$ac_objext
46053 if { (ac_try="$ac_compile"
46054 case "(($ac_try" in
46055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46056   *) ac_try_echo=$ac_try;;
46057 esac
46058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46059   (eval "$ac_compile") 2>conftest.er1
46060   ac_status=$?
46061   grep -v '^ *+' conftest.er1 >conftest.err
46062   rm -f conftest.er1
46063   cat conftest.err >&5
46064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46065   (exit $ac_status); } && {
46066          test -z "$ac_cxx_werror_flag" ||
46067          test ! -s conftest.err
46068        } && test -s conftest.$ac_objext; then
46069
46070                                 wx_cv_var_timezone=timezone
46071
46072 else
46073   echo "$as_me: failed program was:" >&5
46074 sed 's/^/| /' conftest.$ac_ext >&5
46075
46076
46077                                 cat >conftest.$ac_ext <<_ACEOF
46078 /* confdefs.h.  */
46079 _ACEOF
46080 cat confdefs.h >>conftest.$ac_ext
46081 cat >>conftest.$ac_ext <<_ACEOF
46082 /* end confdefs.h.  */
46083
46084                                         #include <time.h>
46085
46086 int
46087 main ()
46088 {
46089
46090                                         int tz;
46091                                         tz = _timezone;
46092
46093   ;
46094   return 0;
46095 }
46096 _ACEOF
46097 rm -f conftest.$ac_objext
46098 if { (ac_try="$ac_compile"
46099 case "(($ac_try" in
46100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46101   *) ac_try_echo=$ac_try;;
46102 esac
46103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46104   (eval "$ac_compile") 2>conftest.er1
46105   ac_status=$?
46106   grep -v '^ *+' conftest.er1 >conftest.err
46107   rm -f conftest.er1
46108   cat conftest.err >&5
46109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46110   (exit $ac_status); } && {
46111          test -z "$ac_cxx_werror_flag" ||
46112          test ! -s conftest.err
46113        } && test -s conftest.$ac_objext; then
46114
46115                                         wx_cv_var_timezone=_timezone
46116
46117 else
46118   echo "$as_me: failed program was:" >&5
46119 sed 's/^/| /' conftest.$ac_ext >&5
46120
46121
46122                                         cat >conftest.$ac_ext <<_ACEOF
46123 /* confdefs.h.  */
46124 _ACEOF
46125 cat confdefs.h >>conftest.$ac_ext
46126 cat >>conftest.$ac_ext <<_ACEOF
46127 /* end confdefs.h.  */
46128
46129                                                 #include <time.h>
46130
46131 int
46132 main ()
46133 {
46134
46135                                                 int tz;
46136                                                 tz = __timezone;
46137
46138   ;
46139   return 0;
46140 }
46141 _ACEOF
46142 rm -f conftest.$ac_objext
46143 if { (ac_try="$ac_compile"
46144 case "(($ac_try" in
46145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46146   *) ac_try_echo=$ac_try;;
46147 esac
46148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46149   (eval "$ac_compile") 2>conftest.er1
46150   ac_status=$?
46151   grep -v '^ *+' conftest.er1 >conftest.err
46152   rm -f conftest.er1
46153   cat conftest.err >&5
46154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46155   (exit $ac_status); } && {
46156          test -z "$ac_cxx_werror_flag" ||
46157          test ! -s conftest.err
46158        } && test -s conftest.$ac_objext; then
46159
46160                                                 wx_cv_var_timezone=__timezone
46161
46162 else
46163   echo "$as_me: failed program was:" >&5
46164 sed 's/^/| /' conftest.$ac_ext >&5
46165
46166
46167                                                 if test "$USE_DOS" = 0 ; then
46168                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46169 echo "$as_me: WARNING: no timezone variable" >&2;}
46170                                                 fi
46171
46172
46173 fi
46174
46175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46176
46177
46178 fi
46179
46180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46181
46182
46183 fi
46184
46185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46186                         ac_ext=c
46187 ac_cpp='$CPP $CPPFLAGS'
46188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46191
46192
46193
46194 fi
46195 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
46196 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
46197
46198         if test "x$wx_cv_var_timezone" != x ; then
46199         cat >>confdefs.h <<_ACEOF
46200 #define WX_TIMEZONE $wx_cv_var_timezone
46201 _ACEOF
46202
46203     fi
46204
46205
46206 for ac_func in localtime
46207 do
46208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46212   echo $ECHO_N "(cached) $ECHO_C" >&6
46213 else
46214   cat >conftest.$ac_ext <<_ACEOF
46215 /* confdefs.h.  */
46216 _ACEOF
46217 cat confdefs.h >>conftest.$ac_ext
46218 cat >>conftest.$ac_ext <<_ACEOF
46219 /* end confdefs.h.  */
46220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46222 #define $ac_func innocuous_$ac_func
46223
46224 /* System header to define __stub macros and hopefully few prototypes,
46225     which can conflict with char $ac_func (); below.
46226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46227     <limits.h> exists even on freestanding compilers.  */
46228
46229 #ifdef __STDC__
46230 # include <limits.h>
46231 #else
46232 # include <assert.h>
46233 #endif
46234
46235 #undef $ac_func
46236
46237 /* Override any GCC internal prototype to avoid an error.
46238    Use char because int might match the return type of a GCC
46239    builtin and then its argument prototype would still apply.  */
46240 #ifdef __cplusplus
46241 extern "C"
46242 #endif
46243 char $ac_func ();
46244 /* The GNU C library defines this for functions which it implements
46245     to always fail with ENOSYS.  Some functions are actually named
46246     something starting with __ and the normal name is an alias.  */
46247 #if defined __stub_$ac_func || defined __stub___$ac_func
46248 choke me
46249 #endif
46250
46251 int
46252 main ()
46253 {
46254 return $ac_func ();
46255   ;
46256   return 0;
46257 }
46258 _ACEOF
46259 rm -f conftest.$ac_objext conftest$ac_exeext
46260 if { (ac_try="$ac_link"
46261 case "(($ac_try" in
46262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46263   *) ac_try_echo=$ac_try;;
46264 esac
46265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46266   (eval "$ac_link") 2>conftest.er1
46267   ac_status=$?
46268   grep -v '^ *+' conftest.er1 >conftest.err
46269   rm -f conftest.er1
46270   cat conftest.err >&5
46271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46272   (exit $ac_status); } && {
46273          test -z "$ac_c_werror_flag" ||
46274          test ! -s conftest.err
46275        } && test -s conftest$ac_exeext &&
46276        $as_test_x conftest$ac_exeext; then
46277   eval "$as_ac_var=yes"
46278 else
46279   echo "$as_me: failed program was:" >&5
46280 sed 's/^/| /' conftest.$ac_ext >&5
46281
46282         eval "$as_ac_var=no"
46283 fi
46284
46285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46286       conftest$ac_exeext conftest.$ac_ext
46287 fi
46288 ac_res=`eval echo '${'$as_ac_var'}'`
46289                { echo "$as_me:$LINENO: result: $ac_res" >&5
46290 echo "${ECHO_T}$ac_res" >&6; }
46291 if test `eval echo '${'$as_ac_var'}'` = yes; then
46292   cat >>confdefs.h <<_ACEOF
46293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46294 _ACEOF
46295
46296 fi
46297 done
46298
46299
46300     if test "$ac_cv_func_localtime" = "yes"; then
46301         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
46302 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
46303 if test "${wx_cv_struct_tm_has_gmtoff+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
46314                     #include <time.h>
46315
46316 int
46317 main ()
46318 {
46319
46320                     struct tm tm;
46321                     tm.tm_gmtoff++;
46322
46323   ;
46324   return 0;
46325 }
46326 _ACEOF
46327 rm -f conftest.$ac_objext
46328 if { (ac_try="$ac_compile"
46329 case "(($ac_try" in
46330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46331   *) ac_try_echo=$ac_try;;
46332 esac
46333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46334   (eval "$ac_compile") 2>conftest.er1
46335   ac_status=$?
46336   grep -v '^ *+' conftest.er1 >conftest.err
46337   rm -f conftest.er1
46338   cat conftest.err >&5
46339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46340   (exit $ac_status); } && {
46341          test -z "$ac_c_werror_flag" ||
46342          test ! -s conftest.err
46343        } && test -s conftest.$ac_objext; then
46344
46345                     wx_cv_struct_tm_has_gmtoff=yes
46346
46347 else
46348   echo "$as_me: failed program was:" >&5
46349 sed 's/^/| /' conftest.$ac_ext >&5
46350
46351         wx_cv_struct_tm_has_gmtoff=no
46352
46353 fi
46354
46355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46356
46357 fi
46358 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
46359 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
46360     fi
46361
46362     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46363         cat >>confdefs.h <<\_ACEOF
46364 #define WX_GMTOFF_IN_TM 1
46365 _ACEOF
46366
46367     fi
46368
46369     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46370 fi
46371
46372
46373 if test "$wxUSE_SOCKETS" = "yes"; then
46374     if test "$wxUSE_MGL" = "1"; then
46375         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46376 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46377         wxUSE_SOCKETS="no"
46378     fi
46379 fi
46380
46381 if test "$wxUSE_SOCKETS" = "yes"; then
46382         if test "$TOOLKIT" != "MSW"; then
46383                 { echo "$as_me:$LINENO: checking for socket" >&5
46384 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
46385 if test "${ac_cv_func_socket+set}" = set; then
46386   echo $ECHO_N "(cached) $ECHO_C" >&6
46387 else
46388   cat >conftest.$ac_ext <<_ACEOF
46389 /* confdefs.h.  */
46390 _ACEOF
46391 cat confdefs.h >>conftest.$ac_ext
46392 cat >>conftest.$ac_ext <<_ACEOF
46393 /* end confdefs.h.  */
46394 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
46395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46396 #define socket innocuous_socket
46397
46398 /* System header to define __stub macros and hopefully few prototypes,
46399     which can conflict with char socket (); below.
46400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46401     <limits.h> exists even on freestanding compilers.  */
46402
46403 #ifdef __STDC__
46404 # include <limits.h>
46405 #else
46406 # include <assert.h>
46407 #endif
46408
46409 #undef socket
46410
46411 /* Override any GCC internal prototype to avoid an error.
46412    Use char because int might match the return type of a GCC
46413    builtin and then its argument prototype would still apply.  */
46414 #ifdef __cplusplus
46415 extern "C"
46416 #endif
46417 char socket ();
46418 /* The GNU C library defines this for functions which it implements
46419     to always fail with ENOSYS.  Some functions are actually named
46420     something starting with __ and the normal name is an alias.  */
46421 #if defined __stub_socket || defined __stub___socket
46422 choke me
46423 #endif
46424
46425 int
46426 main ()
46427 {
46428 return socket ();
46429   ;
46430   return 0;
46431 }
46432 _ACEOF
46433 rm -f conftest.$ac_objext conftest$ac_exeext
46434 if { (ac_try="$ac_link"
46435 case "(($ac_try" in
46436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46437   *) ac_try_echo=$ac_try;;
46438 esac
46439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46440   (eval "$ac_link") 2>conftest.er1
46441   ac_status=$?
46442   grep -v '^ *+' conftest.er1 >conftest.err
46443   rm -f conftest.er1
46444   cat conftest.err >&5
46445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46446   (exit $ac_status); } && {
46447          test -z "$ac_c_werror_flag" ||
46448          test ! -s conftest.err
46449        } && test -s conftest$ac_exeext &&
46450        $as_test_x conftest$ac_exeext; then
46451   ac_cv_func_socket=yes
46452 else
46453   echo "$as_me: failed program was:" >&5
46454 sed 's/^/| /' conftest.$ac_ext >&5
46455
46456         ac_cv_func_socket=no
46457 fi
46458
46459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46460       conftest$ac_exeext conftest.$ac_ext
46461 fi
46462 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46463 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46464 if test $ac_cv_func_socket = yes; then
46465   :
46466 else
46467
46468                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46469 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46470 if test "${ac_cv_lib_socket_socket+set}" = set; then
46471   echo $ECHO_N "(cached) $ECHO_C" >&6
46472 else
46473   ac_check_lib_save_LIBS=$LIBS
46474 LIBS="-lsocket  $LIBS"
46475 cat >conftest.$ac_ext <<_ACEOF
46476 /* confdefs.h.  */
46477 _ACEOF
46478 cat confdefs.h >>conftest.$ac_ext
46479 cat >>conftest.$ac_ext <<_ACEOF
46480 /* end confdefs.h.  */
46481
46482 /* Override any GCC internal prototype to avoid an error.
46483    Use char because int might match the return type of a GCC
46484    builtin and then its argument prototype would still apply.  */
46485 #ifdef __cplusplus
46486 extern "C"
46487 #endif
46488 char socket ();
46489 int
46490 main ()
46491 {
46492 return socket ();
46493   ;
46494   return 0;
46495 }
46496 _ACEOF
46497 rm -f conftest.$ac_objext conftest$ac_exeext
46498 if { (ac_try="$ac_link"
46499 case "(($ac_try" in
46500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46501   *) ac_try_echo=$ac_try;;
46502 esac
46503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46504   (eval "$ac_link") 2>conftest.er1
46505   ac_status=$?
46506   grep -v '^ *+' conftest.er1 >conftest.err
46507   rm -f conftest.er1
46508   cat conftest.err >&5
46509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46510   (exit $ac_status); } && {
46511          test -z "$ac_c_werror_flag" ||
46512          test ! -s conftest.err
46513        } && test -s conftest$ac_exeext &&
46514        $as_test_x conftest$ac_exeext; then
46515   ac_cv_lib_socket_socket=yes
46516 else
46517   echo "$as_me: failed program was:" >&5
46518 sed 's/^/| /' conftest.$ac_ext >&5
46519
46520         ac_cv_lib_socket_socket=no
46521 fi
46522
46523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46524       conftest$ac_exeext conftest.$ac_ext
46525 LIBS=$ac_check_lib_save_LIBS
46526 fi
46527 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46528 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46529 if test $ac_cv_lib_socket_socket = yes; then
46530   if test "$INET_LINK" != " -lsocket"; then
46531                         INET_LINK="$INET_LINK -lsocket"
46532                     fi
46533 else
46534
46535                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46536 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46537                         wxUSE_SOCKETS=no
46538
46539
46540 fi
46541
46542
46543
46544 fi
46545
46546     fi
46547 fi
46548
46549 if test "$wxUSE_SOCKETS" = "yes" ; then
46550                 if test "$TOOLKIT" != "MSW"; then
46551                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46552 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46553 if test "${wx_cv_type_getsockname3+set}" = set; then
46554   echo $ECHO_N "(cached) $ECHO_C" >&6
46555 else
46556
46557                 ac_ext=cpp
46558 ac_cpp='$CXXCPP $CPPFLAGS'
46559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46562
46563                 cat >conftest.$ac_ext <<_ACEOF
46564 /* confdefs.h.  */
46565 _ACEOF
46566 cat confdefs.h >>conftest.$ac_ext
46567 cat >>conftest.$ac_ext <<_ACEOF
46568 /* end confdefs.h.  */
46569
46570                         #include <sys/types.h>
46571                         #include <sys/socket.h>
46572
46573 int
46574 main ()
46575 {
46576
46577                         socklen_t len;
46578                         getsockname(0, 0, &len);
46579
46580   ;
46581   return 0;
46582 }
46583 _ACEOF
46584 rm -f conftest.$ac_objext
46585 if { (ac_try="$ac_compile"
46586 case "(($ac_try" in
46587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46588   *) ac_try_echo=$ac_try;;
46589 esac
46590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46591   (eval "$ac_compile") 2>conftest.er1
46592   ac_status=$?
46593   grep -v '^ *+' conftest.er1 >conftest.err
46594   rm -f conftest.er1
46595   cat conftest.err >&5
46596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46597   (exit $ac_status); } && {
46598          test -z "$ac_cxx_werror_flag" ||
46599          test ! -s conftest.err
46600        } && test -s conftest.$ac_objext; then
46601   wx_cv_type_getsockname3=socklen_t
46602 else
46603   echo "$as_me: failed program was:" >&5
46604 sed 's/^/| /' conftest.$ac_ext >&5
46605
46606
46607                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46608                         if test "$GCC" = yes ; then
46609                             CFLAGS="-Werror $CFLAGS"
46610                         fi
46611
46612                         cat >conftest.$ac_ext <<_ACEOF
46613 /* confdefs.h.  */
46614 _ACEOF
46615 cat confdefs.h >>conftest.$ac_ext
46616 cat >>conftest.$ac_ext <<_ACEOF
46617 /* end confdefs.h.  */
46618
46619                                 #include <sys/types.h>
46620                                 #include <sys/socket.h>
46621
46622 int
46623 main ()
46624 {
46625
46626                                 size_t len;
46627                                 getsockname(0, 0, &len);
46628
46629   ;
46630   return 0;
46631 }
46632 _ACEOF
46633 rm -f conftest.$ac_objext
46634 if { (ac_try="$ac_compile"
46635 case "(($ac_try" in
46636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46637   *) ac_try_echo=$ac_try;;
46638 esac
46639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46640   (eval "$ac_compile") 2>conftest.er1
46641   ac_status=$?
46642   grep -v '^ *+' conftest.er1 >conftest.err
46643   rm -f conftest.er1
46644   cat conftest.err >&5
46645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46646   (exit $ac_status); } && {
46647          test -z "$ac_cxx_werror_flag" ||
46648          test ! -s conftest.err
46649        } && test -s conftest.$ac_objext; then
46650   wx_cv_type_getsockname3=size_t
46651 else
46652   echo "$as_me: failed program was:" >&5
46653 sed 's/^/| /' conftest.$ac_ext >&5
46654
46655         cat >conftest.$ac_ext <<_ACEOF
46656 /* confdefs.h.  */
46657 _ACEOF
46658 cat confdefs.h >>conftest.$ac_ext
46659 cat >>conftest.$ac_ext <<_ACEOF
46660 /* end confdefs.h.  */
46661
46662                                     #include <sys/types.h>
46663                                     #include <sys/socket.h>
46664
46665 int
46666 main ()
46667 {
46668
46669                                     int len;
46670                                     getsockname(0, 0, &len);
46671
46672   ;
46673   return 0;
46674 }
46675 _ACEOF
46676 rm -f conftest.$ac_objext
46677 if { (ac_try="$ac_compile"
46678 case "(($ac_try" in
46679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46680   *) ac_try_echo=$ac_try;;
46681 esac
46682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46683   (eval "$ac_compile") 2>conftest.er1
46684   ac_status=$?
46685   grep -v '^ *+' conftest.er1 >conftest.err
46686   rm -f conftest.er1
46687   cat conftest.err >&5
46688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46689   (exit $ac_status); } && {
46690          test -z "$ac_cxx_werror_flag" ||
46691          test ! -s conftest.err
46692        } && test -s conftest.$ac_objext; then
46693   wx_cv_type_getsockname3=int
46694 else
46695   echo "$as_me: failed program was:" >&5
46696 sed 's/^/| /' conftest.$ac_ext >&5
46697
46698         wx_cv_type_getsockname3=unknown
46699
46700 fi
46701
46702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46703
46704 fi
46705
46706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46707
46708                         CFLAGS="$CFLAGS_OLD"
46709
46710
46711 fi
46712
46713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46714                 ac_ext=c
46715 ac_cpp='$CPP $CPPFLAGS'
46716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46719
46720
46721 fi
46722 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46723 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46724
46725         if test "$wx_cv_type_getsockname3" = "unknown"; then
46726             wxUSE_SOCKETS=no
46727             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46728 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46729         else
46730             cat >>confdefs.h <<_ACEOF
46731 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46732 _ACEOF
46733
46734         fi
46735                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46736 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46737 if test "${wx_cv_type_getsockopt5+set}" = set; then
46738   echo $ECHO_N "(cached) $ECHO_C" >&6
46739 else
46740
46741                                                                                                 ac_ext=cpp
46742 ac_cpp='$CXXCPP $CPPFLAGS'
46743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46746
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
46754                         #include <sys/types.h>
46755                         #include <sys/socket.h>
46756
46757 int
46758 main ()
46759 {
46760
46761                         socklen_t len;
46762                         getsockopt(0, 0, 0, 0, &len);
46763
46764   ;
46765   return 0;
46766 }
46767 _ACEOF
46768 rm -f conftest.$ac_objext
46769 if { (ac_try="$ac_compile"
46770 case "(($ac_try" in
46771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46772   *) ac_try_echo=$ac_try;;
46773 esac
46774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46775   (eval "$ac_compile") 2>conftest.er1
46776   ac_status=$?
46777   grep -v '^ *+' conftest.er1 >conftest.err
46778   rm -f conftest.er1
46779   cat conftest.err >&5
46780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46781   (exit $ac_status); } && {
46782          test -z "$ac_cxx_werror_flag" ||
46783          test ! -s conftest.err
46784        } && test -s conftest.$ac_objext; then
46785   wx_cv_type_getsockopt5=socklen_t
46786 else
46787   echo "$as_me: failed program was:" >&5
46788 sed 's/^/| /' conftest.$ac_ext >&5
46789
46790
46791                         cat >conftest.$ac_ext <<_ACEOF
46792 /* confdefs.h.  */
46793 _ACEOF
46794 cat confdefs.h >>conftest.$ac_ext
46795 cat >>conftest.$ac_ext <<_ACEOF
46796 /* end confdefs.h.  */
46797
46798                                 #include <sys/types.h>
46799                                 #include <sys/socket.h>
46800
46801 int
46802 main ()
46803 {
46804
46805                                 size_t len;
46806                                 getsockopt(0, 0, 0, 0, &len);
46807
46808   ;
46809   return 0;
46810 }
46811 _ACEOF
46812 rm -f conftest.$ac_objext
46813 if { (ac_try="$ac_compile"
46814 case "(($ac_try" in
46815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46816   *) ac_try_echo=$ac_try;;
46817 esac
46818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46819   (eval "$ac_compile") 2>conftest.er1
46820   ac_status=$?
46821   grep -v '^ *+' conftest.er1 >conftest.err
46822   rm -f conftest.er1
46823   cat conftest.err >&5
46824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46825   (exit $ac_status); } && {
46826          test -z "$ac_cxx_werror_flag" ||
46827          test ! -s conftest.err
46828        } && test -s conftest.$ac_objext; then
46829   wx_cv_type_getsockopt5=size_t
46830 else
46831   echo "$as_me: failed program was:" >&5
46832 sed 's/^/| /' conftest.$ac_ext >&5
46833
46834         cat >conftest.$ac_ext <<_ACEOF
46835 /* confdefs.h.  */
46836 _ACEOF
46837 cat confdefs.h >>conftest.$ac_ext
46838 cat >>conftest.$ac_ext <<_ACEOF
46839 /* end confdefs.h.  */
46840
46841                                     #include <sys/types.h>
46842                                     #include <sys/socket.h>
46843
46844 int
46845 main ()
46846 {
46847
46848                                     int len;
46849                                     getsockopt(0, 0, 0, 0, &len);
46850
46851   ;
46852   return 0;
46853 }
46854 _ACEOF
46855 rm -f conftest.$ac_objext
46856 if { (ac_try="$ac_compile"
46857 case "(($ac_try" in
46858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46859   *) ac_try_echo=$ac_try;;
46860 esac
46861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46862   (eval "$ac_compile") 2>conftest.er1
46863   ac_status=$?
46864   grep -v '^ *+' conftest.er1 >conftest.err
46865   rm -f conftest.er1
46866   cat conftest.err >&5
46867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46868   (exit $ac_status); } && {
46869          test -z "$ac_cxx_werror_flag" ||
46870          test ! -s conftest.err
46871        } && test -s conftest.$ac_objext; then
46872   wx_cv_type_getsockopt5=int
46873 else
46874   echo "$as_me: failed program was:" >&5
46875 sed 's/^/| /' conftest.$ac_ext >&5
46876
46877         wx_cv_type_getsockopt5=unknown
46878
46879 fi
46880
46881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46882
46883 fi
46884
46885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46886
46887
46888 fi
46889
46890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46891                 ac_ext=c
46892 ac_cpp='$CPP $CPPFLAGS'
46893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46896
46897
46898 fi
46899 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
46900 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
46901
46902         if test "$wx_cv_type_getsockopt5" = "unknown"; then
46903             wxUSE_SOCKETS=no
46904             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46905 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46906         else
46907             cat >>confdefs.h <<_ACEOF
46908 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
46909 _ACEOF
46910
46911         fi
46912     fi
46913 fi
46914
46915 if test "$wxUSE_SOCKETS" = "yes" ; then
46916     cat >>confdefs.h <<\_ACEOF
46917 #define wxUSE_SOCKETS 1
46918 _ACEOF
46919
46920     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46921 fi
46922
46923 if test "$wxUSE_PROTOCOL" = "yes"; then
46924     if test "$wxUSE_SOCKETS" != "yes"; then
46925         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
46926 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
46927         wxUSE_PROTOCOL=no
46928     fi
46929 fi
46930
46931 if test "$wxUSE_PROTOCOL" = "yes"; then
46932     cat >>confdefs.h <<\_ACEOF
46933 #define wxUSE_PROTOCOL 1
46934 _ACEOF
46935
46936
46937     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
46938         cat >>confdefs.h <<\_ACEOF
46939 #define wxUSE_PROTOCOL_HTTP 1
46940 _ACEOF
46941
46942     fi
46943     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
46944         cat >>confdefs.h <<\_ACEOF
46945 #define wxUSE_PROTOCOL_FTP 1
46946 _ACEOF
46947
46948     fi
46949     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
46950         cat >>confdefs.h <<\_ACEOF
46951 #define wxUSE_PROTOCOL_FILE 1
46952 _ACEOF
46953
46954     fi
46955 else
46956     if test "$wxUSE_FS_INET" = "yes"; then
46957         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
46958 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
46959         wxUSE_FS_INET="no"
46960     fi
46961 fi
46962
46963 if test "$wxUSE_URL" = "yes"; then
46964     if test "$wxUSE_PROTOCOL" != "yes"; then
46965         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
46966 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
46967         wxUSE_URL=no
46968     fi
46969     if test "$wxUSE_URL" = "yes"; then
46970         cat >>confdefs.h <<\_ACEOF
46971 #define wxUSE_URL 1
46972 _ACEOF
46973
46974     fi
46975 fi
46976
46977 if test "$wxUSE_VARIANT" = "yes"; then
46978     cat >>confdefs.h <<\_ACEOF
46979 #define wxUSE_VARIANT 1
46980 _ACEOF
46981
46982 fi
46983
46984 if test "$wxUSE_FS_INET" = "yes"; then
46985   cat >>confdefs.h <<\_ACEOF
46986 #define wxUSE_FS_INET 1
46987 _ACEOF
46988
46989 fi
46990
46991
46992 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
46993     wxUSE_JOYSTICK=no
46994
46995         if test "$TOOLKIT" = "MSW"; then
46996         wxUSE_JOYSTICK=yes
46997
46998         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
46999         if test "$USE_DARWIN" = 1; then
47000                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
47001 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
47002             ac_ext=cpp
47003 ac_cpp='$CXXCPP $CPPFLAGS'
47004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47007
47008             cat >conftest.$ac_ext <<_ACEOF
47009 /* confdefs.h.  */
47010 _ACEOF
47011 cat confdefs.h >>conftest.$ac_ext
47012 cat >>conftest.$ac_ext <<_ACEOF
47013 /* end confdefs.h.  */
47014  #include <IOKit/hid/IOHIDLib.h>
47015 int
47016 main ()
47017 {
47018  IOHIDQueueInterface *qi = NULL;
47019                               IOHIDCallbackFunction cb = NULL;
47020                               qi->setEventCallout(NULL, cb, NULL, NULL);
47021   ;
47022   return 0;
47023 }
47024 _ACEOF
47025 rm -f conftest.$ac_objext
47026 if { (ac_try="$ac_compile"
47027 case "(($ac_try" in
47028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47029   *) ac_try_echo=$ac_try;;
47030 esac
47031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47032   (eval "$ac_compile") 2>conftest.er1
47033   ac_status=$?
47034   grep -v '^ *+' conftest.er1 >conftest.err
47035   rm -f conftest.er1
47036   cat conftest.err >&5
47037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47038   (exit $ac_status); } && {
47039          test -z "$ac_cxx_werror_flag" ||
47040          test ! -s conftest.err
47041        } && test -s conftest.$ac_objext; then
47042    wxUSE_JOYSTICK=yes
47043
47044 else
47045   echo "$as_me: failed program was:" >&5
47046 sed 's/^/| /' conftest.$ac_ext >&5
47047
47048
47049 fi
47050
47051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47052             ac_ext=c
47053 ac_cpp='$CPP $CPPFLAGS'
47054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47057
47058             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
47059 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
47060         fi
47061
47062         else
47063                 if test "$wxUSE_MGL" != "1"; then
47064
47065 for ac_header in linux/joystick.h
47066 do
47067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47071   echo $ECHO_N "(cached) $ECHO_C" >&6
47072 else
47073   cat >conftest.$ac_ext <<_ACEOF
47074 /* confdefs.h.  */
47075 _ACEOF
47076 cat confdefs.h >>conftest.$ac_ext
47077 cat >>conftest.$ac_ext <<_ACEOF
47078 /* end confdefs.h.  */
47079 $ac_includes_default
47080
47081 #include <$ac_header>
47082 _ACEOF
47083 rm -f conftest.$ac_objext
47084 if { (ac_try="$ac_compile"
47085 case "(($ac_try" in
47086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47087   *) ac_try_echo=$ac_try;;
47088 esac
47089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47090   (eval "$ac_compile") 2>conftest.er1
47091   ac_status=$?
47092   grep -v '^ *+' conftest.er1 >conftest.err
47093   rm -f conftest.er1
47094   cat conftest.err >&5
47095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47096   (exit $ac_status); } && {
47097          test -z "$ac_c_werror_flag" ||
47098          test ! -s conftest.err
47099        } && test -s conftest.$ac_objext; then
47100   eval "$as_ac_Header=yes"
47101 else
47102   echo "$as_me: failed program was:" >&5
47103 sed 's/^/| /' conftest.$ac_ext >&5
47104
47105         eval "$as_ac_Header=no"
47106 fi
47107
47108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47109 fi
47110 ac_res=`eval echo '${'$as_ac_Header'}'`
47111                { echo "$as_me:$LINENO: result: $ac_res" >&5
47112 echo "${ECHO_T}$ac_res" >&6; }
47113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47114   cat >>confdefs.h <<_ACEOF
47115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47116 _ACEOF
47117  wxUSE_JOYSTICK=yes
47118 fi
47119
47120 done
47121
47122         fi
47123     fi
47124
47125     if test "$wxUSE_JOYSTICK" = "yes"; then
47126         cat >>confdefs.h <<\_ACEOF
47127 #define wxUSE_JOYSTICK 1
47128 _ACEOF
47129
47130         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47131     else
47132         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47133 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
47134     fi
47135 fi
47136
47137
47138
47139 if test "$wxUSE_FONTENUM" = "yes" ; then
47140   cat >>confdefs.h <<\_ACEOF
47141 #define wxUSE_FONTENUM 1
47142 _ACEOF
47143
47144 fi
47145
47146 if test "$wxUSE_FONTMAP" = "yes" ; then
47147   cat >>confdefs.h <<\_ACEOF
47148 #define wxUSE_FONTMAP 1
47149 _ACEOF
47150
47151 fi
47152
47153 if test "$wxUSE_UNICODE" = "yes" ; then
47154   cat >>confdefs.h <<\_ACEOF
47155 #define wxUSE_UNICODE 1
47156 _ACEOF
47157
47158
47159   if test "$USE_WIN32" != 1; then
47160       wxUSE_UNICODE_MSLU=no
47161   fi
47162
47163   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47164         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47165 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47166 if test "${ac_cv_lib_unicows_main+set}" = set; then
47167   echo $ECHO_N "(cached) $ECHO_C" >&6
47168 else
47169   ac_check_lib_save_LIBS=$LIBS
47170 LIBS="-lunicows  $LIBS"
47171 cat >conftest.$ac_ext <<_ACEOF
47172 /* confdefs.h.  */
47173 _ACEOF
47174 cat confdefs.h >>conftest.$ac_ext
47175 cat >>conftest.$ac_ext <<_ACEOF
47176 /* end confdefs.h.  */
47177
47178
47179 int
47180 main ()
47181 {
47182 return main ();
47183   ;
47184   return 0;
47185 }
47186 _ACEOF
47187 rm -f conftest.$ac_objext conftest$ac_exeext
47188 if { (ac_try="$ac_link"
47189 case "(($ac_try" in
47190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47191   *) ac_try_echo=$ac_try;;
47192 esac
47193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47194   (eval "$ac_link") 2>conftest.er1
47195   ac_status=$?
47196   grep -v '^ *+' conftest.er1 >conftest.err
47197   rm -f conftest.er1
47198   cat conftest.err >&5
47199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47200   (exit $ac_status); } && {
47201          test -z "$ac_c_werror_flag" ||
47202          test ! -s conftest.err
47203        } && test -s conftest$ac_exeext &&
47204        $as_test_x conftest$ac_exeext; then
47205   ac_cv_lib_unicows_main=yes
47206 else
47207   echo "$as_me: failed program was:" >&5
47208 sed 's/^/| /' conftest.$ac_ext >&5
47209
47210         ac_cv_lib_unicows_main=no
47211 fi
47212
47213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47214       conftest$ac_exeext conftest.$ac_ext
47215 LIBS=$ac_check_lib_save_LIBS
47216 fi
47217 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47218 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
47219 if test $ac_cv_lib_unicows_main = yes; then
47220
47221                 cat >>confdefs.h <<\_ACEOF
47222 #define wxUSE_UNICODE_MSLU 1
47223 _ACEOF
47224
47225
47226 else
47227
47228                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47229                              Applications will only run on Windows NT/2000/XP!" >&5
47230 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47231                              Applications will only run on Windows NT/2000/XP!" >&2;}
47232                 wxUSE_UNICODE_MSLU=no
47233
47234 fi
47235
47236     fi
47237 fi
47238
47239 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47240     cat >>confdefs.h <<\_ACEOF
47241 #define wxUSE_UNICODE_UTF8 1
47242 _ACEOF
47243
47244
47245     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47246         cat >>confdefs.h <<\_ACEOF
47247 #define wxUSE_UTF8_LOCALE_ONLY 1
47248 _ACEOF
47249
47250     fi
47251 fi
47252
47253 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
47254   cat >>confdefs.h <<\_ACEOF
47255 #define wxUSE_EXPERIMENTAL_PRINTF 1
47256 _ACEOF
47257
47258 fi
47259
47260
47261 if test "$wxUSE_CONSTRAINTS" = "yes"; then
47262     cat >>confdefs.h <<\_ACEOF
47263 #define wxUSE_CONSTRAINTS 1
47264 _ACEOF
47265
47266     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47267 fi
47268
47269 if test "$wxUSE_MDI" = "yes"; then
47270     cat >>confdefs.h <<\_ACEOF
47271 #define wxUSE_MDI 1
47272 _ACEOF
47273
47274
47275     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47276         cat >>confdefs.h <<\_ACEOF
47277 #define wxUSE_MDI_ARCHITECTURE 1
47278 _ACEOF
47279
47280         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47281     fi
47282 fi
47283
47284 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47285     cat >>confdefs.h <<\_ACEOF
47286 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
47287 _ACEOF
47288
47289     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47290     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47291         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
47292     fi
47293 fi
47294
47295 if test "$wxUSE_HELP" = "yes"; then
47296     cat >>confdefs.h <<\_ACEOF
47297 #define wxUSE_HELP 1
47298 _ACEOF
47299
47300     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47301
47302     if test "$wxUSE_MSW" = 1; then
47303       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47304         cat >>confdefs.h <<\_ACEOF
47305 #define wxUSE_MS_HTML_HELP 1
47306 _ACEOF
47307
47308       fi
47309     fi
47310
47311     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47312       if test "$wxUSE_HTML" = "yes"; then
47313         cat >>confdefs.h <<\_ACEOF
47314 #define wxUSE_WXHTML_HELP 1
47315 _ACEOF
47316
47317       else
47318         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47319 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47320         wxUSE_WXHTML_HELP=no
47321       fi
47322     fi
47323 fi
47324
47325 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47326     if test "$wxUSE_CONSTRAINTS" != "yes"; then
47327         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
47328 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
47329     else
47330         cat >>confdefs.h <<\_ACEOF
47331 #define wxUSE_PRINTING_ARCHITECTURE 1
47332 _ACEOF
47333
47334     fi
47335     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47336 fi
47337
47338 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47339   cat >>confdefs.h <<\_ACEOF
47340 #define wxUSE_POSTSCRIPT 1
47341 _ACEOF
47342
47343 fi
47344
47345 cat >>confdefs.h <<\_ACEOF
47346 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47347 _ACEOF
47348
47349
47350 cat >>confdefs.h <<\_ACEOF
47351 #define wxUSE_NORMALIZED_PS_FONTS 1
47352 _ACEOF
47353
47354
47355 if test "$wxUSE_SVG" = "yes"; then
47356     cat >>confdefs.h <<\_ACEOF
47357 #define wxUSE_SVG 1
47358 _ACEOF
47359
47360 fi
47361
47362
47363 if test "$wxUSE_METAFILE" = "yes"; then
47364     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47365         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47366 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47367         wxUSE_METAFILE=no
47368     fi
47369 fi
47370
47371
47372 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
47373                           -o "$wxUSE_CLIPBOARD"     = "yes" \
47374                           -o "$wxUSE_OLE"     = "yes" \
47375                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47376     { echo "$as_me:$LINENO: checking for ole2.h" >&5
47377 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
47378 if test "${ac_cv_header_ole2_h+set}" = set; then
47379   echo $ECHO_N "(cached) $ECHO_C" >&6
47380 else
47381   cat >conftest.$ac_ext <<_ACEOF
47382 /* confdefs.h.  */
47383 _ACEOF
47384 cat confdefs.h >>conftest.$ac_ext
47385 cat >>conftest.$ac_ext <<_ACEOF
47386 /* end confdefs.h.  */
47387
47388
47389 #include <ole2.h>
47390 _ACEOF
47391 rm -f conftest.$ac_objext
47392 if { (ac_try="$ac_compile"
47393 case "(($ac_try" in
47394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47395   *) ac_try_echo=$ac_try;;
47396 esac
47397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47398   (eval "$ac_compile") 2>conftest.er1
47399   ac_status=$?
47400   grep -v '^ *+' conftest.er1 >conftest.err
47401   rm -f conftest.er1
47402   cat conftest.err >&5
47403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47404   (exit $ac_status); } && {
47405          test -z "$ac_c_werror_flag" ||
47406          test ! -s conftest.err
47407        } && test -s conftest.$ac_objext; then
47408   ac_cv_header_ole2_h=yes
47409 else
47410   echo "$as_me: failed program was:" >&5
47411 sed 's/^/| /' conftest.$ac_ext >&5
47412
47413         ac_cv_header_ole2_h=no
47414 fi
47415
47416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47417 fi
47418 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47419 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47420
47421
47422
47423     if test "$ac_cv_header_ole2_h" = "yes" ; then
47424         if test "$GCC" = yes ; then
47425             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47426 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47427             cat >conftest.$ac_ext <<_ACEOF
47428 /* confdefs.h.  */
47429 _ACEOF
47430 cat confdefs.h >>conftest.$ac_ext
47431 cat >>conftest.$ac_ext <<_ACEOF
47432 /* end confdefs.h.  */
47433 #include <windows.h>
47434                             #include <ole2.h>
47435 int
47436 main ()
47437 {
47438
47439   ;
47440   return 0;
47441 }
47442 _ACEOF
47443 rm -f conftest.$ac_objext
47444 if { (ac_try="$ac_compile"
47445 case "(($ac_try" in
47446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47447   *) ac_try_echo=$ac_try;;
47448 esac
47449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47450   (eval "$ac_compile") 2>conftest.er1
47451   ac_status=$?
47452   grep -v '^ *+' conftest.er1 >conftest.err
47453   rm -f conftest.er1
47454   cat conftest.err >&5
47455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47456   (exit $ac_status); } && {
47457          test -z "$ac_c_werror_flag" ||
47458          test ! -s conftest.err
47459        } && test -s conftest.$ac_objext; then
47460   { echo "$as_me:$LINENO: result: no" >&5
47461 echo "${ECHO_T}no" >&6; }
47462 else
47463   echo "$as_me: failed program was:" >&5
47464 sed 's/^/| /' conftest.$ac_ext >&5
47465
47466         { echo "$as_me:$LINENO: result: yes" >&5
47467 echo "${ECHO_T}yes" >&6; }
47468                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47469 fi
47470
47471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47472             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47473             if test "$wxUSE_OLE" = "yes" ; then
47474                 cat >>confdefs.h <<\_ACEOF
47475 #define wxUSE_OLE 1
47476 _ACEOF
47477
47478                 cat >>confdefs.h <<\_ACEOF
47479 #define wxUSE_OLE_AUTOMATION 1
47480 _ACEOF
47481
47482                 cat >>confdefs.h <<\_ACEOF
47483 #define wxUSE_ACTIVEX 1
47484 _ACEOF
47485
47486                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47487             fi
47488         fi
47489
47490                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47491             cat >>confdefs.h <<\_ACEOF
47492 #define wxUSE_DATAOBJ 1
47493 _ACEOF
47494
47495         fi
47496     else
47497         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47498 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47499
47500         wxUSE_CLIPBOARD=no
47501         wxUSE_DRAG_AND_DROP=no
47502         wxUSE_DATAOBJ=no
47503         wxUSE_OLE=no
47504     fi
47505
47506     if test "$wxUSE_METAFILE" = "yes"; then
47507         cat >>confdefs.h <<\_ACEOF
47508 #define wxUSE_METAFILE 1
47509 _ACEOF
47510
47511
47512                 cat >>confdefs.h <<\_ACEOF
47513 #define wxUSE_ENH_METAFILE 1
47514 _ACEOF
47515
47516     fi
47517 fi
47518
47519 if test "$wxUSE_IPC" = "yes"; then
47520     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47521         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47522 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47523         wxUSE_IPC=no
47524     fi
47525
47526     if test "$wxUSE_IPC" = "yes"; then
47527         cat >>confdefs.h <<\_ACEOF
47528 #define wxUSE_IPC 1
47529 _ACEOF
47530
47531         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47532     fi
47533 fi
47534
47535 if test "$wxUSE_DATAOBJ" = "yes"; then
47536     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47537         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47538 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47539         wxUSE_DATAOBJ=no
47540     else
47541         cat >>confdefs.h <<\_ACEOF
47542 #define wxUSE_DATAOBJ 1
47543 _ACEOF
47544
47545     fi
47546 else
47547     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47548 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47549     wxUSE_CLIPBOARD=no
47550     wxUSE_DRAG_AND_DROP=no
47551 fi
47552
47553 if test "$wxUSE_CLIPBOARD" = "yes"; then
47554     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47555         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47556 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47557         wxUSE_CLIPBOARD=no
47558     fi
47559
47560     if test "$wxUSE_CLIPBOARD" = "yes"; then
47561         cat >>confdefs.h <<\_ACEOF
47562 #define wxUSE_CLIPBOARD 1
47563 _ACEOF
47564
47565     fi
47566 fi
47567
47568 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47569     if test "$wxUSE_GTK" = 1; then
47570         if test "$WXGTK12" != 1; then
47571             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
47572 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
47573             wxUSE_DRAG_AND_DROP=no
47574         fi
47575     fi
47576
47577     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47578             "$wxUSE_DFB" = 1; then
47579         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47580 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47581         wxUSE_DRAG_AND_DROP=no
47582     fi
47583
47584     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47585         cat >>confdefs.h <<\_ACEOF
47586 #define wxUSE_DRAG_AND_DROP 1
47587 _ACEOF
47588
47589     fi
47590
47591 fi
47592
47593 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47594     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47595 fi
47596
47597 if test "$wxUSE_SPLINES" = "yes" ; then
47598   cat >>confdefs.h <<\_ACEOF
47599 #define wxUSE_SPLINES 1
47600 _ACEOF
47601
47602 fi
47603
47604 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47605   cat >>confdefs.h <<\_ACEOF
47606 #define wxUSE_MOUSEWHEEL 1
47607 _ACEOF
47608
47609 fi
47610
47611
47612 USES_CONTROLS=0
47613 if test "$wxUSE_CONTROLS" = "yes"; then
47614   USES_CONTROLS=1
47615 fi
47616
47617 if test "$wxUSE_ACCEL" = "yes"; then
47618   cat >>confdefs.h <<\_ACEOF
47619 #define wxUSE_ACCEL 1
47620 _ACEOF
47621
47622   USES_CONTROLS=1
47623 fi
47624
47625 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47626   cat >>confdefs.h <<\_ACEOF
47627 #define wxUSE_ANIMATIONCTRL 1
47628 _ACEOF
47629
47630   USES_CONTROLS=1
47631   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47632 fi
47633
47634 if test "$wxUSE_BUTTON" = "yes"; then
47635   cat >>confdefs.h <<\_ACEOF
47636 #define wxUSE_BUTTON 1
47637 _ACEOF
47638
47639   USES_CONTROLS=1
47640 fi
47641
47642 if test "$wxUSE_BMPBUTTON" = "yes"; then
47643   cat >>confdefs.h <<\_ACEOF
47644 #define wxUSE_BMPBUTTON 1
47645 _ACEOF
47646
47647   USES_CONTROLS=1
47648 fi
47649
47650 if test "$wxUSE_CALCTRL" = "yes"; then
47651   cat >>confdefs.h <<\_ACEOF
47652 #define wxUSE_CALENDARCTRL 1
47653 _ACEOF
47654
47655   USES_CONTROLS=1
47656   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47657 fi
47658
47659 if test "$wxUSE_CARET" = "yes"; then
47660   cat >>confdefs.h <<\_ACEOF
47661 #define wxUSE_CARET 1
47662 _ACEOF
47663
47664   USES_CONTROLS=1
47665   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47666 fi
47667
47668 if test "$wxUSE_COLLPANE" = "yes"; then
47669     cat >>confdefs.h <<\_ACEOF
47670 #define wxUSE_COLLPANE 1
47671 _ACEOF
47672
47673     USES_CONTROLS=1
47674     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47675 fi
47676
47677 if test "$wxUSE_COMBOBOX" = "yes"; then
47678   cat >>confdefs.h <<\_ACEOF
47679 #define wxUSE_COMBOBOX 1
47680 _ACEOF
47681
47682   USES_CONTROLS=1
47683 fi
47684
47685 if test "$wxUSE_COMBOCTRL" = "yes"; then
47686   cat >>confdefs.h <<\_ACEOF
47687 #define wxUSE_COMBOCTRL 1
47688 _ACEOF
47689
47690   USES_CONTROLS=1
47691 fi
47692
47693 if test "$wxUSE_CHOICE" = "yes"; then
47694   cat >>confdefs.h <<\_ACEOF
47695 #define wxUSE_CHOICE 1
47696 _ACEOF
47697
47698   USES_CONTROLS=1
47699 fi
47700
47701 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47702     cat >>confdefs.h <<\_ACEOF
47703 #define wxUSE_CHOICEBOOK 1
47704 _ACEOF
47705
47706     USES_CONTROLS=1
47707 fi
47708
47709 if test "$wxUSE_CHECKBOX" = "yes"; then
47710   cat >>confdefs.h <<\_ACEOF
47711 #define wxUSE_CHECKBOX 1
47712 _ACEOF
47713
47714   USES_CONTROLS=1
47715 fi
47716
47717 if test "$wxUSE_CHECKLST" = "yes"; then
47718   cat >>confdefs.h <<\_ACEOF
47719 #define wxUSE_CHECKLISTBOX 1
47720 _ACEOF
47721
47722   USES_CONTROLS=1
47723   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
47724 fi
47725
47726 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47727   cat >>confdefs.h <<\_ACEOF
47728 #define wxUSE_COLOURPICKERCTRL 1
47729 _ACEOF
47730
47731   USES_CONTROLS=1
47732 fi
47733
47734 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47735   cat >>confdefs.h <<\_ACEOF
47736 #define wxUSE_DATEPICKCTRL 1
47737 _ACEOF
47738
47739   USES_CONTROLS=1
47740 fi
47741
47742 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47743   cat >>confdefs.h <<\_ACEOF
47744 #define wxUSE_DIRPICKERCTRL 1
47745 _ACEOF
47746
47747   USES_CONTROLS=1
47748 fi
47749
47750 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47751   cat >>confdefs.h <<\_ACEOF
47752 #define wxUSE_FILEPICKERCTRL 1
47753 _ACEOF
47754
47755   USES_CONTROLS=1
47756 fi
47757
47758 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47759   cat >>confdefs.h <<\_ACEOF
47760 #define wxUSE_FONTPICKERCTRL 1
47761 _ACEOF
47762
47763   USES_CONTROLS=1
47764 fi
47765
47766 if test "$wxUSE_DISPLAY" = "yes"; then
47767     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47768         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47769 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47770         wxUSE_DISPLAY=no
47771     else
47772         cat >>confdefs.h <<\_ACEOF
47773 #define wxUSE_DISPLAY 1
47774 _ACEOF
47775
47776         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
47777     fi
47778 fi
47779
47780 if test "$wxUSE_DETECT_SM" = "yes"; then
47781     cat >>confdefs.h <<\_ACEOF
47782 #define wxUSE_DETECT_SM 1
47783 _ACEOF
47784
47785 fi
47786
47787 if test "$wxUSE_GAUGE" = "yes"; then
47788   cat >>confdefs.h <<\_ACEOF
47789 #define wxUSE_GAUGE 1
47790 _ACEOF
47791
47792   USES_CONTROLS=1
47793 fi
47794
47795 if test "$wxUSE_GRID" = "yes"; then
47796   cat >>confdefs.h <<\_ACEOF
47797 #define wxUSE_GRID 1
47798 _ACEOF
47799
47800   USES_CONTROLS=1
47801   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47802 fi
47803
47804 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47805   cat >>confdefs.h <<\_ACEOF
47806 #define wxUSE_HYPERLINKCTRL 1
47807 _ACEOF
47808
47809   USES_CONTROLS=1
47810 fi
47811
47812 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47813   cat >>confdefs.h <<\_ACEOF
47814 #define wxUSE_BITMAPCOMBOBOX 1
47815 _ACEOF
47816
47817   USES_CONTROLS=1
47818 fi
47819
47820 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47821   cat >>confdefs.h <<\_ACEOF
47822 #define wxUSE_DATAVIEWCTRL 1
47823 _ACEOF
47824
47825   USES_CONTROLS=1
47826   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47827 fi
47828
47829 if test "$wxUSE_IMAGLIST" = "yes"; then
47830     cat >>confdefs.h <<\_ACEOF
47831 #define wxUSE_IMAGLIST 1
47832 _ACEOF
47833
47834 fi
47835
47836 if test "$wxUSE_LISTBOOK" = "yes"; then
47837     cat >>confdefs.h <<\_ACEOF
47838 #define wxUSE_LISTBOOK 1
47839 _ACEOF
47840
47841     USES_CONTROLS=1
47842 fi
47843
47844 if test "$wxUSE_LISTBOX" = "yes"; then
47845     cat >>confdefs.h <<\_ACEOF
47846 #define wxUSE_LISTBOX 1
47847 _ACEOF
47848
47849     USES_CONTROLS=1
47850     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
47851 fi
47852
47853 if test "$wxUSE_LISTCTRL" = "yes"; then
47854     if test "$wxUSE_IMAGLIST" = "yes"; then
47855         cat >>confdefs.h <<\_ACEOF
47856 #define wxUSE_LISTCTRL 1
47857 _ACEOF
47858
47859         USES_CONTROLS=1
47860         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47861     else
47862         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47863 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47864     fi
47865 fi
47866
47867 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47868     cat >>confdefs.h <<\_ACEOF
47869 #define wxUSE_EDITABLELISTBOX 1
47870 _ACEOF
47871
47872     USES_CONTROLS=1
47873     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
47874 fi
47875
47876 if test "$wxUSE_NOTEBOOK" = "yes"; then
47877     cat >>confdefs.h <<\_ACEOF
47878 #define wxUSE_NOTEBOOK 1
47879 _ACEOF
47880
47881     USES_CONTROLS=1
47882     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
47883 fi
47884
47885 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
47886   cat >>confdefs.h <<\_ACEOF
47887 #define wxUSE_ODCOMBOBOX 1
47888 _ACEOF
47889
47890   USES_CONTROLS=1
47891   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
47892 fi
47893
47894
47895 if test "$wxUSE_RADIOBOX" = "yes"; then
47896     cat >>confdefs.h <<\_ACEOF
47897 #define wxUSE_RADIOBOX 1
47898 _ACEOF
47899
47900     USES_CONTROLS=1
47901 fi
47902
47903 if test "$wxUSE_RADIOBTN" = "yes"; then
47904     cat >>confdefs.h <<\_ACEOF
47905 #define wxUSE_RADIOBTN 1
47906 _ACEOF
47907
47908     USES_CONTROLS=1
47909 fi
47910
47911 if test "$wxUSE_SASH" = "yes"; then
47912     cat >>confdefs.h <<\_ACEOF
47913 #define wxUSE_SASH 1
47914 _ACEOF
47915
47916     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
47917 fi
47918
47919 if test "$wxUSE_SCROLLBAR" = "yes"; then
47920     cat >>confdefs.h <<\_ACEOF
47921 #define wxUSE_SCROLLBAR 1
47922 _ACEOF
47923
47924     USES_CONTROLS=1
47925     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
47926 fi
47927
47928 if test "$wxUSE_SEARCHCTRL" = "yes"; then
47929     cat >>confdefs.h <<\_ACEOF
47930 #define wxUSE_SEARCHCTRL 1
47931 _ACEOF
47932
47933     USES_CONTROLS=1
47934 fi
47935
47936 if test "$wxUSE_SLIDER" = "yes"; then
47937     cat >>confdefs.h <<\_ACEOF
47938 #define wxUSE_SLIDER 1
47939 _ACEOF
47940
47941     USES_CONTROLS=1
47942 fi
47943
47944 if test "$wxUSE_SPINBTN" = "yes"; then
47945     cat >>confdefs.h <<\_ACEOF
47946 #define wxUSE_SPINBTN 1
47947 _ACEOF
47948
47949     USES_CONTROLS=1
47950 fi
47951
47952 if test "$wxUSE_SPINCTRL" = "yes"; then
47953     cat >>confdefs.h <<\_ACEOF
47954 #define wxUSE_SPINCTRL 1
47955 _ACEOF
47956
47957     USES_CONTROLS=1
47958 fi
47959
47960 if test "$wxUSE_SPLITTER" = "yes"; then
47961     cat >>confdefs.h <<\_ACEOF
47962 #define wxUSE_SPLITTER 1
47963 _ACEOF
47964
47965     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
47966 fi
47967
47968 if test "$wxUSE_STATBMP" = "yes"; then
47969     cat >>confdefs.h <<\_ACEOF
47970 #define wxUSE_STATBMP 1
47971 _ACEOF
47972
47973     USES_CONTROLS=1
47974 fi
47975
47976 if test "$wxUSE_STATBOX" = "yes"; then
47977     cat >>confdefs.h <<\_ACEOF
47978 #define wxUSE_STATBOX 1
47979 _ACEOF
47980
47981     USES_CONTROLS=1
47982 fi
47983
47984 if test "$wxUSE_STATTEXT" = "yes"; then
47985     cat >>confdefs.h <<\_ACEOF
47986 #define wxUSE_STATTEXT 1
47987 _ACEOF
47988
47989     USES_CONTROLS=1
47990 fi
47991
47992 if test "$wxUSE_STATLINE" = "yes"; then
47993     cat >>confdefs.h <<\_ACEOF
47994 #define wxUSE_STATLINE 1
47995 _ACEOF
47996
47997     USES_CONTROLS=1
47998 fi
47999
48000 if test "$wxUSE_STATUSBAR" = "yes"; then
48001         cat >>confdefs.h <<\_ACEOF
48002 #define wxUSE_NATIVE_STATUSBAR 1
48003 _ACEOF
48004
48005     cat >>confdefs.h <<\_ACEOF
48006 #define wxUSE_STATUSBAR 1
48007 _ACEOF
48008
48009     USES_CONTROLS=1
48010
48011     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
48012 fi
48013
48014 if test "$wxUSE_TAB_DIALOG" = "yes"; then
48015     cat >>confdefs.h <<\_ACEOF
48016 #define wxUSE_TAB_DIALOG 1
48017 _ACEOF
48018
48019 fi
48020
48021 if test "$wxUSE_TEXTCTRL" = "yes"; then
48022     cat >>confdefs.h <<\_ACEOF
48023 #define wxUSE_TEXTCTRL 1
48024 _ACEOF
48025
48026     USES_CONTROLS=1
48027     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
48028 fi
48029
48030 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48031     if test "$wxUSE_COCOA" = 1 ; then
48032         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48033 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48034         wxUSE_TOGGLEBTN=no
48035     fi
48036
48037     if test "$wxUSE_TOGGLEBTN" = "yes"; then
48038         cat >>confdefs.h <<\_ACEOF
48039 #define wxUSE_TOGGLEBTN 1
48040 _ACEOF
48041
48042         USES_CONTROLS=1
48043     fi
48044 fi
48045
48046 if test "$wxUSE_TOOLBAR" = "yes"; then
48047     cat >>confdefs.h <<\_ACEOF
48048 #define wxUSE_TOOLBAR 1
48049 _ACEOF
48050
48051     USES_CONTROLS=1
48052
48053     if test "$wxUSE_UNIVERSAL" = "yes"; then
48054         wxUSE_TOOLBAR_NATIVE="no"
48055     else
48056         wxUSE_TOOLBAR_NATIVE="yes"
48057         cat >>confdefs.h <<\_ACEOF
48058 #define wxUSE_TOOLBAR_NATIVE 1
48059 _ACEOF
48060
48061     fi
48062
48063     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48064 fi
48065
48066 if test "$wxUSE_TOOLTIPS" = "yes"; then
48067     if test "$wxUSE_MOTIF" = 1; then
48068         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48069 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48070     else
48071         if test "$wxUSE_UNIVERSAL" = "yes"; then
48072             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48073 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48074         else
48075             cat >>confdefs.h <<\_ACEOF
48076 #define wxUSE_TOOLTIPS 1
48077 _ACEOF
48078
48079         fi
48080     fi
48081 fi
48082
48083 if test "$wxUSE_TREEBOOK" = "yes"; then
48084     cat >>confdefs.h <<\_ACEOF
48085 #define wxUSE_TREEBOOK 1
48086 _ACEOF
48087
48088     USES_CONTROLS=1
48089 fi
48090
48091 if test "$wxUSE_TOOLBOOK" = "yes"; then
48092     cat >>confdefs.h <<\_ACEOF
48093 #define wxUSE_TOOLBOOK 1
48094 _ACEOF
48095
48096     USES_CONTROLS=1
48097 fi
48098
48099 if test "$wxUSE_TREECTRL" = "yes"; then
48100     if test "$wxUSE_IMAGLIST" = "yes"; then
48101         cat >>confdefs.h <<\_ACEOF
48102 #define wxUSE_TREECTRL 1
48103 _ACEOF
48104
48105         USES_CONTROLS=1
48106         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48107     else
48108         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48109 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48110     fi
48111 fi
48112
48113 if test "$wxUSE_POPUPWIN" = "yes"; then
48114     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
48115         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48116 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48117     else
48118         if test "$wxUSE_PM" = 1; then
48119             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48120 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48121         else
48122             cat >>confdefs.h <<\_ACEOF
48123 #define wxUSE_POPUPWIN 1
48124 _ACEOF
48125
48126             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48127
48128             USES_CONTROLS=1
48129         fi
48130     fi
48131 fi
48132
48133 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48134     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48135         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48136 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48137     else
48138         cat >>confdefs.h <<\_ACEOF
48139 #define wxUSE_DIALUP_MANAGER 1
48140 _ACEOF
48141
48142         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48143     fi
48144 fi
48145
48146 if test "$wxUSE_TIPWINDOW" = "yes"; then
48147     if test "$wxUSE_PM" = 1; then
48148         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48149 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48150     else
48151         cat >>confdefs.h <<\_ACEOF
48152 #define wxUSE_TIPWINDOW 1
48153 _ACEOF
48154
48155     fi
48156 fi
48157
48158 if test "$USES_CONTROLS" = 1; then
48159     cat >>confdefs.h <<\_ACEOF
48160 #define wxUSE_CONTROLS 1
48161 _ACEOF
48162
48163 fi
48164
48165
48166 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48167     cat >>confdefs.h <<\_ACEOF
48168 #define wxUSE_ACCESSIBILITY 1
48169 _ACEOF
48170
48171     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48172 fi
48173
48174 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48175     cat >>confdefs.h <<\_ACEOF
48176 #define wxUSE_DRAGIMAGE 1
48177 _ACEOF
48178
48179     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48180 fi
48181
48182 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48183     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48184         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48185 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48186     else
48187         cat >>confdefs.h <<\_ACEOF
48188 #define wxUSE_EXCEPTIONS 1
48189 _ACEOF
48190
48191         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48192     fi
48193 fi
48194
48195 USE_HTML=0
48196 if test "$wxUSE_HTML" = "yes"; then
48197     cat >>confdefs.h <<\_ACEOF
48198 #define wxUSE_HTML 1
48199 _ACEOF
48200
48201     USE_HTML=1
48202     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48203     if test "$wxUSE_MAC" = 1; then
48204         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48205     fi
48206 fi
48207 if test "$wxUSE_WEBKIT" = "yes"; then
48208     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48209         old_CPPFLAGS="$CPPFLAGS"
48210         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48211         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48212 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48213 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48214   echo $ECHO_N "(cached) $ECHO_C" >&6
48215 else
48216   cat >conftest.$ac_ext <<_ACEOF
48217 /* confdefs.h.  */
48218 _ACEOF
48219 cat confdefs.h >>conftest.$ac_ext
48220 cat >>conftest.$ac_ext <<_ACEOF
48221 /* end confdefs.h.  */
48222
48223                            #include <Carbon/Carbon.h>
48224                            #include <WebKit/WebKit.h>
48225
48226
48227 #include <WebKit/HIWebView.h>
48228 _ACEOF
48229 rm -f conftest.$ac_objext
48230 if { (ac_try="$ac_compile"
48231 case "(($ac_try" in
48232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48233   *) ac_try_echo=$ac_try;;
48234 esac
48235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48236   (eval "$ac_compile") 2>conftest.er1
48237   ac_status=$?
48238   grep -v '^ *+' conftest.er1 >conftest.err
48239   rm -f conftest.er1
48240   cat conftest.err >&5
48241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48242   (exit $ac_status); } && {
48243          test -z "$ac_c_werror_flag" ||
48244          test ! -s conftest.err
48245        } && test -s conftest.$ac_objext; then
48246   ac_cv_header_WebKit_HIWebView_h=yes
48247 else
48248   echo "$as_me: failed program was:" >&5
48249 sed 's/^/| /' conftest.$ac_ext >&5
48250
48251         ac_cv_header_WebKit_HIWebView_h=no
48252 fi
48253
48254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48255 fi
48256 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48257 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48258 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48259
48260                            cat >>confdefs.h <<\_ACEOF
48261 #define wxUSE_WEBKIT 1
48262 _ACEOF
48263
48264                            WEBKIT_LINK="-framework WebKit"
48265
48266 else
48267
48268                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48269 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48270                            wxUSE_WEBKIT=no
48271
48272 fi
48273
48274
48275         CPPFLAGS="$old_CPPFLAGS"
48276     elif test "$wxUSE_COCOA" = 1; then
48277         cat >>confdefs.h <<\_ACEOF
48278 #define wxUSE_WEBKIT 1
48279 _ACEOF
48280
48281     else
48282         wxUSE_WEBKIT=no
48283     fi
48284 fi
48285
48286 USE_XRC=0
48287 if test "$wxUSE_XRC" = "yes"; then
48288     if test "$wxUSE_XML" != "yes"; then
48289         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48290 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48291         wxUSE_XRC=no
48292     else
48293         cat >>confdefs.h <<\_ACEOF
48294 #define wxUSE_XRC 1
48295 _ACEOF
48296
48297         USE_XRC=1
48298         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48299     fi
48300 fi
48301
48302 USE_AUI=0
48303 if test "$wxUSE_AUI" = "yes"; then
48304    cat >>confdefs.h <<\_ACEOF
48305 #define wxUSE_AUI 1
48306 _ACEOF
48307
48308    USE_AUI=1
48309    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48310 fi
48311
48312 USE_STC=0
48313 if test "$wxUSE_STC" = "yes"; then
48314    cat >>confdefs.h <<\_ACEOF
48315 #define wxUSE_STC 1
48316 _ACEOF
48317
48318    USE_STC=1
48319    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48320 fi
48321
48322 if test "$wxUSE_MENUS" = "yes"; then
48323     cat >>confdefs.h <<\_ACEOF
48324 #define wxUSE_MENUS 1
48325 _ACEOF
48326
48327     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48328 fi
48329
48330 if test "$wxUSE_METAFILE" = "yes"; then
48331     cat >>confdefs.h <<\_ACEOF
48332 #define wxUSE_METAFILE 1
48333 _ACEOF
48334
48335 fi
48336
48337 if test "$wxUSE_MIMETYPE" = "yes"; then
48338     cat >>confdefs.h <<\_ACEOF
48339 #define wxUSE_MIMETYPE 1
48340 _ACEOF
48341
48342 fi
48343
48344 if test "$wxUSE_MINIFRAME" = "yes"; then
48345     cat >>confdefs.h <<\_ACEOF
48346 #define wxUSE_MINIFRAME 1
48347 _ACEOF
48348
48349     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
48350 fi
48351
48352 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48353     cat >>confdefs.h <<\_ACEOF
48354 #define wxUSE_SYSTEM_OPTIONS 1
48355 _ACEOF
48356
48357 fi
48358
48359 if test "$wxUSE_TASKBARICON" = "yes"; then
48360     cat >>confdefs.h <<\_ACEOF
48361 #define wxUSE_TASKBARICON 1
48362 _ACEOF
48363
48364     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48365 fi
48366
48367
48368 if test "$wxUSE_VALIDATORS" = "yes"; then
48369     cat >>confdefs.h <<\_ACEOF
48370 #define wxUSE_VALIDATORS 1
48371 _ACEOF
48372
48373     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48374 fi
48375
48376 if test "$wxUSE_PALETTE" = "yes" ; then
48377     if test "$wxUSE_DFB" = 1; then
48378         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48379 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48380         wxUSE_PALETTE=no
48381     else
48382         cat >>confdefs.h <<\_ACEOF
48383 #define wxUSE_PALETTE 1
48384 _ACEOF
48385
48386     fi
48387 fi
48388
48389 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48390     LIBS=" -lunicows $LIBS"
48391 fi
48392
48393 USE_RICHTEXT=0
48394 if test "$wxUSE_RICHTEXT" = "yes"; then
48395     cat >>confdefs.h <<\_ACEOF
48396 #define wxUSE_RICHTEXT 1
48397 _ACEOF
48398
48399     USE_RICHTEXT=1
48400     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48401 fi
48402
48403
48404 if test "$wxUSE_IMAGE" = "yes" ; then
48405     cat >>confdefs.h <<\_ACEOF
48406 #define wxUSE_IMAGE 1
48407 _ACEOF
48408
48409
48410     if test "$wxUSE_GIF" = "yes" ; then
48411       cat >>confdefs.h <<\_ACEOF
48412 #define wxUSE_GIF 1
48413 _ACEOF
48414
48415     fi
48416
48417     if test "$wxUSE_PCX" = "yes" ; then
48418       cat >>confdefs.h <<\_ACEOF
48419 #define wxUSE_PCX 1
48420 _ACEOF
48421
48422     fi
48423
48424     if test "$wxUSE_TGA" = "yes" ; then
48425       cat >>confdefs.h <<\_ACEOF
48426 #define wxUSE_TGA 1
48427 _ACEOF
48428
48429     fi
48430
48431     if test "$wxUSE_IFF" = "yes" ; then
48432       cat >>confdefs.h <<\_ACEOF
48433 #define wxUSE_IFF 1
48434 _ACEOF
48435
48436     fi
48437
48438     if test "$wxUSE_PNM" = "yes" ; then
48439       cat >>confdefs.h <<\_ACEOF
48440 #define wxUSE_PNM 1
48441 _ACEOF
48442
48443     fi
48444
48445     if test "$wxUSE_XPM" = "yes" ; then
48446       cat >>confdefs.h <<\_ACEOF
48447 #define wxUSE_XPM 1
48448 _ACEOF
48449
48450     fi
48451
48452     if test "$wxUSE_ICO_CUR" = "yes" ; then
48453       cat >>confdefs.h <<\_ACEOF
48454 #define wxUSE_ICO_CUR 1
48455 _ACEOF
48456
48457     fi
48458 fi
48459
48460
48461 if test "$wxUSE_ABOUTDLG" = "yes"; then
48462     cat >>confdefs.h <<\_ACEOF
48463 #define wxUSE_ABOUTDLG 1
48464 _ACEOF
48465
48466 fi
48467
48468 if test "$wxUSE_CHOICEDLG" = "yes"; then
48469     cat >>confdefs.h <<\_ACEOF
48470 #define wxUSE_CHOICEDLG 1
48471 _ACEOF
48472
48473 fi
48474
48475 if test "$wxUSE_COLOURDLG" = "yes"; then
48476     cat >>confdefs.h <<\_ACEOF
48477 #define wxUSE_COLOURDLG 1
48478 _ACEOF
48479
48480 fi
48481
48482 if test "$wxUSE_FILEDLG" = "yes"; then
48483     cat >>confdefs.h <<\_ACEOF
48484 #define wxUSE_FILEDLG 1
48485 _ACEOF
48486
48487 fi
48488
48489 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48490     cat >>confdefs.h <<\_ACEOF
48491 #define wxUSE_FINDREPLDLG 1
48492 _ACEOF
48493
48494 fi
48495
48496 if test "$wxUSE_FONTDLG" = "yes"; then
48497     cat >>confdefs.h <<\_ACEOF
48498 #define wxUSE_FONTDLG 1
48499 _ACEOF
48500
48501 fi
48502
48503 if test "$wxUSE_DIRDLG" = "yes"; then
48504     if test "$wxUSE_TREECTRL" != "yes"; then
48505         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48506 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48507     else
48508         cat >>confdefs.h <<\_ACEOF
48509 #define wxUSE_DIRDLG 1
48510 _ACEOF
48511
48512     fi
48513 fi
48514
48515 if test "$wxUSE_MSGDLG" = "yes"; then
48516     cat >>confdefs.h <<\_ACEOF
48517 #define wxUSE_MSGDLG 1
48518 _ACEOF
48519
48520 fi
48521
48522 if test "$wxUSE_NUMBERDLG" = "yes"; then
48523     cat >>confdefs.h <<\_ACEOF
48524 #define wxUSE_NUMBERDLG 1
48525 _ACEOF
48526
48527 fi
48528
48529 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48530     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48531        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
48532 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
48533     else
48534         cat >>confdefs.h <<\_ACEOF
48535 #define wxUSE_PROGRESSDLG 1
48536 _ACEOF
48537
48538     fi
48539 fi
48540
48541 if test "$wxUSE_SPLASH" = "yes"; then
48542     cat >>confdefs.h <<\_ACEOF
48543 #define wxUSE_SPLASH 1
48544 _ACEOF
48545
48546     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48547 fi
48548
48549 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48550     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48551        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
48552 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
48553     else
48554         cat >>confdefs.h <<\_ACEOF
48555 #define wxUSE_STARTUP_TIPS 1
48556 _ACEOF
48557
48558     fi
48559 fi
48560
48561 if test "$wxUSE_TEXTDLG" = "yes"; then
48562     cat >>confdefs.h <<\_ACEOF
48563 #define wxUSE_TEXTDLG 1
48564 _ACEOF
48565
48566 fi
48567
48568 if test "$wxUSE_WIZARDDLG" = "yes"; then
48569     cat >>confdefs.h <<\_ACEOF
48570 #define wxUSE_WIZARDDLG 1
48571 _ACEOF
48572
48573     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48574 fi
48575
48576
48577 if test "$wxUSE_MSW" = 1 ; then
48578
48579 if test "$wxUSE_DC_CACHEING" = "yes"; then
48580     cat >>confdefs.h <<\_ACEOF
48581 #define wxUSE_DC_CACHEING 1
48582 _ACEOF
48583
48584 fi
48585
48586 if test "$wxUSE_UXTHEME" = "yes"; then
48587     cat >>confdefs.h <<\_ACEOF
48588 #define wxUSE_UXTHEME 1
48589 _ACEOF
48590
48591 fi
48592
48593 if test "$wxUSE_DIB" = "yes"; then
48594     cat >>confdefs.h <<\_ACEOF
48595 #define wxUSE_WXDIB 1
48596 _ACEOF
48597
48598 fi
48599
48600 fi
48601
48602
48603 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48604    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
48605       cat >>confdefs.h <<\_ACEOF
48606 #define wxUSE_GRAPHICS_CONTEXT 1
48607 _ACEOF
48608
48609    elif test "$wxUSE_GTK" != 1; then
48610             cat >>confdefs.h <<\_ACEOF
48611 #define wxUSE_GRAPHICS_CONTEXT 1
48612 _ACEOF
48613
48614    else
48615
48616 pkg_failed=no
48617 { echo "$as_me:$LINENO: checking for CAIRO" >&5
48618 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
48619
48620 if test -n "$PKG_CONFIG"; then
48621     if test -n "$CAIRO_CFLAGS"; then
48622         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
48623     else
48624         if test -n "$PKG_CONFIG" && \
48625     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48626   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48627   ac_status=$?
48628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48629   (exit $ac_status); }; then
48630   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
48631 else
48632   pkg_failed=yes
48633 fi
48634     fi
48635 else
48636         pkg_failed=untried
48637 fi
48638 if test -n "$PKG_CONFIG"; then
48639     if test -n "$CAIRO_LIBS"; then
48640         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
48641     else
48642         if test -n "$PKG_CONFIG" && \
48643     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48644   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48645   ac_status=$?
48646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48647   (exit $ac_status); }; then
48648   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
48649 else
48650   pkg_failed=yes
48651 fi
48652     fi
48653 else
48654         pkg_failed=untried
48655 fi
48656
48657
48658
48659 if test $pkg_failed = yes; then
48660
48661 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48662         _pkg_short_errors_supported=yes
48663 else
48664         _pkg_short_errors_supported=no
48665 fi
48666         if test $_pkg_short_errors_supported = yes; then
48667                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
48668         else
48669                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
48670         fi
48671         # Put the nasty error message in config.log where it belongs
48672         echo "$CAIRO_PKG_ERRORS" >&5
48673
48674         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
48675 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48676
48677 elif test $pkg_failed = untried; then
48678         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
48679 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48680
48681 else
48682         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
48683         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
48684         { echo "$as_me:$LINENO: result: yes" >&5
48685 echo "${ECHO_T}yes" >&6; }
48686         cat >>confdefs.h <<\_ACEOF
48687 #define wxUSE_GRAPHICS_CONTEXT 1
48688 _ACEOF
48689
48690 fi
48691    fi
48692 fi
48693
48694
48695 USE_MEDIA=0
48696
48697 if test "$wxUSE_MEDIACTRL" = "yes"; then
48698     USE_MEDIA=1
48699
48700                 if test "$wxUSE_GTK" = 1; then
48701         wxUSE_GSTREAMER="no"
48702
48703                                                                 GST_VERSION_MAJOR=0
48704         GST_VERSION_MINOR=10
48705         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48706
48707         if test "$wxUSE_GSTREAMER8" = "no"; then
48708
48709 pkg_failed=no
48710 { echo "$as_me:$LINENO: checking for GST" >&5
48711 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48712
48713 if test -n "$PKG_CONFIG"; then
48714     if test -n "$GST_CFLAGS"; then
48715         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48716     else
48717         if test -n "$PKG_CONFIG" && \
48718     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48719   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48720   ac_status=$?
48721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48722   (exit $ac_status); }; then
48723   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48724 else
48725   pkg_failed=yes
48726 fi
48727     fi
48728 else
48729         pkg_failed=untried
48730 fi
48731 if test -n "$PKG_CONFIG"; then
48732     if test -n "$GST_LIBS"; then
48733         pkg_cv_GST_LIBS="$GST_LIBS"
48734     else
48735         if test -n "$PKG_CONFIG" && \
48736     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48737   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48738   ac_status=$?
48739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48740   (exit $ac_status); }; then
48741   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48742 else
48743   pkg_failed=yes
48744 fi
48745     fi
48746 else
48747         pkg_failed=untried
48748 fi
48749
48750
48751
48752 if test $pkg_failed = yes; then
48753
48754 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48755         _pkg_short_errors_supported=yes
48756 else
48757         _pkg_short_errors_supported=no
48758 fi
48759         if test $_pkg_short_errors_supported = yes; then
48760                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48761         else
48762                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48763         fi
48764         # Put the nasty error message in config.log where it belongs
48765         echo "$GST_PKG_ERRORS" >&5
48766
48767
48768                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48769 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48770                     GST_VERSION_MINOR=8
48771
48772
48773 elif test $pkg_failed = untried; then
48774
48775                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48776 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48777                     GST_VERSION_MINOR=8
48778
48779
48780 else
48781         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48782         GST_LIBS=$pkg_cv_GST_LIBS
48783         { echo "$as_me:$LINENO: result: yes" >&5
48784 echo "${ECHO_T}yes" >&6; }
48785
48786                     wxUSE_GSTREAMER="yes"
48787                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
48788
48789 fi
48790         else
48791                         GST_VERSION_MINOR=8
48792         fi
48793
48794         if test $GST_VERSION_MINOR = "8"; then
48795             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48796
48797 pkg_failed=no
48798 { echo "$as_me:$LINENO: checking for GST" >&5
48799 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48800
48801 if test -n "$PKG_CONFIG"; then
48802     if test -n "$GST_CFLAGS"; then
48803         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48804     else
48805         if test -n "$PKG_CONFIG" && \
48806     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48807   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48808   ac_status=$?
48809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48810   (exit $ac_status); }; then
48811   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48812 else
48813   pkg_failed=yes
48814 fi
48815     fi
48816 else
48817         pkg_failed=untried
48818 fi
48819 if test -n "$PKG_CONFIG"; then
48820     if test -n "$GST_LIBS"; then
48821         pkg_cv_GST_LIBS="$GST_LIBS"
48822     else
48823         if test -n "$PKG_CONFIG" && \
48824     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48825   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48826   ac_status=$?
48827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48828   (exit $ac_status); }; then
48829   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48830 else
48831   pkg_failed=yes
48832 fi
48833     fi
48834 else
48835         pkg_failed=untried
48836 fi
48837
48838
48839
48840 if test $pkg_failed = yes; then
48841
48842 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48843         _pkg_short_errors_supported=yes
48844 else
48845         _pkg_short_errors_supported=no
48846 fi
48847         if test $_pkg_short_errors_supported = yes; then
48848                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48849         else
48850                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48851         fi
48852         # Put the nasty error message in config.log where it belongs
48853         echo "$GST_PKG_ERRORS" >&5
48854
48855
48856                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48857 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48858
48859 elif test $pkg_failed = untried; then
48860
48861                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48862 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48863
48864 else
48865         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48866         GST_LIBS=$pkg_cv_GST_LIBS
48867         { echo "$as_me:$LINENO: result: yes" >&5
48868 echo "${ECHO_T}yes" >&6; }
48869         wxUSE_GSTREAMER="yes"
48870 fi
48871         fi
48872
48873
48874         if test "$wxUSE_GSTREAMER" = "yes"; then
48875             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
48876             LIBS="$GST_LIBS $LIBS"
48877
48878             cat >>confdefs.h <<\_ACEOF
48879 #define wxUSE_GSTREAMER 1
48880 _ACEOF
48881
48882         else
48883             USE_MEDIA=0
48884         fi
48885     fi
48886
48887     if test $USE_MEDIA = 1; then
48888         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
48889         cat >>confdefs.h <<\_ACEOF
48890 #define wxUSE_MEDIACTRL 1
48891 _ACEOF
48892
48893     fi
48894 fi
48895
48896
48897 if test "$cross_compiling" = "yes"; then
48898         OSINFO="\"$host\""
48899 else
48900         OSINFO=`uname -s -r -m`
48901     OSINFO="\"$OSINFO\""
48902 fi
48903
48904 cat >>confdefs.h <<_ACEOF
48905 #define WXWIN_OS_DESCRIPTION $OSINFO
48906 _ACEOF
48907
48908
48909
48910 if test "x$prefix" != "xNONE"; then
48911     wxPREFIX=$prefix
48912 else
48913     wxPREFIX=$ac_default_prefix
48914 fi
48915
48916 cat >>confdefs.h <<_ACEOF
48917 #define wxINSTALL_PREFIX "$wxPREFIX"
48918 _ACEOF
48919
48920
48921
48922
48923 STD_BASE_LIBS="base"
48924 STD_GUI_LIBS=""
48925 BUILT_WX_LIBS="base"
48926 ALL_WX_LIBS="xrc stc gl media dbgrid qa html adv core odbc xml net base"
48927
48928 if test "$wxUSE_SOCKETS" = "yes" ; then
48929     STD_BASE_LIBS="net $STD_BASE_LIBS"
48930     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
48931 fi
48932 if test "$wxUSE_ODBC" != "no" ; then
48933     BUILT_WX_LIBS="odbc $BUILT_WX_LIBS"
48934 fi
48935 if test "$wxUSE_XML" = "yes" ; then
48936     STD_BASE_LIBS="xml $STD_BASE_LIBS"
48937     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
48938 fi
48939
48940 if test "$wxUSE_GUI" = "yes"; then
48941     STD_GUI_LIBS="adv core"
48942     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
48943
48944     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
48945         STD_GUI_LIBS="qa $STD_GUI_LIBS"
48946         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
48947     fi
48948     if test "$wxUSE_ODBC" != "no" ; then
48949         BUILT_WX_LIBS="dbgrid $BUILT_WX_LIBS"
48950     fi
48951     if test "$wxUSE_HTML" = "yes" ; then
48952         STD_GUI_LIBS="html $STD_GUI_LIBS"
48953         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
48954     fi
48955     if test "$wxUSE_MEDIACTRL" = "yes" ; then
48956         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
48957     fi
48958     if test "$wxUSE_OPENGL" = "yes" ; then
48959         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
48960     fi
48961     if test "$wxUSE_AUI" = "yes" ; then
48962         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
48963     fi
48964     if test "$wxUSE_STC" = "yes" ; then
48965         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
48966     fi
48967     if test "$wxUSE_XRC" = "yes" ; then
48968         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
48969         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
48970     fi
48971 fi
48972
48973
48974
48975
48976
48977
48978
48979
48980 if test "$wxUSE_MAC" = 1 ; then
48981     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
48982         if test "$USE_DARWIN" = 1; then
48983             LDFLAGS="$LDFLAGS -framework QuickTime"
48984         else
48985             LDFLAGS="$LDFLAGS -lQuickTimeLib"
48986         fi
48987     fi
48988     if test "$USE_DARWIN" = 1; then
48989         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
48990     else
48991         LDFLAGS="$LDFLAGS -lCarbonLib"
48992     fi
48993 fi
48994 if test "$wxUSE_COCOA" = 1 ; then
48995     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
48996     if test "$wxUSE_MEDIACTRL" = "yes"; then
48997         LDFLAGS="$LDFLAGS -framework QuickTime"
48998     fi
48999 fi
49000 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
49001     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49002 fi
49003
49004 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49005
49006 if test "$wxUSE_GUI" = "yes"; then
49007
49008
49009         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49010                      dynamic erase event exec font image minimal mobile \
49011                      mobile/wxedit mobile/styles propsize render \
49012                      rotate shaped svg taborder vscroll widgets"
49013
49014     if test "$wxUSE_MONOLITHIC" != "yes"; then
49015         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49016     fi
49017     if test "$TOOLKIT" = "MSW"; then
49018         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49019         if test "$wxUSE_UNIVERSAL" != "yes"; then
49020             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
49021         fi
49022     fi
49023     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49024         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49025     fi
49026 else
49027     SAMPLES_SUBDIRS="console"
49028 fi
49029
49030
49031 if test "x$INTELCC" = "xyes" ; then
49032                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
49033 elif test "$GCC" = yes ; then
49034     CWARNINGS="-Wall -Wundef"
49035 fi
49036
49037 if test "x$INTELCXX" = "xyes" ; then
49038                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
49039 elif test "$GXX" = yes ; then
49040         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
49041 fi
49042
49043
49044 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49045 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49046
49047
49048 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49049  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49050  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49051  $CPPFLAGS `
49052
49053 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49054 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49055 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49056
49057 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49058
49059
49060 if test "x$MWCC" = "xyes"; then
49061
49062             CC="$CC -cwd source -I-"
49063     CXX="$CXX -cwd source -I-"
49064 fi
49065
49066
49067 LIBS=`echo $LIBS`
49068 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49069 EXTRALIBS_XML="$EXPAT_LINK"
49070 EXTRALIBS_HTML="$MSPACK_LINK"
49071 EXTRALIBS_ODBC="$ODBC_LINK"
49072 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49073 if test "$wxUSE_GUI" = "yes"; then
49074     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49075 fi
49076 if test "$wxUSE_OPENGL" = "yes"; then
49077     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49078 fi
49079
49080 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49081
49082 WXCONFIG_LIBS="$LIBS"
49083
49084 if test "$wxUSE_REGEX" = "builtin" ; then
49085     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49086 fi
49087 if test "$wxUSE_EXPAT" = "builtin" ; then
49088     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49089 fi
49090 if test "$wxUSE_ODBC" = "builtin" ; then
49091     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
49092 fi
49093 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49094     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49095 fi
49096 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49097     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49098 fi
49099 if test "$wxUSE_LIBPNG" = "builtin" ; then
49100     wxconfig_3rdparty="png $wxconfig_3rdparty"
49101 fi
49102 if test "$wxUSE_ZLIB" = "builtin" ; then
49103     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49104 fi
49105
49106 for i in $wxconfig_3rdparty ; do
49107     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49108 done
49109
49110
49111 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49112     WXUNIV=1
49113
49114     case "$wxUNIV_THEMES" in
49115         ''|all)
49116             cat >>confdefs.h <<\_ACEOF
49117 #define wxUSE_ALL_THEMES 1
49118 _ACEOF
49119
49120             ;;
49121
49122         *)
49123             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
49124                 cat >>confdefs.h <<_ACEOF
49125 #define wxUSE_THEME_$t 1
49126 _ACEOF
49127
49128             done
49129     esac
49130 else
49131     WXUNIV=0
49132 fi
49133
49134
49135
49136
49137
49138
49139
49140
49141
49142 if test $wxUSE_MONOLITHIC = "yes" ; then
49143     MONOLITHIC=1
49144 else
49145     MONOLITHIC=0
49146 fi
49147
49148 if test $wxUSE_PLUGINS = "yes" ; then
49149     USE_PLUGINS=1
49150 else
49151     USE_PLUGINS=0
49152 fi
49153
49154 if test $wxUSE_ODBC != "no" ; then
49155     USE_ODBC=1
49156 else
49157     USE_ODBC=0
49158 fi
49159
49160 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49161     USE_QA=1
49162 else
49163     USE_QA=0
49164 fi
49165
49166 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49167     OFFICIAL_BUILD=1
49168 else
49169     OFFICIAL_BUILD=0
49170 fi
49171
49172
49173
49174
49175
49176
49177
49178
49179
49180
49181
49182
49183
49184
49185
49186
49187
49188
49189
49190
49191
49192
49193
49194
49195
49196
49197 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
49198
49199
49200
49201
49202
49203
49204
49205
49206 case "$TOOLKIT" in
49207     GTK)
49208         TOOLKIT_DESC="GTK+"
49209         if test "$WXGTK20" = 1; then
49210             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49211             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49212                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49213             fi
49214             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49215                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49216             fi
49217             if test "$wxUSE_LIBHILDON" = "yes"; then
49218                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49219             fi
49220
49221             if test "$TOOLKIT_EXTRA" != ""; then
49222                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49223             fi
49224         fi
49225         ;;
49226
49227     ?*)
49228         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49229         ;;
49230
49231     *)
49232         TOOLKIT_DESC="base only"
49233         ;;
49234 esac
49235
49236 if test "$wxUSE_WINE" = "yes"; then
49237     BAKEFILE_FORCE_PLATFORM=win32
49238 fi
49239
49240 if test "$wxUSE_MAC" = 1 ; then
49241     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
49242                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
49243             OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
49244         else
49245                                     OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
49246         fi
49247         OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
49248         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
49249         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
49250         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
49251         bk_use_pch=no
49252     fi
49253     # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
49254     #       The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
49255 fi
49256
49257 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49258 then
49259     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49260 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49261 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49262   echo $ECHO_N "(cached) $ECHO_C" >&6
49263 else
49264
49265             echo '#include <stdio.h>
49266                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49267
49268             echo '#include "conftest.h"
49269                   int main()
49270                   {
49271                      printf("%ls", test_var);
49272                      return 0;
49273                   }' > conftest.cpp
49274
49275             wx_cv_gcc_pch_bug="pch not supported"
49276
49277             if $CXX conftest.h >/dev/null 2>&1
49278             then
49279                 wx_cv_gcc_pch_bug=
49280
49281                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49282                 then
49283                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
49284                         grep awidetest >/dev/null
49285                     then
49286                         wx_cv_gcc_pch_bug=no
49287                     else
49288                         wx_cv_gcc_pch_bug=yes
49289                     fi
49290                 fi
49291             fi
49292
49293             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49294
49295 fi
49296 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49297 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49298
49299     if test "$wx_cv_gcc_pch_bug" = yes; then
49300                         bk_use_pch=no
49301     fi
49302 fi
49303
49304
49305
49306
49307     if test "x$BAKEFILE_HOST" = "x"; then
49308                if test "x${host}" = "x" ; then
49309                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49310 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49311    { (exit 1); exit 1; }; }
49312                fi
49313
49314         BAKEFILE_HOST="${host}"
49315     fi
49316
49317     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49318
49319     if test -n "$ac_tool_prefix"; then
49320   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49321 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49324 if test "${ac_cv_prog_RANLIB+set}" = set; then
49325   echo $ECHO_N "(cached) $ECHO_C" >&6
49326 else
49327   if test -n "$RANLIB"; then
49328   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49329 else
49330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49331 for as_dir in $PATH
49332 do
49333   IFS=$as_save_IFS
49334   test -z "$as_dir" && as_dir=.
49335   for ac_exec_ext in '' $ac_executable_extensions; do
49336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49337     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49339     break 2
49340   fi
49341 done
49342 done
49343 IFS=$as_save_IFS
49344
49345 fi
49346 fi
49347 RANLIB=$ac_cv_prog_RANLIB
49348 if test -n "$RANLIB"; then
49349   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49350 echo "${ECHO_T}$RANLIB" >&6; }
49351 else
49352   { echo "$as_me:$LINENO: result: no" >&5
49353 echo "${ECHO_T}no" >&6; }
49354 fi
49355
49356
49357 fi
49358 if test -z "$ac_cv_prog_RANLIB"; then
49359   ac_ct_RANLIB=$RANLIB
49360   # Extract the first word of "ranlib", so it can be a program name with args.
49361 set dummy ranlib; ac_word=$2
49362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49364 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49365   echo $ECHO_N "(cached) $ECHO_C" >&6
49366 else
49367   if test -n "$ac_ct_RANLIB"; then
49368   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49369 else
49370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49371 for as_dir in $PATH
49372 do
49373   IFS=$as_save_IFS
49374   test -z "$as_dir" && as_dir=.
49375   for ac_exec_ext in '' $ac_executable_extensions; do
49376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49377     ac_cv_prog_ac_ct_RANLIB="ranlib"
49378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49379     break 2
49380   fi
49381 done
49382 done
49383 IFS=$as_save_IFS
49384
49385 fi
49386 fi
49387 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49388 if test -n "$ac_ct_RANLIB"; then
49389   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49390 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
49391 else
49392   { echo "$as_me:$LINENO: result: no" >&5
49393 echo "${ECHO_T}no" >&6; }
49394 fi
49395
49396   if test "x$ac_ct_RANLIB" = x; then
49397     RANLIB=":"
49398   else
49399     case $cross_compiling:$ac_tool_warned in
49400 yes:)
49401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49402 whose name does not start with the host triplet.  If you think this
49403 configuration is useful to you, please write to autoconf@gnu.org." >&5
49404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49405 whose name does not start with the host triplet.  If you think this
49406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49407 ac_tool_warned=yes ;;
49408 esac
49409     RANLIB=$ac_ct_RANLIB
49410   fi
49411 else
49412   RANLIB="$ac_cv_prog_RANLIB"
49413 fi
49414
49415     # Find a good install program.  We prefer a C program (faster),
49416 # so one script is as good as another.  But avoid the broken or
49417 # incompatible versions:
49418 # SysV /etc/install, /usr/sbin/install
49419 # SunOS /usr/etc/install
49420 # IRIX /sbin/install
49421 # AIX /bin/install
49422 # AmigaOS /C/install, which installs bootblocks on floppy discs
49423 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49424 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
49425 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49426 # OS/2's system install, which has a completely different semantic
49427 # ./install, which can be erroneously created by make from ./install.sh.
49428 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49429 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
49430 if test -z "$INSTALL"; then
49431 if test "${ac_cv_path_install+set}" = set; then
49432   echo $ECHO_N "(cached) $ECHO_C" >&6
49433 else
49434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49435 for as_dir in $PATH
49436 do
49437   IFS=$as_save_IFS
49438   test -z "$as_dir" && as_dir=.
49439   # Account for people who put trailing slashes in PATH elements.
49440 case $as_dir/ in
49441   ./ | .// | /cC/* | \
49442   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49443   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
49444   /usr/ucb/* ) ;;
49445   *)
49446     # OSF1 and SCO ODT 3.0 have their own names for install.
49447     # Don't use installbsd from OSF since it installs stuff as root
49448     # by default.
49449     for ac_prog in ginstall scoinst install; do
49450       for ac_exec_ext in '' $ac_executable_extensions; do
49451         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
49452           if test $ac_prog = install &&
49453             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49454             # AIX install.  It has an incompatible calling convention.
49455             :
49456           elif test $ac_prog = install &&
49457             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49458             # program-specific install script used by HP pwplus--don't use.
49459             :
49460           else
49461             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49462             break 3
49463           fi
49464         fi
49465       done
49466     done
49467     ;;
49468 esac
49469 done
49470 IFS=$as_save_IFS
49471
49472
49473 fi
49474   if test "${ac_cv_path_install+set}" = set; then
49475     INSTALL=$ac_cv_path_install
49476   else
49477     # As a last resort, use the slow shell script.  Don't cache a
49478     # value for INSTALL within a source directory, because that will
49479     # break other packages using the cache if that directory is
49480     # removed, or if the value is a relative name.
49481     INSTALL=$ac_install_sh
49482   fi
49483 fi
49484 { echo "$as_me:$LINENO: result: $INSTALL" >&5
49485 echo "${ECHO_T}$INSTALL" >&6; }
49486
49487 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
49488 # It thinks the first close brace ends the variable substitution.
49489 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
49490
49491 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
49492
49493 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
49494
49495     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
49496 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
49497 LN_S=$as_ln_s
49498 if test "$LN_S" = "ln -s"; then
49499   { echo "$as_me:$LINENO: result: yes" >&5
49500 echo "${ECHO_T}yes" >&6; }
49501 else
49502   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
49503 echo "${ECHO_T}no, using $LN_S" >&6; }
49504 fi
49505
49506
49507     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49508 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49509 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49510 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49511   echo $ECHO_N "(cached) $ECHO_C" >&6
49512 else
49513   cat >conftest.make <<\_ACEOF
49514 SHELL = /bin/sh
49515 all:
49516         @echo '@@@%%%=$(MAKE)=@@@%%%'
49517 _ACEOF
49518 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49519 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49520   *@@@%%%=?*=@@@%%%*)
49521     eval ac_cv_prog_make_${ac_make}_set=yes;;
49522   *)
49523     eval ac_cv_prog_make_${ac_make}_set=no;;
49524 esac
49525 rm -f conftest.make
49526 fi
49527 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49528   { echo "$as_me:$LINENO: result: yes" >&5
49529 echo "${ECHO_T}yes" >&6; }
49530   SET_MAKE=
49531 else
49532   { echo "$as_me:$LINENO: result: no" >&5
49533 echo "${ECHO_T}no" >&6; }
49534   SET_MAKE="MAKE=${MAKE-make}"
49535 fi
49536
49537
49538
49539     if test "x$SUNCXX" = "xyes"; then
49540                                 AR=$CXX
49541         AROPTIONS="-xar -o"
49542
49543     elif test "x$SGICC" = "xyes"; then
49544                 AR=$CXX
49545         AROPTIONS="-ar -o"
49546
49547     else
49548         if test -n "$ac_tool_prefix"; then
49549   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
49550 set dummy ${ac_tool_prefix}ar; ac_word=$2
49551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49553 if test "${ac_cv_prog_AR+set}" = set; then
49554   echo $ECHO_N "(cached) $ECHO_C" >&6
49555 else
49556   if test -n "$AR"; then
49557   ac_cv_prog_AR="$AR" # Let the user override the test.
49558 else
49559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49560 for as_dir in $PATH
49561 do
49562   IFS=$as_save_IFS
49563   test -z "$as_dir" && as_dir=.
49564   for ac_exec_ext in '' $ac_executable_extensions; do
49565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49566     ac_cv_prog_AR="${ac_tool_prefix}ar"
49567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49568     break 2
49569   fi
49570 done
49571 done
49572 IFS=$as_save_IFS
49573
49574 fi
49575 fi
49576 AR=$ac_cv_prog_AR
49577 if test -n "$AR"; then
49578   { echo "$as_me:$LINENO: result: $AR" >&5
49579 echo "${ECHO_T}$AR" >&6; }
49580 else
49581   { echo "$as_me:$LINENO: result: no" >&5
49582 echo "${ECHO_T}no" >&6; }
49583 fi
49584
49585
49586 fi
49587 if test -z "$ac_cv_prog_AR"; then
49588   ac_ct_AR=$AR
49589   # Extract the first word of "ar", so it can be a program name with args.
49590 set dummy ar; ac_word=$2
49591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49593 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
49594   echo $ECHO_N "(cached) $ECHO_C" >&6
49595 else
49596   if test -n "$ac_ct_AR"; then
49597   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
49598 else
49599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49600 for as_dir in $PATH
49601 do
49602   IFS=$as_save_IFS
49603   test -z "$as_dir" && as_dir=.
49604   for ac_exec_ext in '' $ac_executable_extensions; do
49605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49606     ac_cv_prog_ac_ct_AR="ar"
49607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49608     break 2
49609   fi
49610 done
49611 done
49612 IFS=$as_save_IFS
49613
49614 fi
49615 fi
49616 ac_ct_AR=$ac_cv_prog_ac_ct_AR
49617 if test -n "$ac_ct_AR"; then
49618   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
49619 echo "${ECHO_T}$ac_ct_AR" >&6; }
49620 else
49621   { echo "$as_me:$LINENO: result: no" >&5
49622 echo "${ECHO_T}no" >&6; }
49623 fi
49624
49625   if test "x$ac_ct_AR" = x; then
49626     AR="ar"
49627   else
49628     case $cross_compiling:$ac_tool_warned in
49629 yes:)
49630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49631 whose name does not start with the host triplet.  If you think this
49632 configuration is useful to you, please write to autoconf@gnu.org." >&5
49633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49634 whose name does not start with the host triplet.  If you think this
49635 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49636 ac_tool_warned=yes ;;
49637 esac
49638     AR=$ac_ct_AR
49639   fi
49640 else
49641   AR="$ac_cv_prog_AR"
49642 fi
49643
49644         AROPTIONS=rcu
49645     fi
49646
49647
49648     if test -n "$ac_tool_prefix"; then
49649   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
49650 set dummy ${ac_tool_prefix}strip; ac_word=$2
49651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49653 if test "${ac_cv_prog_STRIP+set}" = set; then
49654   echo $ECHO_N "(cached) $ECHO_C" >&6
49655 else
49656   if test -n "$STRIP"; then
49657   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
49658 else
49659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49660 for as_dir in $PATH
49661 do
49662   IFS=$as_save_IFS
49663   test -z "$as_dir" && as_dir=.
49664   for ac_exec_ext in '' $ac_executable_extensions; do
49665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49666     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
49667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49668     break 2
49669   fi
49670 done
49671 done
49672 IFS=$as_save_IFS
49673
49674 fi
49675 fi
49676 STRIP=$ac_cv_prog_STRIP
49677 if test -n "$STRIP"; then
49678   { echo "$as_me:$LINENO: result: $STRIP" >&5
49679 echo "${ECHO_T}$STRIP" >&6; }
49680 else
49681   { echo "$as_me:$LINENO: result: no" >&5
49682 echo "${ECHO_T}no" >&6; }
49683 fi
49684
49685
49686 fi
49687 if test -z "$ac_cv_prog_STRIP"; then
49688   ac_ct_STRIP=$STRIP
49689   # Extract the first word of "strip", so it can be a program name with args.
49690 set dummy strip; ac_word=$2
49691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49693 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
49694   echo $ECHO_N "(cached) $ECHO_C" >&6
49695 else
49696   if test -n "$ac_ct_STRIP"; then
49697   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
49698 else
49699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49700 for as_dir in $PATH
49701 do
49702   IFS=$as_save_IFS
49703   test -z "$as_dir" && as_dir=.
49704   for ac_exec_ext in '' $ac_executable_extensions; do
49705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49706     ac_cv_prog_ac_ct_STRIP="strip"
49707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49708     break 2
49709   fi
49710 done
49711 done
49712 IFS=$as_save_IFS
49713
49714 fi
49715 fi
49716 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
49717 if test -n "$ac_ct_STRIP"; then
49718   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
49719 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
49720 else
49721   { echo "$as_me:$LINENO: result: no" >&5
49722 echo "${ECHO_T}no" >&6; }
49723 fi
49724
49725   if test "x$ac_ct_STRIP" = x; then
49726     STRIP=":"
49727   else
49728     case $cross_compiling:$ac_tool_warned in
49729 yes:)
49730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49731 whose name does not start with the host triplet.  If you think this
49732 configuration is useful to you, please write to autoconf@gnu.org." >&5
49733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49734 whose name does not start with the host triplet.  If you think this
49735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49736 ac_tool_warned=yes ;;
49737 esac
49738     STRIP=$ac_ct_STRIP
49739   fi
49740 else
49741   STRIP="$ac_cv_prog_STRIP"
49742 fi
49743
49744     if test -n "$ac_tool_prefix"; then
49745   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
49746 set dummy ${ac_tool_prefix}nm; ac_word=$2
49747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49749 if test "${ac_cv_prog_NM+set}" = set; then
49750   echo $ECHO_N "(cached) $ECHO_C" >&6
49751 else
49752   if test -n "$NM"; then
49753   ac_cv_prog_NM="$NM" # Let the user override the test.
49754 else
49755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49756 for as_dir in $PATH
49757 do
49758   IFS=$as_save_IFS
49759   test -z "$as_dir" && as_dir=.
49760   for ac_exec_ext in '' $ac_executable_extensions; do
49761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49762     ac_cv_prog_NM="${ac_tool_prefix}nm"
49763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49764     break 2
49765   fi
49766 done
49767 done
49768 IFS=$as_save_IFS
49769
49770 fi
49771 fi
49772 NM=$ac_cv_prog_NM
49773 if test -n "$NM"; then
49774   { echo "$as_me:$LINENO: result: $NM" >&5
49775 echo "${ECHO_T}$NM" >&6; }
49776 else
49777   { echo "$as_me:$LINENO: result: no" >&5
49778 echo "${ECHO_T}no" >&6; }
49779 fi
49780
49781
49782 fi
49783 if test -z "$ac_cv_prog_NM"; then
49784   ac_ct_NM=$NM
49785   # Extract the first word of "nm", so it can be a program name with args.
49786 set dummy nm; ac_word=$2
49787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49789 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
49790   echo $ECHO_N "(cached) $ECHO_C" >&6
49791 else
49792   if test -n "$ac_ct_NM"; then
49793   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
49794 else
49795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49796 for as_dir in $PATH
49797 do
49798   IFS=$as_save_IFS
49799   test -z "$as_dir" && as_dir=.
49800   for ac_exec_ext in '' $ac_executable_extensions; do
49801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49802     ac_cv_prog_ac_ct_NM="nm"
49803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49804     break 2
49805   fi
49806 done
49807 done
49808 IFS=$as_save_IFS
49809
49810 fi
49811 fi
49812 ac_ct_NM=$ac_cv_prog_ac_ct_NM
49813 if test -n "$ac_ct_NM"; then
49814   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
49815 echo "${ECHO_T}$ac_ct_NM" >&6; }
49816 else
49817   { echo "$as_me:$LINENO: result: no" >&5
49818 echo "${ECHO_T}no" >&6; }
49819 fi
49820
49821   if test "x$ac_ct_NM" = x; then
49822     NM=":"
49823   else
49824     case $cross_compiling:$ac_tool_warned in
49825 yes:)
49826 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49827 whose name does not start with the host triplet.  If you think this
49828 configuration is useful to you, please write to autoconf@gnu.org." >&5
49829 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49830 whose name does not start with the host triplet.  If you think this
49831 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49832 ac_tool_warned=yes ;;
49833 esac
49834     NM=$ac_ct_NM
49835   fi
49836 else
49837   NM="$ac_cv_prog_NM"
49838 fi
49839
49840
49841     case ${BAKEFILE_HOST} in
49842         *-hp-hpux* )
49843                                     INSTALL_DIR="mkdir -p"
49844             ;;
49845         * )
49846                                     INSTALL_DIR='$(INSTALL) -d'
49847             ;;
49848     esac
49849
49850
49851     LDFLAGS_GUI=
49852     case ${BAKEFILE_HOST} in
49853         *-*-cygwin* | *-*-mingw32* )
49854         LDFLAGS_GUI="-mwindows"
49855     esac
49856
49857
49858     fi
49859
49860         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
49861 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
49862 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
49863   echo $ECHO_N "(cached) $ECHO_C" >&6
49864 else
49865
49866         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
49867                 egrep -s GNU > /dev/null); then
49868             bakefile_cv_prog_makeisgnu="yes"
49869         else
49870             bakefile_cv_prog_makeisgnu="no"
49871         fi
49872
49873 fi
49874 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
49875 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
49876
49877     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
49878         IF_GNU_MAKE=""
49879     else
49880         IF_GNU_MAKE="#"
49881     fi
49882
49883
49884
49885     PLATFORM_UNIX=0
49886     PLATFORM_WIN32=0
49887     PLATFORM_MSDOS=0
49888     PLATFORM_MAC=0
49889     PLATFORM_MACOS=0
49890     PLATFORM_MACOSX=0
49891     PLATFORM_OS2=0
49892     PLATFORM_BEOS=0
49893
49894     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
49895         case "${BAKEFILE_HOST}" in
49896             *-*-mingw32* )
49897                 PLATFORM_WIN32=1
49898             ;;
49899             *-pc-msdosdjgpp )
49900                 PLATFORM_MSDOS=1
49901             ;;
49902             *-pc-os2_emx | *-pc-os2-emx )
49903                 PLATFORM_OS2=1
49904             ;;
49905             *-*-darwin* )
49906                 PLATFORM_MAC=1
49907                 PLATFORM_MACOSX=1
49908             ;;
49909             *-*-beos* )
49910                 PLATFORM_BEOS=1
49911             ;;
49912             powerpc-apple-macos* )
49913                 PLATFORM_MAC=1
49914                 PLATFORM_MACOS=1
49915             ;;
49916             * )
49917                 PLATFORM_UNIX=1
49918             ;;
49919         esac
49920     else
49921         case "$BAKEFILE_FORCE_PLATFORM" in
49922             win32 )
49923                 PLATFORM_WIN32=1
49924             ;;
49925             msdos )
49926                 PLATFORM_MSDOS=1
49927             ;;
49928             os2 )
49929                 PLATFORM_OS2=1
49930             ;;
49931             darwin )
49932                 PLATFORM_MAC=1
49933                 PLATFORM_MACOSX=1
49934             ;;
49935             unix )
49936                 PLATFORM_UNIX=1
49937             ;;
49938             beos )
49939                 PLATFORM_BEOS=1
49940             ;;
49941             * )
49942                                             ;;
49943         esac
49944     fi
49945
49946
49947
49948
49949
49950
49951
49952
49953
49954
49955
49956     # Check whether --enable-omf was given.
49957 if test "${enable_omf+set}" = set; then
49958   enableval=$enable_omf; bk_os2_use_omf="$enableval"
49959 fi
49960
49961
49962     case "${BAKEFILE_HOST}" in
49963       *-*-darwin* )
49964                         if test "x$GCC" = "xyes"; then
49965             CFLAGS="$CFLAGS -fno-common"
49966             CXXFLAGS="$CXXFLAGS -fno-common"
49967         fi
49968         if test "x$XLCC" = "xyes"; then
49969             CFLAGS="$CFLAGS -qnocommon"
49970             CXXFLAGS="$CXXFLAGS -qnocommon"
49971         fi
49972         ;;
49973
49974       *-pc-os2_emx | *-pc-os2-emx )
49975         if test "x$bk_os2_use_omf" = "xyes" ; then
49976             AR=emxomfar
49977             RANLIB=:
49978             LDFLAGS="-Zomf $LDFLAGS"
49979             CFLAGS="-Zomf $CFLAGS"
49980             CXXFLAGS="-Zomf $CXXFLAGS"
49981             OS2_LIBEXT="lib"
49982         else
49983             OS2_LIBEXT="a"
49984         fi
49985         ;;
49986
49987       i*86-*-beos* )
49988         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
49989         ;;
49990     esac
49991
49992
49993     SO_SUFFIX="so"
49994     SO_SUFFIX_MODULE="so"
49995     EXEEXT=""
49996     LIBPREFIX="lib"
49997     LIBEXT=".a"
49998     DLLPREFIX="lib"
49999     DLLPREFIX_MODULE=""
50000     DLLIMP_SUFFIX=""
50001     dlldir="$libdir"
50002
50003     case "${BAKEFILE_HOST}" in
50004         *-hp-hpux* )
50005             SO_SUFFIX="sl"
50006             SO_SUFFIX_MODULE="sl"
50007         ;;
50008         *-*-aix* )
50009                                                                         SO_SUFFIX="a"
50010             SO_SUFFIX_MODULE="a"
50011         ;;
50012         *-*-cygwin* )
50013             SO_SUFFIX="dll"
50014             SO_SUFFIX_MODULE="dll"
50015             DLLIMP_SUFFIX="dll.a"
50016             EXEEXT=".exe"
50017             DLLPREFIX="cyg"
50018             dlldir="$bindir"
50019         ;;
50020         *-*-mingw32* )
50021             SO_SUFFIX="dll"
50022             SO_SUFFIX_MODULE="dll"
50023             DLLIMP_SUFFIX="dll.a"
50024             EXEEXT=".exe"
50025             DLLPREFIX=""
50026             dlldir="$bindir"
50027         ;;
50028         *-pc-msdosdjgpp )
50029             EXEEXT=".exe"
50030             DLLPREFIX=""
50031             dlldir="$bindir"
50032         ;;
50033         *-pc-os2_emx | *-pc-os2-emx )
50034             SO_SUFFIX="dll"
50035             SO_SUFFIX_MODULE="dll"
50036             DLLIMP_SUFFIX=$OS2_LIBEXT
50037             EXEEXT=".exe"
50038             DLLPREFIX=""
50039             LIBPREFIX=""
50040             LIBEXT=".$OS2_LIBEXT"
50041             dlldir="$bindir"
50042         ;;
50043         *-*-darwin* )
50044             SO_SUFFIX="dylib"
50045             SO_SUFFIX_MODULE="bundle"
50046         ;;
50047     esac
50048
50049     if test "x$DLLIMP_SUFFIX" = "x" ; then
50050         DLLIMP_SUFFIX="$SO_SUFFIX"
50051     fi
50052
50053
50054
50055
50056
50057
50058
50059
50060
50061
50062
50063
50064         PIC_FLAG=""
50065     if test "x$GCC" = "xyes"; then
50066                 PIC_FLAG="-fPIC"
50067     fi
50068
50069         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50070     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50071     WINDOWS_IMPLIB=0
50072
50073     case "${BAKEFILE_HOST}" in
50074       *-hp-hpux* )
50075                 if test "x$GCC" != "xyes"; then
50076                         LDFLAGS="$LDFLAGS -L/usr/lib"
50077
50078             SHARED_LD_CC="${CC} -b -o"
50079             SHARED_LD_CXX="${CXX} -b -o"
50080             PIC_FLAG="+Z"
50081         fi
50082       ;;
50083
50084       *-*-linux* )
50085         if test "$INTELCC" = "yes"; then
50086             PIC_FLAG="-KPIC"
50087         elif test "x$SUNCXX" = "xyes"; then
50088             SHARED_LD_CC="${CC} -G -o"
50089             SHARED_LD_CXX="${CXX} -G -o"
50090             PIC_FLAG="-KPIC"
50091         fi
50092       ;;
50093
50094       *-*-solaris2* )
50095         if test "x$SUNCXX" = xyes ; then
50096             SHARED_LD_CC="${CC} -G -o"
50097             SHARED_LD_CXX="${CXX} -G -o"
50098             PIC_FLAG="-KPIC"
50099         fi
50100       ;;
50101
50102       *-*-darwin* )
50103
50104 D='$'
50105 cat <<EOF >shared-ld-sh
50106 #!/bin/sh
50107 #-----------------------------------------------------------------------------
50108 #-- Name:        distrib/mac/shared-ld-sh
50109 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50110 #-- Author:      Gilles Depeyrot
50111 #-- Copyright:   (c) 2002 Gilles Depeyrot
50112 #-- Licence:     any use permitted
50113 #-----------------------------------------------------------------------------
50114
50115 verbose=0
50116 args=""
50117 objects=""
50118 linking_flag="-dynamiclib"
50119 ldargs="-r -keep_private_externs -nostdlib"
50120
50121 while test ${D}# -gt 0; do
50122     case ${D}1 in
50123
50124        -v)
50125         verbose=1
50126         ;;
50127
50128        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50129         # collect these options and values
50130         args="${D}{args} ${D}1 ${D}2"
50131         shift
50132         ;;
50133
50134        -s|-Wl,*)
50135         # collect these load args
50136         ldargs="${D}{ldargs} ${D}1"
50137         ;;
50138
50139        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50140         # collect these options
50141         args="${D}{args} ${D}1"
50142         ;;
50143
50144        -dynamiclib|-bundle)
50145         linking_flag="${D}1"
50146         ;;
50147
50148        -*)
50149         echo "shared-ld: unhandled option '${D}1'"
50150         exit 1
50151         ;;
50152
50153         *.o | *.a | *.dylib)
50154         # collect object files
50155         objects="${D}{objects} ${D}1"
50156         ;;
50157
50158         *)
50159         echo "shared-ld: unhandled argument '${D}1'"
50160         exit 1
50161         ;;
50162
50163     esac
50164     shift
50165 done
50166
50167 status=0
50168
50169 #
50170 # Link one module containing all the others
50171 #
50172 if test ${D}{verbose} = 1; then
50173     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50174 fi
50175 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50176 status=${D}?
50177
50178 #
50179 # Link the shared library from the single module created, but only if the
50180 # previous command didn't fail:
50181 #
50182 if test ${D}{status} = 0; then
50183     if test ${D}{verbose} = 1; then
50184         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50185     fi
50186     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50187     status=${D}?
50188 fi
50189
50190 #
50191 # Remove intermediate module
50192 #
50193 rm -f master.${D}${D}.o
50194
50195 exit ${D}status
50196 EOF
50197
50198         chmod +x shared-ld-sh
50199
50200         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50201         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
50202
50203
50204                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50205 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50206 if test "${bakefile_cv_gcc31+set}" = set; then
50207   echo $ECHO_N "(cached) $ECHO_C" >&6
50208 else
50209
50210            cat >conftest.$ac_ext <<_ACEOF
50211 /* confdefs.h.  */
50212 _ACEOF
50213 cat confdefs.h >>conftest.$ac_ext
50214 cat >>conftest.$ac_ext <<_ACEOF
50215 /* end confdefs.h.  */
50216
50217 int
50218 main ()
50219 {
50220
50221                    #if (__GNUC__ < 3) || \
50222                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50223                        This is old gcc
50224                    #endif
50225
50226   ;
50227   return 0;
50228 }
50229 _ACEOF
50230 rm -f conftest.$ac_objext
50231 if { (ac_try="$ac_compile"
50232 case "(($ac_try" in
50233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50234   *) ac_try_echo=$ac_try;;
50235 esac
50236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50237   (eval "$ac_compile") 2>conftest.er1
50238   ac_status=$?
50239   grep -v '^ *+' conftest.er1 >conftest.err
50240   rm -f conftest.er1
50241   cat conftest.err >&5
50242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50243   (exit $ac_status); } && {
50244          test -z "$ac_c_werror_flag" ||
50245          test ! -s conftest.err
50246        } && test -s conftest.$ac_objext; then
50247
50248                    bakefile_cv_gcc31=yes
50249
50250 else
50251   echo "$as_me: failed program was:" >&5
50252 sed 's/^/| /' conftest.$ac_ext >&5
50253
50254
50255                    bakefile_cv_gcc31=no
50256
50257
50258 fi
50259
50260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50261
50262 fi
50263 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50264 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50265         if test "$bakefile_cv_gcc31" = "no"; then
50266                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50267             SHARED_LD_CXX="$SHARED_LD_CC"
50268         else
50269                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50270             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50271         fi
50272
50273         if test "x$GCC" == "xyes"; then
50274             PIC_FLAG="-dynamic -fPIC"
50275         fi
50276         if test "x$XLCC" = "xyes"; then
50277             PIC_FLAG="-dynamic -DPIC"
50278         fi
50279       ;;
50280
50281       *-*-aix* )
50282         if test "x$GCC" = "xyes"; then
50283                                                             PIC_FLAG=""
50284
50285                                                                                     case "${BAKEFILE_HOST}" in
50286                 *-*-aix5* )
50287                     LD_EXPFULL="-Wl,-bexpfull"
50288                     ;;
50289             esac
50290
50291             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50292             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50293         else
50294                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50295 set dummy makeC++SharedLib; ac_word=$2
50296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50298 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50299   echo $ECHO_N "(cached) $ECHO_C" >&6
50300 else
50301   if test -n "$AIX_CXX_LD"; then
50302   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50303 else
50304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50305 for as_dir in $PATH
50306 do
50307   IFS=$as_save_IFS
50308   test -z "$as_dir" && as_dir=.
50309   for ac_exec_ext in '' $ac_executable_extensions; do
50310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50311     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50313     break 2
50314   fi
50315 done
50316 done
50317 IFS=$as_save_IFS
50318
50319   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50320 fi
50321 fi
50322 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50323 if test -n "$AIX_CXX_LD"; then
50324   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50325 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50326 else
50327   { echo "$as_me:$LINENO: result: no" >&5
50328 echo "${ECHO_T}no" >&6; }
50329 fi
50330
50331
50332             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50333             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50334         fi
50335       ;;
50336
50337       *-*-beos* )
50338                         SHARED_LD_CC="${LD} -nostart -o"
50339         SHARED_LD_CXX="${LD} -nostart -o"
50340       ;;
50341
50342       *-*-irix* )
50343                 if test "x$GCC" != "xyes"; then
50344             PIC_FLAG="-KPIC"
50345         fi
50346       ;;
50347
50348       *-*-cygwin* | *-*-mingw32* )
50349         PIC_FLAG=""
50350         SHARED_LD_CC="\$(CC) -shared -o"
50351         SHARED_LD_CXX="\$(CXX) -shared -o"
50352         WINDOWS_IMPLIB=1
50353       ;;
50354
50355       *-pc-os2_emx | *-pc-os2-emx )
50356         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50357         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50358         PIC_FLAG=""
50359
50360 D='$'
50361 cat <<EOF >dllar.sh
50362 #!/bin/sh
50363 #
50364 # dllar - a tool to build both a .dll and an .a file
50365 # from a set of object (.o) files for EMX/OS2.
50366 #
50367 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50368 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50369 #
50370 #  This script will accept a set of files on the command line.
50371 #  All the public symbols from the .o files will be exported into
50372 #  a .DEF file, then linker will be run (through gcc) against them to
50373 #  build a shared library consisting of all given .o files. All libraries
50374 #  (.a) will be first decompressed into component .o files then act as
50375 #  described above. You can optionally give a description (-d "description")
50376 #  which will be put into .DLL. To see the list of accepted options (as well
50377 #  as command-line format) simply run this program without options. The .DLL
50378 #  is built to be imported by name (there is no guarantee that new versions
50379 #  of the library you build will have same ordinals for same symbols).
50380 #
50381 #  dllar is free software; you can redistribute it and/or modify
50382 #  it under the terms of the GNU General Public License as published by
50383 #  the Free Software Foundation; either version 2, or (at your option)
50384 #  any later version.
50385 #
50386 #  dllar is distributed in the hope that it will be useful,
50387 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
50388 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50389 #  GNU General Public License for more details.
50390 #
50391 #  You should have received a copy of the GNU General Public License
50392 #  along with dllar; see the file COPYING.  If not, write to the Free
50393 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50394 #  02111-1307, USA.
50395
50396 # To successfuly run this program you will need:
50397 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
50398 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50399 #  - gcc
50400 #    (used to build the .dll)
50401 #  - emxexp
50402 #    (used to create .def file from .o files)
50403 #  - emximp
50404 #    (used to create .a file from .def file)
50405 #  - GNU text utilites (cat, sort, uniq)
50406 #    used to process emxexp output
50407 #  - GNU file utilities (mv, rm)
50408 #  - GNU sed
50409 #  - lxlite (optional, see flag below)
50410 #    (used for general .dll cleanup)
50411 #
50412
50413 flag_USE_LXLITE=1;
50414
50415 #
50416 # helper functions
50417 # basnam, variant of basename, which does _not_ remove the path, _iff_
50418 #                              second argument (suffix to remove) is given
50419 basnam(){
50420     case ${D}# in
50421     1)
50422         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
50423         ;;
50424     2)
50425         echo ${D}1 | sed 's/'${D}2'${D}//'
50426         ;;
50427     *)
50428         echo "error in basnam ${D}*"
50429         exit 8
50430         ;;
50431     esac
50432 }
50433
50434 # Cleanup temporary files and output
50435 CleanUp() {
50436     cd ${D}curDir
50437     for i in ${D}inputFiles ; do
50438         case ${D}i in
50439         *!)
50440             rm -rf \`basnam ${D}i !\`
50441             ;;
50442         *)
50443             ;;
50444         esac
50445     done
50446
50447     # Kill result in case of failure as there is just to many stupid make/nmake
50448     # things out there which doesn't do this.
50449     if [ ${D}# -eq 0 ]; then
50450         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50451     fi
50452 }
50453
50454 # Print usage and exit script with rc=1.
50455 PrintHelp() {
50456  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
50457  echo '       [-name-mangler-script script.sh]'
50458  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
50459  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
50460  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
50461  echo '       [*.o] [*.a]'
50462  echo '*> "output_file" should have no extension.'
50463  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
50464  echo '   The import library name is derived from this and is set to "name".a,'
50465  echo '   unless overridden by -import'
50466  echo '*> "importlib_name" should have no extension.'
50467  echo '   If it has the .o, or .a extension, it is automatically removed.'
50468  echo '   This name is used as the import library name and may be longer and'
50469  echo '   more descriptive than the DLL name which has to follow the old '
50470  echo '   8.3 convention of FAT.'
50471  echo '*> "script.sh may be given to override the output_file name by a'
50472  echo '   different name. It is mainly useful if the regular make process'
50473  echo '   of some package does not take into account OS/2 restriction of'
50474  echo '   DLL name lengths. It takes the importlib name as input and is'
50475  echo '   supposed to procude a shorter name as output. The script should'
50476  echo '   expect to get importlib_name without extension and should produce'
50477  echo '   a (max.) 8 letter name without extension.'
50478  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
50479  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
50480  echo '   These flags will be put at the start of GCC command line.'
50481  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
50482  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
50483  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
50484  echo '   If the last character of a symbol is "*", all symbols beginning'
50485  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
50486  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
50487  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
50488  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
50489  echo '   C runtime DLLs.'
50490  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
50491  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
50492  echo '   unchanged to GCC at the end of command line.'
50493  echo '*> If you create a DLL from a library and you do not specify -o,'
50494  echo '   the basename for DLL and import library will be set to library name,'
50495  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
50496  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
50497  echo '   library will be renamed into gcc_s.a.'
50498  echo '--------'
50499  echo 'Example:'
50500  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
50501  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
50502  CleanUp
50503  exit 1
50504 }
50505
50506 # Execute a command.
50507 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
50508 # @Uses    Whatever CleanUp() uses.
50509 doCommand() {
50510     echo "${D}*"
50511     eval ${D}*
50512     rcCmd=${D}?
50513
50514     if [ ${D}rcCmd -ne 0 ]; then
50515         echo "command failed, exit code="${D}rcCmd
50516         CleanUp
50517         exit ${D}rcCmd
50518     fi
50519 }
50520
50521 # main routine
50522 # setup globals
50523 cmdLine=${D}*
50524 outFile=""
50525 outimpFile=""
50526 inputFiles=""
50527 renameScript=""
50528 description=""
50529 CC=gcc.exe
50530 CFLAGS="-s -Zcrtdll"
50531 EXTRA_CFLAGS=""
50532 EXPORT_BY_ORDINALS=0
50533 exclude_symbols=""
50534 library_flags=""
50535 curDir=\`pwd\`
50536 curDirS=curDir
50537 case ${D}curDirS in
50538 */)
50539   ;;
50540 *)
50541   curDirS=${D}{curDirS}"/"
50542   ;;
50543 esac
50544 # Parse commandline
50545 libsToLink=0
50546 omfLinking=0
50547 while [ ${D}1 ]; do
50548     case ${D}1 in
50549     -ord*)
50550         EXPORT_BY_ORDINALS=1;
50551         ;;
50552     -o*)
50553         shift
50554         outFile=${D}1
50555         ;;
50556     -i*)
50557         shift
50558         outimpFile=${D}1
50559         ;;
50560     -name-mangler-script)
50561         shift
50562         renameScript=${D}1
50563         ;;
50564     -d*)
50565         shift
50566         description=${D}1
50567         ;;
50568     -f*)
50569         shift
50570         CFLAGS=${D}1
50571         ;;
50572     -c*)
50573         shift
50574         CC=${D}1
50575         ;;
50576     -h*)
50577         PrintHelp
50578         ;;
50579     -ex*)
50580         shift
50581         exclude_symbols=${D}{exclude_symbols}${D}1" "
50582         ;;
50583     -libf*)
50584         shift
50585         library_flags=${D}{library_flags}${D}1" "
50586         ;;
50587     -nocrt*)
50588         CFLAGS="-s"
50589         ;;
50590     -nolxl*)
50591         flag_USE_LXLITE=0
50592         ;;
50593     -* | /*)
50594         case ${D}1 in
50595         -L* | -l*)
50596             libsToLink=1
50597             ;;
50598         -Zomf)
50599             omfLinking=1
50600             ;;
50601         *)
50602             ;;
50603         esac
50604         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50605         ;;
50606     *.dll)
50607         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
50608         if [ ${D}omfLinking -eq 1 ]; then
50609             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
50610         else
50611             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
50612         fi
50613         ;;
50614     *)
50615         found=0;
50616         if [ ${D}libsToLink -ne 0 ]; then
50617             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50618         else
50619             for file in ${D}1 ; do
50620                 if [ -f ${D}file ]; then
50621                     inputFiles="${D}{inputFiles} ${D}file"
50622                     found=1
50623                 fi
50624             done
50625             if [ ${D}found -eq 0 ]; then
50626                 echo "ERROR: No file(s) found: "${D}1
50627                 exit 8
50628             fi
50629         fi
50630       ;;
50631     esac
50632     shift
50633 done # iterate cmdline words
50634
50635 #
50636 if [ -z "${D}inputFiles" ]; then
50637     echo "dllar: no input files"
50638     PrintHelp
50639 fi
50640
50641 # Now extract all .o files from .a files
50642 newInputFiles=""
50643 for file in ${D}inputFiles ; do
50644     case ${D}file in
50645     *.a | *.lib)
50646         case ${D}file in
50647         *.a)
50648             suffix=".a"
50649             AR="ar"
50650             ;;
50651         *.lib)
50652             suffix=".lib"
50653             AR="emxomfar"
50654             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
50655             ;;
50656         *)
50657             ;;
50658         esac
50659         dirname=\`basnam ${D}file ${D}suffix\`"_%"
50660         mkdir ${D}dirname
50661         if [ ${D}? -ne 0 ]; then
50662             echo "Failed to create subdirectory ./${D}dirname"
50663             CleanUp
50664             exit 8;
50665         fi
50666         # Append '!' to indicate archive
50667         newInputFiles="${D}newInputFiles ${D}{dirname}!"
50668         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
50669         cd ${D}curDir
50670         found=0;
50671         for subfile in ${D}dirname/*.o* ; do
50672             if [ -f ${D}subfile ]; then
50673                 found=1
50674                 if [ -s ${D}subfile ]; then
50675                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
50676                     newInputFiles="${D}newInputFiles ${D}subfile"
50677                 fi
50678             fi
50679         done
50680         if [ ${D}found -eq 0 ]; then
50681             echo "WARNING: there are no files in archive \\'${D}file\\'"
50682         fi
50683         ;;
50684     *)
50685         newInputFiles="${D}{newInputFiles} ${D}file"
50686         ;;
50687     esac
50688 done
50689 inputFiles="${D}newInputFiles"
50690
50691 # Output filename(s).
50692 do_backup=0;
50693 if [ -z ${D}outFile ]; then
50694     do_backup=1;
50695     set outFile ${D}inputFiles; outFile=${D}2
50696 fi
50697
50698 # If it is an archive, remove the '!' and the '_%' suffixes
50699 case ${D}outFile in
50700 *_%!)
50701     outFile=\`basnam ${D}outFile _%!\`
50702     ;;
50703 *)
50704     ;;
50705 esac
50706 case ${D}outFile in
50707 *.dll)
50708     outFile=\`basnam ${D}outFile .dll\`
50709     ;;
50710 *.DLL)
50711     outFile=\`basnam ${D}outFile .DLL\`
50712     ;;
50713 *.o)
50714     outFile=\`basnam ${D}outFile .o\`
50715     ;;
50716 *.obj)
50717     outFile=\`basnam ${D}outFile .obj\`
50718     ;;
50719 *.a)
50720     outFile=\`basnam ${D}outFile .a\`
50721     ;;
50722 *.lib)
50723     outFile=\`basnam ${D}outFile .lib\`
50724     ;;
50725 *)
50726     ;;
50727 esac
50728 case ${D}outimpFile in
50729 *.a)
50730     outimpFile=\`basnam ${D}outimpFile .a\`
50731     ;;
50732 *.lib)
50733     outimpFile=\`basnam ${D}outimpFile .lib\`
50734     ;;
50735 *)
50736     ;;
50737 esac
50738 if [ -z ${D}outimpFile ]; then
50739     outimpFile=${D}outFile
50740 fi
50741 defFile="${D}{outFile}.def"
50742 arcFile="${D}{outimpFile}.a"
50743 arcFile2="${D}{outimpFile}.lib"
50744
50745 #create ${D}dllFile as something matching 8.3 restrictions,
50746 if [ -z ${D}renameScript ] ; then
50747     dllFile="${D}outFile"
50748 else
50749     dllFile=\`${D}renameScript ${D}outimpFile\`
50750 fi
50751
50752 if [ ${D}do_backup -ne 0 ] ; then
50753     if [ -f ${D}arcFile ] ; then
50754         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
50755     fi
50756     if [ -f ${D}arcFile2 ] ; then
50757         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
50758     fi
50759 fi
50760
50761 # Extract public symbols from all the object files.
50762 tmpdefFile=${D}{defFile}_%
50763 rm -f ${D}tmpdefFile
50764 for file in ${D}inputFiles ; do
50765     case ${D}file in
50766     *!)
50767         ;;
50768     *)
50769         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
50770         ;;
50771     esac
50772 done
50773
50774 # Create the def file.
50775 rm -f ${D}defFile
50776 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
50777 dllFile="${D}{dllFile}.dll"
50778 if [ ! -z ${D}description ]; then
50779     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
50780 fi
50781 echo "EXPORTS" >> ${D}defFile
50782
50783 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
50784 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
50785
50786 # Checks if the export is ok or not.
50787 for word in ${D}exclude_symbols; do
50788     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
50789     mv ${D}{tmpdefFile}% ${D}tmpdefFile
50790 done
50791
50792
50793 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50794     sed "=" < ${D}tmpdefFile | \\
50795     sed '
50796       N
50797       : loop
50798       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
50799       t loop
50800     ' > ${D}{tmpdefFile}%
50801     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
50802 else
50803     rm -f ${D}{tmpdefFile}%
50804 fi
50805 cat ${D}tmpdefFile >> ${D}defFile
50806 rm -f ${D}tmpdefFile
50807
50808 # Do linking, create implib, and apply lxlite.
50809 gccCmdl="";
50810 for file in ${D}inputFiles ; do
50811     case ${D}file in
50812     *!)
50813         ;;
50814     *)
50815         gccCmdl="${D}gccCmdl ${D}file"
50816         ;;
50817     esac
50818 done
50819 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
50820 touch "${D}{outFile}.dll"
50821
50822 doCommand "emximp -o ${D}arcFile ${D}defFile"
50823 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
50824     add_flags="";
50825     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50826         add_flags="-ynd"
50827     fi
50828     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
50829 fi
50830 doCommand "emxomf -s -l ${D}arcFile"
50831
50832 # Successful exit.
50833 CleanUp 1
50834 exit 0
50835 EOF
50836
50837         chmod +x dllar.sh
50838       ;;
50839
50840       powerpc-apple-macos* | \
50841       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
50842       *-*-mirbsd* | \
50843       *-*-sunos4* | \
50844       *-*-osf* | \
50845       *-*-dgux5* | \
50846       *-*-sysv5* | \
50847       *-pc-msdosdjgpp )
50848               ;;
50849
50850       *)
50851         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
50852 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
50853    { (exit 1); exit 1; }; }
50854     esac
50855
50856     if test "x$PIC_FLAG" != "x" ; then
50857         PIC_FLAG="$PIC_FLAG -DPIC"
50858     fi
50859
50860     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
50861         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
50862     fi
50863     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
50864         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
50865     fi
50866
50867
50868
50869
50870
50871
50872
50873
50874
50875     USE_SOVERSION=0
50876     USE_SOVERLINUX=0
50877     USE_SOVERSOLARIS=0
50878     USE_SOVERCYGWIN=0
50879     USE_SOSYMLINKS=0
50880     USE_MACVERSION=0
50881     SONAME_FLAG=
50882
50883     case "${BAKEFILE_HOST}" in
50884       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
50885         if test "x$SUNCXX" = "xyes"; then
50886             SONAME_FLAG="-h "
50887         else
50888             SONAME_FLAG="-Wl,-soname,"
50889         fi
50890         USE_SOVERSION=1
50891         USE_SOVERLINUX=1
50892         USE_SOSYMLINKS=1
50893       ;;
50894
50895       *-*-solaris2* )
50896         SONAME_FLAG="-h "
50897         USE_SOVERSION=1
50898         USE_SOVERSOLARIS=1
50899         USE_SOSYMLINKS=1
50900       ;;
50901
50902       *-*-darwin* )
50903         USE_MACVERSION=1
50904         USE_SOVERSION=1
50905         USE_SOSYMLINKS=1
50906       ;;
50907
50908       *-*-cygwin* )
50909         USE_SOVERSION=1
50910         USE_SOVERCYGWIN=1
50911       ;;
50912     esac
50913
50914
50915
50916
50917
50918
50919
50920
50921
50922
50923     # Check whether --enable-dependency-tracking was given.
50924 if test "${enable_dependency_tracking+set}" = set; then
50925   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
50926 fi
50927
50928
50929     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
50930 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
50931
50932     BK_DEPS=""
50933     if test "x$bk_use_trackdeps" = "xno" ; then
50934         DEPS_TRACKING=0
50935         { echo "$as_me:$LINENO: result: disabled" >&5
50936 echo "${ECHO_T}disabled" >&6; }
50937     else
50938         DEPS_TRACKING=1
50939
50940         if test "x$GCC" = "xyes"; then
50941             DEPSMODE=gcc
50942             case "${BAKEFILE_HOST}" in
50943                 *-*-darwin* )
50944                                                             DEPSFLAG="-no-cpp-precomp -MMD"
50945                 ;;
50946                 * )
50947                     DEPSFLAG="-MMD"
50948                 ;;
50949             esac
50950             { echo "$as_me:$LINENO: result: gcc" >&5
50951 echo "${ECHO_T}gcc" >&6; }
50952         elif test "x$MWCC" = "xyes"; then
50953             DEPSMODE=mwcc
50954             DEPSFLAG="-MM"
50955             { echo "$as_me:$LINENO: result: mwcc" >&5
50956 echo "${ECHO_T}mwcc" >&6; }
50957         elif test "x$SUNCC" = "xyes"; then
50958             DEPSMODE=unixcc
50959             DEPSFLAG="-xM1"
50960             { echo "$as_me:$LINENO: result: Sun cc" >&5
50961 echo "${ECHO_T}Sun cc" >&6; }
50962         elif test "x$SGICC" = "xyes"; then
50963             DEPSMODE=unixcc
50964             DEPSFLAG="-M"
50965             { echo "$as_me:$LINENO: result: SGI cc" >&5
50966 echo "${ECHO_T}SGI cc" >&6; }
50967         elif test "x$HPCC" = "xyes"; then
50968             DEPSMODE=unixcc
50969             DEPSFLAG="+make"
50970             { echo "$as_me:$LINENO: result: HP cc" >&5
50971 echo "${ECHO_T}HP cc" >&6; }
50972         elif test "x$COMPAQCC" = "xyes"; then
50973             DEPSMODE=gcc
50974             DEPSFLAG="-MD"
50975             { echo "$as_me:$LINENO: result: Compaq cc" >&5
50976 echo "${ECHO_T}Compaq cc" >&6; }
50977         else
50978             DEPS_TRACKING=0
50979             { echo "$as_me:$LINENO: result: none" >&5
50980 echo "${ECHO_T}none" >&6; }
50981         fi
50982
50983         if test $DEPS_TRACKING = 1 ; then
50984
50985 D='$'
50986 cat <<EOF >bk-deps
50987 #!/bin/sh
50988
50989 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
50990 # script. It is used to track C/C++ files dependencies in portable way.
50991 #
50992 # Permission is given to use this file in any way.
50993
50994 DEPSMODE=${DEPSMODE}
50995 DEPSDIR=.deps
50996 DEPSFLAG="${DEPSFLAG}"
50997
50998 mkdir -p ${D}DEPSDIR
50999
51000 if test ${D}DEPSMODE = gcc ; then
51001     ${D}* ${D}{DEPSFLAG}
51002     status=${D}?
51003     if test ${D}{status} != 0 ; then
51004         exit ${D}{status}
51005     fi
51006     # move created file to the location we want it in:
51007     while test ${D}# -gt 0; do
51008         case "${D}1" in
51009             -o )
51010                 shift
51011                 objfile=${D}1
51012             ;;
51013             -* )
51014             ;;
51015             * )
51016                 srcfile=${D}1
51017             ;;
51018         esac
51019         shift
51020     done
51021     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51022     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51023     if test -f ${D}depfile ; then
51024         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51025         rm -f ${D}depfile
51026     else
51027         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51028         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
51029         if test ! -f ${D}depfile ; then
51030             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51031             depfile="${D}objfile.d"
51032         fi
51033         if test -f ${D}depfile ; then
51034             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51035             rm -f ${D}depfile
51036         fi
51037     fi
51038     exit 0
51039 elif test ${D}DEPSMODE = mwcc ; then
51040     ${D}* || exit ${D}?
51041     # Run mwcc again with -MM and redirect into the dep file we want
51042     # NOTE: We can't use shift here because we need ${D}* to be valid
51043     prevarg=
51044     for arg in ${D}* ; do
51045         if test "${D}prevarg" = "-o"; then
51046             objfile=${D}arg
51047         else
51048             case "${D}arg" in
51049                 -* )
51050                 ;;
51051                 * )
51052                     srcfile=${D}arg
51053                 ;;
51054             esac
51055         fi
51056         prevarg="${D}arg"
51057     done
51058     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
51059     exit 0
51060 elif test ${D}DEPSMODE = unixcc; then
51061     ${D}* || exit ${D}?
51062     # Run compiler again with deps flag and redirect into the dep file.
51063     # It doesn't work if the '-o FILE' option is used, but without it the
51064     # dependency file will contain the wrong name for the object. So it is
51065     # removed from the command line, and the dep file is fixed with sed.
51066     cmd=""
51067     while test ${D}# -gt 0; do
51068         case "${D}1" in
51069             -o )
51070                 shift
51071                 objfile=${D}1
51072             ;;
51073             * )
51074                 eval arg${D}#=\\${D}1
51075                 cmd="${D}cmd \\${D}arg${D}#"
51076             ;;
51077         esac
51078         shift
51079     done
51080     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
51081     exit 0
51082 else
51083     ${D}*
51084     exit ${D}?
51085 fi
51086 EOF
51087
51088             chmod +x bk-deps
51089                                     BK_DEPS="`pwd`/bk-deps"
51090         fi
51091     fi
51092
51093
51094
51095
51096
51097     case ${BAKEFILE_HOST} in
51098         *-*-cygwin* | *-*-mingw32* )
51099                         if test -n "$ac_tool_prefix"; then
51100   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51101 set dummy ${ac_tool_prefix}windres; ac_word=$2
51102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51104 if test "${ac_cv_prog_WINDRES+set}" = set; then
51105   echo $ECHO_N "(cached) $ECHO_C" >&6
51106 else
51107   if test -n "$WINDRES"; then
51108   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51109 else
51110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51111 for as_dir in $PATH
51112 do
51113   IFS=$as_save_IFS
51114   test -z "$as_dir" && as_dir=.
51115   for ac_exec_ext in '' $ac_executable_extensions; do
51116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51117     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51119     break 2
51120   fi
51121 done
51122 done
51123 IFS=$as_save_IFS
51124
51125 fi
51126 fi
51127 WINDRES=$ac_cv_prog_WINDRES
51128 if test -n "$WINDRES"; then
51129   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51130 echo "${ECHO_T}$WINDRES" >&6; }
51131 else
51132   { echo "$as_me:$LINENO: result: no" >&5
51133 echo "${ECHO_T}no" >&6; }
51134 fi
51135
51136
51137 fi
51138 if test -z "$ac_cv_prog_WINDRES"; then
51139   ac_ct_WINDRES=$WINDRES
51140   # Extract the first word of "windres", so it can be a program name with args.
51141 set dummy windres; ac_word=$2
51142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51144 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51145   echo $ECHO_N "(cached) $ECHO_C" >&6
51146 else
51147   if test -n "$ac_ct_WINDRES"; then
51148   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51149 else
51150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51151 for as_dir in $PATH
51152 do
51153   IFS=$as_save_IFS
51154   test -z "$as_dir" && as_dir=.
51155   for ac_exec_ext in '' $ac_executable_extensions; do
51156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51157     ac_cv_prog_ac_ct_WINDRES="windres"
51158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51159     break 2
51160   fi
51161 done
51162 done
51163 IFS=$as_save_IFS
51164
51165 fi
51166 fi
51167 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51168 if test -n "$ac_ct_WINDRES"; then
51169   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51170 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51171 else
51172   { echo "$as_me:$LINENO: result: no" >&5
51173 echo "${ECHO_T}no" >&6; }
51174 fi
51175
51176   if test "x$ac_ct_WINDRES" = x; then
51177     WINDRES=""
51178   else
51179     case $cross_compiling:$ac_tool_warned in
51180 yes:)
51181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51182 whose name does not start with the host triplet.  If you think this
51183 configuration is useful to you, please write to autoconf@gnu.org." >&5
51184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51185 whose name does not start with the host triplet.  If you think this
51186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51187 ac_tool_warned=yes ;;
51188 esac
51189     WINDRES=$ac_ct_WINDRES
51190   fi
51191 else
51192   WINDRES="$ac_cv_prog_WINDRES"
51193 fi
51194
51195          ;;
51196
51197       *-*-darwin* | powerpc-apple-macos* )
51198             # Extract the first word of "Rez", so it can be a program name with args.
51199 set dummy Rez; ac_word=$2
51200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51202 if test "${ac_cv_prog_REZ+set}" = set; then
51203   echo $ECHO_N "(cached) $ECHO_C" >&6
51204 else
51205   if test -n "$REZ"; then
51206   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51207 else
51208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51209 for as_dir in $PATH
51210 do
51211   IFS=$as_save_IFS
51212   test -z "$as_dir" && as_dir=.
51213   for ac_exec_ext in '' $ac_executable_extensions; do
51214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51215     ac_cv_prog_REZ="Rez"
51216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51217     break 2
51218   fi
51219 done
51220 done
51221 IFS=$as_save_IFS
51222
51223   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51224 fi
51225 fi
51226 REZ=$ac_cv_prog_REZ
51227 if test -n "$REZ"; then
51228   { echo "$as_me:$LINENO: result: $REZ" >&5
51229 echo "${ECHO_T}$REZ" >&6; }
51230 else
51231   { echo "$as_me:$LINENO: result: no" >&5
51232 echo "${ECHO_T}no" >&6; }
51233 fi
51234
51235
51236             # Extract the first word of "SetFile", so it can be a program name with args.
51237 set dummy SetFile; ac_word=$2
51238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51240 if test "${ac_cv_prog_SETFILE+set}" = set; then
51241   echo $ECHO_N "(cached) $ECHO_C" >&6
51242 else
51243   if test -n "$SETFILE"; then
51244   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51245 else
51246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51247 for as_dir in $PATH
51248 do
51249   IFS=$as_save_IFS
51250   test -z "$as_dir" && as_dir=.
51251   for ac_exec_ext in '' $ac_executable_extensions; do
51252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51253     ac_cv_prog_SETFILE="SetFile"
51254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51255     break 2
51256   fi
51257 done
51258 done
51259 IFS=$as_save_IFS
51260
51261   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51262 fi
51263 fi
51264 SETFILE=$ac_cv_prog_SETFILE
51265 if test -n "$SETFILE"; then
51266   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51267 echo "${ECHO_T}$SETFILE" >&6; }
51268 else
51269   { echo "$as_me:$LINENO: result: no" >&5
51270 echo "${ECHO_T}no" >&6; }
51271 fi
51272
51273
51274         ;;
51275     esac
51276
51277
51278
51279
51280
51281
51282     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
51283
51284
51285 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
51286
51287
51288
51289     # Check whether --enable-precomp-headers was given.
51290 if test "${enable_precomp_headers+set}" = set; then
51291   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51292 fi
51293
51294
51295     GCC_PCH=0
51296     ICC_PCH=0
51297     USE_PCH=0
51298     BK_MAKE_PCH=""
51299
51300     case ${BAKEFILE_HOST} in
51301         *-*-cygwin* )
51302                                                 bk_use_pch="no"
51303             ;;
51304     esac
51305
51306     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51307         if test "x$GCC" = "xyes"; then
51308                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51309 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51310             cat >conftest.$ac_ext <<_ACEOF
51311 /* confdefs.h.  */
51312 _ACEOF
51313 cat confdefs.h >>conftest.$ac_ext
51314 cat >>conftest.$ac_ext <<_ACEOF
51315 /* end confdefs.h.  */
51316
51317 int
51318 main ()
51319 {
51320
51321                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51322                         There is no PCH support
51323                     #endif
51324                     #if (__GNUC__ < 3)
51325                         There is no PCH support
51326                     #endif
51327                     #if (__GNUC__ == 3) && \
51328                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51329                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51330                        ( defined(__INTEL_COMPILER) )
51331                         There is no PCH support
51332                     #endif
51333
51334   ;
51335   return 0;
51336 }
51337 _ACEOF
51338 rm -f conftest.$ac_objext
51339 if { (ac_try="$ac_compile"
51340 case "(($ac_try" in
51341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51342   *) ac_try_echo=$ac_try;;
51343 esac
51344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51345   (eval "$ac_compile") 2>conftest.er1
51346   ac_status=$?
51347   grep -v '^ *+' conftest.er1 >conftest.err
51348   rm -f conftest.er1
51349   cat conftest.err >&5
51350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51351   (exit $ac_status); } && {
51352          test -z "$ac_c_werror_flag" ||
51353          test ! -s conftest.err
51354        } && test -s conftest.$ac_objext; then
51355
51356                     { echo "$as_me:$LINENO: result: yes" >&5
51357 echo "${ECHO_T}yes" >&6; }
51358                     GCC_PCH=1
51359
51360 else
51361   echo "$as_me: failed program was:" >&5
51362 sed 's/^/| /' conftest.$ac_ext >&5
51363
51364
51365                     cat >conftest.$ac_ext <<_ACEOF
51366 /* confdefs.h.  */
51367 _ACEOF
51368 cat confdefs.h >>conftest.$ac_ext
51369 cat >>conftest.$ac_ext <<_ACEOF
51370 /* end confdefs.h.  */
51371
51372 int
51373 main ()
51374 {
51375
51376                             #if !defined(__INTEL_COMPILER) || \
51377                                 (__INTEL_COMPILER < 800)
51378                                 There is no PCH support
51379                             #endif
51380
51381   ;
51382   return 0;
51383 }
51384 _ACEOF
51385 rm -f conftest.$ac_objext
51386 if { (ac_try="$ac_compile"
51387 case "(($ac_try" in
51388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51389   *) ac_try_echo=$ac_try;;
51390 esac
51391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51392   (eval "$ac_compile") 2>conftest.er1
51393   ac_status=$?
51394   grep -v '^ *+' conftest.er1 >conftest.err
51395   rm -f conftest.er1
51396   cat conftest.err >&5
51397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51398   (exit $ac_status); } && {
51399          test -z "$ac_c_werror_flag" ||
51400          test ! -s conftest.err
51401        } && test -s conftest.$ac_objext; then
51402
51403                             { echo "$as_me:$LINENO: result: yes" >&5
51404 echo "${ECHO_T}yes" >&6; }
51405                             ICC_PCH=1
51406
51407 else
51408   echo "$as_me: failed program was:" >&5
51409 sed 's/^/| /' conftest.$ac_ext >&5
51410
51411
51412                             { echo "$as_me:$LINENO: result: no" >&5
51413 echo "${ECHO_T}no" >&6; }
51414
51415 fi
51416
51417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51418
51419 fi
51420
51421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51422             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51423                 USE_PCH=1
51424
51425 D='$'
51426 cat <<EOF >bk-make-pch
51427 #!/bin/sh
51428
51429 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51430 # script. It is used to generated precompiled headers.
51431 #
51432 # Permission is given to use this file in any way.
51433
51434 outfile="${D}{1}"
51435 header="${D}{2}"
51436 shift
51437 shift
51438
51439 compiler=""
51440 headerfile=""
51441
51442 while test ${D}{#} -gt 0; do
51443     add_to_cmdline=1
51444     case "${D}{1}" in
51445         -I* )
51446             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51447             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51448                 headerfile="${D}{incdir}/${D}{header}"
51449             fi
51450         ;;
51451         -use-pch|-use_pch )
51452             shift
51453             add_to_cmdline=0
51454         ;;
51455     esac
51456     if test ${D}add_to_cmdline = 1 ; then
51457         compiler="${D}{compiler} ${D}{1}"
51458     fi
51459     shift
51460 done
51461
51462 if test "x${D}{headerfile}" = "x" ; then
51463     echo "error: can't find header ${D}{header} in include paths" >&2
51464 else
51465     if test -f ${D}{outfile} ; then
51466         rm -f ${D}{outfile}
51467     else
51468         mkdir -p \`dirname ${D}{outfile}\`
51469     fi
51470     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
51471     mkdir -p .deps
51472     if test "x${GCC_PCH}" = "x1" ; then
51473         # can do this because gcc is >= 3.4:
51474         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
51475     elif test "x${ICC_PCH}" = "x1" ; then
51476         filename=pch_gen-${D}${D}
51477         file=${D}{filename}.c
51478         dfile=${D}{filename}.d
51479         cat > ${D}file <<EOT
51480 #include "${D}header"
51481 EOT
51482         # using -MF icc complains about differing command lines in creation/use
51483         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
51484           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
51485           rm -f ${D}file ${D}dfile ${D}{filename}.o
51486     fi
51487     exit ${D}{?}
51488 fi
51489 EOF
51490
51491                 chmod +x bk-make-pch
51492                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
51493             fi
51494         fi
51495     fi
51496
51497
51498
51499
51500
51501     COND_BUILD_DEBUG="#"
51502     if test "x$BUILD" = "xdebug" ; then
51503         COND_BUILD_DEBUG=""
51504     fi
51505
51506     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
51507     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51508         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
51509     fi
51510
51511     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
51512     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51513         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
51514     fi
51515
51516     COND_BUILD_DEBUG_UNICODE_0="#"
51517     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51518         COND_BUILD_DEBUG_UNICODE_0=""
51519     fi
51520
51521     COND_BUILD_DEBUG_UNICODE_1="#"
51522     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51523         COND_BUILD_DEBUG_UNICODE_1=""
51524     fi
51525
51526     COND_BUILD_RELEASE="#"
51527     if test "x$BUILD" = "xrelease" ; then
51528         COND_BUILD_RELEASE=""
51529     fi
51530
51531     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
51532     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51533         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
51534     fi
51535
51536     COND_BUILD_RELEASE_UNICODE_0="#"
51537     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51538         COND_BUILD_RELEASE_UNICODE_0=""
51539     fi
51540
51541     COND_BUILD_RELEASE_UNICODE_1="#"
51542     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51543         COND_BUILD_RELEASE_UNICODE_1=""
51544     fi
51545
51546     COND_DEBUG_FLAG_1="#"
51547     if test "x$DEBUG_FLAG" = "x1" ; then
51548         COND_DEBUG_FLAG_1=""
51549     fi
51550
51551     COND_DEBUG_INFO_0="#"
51552     if test "x$DEBUG_INFO" = "x0" ; then
51553         COND_DEBUG_INFO_0=""
51554     fi
51555
51556     COND_DEBUG_INFO_1="#"
51557     if test "x$DEBUG_INFO" = "x1" ; then
51558         COND_DEBUG_INFO_1=""
51559     fi
51560
51561     COND_DEPS_TRACKING_0="#"
51562     if test "x$DEPS_TRACKING" = "x0" ; then
51563         COND_DEPS_TRACKING_0=""
51564     fi
51565
51566     COND_DEPS_TRACKING_1="#"
51567     if test "x$DEPS_TRACKING" = "x1" ; then
51568         COND_DEPS_TRACKING_1=""
51569     fi
51570
51571     COND_GCC_PCH_1="#"
51572     if test "x$GCC_PCH" = "x1" ; then
51573         COND_GCC_PCH_1=""
51574     fi
51575
51576     COND_ICC_PCH_1="#"
51577     if test "x$ICC_PCH" = "x1" ; then
51578         COND_ICC_PCH_1=""
51579     fi
51580
51581     COND_MONOLITHIC_0="#"
51582     if test "x$MONOLITHIC" = "x0" ; then
51583         COND_MONOLITHIC_0=""
51584     fi
51585
51586     COND_MONOLITHIC_0_SHARED_0="#"
51587     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
51588         COND_MONOLITHIC_0_SHARED_0=""
51589     fi
51590
51591     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
51592     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
51593         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
51594     fi
51595
51596     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
51597     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
51598         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
51599     fi
51600
51601     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
51602     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51603         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
51604     fi
51605
51606     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
51607     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51608         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
51609     fi
51610
51611     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
51612     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51613         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
51614     fi
51615
51616     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
51617     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51618         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
51619     fi
51620
51621     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
51622     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
51623         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
51624     fi
51625
51626     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
51627     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51628         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
51629     fi
51630
51631     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
51632     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51633         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
51634     fi
51635
51636     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
51637     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
51638         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
51639     fi
51640
51641     COND_MONOLITHIC_0_SHARED_1="#"
51642     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
51643         COND_MONOLITHIC_0_SHARED_1=""
51644     fi
51645
51646     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
51647     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
51648         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
51649     fi
51650
51651     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
51652     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
51653         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
51654     fi
51655
51656     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
51657     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51658         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
51659     fi
51660
51661     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
51662     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51663         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
51664     fi
51665
51666     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
51667     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51668         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
51669     fi
51670
51671     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
51672     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51673         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
51674     fi
51675
51676     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
51677     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
51678         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
51679     fi
51680
51681     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
51682     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
51683         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
51684     fi
51685
51686     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
51687     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
51688         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
51689     fi
51690
51691     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
51692     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
51693         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
51694     fi
51695
51696     COND_MONOLITHIC_0_USE_AUI_1="#"
51697     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
51698         COND_MONOLITHIC_0_USE_AUI_1=""
51699     fi
51700
51701     COND_MONOLITHIC_0_USE_GUI_1="#"
51702     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
51703         COND_MONOLITHIC_0_USE_GUI_1=""
51704     fi
51705
51706     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
51707     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51708         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
51709     fi
51710
51711     COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1="#"
51712     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
51713         COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1=""
51714     fi
51715
51716     COND_MONOLITHIC_0_USE_HTML_1="#"
51717     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
51718         COND_MONOLITHIC_0_USE_HTML_1=""
51719     fi
51720
51721     COND_MONOLITHIC_0_USE_MEDIA_1="#"
51722     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
51723         COND_MONOLITHIC_0_USE_MEDIA_1=""
51724     fi
51725
51726     COND_MONOLITHIC_0_USE_ODBC_1="#"
51727     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
51728         COND_MONOLITHIC_0_USE_ODBC_1=""
51729     fi
51730
51731     COND_MONOLITHIC_0_USE_QA_1="#"
51732     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
51733         COND_MONOLITHIC_0_USE_QA_1=""
51734     fi
51735
51736     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
51737     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51738         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
51739     fi
51740
51741     COND_MONOLITHIC_0_USE_STC_1="#"
51742     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
51743         COND_MONOLITHIC_0_USE_STC_1=""
51744     fi
51745
51746     COND_MONOLITHIC_0_USE_XRC_1="#"
51747     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
51748         COND_MONOLITHIC_0_USE_XRC_1=""
51749     fi
51750
51751     COND_MONOLITHIC_1="#"
51752     if test "x$MONOLITHIC" = "x1" ; then
51753         COND_MONOLITHIC_1=""
51754     fi
51755
51756     COND_MONOLITHIC_1_SHARED_0="#"
51757     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
51758         COND_MONOLITHIC_1_SHARED_0=""
51759     fi
51760
51761     COND_MONOLITHIC_1_SHARED_1="#"
51762     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
51763         COND_MONOLITHIC_1_SHARED_1=""
51764     fi
51765
51766     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
51767     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
51768         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
51769     fi
51770
51771     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
51772     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
51773         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
51774     fi
51775
51776     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
51777     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51778         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
51779     fi
51780
51781     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
51782     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51783         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
51784     fi
51785
51786     COND_PLATFORM_MACOSX_1="#"
51787     if test "x$PLATFORM_MACOSX" = "x1" ; then
51788         COND_PLATFORM_MACOSX_1=""
51789     fi
51790
51791     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
51792     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
51793         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
51794     fi
51795
51796     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
51797     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
51798         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
51799     fi
51800
51801     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
51802     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
51803         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
51804     fi
51805
51806     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
51807     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
51808         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
51809     fi
51810
51811     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
51812     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
51813         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
51814     fi
51815
51816     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
51817     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
51818         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
51819     fi
51820
51821     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
51822     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
51823         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
51824     fi
51825
51826     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
51827     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
51828         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
51829     fi
51830
51831     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
51832     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51833         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
51834     fi
51835
51836     COND_PLATFORM_MACOS_1="#"
51837     if test "x$PLATFORM_MACOS" = "x1" ; then
51838         COND_PLATFORM_MACOS_1=""
51839     fi
51840
51841     COND_PLATFORM_MAC_1="#"
51842     if test "x$PLATFORM_MAC" = "x1" ; then
51843         COND_PLATFORM_MAC_1=""
51844     fi
51845
51846     COND_PLATFORM_MSDOS_0="#"
51847     if test "x$PLATFORM_MSDOS" = "x0" ; then
51848         COND_PLATFORM_MSDOS_0=""
51849     fi
51850
51851     COND_PLATFORM_MSDOS_1="#"
51852     if test "x$PLATFORM_MSDOS" = "x1" ; then
51853         COND_PLATFORM_MSDOS_1=""
51854     fi
51855
51856     COND_PLATFORM_OS2_1="#"
51857     if test "x$PLATFORM_OS2" = "x1" ; then
51858         COND_PLATFORM_OS2_1=""
51859     fi
51860
51861     COND_PLATFORM_UNIX_0="#"
51862     if test "x$PLATFORM_UNIX" = "x0" ; then
51863         COND_PLATFORM_UNIX_0=""
51864     fi
51865
51866     COND_PLATFORM_UNIX_1="#"
51867     if test "x$PLATFORM_UNIX" = "x1" ; then
51868         COND_PLATFORM_UNIX_1=""
51869     fi
51870
51871     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
51872     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
51873         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
51874     fi
51875
51876     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
51877     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51878         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
51879     fi
51880
51881     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
51882     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
51883         COND_PLATFORM_UNIX_1_USE_GUI_1=""
51884     fi
51885
51886     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
51887     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
51888         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
51889     fi
51890
51891     COND_PLATFORM_WIN32_0="#"
51892     if test "x$PLATFORM_WIN32" = "x0" ; then
51893         COND_PLATFORM_WIN32_0=""
51894     fi
51895
51896     COND_PLATFORM_WIN32_1="#"
51897     if test "x$PLATFORM_WIN32" = "x1" ; then
51898         COND_PLATFORM_WIN32_1=""
51899     fi
51900
51901     COND_SHARED_0="#"
51902     if test "x$SHARED" = "x0" ; then
51903         COND_SHARED_0=""
51904     fi
51905
51906     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
51907     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
51908         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
51909     fi
51910
51911     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
51912     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
51913         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
51914     fi
51915
51916     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
51917     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
51918         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
51919     fi
51920
51921     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
51922     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51923         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
51924     fi
51925
51926     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
51927     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51928         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
51929     fi
51930
51931     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
51932     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51933         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
51934     fi
51935
51936     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
51937     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51938         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
51939     fi
51940
51941     COND_SHARED_0_USE_STC_1="#"
51942     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51943         COND_SHARED_0_USE_STC_1=""
51944     fi
51945
51946     COND_SHARED_0_USE_XRC_1="#"
51947     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
51948         COND_SHARED_0_USE_XRC_1=""
51949     fi
51950
51951     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
51952     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
51953         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
51954     fi
51955
51956     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
51957     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
51958         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
51959     fi
51960
51961     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
51962     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
51963         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
51964     fi
51965
51966     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
51967     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
51968         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
51969     fi
51970
51971     COND_SHARED_1="#"
51972     if test "x$SHARED" = "x1" ; then
51973         COND_SHARED_1=""
51974     fi
51975
51976     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
51977     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51978         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
51979     fi
51980
51981     COND_SHARED_1_USE_XRC_1="#"
51982     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
51983         COND_SHARED_1_USE_XRC_1=""
51984     fi
51985
51986     COND_TOOLKIT_="#"
51987     if test "x$TOOLKIT" = "x" ; then
51988         COND_TOOLKIT_=""
51989     fi
51990
51991     COND_TOOLKIT_COCOA="#"
51992     if test "x$TOOLKIT" = "xCOCOA" ; then
51993         COND_TOOLKIT_COCOA=""
51994     fi
51995
51996     COND_TOOLKIT_COCOA_USE_GUI_1="#"
51997     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
51998         COND_TOOLKIT_COCOA_USE_GUI_1=""
51999     fi
52000
52001     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52002     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52003         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52004     fi
52005
52006     COND_TOOLKIT_DFB="#"
52007     if test "x$TOOLKIT" = "xDFB" ; then
52008         COND_TOOLKIT_DFB=""
52009     fi
52010
52011     COND_TOOLKIT_DFB_USE_GUI_1="#"
52012     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52013         COND_TOOLKIT_DFB_USE_GUI_1=""
52014     fi
52015
52016     COND_TOOLKIT_GTK="#"
52017     if test "x$TOOLKIT" = "xGTK" ; then
52018         COND_TOOLKIT_GTK=""
52019     fi
52020
52021     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52022     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52023         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52024     fi
52025
52026     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52027     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52028         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52029     fi
52030
52031     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52032     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52033         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52034     fi
52035
52036     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52037     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52038         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52039     fi
52040
52041     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52042     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52043         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52044     fi
52045
52046     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52047     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52048         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52049     fi
52050
52051     COND_TOOLKIT_GTK_USE_GUI_1="#"
52052     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52053         COND_TOOLKIT_GTK_USE_GUI_1=""
52054     fi
52055
52056     COND_TOOLKIT_MAC="#"
52057     if test "x$TOOLKIT" = "xMAC" ; then
52058         COND_TOOLKIT_MAC=""
52059     fi
52060
52061     COND_TOOLKIT_MAC_USE_GUI_1="#"
52062     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52063         COND_TOOLKIT_MAC_USE_GUI_1=""
52064     fi
52065
52066     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
52067     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52068         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
52069     fi
52070
52071     COND_TOOLKIT_MGL="#"
52072     if test "x$TOOLKIT" = "xMGL" ; then
52073         COND_TOOLKIT_MGL=""
52074     fi
52075
52076     COND_TOOLKIT_MGL_USE_GUI_1="#"
52077     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52078         COND_TOOLKIT_MGL_USE_GUI_1=""
52079     fi
52080
52081     COND_TOOLKIT_MOTIF="#"
52082     if test "x$TOOLKIT" = "xMOTIF" ; then
52083         COND_TOOLKIT_MOTIF=""
52084     fi
52085
52086     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52087     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52088         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52089     fi
52090
52091     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52092     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52093         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52094     fi
52095
52096     COND_TOOLKIT_MSW="#"
52097     if test "x$TOOLKIT" = "xMSW" ; then
52098         COND_TOOLKIT_MSW=""
52099     fi
52100
52101     COND_TOOLKIT_MSW_USE_GUI_1="#"
52102     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52103         COND_TOOLKIT_MSW_USE_GUI_1=""
52104     fi
52105
52106     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52107     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52108         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52109     fi
52110
52111     COND_TOOLKIT_MSW_WXUNIV_0="#"
52112     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52113         COND_TOOLKIT_MSW_WXUNIV_0=""
52114     fi
52115
52116     COND_TOOLKIT_PM="#"
52117     if test "x$TOOLKIT" = "xPM" ; then
52118         COND_TOOLKIT_PM=""
52119     fi
52120
52121     COND_TOOLKIT_PM_USE_GUI_1="#"
52122     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52123         COND_TOOLKIT_PM_USE_GUI_1=""
52124     fi
52125
52126     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52127     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52128         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52129     fi
52130
52131     COND_TOOLKIT_WINCE="#"
52132     if test "x$TOOLKIT" = "xWINCE" ; then
52133         COND_TOOLKIT_WINCE=""
52134     fi
52135
52136     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52137     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52138         COND_TOOLKIT_WINCE_USE_GUI_1=""
52139     fi
52140
52141     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52142     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52143         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52144     fi
52145
52146     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52147     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52148         COND_TOOLKIT_WINCE_WXUNIV_0=""
52149     fi
52150
52151     COND_TOOLKIT_X11="#"
52152     if test "x$TOOLKIT" = "xX11" ; then
52153         COND_TOOLKIT_X11=""
52154     fi
52155
52156     COND_TOOLKIT_X11_USE_GUI_1="#"
52157     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52158         COND_TOOLKIT_X11_USE_GUI_1=""
52159     fi
52160
52161     COND_UNICODE_1="#"
52162     if test "x$UNICODE" = "x1" ; then
52163         COND_UNICODE_1=""
52164     fi
52165
52166     COND_USE_EXCEPTIONS_0="#"
52167     if test "x$USE_EXCEPTIONS" = "x0" ; then
52168         COND_USE_EXCEPTIONS_0=""
52169     fi
52170
52171     COND_USE_EXCEPTIONS_1="#"
52172     if test "x$USE_EXCEPTIONS" = "x1" ; then
52173         COND_USE_EXCEPTIONS_1=""
52174     fi
52175
52176     COND_USE_GUI_0="#"
52177     if test "x$USE_GUI" = "x0" ; then
52178         COND_USE_GUI_0=""
52179     fi
52180
52181     COND_USE_GUI_1="#"
52182     if test "x$USE_GUI" = "x1" ; then
52183         COND_USE_GUI_1=""
52184     fi
52185
52186     COND_USE_GUI_1_USE_OPENGL_1="#"
52187     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52188         COND_USE_GUI_1_USE_OPENGL_1=""
52189     fi
52190
52191     COND_USE_GUI_1_WXUNIV_0="#"
52192     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52193         COND_USE_GUI_1_WXUNIV_0=""
52194     fi
52195
52196     COND_USE_GUI_1_WXUNIV_1="#"
52197     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52198         COND_USE_GUI_1_WXUNIV_1=""
52199     fi
52200
52201     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52202     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52203         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52204     fi
52205
52206     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52207     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52208         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52209     fi
52210
52211     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52212     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52213         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52214     fi
52215
52216     COND_USE_ODBC_1="#"
52217     if test "x$USE_ODBC" = "x1" ; then
52218         COND_USE_ODBC_1=""
52219     fi
52220
52221     COND_USE_OPENGL_1="#"
52222     if test "x$USE_OPENGL" = "x1" ; then
52223         COND_USE_OPENGL_1=""
52224     fi
52225
52226     COND_USE_PCH_1="#"
52227     if test "x$USE_PCH" = "x1" ; then
52228         COND_USE_PCH_1=""
52229     fi
52230
52231     COND_USE_PLUGINS_0="#"
52232     if test "x$USE_PLUGINS" = "x0" ; then
52233         COND_USE_PLUGINS_0=""
52234     fi
52235
52236     COND_USE_RTTI_0="#"
52237     if test "x$USE_RTTI" = "x0" ; then
52238         COND_USE_RTTI_0=""
52239     fi
52240
52241     COND_USE_RTTI_1="#"
52242     if test "x$USE_RTTI" = "x1" ; then
52243         COND_USE_RTTI_1=""
52244     fi
52245
52246     COND_USE_SOSYMLINKS_1="#"
52247     if test "x$USE_SOSYMLINKS" = "x1" ; then
52248         COND_USE_SOSYMLINKS_1=""
52249     fi
52250
52251     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52252     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52253         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52254     fi
52255
52256     COND_USE_SOVERLINUX_1="#"
52257     if test "x$USE_SOVERLINUX" = "x1" ; then
52258         COND_USE_SOVERLINUX_1=""
52259     fi
52260
52261     COND_USE_SOVERSION_0="#"
52262     if test "x$USE_SOVERSION" = "x0" ; then
52263         COND_USE_SOVERSION_0=""
52264     fi
52265
52266     COND_USE_SOVERSOLARIS_1="#"
52267     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52268         COND_USE_SOVERSOLARIS_1=""
52269     fi
52270
52271     COND_USE_STC_1="#"
52272     if test "x$USE_STC" = "x1" ; then
52273         COND_USE_STC_1=""
52274     fi
52275
52276     COND_USE_THREADS_0="#"
52277     if test "x$USE_THREADS" = "x0" ; then
52278         COND_USE_THREADS_0=""
52279     fi
52280
52281     COND_USE_THREADS_1="#"
52282     if test "x$USE_THREADS" = "x1" ; then
52283         COND_USE_THREADS_1=""
52284     fi
52285
52286     COND_USE_XRC_1="#"
52287     if test "x$USE_XRC" = "x1" ; then
52288         COND_USE_XRC_1=""
52289     fi
52290
52291     COND_WINDOWS_IMPLIB_1="#"
52292     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52293         COND_WINDOWS_IMPLIB_1=""
52294     fi
52295
52296     COND_WITH_PLUGIN_SDL_1="#"
52297     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52298         COND_WITH_PLUGIN_SDL_1=""
52299     fi
52300
52301     COND_WXUNIV_0="#"
52302     if test "x$WXUNIV" = "x0" ; then
52303         COND_WXUNIV_0=""
52304     fi
52305
52306     COND_WXUNIV_1="#"
52307     if test "x$WXUNIV" = "x1" ; then
52308         COND_WXUNIV_1=""
52309     fi
52310
52311     COND_WXUSE_EXPAT_BUILTIN="#"
52312     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52313         COND_WXUSE_EXPAT_BUILTIN=""
52314     fi
52315
52316     COND_WXUSE_LIBJPEG_BUILTIN="#"
52317     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52318         COND_WXUSE_LIBJPEG_BUILTIN=""
52319     fi
52320
52321     COND_WXUSE_LIBPNG_BUILTIN="#"
52322     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52323         COND_WXUSE_LIBPNG_BUILTIN=""
52324     fi
52325
52326     COND_WXUSE_LIBTIFF_BUILTIN="#"
52327     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52328         COND_WXUSE_LIBTIFF_BUILTIN=""
52329     fi
52330
52331     COND_WXUSE_ODBC_BUILTIN="#"
52332     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
52333         COND_WXUSE_ODBC_BUILTIN=""
52334     fi
52335
52336     COND_WXUSE_REGEX_BUILTIN="#"
52337     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52338         COND_WXUSE_REGEX_BUILTIN=""
52339     fi
52340
52341     COND_WXUSE_ZLIB_BUILTIN="#"
52342     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52343         COND_WXUSE_ZLIB_BUILTIN=""
52344     fi
52345
52346
52347
52348     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52349         { { 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
52350 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;}
52351    { (exit 1); exit 1; }; }
52352     fi
52353
52354     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52355         { { 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
52356 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;}
52357    { (exit 1); exit 1; }; }
52358     fi
52359
52360
52361 if test $GCC_PCH = 1
52362 then
52363     if test "$wx_cv_gcc_pch_bug" = yes; then
52364         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
52365 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
52366         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
52367 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
52368         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
52369 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
52370     fi
52371
52372     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
52373 fi
52374
52375
52376 if test "$wxUSE_MAC" = 1 ; then
52377     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
52378         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
52379         mv temp bk-deps
52380         chmod +x bk-deps
52381     fi
52382 fi
52383
52384 if test "$wxUSE_SHARED" = "yes"; then
52385
52386                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
52387     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
52388
52389                 case "${host}" in
52390       *-pc-os2_emx | *-pc-os2-emx )
52391         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52392         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52393         cp -p ${srcdir}/src/os2/dllnames.sh .
52394         cp -p ${srcdir}/src/os2/dllar.sh .
52395       ;;
52396     esac
52397 else
52398
52399         EXE_LINKER="$CXX -o"
52400
52401 fi
52402 if test "$wxUSE_OMF" = "yes"; then
52403     case "${host}" in
52404       *-pc-os2_emx | *-pc-os2-emx )
52405         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
52406         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52407         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52408       ;;
52409     esac
52410 fi
52411
52412 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
52413
52414
52415 case "${host}" in
52416     *-*-solaris2* )
52417                         if "$GCC" = yes; then
52418             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
52419             LIBS=`echo $LIBS | sed 's/-mt//'`
52420             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
52421         fi
52422         ;;
52423
52424     *-*-linux* )
52425                         if test "x$SUNCXX" = xyes; then
52426             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
52427             LIBS=`echo $LIBS | sed 's/-pthread//'`
52428             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
52429         fi
52430         ;;
52431 esac
52432
52433 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
52434 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
52435
52436 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
52437
52438
52439
52440
52441
52442
52443
52444
52445
52446
52447
52448
52449
52450
52451
52452
52453
52454
52455
52456
52457
52458
52459
52460
52461
52462
52463
52464
52465
52466
52467
52468
52469
52470
52471
52472
52473
52474
52475
52476
52477
52478
52479
52480
52481
52482
52483
52484
52485
52486
52487
52488
52489
52490
52491
52492
52493
52494
52495
52496
52497
52498 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52499 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52500 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52501 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52502   echo $ECHO_N "(cached) $ECHO_C" >&6
52503 else
52504   cat >conftest.make <<\_ACEOF
52505 SHELL = /bin/sh
52506 all:
52507         @echo '@@@%%%=$(MAKE)=@@@%%%'
52508 _ACEOF
52509 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52510 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52511   *@@@%%%=?*=@@@%%%*)
52512     eval ac_cv_prog_make_${ac_make}_set=yes;;
52513   *)
52514     eval ac_cv_prog_make_${ac_make}_set=no;;
52515 esac
52516 rm -f conftest.make
52517 fi
52518 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52519   { echo "$as_me:$LINENO: result: yes" >&5
52520 echo "${ECHO_T}yes" >&6; }
52521   SET_MAKE=
52522 else
52523   { echo "$as_me:$LINENO: result: no" >&5
52524 echo "${ECHO_T}no" >&6; }
52525   SET_MAKE="MAKE=${MAKE-make}"
52526 fi
52527
52528
52529
52530 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
52531
52532
52533 if test "$USE_WIN32" = 1; then
52534     ac_config_commands="$ac_config_commands
52535             rcdefs.h
52536         "
52537
52538 fi
52539
52540 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
52541
52542
52543 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
52544
52545
52546 if test "$wx_cv_version_script" = "yes"; then
52547     ac_config_files="$ac_config_files version-script"
52548
52549 fi
52550 ac_config_files="$ac_config_files Makefile"
52551
52552
52553 ac_config_commands="$ac_config_commands wx-config"
52554
52555
52556
52557 if test "$wxWITH_SUBDIRS" != "no"; then
52558 if test "$wxUSE_GUI" = "yes"; then
52559     SUBDIRS="samples demos utils"
52560 else         SUBDIRS="samples utils"
52561 fi
52562
52563
52564
52565 # Check whether --with-cppunit-prefix was given.
52566 if test "${with_cppunit_prefix+set}" = set; then
52567   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
52568 else
52569   cppunit_config_prefix=""
52570 fi
52571
52572
52573 # Check whether --with-cppunit-exec-prefix was given.
52574 if test "${with_cppunit_exec_prefix+set}" = set; then
52575   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
52576 else
52577   cppunit_config_exec_prefix=""
52578 fi
52579
52580
52581   if test x$cppunit_config_exec_prefix != x ; then
52582      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
52583      if test x${CPPUNIT_CONFIG+set} != xset ; then
52584         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
52585      fi
52586   fi
52587   if test x$cppunit_config_prefix != x ; then
52588      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
52589      if test x${CPPUNIT_CONFIG+set} != xset ; then
52590         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
52591      fi
52592   fi
52593
52594   # Extract the first word of "cppunit-config", so it can be a program name with args.
52595 set dummy cppunit-config; ac_word=$2
52596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52598 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
52599   echo $ECHO_N "(cached) $ECHO_C" >&6
52600 else
52601   case $CPPUNIT_CONFIG in
52602   [\\/]* | ?:[\\/]*)
52603   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
52604   ;;
52605   *)
52606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52607 for as_dir in $PATH
52608 do
52609   IFS=$as_save_IFS
52610   test -z "$as_dir" && as_dir=.
52611   for ac_exec_ext in '' $ac_executable_extensions; do
52612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52613     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52615     break 2
52616   fi
52617 done
52618 done
52619 IFS=$as_save_IFS
52620
52621   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
52622   ;;
52623 esac
52624 fi
52625 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
52626 if test -n "$CPPUNIT_CONFIG"; then
52627   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
52628 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
52629 else
52630   { echo "$as_me:$LINENO: result: no" >&5
52631 echo "${ECHO_T}no" >&6; }
52632 fi
52633
52634
52635   cppunit_version_min=1.8.0
52636
52637   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
52638 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
52639   no_cppunit=""
52640   if test "$CPPUNIT_CONFIG" = "no" ; then
52641     { echo "$as_me:$LINENO: result: no" >&5
52642 echo "${ECHO_T}no" >&6; }
52643     no_cppunit=yes
52644   else
52645     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
52646     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
52647     cppunit_version=`$CPPUNIT_CONFIG --version`
52648
52649     cppunit_major_version=`echo $cppunit_version | \
52650            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52651     cppunit_minor_version=`echo $cppunit_version | \
52652            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52653     cppunit_micro_version=`echo $cppunit_version | \
52654            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52655
52656     cppunit_major_min=`echo $cppunit_version_min | \
52657            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52658     cppunit_minor_min=`echo $cppunit_version_min | \
52659            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52660     cppunit_micro_min=`echo $cppunit_version_min | \
52661            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52662
52663     cppunit_version_proper=`expr \
52664         $cppunit_major_version \> $cppunit_major_min \| \
52665         $cppunit_major_version \= $cppunit_major_min \& \
52666         $cppunit_minor_version \> $cppunit_minor_min \| \
52667         $cppunit_major_version \= $cppunit_major_min \& \
52668         $cppunit_minor_version \= $cppunit_minor_min \& \
52669         $cppunit_micro_version \>= $cppunit_micro_min `
52670
52671     if test "$cppunit_version_proper" = "1" ; then
52672       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
52673 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
52674     else
52675       { echo "$as_me:$LINENO: result: no" >&5
52676 echo "${ECHO_T}no" >&6; }
52677       no_cppunit=yes
52678     fi
52679   fi
52680
52681   if test "x$no_cppunit" = x ; then
52682      SUBDIRS="$SUBDIRS tests"
52683   else
52684      CPPUNIT_CFLAGS=""
52685      CPPUNIT_LIBS=""
52686      :
52687   fi
52688
52689
52690
52691
52692
52693 for subdir in `echo $SUBDIRS`; do
52694     if test -d ${srcdir}/${subdir} ; then
52695         if test "$wxUSE_GUI" = "yes"; then
52696             if test ${subdir} = "samples"; then
52697                                                 makefiles="samples/Makefile.in $makefiles"
52698                 for sample in `echo $SAMPLES_SUBDIRS`; do
52699                     if test -d $srcdir/samples/$sample; then
52700                         makefiles="samples/$sample/Makefile.in $makefiles"
52701                     fi
52702                 done
52703             else
52704                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
52705                 eval "disabled=\$$disabled_var"
52706                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
52707                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
52708             fi
52709         else                                     if test ${subdir} = "samples"; then
52710                 makefiles="samples/Makefile.in samples/console/Makefile.in"
52711             elif test ${subdir} = "utils"; then
52712                 makefiles=""
52713                 for util in HelpGen tex2rtf ; do
52714                     if test -d $srcdir/utils/$util ; then
52715                         makefiles="utils/$util/Makefile.in \
52716                                    utils/$util/src/Makefile.in \
52717                                    $makefiles"
52718                     fi
52719                 done
52720             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
52721             fi
52722         fi
52723
52724         for mkin in $makefiles ; do
52725             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
52726             ac_config_files="$ac_config_files $mk"
52727
52728         done
52729     fi
52730 done
52731 fi
52732 cat >confcache <<\_ACEOF
52733 # This file is a shell script that caches the results of configure
52734 # tests run on this system so they can be shared between configure
52735 # scripts and configure runs, see configure's option --config-cache.
52736 # It is not useful on other systems.  If it contains results you don't
52737 # want to keep, you may remove or edit it.
52738 #
52739 # config.status only pays attention to the cache file if you give it
52740 # the --recheck option to rerun configure.
52741 #
52742 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52743 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52744 # following values.
52745
52746 _ACEOF
52747
52748 # The following way of writing the cache mishandles newlines in values,
52749 # but we know of no workaround that is simple, portable, and efficient.
52750 # So, we kill variables containing newlines.
52751 # Ultrix sh set writes to stderr and can't be redirected directly,
52752 # and sets the high bit in the cache file unless we assign to the vars.
52753 (
52754   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
52755     eval ac_val=\$$ac_var
52756     case $ac_val in #(
52757     *${as_nl}*)
52758       case $ac_var in #(
52759       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
52760 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
52761       esac
52762       case $ac_var in #(
52763       _ | IFS | as_nl) ;; #(
52764       *) $as_unset $ac_var ;;
52765       esac ;;
52766     esac
52767   done
52768
52769   (set) 2>&1 |
52770     case $as_nl`(ac_space=' '; set) 2>&1` in #(
52771     *${as_nl}ac_space=\ *)
52772       # `set' does not quote correctly, so add quotes (double-quote
52773       # substitution turns \\\\ into \\, and sed turns \\ into \).
52774       sed -n \
52775         "s/'/'\\\\''/g;
52776           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52777       ;; #(
52778     *)
52779       # `set' quotes correctly as required by POSIX, so do not add quotes.
52780       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52781       ;;
52782     esac |
52783     sort
52784 ) |
52785   sed '
52786      /^ac_cv_env_/b end
52787      t clear
52788      :clear
52789      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52790      t end
52791      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52792      :end' >>confcache
52793 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
52794   if test -w "$cache_file"; then
52795     test "x$cache_file" != "x/dev/null" &&
52796       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
52797 echo "$as_me: updating cache $cache_file" >&6;}
52798     cat confcache >$cache_file
52799   else
52800     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
52801 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
52802   fi
52803 fi
52804 rm -f confcache
52805
52806 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52807 # Let make expand exec_prefix.
52808 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52809
52810 DEFS=-DHAVE_CONFIG_H
52811
52812 ac_libobjs=
52813 ac_ltlibobjs=
52814 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52815   # 1. Remove the extension, and $U if already installed.
52816   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
52817   ac_i=`echo "$ac_i" | sed "$ac_script"`
52818   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
52819   #    will be set to the directory where LIBOBJS objects are built.
52820   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
52821   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
52822 done
52823 LIBOBJS=$ac_libobjs
52824
52825 LTLIBOBJS=$ac_ltlibobjs
52826
52827
52828
52829 : ${CONFIG_STATUS=./config.status}
52830 ac_clean_files_save=$ac_clean_files
52831 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52832 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52833 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52834 cat >$CONFIG_STATUS <<_ACEOF
52835 #! $SHELL
52836 # Generated by $as_me.
52837 # Run this file to recreate the current configuration.
52838 # Compiler output produced by configure, useful for debugging
52839 # configure, is in config.log if it exists.
52840
52841 debug=false
52842 ac_cs_recheck=false
52843 ac_cs_silent=false
52844 SHELL=\${CONFIG_SHELL-$SHELL}
52845 _ACEOF
52846
52847 cat >>$CONFIG_STATUS <<\_ACEOF
52848 ## --------------------- ##
52849 ## M4sh Initialization.  ##
52850 ## --------------------- ##
52851
52852 # Be more Bourne compatible
52853 DUALCASE=1; export DUALCASE # for MKS sh
52854 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52855   emulate sh
52856   NULLCMD=:
52857   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52858   # is contrary to our usage.  Disable this feature.
52859   alias -g '${1+"$@"}'='"$@"'
52860   setopt NO_GLOB_SUBST
52861 else
52862   case `(set -o) 2>/dev/null` in
52863   *posix*) set -o posix ;;
52864 esac
52865
52866 fi
52867
52868
52869
52870
52871 # PATH needs CR
52872 # Avoid depending upon Character Ranges.
52873 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52874 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52875 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52876 as_cr_digits='0123456789'
52877 as_cr_alnum=$as_cr_Letters$as_cr_digits
52878
52879 # The user is always right.
52880 if test "${PATH_SEPARATOR+set}" != set; then
52881   echo "#! /bin/sh" >conf$$.sh
52882   echo  "exit 0"   >>conf$$.sh
52883   chmod +x conf$$.sh
52884   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52885     PATH_SEPARATOR=';'
52886   else
52887     PATH_SEPARATOR=:
52888   fi
52889   rm -f conf$$.sh
52890 fi
52891
52892 # Support unset when possible.
52893 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52894   as_unset=unset
52895 else
52896   as_unset=false
52897 fi
52898
52899
52900 # IFS
52901 # We need space, tab and new line, in precisely that order.  Quoting is
52902 # there to prevent editors from complaining about space-tab.
52903 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
52904 # splitting by setting IFS to empty value.)
52905 as_nl='
52906 '
52907 IFS=" ""        $as_nl"
52908
52909 # Find who we are.  Look in the path if we contain no directory separator.
52910 case $0 in
52911   *[\\/]* ) as_myself=$0 ;;
52912   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52913 for as_dir in $PATH
52914 do
52915   IFS=$as_save_IFS
52916   test -z "$as_dir" && as_dir=.
52917   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
52918 done
52919 IFS=$as_save_IFS
52920
52921      ;;
52922 esac
52923 # We did not find ourselves, most probably we were run as `sh COMMAND'
52924 # in which case we are not to be found in the path.
52925 if test "x$as_myself" = x; then
52926   as_myself=$0
52927 fi
52928 if test ! -f "$as_myself"; then
52929   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
52930   { (exit 1); exit 1; }
52931 fi
52932
52933 # Work around bugs in pre-3.0 UWIN ksh.
52934 for as_var in ENV MAIL MAILPATH
52935 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
52936 done
52937 PS1='$ '
52938 PS2='> '
52939 PS4='+ '
52940
52941 # NLS nuisances.
52942 for as_var in \
52943   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
52944   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
52945   LC_TELEPHONE LC_TIME
52946 do
52947   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52948     eval $as_var=C; export $as_var
52949   else
52950     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
52951   fi
52952 done
52953
52954 # Required to use basename.
52955 if expr a : '\(a\)' >/dev/null 2>&1 &&
52956    test "X`expr 00001 : '.*\(...\)'`" = X001; then
52957   as_expr=expr
52958 else
52959   as_expr=false
52960 fi
52961
52962 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
52963   as_basename=basename
52964 else
52965   as_basename=false
52966 fi
52967
52968
52969 # Name of the executable.
52970 as_me=`$as_basename -- "$0" ||
52971 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
52972          X"$0" : 'X\(//\)$' \| \
52973          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
52974 echo X/"$0" |
52975     sed '/^.*\/\([^/][^/]*\)\/*$/{
52976             s//\1/
52977             q
52978           }
52979           /^X\/\(\/\/\)$/{
52980             s//\1/
52981             q
52982           }
52983           /^X\/\(\/\).*/{
52984             s//\1/
52985             q
52986           }
52987           s/.*/./; q'`
52988
52989 # CDPATH.
52990 $as_unset CDPATH
52991
52992
52993
52994   as_lineno_1=$LINENO
52995   as_lineno_2=$LINENO
52996   test "x$as_lineno_1" != "x$as_lineno_2" &&
52997   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
52998
52999   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53000   # uniformly replaced by the line number.  The first 'sed' inserts a
53001   # line-number line after each line using $LINENO; the second 'sed'
53002   # does the real work.  The second script uses 'N' to pair each
53003   # line-number line with the line containing $LINENO, and appends
53004   # trailing '-' during substitution so that $LINENO is not a special
53005   # case at line end.
53006   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53007   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53008   # E. McMahon (1931-1989) for sed's syntax.  :-)
53009   sed -n '
53010     p
53011     /[$]LINENO/=
53012   ' <$as_myself |
53013     sed '
53014       s/[$]LINENO.*/&-/
53015       t lineno
53016       b
53017       :lineno
53018       N
53019       :loop
53020       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53021       t loop
53022       s/-\n.*//
53023     ' >$as_me.lineno &&
53024   chmod +x "$as_me.lineno" ||
53025     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53026    { (exit 1); exit 1; }; }
53027
53028   # Don't try to exec as it changes $[0], causing all sort of problems
53029   # (the dirname of $[0] is not the place where we might find the
53030   # original and so on.  Autoconf is especially sensitive to this).
53031   . "./$as_me.lineno"
53032   # Exit status is that of the last command.
53033   exit
53034 }
53035
53036
53037 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53038   as_dirname=dirname
53039 else
53040   as_dirname=false
53041 fi
53042
53043 ECHO_C= ECHO_N= ECHO_T=
53044 case `echo -n x` in
53045 -n*)
53046   case `echo 'x\c'` in
53047   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53048   *)   ECHO_C='\c';;
53049   esac;;
53050 *)
53051   ECHO_N='-n';;
53052 esac
53053
53054 if expr a : '\(a\)' >/dev/null 2>&1 &&
53055    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53056   as_expr=expr
53057 else
53058   as_expr=false
53059 fi
53060
53061 rm -f conf$$ conf$$.exe conf$$.file
53062 if test -d conf$$.dir; then
53063   rm -f conf$$.dir/conf$$.file
53064 else
53065   rm -f conf$$.dir
53066   mkdir conf$$.dir
53067 fi
53068 echo >conf$$.file
53069 if ln -s conf$$.file conf$$ 2>/dev/null; then
53070   as_ln_s='ln -s'
53071   # ... but there are two gotchas:
53072   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53073   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53074   # In both cases, we have to default to `cp -p'.
53075   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53076     as_ln_s='cp -p'
53077 elif ln conf$$.file conf$$ 2>/dev/null; then
53078   as_ln_s=ln
53079 else
53080   as_ln_s='cp -p'
53081 fi
53082 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53083 rmdir conf$$.dir 2>/dev/null
53084
53085 if mkdir -p . 2>/dev/null; then
53086   as_mkdir_p=:
53087 else
53088   test -d ./-p && rmdir ./-p
53089   as_mkdir_p=false
53090 fi
53091
53092 if test -x / >/dev/null 2>&1; then
53093   as_test_x='test -x'
53094 else
53095   if ls -dL / >/dev/null 2>&1; then
53096     as_ls_L_option=L
53097   else
53098     as_ls_L_option=
53099   fi
53100   as_test_x='
53101     eval sh -c '\''
53102       if test -d "$1"; then
53103         test -d "$1/.";
53104       else
53105         case $1 in
53106         -*)set "./$1";;
53107         esac;
53108         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53109         ???[sx]*):;;*)false;;esac;fi
53110     '\'' sh
53111   '
53112 fi
53113 as_executable_p=$as_test_x
53114
53115 # Sed expression to map a string onto a valid CPP name.
53116 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53117
53118 # Sed expression to map a string onto a valid variable name.
53119 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53120
53121
53122 exec 6>&1
53123
53124 # Save the log message, to keep $[0] and so on meaningful, and to
53125 # report actual input values of CONFIG_FILES etc. instead of their
53126 # values after options handling.
53127 ac_log="
53128 This file was extended by wxWidgets $as_me 2.9.0, which was
53129 generated by GNU Autoconf 2.61.  Invocation command line was
53130
53131   CONFIG_FILES    = $CONFIG_FILES
53132   CONFIG_HEADERS  = $CONFIG_HEADERS
53133   CONFIG_LINKS    = $CONFIG_LINKS
53134   CONFIG_COMMANDS = $CONFIG_COMMANDS
53135   $ $0 $@
53136
53137 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53138 "
53139
53140 _ACEOF
53141
53142 cat >>$CONFIG_STATUS <<_ACEOF
53143 # Files that config.status was made for.
53144 config_files="$ac_config_files"
53145 config_headers="$ac_config_headers"
53146 config_commands="$ac_config_commands"
53147
53148 _ACEOF
53149
53150 cat >>$CONFIG_STATUS <<\_ACEOF
53151 ac_cs_usage="\
53152 \`$as_me' instantiates files from templates according to the
53153 current configuration.
53154
53155 Usage: $0 [OPTIONS] [FILE]...
53156
53157   -h, --help       print this help, then exit
53158   -V, --version    print version number and configuration settings, then exit
53159   -q, --quiet      do not print progress messages
53160   -d, --debug      don't remove temporary files
53161       --recheck    update $as_me by reconfiguring in the same conditions
53162   --file=FILE[:TEMPLATE]
53163                    instantiate the configuration file FILE
53164   --header=FILE[:TEMPLATE]
53165                    instantiate the configuration header FILE
53166
53167 Configuration files:
53168 $config_files
53169
53170 Configuration headers:
53171 $config_headers
53172
53173 Configuration commands:
53174 $config_commands
53175
53176 Report bugs to <bug-autoconf@gnu.org>."
53177
53178 _ACEOF
53179 cat >>$CONFIG_STATUS <<_ACEOF
53180 ac_cs_version="\\
53181 wxWidgets config.status 2.9.0
53182 configured by $0, generated by GNU Autoconf 2.61,
53183   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53184
53185 Copyright (C) 2006 Free Software Foundation, Inc.
53186 This config.status script is free software; the Free Software Foundation
53187 gives unlimited permission to copy, distribute and modify it."
53188
53189 ac_pwd='$ac_pwd'
53190 srcdir='$srcdir'
53191 INSTALL='$INSTALL'
53192 _ACEOF
53193
53194 cat >>$CONFIG_STATUS <<\_ACEOF
53195 # If no file are specified by the user, then we need to provide default
53196 # value.  By we need to know if files were specified by the user.
53197 ac_need_defaults=:
53198 while test $# != 0
53199 do
53200   case $1 in
53201   --*=*)
53202     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53203     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53204     ac_shift=:
53205     ;;
53206   *)
53207     ac_option=$1
53208     ac_optarg=$2
53209     ac_shift=shift
53210     ;;
53211   esac
53212
53213   case $ac_option in
53214   # Handling of the options.
53215   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53216     ac_cs_recheck=: ;;
53217   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53218     echo "$ac_cs_version"; exit ;;
53219   --debug | --debu | --deb | --de | --d | -d )
53220     debug=: ;;
53221   --file | --fil | --fi | --f )
53222     $ac_shift
53223     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53224     ac_need_defaults=false;;
53225   --header | --heade | --head | --hea )
53226     $ac_shift
53227     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53228     ac_need_defaults=false;;
53229   --he | --h)
53230     # Conflict between --help and --header
53231     { echo "$as_me: error: ambiguous option: $1
53232 Try \`$0 --help' for more information." >&2
53233    { (exit 1); exit 1; }; };;
53234   --help | --hel | -h )
53235     echo "$ac_cs_usage"; exit ;;
53236   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53237   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53238     ac_cs_silent=: ;;
53239
53240   # This is an error.
53241   -*) { echo "$as_me: error: unrecognized option: $1
53242 Try \`$0 --help' for more information." >&2
53243    { (exit 1); exit 1; }; } ;;
53244
53245   *) ac_config_targets="$ac_config_targets $1"
53246      ac_need_defaults=false ;;
53247
53248   esac
53249   shift
53250 done
53251
53252 ac_configure_extra_args=
53253
53254 if $ac_cs_silent; then
53255   exec 6>/dev/null
53256   ac_configure_extra_args="$ac_configure_extra_args --silent"
53257 fi
53258
53259 _ACEOF
53260 cat >>$CONFIG_STATUS <<_ACEOF
53261 if \$ac_cs_recheck; then
53262   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53263   CONFIG_SHELL=$SHELL
53264   export CONFIG_SHELL
53265   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53266 fi
53267
53268 _ACEOF
53269 cat >>$CONFIG_STATUS <<\_ACEOF
53270 exec 5>>config.log
53271 {
53272   echo
53273   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53274 ## Running $as_me. ##
53275 _ASBOX
53276   echo "$ac_log"
53277 } >&5
53278
53279 _ACEOF
53280 cat >>$CONFIG_STATUS <<_ACEOF
53281 #
53282 # INIT-COMMANDS
53283 #
53284
53285             CPP="$CPP"
53286             infile="$srcdir/include/wx/msw/genrcdefs.h"
53287             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53288
53289
53290  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53291  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53292  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53293                      LN_S="${LN_S}"
53294
53295
53296 _ACEOF
53297
53298 cat >>$CONFIG_STATUS <<\_ACEOF
53299
53300 # Handling of arguments.
53301 for ac_config_target in $ac_config_targets
53302 do
53303   case $ac_config_target in
53304     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53305     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53306     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53307     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53308     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53309     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53310     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53311     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53312
53313   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53314 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53315    { (exit 1); exit 1; }; };;
53316   esac
53317 done
53318
53319
53320 # If the user did not use the arguments to specify the items to instantiate,
53321 # then the envvar interface is used.  Set only those that are not.
53322 # We use the long form for the default assignment because of an extremely
53323 # bizarre bug on SunOS 4.1.3.
53324 if $ac_need_defaults; then
53325   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53326   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53327   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53328 fi
53329
53330 # Have a temporary directory for convenience.  Make it in the build tree
53331 # simply because there is no reason against having it here, and in addition,
53332 # creating and moving files from /tmp can sometimes cause problems.
53333 # Hook for its removal unless debugging.
53334 # Note that there is a small window in which the directory will not be cleaned:
53335 # after its creation but before its name has been assigned to `$tmp'.
53336 $debug ||
53337 {
53338   tmp=
53339   trap 'exit_status=$?
53340   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53341 ' 0
53342   trap '{ (exit 1); exit 1; }' 1 2 13 15
53343 }
53344 # Create a (secure) tmp directory for tmp files.
53345
53346 {
53347   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53348   test -n "$tmp" && test -d "$tmp"
53349 }  ||
53350 {
53351   tmp=./conf$$-$RANDOM
53352   (umask 077 && mkdir "$tmp")
53353 } ||
53354 {
53355    echo "$me: cannot create a temporary directory in ." >&2
53356    { (exit 1); exit 1; }
53357 }
53358
53359 #
53360 # Set up the sed scripts for CONFIG_FILES section.
53361 #
53362
53363 # No need to generate the scripts if there are no CONFIG_FILES.
53364 # This happens for instance when ./config.status config.h
53365 if test -n "$CONFIG_FILES"; then
53366
53367 _ACEOF
53368
53369
53370
53371 ac_delim='%!_!# '
53372 for ac_last_try in false false false false false :; do
53373   cat >conf$$subs.sed <<_ACEOF
53374 SHELL!$SHELL$ac_delim
53375 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53376 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53377 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53378 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53379 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53380 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53381 exec_prefix!$exec_prefix$ac_delim
53382 prefix!$prefix$ac_delim
53383 program_transform_name!$program_transform_name$ac_delim
53384 bindir!$bindir$ac_delim
53385 sbindir!$sbindir$ac_delim
53386 libexecdir!$libexecdir$ac_delim
53387 datarootdir!$datarootdir$ac_delim
53388 datadir!$datadir$ac_delim
53389 sysconfdir!$sysconfdir$ac_delim
53390 sharedstatedir!$sharedstatedir$ac_delim
53391 localstatedir!$localstatedir$ac_delim
53392 includedir!$includedir$ac_delim
53393 oldincludedir!$oldincludedir$ac_delim
53394 docdir!$docdir$ac_delim
53395 infodir!$infodir$ac_delim
53396 htmldir!$htmldir$ac_delim
53397 dvidir!$dvidir$ac_delim
53398 pdfdir!$pdfdir$ac_delim
53399 psdir!$psdir$ac_delim
53400 libdir!$libdir$ac_delim
53401 localedir!$localedir$ac_delim
53402 mandir!$mandir$ac_delim
53403 DEFS!$DEFS$ac_delim
53404 ECHO_C!$ECHO_C$ac_delim
53405 ECHO_N!$ECHO_N$ac_delim
53406 ECHO_T!$ECHO_T$ac_delim
53407 LIBS!$LIBS$ac_delim
53408 build_alias!$build_alias$ac_delim
53409 host_alias!$host_alias$ac_delim
53410 target_alias!$target_alias$ac_delim
53411 build!$build$ac_delim
53412 build_cpu!$build_cpu$ac_delim
53413 build_vendor!$build_vendor$ac_delim
53414 build_os!$build_os$ac_delim
53415 host!$host$ac_delim
53416 host_cpu!$host_cpu$ac_delim
53417 host_vendor!$host_vendor$ac_delim
53418 host_os!$host_os$ac_delim
53419 target!$target$ac_delim
53420 target_cpu!$target_cpu$ac_delim
53421 target_vendor!$target_vendor$ac_delim
53422 target_os!$target_os$ac_delim
53423 wx_top_builddir!$wx_top_builddir$ac_delim
53424 CC!$CC$ac_delim
53425 CFLAGS!$CFLAGS$ac_delim
53426 LDFLAGS!$LDFLAGS$ac_delim
53427 CPPFLAGS!$CPPFLAGS$ac_delim
53428 ac_ct_CC!$ac_ct_CC$ac_delim
53429 EXEEXT!$EXEEXT$ac_delim
53430 OBJEXT!$OBJEXT$ac_delim
53431 CPP!$CPP$ac_delim
53432 GREP!$GREP$ac_delim
53433 EGREP!$EGREP$ac_delim
53434 CXX!$CXX$ac_delim
53435 CXXFLAGS!$CXXFLAGS$ac_delim
53436 ac_ct_CXX!$ac_ct_CXX$ac_delim
53437 RANLIB!$RANLIB$ac_delim
53438 AR!$AR$ac_delim
53439 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
53440 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
53441 INSTALL_DATA!$INSTALL_DATA$ac_delim
53442 STRIP!$STRIP$ac_delim
53443 WINDRES!$WINDRES$ac_delim
53444 DLLTOOL!$DLLTOOL$ac_delim
53445 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
53446 LN_S!$LN_S$ac_delim
53447 subdirs!$subdirs$ac_delim
53448 PKG_CONFIG!$PKG_CONFIG$ac_delim
53449 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
53450 GTK_LIBS!$GTK_LIBS$ac_delim
53451 GTK_CONFIG!$GTK_CONFIG$ac_delim
53452 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
53453 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
53454 XMKMF!$XMKMF$ac_delim
53455 X_CFLAGS!$X_CFLAGS$ac_delim
53456 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
53457 X_LIBS!$X_LIBS$ac_delim
53458 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
53459 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
53460 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
53461 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
53462 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
53463 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
53464 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
53465 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
53466 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
53467 REZ!$REZ$ac_delim
53468 DEREZ!$DEREZ$ac_delim
53469 SETFILE!$SETFILE$ac_delim
53470 LIBICONV!$LIBICONV$ac_delim
53471 _ACEOF
53472
53473   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53474     break
53475   elif $ac_last_try; then
53476     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53477 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53478    { (exit 1); exit 1; }; }
53479   else
53480     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53481   fi
53482 done
53483
53484 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53485 if test -n "$ac_eof"; then
53486   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53487   ac_eof=`expr $ac_eof + 1`
53488 fi
53489
53490 cat >>$CONFIG_STATUS <<_ACEOF
53491 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
53492 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53493 _ACEOF
53494 sed '
53495 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53496 s/^/s,@/; s/!/@,|#_!!_#|/
53497 :n
53498 t n
53499 s/'"$ac_delim"'$/,g/; t
53500 s/$/\\/; p
53501 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53502 ' >>$CONFIG_STATUS <conf$$subs.sed
53503 rm -f conf$$subs.sed
53504 cat >>$CONFIG_STATUS <<_ACEOF
53505 CEOF$ac_eof
53506 _ACEOF
53507
53508
53509 ac_delim='%!_!# '
53510 for ac_last_try in false false false false false :; do
53511   cat >conf$$subs.sed <<_ACEOF
53512 SDL_CONFIG!$SDL_CONFIG$ac_delim
53513 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
53514 SDL_LIBS!$SDL_LIBS$ac_delim
53515 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
53516 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
53517 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
53518 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
53519 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
53520 HILDON_LIBS!$HILDON_LIBS$ac_delim
53521 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
53522 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
53523 GST_CFLAGS!$GST_CFLAGS$ac_delim
53524 GST_LIBS!$GST_LIBS$ac_delim
53525 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
53526 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
53527 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
53528 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
53529 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
53530 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
53531 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
53532 wxUSE_ODBC!$wxUSE_ODBC$ac_delim
53533 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
53534 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
53535 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
53536 VENDOR!$VENDOR$ac_delim
53537 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
53538 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
53539 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
53540 WXUNIV!$WXUNIV$ac_delim
53541 MONOLITHIC!$MONOLITHIC$ac_delim
53542 USE_PLUGINS!$USE_PLUGINS$ac_delim
53543 CXXWARNINGS!$CXXWARNINGS$ac_delim
53544 EXTRALIBS!$EXTRALIBS$ac_delim
53545 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
53546 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
53547 EXTRALIBS_ODBC!$EXTRALIBS_ODBC$ac_delim
53548 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
53549 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
53550 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
53551 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
53552 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
53553 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
53554 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
53555 UNICODE!$UNICODE$ac_delim
53556 BUILD!$BUILD$ac_delim
53557 DEBUG_INFO!$DEBUG_INFO$ac_delim
53558 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
53559 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
53560 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
53561 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
53562 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
53563 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
53564 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
53565 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
53566 SET_MAKE!$SET_MAKE$ac_delim
53567 MAKE_SET!$MAKE_SET$ac_delim
53568 AROPTIONS!$AROPTIONS$ac_delim
53569 NM!$NM$ac_delim
53570 INSTALL_DIR!$INSTALL_DIR$ac_delim
53571 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
53572 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
53573 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
53574 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
53575 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
53576 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
53577 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
53578 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
53579 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
53580 SO_SUFFIX!$SO_SUFFIX$ac_delim
53581 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
53582 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
53583 LIBPREFIX!$LIBPREFIX$ac_delim
53584 LIBEXT!$LIBEXT$ac_delim
53585 DLLPREFIX!$DLLPREFIX$ac_delim
53586 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
53587 dlldir!$dlldir$ac_delim
53588 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
53589 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
53590 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
53591 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
53592 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
53593 PIC_FLAG!$PIC_FLAG$ac_delim
53594 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
53595 USE_SOVERSION!$USE_SOVERSION$ac_delim
53596 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
53597 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
53598 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
53599 USE_MACVERSION!$USE_MACVERSION$ac_delim
53600 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
53601 SONAME_FLAG!$SONAME_FLAG$ac_delim
53602 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
53603 BK_DEPS!$BK_DEPS$ac_delim
53604 GCC_PCH!$GCC_PCH$ac_delim
53605 ICC_PCH!$ICC_PCH$ac_delim
53606 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
53607 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
53608 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
53609 _ACEOF
53610
53611   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53612     break
53613   elif $ac_last_try; then
53614     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53615 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53616    { (exit 1); exit 1; }; }
53617   else
53618     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53619   fi
53620 done
53621
53622 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53623 if test -n "$ac_eof"; then
53624   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53625   ac_eof=`expr $ac_eof + 1`
53626 fi
53627
53628 cat >>$CONFIG_STATUS <<_ACEOF
53629 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
53630 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53631 _ACEOF
53632 sed '
53633 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53634 s/^/s,@/; s/!/@,|#_!!_#|/
53635 :n
53636 t n
53637 s/'"$ac_delim"'$/,g/; t
53638 s/$/\\/; p
53639 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53640 ' >>$CONFIG_STATUS <conf$$subs.sed
53641 rm -f conf$$subs.sed
53642 cat >>$CONFIG_STATUS <<_ACEOF
53643 CEOF$ac_eof
53644 _ACEOF
53645
53646
53647 ac_delim='%!_!# '
53648 for ac_last_try in false false false false false :; do
53649   cat >conf$$subs.sed <<_ACEOF
53650 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
53651 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
53652 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
53653 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
53654 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
53655 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
53656 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
53657 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
53658 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
53659 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
53660 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
53661 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
53662 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
53663 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
53664 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
53665 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
53666 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
53667 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
53668 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
53669 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53670 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1$ac_delim
53671 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
53672 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1$ac_delim
53673 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
53674 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
53675 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
53676 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
53677 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
53678 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
53679 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
53680 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
53681 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1$ac_delim
53682 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
53683 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1$ac_delim
53684 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
53685 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
53686 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
53687 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
53688 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
53689 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53690 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1$ac_delim
53691 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
53692 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
53693 COND_MONOLITHIC_0_USE_ODBC_1!$COND_MONOLITHIC_0_USE_ODBC_1$ac_delim
53694 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
53695 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
53696 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
53697 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
53698 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
53699 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
53700 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
53701 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
53702 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
53703 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
53704 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
53705 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
53706 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
53707 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
53708 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
53709 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
53710 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
53711 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
53712 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
53713 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
53714 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
53715 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
53716 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
53717 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
53718 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
53719 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
53720 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
53721 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
53722 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
53723 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
53724 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
53725 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
53726 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
53727 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
53728 COND_SHARED_0!$COND_SHARED_0$ac_delim
53729 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
53730 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
53731 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
53732 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
53733 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53734 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53735 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53736 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
53737 COND_SHARED_0_USE_XRC_1!$COND_SHARED_0_USE_XRC_1$ac_delim
53738 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
53739 COND_SHARED_0_WXUSE_ODBC_BUILTIN!$COND_SHARED_0_WXUSE_ODBC_BUILTIN$ac_delim
53740 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
53741 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
53742 COND_SHARED_1!$COND_SHARED_1$ac_delim
53743 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
53744 COND_SHARED_1_USE_XRC_1!$COND_SHARED_1_USE_XRC_1$ac_delim
53745 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
53746 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
53747 _ACEOF
53748
53749   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53750     break
53751   elif $ac_last_try; then
53752     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53753 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53754    { (exit 1); exit 1; }; }
53755   else
53756     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53757   fi
53758 done
53759
53760 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53761 if test -n "$ac_eof"; then
53762   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53763   ac_eof=`expr $ac_eof + 1`
53764 fi
53765
53766 cat >>$CONFIG_STATUS <<_ACEOF
53767 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
53768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53769 _ACEOF
53770 sed '
53771 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53772 s/^/s,@/; s/!/@,|#_!!_#|/
53773 :n
53774 t n
53775 s/'"$ac_delim"'$/,g/; t
53776 s/$/\\/; p
53777 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53778 ' >>$CONFIG_STATUS <conf$$subs.sed
53779 rm -f conf$$subs.sed
53780 cat >>$CONFIG_STATUS <<_ACEOF
53781 CEOF$ac_eof
53782 _ACEOF
53783
53784
53785 ac_delim='%!_!# '
53786 for ac_last_try in false false false false false :; do
53787   cat >conf$$subs.sed <<_ACEOF
53788 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
53789 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
53790 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
53791 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
53792 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
53793 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
53794 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
53795 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
53796 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
53797 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
53798 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
53799 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
53800 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
53801 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
53802 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
53803 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
53804 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
53805 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
53806 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
53807 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
53808 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
53809 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
53810 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
53811 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
53812 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
53813 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
53814 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
53815 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
53816 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
53817 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
53818 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
53819 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
53820 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
53821 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
53822 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
53823 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
53824 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
53825 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
53826 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
53827 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
53828 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
53829 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53830 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53831 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53832 COND_USE_ODBC_1!$COND_USE_ODBC_1$ac_delim
53833 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
53834 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
53835 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
53836 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
53837 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
53838 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
53839 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
53840 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
53841 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
53842 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
53843 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
53844 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
53845 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
53846 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
53847 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
53848 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
53849 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
53850 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
53851 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
53852 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
53853 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
53854 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
53855 COND_WXUSE_ODBC_BUILTIN!$COND_WXUSE_ODBC_BUILTIN$ac_delim
53856 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
53857 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
53858 SHARED!$SHARED$ac_delim
53859 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
53860 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
53861 USE_GUI!$USE_GUI$ac_delim
53862 AFMINSTALL!$AFMINSTALL$ac_delim
53863 WIN32INSTALL!$WIN32INSTALL$ac_delim
53864 TOOLKIT!$TOOLKIT$ac_delim
53865 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
53866 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
53867 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
53868 cross_compiling!$cross_compiling$ac_delim
53869 WIDGET_SET!$WIDGET_SET$ac_delim
53870 WX_RELEASE!$WX_RELEASE$ac_delim
53871 WX_VERSION!$WX_VERSION$ac_delim
53872 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
53873 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
53874 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
53875 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
53876 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
53877 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
53878 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
53879 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
53880 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
53881 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
53882 EXE_LINKER!$EXE_LINKER$ac_delim
53883 GUIDIST!$GUIDIST$ac_delim
53884 DISTDIR!$DISTDIR$ac_delim
53885 _ACEOF
53886
53887   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53888     break
53889   elif $ac_last_try; then
53890     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53891 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53892    { (exit 1); exit 1; }; }
53893   else
53894     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53895   fi
53896 done
53897
53898 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53899 if test -n "$ac_eof"; then
53900   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53901   ac_eof=`expr $ac_eof + 1`
53902 fi
53903
53904 cat >>$CONFIG_STATUS <<_ACEOF
53905 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
53906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53907 _ACEOF
53908 sed '
53909 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53910 s/^/s,@/; s/!/@,|#_!!_#|/
53911 :n
53912 t n
53913 s/'"$ac_delim"'$/,g/; t
53914 s/$/\\/; p
53915 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53916 ' >>$CONFIG_STATUS <conf$$subs.sed
53917 rm -f conf$$subs.sed
53918 cat >>$CONFIG_STATUS <<_ACEOF
53919 CEOF$ac_eof
53920 _ACEOF
53921
53922
53923 ac_delim='%!_!# '
53924 for ac_last_try in false false false false false :; do
53925   cat >conf$$subs.sed <<_ACEOF
53926 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
53927 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
53928 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
53929 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
53930 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
53931 RESCOMP!$RESCOMP$ac_delim
53932 RESFLAGS!$RESFLAGS$ac_delim
53933 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
53934 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
53935 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
53936 LIBWXMACRES!$LIBWXMACRES$ac_delim
53937 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
53938 MACSETFILE!$MACSETFILE$ac_delim
53939 GCC!$GCC$ac_delim
53940 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
53941 LIBOBJS!$LIBOBJS$ac_delim
53942 LTLIBOBJS!$LTLIBOBJS$ac_delim
53943 _ACEOF
53944
53945   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
53946     break
53947   elif $ac_last_try; then
53948     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53949 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53950    { (exit 1); exit 1; }; }
53951   else
53952     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53953   fi
53954 done
53955
53956 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53957 if test -n "$ac_eof"; then
53958   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53959   ac_eof=`expr $ac_eof + 1`
53960 fi
53961
53962 cat >>$CONFIG_STATUS <<_ACEOF
53963 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
53964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
53965 _ACEOF
53966 sed '
53967 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53968 s/^/s,@/; s/!/@,|#_!!_#|/
53969 :n
53970 t n
53971 s/'"$ac_delim"'$/,g/; t
53972 s/$/\\/; p
53973 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53974 ' >>$CONFIG_STATUS <conf$$subs.sed
53975 rm -f conf$$subs.sed
53976 cat >>$CONFIG_STATUS <<_ACEOF
53977 :end
53978 s/|#_!!_#|//g
53979 CEOF$ac_eof
53980 _ACEOF
53981
53982
53983 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53984 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53985 # trailing colons and then remove the whole line if VPATH becomes empty
53986 # (actually we leave an empty line to preserve line numbers).
53987 if test "x$srcdir" = x.; then
53988   ac_vpsub='/^[  ]*VPATH[        ]*=/{
53989 s/:*\$(srcdir):*/:/
53990 s/:*\${srcdir}:*/:/
53991 s/:*@srcdir@:*/:/
53992 s/^\([^=]*=[     ]*\):*/\1/
53993 s/:*$//
53994 s/^[^=]*=[       ]*$//
53995 }'
53996 fi
53997
53998 cat >>$CONFIG_STATUS <<\_ACEOF
53999 fi # test -n "$CONFIG_FILES"
54000
54001
54002 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54003 do
54004   case $ac_tag in
54005   :[FHLC]) ac_mode=$ac_tag; continue;;
54006   esac
54007   case $ac_mode$ac_tag in
54008   :[FHL]*:*);;
54009   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54010 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54011    { (exit 1); exit 1; }; };;
54012   :[FH]-) ac_tag=-:-;;
54013   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54014   esac
54015   ac_save_IFS=$IFS
54016   IFS=:
54017   set x $ac_tag
54018   IFS=$ac_save_IFS
54019   shift
54020   ac_file=$1
54021   shift
54022
54023   case $ac_mode in
54024   :L) ac_source=$1;;
54025   :[FH])
54026     ac_file_inputs=
54027     for ac_f
54028     do
54029       case $ac_f in
54030       -) ac_f="$tmp/stdin";;
54031       *) # Look for the file first in the build tree, then in the source tree
54032          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54033          # because $ac_f cannot contain `:'.
54034          test -f "$ac_f" ||
54035            case $ac_f in
54036            [\\/$]*) false;;
54037            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54038            esac ||
54039            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54040 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54041    { (exit 1); exit 1; }; };;
54042       esac
54043       ac_file_inputs="$ac_file_inputs $ac_f"
54044     done
54045
54046     # Let's still pretend it is `configure' which instantiates (i.e., don't
54047     # use $as_me), people would be surprised to read:
54048     #    /* config.h.  Generated by config.status.  */
54049     configure_input="Generated from "`IFS=:
54050           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54051     if test x"$ac_file" != x-; then
54052       configure_input="$ac_file.  $configure_input"
54053       { echo "$as_me:$LINENO: creating $ac_file" >&5
54054 echo "$as_me: creating $ac_file" >&6;}
54055     fi
54056
54057     case $ac_tag in
54058     *:-:* | *:-) cat >"$tmp/stdin";;
54059     esac
54060     ;;
54061   esac
54062
54063   ac_dir=`$as_dirname -- "$ac_file" ||
54064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54065          X"$ac_file" : 'X\(//\)[^/]' \| \
54066          X"$ac_file" : 'X\(//\)$' \| \
54067          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54068 echo X"$ac_file" |
54069     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54070             s//\1/
54071             q
54072           }
54073           /^X\(\/\/\)[^/].*/{
54074             s//\1/
54075             q
54076           }
54077           /^X\(\/\/\)$/{
54078             s//\1/
54079             q
54080           }
54081           /^X\(\/\).*/{
54082             s//\1/
54083             q
54084           }
54085           s/.*/./; q'`
54086   { as_dir="$ac_dir"
54087   case $as_dir in #(
54088   -*) as_dir=./$as_dir;;
54089   esac
54090   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54091     as_dirs=
54092     while :; do
54093       case $as_dir in #(
54094       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54095       *) as_qdir=$as_dir;;
54096       esac
54097       as_dirs="'$as_qdir' $as_dirs"
54098       as_dir=`$as_dirname -- "$as_dir" ||
54099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54100          X"$as_dir" : 'X\(//\)[^/]' \| \
54101          X"$as_dir" : 'X\(//\)$' \| \
54102          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54103 echo X"$as_dir" |
54104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54105             s//\1/
54106             q
54107           }
54108           /^X\(\/\/\)[^/].*/{
54109             s//\1/
54110             q
54111           }
54112           /^X\(\/\/\)$/{
54113             s//\1/
54114             q
54115           }
54116           /^X\(\/\).*/{
54117             s//\1/
54118             q
54119           }
54120           s/.*/./; q'`
54121       test -d "$as_dir" && break
54122     done
54123     test -z "$as_dirs" || eval "mkdir $as_dirs"
54124   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54125 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54126    { (exit 1); exit 1; }; }; }
54127   ac_builddir=.
54128
54129 case "$ac_dir" in
54130 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54131 *)
54132   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54133   # A ".." for each directory in $ac_dir_suffix.
54134   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54135   case $ac_top_builddir_sub in
54136   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54137   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54138   esac ;;
54139 esac
54140 ac_abs_top_builddir=$ac_pwd
54141 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54142 # for backward compatibility:
54143 ac_top_builddir=$ac_top_build_prefix
54144
54145 case $srcdir in
54146   .)  # We are building in place.
54147     ac_srcdir=.
54148     ac_top_srcdir=$ac_top_builddir_sub
54149     ac_abs_top_srcdir=$ac_pwd ;;
54150   [\\/]* | ?:[\\/]* )  # Absolute name.
54151     ac_srcdir=$srcdir$ac_dir_suffix;
54152     ac_top_srcdir=$srcdir
54153     ac_abs_top_srcdir=$srcdir ;;
54154   *) # Relative name.
54155     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54156     ac_top_srcdir=$ac_top_build_prefix$srcdir
54157     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54158 esac
54159 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54160
54161
54162   case $ac_mode in
54163   :F)
54164   #
54165   # CONFIG_FILE
54166   #
54167
54168   case $INSTALL in
54169   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54170   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54171   esac
54172 _ACEOF
54173
54174 cat >>$CONFIG_STATUS <<\_ACEOF
54175 # If the template does not know about datarootdir, expand it.
54176 # FIXME: This hack should be removed a few years after 2.60.
54177 ac_datarootdir_hack=; ac_datarootdir_seen=
54178
54179 case `sed -n '/datarootdir/ {
54180   p
54181   q
54182 }
54183 /@datadir@/p
54184 /@docdir@/p
54185 /@infodir@/p
54186 /@localedir@/p
54187 /@mandir@/p
54188 ' $ac_file_inputs` in
54189 *datarootdir*) ac_datarootdir_seen=yes;;
54190 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54191   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54192 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54193 _ACEOF
54194 cat >>$CONFIG_STATUS <<_ACEOF
54195   ac_datarootdir_hack='
54196   s&@datadir@&$datadir&g
54197   s&@docdir@&$docdir&g
54198   s&@infodir@&$infodir&g
54199   s&@localedir@&$localedir&g
54200   s&@mandir@&$mandir&g
54201     s&\\\${datarootdir}&$datarootdir&g' ;;
54202 esac
54203 _ACEOF
54204
54205 # Neutralize VPATH when `$srcdir' = `.'.
54206 # Shell code in configure.ac might set extrasub.
54207 # FIXME: do we really want to maintain this feature?
54208 cat >>$CONFIG_STATUS <<_ACEOF
54209   sed "$ac_vpsub
54210 $extrasub
54211 _ACEOF
54212 cat >>$CONFIG_STATUS <<\_ACEOF
54213 :t
54214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54215 s&@configure_input@&$configure_input&;t t
54216 s&@top_builddir@&$ac_top_builddir_sub&;t t
54217 s&@srcdir@&$ac_srcdir&;t t
54218 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54219 s&@top_srcdir@&$ac_top_srcdir&;t t
54220 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54221 s&@builddir@&$ac_builddir&;t t
54222 s&@abs_builddir@&$ac_abs_builddir&;t t
54223 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54224 s&@INSTALL@&$ac_INSTALL&;t t
54225 $ac_datarootdir_hack
54226 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" >$tmp/out
54227
54228 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54229   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54230   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54231   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54232 which seems to be undefined.  Please make sure it is defined." >&5
54233 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54234 which seems to be undefined.  Please make sure it is defined." >&2;}
54235
54236   rm -f "$tmp/stdin"
54237   case $ac_file in
54238   -) cat "$tmp/out"; rm -f "$tmp/out";;
54239   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54240   esac
54241  ;;
54242   :H)
54243   #
54244   # CONFIG_HEADER
54245   #
54246 _ACEOF
54247
54248 # Transform confdefs.h into a sed script `conftest.defines', that
54249 # substitutes the proper values into config.h.in to produce config.h.
54250 rm -f conftest.defines conftest.tail
54251 # First, append a space to every undef/define line, to ease matching.
54252 echo 's/$/ /' >conftest.defines
54253 # Then, protect against being on the right side of a sed subst, or in
54254 # an unquoted here document, in config.status.  If some macros were
54255 # called several times there might be several #defines for the same
54256 # symbol, which is useless.  But do not sort them, since the last
54257 # AC_DEFINE must be honored.
54258 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54259 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54260 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54261 # PARAMS is the parameter list in the macro definition--in most cases, it's
54262 # just an empty string.
54263 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54264 ac_dB='\\)[      (].*,\\1define\\2'
54265 ac_dC=' '
54266 ac_dD=' ,'
54267
54268 uniq confdefs.h |
54269   sed -n '
54270         t rset
54271         :rset
54272         s/^[     ]*#[    ]*define[       ][      ]*//
54273         t ok
54274         d
54275         :ok
54276         s/[\\&,]/\\&/g
54277         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54278         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54279   ' >>conftest.defines
54280
54281 # Remove the space that was appended to ease matching.
54282 # Then replace #undef with comments.  This is necessary, for
54283 # example, in the case of _POSIX_SOURCE, which is predefined and required
54284 # on some systems where configure will not decide to define it.
54285 # (The regexp can be short, since the line contains either #define or #undef.)
54286 echo 's/ $//
54287 s,^[     #]*u.*,/* & */,' >>conftest.defines
54288
54289 # Break up conftest.defines:
54290 ac_max_sed_lines=50
54291
54292 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54293 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54294 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54295 # et cetera.
54296 ac_in='$ac_file_inputs'
54297 ac_out='"$tmp/out1"'
54298 ac_nxt='"$tmp/out2"'
54299
54300 while :
54301 do
54302   # Write a here document:
54303     cat >>$CONFIG_STATUS <<_ACEOF
54304     # First, check the format of the line:
54305     cat >"\$tmp/defines.sed" <<\\CEOF
54306 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
54307 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
54308 b
54309 :def
54310 _ACEOF
54311   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54312   echo 'CEOF
54313     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54314   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54315   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54316   grep . conftest.tail >/dev/null || break
54317   rm -f conftest.defines
54318   mv conftest.tail conftest.defines
54319 done
54320 rm -f conftest.defines conftest.tail
54321
54322 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54323 cat >>$CONFIG_STATUS <<\_ACEOF
54324   if test x"$ac_file" != x-; then
54325     echo "/* $configure_input  */" >"$tmp/config.h"
54326     cat "$ac_result" >>"$tmp/config.h"
54327     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54328       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54329 echo "$as_me: $ac_file is unchanged" >&6;}
54330     else
54331       rm -f $ac_file
54332       mv "$tmp/config.h" $ac_file
54333     fi
54334   else
54335     echo "/* $configure_input  */"
54336     cat "$ac_result"
54337   fi
54338   rm -f "$tmp/out12"
54339  ;;
54340
54341   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
54342 echo "$as_me: executing $ac_file commands" >&6;}
54343  ;;
54344   esac
54345
54346
54347   case $ac_file$ac_mode in
54348     "rcdefs.h":C)
54349             mkdir -p $outdir &&
54350             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
54351          ;;
54352     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
54353     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
54354     "wx-config":C)  rm -f wx-config
54355                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
54356                     ;;
54357
54358   esac
54359 done # for ac_tag
54360
54361
54362 { (exit 0); exit 0; }
54363 _ACEOF
54364 chmod +x $CONFIG_STATUS
54365 ac_clean_files=$ac_clean_files_save
54366
54367
54368 # configure is writing to config.log, and then calls config.status.
54369 # config.status does its own redirection, appending to config.log.
54370 # Unfortunately, on DOS this fails, as config.log is still kept open
54371 # by configure, so config.status won't be able to write to it; its
54372 # output is simply discarded.  So we exec the FD to /dev/null,
54373 # effectively closing config.log, so it can be properly (re)opened and
54374 # appended to by config.status.  When coming back to configure, we
54375 # need to make the FD available again.
54376 if test "$no_create" != yes; then
54377   ac_cs_success=:
54378   ac_config_status_args=
54379   test "$silent" = yes &&
54380     ac_config_status_args="$ac_config_status_args --quiet"
54381   exec 5>/dev/null
54382   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54383   exec 5>>config.log
54384   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54385   # would make configure fail if this is the last instruction.
54386   $ac_cs_success || { (exit 1); exit 1; }
54387 fi
54388
54389 #
54390 # CONFIG_SUBDIRS section.
54391 #
54392 if test "$no_recursion" != yes; then
54393
54394   # Remove --cache-file and --srcdir arguments so they do not pile up.
54395   ac_sub_configure_args=
54396   ac_prev=
54397   eval "set x $ac_configure_args"
54398   shift
54399   for ac_arg
54400   do
54401     if test -n "$ac_prev"; then
54402       ac_prev=
54403       continue
54404     fi
54405     case $ac_arg in
54406     -cache-file | --cache-file | --cache-fil | --cache-fi \
54407     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
54408       ac_prev=cache_file ;;
54409     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
54410     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
54411     | --c=*)
54412       ;;
54413     --config-cache | -C)
54414       ;;
54415     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
54416       ac_prev=srcdir ;;
54417     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
54418       ;;
54419     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
54420       ac_prev=prefix ;;
54421     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
54422       ;;
54423     *)
54424       case $ac_arg in
54425       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54426       esac
54427       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
54428     esac
54429   done
54430
54431   # Always prepend --prefix to ensure using the same prefix
54432   # in subdir configurations.
54433   ac_arg="--prefix=$prefix"
54434   case $ac_arg in
54435   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54436   esac
54437   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
54438
54439   # Pass --silent
54440   if test "$silent" = yes; then
54441     ac_sub_configure_args="--silent $ac_sub_configure_args"
54442   fi
54443
54444   ac_popdir=`pwd`
54445   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
54446
54447     # Do not complain, so a configure script can configure whichever
54448     # parts of a large source tree are present.
54449     test -d "$srcdir/$ac_dir" || continue
54450
54451     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
54452     echo "$as_me:$LINENO: $ac_msg" >&5
54453     echo "$ac_msg" >&6
54454     { as_dir="$ac_dir"
54455   case $as_dir in #(
54456   -*) as_dir=./$as_dir;;
54457   esac
54458   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54459     as_dirs=
54460     while :; do
54461       case $as_dir in #(
54462       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54463       *) as_qdir=$as_dir;;
54464       esac
54465       as_dirs="'$as_qdir' $as_dirs"
54466       as_dir=`$as_dirname -- "$as_dir" ||
54467 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54468          X"$as_dir" : 'X\(//\)[^/]' \| \
54469          X"$as_dir" : 'X\(//\)$' \| \
54470          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54471 echo X"$as_dir" |
54472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54473             s//\1/
54474             q
54475           }
54476           /^X\(\/\/\)[^/].*/{
54477             s//\1/
54478             q
54479           }
54480           /^X\(\/\/\)$/{
54481             s//\1/
54482             q
54483           }
54484           /^X\(\/\).*/{
54485             s//\1/
54486             q
54487           }
54488           s/.*/./; q'`
54489       test -d "$as_dir" && break
54490     done
54491     test -z "$as_dirs" || eval "mkdir $as_dirs"
54492   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54493 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54494    { (exit 1); exit 1; }; }; }
54495     ac_builddir=.
54496
54497 case "$ac_dir" in
54498 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54499 *)
54500   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54501   # A ".." for each directory in $ac_dir_suffix.
54502   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54503   case $ac_top_builddir_sub in
54504   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54505   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54506   esac ;;
54507 esac
54508 ac_abs_top_builddir=$ac_pwd
54509 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54510 # for backward compatibility:
54511 ac_top_builddir=$ac_top_build_prefix
54512
54513 case $srcdir in
54514   .)  # We are building in place.
54515     ac_srcdir=.
54516     ac_top_srcdir=$ac_top_builddir_sub
54517     ac_abs_top_srcdir=$ac_pwd ;;
54518   [\\/]* | ?:[\\/]* )  # Absolute name.
54519     ac_srcdir=$srcdir$ac_dir_suffix;
54520     ac_top_srcdir=$srcdir
54521     ac_abs_top_srcdir=$srcdir ;;
54522   *) # Relative name.
54523     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54524     ac_top_srcdir=$ac_top_build_prefix$srcdir
54525     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54526 esac
54527 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54528
54529
54530     cd "$ac_dir"
54531
54532     # Check for guested configure; otherwise get Cygnus style configure.
54533     if test -f "$ac_srcdir/configure.gnu"; then
54534       ac_sub_configure=$ac_srcdir/configure.gnu
54535     elif test -f "$ac_srcdir/configure"; then
54536       ac_sub_configure=$ac_srcdir/configure
54537     elif test -f "$ac_srcdir/configure.in"; then
54538       # This should be Cygnus configure.
54539       ac_sub_configure=$ac_aux_dir/configure
54540     else
54541       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
54542 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
54543       ac_sub_configure=
54544     fi
54545
54546     # The recursion is here.
54547     if test -n "$ac_sub_configure"; then
54548       # Make the cache file name correct relative to the subdirectory.
54549       case $cache_file in
54550       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
54551       *) # Relative name.
54552         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
54553       esac
54554
54555       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
54556 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
54557       # The eval makes quoting arguments work.
54558       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
54559            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
54560         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
54561 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
54562    { (exit 1); exit 1; }; }
54563     fi
54564
54565     cd "$ac_popdir"
54566   done
54567 fi
54568
54569
54570 echo
54571 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
54572 echo ""
54573 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
54574 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
54575
54576 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
54577 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
54578 echo -n "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}"
54579 if test "$wxUSE_UNICODE" = "yes"; then
54580     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
54581         echo " (using UTF-8)"
54582     else
54583         echo " (using wchar_t)"
54584     fi
54585 else
54586     echo
54587 fi
54588
54589 echo "  What level of wxWidgets compatibility should be enabled?"
54590 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
54591 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
54592
54593 echo "  Which libraries should wxWidgets use?"
54594 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
54595 echo "                                       png                ${wxUSE_LIBPNG-none}"
54596 echo "                                       regex              ${wxUSE_REGEX}"
54597 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
54598 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
54599 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
54600 fi
54601 echo "                                       zlib               ${wxUSE_ZLIB}"
54602 echo "                                       odbc               ${wxUSE_ODBC}"
54603 echo "                                       expat              ${wxUSE_EXPAT}"
54604 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
54605 echo "                                       sdl                ${wxUSE_LIBSDL}"
54606
54607 echo ""
54608