Implement --with-macosx-sdk[=SDK] and --with-macosx-version-min[=VER].
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 47734 2007-07-26 16:27:29Z 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  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-ps-in-msw      use PS printing in wxMSW (Win32 only)
1851   --enable-ownerdrawn     use owner drawn controls (Win32 only)
1852   --enable-regkey         use wxRegKey class (Win32 only)
1853   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1854   --enable-wxdib          use wxDIB class (Win32 only)
1855   --disable-largefile     omit support for large files
1856   --disable-gtktest       do not try to compile and run a test GTK+ program
1857   --disable-gtktest       Do not try to compile and run a test GTK program
1858   --disable-sdltest       Do not try to compile and run a test SDL program
1859   --enable-omf            use OMF object format (OS/2)
1860   --disable-dependency-tracking
1861                           don't use dependency tracking even if the compiler
1862                           can
1863   --disable-precomp-headers
1864                           don't use precompiled headers even if compiler can
1865
1866 Optional Packages:
1867   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1868   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1869   --without-subdirs       don't generate makefiles for samples/demos/...
1870   --with-flavour=NAME     specify a name to identify this build
1871   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1872   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1873   --with-motif            use Motif/Lesstif
1874   --with-mac              use Mac OS X
1875   --with-cocoa            use Cocoa
1876   --with-wine             use Wine
1877   --with-msw              use MS-Windows
1878   --with-pm               use OS/2 Presentation Manager
1879   --with-mgl              use SciTech MGL
1880   --with-directfb         use DirectFB
1881   --with-microwin         use MicroWindows
1882   --with-x11              use X11
1883   --with-libpng           use libpng (PNG image format)
1884   --with-libjpeg          use libjpeg (JPEG file format)
1885   --with-libtiff          use libtiff (TIFF file format)
1886   --with-libxpm           use libxpm (XPM file format)
1887   --with-libmspack        use libmspack (CHM help files loading)
1888   --without-gnomeprint    don't use GNOME printing libraries
1889   --with-gnomevfs         use GNOME VFS for associating MIME types
1890   --with-hildon           use Hildon framework for Nokia 770
1891   --with-opengl           use OpenGL (or Mesa)
1892   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1893   --with-sdl              use SDL for audio on Unix
1894   --with-regex            enable support for wxRegEx class
1895   --with-zlib             use zlib for LZW compression
1896   --with-odbc             use the IODBC and wxODBC classes
1897   --with-expat            enable XML support using expat parser
1898   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1899   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1900   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1901   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1902   --with-x                use the X Window System
1903   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1904   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1905   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1906   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1907   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1908
1909 Some influential environment variables:
1910   CC          C compiler command
1911   CFLAGS      C compiler flags
1912   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1913               nonstandard directory <lib dir>
1914   LIBS        libraries to pass to the linker, e.g. -l<library>
1915   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1916               you have headers in a nonstandard directory <include dir>
1917   CPP         C preprocessor
1918   CXX         C++ compiler command
1919   CXXFLAGS    C++ compiler flags
1920   PKG_CONFIG  path to pkg-config utility
1921   DIRECTFB_CFLAGS
1922               C compiler flags for DIRECTFB, overriding pkg-config
1923   DIRECTFB_LIBS
1924               linker flags for DIRECTFB, overriding pkg-config
1925   XMKMF       Path to xmkmf, Makefile generator for X Window System
1926   PANGOX_CFLAGS
1927               C compiler flags for PANGOX, overriding pkg-config
1928   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1929   PANGOFT2_CFLAGS
1930               C compiler flags for PANGOFT2, overriding pkg-config
1931   PANGOFT2_LIBS
1932               linker flags for PANGOFT2, overriding pkg-config
1933   PANGOXFT_CFLAGS
1934               C compiler flags for PANGOXFT, overriding pkg-config
1935   PANGOXFT_LIBS
1936               linker flags for PANGOXFT, overriding pkg-config
1937   LIBGNOMEPRINTUI_CFLAGS
1938               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1939   LIBGNOMEPRINTUI_LIBS
1940               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1941   GNOMEVFS_CFLAGS
1942               C compiler flags for GNOMEVFS, overriding pkg-config
1943   GNOMEVFS_LIBS
1944               linker flags for GNOMEVFS, overriding pkg-config
1945   HILDON_CFLAGS
1946               C compiler flags for HILDON, overriding pkg-config
1947   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1948   CAIRO_CFLAGS
1949               C compiler flags for CAIRO, overriding pkg-config
1950   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1951   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1952   GST_LIBS    linker flags for GST, overriding pkg-config
1953
1954 Use these variables to override the choices made by `configure' or to help
1955 it to find libraries and programs with nonstandard names/locations.
1956
1957 Report bugs to <wx-dev@lists.wxwidgets.org>.
1958 _ACEOF
1959 ac_status=$?
1960 fi
1961
1962 if test "$ac_init_help" = "recursive"; then
1963   # If there are subdirs, report their specific --help.
1964   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1965     test -d "$ac_dir" || continue
1966     ac_builddir=.
1967
1968 case "$ac_dir" in
1969 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1970 *)
1971   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1972   # A ".." for each directory in $ac_dir_suffix.
1973   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1974   case $ac_top_builddir_sub in
1975   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1976   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1977   esac ;;
1978 esac
1979 ac_abs_top_builddir=$ac_pwd
1980 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1981 # for backward compatibility:
1982 ac_top_builddir=$ac_top_build_prefix
1983
1984 case $srcdir in
1985   .)  # We are building in place.
1986     ac_srcdir=.
1987     ac_top_srcdir=$ac_top_builddir_sub
1988     ac_abs_top_srcdir=$ac_pwd ;;
1989   [\\/]* | ?:[\\/]* )  # Absolute name.
1990     ac_srcdir=$srcdir$ac_dir_suffix;
1991     ac_top_srcdir=$srcdir
1992     ac_abs_top_srcdir=$srcdir ;;
1993   *) # Relative name.
1994     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1995     ac_top_srcdir=$ac_top_build_prefix$srcdir
1996     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1997 esac
1998 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1999
2000     cd "$ac_dir" || { ac_status=$?; continue; }
2001     # Check for guested configure.
2002     if test -f "$ac_srcdir/configure.gnu"; then
2003       echo &&
2004       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2005     elif test -f "$ac_srcdir/configure"; then
2006       echo &&
2007       $SHELL "$ac_srcdir/configure" --help=recursive
2008     else
2009       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2010     fi || ac_status=$?
2011     cd "$ac_pwd" || { ac_status=$?; break; }
2012   done
2013 fi
2014
2015 test -n "$ac_init_help" && exit $ac_status
2016 if $ac_init_version; then
2017   cat <<\_ACEOF
2018 wxWidgets configure 2.9.0
2019 generated by GNU Autoconf 2.61
2020
2021 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2022 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2023 This configure script is free software; the Free Software Foundation
2024 gives unlimited permission to copy, distribute and modify it.
2025 _ACEOF
2026   exit
2027 fi
2028 cat >config.log <<_ACEOF
2029 This file contains any messages produced by compilers while
2030 running configure, to aid debugging if configure makes a mistake.
2031
2032 It was created by wxWidgets $as_me 2.9.0, which was
2033 generated by GNU Autoconf 2.61.  Invocation command line was
2034
2035   $ $0 $@
2036
2037 _ACEOF
2038 exec 5>>config.log
2039 {
2040 cat <<_ASUNAME
2041 ## --------- ##
2042 ## Platform. ##
2043 ## --------- ##
2044
2045 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2046 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2047 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2048 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2049 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2050
2051 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2052 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2053
2054 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2055 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2056 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2057 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2058 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2059 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2060 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2061
2062 _ASUNAME
2063
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067   IFS=$as_save_IFS
2068   test -z "$as_dir" && as_dir=.
2069   echo "PATH: $as_dir"
2070 done
2071 IFS=$as_save_IFS
2072
2073 } >&5
2074
2075 cat >&5 <<_ACEOF
2076
2077
2078 ## ----------- ##
2079 ## Core tests. ##
2080 ## ----------- ##
2081
2082 _ACEOF
2083
2084
2085 # Keep a trace of the command line.
2086 # Strip out --no-create and --no-recursion so they do not pile up.
2087 # Strip out --silent because we don't want to record it for future runs.
2088 # Also quote any args containing shell meta-characters.
2089 # Make two passes to allow for proper duplicate-argument suppression.
2090 ac_configure_args=
2091 ac_configure_args0=
2092 ac_configure_args1=
2093 ac_must_keep_next=false
2094 for ac_pass in 1 2
2095 do
2096   for ac_arg
2097   do
2098     case $ac_arg in
2099     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2100     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2101     | -silent | --silent | --silen | --sile | --sil)
2102       continue ;;
2103     *\'*)
2104       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2105     esac
2106     case $ac_pass in
2107     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2108     2)
2109       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2110       if test $ac_must_keep_next = true; then
2111         ac_must_keep_next=false # Got value, back to normal.
2112       else
2113         case $ac_arg in
2114           *=* | --config-cache | -C | -disable-* | --disable-* \
2115           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2116           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2117           | -with-* | --with-* | -without-* | --without-* | --x)
2118             case "$ac_configure_args0 " in
2119               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2120             esac
2121             ;;
2122           -* ) ac_must_keep_next=true ;;
2123         esac
2124       fi
2125       ac_configure_args="$ac_configure_args '$ac_arg'"
2126       ;;
2127     esac
2128   done
2129 done
2130 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2131 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2132
2133 # When interrupted or exit'd, cleanup temporary files, and complete
2134 # config.log.  We remove comments because anyway the quotes in there
2135 # would cause problems or look ugly.
2136 # WARNING: Use '\'' to represent an apostrophe within the trap.
2137 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2138 trap 'exit_status=$?
2139   # Save into config.log some information that might help in debugging.
2140   {
2141     echo
2142
2143     cat <<\_ASBOX
2144 ## ---------------- ##
2145 ## Cache variables. ##
2146 ## ---------------- ##
2147 _ASBOX
2148     echo
2149     # The following way of writing the cache mishandles newlines in values,
2150 (
2151   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2152     eval ac_val=\$$ac_var
2153     case $ac_val in #(
2154     *${as_nl}*)
2155       case $ac_var in #(
2156       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2157 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2158       esac
2159       case $ac_var in #(
2160       _ | IFS | as_nl) ;; #(
2161       *) $as_unset $ac_var ;;
2162       esac ;;
2163     esac
2164   done
2165   (set) 2>&1 |
2166     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2167     *${as_nl}ac_space=\ *)
2168       sed -n \
2169         "s/'\''/'\''\\\\'\'''\''/g;
2170           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2171       ;; #(
2172     *)
2173       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2174       ;;
2175     esac |
2176     sort
2177 )
2178     echo
2179
2180     cat <<\_ASBOX
2181 ## ----------------- ##
2182 ## Output variables. ##
2183 ## ----------------- ##
2184 _ASBOX
2185     echo
2186     for ac_var in $ac_subst_vars
2187     do
2188       eval ac_val=\$$ac_var
2189       case $ac_val in
2190       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2191       esac
2192       echo "$ac_var='\''$ac_val'\''"
2193     done | sort
2194     echo
2195
2196     if test -n "$ac_subst_files"; then
2197       cat <<\_ASBOX
2198 ## ------------------- ##
2199 ## File substitutions. ##
2200 ## ------------------- ##
2201 _ASBOX
2202       echo
2203       for ac_var in $ac_subst_files
2204       do
2205         eval ac_val=\$$ac_var
2206         case $ac_val in
2207         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208         esac
2209         echo "$ac_var='\''$ac_val'\''"
2210       done | sort
2211       echo
2212     fi
2213
2214     if test -s confdefs.h; then
2215       cat <<\_ASBOX
2216 ## ----------- ##
2217 ## confdefs.h. ##
2218 ## ----------- ##
2219 _ASBOX
2220       echo
2221       cat confdefs.h
2222       echo
2223     fi
2224     test "$ac_signal" != 0 &&
2225       echo "$as_me: caught signal $ac_signal"
2226     echo "$as_me: exit $exit_status"
2227   } >&5
2228   rm -f core *.core core.conftest.* &&
2229     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2230     exit $exit_status
2231 ' 0
2232 for ac_signal in 1 2 13 15; do
2233   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2234 done
2235 ac_signal=0
2236
2237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2238 rm -f -r conftest* confdefs.h
2239
2240 # Predefined preprocessor variables.
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_NAME "$PACKAGE_NAME"
2244 _ACEOF
2245
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2249 _ACEOF
2250
2251
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2254 _ACEOF
2255
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_STRING "$PACKAGE_STRING"
2259 _ACEOF
2260
2261
2262 cat >>confdefs.h <<_ACEOF
2263 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264 _ACEOF
2265
2266
2267 # Let the site file select an alternate cache file if it wants to.
2268 # Prefer explicitly selected file to automatically selected ones.
2269 if test -n "$CONFIG_SITE"; then
2270   set x "$CONFIG_SITE"
2271 elif test "x$prefix" != xNONE; then
2272   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2273 else
2274   set x "$ac_default_prefix/share/config.site" \
2275         "$ac_default_prefix/etc/config.site"
2276 fi
2277 shift
2278 for ac_site_file
2279 do
2280   if test -r "$ac_site_file"; then
2281     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2282 echo "$as_me: loading site script $ac_site_file" >&6;}
2283     sed 's/^/| /' "$ac_site_file" >&5
2284     . "$ac_site_file"
2285   fi
2286 done
2287
2288 if test -r "$cache_file"; then
2289   # Some versions of bash will fail to source /dev/null (special
2290   # files actually), so we avoid doing that.
2291   if test -f "$cache_file"; then
2292     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2293 echo "$as_me: loading cache $cache_file" >&6;}
2294     case $cache_file in
2295       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2296       *)                      . "./$cache_file";;
2297     esac
2298   fi
2299 else
2300   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2301 echo "$as_me: creating cache $cache_file" >&6;}
2302   >$cache_file
2303 fi
2304
2305 # Check that the precious variables saved in the cache have kept the same
2306 # value.
2307 ac_cache_corrupted=false
2308 for ac_var in $ac_precious_vars; do
2309   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2310   eval ac_new_set=\$ac_env_${ac_var}_set
2311   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2312   eval ac_new_val=\$ac_env_${ac_var}_value
2313   case $ac_old_set,$ac_new_set in
2314     set,)
2315       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2316 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2317       ac_cache_corrupted=: ;;
2318     ,set)
2319       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2320 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2321       ac_cache_corrupted=: ;;
2322     ,);;
2323     *)
2324       if test "x$ac_old_val" != "x$ac_new_val"; then
2325         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2326 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2327         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2328 echo "$as_me:   former value:  $ac_old_val" >&2;}
2329         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2330 echo "$as_me:   current value: $ac_new_val" >&2;}
2331         ac_cache_corrupted=:
2332       fi;;
2333   esac
2334   # Pass precious variables to config.status.
2335   if test "$ac_new_set" = set; then
2336     case $ac_new_val in
2337     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2338     *) ac_arg=$ac_var=$ac_new_val ;;
2339     esac
2340     case " $ac_configure_args " in
2341       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2342       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2343     esac
2344   fi
2345 done
2346 if $ac_cache_corrupted; then
2347   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2348 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2349   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2350 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2351    { (exit 1); exit 1; }; }
2352 fi
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378 ac_ext=c
2379 ac_cpp='$CPP $CPPFLAGS'
2380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383
2384
2385
2386
2387
2388 ac_aux_dir=
2389 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2390   if test -f "$ac_dir/install-sh"; then
2391     ac_aux_dir=$ac_dir
2392     ac_install_sh="$ac_aux_dir/install-sh -c"
2393     break
2394   elif test -f "$ac_dir/install.sh"; then
2395     ac_aux_dir=$ac_dir
2396     ac_install_sh="$ac_aux_dir/install.sh -c"
2397     break
2398   elif test -f "$ac_dir/shtool"; then
2399     ac_aux_dir=$ac_dir
2400     ac_install_sh="$ac_aux_dir/shtool install -c"
2401     break
2402   fi
2403 done
2404 if test -z "$ac_aux_dir"; then
2405   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2406 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2407    { (exit 1); exit 1; }; }
2408 fi
2409
2410 # These three variables are undocumented and unsupported,
2411 # and are intended to be withdrawn in a future Autoconf release.
2412 # They can cause serious problems if a builder's source tree is in a directory
2413 # whose full name contains unusual characters.
2414 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2415 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2416 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2417
2418
2419 # Make sure we can run config.sub.
2420 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2421   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2422 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2423    { (exit 1); exit 1; }; }
2424
2425 { echo "$as_me:$LINENO: checking build system type" >&5
2426 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2427 if test "${ac_cv_build+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   ac_build_alias=$build_alias
2431 test "x$ac_build_alias" = x &&
2432   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2433 test "x$ac_build_alias" = x &&
2434   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2435 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2436    { (exit 1); exit 1; }; }
2437 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2438   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2439 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2440    { (exit 1); exit 1; }; }
2441
2442 fi
2443 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2444 echo "${ECHO_T}$ac_cv_build" >&6; }
2445 case $ac_cv_build in
2446 *-*-*) ;;
2447 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2448 echo "$as_me: error: invalid value of canonical build" >&2;}
2449    { (exit 1); exit 1; }; };;
2450 esac
2451 build=$ac_cv_build
2452 ac_save_IFS=$IFS; IFS='-'
2453 set x $ac_cv_build
2454 shift
2455 build_cpu=$1
2456 build_vendor=$2
2457 shift; shift
2458 # Remember, the first character of IFS is used to create $*,
2459 # except with old shells:
2460 build_os=$*
2461 IFS=$ac_save_IFS
2462 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2463
2464
2465 { echo "$as_me:$LINENO: checking host system type" >&5
2466 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2467 if test "${ac_cv_host+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   if test "x$host_alias" = x; then
2471   ac_cv_host=$ac_cv_build
2472 else
2473   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2474     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2475 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2476    { (exit 1); exit 1; }; }
2477 fi
2478
2479 fi
2480 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2481 echo "${ECHO_T}$ac_cv_host" >&6; }
2482 case $ac_cv_host in
2483 *-*-*) ;;
2484 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2485 echo "$as_me: error: invalid value of canonical host" >&2;}
2486    { (exit 1); exit 1; }; };;
2487 esac
2488 host=$ac_cv_host
2489 ac_save_IFS=$IFS; IFS='-'
2490 set x $ac_cv_host
2491 shift
2492 host_cpu=$1
2493 host_vendor=$2
2494 shift; shift
2495 # Remember, the first character of IFS is used to create $*,
2496 # except with old shells:
2497 host_os=$*
2498 IFS=$ac_save_IFS
2499 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2500
2501
2502 { echo "$as_me:$LINENO: checking target system type" >&5
2503 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2504 if test "${ac_cv_target+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   if test "x$target_alias" = x; then
2508   ac_cv_target=$ac_cv_host
2509 else
2510   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2511     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2512 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2513    { (exit 1); exit 1; }; }
2514 fi
2515
2516 fi
2517 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2518 echo "${ECHO_T}$ac_cv_target" >&6; }
2519 case $ac_cv_target in
2520 *-*-*) ;;
2521 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2522 echo "$as_me: error: invalid value of canonical target" >&2;}
2523    { (exit 1); exit 1; }; };;
2524 esac
2525 target=$ac_cv_target
2526 ac_save_IFS=$IFS; IFS='-'
2527 set x $ac_cv_target
2528 shift
2529 target_cpu=$1
2530 target_vendor=$2
2531 shift; shift
2532 # Remember, the first character of IFS is used to create $*,
2533 # except with old shells:
2534 target_os=$*
2535 IFS=$ac_save_IFS
2536 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2537
2538
2539 # The aliases save the names the user supplied, while $host etc.
2540 # will get canonicalized.
2541 test -n "$target_alias" &&
2542   test "$program_prefix$program_suffix$program_transform_name" = \
2543     NONENONEs,x,x, &&
2544   program_prefix=${target_alias}-
2545
2546
2547
2548 wx_major_version_number=2
2549 wx_minor_version_number=9
2550 wx_release_number=0
2551 wx_subrelease_number=0
2552
2553 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2554 WX_VERSION=$WX_RELEASE.$wx_release_number
2555 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2556
2557 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2558
2559
2560 wx_top_builddir="`pwd`"
2561
2562
2563
2564
2565 USE_UNIX=1
2566 USE_OS2=0
2567 USE_WIN32=0
2568 USE_DOS=0
2569 USE_BEOS=0
2570 USE_MAC=0
2571
2572 USE_AIX=
2573 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2574 USE_GNU=                            USE_HPUX=
2575 USE_LINUX=
2576 USE_NETBSD=
2577 USE_OPENBSD=
2578 USE_OSF=                            USE_SGI=
2579 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2580 USE_ULTRIX=
2581 USE_UNIXWARE=
2582
2583 USE_ALPHA=
2584
2585 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2586
2587 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2588
2589 DEFAULT_wxUSE_COCOA=0
2590 DEFAULT_wxUSE_GTK=0
2591 DEFAULT_wxUSE_MAC=0
2592 DEFAULT_wxUSE_MGL=0
2593 DEFAULT_wxUSE_MICROWIN=0
2594 DEFAULT_wxUSE_MOTIF=0
2595 DEFAULT_wxUSE_MSW=0
2596 DEFAULT_wxUSE_PM=0
2597 DEFAULT_wxUSE_X11=0
2598 DEFAULT_wxUSE_DFB=0
2599
2600 DEFAULT_DEFAULT_wxUSE_COCOA=0
2601 DEFAULT_DEFAULT_wxUSE_GTK=0
2602 DEFAULT_DEFAULT_wxUSE_MAC=0
2603 DEFAULT_DEFAULT_wxUSE_MGL=0
2604 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2605 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2606 DEFAULT_DEFAULT_wxUSE_MSW=0
2607 DEFAULT_DEFAULT_wxUSE_PM=0
2608 DEFAULT_DEFAULT_wxUSE_X11=0
2609 DEFAULT_DEFAULT_wxUSE_DFB=0
2610
2611 PROGRAM_EXT=
2612 SO_SUFFIX=so
2613 SAMPLES_RPATH_FLAG=
2614 SAMPLES_RPATH_POSTLINK=
2615
2616 DEFAULT_STD_FLAG=yes
2617
2618 case "${host}" in
2619   *-hp-hpux* )
2620     USE_HPUX=1
2621     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2622     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2623     SO_SUFFIX=sl
2624     cat >>confdefs.h <<\_ACEOF
2625 #define __HPUX__ 1
2626 _ACEOF
2627
2628
2629             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2630   ;;
2631   *-*-linux* )
2632     USE_LINUX=1
2633     cat >>confdefs.h <<\_ACEOF
2634 #define __LINUX__ 1
2635 _ACEOF
2636
2637     TMP=`uname -m`
2638     if test "x$TMP" = "xalpha"; then
2639       USE_ALPHA=1
2640       cat >>confdefs.h <<\_ACEOF
2641 #define __ALPHA__ 1
2642 _ACEOF
2643
2644     fi
2645     DEFAULT_DEFAULT_wxUSE_GTK=1
2646   ;;
2647   *-*-gnu* | *-*-k*bsd*-gnu )
2648     USE_GNU=1
2649     TMP=`uname -m`
2650     if test "x$TMP" = "xalpha"; then
2651       USE_ALPHA=1
2652       cat >>confdefs.h <<\_ACEOF
2653 #define __ALPHA__ 1
2654 _ACEOF
2655
2656     fi
2657     DEFAULT_DEFAULT_wxUSE_GTK=1
2658   ;;
2659   *-*-irix5* | *-*-irix6* )
2660     USE_SGI=1
2661     USE_SVR4=1
2662     cat >>confdefs.h <<\_ACEOF
2663 #define __SGI__ 1
2664 _ACEOF
2665
2666     cat >>confdefs.h <<\_ACEOF
2667 #define __SVR4__ 1
2668 _ACEOF
2669
2670     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2671   ;;
2672   *-*-solaris2* )
2673     USE_SUN=1
2674     USE_SOLARIS=1
2675     USE_SVR4=1
2676     cat >>confdefs.h <<\_ACEOF
2677 #define __SUN__ 1
2678 _ACEOF
2679
2680     cat >>confdefs.h <<\_ACEOF
2681 #define __SOLARIS__ 1
2682 _ACEOF
2683
2684     cat >>confdefs.h <<\_ACEOF
2685 #define __SVR4__ 1
2686 _ACEOF
2687
2688     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2689     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2690   ;;
2691   *-*-sunos4* )
2692     USE_SUN=1
2693     USE_SUNOS=1
2694     USE_BSD=1
2695     cat >>confdefs.h <<\_ACEOF
2696 #define __SUN__ 1
2697 _ACEOF
2698
2699     cat >>confdefs.h <<\_ACEOF
2700 #define __SUNOS__ 1
2701 _ACEOF
2702
2703     cat >>confdefs.h <<\_ACEOF
2704 #define __BSD__ 1
2705 _ACEOF
2706
2707     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2708   ;;
2709   *-*-freebsd*)
2710     USE_BSD=1
2711     USE_FREEBSD=1
2712     cat >>confdefs.h <<\_ACEOF
2713 #define __FREEBSD__ 1
2714 _ACEOF
2715
2716     cat >>confdefs.h <<\_ACEOF
2717 #define __BSD__ 1
2718 _ACEOF
2719
2720     DEFAULT_DEFAULT_wxUSE_GTK=1
2721   ;;
2722   *-*-openbsd*|*-*-mirbsd*)
2723     USE_BSD=1
2724     USE_OPENBSD=1
2725     cat >>confdefs.h <<\_ACEOF
2726 #define __OPENBSD__ 1
2727 _ACEOF
2728
2729     cat >>confdefs.h <<\_ACEOF
2730 #define __BSD__ 1
2731 _ACEOF
2732
2733     DEFAULT_DEFAULT_wxUSE_GTK=1
2734   ;;
2735   *-*-netbsd*)
2736     USE_BSD=1
2737     USE_NETBSD=1
2738     cat >>confdefs.h <<\_ACEOF
2739 #define __NETBSD__ 1
2740 _ACEOF
2741
2742     cat >>confdefs.h <<\_ACEOF
2743 #define __BSD__ 1
2744 _ACEOF
2745
2746     DEFAULT_DEFAULT_wxUSE_GTK=1
2747     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2748
2749             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2750   ;;
2751   *-*-osf* )
2752     USE_ALPHA=1
2753     USE_OSF=1
2754     cat >>confdefs.h <<\_ACEOF
2755 #define __ALPHA__ 1
2756 _ACEOF
2757
2758     cat >>confdefs.h <<\_ACEOF
2759 #define __OSF__ 1
2760 _ACEOF
2761
2762     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2763     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2764   ;;
2765   *-*-dgux5* )
2766     USE_ALPHA=1
2767     USE_SVR4=1
2768     cat >>confdefs.h <<\_ACEOF
2769 #define __ALPHA__ 1
2770 _ACEOF
2771
2772     cat >>confdefs.h <<\_ACEOF
2773 #define __SVR4__ 1
2774 _ACEOF
2775
2776     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2777   ;;
2778   *-*-sysv5* )
2779     USE_SYSV=1
2780     USE_SVR4=1
2781     cat >>confdefs.h <<\_ACEOF
2782 #define __SYSV__ 1
2783 _ACEOF
2784
2785     cat >>confdefs.h <<\_ACEOF
2786 #define __SVR4__ 1
2787 _ACEOF
2788
2789     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2790   ;;
2791   *-*-aix* )
2792     USE_AIX=1
2793     USE_SYSV=1
2794     USE_SVR4=1
2795                         SO_SUFFIX=a
2796     cat >>confdefs.h <<\_ACEOF
2797 #define __AIX__ 1
2798 _ACEOF
2799
2800     cat >>confdefs.h <<\_ACEOF
2801 #define __SYSV__ 1
2802 _ACEOF
2803
2804     cat >>confdefs.h <<\_ACEOF
2805 #define __SVR4__ 1
2806 _ACEOF
2807
2808     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2809   ;;
2810
2811   *-*-*UnixWare*)
2812     USE_SYSV=1
2813     USE_SVR4=1
2814     USE_UNIXWARE=1
2815     cat >>confdefs.h <<\_ACEOF
2816 #define __UNIXWARE__ 1
2817 _ACEOF
2818
2819   ;;
2820
2821   *-*-cygwin* | *-*-mingw32* )
2822                 SO_SUFFIX=dll
2823     PROGRAM_EXT=".exe"
2824     DEFAULT_DEFAULT_wxUSE_MSW=1
2825   ;;
2826
2827   *-pc-msdosdjgpp )
2828     USE_UNIX=0
2829     USE_DOS=1
2830     cat >>confdefs.h <<\_ACEOF
2831 #define __DOS__ 1
2832 _ACEOF
2833
2834     PROGRAM_EXT=".exe"
2835     DEFAULT_DEFAULT_wxUSE_MGL=1
2836   ;;
2837
2838   *-pc-os2_emx | *-pc-os2-emx )
2839     cat >>confdefs.h <<\_ACEOF
2840 #define __EMX__ 1
2841 _ACEOF
2842
2843     USE_OS2=1
2844     cat >>confdefs.h <<\_ACEOF
2845 #define __OS2__ 1
2846 _ACEOF
2847
2848     PROGRAM_EXT=".exe"
2849     DEFAULT_DEFAULT_wxUSE_PM=1
2850         CXX=gcc
2851     LDFLAGS="$LDFLAGS -Zcrtdll"
2852                         ac_executable_extensions=".exe"
2853     export ac_executable_extensions
2854             ac_save_IFS="$IFS"
2855     IFS='\\'
2856     ac_TEMP_PATH=
2857     for ac_dir in $PATH; do
2858       IFS=$ac_save_IFS
2859       if test -z "$ac_TEMP_PATH"; then
2860         ac_TEMP_PATH="$ac_dir"
2861       else
2862         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2863       fi
2864     done
2865     export PATH="$ac_TEMP_PATH"
2866     unset ac_TEMP_PATH
2867     DEFAULT_STD_FLAG=no
2868   ;;
2869
2870   *-*-darwin* )
2871         USE_BSD=1
2872     USE_DARWIN=1
2873     SO_SUFFIX=dylib
2874     cat >>confdefs.h <<\_ACEOF
2875 #define __BSD__ 1
2876 _ACEOF
2877
2878     cat >>confdefs.h <<\_ACEOF
2879 #define __DARWIN__ 1
2880 _ACEOF
2881
2882     cat >>confdefs.h <<\_ACEOF
2883 #define TARGET_CARBON 1
2884 _ACEOF
2885
2886     DEFAULT_DEFAULT_wxUSE_MAC=1
2887     DEFAULT_STD_FLAG=no
2888   ;;
2889   powerpc-apple-macos* )
2890         USE_UNIX=0
2891             ac_cv_c_bigendian=yes
2892     SO_SUFFIX=shlib
2893             DEFAULT_DEFAULT_wxUSE_MAC=1
2894     DEFAULT_STD_FLAG=no
2895   ;;
2896
2897   *-*-beos* )
2898         USE_BEOS=1
2899     cat >>confdefs.h <<\_ACEOF
2900 #define __BEOS__ 1
2901 _ACEOF
2902
2903   ;;
2904
2905   *)
2906     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2907 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2908     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2909 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2910
2911     DEFAULT_DEFAULT_wxUSE_X11=1
2912     DEFAULT_wxUSE_SHARED=no
2913 esac
2914
2915
2916
2917
2918           wx_arg_cache_file="configarg.cache"
2919           echo "loading argument cache $wx_arg_cache_file"
2920           rm -f ${wx_arg_cache_file}.tmp
2921           touch ${wx_arg_cache_file}.tmp
2922           touch ${wx_arg_cache_file}
2923
2924
2925 DEFAULT_wxUSE_ALL_FEATURES=yes
2926
2927 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2928 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2929
2930 DEFAULT_wxUSE_DMALLOC=no
2931 DEFAULT_wxUSE_LIBGNOMEVFS=no
2932 DEFAULT_wxUSE_LIBHILDON=no
2933 DEFAULT_wxUSE_LIBMSPACK=no
2934 DEFAULT_wxUSE_LIBSDL=no
2935 DEFAULT_wxUSE_ODBC=no
2936 DEFAULT_wxUSE_OPENGL=no
2937
2938 DEFAULT_wxUSE_ACCESSIBILITY=no
2939 DEFAULT_wxUSE_DATAVIEWCTRL=no
2940 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2941 DEFAULT_wxUSE_MEDIACTRL=no
2942 DEFAULT_wxUSE_TAB_DIALOG=no
2943
2944 DEFAULT_wxUSE_UNICODE_UTF8=auto
2945 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2946
2947 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2948
2949 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2950
2951 DEFAULT_wxUSE_GTK2=yes
2952
2953 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2954
2955
2956 for toolkit in `echo $ALL_TOOLKITS`; do
2957   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2958   if test "x$LINE" != "x" ; then
2959     has_toolkit_in_cache=1
2960     eval "DEFAULT_$LINE"
2961     eval "CACHE_$toolkit=1"
2962
2963     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2964     if test "x$LINE" != "x" ; then
2965         eval "DEFAULT_$LINE"
2966     fi
2967   fi
2968 done
2969
2970
2971
2972
2973
2974           enablestring=disable
2975           defaultval=
2976           if test -z "$defaultval"; then
2977               if test x"$enablestring" = xdisable; then
2978                   defaultval=yes
2979               else
2980                   defaultval=no
2981               fi
2982           fi
2983
2984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2985 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2986           # Check whether --enable-gui was given.
2987 if test "${enable_gui+set}" = set; then
2988   enableval=$enable_gui;
2989                           if test "$enableval" = yes; then
2990                             wx_cv_use_gui='wxUSE_GUI=yes'
2991                           else
2992                             wx_cv_use_gui='wxUSE_GUI=no'
2993                           fi
2994                           cache=yes
2995
2996 else
2997
2998                           cache=no
2999                           LINE=`grep "^wxUSE_GUI=" ${wx_arg_cache_file}`
3000                           if test "x$LINE" != x ; then
3001                             eval "DEFAULT_$LINE"
3002                           fi
3003
3004                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3005
3006 fi
3007
3008
3009           eval "$wx_cv_use_gui"
3010           if test "x$cache" = xyes; then
3011             echo "wxUSE_GUI=$wxUSE_GUI" >> ${wx_arg_cache_file}.tmp
3012           fi
3013
3014           if test x"$enablestring" = xdisable; then
3015             if test $wxUSE_GUI = yes; then
3016               result=no
3017             else
3018               result=yes
3019             fi
3020           else
3021             result=$wxUSE_GUI
3022           fi
3023
3024           { echo "$as_me:$LINENO: result: $result" >&5
3025 echo "${ECHO_T}$result" >&6; }
3026
3027
3028           enablestring=
3029           defaultval=
3030           if test -z "$defaultval"; then
3031               if test x"$enablestring" = xdisable; then
3032                   defaultval=yes
3033               else
3034                   defaultval=no
3035               fi
3036           fi
3037
3038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3039 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3040           # Check whether --enable-monolithic was given.
3041 if test "${enable_monolithic+set}" = set; then
3042   enableval=$enable_monolithic;
3043                           if test "$enableval" = yes; then
3044                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3045                           else
3046                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3047                           fi
3048                           cache=yes
3049
3050 else
3051
3052                           cache=no
3053                           LINE=`grep "^wxUSE_MONOLITHIC=" ${wx_arg_cache_file}`
3054                           if test "x$LINE" != x ; then
3055                             eval "DEFAULT_$LINE"
3056                           fi
3057
3058                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3059
3060 fi
3061
3062
3063           eval "$wx_cv_use_monolithic"
3064           if test "x$cache" = xyes; then
3065             echo "wxUSE_MONOLITHIC=$wxUSE_MONOLITHIC" >> ${wx_arg_cache_file}.tmp
3066           fi
3067
3068           if test x"$enablestring" = xdisable; then
3069             if test $wxUSE_MONOLITHIC = yes; then
3070               result=no
3071             else
3072               result=yes
3073             fi
3074           else
3075             result=$wxUSE_MONOLITHIC
3076           fi
3077
3078           { echo "$as_me:$LINENO: result: $result" >&5
3079 echo "${ECHO_T}$result" >&6; }
3080
3081
3082           enablestring=
3083           defaultval=
3084           if test -z "$defaultval"; then
3085               if test x"$enablestring" = xdisable; then
3086                   defaultval=yes
3087               else
3088                   defaultval=no
3089               fi
3090           fi
3091
3092           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3093 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3094           # Check whether --enable-plugins was given.
3095 if test "${enable_plugins+set}" = set; then
3096   enableval=$enable_plugins;
3097                           if test "$enableval" = yes; then
3098                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3099                           else
3100                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3101                           fi
3102                           cache=yes
3103
3104 else
3105
3106                           cache=no
3107                           LINE=`grep "^wxUSE_PLUGINS=" ${wx_arg_cache_file}`
3108                           if test "x$LINE" != x ; then
3109                             eval "DEFAULT_$LINE"
3110                           fi
3111
3112                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3113
3114 fi
3115
3116
3117           eval "$wx_cv_use_plugins"
3118           if test "x$cache" = xyes; then
3119             echo "wxUSE_PLUGINS=$wxUSE_PLUGINS" >> ${wx_arg_cache_file}.tmp
3120           fi
3121
3122           if test x"$enablestring" = xdisable; then
3123             if test $wxUSE_PLUGINS = yes; then
3124               result=no
3125             else
3126               result=yes
3127             fi
3128           else
3129             result=$wxUSE_PLUGINS
3130           fi
3131
3132           { echo "$as_me:$LINENO: result: $result" >&5
3133 echo "${ECHO_T}$result" >&6; }
3134
3135
3136           withstring=without
3137           defaultval=$wxUSE_ALL_FEATURES
3138           if test -z "$defaultval"; then
3139               if test x"$withstring" = xwithout; then
3140                   defaultval=yes
3141               else
3142                   defaultval=no
3143               fi
3144           fi
3145           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3146 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3147
3148 # Check whether --with-subdirs was given.
3149 if test "${with_subdirs+set}" = set; then
3150   withval=$with_subdirs;
3151                         if test "$withval" = yes; then
3152                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3153                         else
3154                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3155                         fi
3156                         cache=yes
3157
3158 else
3159
3160                         cache=no
3161                         LINE=`grep "^wxWITH_SUBDIRS=" ${wx_arg_cache_file}`
3162                         if test "x$LINE" != x ; then
3163                           eval "DEFAULT_$LINE"
3164                         fi
3165
3166                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3167
3168 fi
3169
3170
3171           eval "$wx_cv_use_subdirs"
3172           if test "x$cache" = xyes; then
3173             echo "wxWITH_SUBDIRS=$wxWITH_SUBDIRS" >> ${wx_arg_cache_file}.tmp
3174           fi
3175
3176           if test x"$withstring" = xwithout; then
3177             if test $wxWITH_SUBDIRS = yes; then
3178               result=no
3179             else
3180               result=yes
3181             fi
3182           else
3183             result=$wxWITH_SUBDIRS
3184           fi
3185
3186           { echo "$as_me:$LINENO: result: $result" >&5
3187 echo "${ECHO_T}$result" >&6; }
3188
3189
3190 # Check whether --with-flavour was given.
3191 if test "${with_flavour+set}" = set; then
3192   withval=$with_flavour; WX_FLAVOUR="$withval"
3193 fi
3194
3195
3196           enablestring=
3197           defaultval=
3198           if test -z "$defaultval"; then
3199               if test x"$enablestring" = xdisable; then
3200                   defaultval=yes
3201               else
3202                   defaultval=no
3203               fi
3204           fi
3205
3206           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3207 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3208           # Check whether --enable-official_build was given.
3209 if test "${enable_official_build+set}" = set; then
3210   enableval=$enable_official_build;
3211                           if test "$enableval" = yes; then
3212                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3213                           else
3214                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3215                           fi
3216                           cache=yes
3217
3218 else
3219
3220                           cache=no
3221                           LINE=`grep "^wxUSE_OFFICIAL_BUILD=" ${wx_arg_cache_file}`
3222                           if test "x$LINE" != x ; then
3223                             eval "DEFAULT_$LINE"
3224                           fi
3225
3226                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3227
3228 fi
3229
3230
3231           eval "$wx_cv_use_official_build"
3232           if test "x$cache" = xyes; then
3233             echo "wxUSE_OFFICIAL_BUILD=$wxUSE_OFFICIAL_BUILD" >> ${wx_arg_cache_file}.tmp
3234           fi
3235
3236           if test x"$enablestring" = xdisable; then
3237             if test $wxUSE_OFFICIAL_BUILD = yes; then
3238               result=no
3239             else
3240               result=yes
3241             fi
3242           else
3243             result=$wxUSE_OFFICIAL_BUILD
3244           fi
3245
3246           { echo "$as_me:$LINENO: result: $result" >&5
3247 echo "${ECHO_T}$result" >&6; }
3248
3249 # Check whether --enable-vendor was given.
3250 if test "${enable_vendor+set}" = set; then
3251   enableval=$enable_vendor; VENDOR="$enableval"
3252 fi
3253
3254 if test "x$VENDOR" = "x"; then
3255     VENDOR="custom"
3256 fi
3257
3258
3259           enablestring=disable
3260           defaultval=
3261           if test -z "$defaultval"; then
3262               if test x"$enablestring" = xdisable; then
3263                   defaultval=yes
3264               else
3265                   defaultval=no
3266               fi
3267           fi
3268
3269           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3270 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3271           # Check whether --enable-all-features was given.
3272 if test "${enable_all_features+set}" = set; then
3273   enableval=$enable_all_features;
3274                           if test "$enableval" = yes; then
3275                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3276                           else
3277                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3278                           fi
3279                           cache=yes
3280
3281 else
3282
3283                           cache=no
3284                           LINE=`grep "^wxUSE_ALL_FEATURES=" ${wx_arg_cache_file}`
3285                           if test "x$LINE" != x ; then
3286                             eval "DEFAULT_$LINE"
3287                           fi
3288
3289                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3290
3291 fi
3292
3293
3294           eval "$wx_cv_use_all_features"
3295           if test "x$cache" = xyes; then
3296             echo "wxUSE_ALL_FEATURES=$wxUSE_ALL_FEATURES" >> ${wx_arg_cache_file}.tmp
3297           fi
3298
3299           if test x"$enablestring" = xdisable; then
3300             if test $wxUSE_ALL_FEATURES = yes; then
3301               result=no
3302             else
3303               result=yes
3304             fi
3305           else
3306             result=$wxUSE_ALL_FEATURES
3307           fi
3308
3309           { echo "$as_me:$LINENO: result: $result" >&5
3310 echo "${ECHO_T}$result" >&6; }
3311
3312
3313
3314 if test "$wxUSE_GUI" = "yes"; then
3315
3316
3317           enablestring=
3318           defaultval=
3319           if test -z "$defaultval"; then
3320               if test x"$enablestring" = xdisable; then
3321                   defaultval=yes
3322               else
3323                   defaultval=no
3324               fi
3325           fi
3326
3327           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3328 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3329           # Check whether --enable-universal was given.
3330 if test "${enable_universal+set}" = set; then
3331   enableval=$enable_universal;
3332                           if test "$enableval" = yes; then
3333                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3334                           else
3335                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3336                           fi
3337                           cache=yes
3338
3339 else
3340
3341                           cache=no
3342                           LINE=`grep "^wxUSE_UNIVERSAL=" ${wx_arg_cache_file}`
3343                           if test "x$LINE" != x ; then
3344                             eval "DEFAULT_$LINE"
3345                           fi
3346
3347                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3348
3349 fi
3350
3351
3352           eval "$wx_cv_use_universal"
3353           if test "x$cache" = xyes; then
3354             echo "wxUSE_UNIVERSAL=$wxUSE_UNIVERSAL" >> ${wx_arg_cache_file}.tmp
3355           fi
3356
3357           if test x"$enablestring" = xdisable; then
3358             if test $wxUSE_UNIVERSAL = yes; then
3359               result=no
3360             else
3361               result=yes
3362             fi
3363           else
3364             result=$wxUSE_UNIVERSAL
3365           fi
3366
3367           { echo "$as_me:$LINENO: result: $result" >&5
3368 echo "${ECHO_T}$result" >&6; }
3369
3370 if test "$wxUSE_UNIVERSAL" = "yes"; then
3371
3372 # Check whether --with-themes was given.
3373 if test "${with_themes+set}" = set; then
3374   withval=$with_themes; wxUNIV_THEMES="$withval"
3375 fi
3376
3377 fi
3378
3379
3380 # Check whether --with-gtk was given.
3381 if test "${with_gtk+set}" = set; then
3382   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3383 fi
3384
3385
3386 # Check whether --with-motif was given.
3387 if test "${with_motif+set}" = set; then
3388   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3389 fi
3390
3391
3392 # Check whether --with-mac was given.
3393 if test "${with_mac+set}" = set; then
3394   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3395 fi
3396
3397
3398 # Check whether --with-cocoa was given.
3399 if test "${with_cocoa+set}" = set; then
3400   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3401 fi
3402
3403
3404 # Check whether --with-wine was given.
3405 if test "${with_wine+set}" = set; then
3406   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3407 fi
3408
3409
3410 # Check whether --with-msw was given.
3411 if test "${with_msw+set}" = set; then
3412   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3413 fi
3414
3415
3416 # Check whether --with-pm was given.
3417 if test "${with_pm+set}" = set; then
3418   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3419 fi
3420
3421
3422 # Check whether --with-mgl was given.
3423 if test "${with_mgl+set}" = set; then
3424   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3425 fi
3426
3427
3428 # Check whether --with-directfb was given.
3429 if test "${with_directfb+set}" = set; then
3430   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3431 fi
3432
3433
3434 # Check whether --with-microwin was given.
3435 if test "${with_microwin+set}" = set; then
3436   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3437 fi
3438
3439
3440 # Check whether --with-x11 was given.
3441 if test "${with_x11+set}" = set; then
3442   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3443 fi
3444
3445
3446           enablestring=
3447           defaultval=
3448           if test -z "$defaultval"; then
3449               if test x"$enablestring" = xdisable; then
3450                   defaultval=yes
3451               else
3452                   defaultval=no
3453               fi
3454           fi
3455
3456           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3457 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3458           # Check whether --enable-nanox was given.
3459 if test "${enable_nanox+set}" = set; then
3460   enableval=$enable_nanox;
3461                           if test "$enableval" = yes; then
3462                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3463                           else
3464                             wx_cv_use_nanox='wxUSE_NANOX=no'
3465                           fi
3466                           cache=yes
3467
3468 else
3469
3470                           cache=no
3471                           LINE=`grep "^wxUSE_NANOX=" ${wx_arg_cache_file}`
3472                           if test "x$LINE" != x ; then
3473                             eval "DEFAULT_$LINE"
3474                           fi
3475
3476                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3477
3478 fi
3479
3480
3481           eval "$wx_cv_use_nanox"
3482           if test "x$cache" = xyes; then
3483             echo "wxUSE_NANOX=$wxUSE_NANOX" >> ${wx_arg_cache_file}.tmp
3484           fi
3485
3486           if test x"$enablestring" = xdisable; then
3487             if test $wxUSE_NANOX = yes; then
3488               result=no
3489             else
3490               result=yes
3491             fi
3492           else
3493             result=$wxUSE_NANOX
3494           fi
3495
3496           { echo "$as_me:$LINENO: result: $result" >&5
3497 echo "${ECHO_T}$result" >&6; }
3498
3499
3500 # Check whether --enable-gtk2 was given.
3501 if test "${enable_gtk2+set}" = set; then
3502   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3503 fi
3504
3505
3506           enablestring=
3507           defaultval=
3508           if test -z "$defaultval"; then
3509               if test x"$enablestring" = xdisable; then
3510                   defaultval=yes
3511               else
3512                   defaultval=no
3513               fi
3514           fi
3515
3516           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3517 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3518           # Check whether --enable-gpe was given.
3519 if test "${enable_gpe+set}" = set; then
3520   enableval=$enable_gpe;
3521                           if test "$enableval" = yes; then
3522                             wx_cv_use_gpe='wxUSE_GPE=yes'
3523                           else
3524                             wx_cv_use_gpe='wxUSE_GPE=no'
3525                           fi
3526                           cache=yes
3527
3528 else
3529
3530                           cache=no
3531                           LINE=`grep "^wxUSE_GPE=" ${wx_arg_cache_file}`
3532                           if test "x$LINE" != x ; then
3533                             eval "DEFAULT_$LINE"
3534                           fi
3535
3536                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3537
3538 fi
3539
3540
3541           eval "$wx_cv_use_gpe"
3542           if test "x$cache" = xyes; then
3543             echo "wxUSE_GPE=$wxUSE_GPE" >> ${wx_arg_cache_file}.tmp
3544           fi
3545
3546           if test x"$enablestring" = xdisable; then
3547             if test $wxUSE_GPE = yes; then
3548               result=no
3549             else
3550               result=yes
3551             fi
3552           else
3553             result=$wxUSE_GPE
3554           fi
3555
3556           { echo "$as_me:$LINENO: result: $result" >&5
3557 echo "${ECHO_T}$result" >&6; }
3558
3559
3560
3561
3562           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3563 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3564
3565 # Check whether --with-libpng was given.
3566 if test "${with_libpng+set}" = set; then
3567   withval=$with_libpng;
3568                         if test "$withval" = yes; then
3569                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3570                         elif test "$withval" = no; then
3571                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3572                         elif test "$withval" = sys; then
3573                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3574                         elif test "$withval" = builtin; then
3575                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3576                         else
3577                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3578 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3579    { (exit 1); exit 1; }; }
3580                         fi
3581                         cache=yes
3582
3583 else
3584
3585                         cache=no
3586                         LINE=`grep "^wxUSE_LIBPNG=" ${wx_arg_cache_file}`
3587                         if test "x$LINE" != x ; then
3588                           eval "DEFAULT_$LINE"
3589                         fi
3590
3591                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3592
3593 fi
3594
3595
3596           eval "$wx_cv_use_libpng"
3597           if test "x$cache" = xyes; then
3598             echo "wxUSE_LIBPNG=$wxUSE_LIBPNG" >> ${wx_arg_cache_file}.tmp
3599           fi
3600
3601           if test "$wxUSE_LIBPNG" = yes; then
3602             { echo "$as_me:$LINENO: result: yes" >&5
3603 echo "${ECHO_T}yes" >&6; }
3604           elif test "$wxUSE_LIBPNG" = no; then
3605             { echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6; }
3607           elif test "$wxUSE_LIBPNG" = sys; then
3608             { echo "$as_me:$LINENO: result: system version" >&5
3609 echo "${ECHO_T}system version" >&6; }
3610           elif test "$wxUSE_LIBPNG" = builtin; then
3611             { echo "$as_me:$LINENO: result: builtin version" >&5
3612 echo "${ECHO_T}builtin version" >&6; }
3613           else
3614             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3615 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3616    { (exit 1); exit 1; }; }
3617           fi
3618
3619
3620           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3621 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3622
3623 # Check whether --with-libjpeg was given.
3624 if test "${with_libjpeg+set}" = set; then
3625   withval=$with_libjpeg;
3626                         if test "$withval" = yes; then
3627                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3628                         elif test "$withval" = no; then
3629                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3630                         elif test "$withval" = sys; then
3631                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3632                         elif test "$withval" = builtin; then
3633                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3634                         else
3635                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3636 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3637    { (exit 1); exit 1; }; }
3638                         fi
3639                         cache=yes
3640
3641 else
3642
3643                         cache=no
3644                         LINE=`grep "^wxUSE_LIBJPEG=" ${wx_arg_cache_file}`
3645                         if test "x$LINE" != x ; then
3646                           eval "DEFAULT_$LINE"
3647                         fi
3648
3649                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3650
3651 fi
3652
3653
3654           eval "$wx_cv_use_libjpeg"
3655           if test "x$cache" = xyes; then
3656             echo "wxUSE_LIBJPEG=$wxUSE_LIBJPEG" >> ${wx_arg_cache_file}.tmp
3657           fi
3658
3659           if test "$wxUSE_LIBJPEG" = yes; then
3660             { echo "$as_me:$LINENO: result: yes" >&5
3661 echo "${ECHO_T}yes" >&6; }
3662           elif test "$wxUSE_LIBJPEG" = no; then
3663             { echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6; }
3665           elif test "$wxUSE_LIBJPEG" = sys; then
3666             { echo "$as_me:$LINENO: result: system version" >&5
3667 echo "${ECHO_T}system version" >&6; }
3668           elif test "$wxUSE_LIBJPEG" = builtin; then
3669             { echo "$as_me:$LINENO: result: builtin version" >&5
3670 echo "${ECHO_T}builtin version" >&6; }
3671           else
3672             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3673 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3674    { (exit 1); exit 1; }; }
3675           fi
3676
3677
3678           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3679 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3680
3681 # Check whether --with-libtiff was given.
3682 if test "${with_libtiff+set}" = set; then
3683   withval=$with_libtiff;
3684                         if test "$withval" = yes; then
3685                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3686                         elif test "$withval" = no; then
3687                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3688                         elif test "$withval" = sys; then
3689                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3690                         elif test "$withval" = builtin; then
3691                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3692                         else
3693                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3694 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3695    { (exit 1); exit 1; }; }
3696                         fi
3697                         cache=yes
3698
3699 else
3700
3701                         cache=no
3702                         LINE=`grep "^wxUSE_LIBTIFF=" ${wx_arg_cache_file}`
3703                         if test "x$LINE" != x ; then
3704                           eval "DEFAULT_$LINE"
3705                         fi
3706
3707                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3708
3709 fi
3710
3711
3712           eval "$wx_cv_use_libtiff"
3713           if test "x$cache" = xyes; then
3714             echo "wxUSE_LIBTIFF=$wxUSE_LIBTIFF" >> ${wx_arg_cache_file}.tmp
3715           fi
3716
3717           if test "$wxUSE_LIBTIFF" = yes; then
3718             { echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6; }
3720           elif test "$wxUSE_LIBTIFF" = no; then
3721             { echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6; }
3723           elif test "$wxUSE_LIBTIFF" = sys; then
3724             { echo "$as_me:$LINENO: result: system version" >&5
3725 echo "${ECHO_T}system version" >&6; }
3726           elif test "$wxUSE_LIBTIFF" = builtin; then
3727             { echo "$as_me:$LINENO: result: builtin version" >&5
3728 echo "${ECHO_T}builtin version" >&6; }
3729           else
3730             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3731 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3732    { (exit 1); exit 1; }; }
3733           fi
3734
3735
3736           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3737 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3738
3739 # Check whether --with-libxpm was given.
3740 if test "${with_libxpm+set}" = set; then
3741   withval=$with_libxpm;
3742                         if test "$withval" = yes; then
3743                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3744                         elif test "$withval" = no; then
3745                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3746                         elif test "$withval" = sys; then
3747                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3748                         elif test "$withval" = builtin; then
3749                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3750                         else
3751                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3752 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3753    { (exit 1); exit 1; }; }
3754                         fi
3755                         cache=yes
3756
3757 else
3758
3759                         cache=no
3760                         LINE=`grep "^wxUSE_LIBXPM=" ${wx_arg_cache_file}`
3761                         if test "x$LINE" != x ; then
3762                           eval "DEFAULT_$LINE"
3763                         fi
3764
3765                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3766
3767 fi
3768
3769
3770           eval "$wx_cv_use_libxpm"
3771           if test "x$cache" = xyes; then
3772             echo "wxUSE_LIBXPM=$wxUSE_LIBXPM" >> ${wx_arg_cache_file}.tmp
3773           fi
3774
3775           if test "$wxUSE_LIBXPM" = yes; then
3776             { echo "$as_me:$LINENO: result: yes" >&5
3777 echo "${ECHO_T}yes" >&6; }
3778           elif test "$wxUSE_LIBXPM" = no; then
3779             { echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6; }
3781           elif test "$wxUSE_LIBXPM" = sys; then
3782             { echo "$as_me:$LINENO: result: system version" >&5
3783 echo "${ECHO_T}system version" >&6; }
3784           elif test "$wxUSE_LIBXPM" = builtin; then
3785             { echo "$as_me:$LINENO: result: builtin version" >&5
3786 echo "${ECHO_T}builtin version" >&6; }
3787           else
3788             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3789 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3790    { (exit 1); exit 1; }; }
3791           fi
3792
3793
3794           withstring=
3795           defaultval=$wxUSE_ALL_FEATURES
3796           if test -z "$defaultval"; then
3797               if test x"$withstring" = xwithout; then
3798                   defaultval=yes
3799               else
3800                   defaultval=no
3801               fi
3802           fi
3803           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3804 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3805
3806 # Check whether --with-libmspack was given.
3807 if test "${with_libmspack+set}" = set; then
3808   withval=$with_libmspack;
3809                         if test "$withval" = yes; then
3810                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3811                         else
3812                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3813                         fi
3814                         cache=yes
3815
3816 else
3817
3818                         cache=no
3819                         LINE=`grep "^wxUSE_LIBMSPACK=" ${wx_arg_cache_file}`
3820                         if test "x$LINE" != x ; then
3821                           eval "DEFAULT_$LINE"
3822                         fi
3823
3824                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3825
3826 fi
3827
3828
3829           eval "$wx_cv_use_libmspack"
3830           if test "x$cache" = xyes; then
3831             echo "wxUSE_LIBMSPACK=$wxUSE_LIBMSPACK" >> ${wx_arg_cache_file}.tmp
3832           fi
3833
3834           if test x"$withstring" = xwithout; then
3835             if test $wxUSE_LIBMSPACK = yes; then
3836               result=no
3837             else
3838               result=yes
3839             fi
3840           else
3841             result=$wxUSE_LIBMSPACK
3842           fi
3843
3844           { echo "$as_me:$LINENO: result: $result" >&5
3845 echo "${ECHO_T}$result" >&6; }
3846
3847
3848           withstring=without
3849           defaultval=$wxUSE_ALL_FEATURES
3850           if test -z "$defaultval"; then
3851               if test x"$withstring" = xwithout; then
3852                   defaultval=yes
3853               else
3854                   defaultval=no
3855               fi
3856           fi
3857           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3858 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3859
3860 # Check whether --with-gnomeprint was given.
3861 if test "${with_gnomeprint+set}" = set; then
3862   withval=$with_gnomeprint;
3863                         if test "$withval" = yes; then
3864                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3865                         else
3866                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3867                         fi
3868                         cache=yes
3869
3870 else
3871
3872                         cache=no
3873                         LINE=`grep "^wxUSE_LIBGNOMEPRINT=" ${wx_arg_cache_file}`
3874                         if test "x$LINE" != x ; then
3875                           eval "DEFAULT_$LINE"
3876                         fi
3877
3878                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3879
3880 fi
3881
3882
3883           eval "$wx_cv_use_gnomeprint"
3884           if test "x$cache" = xyes; then
3885             echo "wxUSE_LIBGNOMEPRINT=$wxUSE_LIBGNOMEPRINT" >> ${wx_arg_cache_file}.tmp
3886           fi
3887
3888           if test x"$withstring" = xwithout; then
3889             if test $wxUSE_LIBGNOMEPRINT = yes; then
3890               result=no
3891             else
3892               result=yes
3893             fi
3894           else
3895             result=$wxUSE_LIBGNOMEPRINT
3896           fi
3897
3898           { echo "$as_me:$LINENO: result: $result" >&5
3899 echo "${ECHO_T}$result" >&6; }
3900
3901
3902           withstring=
3903           defaultval=$wxUSE_ALL_FEATURES
3904           if test -z "$defaultval"; then
3905               if test x"$withstring" = xwithout; then
3906                   defaultval=yes
3907               else
3908                   defaultval=no
3909               fi
3910           fi
3911           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3912 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3913
3914 # Check whether --with-gnomevfs was given.
3915 if test "${with_gnomevfs+set}" = set; then
3916   withval=$with_gnomevfs;
3917                         if test "$withval" = yes; then
3918                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3919                         else
3920                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3921                         fi
3922                         cache=yes
3923
3924 else
3925
3926                         cache=no
3927                         LINE=`grep "^wxUSE_LIBGNOMEVFS=" ${wx_arg_cache_file}`
3928                         if test "x$LINE" != x ; then
3929                           eval "DEFAULT_$LINE"
3930                         fi
3931
3932                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3933
3934 fi
3935
3936
3937           eval "$wx_cv_use_gnomevfs"
3938           if test "x$cache" = xyes; then
3939             echo "wxUSE_LIBGNOMEVFS=$wxUSE_LIBGNOMEVFS" >> ${wx_arg_cache_file}.tmp
3940           fi
3941
3942           if test x"$withstring" = xwithout; then
3943             if test $wxUSE_LIBGNOMEVFS = yes; then
3944               result=no
3945             else
3946               result=yes
3947             fi
3948           else
3949             result=$wxUSE_LIBGNOMEVFS
3950           fi
3951
3952           { echo "$as_me:$LINENO: result: $result" >&5
3953 echo "${ECHO_T}$result" >&6; }
3954
3955
3956           withstring=
3957           defaultval=$wxUSE_ALL_FEATURES
3958           if test -z "$defaultval"; then
3959               if test x"$withstring" = xwithout; then
3960                   defaultval=yes
3961               else
3962                   defaultval=no
3963               fi
3964           fi
3965           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3966 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3967
3968 # Check whether --with-hildon was given.
3969 if test "${with_hildon+set}" = set; then
3970   withval=$with_hildon;
3971                         if test "$withval" = yes; then
3972                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3973                         else
3974                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3975                         fi
3976                         cache=yes
3977
3978 else
3979
3980                         cache=no
3981                         LINE=`grep "^wxUSE_LIBHILDON=" ${wx_arg_cache_file}`
3982                         if test "x$LINE" != x ; then
3983                           eval "DEFAULT_$LINE"
3984                         fi
3985
3986                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3987
3988 fi
3989
3990
3991           eval "$wx_cv_use_hildon"
3992           if test "x$cache" = xyes; then
3993             echo "wxUSE_LIBHILDON=$wxUSE_LIBHILDON" >> ${wx_arg_cache_file}.tmp
3994           fi
3995
3996           if test x"$withstring" = xwithout; then
3997             if test $wxUSE_LIBHILDON = yes; then
3998               result=no
3999             else
4000               result=yes
4001             fi
4002           else
4003             result=$wxUSE_LIBHILDON
4004           fi
4005
4006           { echo "$as_me:$LINENO: result: $result" >&5
4007 echo "${ECHO_T}$result" >&6; }
4008
4009
4010           withstring=
4011           defaultval=$wxUSE_ALL_FEATURES
4012           if test -z "$defaultval"; then
4013               if test x"$withstring" = xwithout; then
4014                   defaultval=yes
4015               else
4016                   defaultval=no
4017               fi
4018           fi
4019           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4020 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4021
4022 # Check whether --with-opengl was given.
4023 if test "${with_opengl+set}" = set; then
4024   withval=$with_opengl;
4025                         if test "$withval" = yes; then
4026                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4027                         else
4028                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4029                         fi
4030                         cache=yes
4031
4032 else
4033
4034                         cache=no
4035                         LINE=`grep "^wxUSE_OPENGL=" ${wx_arg_cache_file}`
4036                         if test "x$LINE" != x ; then
4037                           eval "DEFAULT_$LINE"
4038                         fi
4039
4040                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4041
4042 fi
4043
4044
4045           eval "$wx_cv_use_opengl"
4046           if test "x$cache" = xyes; then
4047             echo "wxUSE_OPENGL=$wxUSE_OPENGL" >> ${wx_arg_cache_file}.tmp
4048           fi
4049
4050           if test x"$withstring" = xwithout; then
4051             if test $wxUSE_OPENGL = yes; then
4052               result=no
4053             else
4054               result=yes
4055             fi
4056           else
4057             result=$wxUSE_OPENGL
4058           fi
4059
4060           { echo "$as_me:$LINENO: result: $result" >&5
4061 echo "${ECHO_T}$result" >&6; }
4062
4063
4064 fi
4065
4066
4067           withstring=
4068           defaultval=$wxUSE_ALL_FEATURES
4069           if test -z "$defaultval"; then
4070               if test x"$withstring" = xwithout; then
4071                   defaultval=yes
4072               else
4073                   defaultval=no
4074               fi
4075           fi
4076           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4077 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4078
4079 # Check whether --with-dmalloc was given.
4080 if test "${with_dmalloc+set}" = set; then
4081   withval=$with_dmalloc;
4082                         if test "$withval" = yes; then
4083                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4084                         else
4085                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4086                         fi
4087                         cache=yes
4088
4089 else
4090
4091                         cache=no
4092                         LINE=`grep "^wxUSE_DMALLOC=" ${wx_arg_cache_file}`
4093                         if test "x$LINE" != x ; then
4094                           eval "DEFAULT_$LINE"
4095                         fi
4096
4097                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4098
4099 fi
4100
4101
4102           eval "$wx_cv_use_dmalloc"
4103           if test "x$cache" = xyes; then
4104             echo "wxUSE_DMALLOC=$wxUSE_DMALLOC" >> ${wx_arg_cache_file}.tmp
4105           fi
4106
4107           if test x"$withstring" = xwithout; then
4108             if test $wxUSE_DMALLOC = yes; then
4109               result=no
4110             else
4111               result=yes
4112             fi
4113           else
4114             result=$wxUSE_DMALLOC
4115           fi
4116
4117           { echo "$as_me:$LINENO: result: $result" >&5
4118 echo "${ECHO_T}$result" >&6; }
4119
4120
4121           withstring=
4122           defaultval=$wxUSE_ALL_FEATURES
4123           if test -z "$defaultval"; then
4124               if test x"$withstring" = xwithout; then
4125                   defaultval=yes
4126               else
4127                   defaultval=no
4128               fi
4129           fi
4130           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4131 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4132
4133 # Check whether --with-sdl was given.
4134 if test "${with_sdl+set}" = set; then
4135   withval=$with_sdl;
4136                         if test "$withval" = yes; then
4137                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4138                         else
4139                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4140                         fi
4141                         cache=yes
4142
4143 else
4144
4145                         cache=no
4146                         LINE=`grep "^wxUSE_LIBSDL=" ${wx_arg_cache_file}`
4147                         if test "x$LINE" != x ; then
4148                           eval "DEFAULT_$LINE"
4149                         fi
4150
4151                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4152
4153 fi
4154
4155
4156           eval "$wx_cv_use_sdl"
4157           if test "x$cache" = xyes; then
4158             echo "wxUSE_LIBSDL=$wxUSE_LIBSDL" >> ${wx_arg_cache_file}.tmp
4159           fi
4160
4161           if test x"$withstring" = xwithout; then
4162             if test $wxUSE_LIBSDL = yes; then
4163               result=no
4164             else
4165               result=yes
4166             fi
4167           else
4168             result=$wxUSE_LIBSDL
4169           fi
4170
4171           { echo "$as_me:$LINENO: result: $result" >&5
4172 echo "${ECHO_T}$result" >&6; }
4173
4174
4175           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4176 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4177
4178 # Check whether --with-regex was given.
4179 if test "${with_regex+set}" = set; then
4180   withval=$with_regex;
4181                         if test "$withval" = yes; then
4182                           wx_cv_use_regex='wxUSE_REGEX=yes'
4183                         elif test "$withval" = no; then
4184                           wx_cv_use_regex='wxUSE_REGEX=no'
4185                         elif test "$withval" = sys; then
4186                           wx_cv_use_regex='wxUSE_REGEX=sys'
4187                         elif test "$withval" = builtin; then
4188                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4189                         else
4190                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4191 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4192    { (exit 1); exit 1; }; }
4193                         fi
4194                         cache=yes
4195
4196 else
4197
4198                         cache=no
4199                         LINE=`grep "^wxUSE_REGEX=" ${wx_arg_cache_file}`
4200                         if test "x$LINE" != x ; then
4201                           eval "DEFAULT_$LINE"
4202                         fi
4203
4204                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4205
4206 fi
4207
4208
4209           eval "$wx_cv_use_regex"
4210           if test "x$cache" = xyes; then
4211             echo "wxUSE_REGEX=$wxUSE_REGEX" >> ${wx_arg_cache_file}.tmp
4212           fi
4213
4214           if test "$wxUSE_REGEX" = yes; then
4215             { echo "$as_me:$LINENO: result: yes" >&5
4216 echo "${ECHO_T}yes" >&6; }
4217           elif test "$wxUSE_REGEX" = no; then
4218             { echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6; }
4220           elif test "$wxUSE_REGEX" = sys; then
4221             { echo "$as_me:$LINENO: result: system version" >&5
4222 echo "${ECHO_T}system version" >&6; }
4223           elif test "$wxUSE_REGEX" = builtin; then
4224             { echo "$as_me:$LINENO: result: builtin version" >&5
4225 echo "${ECHO_T}builtin version" >&6; }
4226           else
4227             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4228 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4229    { (exit 1); exit 1; }; }
4230           fi
4231
4232
4233           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4234 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4235
4236 # Check whether --with-zlib was given.
4237 if test "${with_zlib+set}" = set; then
4238   withval=$with_zlib;
4239                         if test "$withval" = yes; then
4240                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4241                         elif test "$withval" = no; then
4242                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4243                         elif test "$withval" = sys; then
4244                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4245                         elif test "$withval" = builtin; then
4246                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4247                         else
4248                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4249 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4250    { (exit 1); exit 1; }; }
4251                         fi
4252                         cache=yes
4253
4254 else
4255
4256                         cache=no
4257                         LINE=`grep "^wxUSE_ZLIB=" ${wx_arg_cache_file}`
4258                         if test "x$LINE" != x ; then
4259                           eval "DEFAULT_$LINE"
4260                         fi
4261
4262                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4263
4264 fi
4265
4266
4267           eval "$wx_cv_use_zlib"
4268           if test "x$cache" = xyes; then
4269             echo "wxUSE_ZLIB=$wxUSE_ZLIB" >> ${wx_arg_cache_file}.tmp
4270           fi
4271
4272           if test "$wxUSE_ZLIB" = yes; then
4273             { echo "$as_me:$LINENO: result: yes" >&5
4274 echo "${ECHO_T}yes" >&6; }
4275           elif test "$wxUSE_ZLIB" = no; then
4276             { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4278           elif test "$wxUSE_ZLIB" = sys; then
4279             { echo "$as_me:$LINENO: result: system version" >&5
4280 echo "${ECHO_T}system version" >&6; }
4281           elif test "$wxUSE_ZLIB" = builtin; then
4282             { echo "$as_me:$LINENO: result: builtin version" >&5
4283 echo "${ECHO_T}builtin version" >&6; }
4284           else
4285             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4286 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4287    { (exit 1); exit 1; }; }
4288           fi
4289
4290
4291           { echo "$as_me:$LINENO: checking for --with-odbc" >&5
4292 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6; }
4293
4294 # Check whether --with-odbc was given.
4295 if test "${with_odbc+set}" = set; then
4296   withval=$with_odbc;
4297                         if test "$withval" = yes; then
4298                           wx_cv_use_odbc='wxUSE_ODBC=yes'
4299                         elif test "$withval" = no; then
4300                           wx_cv_use_odbc='wxUSE_ODBC=no'
4301                         elif test "$withval" = sys; then
4302                           wx_cv_use_odbc='wxUSE_ODBC=sys'
4303                         elif test "$withval" = builtin; then
4304                           wx_cv_use_odbc='wxUSE_ODBC=builtin'
4305                         else
4306                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4307 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4308    { (exit 1); exit 1; }; }
4309                         fi
4310                         cache=yes
4311
4312 else
4313
4314                         cache=no
4315                         LINE=`grep "^wxUSE_ODBC=" ${wx_arg_cache_file}`
4316                         if test "x$LINE" != x ; then
4317                           eval "DEFAULT_$LINE"
4318                         fi
4319
4320                         wx_cv_use_odbc='wxUSE_ODBC=${'DEFAULT_wxUSE_ODBC":-$wxUSE_ALL_FEATURES}"
4321
4322 fi
4323
4324
4325           eval "$wx_cv_use_odbc"
4326           if test "x$cache" = xyes; then
4327             echo "wxUSE_ODBC=$wxUSE_ODBC" >> ${wx_arg_cache_file}.tmp
4328           fi
4329
4330           if test "$wxUSE_ODBC" = yes; then
4331             { echo "$as_me:$LINENO: result: yes" >&5
4332 echo "${ECHO_T}yes" >&6; }
4333           elif test "$wxUSE_ODBC" = no; then
4334             { echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6; }
4336           elif test "$wxUSE_ODBC" = sys; then
4337             { echo "$as_me:$LINENO: result: system version" >&5
4338 echo "${ECHO_T}system version" >&6; }
4339           elif test "$wxUSE_ODBC" = builtin; then
4340             { echo "$as_me:$LINENO: result: builtin version" >&5
4341 echo "${ECHO_T}builtin version" >&6; }
4342           else
4343             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4344 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4345    { (exit 1); exit 1; }; }
4346           fi
4347
4348
4349           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4350 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4351
4352 # Check whether --with-expat was given.
4353 if test "${with_expat+set}" = set; then
4354   withval=$with_expat;
4355                         if test "$withval" = yes; then
4356                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4357                         elif test "$withval" = no; then
4358                           wx_cv_use_expat='wxUSE_EXPAT=no'
4359                         elif test "$withval" = sys; then
4360                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4361                         elif test "$withval" = builtin; then
4362                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4363                         else
4364                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4365 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4366    { (exit 1); exit 1; }; }
4367                         fi
4368                         cache=yes
4369
4370 else
4371
4372                         cache=no
4373                         LINE=`grep "^wxUSE_EXPAT=" ${wx_arg_cache_file}`
4374                         if test "x$LINE" != x ; then
4375                           eval "DEFAULT_$LINE"
4376                         fi
4377
4378                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4379
4380 fi
4381
4382
4383           eval "$wx_cv_use_expat"
4384           if test "x$cache" = xyes; then
4385             echo "wxUSE_EXPAT=$wxUSE_EXPAT" >> ${wx_arg_cache_file}.tmp
4386           fi
4387
4388           if test "$wxUSE_EXPAT" = yes; then
4389             { echo "$as_me:$LINENO: result: yes" >&5
4390 echo "${ECHO_T}yes" >&6; }
4391           elif test "$wxUSE_EXPAT" = no; then
4392             { echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6; }
4394           elif test "$wxUSE_EXPAT" = sys; then
4395             { echo "$as_me:$LINENO: result: system version" >&5
4396 echo "${ECHO_T}system version" >&6; }
4397           elif test "$wxUSE_EXPAT" = builtin; then
4398             { echo "$as_me:$LINENO: result: builtin version" >&5
4399 echo "${ECHO_T}builtin version" >&6; }
4400           else
4401             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4402 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4403    { (exit 1); exit 1; }; }
4404           fi
4405
4406
4407 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4408 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4409
4410 # Check whether --with-macosx-sdk was given.
4411 if test "${with_macosx_sdk+set}" = set; then
4412   withval=$with_macosx_sdk;
4413         wxUSE_MACOSX_SDK=$withval
4414         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4415         echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp
4416
4417 else
4418
4419         # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no)
4420         # will override --enable-universal_binary's automatic SDK usage.
4421         wxUSE_MACOSX_SDK=
4422         LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}`
4423         if test "x$LINE" != x ; then
4424             eval "$LINE"
4425             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4426         fi
4427
4428 fi
4429
4430 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4431 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4432
4433 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4434 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4435
4436 # Check whether --with-macosx-version-min was given.
4437 if test "${with_macosx_version_min+set}" = set; then
4438   withval=$with_macosx_version_min;
4439         wxUSE_MACOSX_VERSION_MIN=$withval
4440         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4441         echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp
4442
4443 else
4444
4445         # default "yes" because when not using an SDK it means the same as no
4446         # but when using an SDK it means to use the SDK version
4447         wxUSE_MACOSX_VERSION_MIN=yes
4448         # See if there is a value in the cache
4449         LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}`
4450         if test "x$LINE" != x ; then
4451             eval "$LINE"
4452             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4453         fi
4454
4455 fi
4456
4457 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4458 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4459
4460
4461
4462           enablestring=disable
4463           defaultval=
4464           if test -z "$defaultval"; then
4465               if test x"$enablestring" = xdisable; then
4466                   defaultval=yes
4467               else
4468                   defaultval=no
4469               fi
4470           fi
4471
4472           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4473 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4474           # Check whether --enable-shared was given.
4475 if test "${enable_shared+set}" = set; then
4476   enableval=$enable_shared;
4477                           if test "$enableval" = yes; then
4478                             wx_cv_use_shared='wxUSE_SHARED=yes'
4479                           else
4480                             wx_cv_use_shared='wxUSE_SHARED=no'
4481                           fi
4482                           cache=yes
4483
4484 else
4485
4486                           cache=no
4487                           LINE=`grep "^wxUSE_SHARED=" ${wx_arg_cache_file}`
4488                           if test "x$LINE" != x ; then
4489                             eval "DEFAULT_$LINE"
4490                           fi
4491
4492                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4493
4494 fi
4495
4496
4497           eval "$wx_cv_use_shared"
4498           if test "x$cache" = xyes; then
4499             echo "wxUSE_SHARED=$wxUSE_SHARED" >> ${wx_arg_cache_file}.tmp
4500           fi
4501
4502           if test x"$enablestring" = xdisable; then
4503             if test $wxUSE_SHARED = yes; then
4504               result=no
4505             else
4506               result=yes
4507             fi
4508           else
4509             result=$wxUSE_SHARED
4510           fi
4511
4512           { echo "$as_me:$LINENO: result: $result" >&5
4513 echo "${ECHO_T}$result" >&6; }
4514
4515
4516           enablestring=disable
4517           defaultval=
4518           if test -z "$defaultval"; then
4519               if test x"$enablestring" = xdisable; then
4520                   defaultval=yes
4521               else
4522                   defaultval=no
4523               fi
4524           fi
4525
4526           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4527 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4528           # Check whether --enable-optimise was given.
4529 if test "${enable_optimise+set}" = set; then
4530   enableval=$enable_optimise;
4531                           if test "$enableval" = yes; then
4532                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4533                           else
4534                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4535                           fi
4536                           cache=yes
4537
4538 else
4539
4540                           cache=no
4541                           LINE=`grep "^wxUSE_OPTIMISE=" ${wx_arg_cache_file}`
4542                           if test "x$LINE" != x ; then
4543                             eval "DEFAULT_$LINE"
4544                           fi
4545
4546                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4547
4548 fi
4549
4550
4551           eval "$wx_cv_use_optimise"
4552           if test "x$cache" = xyes; then
4553             echo "wxUSE_OPTIMISE=$wxUSE_OPTIMISE" >> ${wx_arg_cache_file}.tmp
4554           fi
4555
4556           if test x"$enablestring" = xdisable; then
4557             if test $wxUSE_OPTIMISE = yes; then
4558               result=no
4559             else
4560               result=yes
4561             fi
4562           else
4563             result=$wxUSE_OPTIMISE
4564           fi
4565
4566           { echo "$as_me:$LINENO: result: $result" >&5
4567 echo "${ECHO_T}$result" >&6; }
4568
4569
4570           enablestring=
4571           defaultval=
4572           if test -z "$defaultval"; then
4573               if test x"$enablestring" = xdisable; then
4574                   defaultval=yes
4575               else
4576                   defaultval=no
4577               fi
4578           fi
4579
4580           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4581 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4582           # Check whether --enable-debug was given.
4583 if test "${enable_debug+set}" = set; then
4584   enableval=$enable_debug;
4585                           if test "$enableval" = yes; then
4586                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4587                           else
4588                             wx_cv_use_debug='wxUSE_DEBUG=no'
4589                           fi
4590                           cache=yes
4591
4592 else
4593
4594                           cache=no
4595                           LINE=`grep "^wxUSE_DEBUG=" ${wx_arg_cache_file}`
4596                           if test "x$LINE" != x ; then
4597                             eval "DEFAULT_$LINE"
4598                           fi
4599
4600                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4601
4602 fi
4603
4604
4605           eval "$wx_cv_use_debug"
4606           if test "x$cache" = xyes; then
4607             echo "wxUSE_DEBUG=$wxUSE_DEBUG" >> ${wx_arg_cache_file}.tmp
4608           fi
4609
4610           if test x"$enablestring" = xdisable; then
4611             if test $wxUSE_DEBUG = yes; then
4612               result=no
4613             else
4614               result=yes
4615             fi
4616           else
4617             result=$wxUSE_DEBUG
4618           fi
4619
4620           { echo "$as_me:$LINENO: result: $result" >&5
4621 echo "${ECHO_T}$result" >&6; }
4622
4623
4624           enablestring=
4625           defaultval=
4626           if test -z "$defaultval"; then
4627               if test x"$enablestring" = xdisable; then
4628                   defaultval=yes
4629               else
4630                   defaultval=no
4631               fi
4632           fi
4633
4634           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4635 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4636           # Check whether --enable-stl was given.
4637 if test "${enable_stl+set}" = set; then
4638   enableval=$enable_stl;
4639                           if test "$enableval" = yes; then
4640                             wx_cv_use_stl='wxUSE_STL=yes'
4641                           else
4642                             wx_cv_use_stl='wxUSE_STL=no'
4643                           fi
4644                           cache=yes
4645
4646 else
4647
4648                           cache=no
4649                           LINE=`grep "^wxUSE_STL=" ${wx_arg_cache_file}`
4650                           if test "x$LINE" != x ; then
4651                             eval "DEFAULT_$LINE"
4652                           fi
4653
4654                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4655
4656 fi
4657
4658
4659           eval "$wx_cv_use_stl"
4660           if test "x$cache" = xyes; then
4661             echo "wxUSE_STL=$wxUSE_STL" >> ${wx_arg_cache_file}.tmp
4662           fi
4663
4664           if test x"$enablestring" = xdisable; then
4665             if test $wxUSE_STL = yes; then
4666               result=no
4667             else
4668               result=yes
4669             fi
4670           else
4671             result=$wxUSE_STL
4672           fi
4673
4674           { echo "$as_me:$LINENO: result: $result" >&5
4675 echo "${ECHO_T}$result" >&6; }
4676
4677
4678           enablestring=
4679           defaultval=
4680           if test -z "$defaultval"; then
4681               if test x"$enablestring" = xdisable; then
4682                   defaultval=yes
4683               else
4684                   defaultval=no
4685               fi
4686           fi
4687
4688           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4689 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4690           # Check whether --enable-std_iostreams was given.
4691 if test "${enable_std_iostreams+set}" = set; then
4692   enableval=$enable_std_iostreams;
4693                           if test "$enableval" = yes; then
4694                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4695                           else
4696                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4697                           fi
4698                           cache=yes
4699
4700 else
4701
4702                           cache=no
4703                           LINE=`grep "^wxUSE_STD_IOSTREAM=" ${wx_arg_cache_file}`
4704                           if test "x$LINE" != x ; then
4705                             eval "DEFAULT_$LINE"
4706                           fi
4707
4708                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4709
4710 fi
4711
4712
4713           eval "$wx_cv_use_std_iostreams"
4714           if test "x$cache" = xyes; then
4715             echo "wxUSE_STD_IOSTREAM=$wxUSE_STD_IOSTREAM" >> ${wx_arg_cache_file}.tmp
4716           fi
4717
4718           if test x"$enablestring" = xdisable; then
4719             if test $wxUSE_STD_IOSTREAM = yes; then
4720               result=no
4721             else
4722               result=yes
4723             fi
4724           else
4725             result=$wxUSE_STD_IOSTREAM
4726           fi
4727
4728           { echo "$as_me:$LINENO: result: $result" >&5
4729 echo "${ECHO_T}$result" >&6; }
4730
4731
4732           enablestring=
4733           defaultval=
4734           if test -z "$defaultval"; then
4735               if test x"$enablestring" = xdisable; then
4736                   defaultval=yes
4737               else
4738                   defaultval=no
4739               fi
4740           fi
4741
4742           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4743 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4744           # Check whether --enable-std_string was given.
4745 if test "${enable_std_string+set}" = set; then
4746   enableval=$enable_std_string;
4747                           if test "$enableval" = yes; then
4748                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4749                           else
4750                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4751                           fi
4752                           cache=yes
4753
4754 else
4755
4756                           cache=no
4757                           LINE=`grep "^wxUSE_STD_STRING=" ${wx_arg_cache_file}`
4758                           if test "x$LINE" != x ; then
4759                             eval "DEFAULT_$LINE"
4760                           fi
4761
4762                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4763
4764 fi
4765
4766
4767           eval "$wx_cv_use_std_string"
4768           if test "x$cache" = xyes; then
4769             echo "wxUSE_STD_STRING=$wxUSE_STD_STRING" >> ${wx_arg_cache_file}.tmp
4770           fi
4771
4772           if test x"$enablestring" = xdisable; then
4773             if test $wxUSE_STD_STRING = yes; then
4774               result=no
4775             else
4776               result=yes
4777             fi
4778           else
4779             result=$wxUSE_STD_STRING
4780           fi
4781
4782           { echo "$as_me:$LINENO: result: $result" >&5
4783 echo "${ECHO_T}$result" >&6; }
4784
4785
4786           enablestring=disable
4787           defaultval=
4788           if test -z "$defaultval"; then
4789               if test x"$enablestring" = xdisable; then
4790                   defaultval=yes
4791               else
4792                   defaultval=no
4793               fi
4794           fi
4795
4796           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4797 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4798           # Check whether --enable-unicode was given.
4799 if test "${enable_unicode+set}" = set; then
4800   enableval=$enable_unicode;
4801                           if test "$enableval" = yes; then
4802                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4803                           else
4804                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4805                           fi
4806                           cache=yes
4807
4808 else
4809
4810                           cache=no
4811                           LINE=`grep "^wxUSE_UNICODE=" ${wx_arg_cache_file}`
4812                           if test "x$LINE" != x ; then
4813                             eval "DEFAULT_$LINE"
4814                           fi
4815
4816                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4817
4818 fi
4819
4820
4821           eval "$wx_cv_use_unicode"
4822           if test "x$cache" = xyes; then
4823             echo "wxUSE_UNICODE=$wxUSE_UNICODE" >> ${wx_arg_cache_file}.tmp
4824           fi
4825
4826           if test x"$enablestring" = xdisable; then
4827             if test $wxUSE_UNICODE = yes; then
4828               result=no
4829             else
4830               result=yes
4831             fi
4832           else
4833             result=$wxUSE_UNICODE
4834           fi
4835
4836           { echo "$as_me:$LINENO: result: $result" >&5
4837 echo "${ECHO_T}$result" >&6; }
4838
4839
4840           enablestring=
4841           defaultval=
4842           if test -z "$defaultval"; then
4843               if test x"$enablestring" = xdisable; then
4844                   defaultval=yes
4845               else
4846                   defaultval=no
4847               fi
4848           fi
4849
4850           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4851 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4852           # Check whether --enable-mslu was given.
4853 if test "${enable_mslu+set}" = set; then
4854   enableval=$enable_mslu;
4855                           if test "$enableval" = yes; then
4856                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4857                           else
4858                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4859                           fi
4860                           cache=yes
4861
4862 else
4863
4864                           cache=no
4865                           LINE=`grep "^wxUSE_UNICODE_MSLU=" ${wx_arg_cache_file}`
4866                           if test "x$LINE" != x ; then
4867                             eval "DEFAULT_$LINE"
4868                           fi
4869
4870                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4871
4872 fi
4873
4874
4875           eval "$wx_cv_use_mslu"
4876           if test "x$cache" = xyes; then
4877             echo "wxUSE_UNICODE_MSLU=$wxUSE_UNICODE_MSLU" >> ${wx_arg_cache_file}.tmp
4878           fi
4879
4880           if test x"$enablestring" = xdisable; then
4881             if test $wxUSE_UNICODE_MSLU = yes; then
4882               result=no
4883             else
4884               result=yes
4885             fi
4886           else
4887             result=$wxUSE_UNICODE_MSLU
4888           fi
4889
4890           { echo "$as_me:$LINENO: result: $result" >&5
4891 echo "${ECHO_T}$result" >&6; }
4892
4893
4894           enablestring=
4895           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4896 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4897           # Check whether --enable-utf8 was given.
4898 if test "${enable_utf8+set}" = set; then
4899   enableval=$enable_utf8;
4900                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4901                           cache=yes
4902
4903 else
4904
4905                           cache=no
4906                           LINE=`grep "^wxUSE_UNICODE_UTF8=" ${wx_arg_cache_file}`
4907                           if test "x$LINE" != x ; then
4908                             eval "DEFAULT_$LINE"
4909                           fi
4910
4911                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4912
4913 fi
4914
4915
4916           eval "$wx_cv_use_utf8"
4917           if test "x$cache" = xyes; then
4918             echo "wxUSE_UNICODE_UTF8=$wxUSE_UNICODE_UTF8" >> ${wx_arg_cache_file}.tmp
4919           fi
4920
4921           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4922 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4923
4924
4925           enablestring=
4926           defaultval=
4927           if test -z "$defaultval"; then
4928               if test x"$enablestring" = xdisable; then
4929                   defaultval=yes
4930               else
4931                   defaultval=no
4932               fi
4933           fi
4934
4935           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4936 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4937           # Check whether --enable-utf8only was given.
4938 if test "${enable_utf8only+set}" = set; then
4939   enableval=$enable_utf8only;
4940                           if test "$enableval" = yes; then
4941                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4942                           else
4943                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4944                           fi
4945                           cache=yes
4946
4947 else
4948
4949                           cache=no
4950                           LINE=`grep "^wxUSE_UNICODE_UTF8_LOCALE=" ${wx_arg_cache_file}`
4951                           if test "x$LINE" != x ; then
4952                             eval "DEFAULT_$LINE"
4953                           fi
4954
4955                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4956
4957 fi
4958
4959
4960           eval "$wx_cv_use_utf8only"
4961           if test "x$cache" = xyes; then
4962             echo "wxUSE_UNICODE_UTF8_LOCALE=$wxUSE_UNICODE_UTF8_LOCALE" >> ${wx_arg_cache_file}.tmp
4963           fi
4964
4965           if test x"$enablestring" = xdisable; then
4966             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4967               result=no
4968             else
4969               result=yes
4970             fi
4971           else
4972             result=$wxUSE_UNICODE_UTF8_LOCALE
4973           fi
4974
4975           { echo "$as_me:$LINENO: result: $result" >&5
4976 echo "${ECHO_T}$result" >&6; }
4977
4978
4979           enablestring=
4980           defaultval=
4981           if test -z "$defaultval"; then
4982               if test x"$enablestring" = xdisable; then
4983                   defaultval=yes
4984               else
4985                   defaultval=no
4986               fi
4987           fi
4988
4989           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4990 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4991           # Check whether --enable-extended_rtti was given.
4992 if test "${enable_extended_rtti+set}" = set; then
4993   enableval=$enable_extended_rtti;
4994                           if test "$enableval" = yes; then
4995                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4996                           else
4997                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4998                           fi
4999                           cache=yes
5000
5001 else
5002
5003                           cache=no
5004                           LINE=`grep "^wxUSE_EXTENDED_RTTI=" ${wx_arg_cache_file}`
5005                           if test "x$LINE" != x ; then
5006                             eval "DEFAULT_$LINE"
5007                           fi
5008
5009                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5010
5011 fi
5012
5013
5014           eval "$wx_cv_use_extended_rtti"
5015           if test "x$cache" = xyes; then
5016             echo "wxUSE_EXTENDED_RTTI=$wxUSE_EXTENDED_RTTI" >> ${wx_arg_cache_file}.tmp
5017           fi
5018
5019           if test x"$enablestring" = xdisable; then
5020             if test $wxUSE_EXTENDED_RTTI = yes; then
5021               result=no
5022             else
5023               result=yes
5024             fi
5025           else
5026             result=$wxUSE_EXTENDED_RTTI
5027           fi
5028
5029           { echo "$as_me:$LINENO: result: $result" >&5
5030 echo "${ECHO_T}$result" >&6; }
5031
5032 if test "$USE_OS2" = "1"; then
5033     DEFAULT_wxUSE_OMF=no
5034
5035           enablestring=
5036           defaultval=
5037           if test -z "$defaultval"; then
5038               if test x"$enablestring" = xdisable; then
5039                   defaultval=yes
5040               else
5041                   defaultval=no
5042               fi
5043           fi
5044
5045           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5046 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5047           # Check whether --enable-omf was given.
5048 if test "${enable_omf+set}" = set; then
5049   enableval=$enable_omf;
5050                           if test "$enableval" = yes; then
5051                             wx_cv_use_omf='wxUSE_OMF=yes'
5052                           else
5053                             wx_cv_use_omf='wxUSE_OMF=no'
5054                           fi
5055                           cache=yes
5056
5057 else
5058
5059                           cache=no
5060                           LINE=`grep "^wxUSE_OMF=" ${wx_arg_cache_file}`
5061                           if test "x$LINE" != x ; then
5062                             eval "DEFAULT_$LINE"
5063                           fi
5064
5065                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5066
5067 fi
5068
5069
5070           eval "$wx_cv_use_omf"
5071           if test "x$cache" = xyes; then
5072             echo "wxUSE_OMF=$wxUSE_OMF" >> ${wx_arg_cache_file}.tmp
5073           fi
5074
5075           if test x"$enablestring" = xdisable; then
5076             if test $wxUSE_OMF = yes; then
5077               result=no
5078             else
5079               result=yes
5080             fi
5081           else
5082             result=$wxUSE_OMF
5083           fi
5084
5085           { echo "$as_me:$LINENO: result: $result" >&5
5086 echo "${ECHO_T}$result" >&6; }
5087
5088 fi
5089
5090 if test "$wxUSE_DEBUG" = "yes"; then
5091   DEFAULT_wxUSE_DEBUG_FLAG=yes
5092   DEFAULT_wxUSE_DEBUG_INFO=yes
5093   BUILD=debug
5094 elif test "$wxUSE_DEBUG" = "no"; then
5095   DEFAULT_wxUSE_DEBUG_FLAG=no
5096   DEFAULT_wxUSE_DEBUG_INFO=no
5097   BUILD=release
5098 fi
5099
5100
5101           enablestring=
5102           defaultval=
5103           if test -z "$defaultval"; then
5104               if test x"$enablestring" = xdisable; then
5105                   defaultval=yes
5106               else
5107                   defaultval=no
5108               fi
5109           fi
5110
5111           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
5112 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
5113           # Check whether --enable-debug_flag was given.
5114 if test "${enable_debug_flag+set}" = set; then
5115   enableval=$enable_debug_flag;
5116                           if test "$enableval" = yes; then
5117                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
5118                           else
5119                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
5120                           fi
5121                           cache=yes
5122
5123 else
5124
5125                           cache=no
5126                           LINE=`grep "^wxUSE_DEBUG_FLAG=" ${wx_arg_cache_file}`
5127                           if test "x$LINE" != x ; then
5128                             eval "DEFAULT_$LINE"
5129                           fi
5130
5131                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
5132
5133 fi
5134
5135
5136           eval "$wx_cv_use_debug_flag"
5137           if test "x$cache" = xyes; then
5138             echo "wxUSE_DEBUG_FLAG=$wxUSE_DEBUG_FLAG" >> ${wx_arg_cache_file}.tmp
5139           fi
5140
5141           if test x"$enablestring" = xdisable; then
5142             if test $wxUSE_DEBUG_FLAG = yes; then
5143               result=no
5144             else
5145               result=yes
5146             fi
5147           else
5148             result=$wxUSE_DEBUG_FLAG
5149           fi
5150
5151           { echo "$as_me:$LINENO: result: $result" >&5
5152 echo "${ECHO_T}$result" >&6; }
5153
5154
5155           enablestring=
5156           defaultval=
5157           if test -z "$defaultval"; then
5158               if test x"$enablestring" = xdisable; then
5159                   defaultval=yes
5160               else
5161                   defaultval=no
5162               fi
5163           fi
5164
5165           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
5166 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
5167           # Check whether --enable-debug_info was given.
5168 if test "${enable_debug_info+set}" = set; then
5169   enableval=$enable_debug_info;
5170                           if test "$enableval" = yes; then
5171                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
5172                           else
5173                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
5174                           fi
5175                           cache=yes
5176
5177 else
5178
5179                           cache=no
5180                           LINE=`grep "^wxUSE_DEBUG_INFO=" ${wx_arg_cache_file}`
5181                           if test "x$LINE" != x ; then
5182                             eval "DEFAULT_$LINE"
5183                           fi
5184
5185                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
5186
5187 fi
5188
5189
5190           eval "$wx_cv_use_debug_info"
5191           if test "x$cache" = xyes; then
5192             echo "wxUSE_DEBUG_INFO=$wxUSE_DEBUG_INFO" >> ${wx_arg_cache_file}.tmp
5193           fi
5194
5195           if test x"$enablestring" = xdisable; then
5196             if test $wxUSE_DEBUG_INFO = yes; then
5197               result=no
5198             else
5199               result=yes
5200             fi
5201           else
5202             result=$wxUSE_DEBUG_INFO
5203           fi
5204
5205           { echo "$as_me:$LINENO: result: $result" >&5
5206 echo "${ECHO_T}$result" >&6; }
5207
5208
5209           enablestring=
5210           defaultval=
5211           if test -z "$defaultval"; then
5212               if test x"$enablestring" = xdisable; then
5213                   defaultval=yes
5214               else
5215                   defaultval=no
5216               fi
5217           fi
5218
5219           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
5220 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
5221           # Check whether --enable-debug_gdb was given.
5222 if test "${enable_debug_gdb+set}" = set; then
5223   enableval=$enable_debug_gdb;
5224                           if test "$enableval" = yes; then
5225                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
5226                           else
5227                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
5228                           fi
5229                           cache=yes
5230
5231 else
5232
5233                           cache=no
5234                           LINE=`grep "^wxUSE_DEBUG_GDB=" ${wx_arg_cache_file}`
5235                           if test "x$LINE" != x ; then
5236                             eval "DEFAULT_$LINE"
5237                           fi
5238
5239                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
5240
5241 fi
5242
5243
5244           eval "$wx_cv_use_debug_gdb"
5245           if test "x$cache" = xyes; then
5246             echo "wxUSE_DEBUG_GDB=$wxUSE_DEBUG_GDB" >> ${wx_arg_cache_file}.tmp
5247           fi
5248
5249           if test x"$enablestring" = xdisable; then
5250             if test $wxUSE_DEBUG_GDB = yes; then
5251               result=no
5252             else
5253               result=yes
5254             fi
5255           else
5256             result=$wxUSE_DEBUG_GDB
5257           fi
5258
5259           { echo "$as_me:$LINENO: result: $result" >&5
5260 echo "${ECHO_T}$result" >&6; }
5261
5262
5263           enablestring=
5264           defaultval=
5265           if test -z "$defaultval"; then
5266               if test x"$enablestring" = xdisable; then
5267                   defaultval=yes
5268               else
5269                   defaultval=no
5270               fi
5271           fi
5272
5273           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5274 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5275           # Check whether --enable-debug_cntxt was given.
5276 if test "${enable_debug_cntxt+set}" = set; then
5277   enableval=$enable_debug_cntxt;
5278                           if test "$enableval" = yes; then
5279                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5280                           else
5281                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5282                           fi
5283                           cache=yes
5284
5285 else
5286
5287                           cache=no
5288                           LINE=`grep "^wxUSE_DEBUG_CONTEXT=" ${wx_arg_cache_file}`
5289                           if test "x$LINE" != x ; then
5290                             eval "DEFAULT_$LINE"
5291                           fi
5292
5293                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5294
5295 fi
5296
5297
5298           eval "$wx_cv_use_debug_cntxt"
5299           if test "x$cache" = xyes; then
5300             echo "wxUSE_DEBUG_CONTEXT=$wxUSE_DEBUG_CONTEXT" >> ${wx_arg_cache_file}.tmp
5301           fi
5302
5303           if test x"$enablestring" = xdisable; then
5304             if test $wxUSE_DEBUG_CONTEXT = yes; then
5305               result=no
5306             else
5307               result=yes
5308             fi
5309           else
5310             result=$wxUSE_DEBUG_CONTEXT
5311           fi
5312
5313           { echo "$as_me:$LINENO: result: $result" >&5
5314 echo "${ECHO_T}$result" >&6; }
5315
5316
5317           enablestring=
5318           defaultval=
5319           if test -z "$defaultval"; then
5320               if test x"$enablestring" = xdisable; then
5321                   defaultval=yes
5322               else
5323                   defaultval=no
5324               fi
5325           fi
5326
5327           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5328 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5329           # Check whether --enable-mem_tracing was given.
5330 if test "${enable_mem_tracing+set}" = set; then
5331   enableval=$enable_mem_tracing;
5332                           if test "$enableval" = yes; then
5333                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5334                           else
5335                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5336                           fi
5337                           cache=yes
5338
5339 else
5340
5341                           cache=no
5342                           LINE=`grep "^wxUSE_MEM_TRACING=" ${wx_arg_cache_file}`
5343                           if test "x$LINE" != x ; then
5344                             eval "DEFAULT_$LINE"
5345                           fi
5346
5347                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5348
5349 fi
5350
5351
5352           eval "$wx_cv_use_mem_tracing"
5353           if test "x$cache" = xyes; then
5354             echo "wxUSE_MEM_TRACING=$wxUSE_MEM_TRACING" >> ${wx_arg_cache_file}.tmp
5355           fi
5356
5357           if test x"$enablestring" = xdisable; then
5358             if test $wxUSE_MEM_TRACING = yes; then
5359               result=no
5360             else
5361               result=yes
5362             fi
5363           else
5364             result=$wxUSE_MEM_TRACING
5365           fi
5366
5367           { echo "$as_me:$LINENO: result: $result" >&5
5368 echo "${ECHO_T}$result" >&6; }
5369
5370
5371           enablestring=
5372           defaultval=
5373           if test -z "$defaultval"; then
5374               if test x"$enablestring" = xdisable; then
5375                   defaultval=yes
5376               else
5377                   defaultval=no
5378               fi
5379           fi
5380
5381           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5382 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5383           # Check whether --enable-profile was given.
5384 if test "${enable_profile+set}" = set; then
5385   enableval=$enable_profile;
5386                           if test "$enableval" = yes; then
5387                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5388                           else
5389                             wx_cv_use_profile='wxUSE_PROFILE=no'
5390                           fi
5391                           cache=yes
5392
5393 else
5394
5395                           cache=no
5396                           LINE=`grep "^wxUSE_PROFILE=" ${wx_arg_cache_file}`
5397                           if test "x$LINE" != x ; then
5398                             eval "DEFAULT_$LINE"
5399                           fi
5400
5401                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5402
5403 fi
5404
5405
5406           eval "$wx_cv_use_profile"
5407           if test "x$cache" = xyes; then
5408             echo "wxUSE_PROFILE=$wxUSE_PROFILE" >> ${wx_arg_cache_file}.tmp
5409           fi
5410
5411           if test x"$enablestring" = xdisable; then
5412             if test $wxUSE_PROFILE = yes; then
5413               result=no
5414             else
5415               result=yes
5416             fi
5417           else
5418             result=$wxUSE_PROFILE
5419           fi
5420
5421           { echo "$as_me:$LINENO: result: $result" >&5
5422 echo "${ECHO_T}$result" >&6; }
5423
5424
5425           enablestring=
5426           defaultval=
5427           if test -z "$defaultval"; then
5428               if test x"$enablestring" = xdisable; then
5429                   defaultval=yes
5430               else
5431                   defaultval=no
5432               fi
5433           fi
5434
5435           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5436 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5437           # Check whether --enable-no_rtti was given.
5438 if test "${enable_no_rtti+set}" = set; then
5439   enableval=$enable_no_rtti;
5440                           if test "$enableval" = yes; then
5441                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5442                           else
5443                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5444                           fi
5445                           cache=yes
5446
5447 else
5448
5449                           cache=no
5450                           LINE=`grep "^wxUSE_NO_RTTI=" ${wx_arg_cache_file}`
5451                           if test "x$LINE" != x ; then
5452                             eval "DEFAULT_$LINE"
5453                           fi
5454
5455                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5456
5457 fi
5458
5459
5460           eval "$wx_cv_use_no_rtti"
5461           if test "x$cache" = xyes; then
5462             echo "wxUSE_NO_RTTI=$wxUSE_NO_RTTI" >> ${wx_arg_cache_file}.tmp
5463           fi
5464
5465           if test x"$enablestring" = xdisable; then
5466             if test $wxUSE_NO_RTTI = yes; then
5467               result=no
5468             else
5469               result=yes
5470             fi
5471           else
5472             result=$wxUSE_NO_RTTI
5473           fi
5474
5475           { echo "$as_me:$LINENO: result: $result" >&5
5476 echo "${ECHO_T}$result" >&6; }
5477
5478
5479           enablestring=
5480           defaultval=
5481           if test -z "$defaultval"; then
5482               if test x"$enablestring" = xdisable; then
5483                   defaultval=yes
5484               else
5485                   defaultval=no
5486               fi
5487           fi
5488
5489           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5490 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5491           # Check whether --enable-no_exceptions was given.
5492 if test "${enable_no_exceptions+set}" = set; then
5493   enableval=$enable_no_exceptions;
5494                           if test "$enableval" = yes; then
5495                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5496                           else
5497                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5498                           fi
5499                           cache=yes
5500
5501 else
5502
5503                           cache=no
5504                           LINE=`grep "^wxUSE_NO_EXCEPTIONS=" ${wx_arg_cache_file}`
5505                           if test "x$LINE" != x ; then
5506                             eval "DEFAULT_$LINE"
5507                           fi
5508
5509                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5510
5511 fi
5512
5513
5514           eval "$wx_cv_use_no_exceptions"
5515           if test "x$cache" = xyes; then
5516             echo "wxUSE_NO_EXCEPTIONS=$wxUSE_NO_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
5517           fi
5518
5519           if test x"$enablestring" = xdisable; then
5520             if test $wxUSE_NO_EXCEPTIONS = yes; then
5521               result=no
5522             else
5523               result=yes
5524             fi
5525           else
5526             result=$wxUSE_NO_EXCEPTIONS
5527           fi
5528
5529           { echo "$as_me:$LINENO: result: $result" >&5
5530 echo "${ECHO_T}$result" >&6; }
5531
5532
5533           enablestring=
5534           defaultval=
5535           if test -z "$defaultval"; then
5536               if test x"$enablestring" = xdisable; then
5537                   defaultval=yes
5538               else
5539                   defaultval=no
5540               fi
5541           fi
5542
5543           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5544 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5545           # Check whether --enable-permissive was given.
5546 if test "${enable_permissive+set}" = set; then
5547   enableval=$enable_permissive;
5548                           if test "$enableval" = yes; then
5549                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5550                           else
5551                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5552                           fi
5553                           cache=yes
5554
5555 else
5556
5557                           cache=no
5558                           LINE=`grep "^wxUSE_PERMISSIVE=" ${wx_arg_cache_file}`
5559                           if test "x$LINE" != x ; then
5560                             eval "DEFAULT_$LINE"
5561                           fi
5562
5563                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5564
5565 fi
5566
5567
5568           eval "$wx_cv_use_permissive"
5569           if test "x$cache" = xyes; then
5570             echo "wxUSE_PERMISSIVE=$wxUSE_PERMISSIVE" >> ${wx_arg_cache_file}.tmp
5571           fi
5572
5573           if test x"$enablestring" = xdisable; then
5574             if test $wxUSE_PERMISSIVE = yes; then
5575               result=no
5576             else
5577               result=yes
5578             fi
5579           else
5580             result=$wxUSE_PERMISSIVE
5581           fi
5582
5583           { echo "$as_me:$LINENO: result: $result" >&5
5584 echo "${ECHO_T}$result" >&6; }
5585
5586
5587           enablestring=
5588           defaultval=
5589           if test -z "$defaultval"; then
5590               if test x"$enablestring" = xdisable; then
5591                   defaultval=yes
5592               else
5593                   defaultval=no
5594               fi
5595           fi
5596
5597           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5598 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5599           # Check whether --enable-no_deps was given.
5600 if test "${enable_no_deps+set}" = set; then
5601   enableval=$enable_no_deps;
5602                           if test "$enableval" = yes; then
5603                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5604                           else
5605                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5606                           fi
5607                           cache=yes
5608
5609 else
5610
5611                           cache=no
5612                           LINE=`grep "^wxUSE_NO_DEPS=" ${wx_arg_cache_file}`
5613                           if test "x$LINE" != x ; then
5614                             eval "DEFAULT_$LINE"
5615                           fi
5616
5617                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5618
5619 fi
5620
5621
5622           eval "$wx_cv_use_no_deps"
5623           if test "x$cache" = xyes; then
5624             echo "wxUSE_NO_DEPS=$wxUSE_NO_DEPS" >> ${wx_arg_cache_file}.tmp
5625           fi
5626
5627           if test x"$enablestring" = xdisable; then
5628             if test $wxUSE_NO_DEPS = yes; then
5629               result=no
5630             else
5631               result=yes
5632             fi
5633           else
5634             result=$wxUSE_NO_DEPS
5635           fi
5636
5637           { echo "$as_me:$LINENO: result: $result" >&5
5638 echo "${ECHO_T}$result" >&6; }
5639
5640
5641           enablestring=disable
5642           defaultval=
5643           if test -z "$defaultval"; then
5644               if test x"$enablestring" = xdisable; then
5645                   defaultval=yes
5646               else
5647                   defaultval=no
5648               fi
5649           fi
5650
5651           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5652 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5653           # Check whether --enable-vararg_macros was given.
5654 if test "${enable_vararg_macros+set}" = set; then
5655   enableval=$enable_vararg_macros;
5656                           if test "$enableval" = yes; then
5657                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5658                           else
5659                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5660                           fi
5661                           cache=yes
5662
5663 else
5664
5665                           cache=no
5666                           LINE=`grep "^wxUSE_VARARG_MACROS=" ${wx_arg_cache_file}`
5667                           if test "x$LINE" != x ; then
5668                             eval "DEFAULT_$LINE"
5669                           fi
5670
5671                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5672
5673 fi
5674
5675
5676           eval "$wx_cv_use_vararg_macros"
5677           if test "x$cache" = xyes; then
5678             echo "wxUSE_VARARG_MACROS=$wxUSE_VARARG_MACROS" >> ${wx_arg_cache_file}.tmp
5679           fi
5680
5681           if test x"$enablestring" = xdisable; then
5682             if test $wxUSE_VARARG_MACROS = yes; then
5683               result=no
5684             else
5685               result=yes
5686             fi
5687           else
5688             result=$wxUSE_VARARG_MACROS
5689           fi
5690
5691           { echo "$as_me:$LINENO: result: $result" >&5
5692 echo "${ECHO_T}$result" >&6; }
5693
5694
5695           enablestring=
5696           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5697 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5698           # Check whether --enable-universal_binary was given.
5699 if test "${enable_universal_binary+set}" = set; then
5700   enableval=$enable_universal_binary;
5701                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5702                           cache=yes
5703
5704 else
5705
5706                           cache=no
5707                           LINE=`grep "^wxUSE_UNIVERSAL_BINARY=" ${wx_arg_cache_file}`
5708                           if test "x$LINE" != x ; then
5709                             eval "DEFAULT_$LINE"
5710                           fi
5711
5712                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5713
5714 fi
5715
5716
5717           eval "$wx_cv_use_universal_binary"
5718           if test "x$cache" = xyes; then
5719             echo "wxUSE_UNIVERSAL_BINARY=$wxUSE_UNIVERSAL_BINARY" >> ${wx_arg_cache_file}.tmp
5720           fi
5721
5722           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5723 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5724
5725
5726
5727           enablestring=
5728           defaultval=
5729           if test -z "$defaultval"; then
5730               if test x"$enablestring" = xdisable; then
5731                   defaultval=yes
5732               else
5733                   defaultval=no
5734               fi
5735           fi
5736
5737           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5738 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5739           # Check whether --enable-compat26 was given.
5740 if test "${enable_compat26+set}" = set; then
5741   enableval=$enable_compat26;
5742                           if test "$enableval" = yes; then
5743                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5744                           else
5745                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5746                           fi
5747                           cache=yes
5748
5749 else
5750
5751                           cache=no
5752                           LINE=`grep "^WXWIN_COMPATIBILITY_2_6=" ${wx_arg_cache_file}`
5753                           if test "x$LINE" != x ; then
5754                             eval "DEFAULT_$LINE"
5755                           fi
5756
5757                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5758
5759 fi
5760
5761
5762           eval "$wx_cv_use_compat26"
5763           if test "x$cache" = xyes; then
5764             echo "WXWIN_COMPATIBILITY_2_6=$WXWIN_COMPATIBILITY_2_6" >> ${wx_arg_cache_file}.tmp
5765           fi
5766
5767           if test x"$enablestring" = xdisable; then
5768             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5769               result=no
5770             else
5771               result=yes
5772             fi
5773           else
5774             result=$WXWIN_COMPATIBILITY_2_6
5775           fi
5776
5777           { echo "$as_me:$LINENO: result: $result" >&5
5778 echo "${ECHO_T}$result" >&6; }
5779
5780
5781           enablestring=disable
5782           defaultval=
5783           if test -z "$defaultval"; then
5784               if test x"$enablestring" = xdisable; then
5785                   defaultval=yes
5786               else
5787                   defaultval=no
5788               fi
5789           fi
5790
5791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5792 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5793           # Check whether --enable-compat28 was given.
5794 if test "${enable_compat28+set}" = set; then
5795   enableval=$enable_compat28;
5796                           if test "$enableval" = yes; then
5797                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5798                           else
5799                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5800                           fi
5801                           cache=yes
5802
5803 else
5804
5805                           cache=no
5806                           LINE=`grep "^WXWIN_COMPATIBILITY_2_8=" ${wx_arg_cache_file}`
5807                           if test "x$LINE" != x ; then
5808                             eval "DEFAULT_$LINE"
5809                           fi
5810
5811                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5812
5813 fi
5814
5815
5816           eval "$wx_cv_use_compat28"
5817           if test "x$cache" = xyes; then
5818             echo "WXWIN_COMPATIBILITY_2_8=$WXWIN_COMPATIBILITY_2_8" >> ${wx_arg_cache_file}.tmp
5819           fi
5820
5821           if test x"$enablestring" = xdisable; then
5822             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5823               result=no
5824             else
5825               result=yes
5826             fi
5827           else
5828             result=$WXWIN_COMPATIBILITY_2_8
5829           fi
5830
5831           { echo "$as_me:$LINENO: result: $result" >&5
5832 echo "${ECHO_T}$result" >&6; }
5833
5834
5835
5836           enablestring=disable
5837           defaultval=
5838           if test -z "$defaultval"; then
5839               if test x"$enablestring" = xdisable; then
5840                   defaultval=yes
5841               else
5842                   defaultval=no
5843               fi
5844           fi
5845
5846           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5847 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5848           # Check whether --enable-rpath was given.
5849 if test "${enable_rpath+set}" = set; then
5850   enableval=$enable_rpath;
5851                           if test "$enableval" = yes; then
5852                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5853                           else
5854                             wx_cv_use_rpath='wxUSE_RPATH=no'
5855                           fi
5856                           cache=yes
5857
5858 else
5859
5860                           cache=no
5861                           LINE=`grep "^wxUSE_RPATH=" ${wx_arg_cache_file}`
5862                           if test "x$LINE" != x ; then
5863                             eval "DEFAULT_$LINE"
5864                           fi
5865
5866                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5867
5868 fi
5869
5870
5871           eval "$wx_cv_use_rpath"
5872           if test "x$cache" = xyes; then
5873             echo "wxUSE_RPATH=$wxUSE_RPATH" >> ${wx_arg_cache_file}.tmp
5874           fi
5875
5876           if test x"$enablestring" = xdisable; then
5877             if test $wxUSE_RPATH = yes; then
5878               result=no
5879             else
5880               result=yes
5881             fi
5882           else
5883             result=$wxUSE_RPATH
5884           fi
5885
5886           { echo "$as_me:$LINENO: result: $result" >&5
5887 echo "${ECHO_T}$result" >&6; }
5888
5889
5890
5891           enablestring=
5892           defaultval=
5893           if test -z "$defaultval"; then
5894               if test x"$enablestring" = xdisable; then
5895                   defaultval=yes
5896               else
5897                   defaultval=no
5898               fi
5899           fi
5900
5901           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5902 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5903           # Check whether --enable-objc_uniquifying was given.
5904 if test "${enable_objc_uniquifying+set}" = set; then
5905   enableval=$enable_objc_uniquifying;
5906                           if test "$enableval" = yes; then
5907                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5908                           else
5909                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5910                           fi
5911                           cache=yes
5912
5913 else
5914
5915                           cache=no
5916                           LINE=`grep "^wxUSE_OBJC_UNIQUIFYING=" ${wx_arg_cache_file}`
5917                           if test "x$LINE" != x ; then
5918                             eval "DEFAULT_$LINE"
5919                           fi
5920
5921                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5922
5923 fi
5924
5925
5926           eval "$wx_cv_use_objc_uniquifying"
5927           if test "x$cache" = xyes; then
5928             echo "wxUSE_OBJC_UNIQUIFYING=$wxUSE_OBJC_UNIQUIFYING" >> ${wx_arg_cache_file}.tmp
5929           fi
5930
5931           if test x"$enablestring" = xdisable; then
5932             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5933               result=no
5934             else
5935               result=yes
5936             fi
5937           else
5938             result=$wxUSE_OBJC_UNIQUIFYING
5939           fi
5940
5941           { echo "$as_me:$LINENO: result: $result" >&5
5942 echo "${ECHO_T}$result" >&6; }
5943
5944
5945
5946           enablestring=disable
5947           defaultval=
5948           if test -z "$defaultval"; then
5949               if test x"$enablestring" = xdisable; then
5950                   defaultval=yes
5951               else
5952                   defaultval=no
5953               fi
5954           fi
5955
5956           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5957 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5958           # Check whether --enable-visibility was given.
5959 if test "${enable_visibility+set}" = set; then
5960   enableval=$enable_visibility;
5961                           if test "$enableval" = yes; then
5962                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5963                           else
5964                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5965                           fi
5966                           cache=yes
5967
5968 else
5969
5970                           cache=no
5971                           LINE=`grep "^wxUSE_VISIBILITY=" ${wx_arg_cache_file}`
5972                           if test "x$LINE" != x ; then
5973                             eval "DEFAULT_$LINE"
5974                           fi
5975
5976                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5977
5978 fi
5979
5980
5981           eval "$wx_cv_use_visibility"
5982           if test "x$cache" = xyes; then
5983             echo "wxUSE_VISIBILITY=$wxUSE_VISIBILITY" >> ${wx_arg_cache_file}.tmp
5984           fi
5985
5986           if test x"$enablestring" = xdisable; then
5987             if test $wxUSE_VISIBILITY = yes; then
5988               result=no
5989             else
5990               result=yes
5991             fi
5992           else
5993             result=$wxUSE_VISIBILITY
5994           fi
5995
5996           { echo "$as_me:$LINENO: result: $result" >&5
5997 echo "${ECHO_T}$result" >&6; }
5998
5999
6000
6001
6002           enablestring=
6003           defaultval=$wxUSE_ALL_FEATURES
6004           if test -z "$defaultval"; then
6005               if test x"$enablestring" = xdisable; then
6006                   defaultval=yes
6007               else
6008                   defaultval=no
6009               fi
6010           fi
6011
6012           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
6013 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
6014           # Check whether --enable-intl was given.
6015 if test "${enable_intl+set}" = set; then
6016   enableval=$enable_intl;
6017                           if test "$enableval" = yes; then
6018                             wx_cv_use_intl='wxUSE_INTL=yes'
6019                           else
6020                             wx_cv_use_intl='wxUSE_INTL=no'
6021                           fi
6022                           cache=yes
6023
6024 else
6025
6026                           cache=no
6027                           LINE=`grep "^wxUSE_INTL=" ${wx_arg_cache_file}`
6028                           if test "x$LINE" != x ; then
6029                             eval "DEFAULT_$LINE"
6030                           fi
6031
6032                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
6033
6034 fi
6035
6036
6037           eval "$wx_cv_use_intl"
6038           if test "x$cache" = xyes; then
6039             echo "wxUSE_INTL=$wxUSE_INTL" >> ${wx_arg_cache_file}.tmp
6040           fi
6041
6042           if test x"$enablestring" = xdisable; then
6043             if test $wxUSE_INTL = yes; then
6044               result=no
6045             else
6046               result=yes
6047             fi
6048           else
6049             result=$wxUSE_INTL
6050           fi
6051
6052           { echo "$as_me:$LINENO: result: $result" >&5
6053 echo "${ECHO_T}$result" >&6; }
6054
6055
6056           enablestring=
6057           defaultval=$wxUSE_ALL_FEATURES
6058           if test -z "$defaultval"; then
6059               if test x"$enablestring" = xdisable; then
6060                   defaultval=yes
6061               else
6062                   defaultval=no
6063               fi
6064           fi
6065
6066           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
6067 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
6068           # Check whether --enable-config was given.
6069 if test "${enable_config+set}" = set; then
6070   enableval=$enable_config;
6071                           if test "$enableval" = yes; then
6072                             wx_cv_use_config='wxUSE_CONFIG=yes'
6073                           else
6074                             wx_cv_use_config='wxUSE_CONFIG=no'
6075                           fi
6076                           cache=yes
6077
6078 else
6079
6080                           cache=no
6081                           LINE=`grep "^wxUSE_CONFIG=" ${wx_arg_cache_file}`
6082                           if test "x$LINE" != x ; then
6083                             eval "DEFAULT_$LINE"
6084                           fi
6085
6086                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
6087
6088 fi
6089
6090
6091           eval "$wx_cv_use_config"
6092           if test "x$cache" = xyes; then
6093             echo "wxUSE_CONFIG=$wxUSE_CONFIG" >> ${wx_arg_cache_file}.tmp
6094           fi
6095
6096           if test x"$enablestring" = xdisable; then
6097             if test $wxUSE_CONFIG = yes; then
6098               result=no
6099             else
6100               result=yes
6101             fi
6102           else
6103             result=$wxUSE_CONFIG
6104           fi
6105
6106           { echo "$as_me:$LINENO: result: $result" >&5
6107 echo "${ECHO_T}$result" >&6; }
6108
6109
6110
6111           enablestring=
6112           defaultval=$wxUSE_ALL_FEATURES
6113           if test -z "$defaultval"; then
6114               if test x"$enablestring" = xdisable; then
6115                   defaultval=yes
6116               else
6117                   defaultval=no
6118               fi
6119           fi
6120
6121           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6122 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6123           # Check whether --enable-protocols was given.
6124 if test "${enable_protocols+set}" = set; then
6125   enableval=$enable_protocols;
6126                           if test "$enableval" = yes; then
6127                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6128                           else
6129                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6130                           fi
6131                           cache=yes
6132
6133 else
6134
6135                           cache=no
6136                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
6137                           if test "x$LINE" != x ; then
6138                             eval "DEFAULT_$LINE"
6139                           fi
6140
6141                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6142
6143 fi
6144
6145
6146           eval "$wx_cv_use_protocols"
6147           if test "x$cache" = xyes; then
6148             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
6149           fi
6150
6151           if test x"$enablestring" = xdisable; then
6152             if test $wxUSE_PROTOCOL = yes; then
6153               result=no
6154             else
6155               result=yes
6156             fi
6157           else
6158             result=$wxUSE_PROTOCOL
6159           fi
6160
6161           { echo "$as_me:$LINENO: result: $result" >&5
6162 echo "${ECHO_T}$result" >&6; }
6163
6164
6165           enablestring=
6166           defaultval=$wxUSE_ALL_FEATURES
6167           if test -z "$defaultval"; then
6168               if test x"$enablestring" = xdisable; then
6169                   defaultval=yes
6170               else
6171                   defaultval=no
6172               fi
6173           fi
6174
6175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6176 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6177           # Check whether --enable-ftp was given.
6178 if test "${enable_ftp+set}" = set; then
6179   enableval=$enable_ftp;
6180                           if test "$enableval" = yes; then
6181                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6182                           else
6183                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6184                           fi
6185                           cache=yes
6186
6187 else
6188
6189                           cache=no
6190                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
6191                           if test "x$LINE" != x ; then
6192                             eval "DEFAULT_$LINE"
6193                           fi
6194
6195                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6196
6197 fi
6198
6199
6200           eval "$wx_cv_use_ftp"
6201           if test "x$cache" = xyes; then
6202             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
6203           fi
6204
6205           if test x"$enablestring" = xdisable; then
6206             if test $wxUSE_PROTOCOL_FTP = yes; then
6207               result=no
6208             else
6209               result=yes
6210             fi
6211           else
6212             result=$wxUSE_PROTOCOL_FTP
6213           fi
6214
6215           { echo "$as_me:$LINENO: result: $result" >&5
6216 echo "${ECHO_T}$result" >&6; }
6217
6218
6219           enablestring=
6220           defaultval=$wxUSE_ALL_FEATURES
6221           if test -z "$defaultval"; then
6222               if test x"$enablestring" = xdisable; then
6223                   defaultval=yes
6224               else
6225                   defaultval=no
6226               fi
6227           fi
6228
6229           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6230 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6231           # Check whether --enable-http was given.
6232 if test "${enable_http+set}" = set; then
6233   enableval=$enable_http;
6234                           if test "$enableval" = yes; then
6235                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6236                           else
6237                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6238                           fi
6239                           cache=yes
6240
6241 else
6242
6243                           cache=no
6244                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
6245                           if test "x$LINE" != x ; then
6246                             eval "DEFAULT_$LINE"
6247                           fi
6248
6249                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6250
6251 fi
6252
6253
6254           eval "$wx_cv_use_http"
6255           if test "x$cache" = xyes; then
6256             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
6257           fi
6258
6259           if test x"$enablestring" = xdisable; then
6260             if test $wxUSE_PROTOCOL_HTTP = yes; then
6261               result=no
6262             else
6263               result=yes
6264             fi
6265           else
6266             result=$wxUSE_PROTOCOL_HTTP
6267           fi
6268
6269           { echo "$as_me:$LINENO: result: $result" >&5
6270 echo "${ECHO_T}$result" >&6; }
6271
6272
6273           enablestring=
6274           defaultval=$wxUSE_ALL_FEATURES
6275           if test -z "$defaultval"; then
6276               if test x"$enablestring" = xdisable; then
6277                   defaultval=yes
6278               else
6279                   defaultval=no
6280               fi
6281           fi
6282
6283           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6284 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6285           # Check whether --enable-fileproto was given.
6286 if test "${enable_fileproto+set}" = set; then
6287   enableval=$enable_fileproto;
6288                           if test "$enableval" = yes; then
6289                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6290                           else
6291                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6292                           fi
6293                           cache=yes
6294
6295 else
6296
6297                           cache=no
6298                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
6299                           if test "x$LINE" != x ; then
6300                             eval "DEFAULT_$LINE"
6301                           fi
6302
6303                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6304
6305 fi
6306
6307
6308           eval "$wx_cv_use_fileproto"
6309           if test "x$cache" = xyes; then
6310             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
6311           fi
6312
6313           if test x"$enablestring" = xdisable; then
6314             if test $wxUSE_PROTOCOL_FILE = yes; then
6315               result=no
6316             else
6317               result=yes
6318             fi
6319           else
6320             result=$wxUSE_PROTOCOL_FILE
6321           fi
6322
6323           { echo "$as_me:$LINENO: result: $result" >&5
6324 echo "${ECHO_T}$result" >&6; }
6325
6326
6327           enablestring=
6328           defaultval=$wxUSE_ALL_FEATURES
6329           if test -z "$defaultval"; then
6330               if test x"$enablestring" = xdisable; then
6331                   defaultval=yes
6332               else
6333                   defaultval=no
6334               fi
6335           fi
6336
6337           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6338 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6339           # Check whether --enable-sockets was given.
6340 if test "${enable_sockets+set}" = set; then
6341   enableval=$enable_sockets;
6342                           if test "$enableval" = yes; then
6343                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6344                           else
6345                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6346                           fi
6347                           cache=yes
6348
6349 else
6350
6351                           cache=no
6352                           LINE=`grep "^wxUSE_SOCKETS=" ${wx_arg_cache_file}`
6353                           if test "x$LINE" != x ; then
6354                             eval "DEFAULT_$LINE"
6355                           fi
6356
6357                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6358
6359 fi
6360
6361
6362           eval "$wx_cv_use_sockets"
6363           if test "x$cache" = xyes; then
6364             echo "wxUSE_SOCKETS=$wxUSE_SOCKETS" >> ${wx_arg_cache_file}.tmp
6365           fi
6366
6367           if test x"$enablestring" = xdisable; then
6368             if test $wxUSE_SOCKETS = yes; then
6369               result=no
6370             else
6371               result=yes
6372             fi
6373           else
6374             result=$wxUSE_SOCKETS
6375           fi
6376
6377           { echo "$as_me:$LINENO: result: $result" >&5
6378 echo "${ECHO_T}$result" >&6; }
6379
6380
6381           enablestring=
6382           defaultval=$wxUSE_ALL_FEATURES
6383           if test -z "$defaultval"; then
6384               if test x"$enablestring" = xdisable; then
6385                   defaultval=yes
6386               else
6387                   defaultval=no
6388               fi
6389           fi
6390
6391           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6392 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6393           # Check whether --enable-ole was given.
6394 if test "${enable_ole+set}" = set; then
6395   enableval=$enable_ole;
6396                           if test "$enableval" = yes; then
6397                             wx_cv_use_ole='wxUSE_OLE=yes'
6398                           else
6399                             wx_cv_use_ole='wxUSE_OLE=no'
6400                           fi
6401                           cache=yes
6402
6403 else
6404
6405                           cache=no
6406                           LINE=`grep "^wxUSE_OLE=" ${wx_arg_cache_file}`
6407                           if test "x$LINE" != x ; then
6408                             eval "DEFAULT_$LINE"
6409                           fi
6410
6411                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6412
6413 fi
6414
6415
6416           eval "$wx_cv_use_ole"
6417           if test "x$cache" = xyes; then
6418             echo "wxUSE_OLE=$wxUSE_OLE" >> ${wx_arg_cache_file}.tmp
6419           fi
6420
6421           if test x"$enablestring" = xdisable; then
6422             if test $wxUSE_OLE = yes; then
6423               result=no
6424             else
6425               result=yes
6426             fi
6427           else
6428             result=$wxUSE_OLE
6429           fi
6430
6431           { echo "$as_me:$LINENO: result: $result" >&5
6432 echo "${ECHO_T}$result" >&6; }
6433
6434
6435           enablestring=
6436           defaultval=$wxUSE_ALL_FEATURES
6437           if test -z "$defaultval"; then
6438               if test x"$enablestring" = xdisable; then
6439                   defaultval=yes
6440               else
6441                   defaultval=no
6442               fi
6443           fi
6444
6445           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6446 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6447           # Check whether --enable-dataobj was given.
6448 if test "${enable_dataobj+set}" = set; then
6449   enableval=$enable_dataobj;
6450                           if test "$enableval" = yes; then
6451                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6452                           else
6453                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6454                           fi
6455                           cache=yes
6456
6457 else
6458
6459                           cache=no
6460                           LINE=`grep "^wxUSE_DATAOBJ=" ${wx_arg_cache_file}`
6461                           if test "x$LINE" != x ; then
6462                             eval "DEFAULT_$LINE"
6463                           fi
6464
6465                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6466
6467 fi
6468
6469
6470           eval "$wx_cv_use_dataobj"
6471           if test "x$cache" = xyes; then
6472             echo "wxUSE_DATAOBJ=$wxUSE_DATAOBJ" >> ${wx_arg_cache_file}.tmp
6473           fi
6474
6475           if test x"$enablestring" = xdisable; then
6476             if test $wxUSE_DATAOBJ = yes; then
6477               result=no
6478             else
6479               result=yes
6480             fi
6481           else
6482             result=$wxUSE_DATAOBJ
6483           fi
6484
6485           { echo "$as_me:$LINENO: result: $result" >&5
6486 echo "${ECHO_T}$result" >&6; }
6487
6488
6489
6490           enablestring=
6491           defaultval=$wxUSE_ALL_FEATURES
6492           if test -z "$defaultval"; then
6493               if test x"$enablestring" = xdisable; then
6494                   defaultval=yes
6495               else
6496                   defaultval=no
6497               fi
6498           fi
6499
6500           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6501 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6502           # Check whether --enable-ipc was given.
6503 if test "${enable_ipc+set}" = set; then
6504   enableval=$enable_ipc;
6505                           if test "$enableval" = yes; then
6506                             wx_cv_use_ipc='wxUSE_IPC=yes'
6507                           else
6508                             wx_cv_use_ipc='wxUSE_IPC=no'
6509                           fi
6510                           cache=yes
6511
6512 else
6513
6514                           cache=no
6515                           LINE=`grep "^wxUSE_IPC=" ${wx_arg_cache_file}`
6516                           if test "x$LINE" != x ; then
6517                             eval "DEFAULT_$LINE"
6518                           fi
6519
6520                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6521
6522 fi
6523
6524
6525           eval "$wx_cv_use_ipc"
6526           if test "x$cache" = xyes; then
6527             echo "wxUSE_IPC=$wxUSE_IPC" >> ${wx_arg_cache_file}.tmp
6528           fi
6529
6530           if test x"$enablestring" = xdisable; then
6531             if test $wxUSE_IPC = yes; then
6532               result=no
6533             else
6534               result=yes
6535             fi
6536           else
6537             result=$wxUSE_IPC
6538           fi
6539
6540           { echo "$as_me:$LINENO: result: $result" >&5
6541 echo "${ECHO_T}$result" >&6; }
6542
6543
6544
6545           enablestring=
6546           defaultval=$wxUSE_ALL_FEATURES
6547           if test -z "$defaultval"; then
6548               if test x"$enablestring" = xdisable; then
6549                   defaultval=yes
6550               else
6551                   defaultval=no
6552               fi
6553           fi
6554
6555           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6556 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6557           # Check whether --enable-baseevtloop was given.
6558 if test "${enable_baseevtloop+set}" = set; then
6559   enableval=$enable_baseevtloop;
6560                           if test "$enableval" = yes; then
6561                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6562                           else
6563                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6564                           fi
6565                           cache=yes
6566
6567 else
6568
6569                           cache=no
6570                           LINE=`grep "^wxUSE_CONSOLE_EVENTLOOP=" ${wx_arg_cache_file}`
6571                           if test "x$LINE" != x ; then
6572                             eval "DEFAULT_$LINE"
6573                           fi
6574
6575                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6576
6577 fi
6578
6579
6580           eval "$wx_cv_use_baseevtloop"
6581           if test "x$cache" = xyes; then
6582             echo "wxUSE_CONSOLE_EVENTLOOP=$wxUSE_CONSOLE_EVENTLOOP" >> ${wx_arg_cache_file}.tmp
6583           fi
6584
6585           if test x"$enablestring" = xdisable; then
6586             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6587               result=no
6588             else
6589               result=yes
6590             fi
6591           else
6592             result=$wxUSE_CONSOLE_EVENTLOOP
6593           fi
6594
6595           { echo "$as_me:$LINENO: result: $result" >&5
6596 echo "${ECHO_T}$result" >&6; }
6597
6598
6599           enablestring=
6600           defaultval=$wxUSE_ALL_FEATURES
6601           if test -z "$defaultval"; then
6602               if test x"$enablestring" = xdisable; then
6603                   defaultval=yes
6604               else
6605                   defaultval=no
6606               fi
6607           fi
6608
6609           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epoolloop" >&5
6610 echo $ECHO_N "checking for --${enablestring:-enable}-epoolloop... $ECHO_C" >&6; }
6611           # Check whether --enable-epoolloop was given.
6612 if test "${enable_epoolloop+set}" = set; then
6613   enableval=$enable_epoolloop;
6614                           if test "$enableval" = yes; then
6615                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=yes'
6616                           else
6617                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=no'
6618                           fi
6619                           cache=yes
6620
6621 else
6622
6623                           cache=no
6624                           LINE=`grep "^wxUSE_EPOLL_DISPATCHER=" ${wx_arg_cache_file}`
6625                           if test "x$LINE" != x ; then
6626                             eval "DEFAULT_$LINE"
6627                           fi
6628
6629                           wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6630
6631 fi
6632
6633
6634           eval "$wx_cv_use_epoolloop"
6635           if test "x$cache" = xyes; then
6636             echo "wxUSE_EPOLL_DISPATCHER=$wxUSE_EPOLL_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6637           fi
6638
6639           if test x"$enablestring" = xdisable; then
6640             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6641               result=no
6642             else
6643               result=yes
6644             fi
6645           else
6646             result=$wxUSE_EPOLL_DISPATCHER
6647           fi
6648
6649           { echo "$as_me:$LINENO: result: $result" >&5
6650 echo "${ECHO_T}$result" >&6; }
6651
6652
6653           enablestring=
6654           defaultval=$wxUSE_ALL_FEATURES
6655           if test -z "$defaultval"; then
6656               if test x"$enablestring" = xdisable; then
6657                   defaultval=yes
6658               else
6659                   defaultval=no
6660               fi
6661           fi
6662
6663           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6664 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6665           # Check whether --enable-selectloop was given.
6666 if test "${enable_selectloop+set}" = set; then
6667   enableval=$enable_selectloop;
6668                           if test "$enableval" = yes; then
6669                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6670                           else
6671                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6672                           fi
6673                           cache=yes
6674
6675 else
6676
6677                           cache=no
6678                           LINE=`grep "^wxUSE_SELECT_DISPATCHER=" ${wx_arg_cache_file}`
6679                           if test "x$LINE" != x ; then
6680                             eval "DEFAULT_$LINE"
6681                           fi
6682
6683                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6684
6685 fi
6686
6687
6688           eval "$wx_cv_use_selectloop"
6689           if test "x$cache" = xyes; then
6690             echo "wxUSE_SELECT_DISPATCHER=$wxUSE_SELECT_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6691           fi
6692
6693           if test x"$enablestring" = xdisable; then
6694             if test $wxUSE_SELECT_DISPATCHER = yes; then
6695               result=no
6696             else
6697               result=yes
6698             fi
6699           else
6700             result=$wxUSE_SELECT_DISPATCHER
6701           fi
6702
6703           { echo "$as_me:$LINENO: result: $result" >&5
6704 echo "${ECHO_T}$result" >&6; }
6705
6706
6707
6708           enablestring=
6709           defaultval=$wxUSE_ALL_FEATURES
6710           if test -z "$defaultval"; then
6711               if test x"$enablestring" = xdisable; then
6712                   defaultval=yes
6713               else
6714                   defaultval=no
6715               fi
6716           fi
6717
6718           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6719 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6720           # Check whether --enable-apple_ieee was given.
6721 if test "${enable_apple_ieee+set}" = set; then
6722   enableval=$enable_apple_ieee;
6723                           if test "$enableval" = yes; then
6724                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6725                           else
6726                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6727                           fi
6728                           cache=yes
6729
6730 else
6731
6732                           cache=no
6733                           LINE=`grep "^wxUSE_APPLE_IEEE=" ${wx_arg_cache_file}`
6734                           if test "x$LINE" != x ; then
6735                             eval "DEFAULT_$LINE"
6736                           fi
6737
6738                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6739
6740 fi
6741
6742
6743           eval "$wx_cv_use_apple_ieee"
6744           if test "x$cache" = xyes; then
6745             echo "wxUSE_APPLE_IEEE=$wxUSE_APPLE_IEEE" >> ${wx_arg_cache_file}.tmp
6746           fi
6747
6748           if test x"$enablestring" = xdisable; then
6749             if test $wxUSE_APPLE_IEEE = yes; then
6750               result=no
6751             else
6752               result=yes
6753             fi
6754           else
6755             result=$wxUSE_APPLE_IEEE
6756           fi
6757
6758           { echo "$as_me:$LINENO: result: $result" >&5
6759 echo "${ECHO_T}$result" >&6; }
6760
6761
6762           enablestring=
6763           defaultval=$wxUSE_ALL_FEATURES
6764           if test -z "$defaultval"; then
6765               if test x"$enablestring" = xdisable; then
6766                   defaultval=yes
6767               else
6768                   defaultval=no
6769               fi
6770           fi
6771
6772           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6773 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6774           # Check whether --enable-arcstream was given.
6775 if test "${enable_arcstream+set}" = set; then
6776   enableval=$enable_arcstream;
6777                           if test "$enableval" = yes; then
6778                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6779                           else
6780                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6781                           fi
6782                           cache=yes
6783
6784 else
6785
6786                           cache=no
6787                           LINE=`grep "^wxUSE_ARCHIVE_STREAMS=" ${wx_arg_cache_file}`
6788                           if test "x$LINE" != x ; then
6789                             eval "DEFAULT_$LINE"
6790                           fi
6791
6792                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6793
6794 fi
6795
6796
6797           eval "$wx_cv_use_arcstream"
6798           if test "x$cache" = xyes; then
6799             echo "wxUSE_ARCHIVE_STREAMS=$wxUSE_ARCHIVE_STREAMS" >> ${wx_arg_cache_file}.tmp
6800           fi
6801
6802           if test x"$enablestring" = xdisable; then
6803             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6804               result=no
6805             else
6806               result=yes
6807             fi
6808           else
6809             result=$wxUSE_ARCHIVE_STREAMS
6810           fi
6811
6812           { echo "$as_me:$LINENO: result: $result" >&5
6813 echo "${ECHO_T}$result" >&6; }
6814
6815
6816           enablestring=
6817           defaultval=$wxUSE_ALL_FEATURES
6818           if test -z "$defaultval"; then
6819               if test x"$enablestring" = xdisable; then
6820                   defaultval=yes
6821               else
6822                   defaultval=no
6823               fi
6824           fi
6825
6826           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6827 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6828           # Check whether --enable-base64 was given.
6829 if test "${enable_base64+set}" = set; then
6830   enableval=$enable_base64;
6831                           if test "$enableval" = yes; then
6832                             wx_cv_use_base64='wxUSE_BASE64=yes'
6833                           else
6834                             wx_cv_use_base64='wxUSE_BASE64=no'
6835                           fi
6836                           cache=yes
6837
6838 else
6839
6840                           cache=no
6841                           LINE=`grep "^wxUSE_BASE64=" ${wx_arg_cache_file}`
6842                           if test "x$LINE" != x ; then
6843                             eval "DEFAULT_$LINE"
6844                           fi
6845
6846                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6847
6848 fi
6849
6850
6851           eval "$wx_cv_use_base64"
6852           if test "x$cache" = xyes; then
6853             echo "wxUSE_BASE64=$wxUSE_BASE64" >> ${wx_arg_cache_file}.tmp
6854           fi
6855
6856           if test x"$enablestring" = xdisable; then
6857             if test $wxUSE_BASE64 = yes; then
6858               result=no
6859             else
6860               result=yes
6861             fi
6862           else
6863             result=$wxUSE_BASE64
6864           fi
6865
6866           { echo "$as_me:$LINENO: result: $result" >&5
6867 echo "${ECHO_T}$result" >&6; }
6868
6869
6870           enablestring=
6871           defaultval=$wxUSE_ALL_FEATURES
6872           if test -z "$defaultval"; then
6873               if test x"$enablestring" = xdisable; then
6874                   defaultval=yes
6875               else
6876                   defaultval=no
6877               fi
6878           fi
6879
6880           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6881 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6882           # Check whether --enable-backtrace was given.
6883 if test "${enable_backtrace+set}" = set; then
6884   enableval=$enable_backtrace;
6885                           if test "$enableval" = yes; then
6886                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6887                           else
6888                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6889                           fi
6890                           cache=yes
6891
6892 else
6893
6894                           cache=no
6895                           LINE=`grep "^wxUSE_STACKWALKER=" ${wx_arg_cache_file}`
6896                           if test "x$LINE" != x ; then
6897                             eval "DEFAULT_$LINE"
6898                           fi
6899
6900                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6901
6902 fi
6903
6904
6905           eval "$wx_cv_use_backtrace"
6906           if test "x$cache" = xyes; then
6907             echo "wxUSE_STACKWALKER=$wxUSE_STACKWALKER" >> ${wx_arg_cache_file}.tmp
6908           fi
6909
6910           if test x"$enablestring" = xdisable; then
6911             if test $wxUSE_STACKWALKER = yes; then
6912               result=no
6913             else
6914               result=yes
6915             fi
6916           else
6917             result=$wxUSE_STACKWALKER
6918           fi
6919
6920           { echo "$as_me:$LINENO: result: $result" >&5
6921 echo "${ECHO_T}$result" >&6; }
6922
6923
6924           enablestring=
6925           defaultval=$wxUSE_ALL_FEATURES
6926           if test -z "$defaultval"; then
6927               if test x"$enablestring" = xdisable; then
6928                   defaultval=yes
6929               else
6930                   defaultval=no
6931               fi
6932           fi
6933
6934           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6935 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6936           # Check whether --enable-catch_segvs was given.
6937 if test "${enable_catch_segvs+set}" = set; then
6938   enableval=$enable_catch_segvs;
6939                           if test "$enableval" = yes; then
6940                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6941                           else
6942                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6943                           fi
6944                           cache=yes
6945
6946 else
6947
6948                           cache=no
6949                           LINE=`grep "^wxUSE_ON_FATAL_EXCEPTION=" ${wx_arg_cache_file}`
6950                           if test "x$LINE" != x ; then
6951                             eval "DEFAULT_$LINE"
6952                           fi
6953
6954                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6955
6956 fi
6957
6958
6959           eval "$wx_cv_use_catch_segvs"
6960           if test "x$cache" = xyes; then
6961             echo "wxUSE_ON_FATAL_EXCEPTION=$wxUSE_ON_FATAL_EXCEPTION" >> ${wx_arg_cache_file}.tmp
6962           fi
6963
6964           if test x"$enablestring" = xdisable; then
6965             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6966               result=no
6967             else
6968               result=yes
6969             fi
6970           else
6971             result=$wxUSE_ON_FATAL_EXCEPTION
6972           fi
6973
6974           { echo "$as_me:$LINENO: result: $result" >&5
6975 echo "${ECHO_T}$result" >&6; }
6976
6977
6978           enablestring=
6979           defaultval=$wxUSE_ALL_FEATURES
6980           if test -z "$defaultval"; then
6981               if test x"$enablestring" = xdisable; then
6982                   defaultval=yes
6983               else
6984                   defaultval=no
6985               fi
6986           fi
6987
6988           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6989 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6990           # Check whether --enable-cmdline was given.
6991 if test "${enable_cmdline+set}" = set; then
6992   enableval=$enable_cmdline;
6993                           if test "$enableval" = yes; then
6994                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6995                           else
6996                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6997                           fi
6998                           cache=yes
6999
7000 else
7001
7002                           cache=no
7003                           LINE=`grep "^wxUSE_CMDLINE_PARSER=" ${wx_arg_cache_file}`
7004                           if test "x$LINE" != x ; then
7005                             eval "DEFAULT_$LINE"
7006                           fi
7007
7008                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
7009
7010 fi
7011
7012
7013           eval "$wx_cv_use_cmdline"
7014           if test "x$cache" = xyes; then
7015             echo "wxUSE_CMDLINE_PARSER=$wxUSE_CMDLINE_PARSER" >> ${wx_arg_cache_file}.tmp
7016           fi
7017
7018           if test x"$enablestring" = xdisable; then
7019             if test $wxUSE_CMDLINE_PARSER = yes; then
7020               result=no
7021             else
7022               result=yes
7023             fi
7024           else
7025             result=$wxUSE_CMDLINE_PARSER
7026           fi
7027
7028           { echo "$as_me:$LINENO: result: $result" >&5
7029 echo "${ECHO_T}$result" >&6; }
7030
7031
7032           enablestring=
7033           defaultval=$wxUSE_ALL_FEATURES
7034           if test -z "$defaultval"; then
7035               if test x"$enablestring" = xdisable; then
7036                   defaultval=yes
7037               else
7038                   defaultval=no
7039               fi
7040           fi
7041
7042           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
7043 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
7044           # Check whether --enable-datetime was given.
7045 if test "${enable_datetime+set}" = set; then
7046   enableval=$enable_datetime;
7047                           if test "$enableval" = yes; then
7048                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
7049                           else
7050                             wx_cv_use_datetime='wxUSE_DATETIME=no'
7051                           fi
7052                           cache=yes
7053
7054 else
7055
7056                           cache=no
7057                           LINE=`grep "^wxUSE_DATETIME=" ${wx_arg_cache_file}`
7058                           if test "x$LINE" != x ; then
7059                             eval "DEFAULT_$LINE"
7060                           fi
7061
7062                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
7063
7064 fi
7065
7066
7067           eval "$wx_cv_use_datetime"
7068           if test "x$cache" = xyes; then
7069             echo "wxUSE_DATETIME=$wxUSE_DATETIME" >> ${wx_arg_cache_file}.tmp
7070           fi
7071
7072           if test x"$enablestring" = xdisable; then
7073             if test $wxUSE_DATETIME = yes; then
7074               result=no
7075             else
7076               result=yes
7077             fi
7078           else
7079             result=$wxUSE_DATETIME
7080           fi
7081
7082           { echo "$as_me:$LINENO: result: $result" >&5
7083 echo "${ECHO_T}$result" >&6; }
7084
7085
7086           enablestring=
7087           defaultval=$wxUSE_ALL_FEATURES
7088           if test -z "$defaultval"; then
7089               if test x"$enablestring" = xdisable; then
7090                   defaultval=yes
7091               else
7092                   defaultval=no
7093               fi
7094           fi
7095
7096           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
7097 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
7098           # Check whether --enable-debugreport was given.
7099 if test "${enable_debugreport+set}" = set; then
7100   enableval=$enable_debugreport;
7101                           if test "$enableval" = yes; then
7102                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
7103                           else
7104                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
7105                           fi
7106                           cache=yes
7107
7108 else
7109
7110                           cache=no
7111                           LINE=`grep "^wxUSE_DEBUGREPORT=" ${wx_arg_cache_file}`
7112                           if test "x$LINE" != x ; then
7113                             eval "DEFAULT_$LINE"
7114                           fi
7115
7116                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
7117
7118 fi
7119
7120
7121           eval "$wx_cv_use_debugreport"
7122           if test "x$cache" = xyes; then
7123             echo "wxUSE_DEBUGREPORT=$wxUSE_DEBUGREPORT" >> ${wx_arg_cache_file}.tmp
7124           fi
7125
7126           if test x"$enablestring" = xdisable; then
7127             if test $wxUSE_DEBUGREPORT = yes; then
7128               result=no
7129             else
7130               result=yes
7131             fi
7132           else
7133             result=$wxUSE_DEBUGREPORT
7134           fi
7135
7136           { echo "$as_me:$LINENO: result: $result" >&5
7137 echo "${ECHO_T}$result" >&6; }
7138
7139
7140           enablestring=
7141           defaultval=$wxUSE_ALL_FEATURES
7142           if test -z "$defaultval"; then
7143               if test x"$enablestring" = xdisable; then
7144                   defaultval=yes
7145               else
7146                   defaultval=no
7147               fi
7148           fi
7149
7150           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
7151 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
7152           # Check whether --enable-dialupman was given.
7153 if test "${enable_dialupman+set}" = set; then
7154   enableval=$enable_dialupman;
7155                           if test "$enableval" = yes; then
7156                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
7157                           else
7158                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
7159                           fi
7160                           cache=yes
7161
7162 else
7163
7164                           cache=no
7165                           LINE=`grep "^wxUSE_DIALUP_MANAGER=" ${wx_arg_cache_file}`
7166                           if test "x$LINE" != x ; then
7167                             eval "DEFAULT_$LINE"
7168                           fi
7169
7170                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
7171
7172 fi
7173
7174
7175           eval "$wx_cv_use_dialupman"
7176           if test "x$cache" = xyes; then
7177             echo "wxUSE_DIALUP_MANAGER=$wxUSE_DIALUP_MANAGER" >> ${wx_arg_cache_file}.tmp
7178           fi
7179
7180           if test x"$enablestring" = xdisable; then
7181             if test $wxUSE_DIALUP_MANAGER = yes; then
7182               result=no
7183             else
7184               result=yes
7185             fi
7186           else
7187             result=$wxUSE_DIALUP_MANAGER
7188           fi
7189
7190           { echo "$as_me:$LINENO: result: $result" >&5
7191 echo "${ECHO_T}$result" >&6; }
7192
7193
7194           enablestring=
7195           defaultval=$wxUSE_ALL_FEATURES
7196           if test -z "$defaultval"; then
7197               if test x"$enablestring" = xdisable; then
7198                   defaultval=yes
7199               else
7200                   defaultval=no
7201               fi
7202           fi
7203
7204           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
7205 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
7206           # Check whether --enable-dynlib was given.
7207 if test "${enable_dynlib+set}" = set; then
7208   enableval=$enable_dynlib;
7209                           if test "$enableval" = yes; then
7210                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
7211                           else
7212                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7213                           fi
7214                           cache=yes
7215
7216 else
7217
7218                           cache=no
7219                           LINE=`grep "^wxUSE_DYNLIB_CLASS=" ${wx_arg_cache_file}`
7220                           if test "x$LINE" != x ; then
7221                             eval "DEFAULT_$LINE"
7222                           fi
7223
7224                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7225
7226 fi
7227
7228
7229           eval "$wx_cv_use_dynlib"
7230           if test "x$cache" = xyes; then
7231             echo "wxUSE_DYNLIB_CLASS=$wxUSE_DYNLIB_CLASS" >> ${wx_arg_cache_file}.tmp
7232           fi
7233
7234           if test x"$enablestring" = xdisable; then
7235             if test $wxUSE_DYNLIB_CLASS = yes; then
7236               result=no
7237             else
7238               result=yes
7239             fi
7240           else
7241             result=$wxUSE_DYNLIB_CLASS
7242           fi
7243
7244           { echo "$as_me:$LINENO: result: $result" >&5
7245 echo "${ECHO_T}$result" >&6; }
7246
7247
7248           enablestring=
7249           defaultval=$wxUSE_ALL_FEATURES
7250           if test -z "$defaultval"; then
7251               if test x"$enablestring" = xdisable; then
7252                   defaultval=yes
7253               else
7254                   defaultval=no
7255               fi
7256           fi
7257
7258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7259 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7260           # Check whether --enable-dynamicloader was given.
7261 if test "${enable_dynamicloader+set}" = set; then
7262   enableval=$enable_dynamicloader;
7263                           if test "$enableval" = yes; then
7264                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7265                           else
7266                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7267                           fi
7268                           cache=yes
7269
7270 else
7271
7272                           cache=no
7273                           LINE=`grep "^wxUSE_DYNAMIC_LOADER=" ${wx_arg_cache_file}`
7274                           if test "x$LINE" != x ; then
7275                             eval "DEFAULT_$LINE"
7276                           fi
7277
7278                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7279
7280 fi
7281
7282
7283           eval "$wx_cv_use_dynamicloader"
7284           if test "x$cache" = xyes; then
7285             echo "wxUSE_DYNAMIC_LOADER=$wxUSE_DYNAMIC_LOADER" >> ${wx_arg_cache_file}.tmp
7286           fi
7287
7288           if test x"$enablestring" = xdisable; then
7289             if test $wxUSE_DYNAMIC_LOADER = yes; then
7290               result=no
7291             else
7292               result=yes
7293             fi
7294           else
7295             result=$wxUSE_DYNAMIC_LOADER
7296           fi
7297
7298           { echo "$as_me:$LINENO: result: $result" >&5
7299 echo "${ECHO_T}$result" >&6; }
7300
7301
7302           enablestring=
7303           defaultval=$wxUSE_ALL_FEATURES
7304           if test -z "$defaultval"; then
7305               if test x"$enablestring" = xdisable; then
7306                   defaultval=yes
7307               else
7308                   defaultval=no
7309               fi
7310           fi
7311
7312           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7313 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7314           # Check whether --enable-exceptions was given.
7315 if test "${enable_exceptions+set}" = set; then
7316   enableval=$enable_exceptions;
7317                           if test "$enableval" = yes; then
7318                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7319                           else
7320                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7321                           fi
7322                           cache=yes
7323
7324 else
7325
7326                           cache=no
7327                           LINE=`grep "^wxUSE_EXCEPTIONS=" ${wx_arg_cache_file}`
7328                           if test "x$LINE" != x ; then
7329                             eval "DEFAULT_$LINE"
7330                           fi
7331
7332                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7333
7334 fi
7335
7336
7337           eval "$wx_cv_use_exceptions"
7338           if test "x$cache" = xyes; then
7339             echo "wxUSE_EXCEPTIONS=$wxUSE_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
7340           fi
7341
7342           if test x"$enablestring" = xdisable; then
7343             if test $wxUSE_EXCEPTIONS = yes; then
7344               result=no
7345             else
7346               result=yes
7347             fi
7348           else
7349             result=$wxUSE_EXCEPTIONS
7350           fi
7351
7352           { echo "$as_me:$LINENO: result: $result" >&5
7353 echo "${ECHO_T}$result" >&6; }
7354
7355
7356           enablestring=
7357           defaultval=$wxUSE_ALL_FEATURES
7358           if test -z "$defaultval"; then
7359               if test x"$enablestring" = xdisable; then
7360                   defaultval=yes
7361               else
7362                   defaultval=no
7363               fi
7364           fi
7365
7366           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7367 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7368           # Check whether --enable-ffile was given.
7369 if test "${enable_ffile+set}" = set; then
7370   enableval=$enable_ffile;
7371                           if test "$enableval" = yes; then
7372                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7373                           else
7374                             wx_cv_use_ffile='wxUSE_FFILE=no'
7375                           fi
7376                           cache=yes
7377
7378 else
7379
7380                           cache=no
7381                           LINE=`grep "^wxUSE_FFILE=" ${wx_arg_cache_file}`
7382                           if test "x$LINE" != x ; then
7383                             eval "DEFAULT_$LINE"
7384                           fi
7385
7386                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7387
7388 fi
7389
7390
7391           eval "$wx_cv_use_ffile"
7392           if test "x$cache" = xyes; then
7393             echo "wxUSE_FFILE=$wxUSE_FFILE" >> ${wx_arg_cache_file}.tmp
7394           fi
7395
7396           if test x"$enablestring" = xdisable; then
7397             if test $wxUSE_FFILE = yes; then
7398               result=no
7399             else
7400               result=yes
7401             fi
7402           else
7403             result=$wxUSE_FFILE
7404           fi
7405
7406           { echo "$as_me:$LINENO: result: $result" >&5
7407 echo "${ECHO_T}$result" >&6; }
7408
7409
7410           enablestring=
7411           defaultval=$wxUSE_ALL_FEATURES
7412           if test -z "$defaultval"; then
7413               if test x"$enablestring" = xdisable; then
7414                   defaultval=yes
7415               else
7416                   defaultval=no
7417               fi
7418           fi
7419
7420           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7421 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7422           # Check whether --enable-file was given.
7423 if test "${enable_file+set}" = set; then
7424   enableval=$enable_file;
7425                           if test "$enableval" = yes; then
7426                             wx_cv_use_file='wxUSE_FILE=yes'
7427                           else
7428                             wx_cv_use_file='wxUSE_FILE=no'
7429                           fi
7430                           cache=yes
7431
7432 else
7433
7434                           cache=no
7435                           LINE=`grep "^wxUSE_FILE=" ${wx_arg_cache_file}`
7436                           if test "x$LINE" != x ; then
7437                             eval "DEFAULT_$LINE"
7438                           fi
7439
7440                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7441
7442 fi
7443
7444
7445           eval "$wx_cv_use_file"
7446           if test "x$cache" = xyes; then
7447             echo "wxUSE_FILE=$wxUSE_FILE" >> ${wx_arg_cache_file}.tmp
7448           fi
7449
7450           if test x"$enablestring" = xdisable; then
7451             if test $wxUSE_FILE = yes; then
7452               result=no
7453             else
7454               result=yes
7455             fi
7456           else
7457             result=$wxUSE_FILE
7458           fi
7459
7460           { echo "$as_me:$LINENO: result: $result" >&5
7461 echo "${ECHO_T}$result" >&6; }
7462
7463
7464           enablestring=
7465           defaultval=$wxUSE_ALL_FEATURES
7466           if test -z "$defaultval"; then
7467               if test x"$enablestring" = xdisable; then
7468                   defaultval=yes
7469               else
7470                   defaultval=no
7471               fi
7472           fi
7473
7474           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7475 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7476           # Check whether --enable-filesystem was given.
7477 if test "${enable_filesystem+set}" = set; then
7478   enableval=$enable_filesystem;
7479                           if test "$enableval" = yes; then
7480                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7481                           else
7482                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7483                           fi
7484                           cache=yes
7485
7486 else
7487
7488                           cache=no
7489                           LINE=`grep "^wxUSE_FILESYSTEM=" ${wx_arg_cache_file}`
7490                           if test "x$LINE" != x ; then
7491                             eval "DEFAULT_$LINE"
7492                           fi
7493
7494                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7495
7496 fi
7497
7498
7499           eval "$wx_cv_use_filesystem"
7500           if test "x$cache" = xyes; then
7501             echo "wxUSE_FILESYSTEM=$wxUSE_FILESYSTEM" >> ${wx_arg_cache_file}.tmp
7502           fi
7503
7504           if test x"$enablestring" = xdisable; then
7505             if test $wxUSE_FILESYSTEM = yes; then
7506               result=no
7507             else
7508               result=yes
7509             fi
7510           else
7511             result=$wxUSE_FILESYSTEM
7512           fi
7513
7514           { echo "$as_me:$LINENO: result: $result" >&5
7515 echo "${ECHO_T}$result" >&6; }
7516
7517
7518           enablestring=
7519           defaultval=$wxUSE_ALL_FEATURES
7520           if test -z "$defaultval"; then
7521               if test x"$enablestring" = xdisable; then
7522                   defaultval=yes
7523               else
7524                   defaultval=no
7525               fi
7526           fi
7527
7528           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7529 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7530           # Check whether --enable-fontenum was given.
7531 if test "${enable_fontenum+set}" = set; then
7532   enableval=$enable_fontenum;
7533                           if test "$enableval" = yes; then
7534                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7535                           else
7536                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7537                           fi
7538                           cache=yes
7539
7540 else
7541
7542                           cache=no
7543                           LINE=`grep "^wxUSE_FONTENUM=" ${wx_arg_cache_file}`
7544                           if test "x$LINE" != x ; then
7545                             eval "DEFAULT_$LINE"
7546                           fi
7547
7548                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7549
7550 fi
7551
7552
7553           eval "$wx_cv_use_fontenum"
7554           if test "x$cache" = xyes; then
7555             echo "wxUSE_FONTENUM=$wxUSE_FONTENUM" >> ${wx_arg_cache_file}.tmp
7556           fi
7557
7558           if test x"$enablestring" = xdisable; then
7559             if test $wxUSE_FONTENUM = yes; then
7560               result=no
7561             else
7562               result=yes
7563             fi
7564           else
7565             result=$wxUSE_FONTENUM
7566           fi
7567
7568           { echo "$as_me:$LINENO: result: $result" >&5
7569 echo "${ECHO_T}$result" >&6; }
7570
7571
7572           enablestring=
7573           defaultval=$wxUSE_ALL_FEATURES
7574           if test -z "$defaultval"; then
7575               if test x"$enablestring" = xdisable; then
7576                   defaultval=yes
7577               else
7578                   defaultval=no
7579               fi
7580           fi
7581
7582           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7583 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7584           # Check whether --enable-fontmap was given.
7585 if test "${enable_fontmap+set}" = set; then
7586   enableval=$enable_fontmap;
7587                           if test "$enableval" = yes; then
7588                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7589                           else
7590                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7591                           fi
7592                           cache=yes
7593
7594 else
7595
7596                           cache=no
7597                           LINE=`grep "^wxUSE_FONTMAP=" ${wx_arg_cache_file}`
7598                           if test "x$LINE" != x ; then
7599                             eval "DEFAULT_$LINE"
7600                           fi
7601
7602                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7603
7604 fi
7605
7606
7607           eval "$wx_cv_use_fontmap"
7608           if test "x$cache" = xyes; then
7609             echo "wxUSE_FONTMAP=$wxUSE_FONTMAP" >> ${wx_arg_cache_file}.tmp
7610           fi
7611
7612           if test x"$enablestring" = xdisable; then
7613             if test $wxUSE_FONTMAP = yes; then
7614               result=no
7615             else
7616               result=yes
7617             fi
7618           else
7619             result=$wxUSE_FONTMAP
7620           fi
7621
7622           { echo "$as_me:$LINENO: result: $result" >&5
7623 echo "${ECHO_T}$result" >&6; }
7624
7625
7626           enablestring=
7627           defaultval=$wxUSE_ALL_FEATURES
7628           if test -z "$defaultval"; then
7629               if test x"$enablestring" = xdisable; then
7630                   defaultval=yes
7631               else
7632                   defaultval=no
7633               fi
7634           fi
7635
7636           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7637 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7638           # Check whether --enable-fs_archive was given.
7639 if test "${enable_fs_archive+set}" = set; then
7640   enableval=$enable_fs_archive;
7641                           if test "$enableval" = yes; then
7642                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7643                           else
7644                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7645                           fi
7646                           cache=yes
7647
7648 else
7649
7650                           cache=no
7651                           LINE=`grep "^wxUSE_FS_ARCHIVE=" ${wx_arg_cache_file}`
7652                           if test "x$LINE" != x ; then
7653                             eval "DEFAULT_$LINE"
7654                           fi
7655
7656                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7657
7658 fi
7659
7660
7661           eval "$wx_cv_use_fs_archive"
7662           if test "x$cache" = xyes; then
7663             echo "wxUSE_FS_ARCHIVE=$wxUSE_FS_ARCHIVE" >> ${wx_arg_cache_file}.tmp
7664           fi
7665
7666           if test x"$enablestring" = xdisable; then
7667             if test $wxUSE_FS_ARCHIVE = yes; then
7668               result=no
7669             else
7670               result=yes
7671             fi
7672           else
7673             result=$wxUSE_FS_ARCHIVE
7674           fi
7675
7676           { echo "$as_me:$LINENO: result: $result" >&5
7677 echo "${ECHO_T}$result" >&6; }
7678
7679
7680           enablestring=
7681           defaultval=$wxUSE_ALL_FEATURES
7682           if test -z "$defaultval"; then
7683               if test x"$enablestring" = xdisable; then
7684                   defaultval=yes
7685               else
7686                   defaultval=no
7687               fi
7688           fi
7689
7690           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7691 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7692           # Check whether --enable-fs_inet was given.
7693 if test "${enable_fs_inet+set}" = set; then
7694   enableval=$enable_fs_inet;
7695                           if test "$enableval" = yes; then
7696                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7697                           else
7698                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7699                           fi
7700                           cache=yes
7701
7702 else
7703
7704                           cache=no
7705                           LINE=`grep "^wxUSE_FS_INET=" ${wx_arg_cache_file}`
7706                           if test "x$LINE" != x ; then
7707                             eval "DEFAULT_$LINE"
7708                           fi
7709
7710                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7711
7712 fi
7713
7714
7715           eval "$wx_cv_use_fs_inet"
7716           if test "x$cache" = xyes; then
7717             echo "wxUSE_FS_INET=$wxUSE_FS_INET" >> ${wx_arg_cache_file}.tmp
7718           fi
7719
7720           if test x"$enablestring" = xdisable; then
7721             if test $wxUSE_FS_INET = yes; then
7722               result=no
7723             else
7724               result=yes
7725             fi
7726           else
7727             result=$wxUSE_FS_INET
7728           fi
7729
7730           { echo "$as_me:$LINENO: result: $result" >&5
7731 echo "${ECHO_T}$result" >&6; }
7732
7733
7734           enablestring=
7735           defaultval=$wxUSE_ALL_FEATURES
7736           if test -z "$defaultval"; then
7737               if test x"$enablestring" = xdisable; then
7738                   defaultval=yes
7739               else
7740                   defaultval=no
7741               fi
7742           fi
7743
7744           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7745 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7746           # Check whether --enable-fs_zip was given.
7747 if test "${enable_fs_zip+set}" = set; then
7748   enableval=$enable_fs_zip;
7749                           if test "$enableval" = yes; then
7750                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7751                           else
7752                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7753                           fi
7754                           cache=yes
7755
7756 else
7757
7758                           cache=no
7759                           LINE=`grep "^wxUSE_FS_ZIP=" ${wx_arg_cache_file}`
7760                           if test "x$LINE" != x ; then
7761                             eval "DEFAULT_$LINE"
7762                           fi
7763
7764                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7765
7766 fi
7767
7768
7769           eval "$wx_cv_use_fs_zip"
7770           if test "x$cache" = xyes; then
7771             echo "wxUSE_FS_ZIP=$wxUSE_FS_ZIP" >> ${wx_arg_cache_file}.tmp
7772           fi
7773
7774           if test x"$enablestring" = xdisable; then
7775             if test $wxUSE_FS_ZIP = yes; then
7776               result=no
7777             else
7778               result=yes
7779             fi
7780           else
7781             result=$wxUSE_FS_ZIP
7782           fi
7783
7784           { echo "$as_me:$LINENO: result: $result" >&5
7785 echo "${ECHO_T}$result" >&6; }
7786
7787
7788           enablestring=
7789           defaultval=$wxUSE_ALL_FEATURES
7790           if test -z "$defaultval"; then
7791               if test x"$enablestring" = xdisable; then
7792                   defaultval=yes
7793               else
7794                   defaultval=no
7795               fi
7796           fi
7797
7798           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7799 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7800           # Check whether --enable-geometry was given.
7801 if test "${enable_geometry+set}" = set; then
7802   enableval=$enable_geometry;
7803                           if test "$enableval" = yes; then
7804                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7805                           else
7806                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7807                           fi
7808                           cache=yes
7809
7810 else
7811
7812                           cache=no
7813                           LINE=`grep "^wxUSE_GEOMETRY=" ${wx_arg_cache_file}`
7814                           if test "x$LINE" != x ; then
7815                             eval "DEFAULT_$LINE"
7816                           fi
7817
7818                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7819
7820 fi
7821
7822
7823           eval "$wx_cv_use_geometry"
7824           if test "x$cache" = xyes; then
7825             echo "wxUSE_GEOMETRY=$wxUSE_GEOMETRY" >> ${wx_arg_cache_file}.tmp
7826           fi
7827
7828           if test x"$enablestring" = xdisable; then
7829             if test $wxUSE_GEOMETRY = yes; then
7830               result=no
7831             else
7832               result=yes
7833             fi
7834           else
7835             result=$wxUSE_GEOMETRY
7836           fi
7837
7838           { echo "$as_me:$LINENO: result: $result" >&5
7839 echo "${ECHO_T}$result" >&6; }
7840
7841
7842           enablestring=
7843           defaultval=$wxUSE_ALL_FEATURES
7844           if test -z "$defaultval"; then
7845               if test x"$enablestring" = xdisable; then
7846                   defaultval=yes
7847               else
7848                   defaultval=no
7849               fi
7850           fi
7851
7852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7853 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7854           # Check whether --enable-log was given.
7855 if test "${enable_log+set}" = set; then
7856   enableval=$enable_log;
7857                           if test "$enableval" = yes; then
7858                             wx_cv_use_log='wxUSE_LOG=yes'
7859                           else
7860                             wx_cv_use_log='wxUSE_LOG=no'
7861                           fi
7862                           cache=yes
7863
7864 else
7865
7866                           cache=no
7867                           LINE=`grep "^wxUSE_LOG=" ${wx_arg_cache_file}`
7868                           if test "x$LINE" != x ; then
7869                             eval "DEFAULT_$LINE"
7870                           fi
7871
7872                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7873
7874 fi
7875
7876
7877           eval "$wx_cv_use_log"
7878           if test "x$cache" = xyes; then
7879             echo "wxUSE_LOG=$wxUSE_LOG" >> ${wx_arg_cache_file}.tmp
7880           fi
7881
7882           if test x"$enablestring" = xdisable; then
7883             if test $wxUSE_LOG = yes; then
7884               result=no
7885             else
7886               result=yes
7887             fi
7888           else
7889             result=$wxUSE_LOG
7890           fi
7891
7892           { echo "$as_me:$LINENO: result: $result" >&5
7893 echo "${ECHO_T}$result" >&6; }
7894
7895
7896           enablestring=
7897           defaultval=$wxUSE_ALL_FEATURES
7898           if test -z "$defaultval"; then
7899               if test x"$enablestring" = xdisable; then
7900                   defaultval=yes
7901               else
7902                   defaultval=no
7903               fi
7904           fi
7905
7906           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7907 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7908           # Check whether --enable-longlong was given.
7909 if test "${enable_longlong+set}" = set; then
7910   enableval=$enable_longlong;
7911                           if test "$enableval" = yes; then
7912                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7913                           else
7914                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7915                           fi
7916                           cache=yes
7917
7918 else
7919
7920                           cache=no
7921                           LINE=`grep "^wxUSE_LONGLONG=" ${wx_arg_cache_file}`
7922                           if test "x$LINE" != x ; then
7923                             eval "DEFAULT_$LINE"
7924                           fi
7925
7926                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7927
7928 fi
7929
7930
7931           eval "$wx_cv_use_longlong"
7932           if test "x$cache" = xyes; then
7933             echo "wxUSE_LONGLONG=$wxUSE_LONGLONG" >> ${wx_arg_cache_file}.tmp
7934           fi
7935
7936           if test x"$enablestring" = xdisable; then
7937             if test $wxUSE_LONGLONG = yes; then
7938               result=no
7939             else
7940               result=yes
7941             fi
7942           else
7943             result=$wxUSE_LONGLONG
7944           fi
7945
7946           { echo "$as_me:$LINENO: result: $result" >&5
7947 echo "${ECHO_T}$result" >&6; }
7948
7949
7950           enablestring=
7951           defaultval=$wxUSE_ALL_FEATURES
7952           if test -z "$defaultval"; then
7953               if test x"$enablestring" = xdisable; then
7954                   defaultval=yes
7955               else
7956                   defaultval=no
7957               fi
7958           fi
7959
7960           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7961 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7962           # Check whether --enable-mimetype was given.
7963 if test "${enable_mimetype+set}" = set; then
7964   enableval=$enable_mimetype;
7965                           if test "$enableval" = yes; then
7966                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7967                           else
7968                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7969                           fi
7970                           cache=yes
7971
7972 else
7973
7974                           cache=no
7975                           LINE=`grep "^wxUSE_MIMETYPE=" ${wx_arg_cache_file}`
7976                           if test "x$LINE" != x ; then
7977                             eval "DEFAULT_$LINE"
7978                           fi
7979
7980                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7981
7982 fi
7983
7984
7985           eval "$wx_cv_use_mimetype"
7986           if test "x$cache" = xyes; then
7987             echo "wxUSE_MIMETYPE=$wxUSE_MIMETYPE" >> ${wx_arg_cache_file}.tmp
7988           fi
7989
7990           if test x"$enablestring" = xdisable; then
7991             if test $wxUSE_MIMETYPE = yes; then
7992               result=no
7993             else
7994               result=yes
7995             fi
7996           else
7997             result=$wxUSE_MIMETYPE
7998           fi
7999
8000           { echo "$as_me:$LINENO: result: $result" >&5
8001 echo "${ECHO_T}$result" >&6; }
8002
8003
8004           enablestring=
8005           defaultval=$wxUSE_ALL_FEATURES
8006           if test -z "$defaultval"; then
8007               if test x"$enablestring" = xdisable; then
8008                   defaultval=yes
8009               else
8010                   defaultval=no
8011               fi
8012           fi
8013
8014           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
8015 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
8016           # Check whether --enable-snglinst was given.
8017 if test "${enable_snglinst+set}" = set; then
8018   enableval=$enable_snglinst;
8019                           if test "$enableval" = yes; then
8020                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
8021                           else
8022                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
8023                           fi
8024                           cache=yes
8025
8026 else
8027
8028                           cache=no
8029                           LINE=`grep "^wxUSE_SNGLINST_CHECKER=" ${wx_arg_cache_file}`
8030                           if test "x$LINE" != x ; then
8031                             eval "DEFAULT_$LINE"
8032                           fi
8033
8034                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
8035
8036 fi
8037
8038
8039           eval "$wx_cv_use_snglinst"
8040           if test "x$cache" = xyes; then
8041             echo "wxUSE_SNGLINST_CHECKER=$wxUSE_SNGLINST_CHECKER" >> ${wx_arg_cache_file}.tmp
8042           fi
8043
8044           if test x"$enablestring" = xdisable; then
8045             if test $wxUSE_SNGLINST_CHECKER = yes; then
8046               result=no
8047             else
8048               result=yes
8049             fi
8050           else
8051             result=$wxUSE_SNGLINST_CHECKER
8052           fi
8053
8054           { echo "$as_me:$LINENO: result: $result" >&5
8055 echo "${ECHO_T}$result" >&6; }
8056
8057
8058           enablestring=
8059           defaultval=$wxUSE_ALL_FEATURES
8060           if test -z "$defaultval"; then
8061               if test x"$enablestring" = xdisable; then
8062                   defaultval=yes
8063               else
8064                   defaultval=no
8065               fi
8066           fi
8067
8068           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
8069 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
8070           # Check whether --enable-stdpaths was given.
8071 if test "${enable_stdpaths+set}" = set; then
8072   enableval=$enable_stdpaths;
8073                           if test "$enableval" = yes; then
8074                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
8075                           else
8076                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
8077                           fi
8078                           cache=yes
8079
8080 else
8081
8082                           cache=no
8083                           LINE=`grep "^wxUSE_STDPATHS=" ${wx_arg_cache_file}`
8084                           if test "x$LINE" != x ; then
8085                             eval "DEFAULT_$LINE"
8086                           fi
8087
8088                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
8089
8090 fi
8091
8092
8093           eval "$wx_cv_use_stdpaths"
8094           if test "x$cache" = xyes; then
8095             echo "wxUSE_STDPATHS=$wxUSE_STDPATHS" >> ${wx_arg_cache_file}.tmp
8096           fi
8097
8098           if test x"$enablestring" = xdisable; then
8099             if test $wxUSE_STDPATHS = yes; then
8100               result=no
8101             else
8102               result=yes
8103             fi
8104           else
8105             result=$wxUSE_STDPATHS
8106           fi
8107
8108           { echo "$as_me:$LINENO: result: $result" >&5
8109 echo "${ECHO_T}$result" >&6; }
8110
8111
8112           enablestring=
8113           defaultval=$wxUSE_ALL_FEATURES
8114           if test -z "$defaultval"; then
8115               if test x"$enablestring" = xdisable; then
8116                   defaultval=yes
8117               else
8118                   defaultval=no
8119               fi
8120           fi
8121
8122           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
8123 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
8124           # Check whether --enable-stopwatch was given.
8125 if test "${enable_stopwatch+set}" = set; then
8126   enableval=$enable_stopwatch;
8127                           if test "$enableval" = yes; then
8128                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
8129                           else
8130                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
8131                           fi
8132                           cache=yes
8133
8134 else
8135
8136                           cache=no
8137                           LINE=`grep "^wxUSE_STOPWATCH=" ${wx_arg_cache_file}`
8138                           if test "x$LINE" != x ; then
8139                             eval "DEFAULT_$LINE"
8140                           fi
8141
8142                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
8143
8144 fi
8145
8146
8147           eval "$wx_cv_use_stopwatch"
8148           if test "x$cache" = xyes; then
8149             echo "wxUSE_STOPWATCH=$wxUSE_STOPWATCH" >> ${wx_arg_cache_file}.tmp
8150           fi
8151
8152           if test x"$enablestring" = xdisable; then
8153             if test $wxUSE_STOPWATCH = yes; then
8154               result=no
8155             else
8156               result=yes
8157             fi
8158           else
8159             result=$wxUSE_STOPWATCH
8160           fi
8161
8162           { echo "$as_me:$LINENO: result: $result" >&5
8163 echo "${ECHO_T}$result" >&6; }
8164
8165
8166           enablestring=
8167           defaultval=$wxUSE_ALL_FEATURES
8168           if test -z "$defaultval"; then
8169               if test x"$enablestring" = xdisable; then
8170                   defaultval=yes
8171               else
8172                   defaultval=no
8173               fi
8174           fi
8175
8176           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
8177 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
8178           # Check whether --enable-streams was given.
8179 if test "${enable_streams+set}" = set; then
8180   enableval=$enable_streams;
8181                           if test "$enableval" = yes; then
8182                             wx_cv_use_streams='wxUSE_STREAMS=yes'
8183                           else
8184                             wx_cv_use_streams='wxUSE_STREAMS=no'
8185                           fi
8186                           cache=yes
8187
8188 else
8189
8190                           cache=no
8191                           LINE=`grep "^wxUSE_STREAMS=" ${wx_arg_cache_file}`
8192                           if test "x$LINE" != x ; then
8193                             eval "DEFAULT_$LINE"
8194                           fi
8195
8196                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
8197
8198 fi
8199
8200
8201           eval "$wx_cv_use_streams"
8202           if test "x$cache" = xyes; then
8203             echo "wxUSE_STREAMS=$wxUSE_STREAMS" >> ${wx_arg_cache_file}.tmp
8204           fi
8205
8206           if test x"$enablestring" = xdisable; then
8207             if test $wxUSE_STREAMS = yes; then
8208               result=no
8209             else
8210               result=yes
8211             fi
8212           else
8213             result=$wxUSE_STREAMS
8214           fi
8215
8216           { echo "$as_me:$LINENO: result: $result" >&5
8217 echo "${ECHO_T}$result" >&6; }
8218
8219
8220           enablestring=
8221           defaultval=$wxUSE_ALL_FEATURES
8222           if test -z "$defaultval"; then
8223               if test x"$enablestring" = xdisable; then
8224                   defaultval=yes
8225               else
8226                   defaultval=no
8227               fi
8228           fi
8229
8230           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
8231 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
8232           # Check whether --enable-system_options was given.
8233 if test "${enable_system_options+set}" = set; then
8234   enableval=$enable_system_options;
8235                           if test "$enableval" = yes; then
8236                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
8237                           else
8238                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
8239                           fi
8240                           cache=yes
8241
8242 else
8243
8244                           cache=no
8245                           LINE=`grep "^wxUSE_SYSTEM_OPTIONS=" ${wx_arg_cache_file}`
8246                           if test "x$LINE" != x ; then
8247                             eval "DEFAULT_$LINE"
8248                           fi
8249
8250                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
8251
8252 fi
8253
8254
8255           eval "$wx_cv_use_system_options"
8256           if test "x$cache" = xyes; then
8257             echo "wxUSE_SYSTEM_OPTIONS=$wxUSE_SYSTEM_OPTIONS" >> ${wx_arg_cache_file}.tmp
8258           fi
8259
8260           if test x"$enablestring" = xdisable; then
8261             if test $wxUSE_SYSTEM_OPTIONS = yes; then
8262               result=no
8263             else
8264               result=yes
8265             fi
8266           else
8267             result=$wxUSE_SYSTEM_OPTIONS
8268           fi
8269
8270           { echo "$as_me:$LINENO: result: $result" >&5
8271 echo "${ECHO_T}$result" >&6; }
8272
8273
8274           enablestring=
8275           defaultval=$wxUSE_ALL_FEATURES
8276           if test -z "$defaultval"; then
8277               if test x"$enablestring" = xdisable; then
8278                   defaultval=yes
8279               else
8280                   defaultval=no
8281               fi
8282           fi
8283
8284           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8285 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8286           # Check whether --enable-tarstream was given.
8287 if test "${enable_tarstream+set}" = set; then
8288   enableval=$enable_tarstream;
8289                           if test "$enableval" = yes; then
8290                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8291                           else
8292                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8293                           fi
8294                           cache=yes
8295
8296 else
8297
8298                           cache=no
8299                           LINE=`grep "^wxUSE_TARSTREAM=" ${wx_arg_cache_file}`
8300                           if test "x$LINE" != x ; then
8301                             eval "DEFAULT_$LINE"
8302                           fi
8303
8304                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8305
8306 fi
8307
8308
8309           eval "$wx_cv_use_tarstream"
8310           if test "x$cache" = xyes; then
8311             echo "wxUSE_TARSTREAM=$wxUSE_TARSTREAM" >> ${wx_arg_cache_file}.tmp
8312           fi
8313
8314           if test x"$enablestring" = xdisable; then
8315             if test $wxUSE_TARSTREAM = yes; then
8316               result=no
8317             else
8318               result=yes
8319             fi
8320           else
8321             result=$wxUSE_TARSTREAM
8322           fi
8323
8324           { echo "$as_me:$LINENO: result: $result" >&5
8325 echo "${ECHO_T}$result" >&6; }
8326
8327
8328           enablestring=
8329           defaultval=$wxUSE_ALL_FEATURES
8330           if test -z "$defaultval"; then
8331               if test x"$enablestring" = xdisable; then
8332                   defaultval=yes
8333               else
8334                   defaultval=no
8335               fi
8336           fi
8337
8338           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8339 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8340           # Check whether --enable-textbuf was given.
8341 if test "${enable_textbuf+set}" = set; then
8342   enableval=$enable_textbuf;
8343                           if test "$enableval" = yes; then
8344                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8345                           else
8346                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8347                           fi
8348                           cache=yes
8349
8350 else
8351
8352                           cache=no
8353                           LINE=`grep "^wxUSE_TEXTBUFFER=" ${wx_arg_cache_file}`
8354                           if test "x$LINE" != x ; then
8355                             eval "DEFAULT_$LINE"
8356                           fi
8357
8358                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8359
8360 fi
8361
8362
8363           eval "$wx_cv_use_textbuf"
8364           if test "x$cache" = xyes; then
8365             echo "wxUSE_TEXTBUFFER=$wxUSE_TEXTBUFFER" >> ${wx_arg_cache_file}.tmp
8366           fi
8367
8368           if test x"$enablestring" = xdisable; then
8369             if test $wxUSE_TEXTBUFFER = yes; then
8370               result=no
8371             else
8372               result=yes
8373             fi
8374           else
8375             result=$wxUSE_TEXTBUFFER
8376           fi
8377
8378           { echo "$as_me:$LINENO: result: $result" >&5
8379 echo "${ECHO_T}$result" >&6; }
8380
8381
8382           enablestring=
8383           defaultval=$wxUSE_ALL_FEATURES
8384           if test -z "$defaultval"; then
8385               if test x"$enablestring" = xdisable; then
8386                   defaultval=yes
8387               else
8388                   defaultval=no
8389               fi
8390           fi
8391
8392           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8393 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8394           # Check whether --enable-textfile was given.
8395 if test "${enable_textfile+set}" = set; then
8396   enableval=$enable_textfile;
8397                           if test "$enableval" = yes; then
8398                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8399                           else
8400                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8401                           fi
8402                           cache=yes
8403
8404 else
8405
8406                           cache=no
8407                           LINE=`grep "^wxUSE_TEXTFILE=" ${wx_arg_cache_file}`
8408                           if test "x$LINE" != x ; then
8409                             eval "DEFAULT_$LINE"
8410                           fi
8411
8412                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8413
8414 fi
8415
8416
8417           eval "$wx_cv_use_textfile"
8418           if test "x$cache" = xyes; then
8419             echo "wxUSE_TEXTFILE=$wxUSE_TEXTFILE" >> ${wx_arg_cache_file}.tmp
8420           fi
8421
8422           if test x"$enablestring" = xdisable; then
8423             if test $wxUSE_TEXTFILE = yes; then
8424               result=no
8425             else
8426               result=yes
8427             fi
8428           else
8429             result=$wxUSE_TEXTFILE
8430           fi
8431
8432           { echo "$as_me:$LINENO: result: $result" >&5
8433 echo "${ECHO_T}$result" >&6; }
8434
8435
8436           enablestring=
8437           defaultval=$wxUSE_ALL_FEATURES
8438           if test -z "$defaultval"; then
8439               if test x"$enablestring" = xdisable; then
8440                   defaultval=yes
8441               else
8442                   defaultval=no
8443               fi
8444           fi
8445
8446           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8447 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8448           # Check whether --enable-timer was given.
8449 if test "${enable_timer+set}" = set; then
8450   enableval=$enable_timer;
8451                           if test "$enableval" = yes; then
8452                             wx_cv_use_timer='wxUSE_TIMER=yes'
8453                           else
8454                             wx_cv_use_timer='wxUSE_TIMER=no'
8455                           fi
8456                           cache=yes
8457
8458 else
8459
8460                           cache=no
8461                           LINE=`grep "^wxUSE_TIMER=" ${wx_arg_cache_file}`
8462                           if test "x$LINE" != x ; then
8463                             eval "DEFAULT_$LINE"
8464                           fi
8465
8466                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8467
8468 fi
8469
8470
8471           eval "$wx_cv_use_timer"
8472           if test "x$cache" = xyes; then
8473             echo "wxUSE_TIMER=$wxUSE_TIMER" >> ${wx_arg_cache_file}.tmp
8474           fi
8475
8476           if test x"$enablestring" = xdisable; then
8477             if test $wxUSE_TIMER = yes; then
8478               result=no
8479             else
8480               result=yes
8481             fi
8482           else
8483             result=$wxUSE_TIMER
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}-sound" >&5
8501 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
8502           # Check whether --enable-sound was given.
8503 if test "${enable_sound+set}" = set; then
8504   enableval=$enable_sound;
8505                           if test "$enableval" = yes; then
8506                             wx_cv_use_sound='wxUSE_SOUND=yes'
8507                           else
8508                             wx_cv_use_sound='wxUSE_SOUND=no'
8509                           fi
8510                           cache=yes
8511
8512 else
8513
8514                           cache=no
8515                           LINE=`grep "^wxUSE_SOUND=" ${wx_arg_cache_file}`
8516                           if test "x$LINE" != x ; then
8517                             eval "DEFAULT_$LINE"
8518                           fi
8519
8520                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
8521
8522 fi
8523
8524
8525           eval "$wx_cv_use_sound"
8526           if test "x$cache" = xyes; then
8527             echo "wxUSE_SOUND=$wxUSE_SOUND" >> ${wx_arg_cache_file}.tmp
8528           fi
8529
8530           if test x"$enablestring" = xdisable; then
8531             if test $wxUSE_SOUND = yes; then
8532               result=no
8533             else
8534               result=yes
8535             fi
8536           else
8537             result=$wxUSE_SOUND
8538           fi
8539
8540           { echo "$as_me:$LINENO: result: $result" >&5
8541 echo "${ECHO_T}$result" >&6; }
8542
8543
8544           enablestring=
8545           defaultval=$wxUSE_ALL_FEATURES
8546           if test -z "$defaultval"; then
8547               if test x"$enablestring" = xdisable; then
8548                   defaultval=yes
8549               else
8550                   defaultval=no
8551               fi
8552           fi
8553
8554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8555 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8556           # Check whether --enable-mediactrl was given.
8557 if test "${enable_mediactrl+set}" = set; then
8558   enableval=$enable_mediactrl;
8559                           if test "$enableval" = yes; then
8560                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8561                           else
8562                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8563                           fi
8564                           cache=yes
8565
8566 else
8567
8568                           cache=no
8569                           LINE=`grep "^wxUSE_MEDIACTRL=" ${wx_arg_cache_file}`
8570                           if test "x$LINE" != x ; then
8571                             eval "DEFAULT_$LINE"
8572                           fi
8573
8574                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8575
8576 fi
8577
8578
8579           eval "$wx_cv_use_mediactrl"
8580           if test "x$cache" = xyes; then
8581             echo "wxUSE_MEDIACTRL=$wxUSE_MEDIACTRL" >> ${wx_arg_cache_file}.tmp
8582           fi
8583
8584           if test x"$enablestring" = xdisable; then
8585             if test $wxUSE_MEDIACTRL = yes; then
8586               result=no
8587             else
8588               result=yes
8589             fi
8590           else
8591             result=$wxUSE_MEDIACTRL
8592           fi
8593
8594           { echo "$as_me:$LINENO: result: $result" >&5
8595 echo "${ECHO_T}$result" >&6; }
8596
8597
8598           enablestring=
8599           defaultval=$wxUSE_ALL_FEATURES
8600           if test -z "$defaultval"; then
8601               if test x"$enablestring" = xdisable; then
8602                   defaultval=yes
8603               else
8604                   defaultval=no
8605               fi
8606           fi
8607
8608           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8609 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8610           # Check whether --enable-gstreamer8 was given.
8611 if test "${enable_gstreamer8+set}" = set; then
8612   enableval=$enable_gstreamer8;
8613                           if test "$enableval" = yes; then
8614                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8615                           else
8616                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8617                           fi
8618                           cache=yes
8619
8620 else
8621
8622                           cache=no
8623                           LINE=`grep "^wxUSE_GSTREAMER8=" ${wx_arg_cache_file}`
8624                           if test "x$LINE" != x ; then
8625                             eval "DEFAULT_$LINE"
8626                           fi
8627
8628                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8629
8630 fi
8631
8632
8633           eval "$wx_cv_use_gstreamer8"
8634           if test "x$cache" = xyes; then
8635             echo "wxUSE_GSTREAMER8=$wxUSE_GSTREAMER8" >> ${wx_arg_cache_file}.tmp
8636           fi
8637
8638           if test x"$enablestring" = xdisable; then
8639             if test $wxUSE_GSTREAMER8 = yes; then
8640               result=no
8641             else
8642               result=yes
8643             fi
8644           else
8645             result=$wxUSE_GSTREAMER8
8646           fi
8647
8648           { echo "$as_me:$LINENO: result: $result" >&5
8649 echo "${ECHO_T}$result" >&6; }
8650
8651
8652           enablestring=
8653           defaultval=$wxUSE_ALL_FEATURES
8654           if test -z "$defaultval"; then
8655               if test x"$enablestring" = xdisable; then
8656                   defaultval=yes
8657               else
8658                   defaultval=no
8659               fi
8660           fi
8661
8662           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
8663 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
8664           # Check whether --enable-printfposparam was given.
8665 if test "${enable_printfposparam+set}" = set; then
8666   enableval=$enable_printfposparam;
8667                           if test "$enableval" = yes; then
8668                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
8669                           else
8670                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
8671                           fi
8672                           cache=yes
8673
8674 else
8675
8676                           cache=no
8677                           LINE=`grep "^wxUSE_PRINTF_POS_PARAMS=" ${wx_arg_cache_file}`
8678                           if test "x$LINE" != x ; then
8679                             eval "DEFAULT_$LINE"
8680                           fi
8681
8682                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
8683
8684 fi
8685
8686
8687           eval "$wx_cv_use_printfposparam"
8688           if test "x$cache" = xyes; then
8689             echo "wxUSE_PRINTF_POS_PARAMS=$wxUSE_PRINTF_POS_PARAMS" >> ${wx_arg_cache_file}.tmp
8690           fi
8691
8692           if test x"$enablestring" = xdisable; then
8693             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
8694               result=no
8695             else
8696               result=yes
8697             fi
8698           else
8699             result=$wxUSE_PRINTF_POS_PARAMS
8700           fi
8701
8702           { echo "$as_me:$LINENO: result: $result" >&5
8703 echo "${ECHO_T}$result" >&6; }
8704
8705
8706           enablestring=
8707           defaultval=$wxUSE_ALL_FEATURES
8708           if test -z "$defaultval"; then
8709               if test x"$enablestring" = xdisable; then
8710                   defaultval=yes
8711               else
8712                   defaultval=no
8713               fi
8714           fi
8715
8716           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8717 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8718           # Check whether --enable-zipstream was given.
8719 if test "${enable_zipstream+set}" = set; then
8720   enableval=$enable_zipstream;
8721                           if test "$enableval" = yes; then
8722                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8723                           else
8724                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8725                           fi
8726                           cache=yes
8727
8728 else
8729
8730                           cache=no
8731                           LINE=`grep "^wxUSE_ZIPSTREAM=" ${wx_arg_cache_file}`
8732                           if test "x$LINE" != x ; then
8733                             eval "DEFAULT_$LINE"
8734                           fi
8735
8736                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8737
8738 fi
8739
8740
8741           eval "$wx_cv_use_zipstream"
8742           if test "x$cache" = xyes; then
8743             echo "wxUSE_ZIPSTREAM=$wxUSE_ZIPSTREAM" >> ${wx_arg_cache_file}.tmp
8744           fi
8745
8746           if test x"$enablestring" = xdisable; then
8747             if test $wxUSE_ZIPSTREAM = yes; then
8748               result=no
8749             else
8750               result=yes
8751             fi
8752           else
8753             result=$wxUSE_ZIPSTREAM
8754           fi
8755
8756           { echo "$as_me:$LINENO: result: $result" >&5
8757 echo "${ECHO_T}$result" >&6; }
8758
8759
8760
8761           enablestring=
8762           defaultval=$wxUSE_ALL_FEATURES
8763           if test -z "$defaultval"; then
8764               if test x"$enablestring" = xdisable; then
8765                   defaultval=yes
8766               else
8767                   defaultval=no
8768               fi
8769           fi
8770
8771           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8772 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8773           # Check whether --enable-url was given.
8774 if test "${enable_url+set}" = set; then
8775   enableval=$enable_url;
8776                           if test "$enableval" = yes; then
8777                             wx_cv_use_url='wxUSE_URL=yes'
8778                           else
8779                             wx_cv_use_url='wxUSE_URL=no'
8780                           fi
8781                           cache=yes
8782
8783 else
8784
8785                           cache=no
8786                           LINE=`grep "^wxUSE_URL=" ${wx_arg_cache_file}`
8787                           if test "x$LINE" != x ; then
8788                             eval "DEFAULT_$LINE"
8789                           fi
8790
8791                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8792
8793 fi
8794
8795
8796           eval "$wx_cv_use_url"
8797           if test "x$cache" = xyes; then
8798             echo "wxUSE_URL=$wxUSE_URL" >> ${wx_arg_cache_file}.tmp
8799           fi
8800
8801           if test x"$enablestring" = xdisable; then
8802             if test $wxUSE_URL = yes; then
8803               result=no
8804             else
8805               result=yes
8806             fi
8807           else
8808             result=$wxUSE_URL
8809           fi
8810
8811           { echo "$as_me:$LINENO: result: $result" >&5
8812 echo "${ECHO_T}$result" >&6; }
8813
8814
8815           enablestring=
8816           defaultval=$wxUSE_ALL_FEATURES
8817           if test -z "$defaultval"; then
8818               if test x"$enablestring" = xdisable; then
8819                   defaultval=yes
8820               else
8821                   defaultval=no
8822               fi
8823           fi
8824
8825           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8826 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8827           # Check whether --enable-variant was given.
8828 if test "${enable_variant+set}" = set; then
8829   enableval=$enable_variant;
8830                           if test "$enableval" = yes; then
8831                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8832                           else
8833                             wx_cv_use_variant='wxUSE_VARIANT=no'
8834                           fi
8835                           cache=yes
8836
8837 else
8838
8839                           cache=no
8840                           LINE=`grep "^wxUSE_VARIANT=" ${wx_arg_cache_file}`
8841                           if test "x$LINE" != x ; then
8842                             eval "DEFAULT_$LINE"
8843                           fi
8844
8845                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8846
8847 fi
8848
8849
8850           eval "$wx_cv_use_variant"
8851           if test "x$cache" = xyes; then
8852             echo "wxUSE_VARIANT=$wxUSE_VARIANT" >> ${wx_arg_cache_file}.tmp
8853           fi
8854
8855           if test x"$enablestring" = xdisable; then
8856             if test $wxUSE_VARIANT = yes; then
8857               result=no
8858             else
8859               result=yes
8860             fi
8861           else
8862             result=$wxUSE_VARIANT
8863           fi
8864
8865           { echo "$as_me:$LINENO: result: $result" >&5
8866 echo "${ECHO_T}$result" >&6; }
8867
8868
8869           enablestring=
8870           defaultval=$wxUSE_ALL_FEATURES
8871           if test -z "$defaultval"; then
8872               if test x"$enablestring" = xdisable; then
8873                   defaultval=yes
8874               else
8875                   defaultval=no
8876               fi
8877           fi
8878
8879           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8880 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8881           # Check whether --enable-protocol was given.
8882 if test "${enable_protocol+set}" = set; then
8883   enableval=$enable_protocol;
8884                           if test "$enableval" = yes; then
8885                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8886                           else
8887                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8888                           fi
8889                           cache=yes
8890
8891 else
8892
8893                           cache=no
8894                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
8895                           if test "x$LINE" != x ; then
8896                             eval "DEFAULT_$LINE"
8897                           fi
8898
8899                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8900
8901 fi
8902
8903
8904           eval "$wx_cv_use_protocol"
8905           if test "x$cache" = xyes; then
8906             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
8907           fi
8908
8909           if test x"$enablestring" = xdisable; then
8910             if test $wxUSE_PROTOCOL = yes; then
8911               result=no
8912             else
8913               result=yes
8914             fi
8915           else
8916             result=$wxUSE_PROTOCOL
8917           fi
8918
8919           { echo "$as_me:$LINENO: result: $result" >&5
8920 echo "${ECHO_T}$result" >&6; }
8921
8922
8923           enablestring=
8924           defaultval=$wxUSE_ALL_FEATURES
8925           if test -z "$defaultval"; then
8926               if test x"$enablestring" = xdisable; then
8927                   defaultval=yes
8928               else
8929                   defaultval=no
8930               fi
8931           fi
8932
8933           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8934 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8935           # Check whether --enable-protocol_http was given.
8936 if test "${enable_protocol_http+set}" = set; then
8937   enableval=$enable_protocol_http;
8938                           if test "$enableval" = yes; then
8939                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8940                           else
8941                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8942                           fi
8943                           cache=yes
8944
8945 else
8946
8947                           cache=no
8948                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
8949                           if test "x$LINE" != x ; then
8950                             eval "DEFAULT_$LINE"
8951                           fi
8952
8953                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8954
8955 fi
8956
8957
8958           eval "$wx_cv_use_protocol_http"
8959           if test "x$cache" = xyes; then
8960             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
8961           fi
8962
8963           if test x"$enablestring" = xdisable; then
8964             if test $wxUSE_PROTOCOL_HTTP = yes; then
8965               result=no
8966             else
8967               result=yes
8968             fi
8969           else
8970             result=$wxUSE_PROTOCOL_HTTP
8971           fi
8972
8973           { echo "$as_me:$LINENO: result: $result" >&5
8974 echo "${ECHO_T}$result" >&6; }
8975
8976
8977           enablestring=
8978           defaultval=$wxUSE_ALL_FEATURES
8979           if test -z "$defaultval"; then
8980               if test x"$enablestring" = xdisable; then
8981                   defaultval=yes
8982               else
8983                   defaultval=no
8984               fi
8985           fi
8986
8987           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8988 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8989           # Check whether --enable-protocol_ftp was given.
8990 if test "${enable_protocol_ftp+set}" = set; then
8991   enableval=$enable_protocol_ftp;
8992                           if test "$enableval" = yes; then
8993                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8994                           else
8995                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8996                           fi
8997                           cache=yes
8998
8999 else
9000
9001                           cache=no
9002                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
9003                           if test "x$LINE" != x ; then
9004                             eval "DEFAULT_$LINE"
9005                           fi
9006
9007                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
9008
9009 fi
9010
9011
9012           eval "$wx_cv_use_protocol_ftp"
9013           if test "x$cache" = xyes; then
9014             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
9015           fi
9016
9017           if test x"$enablestring" = xdisable; then
9018             if test $wxUSE_PROTOCOL_FTP = yes; then
9019               result=no
9020             else
9021               result=yes
9022             fi
9023           else
9024             result=$wxUSE_PROTOCOL_FTP
9025           fi
9026
9027           { echo "$as_me:$LINENO: result: $result" >&5
9028 echo "${ECHO_T}$result" >&6; }
9029
9030
9031           enablestring=
9032           defaultval=$wxUSE_ALL_FEATURES
9033           if test -z "$defaultval"; then
9034               if test x"$enablestring" = xdisable; then
9035                   defaultval=yes
9036               else
9037                   defaultval=no
9038               fi
9039           fi
9040
9041           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
9042 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
9043           # Check whether --enable-protocol_file was given.
9044 if test "${enable_protocol_file+set}" = set; then
9045   enableval=$enable_protocol_file;
9046                           if test "$enableval" = yes; then
9047                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
9048                           else
9049                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
9050                           fi
9051                           cache=yes
9052
9053 else
9054
9055                           cache=no
9056                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
9057                           if test "x$LINE" != x ; then
9058                             eval "DEFAULT_$LINE"
9059                           fi
9060
9061                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
9062
9063 fi
9064
9065
9066           eval "$wx_cv_use_protocol_file"
9067           if test "x$cache" = xyes; then
9068             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
9069           fi
9070
9071           if test x"$enablestring" = xdisable; then
9072             if test $wxUSE_PROTOCOL_FILE = yes; then
9073               result=no
9074             else
9075               result=yes
9076             fi
9077           else
9078             result=$wxUSE_PROTOCOL_FILE
9079           fi
9080
9081           { echo "$as_me:$LINENO: result: $result" >&5
9082 echo "${ECHO_T}$result" >&6; }
9083
9084
9085
9086           enablestring=
9087           defaultval=$wxUSE_ALL_FEATURES
9088           if test -z "$defaultval"; then
9089               if test x"$enablestring" = xdisable; then
9090                   defaultval=yes
9091               else
9092                   defaultval=no
9093               fi
9094           fi
9095
9096           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
9097 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
9098           # Check whether --enable-threads was given.
9099 if test "${enable_threads+set}" = set; then
9100   enableval=$enable_threads;
9101                           if test "$enableval" = yes; then
9102                             wx_cv_use_threads='wxUSE_THREADS=yes'
9103                           else
9104                             wx_cv_use_threads='wxUSE_THREADS=no'
9105                           fi
9106                           cache=yes
9107
9108 else
9109
9110                           cache=no
9111                           LINE=`grep "^wxUSE_THREADS=" ${wx_arg_cache_file}`
9112                           if test "x$LINE" != x ; then
9113                             eval "DEFAULT_$LINE"
9114                           fi
9115
9116                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
9117
9118 fi
9119
9120
9121           eval "$wx_cv_use_threads"
9122           if test "x$cache" = xyes; then
9123             echo "wxUSE_THREADS=$wxUSE_THREADS" >> ${wx_arg_cache_file}.tmp
9124           fi
9125
9126           if test x"$enablestring" = xdisable; then
9127             if test $wxUSE_THREADS = yes; then
9128               result=no
9129             else
9130               result=yes
9131             fi
9132           else
9133             result=$wxUSE_THREADS
9134           fi
9135
9136           { echo "$as_me:$LINENO: result: $result" >&5
9137 echo "${ECHO_T}$result" >&6; }
9138
9139
9140 if test "$wxUSE_GUI" = "yes"; then
9141
9142
9143
9144           enablestring=
9145           defaultval=$wxUSE_ALL_FEATURES
9146           if test -z "$defaultval"; then
9147               if test x"$enablestring" = xdisable; then
9148                   defaultval=yes
9149               else
9150                   defaultval=no
9151               fi
9152           fi
9153
9154           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
9155 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
9156           # Check whether --enable-docview was given.
9157 if test "${enable_docview+set}" = set; then
9158   enableval=$enable_docview;
9159                           if test "$enableval" = yes; then
9160                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
9161                           else
9162                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
9163                           fi
9164                           cache=yes
9165
9166 else
9167
9168                           cache=no
9169                           LINE=`grep "^wxUSE_DOC_VIEW_ARCHITECTURE=" ${wx_arg_cache_file}`
9170                           if test "x$LINE" != x ; then
9171                             eval "DEFAULT_$LINE"
9172                           fi
9173
9174                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
9175
9176 fi
9177
9178
9179           eval "$wx_cv_use_docview"
9180           if test "x$cache" = xyes; then
9181             echo "wxUSE_DOC_VIEW_ARCHITECTURE=$wxUSE_DOC_VIEW_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9182           fi
9183
9184           if test x"$enablestring" = xdisable; then
9185             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
9186               result=no
9187             else
9188               result=yes
9189             fi
9190           else
9191             result=$wxUSE_DOC_VIEW_ARCHITECTURE
9192           fi
9193
9194           { echo "$as_me:$LINENO: result: $result" >&5
9195 echo "${ECHO_T}$result" >&6; }
9196
9197
9198           enablestring=
9199           defaultval=$wxUSE_ALL_FEATURES
9200           if test -z "$defaultval"; then
9201               if test x"$enablestring" = xdisable; then
9202                   defaultval=yes
9203               else
9204                   defaultval=no
9205               fi
9206           fi
9207
9208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
9209 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
9210           # Check whether --enable-help was given.
9211 if test "${enable_help+set}" = set; then
9212   enableval=$enable_help;
9213                           if test "$enableval" = yes; then
9214                             wx_cv_use_help='wxUSE_HELP=yes'
9215                           else
9216                             wx_cv_use_help='wxUSE_HELP=no'
9217                           fi
9218                           cache=yes
9219
9220 else
9221
9222                           cache=no
9223                           LINE=`grep "^wxUSE_HELP=" ${wx_arg_cache_file}`
9224                           if test "x$LINE" != x ; then
9225                             eval "DEFAULT_$LINE"
9226                           fi
9227
9228                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
9229
9230 fi
9231
9232
9233           eval "$wx_cv_use_help"
9234           if test "x$cache" = xyes; then
9235             echo "wxUSE_HELP=$wxUSE_HELP" >> ${wx_arg_cache_file}.tmp
9236           fi
9237
9238           if test x"$enablestring" = xdisable; then
9239             if test $wxUSE_HELP = yes; then
9240               result=no
9241             else
9242               result=yes
9243             fi
9244           else
9245             result=$wxUSE_HELP
9246           fi
9247
9248           { echo "$as_me:$LINENO: result: $result" >&5
9249 echo "${ECHO_T}$result" >&6; }
9250
9251
9252           enablestring=
9253           defaultval=$wxUSE_ALL_FEATURES
9254           if test -z "$defaultval"; then
9255               if test x"$enablestring" = xdisable; then
9256                   defaultval=yes
9257               else
9258                   defaultval=no
9259               fi
9260           fi
9261
9262           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
9263 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
9264           # Check whether --enable-mshtmlhelp was given.
9265 if test "${enable_mshtmlhelp+set}" = set; then
9266   enableval=$enable_mshtmlhelp;
9267                           if test "$enableval" = yes; then
9268                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
9269                           else
9270                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
9271                           fi
9272                           cache=yes
9273
9274 else
9275
9276                           cache=no
9277                           LINE=`grep "^wxUSE_MS_HTML_HELP=" ${wx_arg_cache_file}`
9278                           if test "x$LINE" != x ; then
9279                             eval "DEFAULT_$LINE"
9280                           fi
9281
9282                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
9283
9284 fi
9285
9286
9287           eval "$wx_cv_use_mshtmlhelp"
9288           if test "x$cache" = xyes; then
9289             echo "wxUSE_MS_HTML_HELP=$wxUSE_MS_HTML_HELP" >> ${wx_arg_cache_file}.tmp
9290           fi
9291
9292           if test x"$enablestring" = xdisable; then
9293             if test $wxUSE_MS_HTML_HELP = yes; then
9294               result=no
9295             else
9296               result=yes
9297             fi
9298           else
9299             result=$wxUSE_MS_HTML_HELP
9300           fi
9301
9302           { echo "$as_me:$LINENO: result: $result" >&5
9303 echo "${ECHO_T}$result" >&6; }
9304
9305
9306           enablestring=
9307           defaultval=$wxUSE_ALL_FEATURES
9308           if test -z "$defaultval"; then
9309               if test x"$enablestring" = xdisable; then
9310                   defaultval=yes
9311               else
9312                   defaultval=no
9313               fi
9314           fi
9315
9316           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
9317 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
9318           # Check whether --enable-html was given.
9319 if test "${enable_html+set}" = set; then
9320   enableval=$enable_html;
9321                           if test "$enableval" = yes; then
9322                             wx_cv_use_html='wxUSE_HTML=yes'
9323                           else
9324                             wx_cv_use_html='wxUSE_HTML=no'
9325                           fi
9326                           cache=yes
9327
9328 else
9329
9330                           cache=no
9331                           LINE=`grep "^wxUSE_HTML=" ${wx_arg_cache_file}`
9332                           if test "x$LINE" != x ; then
9333                             eval "DEFAULT_$LINE"
9334                           fi
9335
9336                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
9337
9338 fi
9339
9340
9341           eval "$wx_cv_use_html"
9342           if test "x$cache" = xyes; then
9343             echo "wxUSE_HTML=$wxUSE_HTML" >> ${wx_arg_cache_file}.tmp
9344           fi
9345
9346           if test x"$enablestring" = xdisable; then
9347             if test $wxUSE_HTML = yes; then
9348               result=no
9349             else
9350               result=yes
9351             fi
9352           else
9353             result=$wxUSE_HTML
9354           fi
9355
9356           { echo "$as_me:$LINENO: result: $result" >&5
9357 echo "${ECHO_T}$result" >&6; }
9358
9359
9360           enablestring=
9361           defaultval=$wxUSE_ALL_FEATURES
9362           if test -z "$defaultval"; then
9363               if test x"$enablestring" = xdisable; then
9364                   defaultval=yes
9365               else
9366                   defaultval=no
9367               fi
9368           fi
9369
9370           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
9371 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
9372           # Check whether --enable-htmlhelp was given.
9373 if test "${enable_htmlhelp+set}" = set; then
9374   enableval=$enable_htmlhelp;
9375                           if test "$enableval" = yes; then
9376                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
9377                           else
9378                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
9379                           fi
9380                           cache=yes
9381
9382 else
9383
9384                           cache=no
9385                           LINE=`grep "^wxUSE_WXHTML_HELP=" ${wx_arg_cache_file}`
9386                           if test "x$LINE" != x ; then
9387                             eval "DEFAULT_$LINE"
9388                           fi
9389
9390                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
9391
9392 fi
9393
9394
9395           eval "$wx_cv_use_htmlhelp"
9396           if test "x$cache" = xyes; then
9397             echo "wxUSE_WXHTML_HELP=$wxUSE_WXHTML_HELP" >> ${wx_arg_cache_file}.tmp
9398           fi
9399
9400           if test x"$enablestring" = xdisable; then
9401             if test $wxUSE_WXHTML_HELP = yes; then
9402               result=no
9403             else
9404               result=yes
9405             fi
9406           else
9407             result=$wxUSE_WXHTML_HELP
9408           fi
9409
9410           { echo "$as_me:$LINENO: result: $result" >&5
9411 echo "${ECHO_T}$result" >&6; }
9412
9413
9414           enablestring=
9415           defaultval=$wxUSE_ALL_FEATURES
9416           if test -z "$defaultval"; then
9417               if test x"$enablestring" = xdisable; then
9418                   defaultval=yes
9419               else
9420                   defaultval=no
9421               fi
9422           fi
9423
9424           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
9425 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
9426           # Check whether --enable-xrc was given.
9427 if test "${enable_xrc+set}" = set; then
9428   enableval=$enable_xrc;
9429                           if test "$enableval" = yes; then
9430                             wx_cv_use_xrc='wxUSE_XRC=yes'
9431                           else
9432                             wx_cv_use_xrc='wxUSE_XRC=no'
9433                           fi
9434                           cache=yes
9435
9436 else
9437
9438                           cache=no
9439                           LINE=`grep "^wxUSE_XRC=" ${wx_arg_cache_file}`
9440                           if test "x$LINE" != x ; then
9441                             eval "DEFAULT_$LINE"
9442                           fi
9443
9444                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
9445
9446 fi
9447
9448
9449           eval "$wx_cv_use_xrc"
9450           if test "x$cache" = xyes; then
9451             echo "wxUSE_XRC=$wxUSE_XRC" >> ${wx_arg_cache_file}.tmp
9452           fi
9453
9454           if test x"$enablestring" = xdisable; then
9455             if test $wxUSE_XRC = yes; then
9456               result=no
9457             else
9458               result=yes
9459             fi
9460           else
9461             result=$wxUSE_XRC
9462           fi
9463
9464           { echo "$as_me:$LINENO: result: $result" >&5
9465 echo "${ECHO_T}$result" >&6; }
9466
9467
9468           enablestring=
9469           defaultval=$wxUSE_ALL_FEATURES
9470           if test -z "$defaultval"; then
9471               if test x"$enablestring" = xdisable; then
9472                   defaultval=yes
9473               else
9474                   defaultval=no
9475               fi
9476           fi
9477
9478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
9479 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
9480           # Check whether --enable-aui was given.
9481 if test "${enable_aui+set}" = set; then
9482   enableval=$enable_aui;
9483                           if test "$enableval" = yes; then
9484                             wx_cv_use_aui='wxUSE_AUI=yes'
9485                           else
9486                             wx_cv_use_aui='wxUSE_AUI=no'
9487                           fi
9488                           cache=yes
9489
9490 else
9491
9492                           cache=no
9493                           LINE=`grep "^wxUSE_AUI=" ${wx_arg_cache_file}`
9494                           if test "x$LINE" != x ; then
9495                             eval "DEFAULT_$LINE"
9496                           fi
9497
9498                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
9499
9500 fi
9501
9502
9503           eval "$wx_cv_use_aui"
9504           if test "x$cache" = xyes; then
9505             echo "wxUSE_AUI=$wxUSE_AUI" >> ${wx_arg_cache_file}.tmp
9506           fi
9507
9508           if test x"$enablestring" = xdisable; then
9509             if test $wxUSE_AUI = yes; then
9510               result=no
9511             else
9512               result=yes
9513             fi
9514           else
9515             result=$wxUSE_AUI
9516           fi
9517
9518           { echo "$as_me:$LINENO: result: $result" >&5
9519 echo "${ECHO_T}$result" >&6; }
9520
9521
9522           enablestring=
9523           defaultval=$wxUSE_ALL_FEATURES
9524           if test -z "$defaultval"; then
9525               if test x"$enablestring" = xdisable; then
9526                   defaultval=yes
9527               else
9528                   defaultval=no
9529               fi
9530           fi
9531
9532           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9533 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9534           # Check whether --enable-stc was given.
9535 if test "${enable_stc+set}" = set; then
9536   enableval=$enable_stc;
9537                           if test "$enableval" = yes; then
9538                             wx_cv_use_stc='wxUSE_STC=yes'
9539                           else
9540                             wx_cv_use_stc='wxUSE_STC=no'
9541                           fi
9542                           cache=yes
9543
9544 else
9545
9546                           cache=no
9547                           LINE=`grep "^wxUSE_STC=" ${wx_arg_cache_file}`
9548                           if test "x$LINE" != x ; then
9549                             eval "DEFAULT_$LINE"
9550                           fi
9551
9552                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9553
9554 fi
9555
9556
9557           eval "$wx_cv_use_stc"
9558           if test "x$cache" = xyes; then
9559             echo "wxUSE_STC=$wxUSE_STC" >> ${wx_arg_cache_file}.tmp
9560           fi
9561
9562           if test x"$enablestring" = xdisable; then
9563             if test $wxUSE_STC = yes; then
9564               result=no
9565             else
9566               result=yes
9567             fi
9568           else
9569             result=$wxUSE_STC
9570           fi
9571
9572           { echo "$as_me:$LINENO: result: $result" >&5
9573 echo "${ECHO_T}$result" >&6; }
9574
9575
9576           enablestring=
9577           defaultval=$wxUSE_ALL_FEATURES
9578           if test -z "$defaultval"; then
9579               if test x"$enablestring" = xdisable; then
9580                   defaultval=yes
9581               else
9582                   defaultval=no
9583               fi
9584           fi
9585
9586           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9587 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9588           # Check whether --enable-constraints was given.
9589 if test "${enable_constraints+set}" = set; then
9590   enableval=$enable_constraints;
9591                           if test "$enableval" = yes; then
9592                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9593                           else
9594                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9595                           fi
9596                           cache=yes
9597
9598 else
9599
9600                           cache=no
9601                           LINE=`grep "^wxUSE_CONSTRAINTS=" ${wx_arg_cache_file}`
9602                           if test "x$LINE" != x ; then
9603                             eval "DEFAULT_$LINE"
9604                           fi
9605
9606                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9607
9608 fi
9609
9610
9611           eval "$wx_cv_use_constraints"
9612           if test "x$cache" = xyes; then
9613             echo "wxUSE_CONSTRAINTS=$wxUSE_CONSTRAINTS" >> ${wx_arg_cache_file}.tmp
9614           fi
9615
9616           if test x"$enablestring" = xdisable; then
9617             if test $wxUSE_CONSTRAINTS = yes; then
9618               result=no
9619             else
9620               result=yes
9621             fi
9622           else
9623             result=$wxUSE_CONSTRAINTS
9624           fi
9625
9626           { echo "$as_me:$LINENO: result: $result" >&5
9627 echo "${ECHO_T}$result" >&6; }
9628
9629
9630           enablestring=
9631           defaultval=$wxUSE_ALL_FEATURES
9632           if test -z "$defaultval"; then
9633               if test x"$enablestring" = xdisable; then
9634                   defaultval=yes
9635               else
9636                   defaultval=no
9637               fi
9638           fi
9639
9640           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9641 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9642           # Check whether --enable-printarch was given.
9643 if test "${enable_printarch+set}" = set; then
9644   enableval=$enable_printarch;
9645                           if test "$enableval" = yes; then
9646                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9647                           else
9648                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9649                           fi
9650                           cache=yes
9651
9652 else
9653
9654                           cache=no
9655                           LINE=`grep "^wxUSE_PRINTING_ARCHITECTURE=" ${wx_arg_cache_file}`
9656                           if test "x$LINE" != x ; then
9657                             eval "DEFAULT_$LINE"
9658                           fi
9659
9660                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9661
9662 fi
9663
9664
9665           eval "$wx_cv_use_printarch"
9666           if test "x$cache" = xyes; then
9667             echo "wxUSE_PRINTING_ARCHITECTURE=$wxUSE_PRINTING_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9668           fi
9669
9670           if test x"$enablestring" = xdisable; then
9671             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9672               result=no
9673             else
9674               result=yes
9675             fi
9676           else
9677             result=$wxUSE_PRINTING_ARCHITECTURE
9678           fi
9679
9680           { echo "$as_me:$LINENO: result: $result" >&5
9681 echo "${ECHO_T}$result" >&6; }
9682
9683
9684           enablestring=
9685           defaultval=$wxUSE_ALL_FEATURES
9686           if test -z "$defaultval"; then
9687               if test x"$enablestring" = xdisable; then
9688                   defaultval=yes
9689               else
9690                   defaultval=no
9691               fi
9692           fi
9693
9694           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9695 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9696           # Check whether --enable-mdi was given.
9697 if test "${enable_mdi+set}" = set; then
9698   enableval=$enable_mdi;
9699                           if test "$enableval" = yes; then
9700                             wx_cv_use_mdi='wxUSE_MDI=yes'
9701                           else
9702                             wx_cv_use_mdi='wxUSE_MDI=no'
9703                           fi
9704                           cache=yes
9705
9706 else
9707
9708                           cache=no
9709                           LINE=`grep "^wxUSE_MDI=" ${wx_arg_cache_file}`
9710                           if test "x$LINE" != x ; then
9711                             eval "DEFAULT_$LINE"
9712                           fi
9713
9714                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9715
9716 fi
9717
9718
9719           eval "$wx_cv_use_mdi"
9720           if test "x$cache" = xyes; then
9721             echo "wxUSE_MDI=$wxUSE_MDI" >> ${wx_arg_cache_file}.tmp
9722           fi
9723
9724           if test x"$enablestring" = xdisable; then
9725             if test $wxUSE_MDI = yes; then
9726               result=no
9727             else
9728               result=yes
9729             fi
9730           else
9731             result=$wxUSE_MDI
9732           fi
9733
9734           { echo "$as_me:$LINENO: result: $result" >&5
9735 echo "${ECHO_T}$result" >&6; }
9736
9737
9738           enablestring=
9739           defaultval=$wxUSE_ALL_FEATURES
9740           if test -z "$defaultval"; then
9741               if test x"$enablestring" = xdisable; then
9742                   defaultval=yes
9743               else
9744                   defaultval=no
9745               fi
9746           fi
9747
9748           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9749 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9750           # Check whether --enable-mdidoc was given.
9751 if test "${enable_mdidoc+set}" = set; then
9752   enableval=$enable_mdidoc;
9753                           if test "$enableval" = yes; then
9754                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9755                           else
9756                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9757                           fi
9758                           cache=yes
9759
9760 else
9761
9762                           cache=no
9763                           LINE=`grep "^wxUSE_MDI_ARCHITECTURE=" ${wx_arg_cache_file}`
9764                           if test "x$LINE" != x ; then
9765                             eval "DEFAULT_$LINE"
9766                           fi
9767
9768                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9769
9770 fi
9771
9772
9773           eval "$wx_cv_use_mdidoc"
9774           if test "x$cache" = xyes; then
9775             echo "wxUSE_MDI_ARCHITECTURE=$wxUSE_MDI_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9776           fi
9777
9778           if test x"$enablestring" = xdisable; then
9779             if test $wxUSE_MDI_ARCHITECTURE = yes; then
9780               result=no
9781             else
9782               result=yes
9783             fi
9784           else
9785             result=$wxUSE_MDI_ARCHITECTURE
9786           fi
9787
9788           { echo "$as_me:$LINENO: result: $result" >&5
9789 echo "${ECHO_T}$result" >&6; }
9790
9791
9792           enablestring=
9793           defaultval=$wxUSE_ALL_FEATURES
9794           if test -z "$defaultval"; then
9795               if test x"$enablestring" = xdisable; then
9796                   defaultval=yes
9797               else
9798                   defaultval=no
9799               fi
9800           fi
9801
9802           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9803 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9804           # Check whether --enable-loggui was given.
9805 if test "${enable_loggui+set}" = set; then
9806   enableval=$enable_loggui;
9807                           if test "$enableval" = yes; then
9808                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9809                           else
9810                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9811                           fi
9812                           cache=yes
9813
9814 else
9815
9816                           cache=no
9817                           LINE=`grep "^wxUSE_LOGGUI=" ${wx_arg_cache_file}`
9818                           if test "x$LINE" != x ; then
9819                             eval "DEFAULT_$LINE"
9820                           fi
9821
9822                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9823
9824 fi
9825
9826
9827           eval "$wx_cv_use_loggui"
9828           if test "x$cache" = xyes; then
9829             echo "wxUSE_LOGGUI=$wxUSE_LOGGUI" >> ${wx_arg_cache_file}.tmp
9830           fi
9831
9832           if test x"$enablestring" = xdisable; then
9833             if test $wxUSE_LOGGUI = yes; then
9834               result=no
9835             else
9836               result=yes
9837             fi
9838           else
9839             result=$wxUSE_LOGGUI
9840           fi
9841
9842           { echo "$as_me:$LINENO: result: $result" >&5
9843 echo "${ECHO_T}$result" >&6; }
9844
9845
9846           enablestring=
9847           defaultval=$wxUSE_ALL_FEATURES
9848           if test -z "$defaultval"; then
9849               if test x"$enablestring" = xdisable; then
9850                   defaultval=yes
9851               else
9852                   defaultval=no
9853               fi
9854           fi
9855
9856           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9857 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9858           # Check whether --enable-logwin was given.
9859 if test "${enable_logwin+set}" = set; then
9860   enableval=$enable_logwin;
9861                           if test "$enableval" = yes; then
9862                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9863                           else
9864                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9865                           fi
9866                           cache=yes
9867
9868 else
9869
9870                           cache=no
9871                           LINE=`grep "^wxUSE_LOGWINDOW=" ${wx_arg_cache_file}`
9872                           if test "x$LINE" != x ; then
9873                             eval "DEFAULT_$LINE"
9874                           fi
9875
9876                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9877
9878 fi
9879
9880
9881           eval "$wx_cv_use_logwin"
9882           if test "x$cache" = xyes; then
9883             echo "wxUSE_LOGWINDOW=$wxUSE_LOGWINDOW" >> ${wx_arg_cache_file}.tmp
9884           fi
9885
9886           if test x"$enablestring" = xdisable; then
9887             if test $wxUSE_LOGWINDOW = yes; then
9888               result=no
9889             else
9890               result=yes
9891             fi
9892           else
9893             result=$wxUSE_LOGWINDOW
9894           fi
9895
9896           { echo "$as_me:$LINENO: result: $result" >&5
9897 echo "${ECHO_T}$result" >&6; }
9898
9899
9900           enablestring=
9901           defaultval=$wxUSE_ALL_FEATURES
9902           if test -z "$defaultval"; then
9903               if test x"$enablestring" = xdisable; then
9904                   defaultval=yes
9905               else
9906                   defaultval=no
9907               fi
9908           fi
9909
9910           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9911 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9912           # Check whether --enable-logdialog was given.
9913 if test "${enable_logdialog+set}" = set; then
9914   enableval=$enable_logdialog;
9915                           if test "$enableval" = yes; then
9916                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9917                           else
9918                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9919                           fi
9920                           cache=yes
9921
9922 else
9923
9924                           cache=no
9925                           LINE=`grep "^wxUSE_LOGDIALOG=" ${wx_arg_cache_file}`
9926                           if test "x$LINE" != x ; then
9927                             eval "DEFAULT_$LINE"
9928                           fi
9929
9930                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9931
9932 fi
9933
9934
9935           eval "$wx_cv_use_logdialog"
9936           if test "x$cache" = xyes; then
9937             echo "wxUSE_LOGDIALOG=$wxUSE_LOGDIALOG" >> ${wx_arg_cache_file}.tmp
9938           fi
9939
9940           if test x"$enablestring" = xdisable; then
9941             if test $wxUSE_LOGDIALOG = yes; then
9942               result=no
9943             else
9944               result=yes
9945             fi
9946           else
9947             result=$wxUSE_LOGDIALOG
9948           fi
9949
9950           { echo "$as_me:$LINENO: result: $result" >&5
9951 echo "${ECHO_T}$result" >&6; }
9952
9953
9954           enablestring=
9955           defaultval=$wxUSE_ALL_FEATURES
9956           if test -z "$defaultval"; then
9957               if test x"$enablestring" = xdisable; then
9958                   defaultval=yes
9959               else
9960                   defaultval=no
9961               fi
9962           fi
9963
9964           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9965 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9966           # Check whether --enable-webkit was given.
9967 if test "${enable_webkit+set}" = set; then
9968   enableval=$enable_webkit;
9969                           if test "$enableval" = yes; then
9970                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9971                           else
9972                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9973                           fi
9974                           cache=yes
9975
9976 else
9977
9978                           cache=no
9979                           LINE=`grep "^wxUSE_WEBKIT=" ${wx_arg_cache_file}`
9980                           if test "x$LINE" != x ; then
9981                             eval "DEFAULT_$LINE"
9982                           fi
9983
9984                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9985
9986 fi
9987
9988
9989           eval "$wx_cv_use_webkit"
9990           if test "x$cache" = xyes; then
9991             echo "wxUSE_WEBKIT=$wxUSE_WEBKIT" >> ${wx_arg_cache_file}.tmp
9992           fi
9993
9994           if test x"$enablestring" = xdisable; then
9995             if test $wxUSE_WEBKIT = yes; then
9996               result=no
9997             else
9998               result=yes
9999             fi
10000           else
10001             result=$wxUSE_WEBKIT
10002           fi
10003
10004           { echo "$as_me:$LINENO: result: $result" >&5
10005 echo "${ECHO_T}$result" >&6; }
10006
10007
10008           enablestring=
10009           defaultval=$wxUSE_ALL_FEATURES
10010           if test -z "$defaultval"; then
10011               if test x"$enablestring" = xdisable; then
10012                   defaultval=yes
10013               else
10014                   defaultval=no
10015               fi
10016           fi
10017
10018           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
10019 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
10020           # Check whether --enable-richtext was given.
10021 if test "${enable_richtext+set}" = set; then
10022   enableval=$enable_richtext;
10023                           if test "$enableval" = yes; then
10024                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
10025                           else
10026                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
10027                           fi
10028                           cache=yes
10029
10030 else
10031
10032                           cache=no
10033                           LINE=`grep "^wxUSE_RICHTEXT=" ${wx_arg_cache_file}`
10034                           if test "x$LINE" != x ; then
10035                             eval "DEFAULT_$LINE"
10036                           fi
10037
10038                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
10039
10040 fi
10041
10042
10043           eval "$wx_cv_use_richtext"
10044           if test "x$cache" = xyes; then
10045             echo "wxUSE_RICHTEXT=$wxUSE_RICHTEXT" >> ${wx_arg_cache_file}.tmp
10046           fi
10047
10048           if test x"$enablestring" = xdisable; then
10049             if test $wxUSE_RICHTEXT = yes; then
10050               result=no
10051             else
10052               result=yes
10053             fi
10054           else
10055             result=$wxUSE_RICHTEXT
10056           fi
10057
10058           { echo "$as_me:$LINENO: result: $result" >&5
10059 echo "${ECHO_T}$result" >&6; }
10060
10061
10062           enablestring=
10063           defaultval=$wxUSE_ALL_FEATURES
10064           if test -z "$defaultval"; then
10065               if test x"$enablestring" = xdisable; then
10066                   defaultval=yes
10067               else
10068                   defaultval=no
10069               fi
10070           fi
10071
10072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
10073 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
10074           # Check whether --enable-graphics_ctx was given.
10075 if test "${enable_graphics_ctx+set}" = set; then
10076   enableval=$enable_graphics_ctx;
10077                           if test "$enableval" = yes; then
10078                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
10079                           else
10080                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
10081                           fi
10082                           cache=yes
10083
10084 else
10085
10086                           cache=no
10087                           LINE=`grep "^wxUSE_GRAPHICS_CONTEXT=" ${wx_arg_cache_file}`
10088                           if test "x$LINE" != x ; then
10089                             eval "DEFAULT_$LINE"
10090                           fi
10091
10092                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
10093
10094 fi
10095
10096
10097           eval "$wx_cv_use_graphics_ctx"
10098           if test "x$cache" = xyes; then
10099             echo "wxUSE_GRAPHICS_CONTEXT=$wxUSE_GRAPHICS_CONTEXT" >> ${wx_arg_cache_file}.tmp
10100           fi
10101
10102           if test x"$enablestring" = xdisable; then
10103             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
10104               result=no
10105             else
10106               result=yes
10107             fi
10108           else
10109             result=$wxUSE_GRAPHICS_CONTEXT
10110           fi
10111
10112           { echo "$as_me:$LINENO: result: $result" >&5
10113 echo "${ECHO_T}$result" >&6; }
10114
10115
10116           enablestring=
10117           defaultval=$wxUSE_ALL_FEATURES
10118           if test -z "$defaultval"; then
10119               if test x"$enablestring" = xdisable; then
10120                   defaultval=yes
10121               else
10122                   defaultval=no
10123               fi
10124           fi
10125
10126           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
10127 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
10128           # Check whether --enable-postscript was given.
10129 if test "${enable_postscript+set}" = set; then
10130   enableval=$enable_postscript;
10131                           if test "$enableval" = yes; then
10132                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
10133                           else
10134                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
10135                           fi
10136                           cache=yes
10137
10138 else
10139
10140                           cache=no
10141                           LINE=`grep "^wxUSE_POSTSCRIPT=" ${wx_arg_cache_file}`
10142                           if test "x$LINE" != x ; then
10143                             eval "DEFAULT_$LINE"
10144                           fi
10145
10146                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
10147
10148 fi
10149
10150
10151           eval "$wx_cv_use_postscript"
10152           if test "x$cache" = xyes; then
10153             echo "wxUSE_POSTSCRIPT=$wxUSE_POSTSCRIPT" >> ${wx_arg_cache_file}.tmp
10154           fi
10155
10156           if test x"$enablestring" = xdisable; then
10157             if test $wxUSE_POSTSCRIPT = yes; then
10158               result=no
10159             else
10160               result=yes
10161             fi
10162           else
10163             result=$wxUSE_POSTSCRIPT
10164           fi
10165
10166           { echo "$as_me:$LINENO: result: $result" >&5
10167 echo "${ECHO_T}$result" >&6; }
10168
10169
10170           enablestring=
10171           defaultval=$wxUSE_ALL_FEATURES
10172           if test -z "$defaultval"; then
10173               if test x"$enablestring" = xdisable; then
10174                   defaultval=yes
10175               else
10176                   defaultval=no
10177               fi
10178           fi
10179
10180           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
10181 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
10182           # Check whether --enable-svg was given.
10183 if test "${enable_svg+set}" = set; then
10184   enableval=$enable_svg;
10185                           if test "$enableval" = yes; then
10186                             wx_cv_use_svg='wxUSE_SVG=yes'
10187                           else
10188                             wx_cv_use_svg='wxUSE_SVG=no'
10189                           fi
10190                           cache=yes
10191
10192 else
10193
10194                           cache=no
10195                           LINE=`grep "^wxUSE_SVG=" ${wx_arg_cache_file}`
10196                           if test "x$LINE" != x ; then
10197                             eval "DEFAULT_$LINE"
10198                           fi
10199
10200                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
10201
10202 fi
10203
10204
10205           eval "$wx_cv_use_svg"
10206           if test "x$cache" = xyes; then
10207             echo "wxUSE_SVG=$wxUSE_SVG" >> ${wx_arg_cache_file}.tmp
10208           fi
10209
10210           if test x"$enablestring" = xdisable; then
10211             if test $wxUSE_SVG = yes; then
10212               result=no
10213             else
10214               result=yes
10215             fi
10216           else
10217             result=$wxUSE_SVG
10218           fi
10219
10220           { echo "$as_me:$LINENO: result: $result" >&5
10221 echo "${ECHO_T}$result" >&6; }
10222
10223
10224
10225
10226           enablestring=
10227           defaultval=$wxUSE_ALL_FEATURES
10228           if test -z "$defaultval"; then
10229               if test x"$enablestring" = xdisable; then
10230                   defaultval=yes
10231               else
10232                   defaultval=no
10233               fi
10234           fi
10235
10236           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
10237 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
10238           # Check whether --enable-clipboard was given.
10239 if test "${enable_clipboard+set}" = set; then
10240   enableval=$enable_clipboard;
10241                           if test "$enableval" = yes; then
10242                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
10243                           else
10244                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
10245                           fi
10246                           cache=yes
10247
10248 else
10249
10250                           cache=no
10251                           LINE=`grep "^wxUSE_CLIPBOARD=" ${wx_arg_cache_file}`
10252                           if test "x$LINE" != x ; then
10253                             eval "DEFAULT_$LINE"
10254                           fi
10255
10256                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
10257
10258 fi
10259
10260
10261           eval "$wx_cv_use_clipboard"
10262           if test "x$cache" = xyes; then
10263             echo "wxUSE_CLIPBOARD=$wxUSE_CLIPBOARD" >> ${wx_arg_cache_file}.tmp
10264           fi
10265
10266           if test x"$enablestring" = xdisable; then
10267             if test $wxUSE_CLIPBOARD = yes; then
10268               result=no
10269             else
10270               result=yes
10271             fi
10272           else
10273             result=$wxUSE_CLIPBOARD
10274           fi
10275
10276           { echo "$as_me:$LINENO: result: $result" >&5
10277 echo "${ECHO_T}$result" >&6; }
10278
10279
10280           enablestring=
10281           defaultval=$wxUSE_ALL_FEATURES
10282           if test -z "$defaultval"; then
10283               if test x"$enablestring" = xdisable; then
10284                   defaultval=yes
10285               else
10286                   defaultval=no
10287               fi
10288           fi
10289
10290           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
10291 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
10292           # Check whether --enable-dnd was given.
10293 if test "${enable_dnd+set}" = set; then
10294   enableval=$enable_dnd;
10295                           if test "$enableval" = yes; then
10296                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
10297                           else
10298                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
10299                           fi
10300                           cache=yes
10301
10302 else
10303
10304                           cache=no
10305                           LINE=`grep "^wxUSE_DRAG_AND_DROP=" ${wx_arg_cache_file}`
10306                           if test "x$LINE" != x ; then
10307                             eval "DEFAULT_$LINE"
10308                           fi
10309
10310                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
10311
10312 fi
10313
10314
10315           eval "$wx_cv_use_dnd"
10316           if test "x$cache" = xyes; then
10317             echo "wxUSE_DRAG_AND_DROP=$wxUSE_DRAG_AND_DROP" >> ${wx_arg_cache_file}.tmp
10318           fi
10319
10320           if test x"$enablestring" = xdisable; then
10321             if test $wxUSE_DRAG_AND_DROP = yes; then
10322               result=no
10323             else
10324               result=yes
10325             fi
10326           else
10327             result=$wxUSE_DRAG_AND_DROP
10328           fi
10329
10330           { echo "$as_me:$LINENO: result: $result" >&5
10331 echo "${ECHO_T}$result" >&6; }
10332
10333
10334           enablestring=
10335           defaultval=$wxUSE_ALL_FEATURES
10336           if test -z "$defaultval"; then
10337               if test x"$enablestring" = xdisable; then
10338                   defaultval=yes
10339               else
10340                   defaultval=no
10341               fi
10342           fi
10343
10344           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10345 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
10346           # Check whether --enable-metafile was given.
10347 if test "${enable_metafile+set}" = set; then
10348   enableval=$enable_metafile;
10349                           if test "$enableval" = yes; then
10350                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
10351                           else
10352                             wx_cv_use_metafile='wxUSE_METAFILE=no'
10353                           fi
10354                           cache=yes
10355
10356 else
10357
10358                           cache=no
10359                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
10360                           if test "x$LINE" != x ; then
10361                             eval "DEFAULT_$LINE"
10362                           fi
10363
10364                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
10365
10366 fi
10367
10368
10369           eval "$wx_cv_use_metafile"
10370           if test "x$cache" = xyes; then
10371             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
10372           fi
10373
10374           if test x"$enablestring" = xdisable; then
10375             if test $wxUSE_METAFILE = yes; then
10376               result=no
10377             else
10378               result=yes
10379             fi
10380           else
10381             result=$wxUSE_METAFILE
10382           fi
10383
10384           { echo "$as_me:$LINENO: result: $result" >&5
10385 echo "${ECHO_T}$result" >&6; }
10386
10387
10388
10389 DEFAULT_wxUSE_CONTROLS=none
10390
10391           enablestring=disable
10392           defaultval=
10393           if test -z "$defaultval"; then
10394               if test x"$enablestring" = xdisable; then
10395                   defaultval=yes
10396               else
10397                   defaultval=no
10398               fi
10399           fi
10400
10401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
10402 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
10403           # Check whether --enable-controls was given.
10404 if test "${enable_controls+set}" = set; then
10405   enableval=$enable_controls;
10406                           if test "$enableval" = yes; then
10407                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
10408                           else
10409                             wx_cv_use_controls='wxUSE_CONTROLS=no'
10410                           fi
10411                           cache=yes
10412
10413 else
10414
10415                           cache=no
10416                           LINE=`grep "^wxUSE_CONTROLS=" ${wx_arg_cache_file}`
10417                           if test "x$LINE" != x ; then
10418                             eval "DEFAULT_$LINE"
10419                           fi
10420
10421                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
10422
10423 fi
10424
10425
10426           eval "$wx_cv_use_controls"
10427           if test "x$cache" = xyes; then
10428             echo "wxUSE_CONTROLS=$wxUSE_CONTROLS" >> ${wx_arg_cache_file}.tmp
10429           fi
10430
10431           if test x"$enablestring" = xdisable; then
10432             if test $wxUSE_CONTROLS = yes; then
10433               result=no
10434             else
10435               result=yes
10436             fi
10437           else
10438             result=$wxUSE_CONTROLS
10439           fi
10440
10441           { echo "$as_me:$LINENO: result: $result" >&5
10442 echo "${ECHO_T}$result" >&6; }
10443
10444
10445 if test "$wxUSE_CONTROLS" = "yes"; then
10446   DEFAULT_wxUSE_ACCEL=yes
10447   DEFAULT_wxUSE_ANIMATIONCTRL=yes
10448   DEFAULT_wxUSE_BMPBUTTON=yes
10449   DEFAULT_wxUSE_BUTTON=yes
10450   DEFAULT_wxUSE_CALCTRL=yes
10451   DEFAULT_wxUSE_CARET=yes
10452   DEFAULT_wxUSE_COMBOBOX=yes
10453   DEFAULT_wxUSE_CHECKBOX=yes
10454   DEFAULT_wxUSE_CHECKLISTBOX=yes
10455   DEFAULT_wxUSE_CHOICE=yes
10456   DEFAULT_wxUSE_CHOICEBOOK=yes
10457   DEFAULT_wxUSE_COLLPANE=yes
10458   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
10459   DEFAULT_wxUSE_COMBOBOX=yes
10460   DEFAULT_wxUSE_DATEPICKCTRL=yes
10461   DEFAULT_wxUSE_DISPLAY=yes
10462   DEFAULT_wxUSE_DETECT_SM=yes
10463   DEFAULT_wxUSE_DIRPICKERCTRL=yes
10464   DEFAULT_wxUSE_FILEPICKERCTRL=yes
10465   DEFAULT_wxUSE_FONTPICKERCTRL=yes
10466   DEFAULT_wxUSE_GAUGE=yes
10467   DEFAULT_wxUSE_GRID=yes
10468   DEFAULT_wxUSE_HYPERLINKCTRL=yes
10469   DEFAULT_wxUSE_DATAVIEWCTRL=no
10470   DEFAULT_wxUSE_IMAGLIST=yes
10471   DEFAULT_wxUSE_LISTBOOK=yes
10472   DEFAULT_wxUSE_LISTBOX=yes
10473   DEFAULT_wxUSE_LISTCTRL=yes
10474   DEFAULT_wxUSE_NOTEBOOK=yes
10475   DEFAULT_wxUSE_RADIOBOX=yes
10476   DEFAULT_wxUSE_RADIOBTN=yes
10477   DEFAULT_wxUSE_SASH=yes
10478   DEFAULT_wxUSE_SCROLLBAR=yes
10479   DEFAULT_wxUSE_SEARCHCTRL=yes
10480   DEFAULT_wxUSE_SLIDER=yes
10481   DEFAULT_wxUSE_SPINBTN=yes
10482   DEFAULT_wxUSE_SPINCTRL=yes
10483   DEFAULT_wxUSE_SPLITTER=yes
10484   DEFAULT_wxUSE_STATBMP=yes
10485   DEFAULT_wxUSE_STATBOX=yes
10486   DEFAULT_wxUSE_STATLINE=yes
10487   DEFAULT_wxUSE_STATUSBAR=yes
10488   DEFAULT_wxUSE_TAB_DIALOG=yes
10489   DEFAULT_wxUSE_TOGGLEBTN=yes
10490   DEFAULT_wxUSE_TOOLBAR=yes
10491   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
10492   DEFAULT_wxUSE_TOOLTIPS=yes
10493   DEFAULT_wxUSE_TREEBOOK=yes
10494   DEFAULT_wxUSE_TOOLBOOK=yes
10495   DEFAULT_wxUSE_TREECTRL=yes
10496   DEFAULT_wxUSE_POPUPWIN=yes
10497   DEFAULT_wxUSE_TIPWINDOW=yes
10498 elif test "$wxUSE_CONTROLS" = "no"; then
10499   DEFAULT_wxUSE_ACCEL=no
10500   DEFAULT_wxUSE_ANIMATIONCTRL=no
10501   DEFAULT_wxUSE_BMPBUTTON=no
10502   DEFAULT_wxUSE_BUTTON=no
10503   DEFAULT_wxUSE_CALCTRL=no
10504   DEFAULT_wxUSE_CARET=no
10505   DEFAULT_wxUSE_COLLPANE=no
10506   DEFAULT_wxUSE_COMBOBOX=no
10507   DEFAULT_wxUSE_CHECKBOX=no
10508   DEFAULT_wxUSE_CHECKLISTBOX=no
10509   DEFAULT_wxUSE_CHOICE=no
10510   DEFAULT_wxUSE_CHOICEBOOK=no
10511   DEFAULT_wxUSE_COLOURPICKERCTRL=no
10512   DEFAULT_wxUSE_COMBOBOX=no
10513   DEFAULT_wxUSE_DATEPICKCTRL=no
10514   DEFAULT_wxUSE_DISPLAY=no
10515   DEFAULT_wxUSE_DETECT_SM=no
10516   DEFAULT_wxUSE_DIRPICKERCTRL=no
10517   DEFAULT_wxUSE_FILEPICKERCTRL=no
10518   DEFAULT_wxUSE_FONTPICKERCTRL=no
10519   DEFAULT_wxUSE_GAUGE=no
10520   DEFAULT_wxUSE_GRID=no
10521   DEFAULT_wxUSE_HYPERLINKCTRL=no
10522   DEFAULT_wxUSE_DATAVIEWCTRL=no
10523   DEFAULT_wxUSE_IMAGLIST=no
10524   DEFAULT_wxUSE_LISTBOOK=no
10525   DEFAULT_wxUSE_LISTBOX=no
10526   DEFAULT_wxUSE_LISTCTRL=no
10527   DEFAULT_wxUSE_NOTEBOOK=no
10528   DEFAULT_wxUSE_RADIOBOX=no
10529   DEFAULT_wxUSE_RADIOBTN=no
10530   DEFAULT_wxUSE_SASH=no
10531   DEFAULT_wxUSE_SCROLLBAR=no
10532   DEFAULT_wxUSE_SEARCHCTRL=no
10533   DEFAULT_wxUSE_SLIDER=no
10534   DEFAULT_wxUSE_SPINBTN=no
10535   DEFAULT_wxUSE_SPINCTRL=no
10536   DEFAULT_wxUSE_SPLITTER=no
10537   DEFAULT_wxUSE_STATBMP=no
10538   DEFAULT_wxUSE_STATBOX=no
10539   DEFAULT_wxUSE_STATLINE=no
10540   DEFAULT_wxUSE_STATUSBAR=no
10541   DEFAULT_wxUSE_TAB_DIALOG=no
10542   DEFAULT_wxUSE_TOGGLEBTN=no
10543   DEFAULT_wxUSE_TOOLBAR=no
10544   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
10545   DEFAULT_wxUSE_TOOLTIPS=no
10546   DEFAULT_wxUSE_TREEBOOK=no
10547   DEFAULT_wxUSE_TOOLBOOK=no
10548   DEFAULT_wxUSE_TREECTRL=no
10549   DEFAULT_wxUSE_POPUPWIN=no
10550   DEFAULT_wxUSE_TIPWINDOW=no
10551 fi
10552
10553
10554           enablestring=
10555           defaultval=$wxUSE_ALL_FEATURES
10556           if test -z "$defaultval"; then
10557               if test x"$enablestring" = xdisable; then
10558                   defaultval=yes
10559               else
10560                   defaultval=no
10561               fi
10562           fi
10563
10564           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
10565 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
10566           # Check whether --enable-accel was given.
10567 if test "${enable_accel+set}" = set; then
10568   enableval=$enable_accel;
10569                           if test "$enableval" = yes; then
10570                             wx_cv_use_accel='wxUSE_ACCEL=yes'
10571                           else
10572                             wx_cv_use_accel='wxUSE_ACCEL=no'
10573                           fi
10574                           cache=yes
10575
10576 else
10577
10578                           cache=no
10579                           LINE=`grep "^wxUSE_ACCEL=" ${wx_arg_cache_file}`
10580                           if test "x$LINE" != x ; then
10581                             eval "DEFAULT_$LINE"
10582                           fi
10583
10584                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
10585
10586 fi
10587
10588
10589           eval "$wx_cv_use_accel"
10590           if test "x$cache" = xyes; then
10591             echo "wxUSE_ACCEL=$wxUSE_ACCEL" >> ${wx_arg_cache_file}.tmp
10592           fi
10593
10594           if test x"$enablestring" = xdisable; then
10595             if test $wxUSE_ACCEL = yes; then
10596               result=no
10597             else
10598               result=yes
10599             fi
10600           else
10601             result=$wxUSE_ACCEL
10602           fi
10603
10604           { echo "$as_me:$LINENO: result: $result" >&5
10605 echo "${ECHO_T}$result" >&6; }
10606
10607
10608           enablestring=
10609           defaultval=$wxUSE_ALL_FEATURES
10610           if test -z "$defaultval"; then
10611               if test x"$enablestring" = xdisable; then
10612                   defaultval=yes
10613               else
10614                   defaultval=no
10615               fi
10616           fi
10617
10618           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10619 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10620           # Check whether --enable-animatectrl was given.
10621 if test "${enable_animatectrl+set}" = set; then
10622   enableval=$enable_animatectrl;
10623                           if test "$enableval" = yes; then
10624                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10625                           else
10626                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10627                           fi
10628                           cache=yes
10629
10630 else
10631
10632                           cache=no
10633                           LINE=`grep "^wxUSE_ANIMATIONCTRL=" ${wx_arg_cache_file}`
10634                           if test "x$LINE" != x ; then
10635                             eval "DEFAULT_$LINE"
10636                           fi
10637
10638                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10639
10640 fi
10641
10642
10643           eval "$wx_cv_use_animatectrl"
10644           if test "x$cache" = xyes; then
10645             echo "wxUSE_ANIMATIONCTRL=$wxUSE_ANIMATIONCTRL" >> ${wx_arg_cache_file}.tmp
10646           fi
10647
10648           if test x"$enablestring" = xdisable; then
10649             if test $wxUSE_ANIMATIONCTRL = yes; then
10650               result=no
10651             else
10652               result=yes
10653             fi
10654           else
10655             result=$wxUSE_ANIMATIONCTRL
10656           fi
10657
10658           { echo "$as_me:$LINENO: result: $result" >&5
10659 echo "${ECHO_T}$result" >&6; }
10660
10661
10662           enablestring=
10663           defaultval=$wxUSE_ALL_FEATURES
10664           if test -z "$defaultval"; then
10665               if test x"$enablestring" = xdisable; then
10666                   defaultval=yes
10667               else
10668                   defaultval=no
10669               fi
10670           fi
10671
10672           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10673 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10674           # Check whether --enable-button was given.
10675 if test "${enable_button+set}" = set; then
10676   enableval=$enable_button;
10677                           if test "$enableval" = yes; then
10678                             wx_cv_use_button='wxUSE_BUTTON=yes'
10679                           else
10680                             wx_cv_use_button='wxUSE_BUTTON=no'
10681                           fi
10682                           cache=yes
10683
10684 else
10685
10686                           cache=no
10687                           LINE=`grep "^wxUSE_BUTTON=" ${wx_arg_cache_file}`
10688                           if test "x$LINE" != x ; then
10689                             eval "DEFAULT_$LINE"
10690                           fi
10691
10692                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10693
10694 fi
10695
10696
10697           eval "$wx_cv_use_button"
10698           if test "x$cache" = xyes; then
10699             echo "wxUSE_BUTTON=$wxUSE_BUTTON" >> ${wx_arg_cache_file}.tmp
10700           fi
10701
10702           if test x"$enablestring" = xdisable; then
10703             if test $wxUSE_BUTTON = yes; then
10704               result=no
10705             else
10706               result=yes
10707             fi
10708           else
10709             result=$wxUSE_BUTTON
10710           fi
10711
10712           { echo "$as_me:$LINENO: result: $result" >&5
10713 echo "${ECHO_T}$result" >&6; }
10714
10715
10716           enablestring=
10717           defaultval=$wxUSE_ALL_FEATURES
10718           if test -z "$defaultval"; then
10719               if test x"$enablestring" = xdisable; then
10720                   defaultval=yes
10721               else
10722                   defaultval=no
10723               fi
10724           fi
10725
10726           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10727 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10728           # Check whether --enable-bmpbutton was given.
10729 if test "${enable_bmpbutton+set}" = set; then
10730   enableval=$enable_bmpbutton;
10731                           if test "$enableval" = yes; then
10732                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10733                           else
10734                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10735                           fi
10736                           cache=yes
10737
10738 else
10739
10740                           cache=no
10741                           LINE=`grep "^wxUSE_BMPBUTTON=" ${wx_arg_cache_file}`
10742                           if test "x$LINE" != x ; then
10743                             eval "DEFAULT_$LINE"
10744                           fi
10745
10746                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10747
10748 fi
10749
10750
10751           eval "$wx_cv_use_bmpbutton"
10752           if test "x$cache" = xyes; then
10753             echo "wxUSE_BMPBUTTON=$wxUSE_BMPBUTTON" >> ${wx_arg_cache_file}.tmp
10754           fi
10755
10756           if test x"$enablestring" = xdisable; then
10757             if test $wxUSE_BMPBUTTON = yes; then
10758               result=no
10759             else
10760               result=yes
10761             fi
10762           else
10763             result=$wxUSE_BMPBUTTON
10764           fi
10765
10766           { echo "$as_me:$LINENO: result: $result" >&5
10767 echo "${ECHO_T}$result" >&6; }
10768
10769
10770           enablestring=
10771           defaultval=$wxUSE_ALL_FEATURES
10772           if test -z "$defaultval"; then
10773               if test x"$enablestring" = xdisable; then
10774                   defaultval=yes
10775               else
10776                   defaultval=no
10777               fi
10778           fi
10779
10780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10781 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10782           # Check whether --enable-bmpcombobox was given.
10783 if test "${enable_bmpcombobox+set}" = set; then
10784   enableval=$enable_bmpcombobox;
10785                           if test "$enableval" = yes; then
10786                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10787                           else
10788                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10789                           fi
10790                           cache=yes
10791
10792 else
10793
10794                           cache=no
10795                           LINE=`grep "^wxUSE_BITMAPCOMBOBOX=" ${wx_arg_cache_file}`
10796                           if test "x$LINE" != x ; then
10797                             eval "DEFAULT_$LINE"
10798                           fi
10799
10800                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10801
10802 fi
10803
10804
10805           eval "$wx_cv_use_bmpcombobox"
10806           if test "x$cache" = xyes; then
10807             echo "wxUSE_BITMAPCOMBOBOX=$wxUSE_BITMAPCOMBOBOX" >> ${wx_arg_cache_file}.tmp
10808           fi
10809
10810           if test x"$enablestring" = xdisable; then
10811             if test $wxUSE_BITMAPCOMBOBOX = yes; then
10812               result=no
10813             else
10814               result=yes
10815             fi
10816           else
10817             result=$wxUSE_BITMAPCOMBOBOX
10818           fi
10819
10820           { echo "$as_me:$LINENO: result: $result" >&5
10821 echo "${ECHO_T}$result" >&6; }
10822
10823
10824           enablestring=
10825           defaultval=$wxUSE_ALL_FEATURES
10826           if test -z "$defaultval"; then
10827               if test x"$enablestring" = xdisable; then
10828                   defaultval=yes
10829               else
10830                   defaultval=no
10831               fi
10832           fi
10833
10834           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10835 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10836           # Check whether --enable-calendar was given.
10837 if test "${enable_calendar+set}" = set; then
10838   enableval=$enable_calendar;
10839                           if test "$enableval" = yes; then
10840                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10841                           else
10842                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10843                           fi
10844                           cache=yes
10845
10846 else
10847
10848                           cache=no
10849                           LINE=`grep "^wxUSE_CALCTRL=" ${wx_arg_cache_file}`
10850                           if test "x$LINE" != x ; then
10851                             eval "DEFAULT_$LINE"
10852                           fi
10853
10854                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10855
10856 fi
10857
10858
10859           eval "$wx_cv_use_calendar"
10860           if test "x$cache" = xyes; then
10861             echo "wxUSE_CALCTRL=$wxUSE_CALCTRL" >> ${wx_arg_cache_file}.tmp
10862           fi
10863
10864           if test x"$enablestring" = xdisable; then
10865             if test $wxUSE_CALCTRL = yes; then
10866               result=no
10867             else
10868               result=yes
10869             fi
10870           else
10871             result=$wxUSE_CALCTRL
10872           fi
10873
10874           { echo "$as_me:$LINENO: result: $result" >&5
10875 echo "${ECHO_T}$result" >&6; }
10876
10877
10878           enablestring=
10879           defaultval=$wxUSE_ALL_FEATURES
10880           if test -z "$defaultval"; then
10881               if test x"$enablestring" = xdisable; then
10882                   defaultval=yes
10883               else
10884                   defaultval=no
10885               fi
10886           fi
10887
10888           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10889 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10890           # Check whether --enable-caret was given.
10891 if test "${enable_caret+set}" = set; then
10892   enableval=$enable_caret;
10893                           if test "$enableval" = yes; then
10894                             wx_cv_use_caret='wxUSE_CARET=yes'
10895                           else
10896                             wx_cv_use_caret='wxUSE_CARET=no'
10897                           fi
10898                           cache=yes
10899
10900 else
10901
10902                           cache=no
10903                           LINE=`grep "^wxUSE_CARET=" ${wx_arg_cache_file}`
10904                           if test "x$LINE" != x ; then
10905                             eval "DEFAULT_$LINE"
10906                           fi
10907
10908                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10909
10910 fi
10911
10912
10913           eval "$wx_cv_use_caret"
10914           if test "x$cache" = xyes; then
10915             echo "wxUSE_CARET=$wxUSE_CARET" >> ${wx_arg_cache_file}.tmp
10916           fi
10917
10918           if test x"$enablestring" = xdisable; then
10919             if test $wxUSE_CARET = yes; then
10920               result=no
10921             else
10922               result=yes
10923             fi
10924           else
10925             result=$wxUSE_CARET
10926           fi
10927
10928           { echo "$as_me:$LINENO: result: $result" >&5
10929 echo "${ECHO_T}$result" >&6; }
10930
10931
10932           enablestring=
10933           defaultval=$wxUSE_ALL_FEATURES
10934           if test -z "$defaultval"; then
10935               if test x"$enablestring" = xdisable; then
10936                   defaultval=yes
10937               else
10938                   defaultval=no
10939               fi
10940           fi
10941
10942           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10943 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10944           # Check whether --enable-checkbox was given.
10945 if test "${enable_checkbox+set}" = set; then
10946   enableval=$enable_checkbox;
10947                           if test "$enableval" = yes; then
10948                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10949                           else
10950                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10951                           fi
10952                           cache=yes
10953
10954 else
10955
10956                           cache=no
10957                           LINE=`grep "^wxUSE_CHECKBOX=" ${wx_arg_cache_file}`
10958                           if test "x$LINE" != x ; then
10959                             eval "DEFAULT_$LINE"
10960                           fi
10961
10962                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10963
10964 fi
10965
10966
10967           eval "$wx_cv_use_checkbox"
10968           if test "x$cache" = xyes; then
10969             echo "wxUSE_CHECKBOX=$wxUSE_CHECKBOX" >> ${wx_arg_cache_file}.tmp
10970           fi
10971
10972           if test x"$enablestring" = xdisable; then
10973             if test $wxUSE_CHECKBOX = yes; then
10974               result=no
10975             else
10976               result=yes
10977             fi
10978           else
10979             result=$wxUSE_CHECKBOX
10980           fi
10981
10982           { echo "$as_me:$LINENO: result: $result" >&5
10983 echo "${ECHO_T}$result" >&6; }
10984
10985
10986           enablestring=
10987           defaultval=$wxUSE_ALL_FEATURES
10988           if test -z "$defaultval"; then
10989               if test x"$enablestring" = xdisable; then
10990                   defaultval=yes
10991               else
10992                   defaultval=no
10993               fi
10994           fi
10995
10996           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10997 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10998           # Check whether --enable-checklst was given.
10999 if test "${enable_checklst+set}" = set; then
11000   enableval=$enable_checklst;
11001                           if test "$enableval" = yes; then
11002                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
11003                           else
11004                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
11005                           fi
11006                           cache=yes
11007
11008 else
11009
11010                           cache=no
11011                           LINE=`grep "^wxUSE_CHECKLST=" ${wx_arg_cache_file}`
11012                           if test "x$LINE" != x ; then
11013                             eval "DEFAULT_$LINE"
11014                           fi
11015
11016                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
11017
11018 fi
11019
11020
11021           eval "$wx_cv_use_checklst"
11022           if test "x$cache" = xyes; then
11023             echo "wxUSE_CHECKLST=$wxUSE_CHECKLST" >> ${wx_arg_cache_file}.tmp
11024           fi
11025
11026           if test x"$enablestring" = xdisable; then
11027             if test $wxUSE_CHECKLST = yes; then
11028               result=no
11029             else
11030               result=yes
11031             fi
11032           else
11033             result=$wxUSE_CHECKLST
11034           fi
11035
11036           { echo "$as_me:$LINENO: result: $result" >&5
11037 echo "${ECHO_T}$result" >&6; }
11038
11039
11040           enablestring=
11041           defaultval=$wxUSE_ALL_FEATURES
11042           if test -z "$defaultval"; then
11043               if test x"$enablestring" = xdisable; then
11044                   defaultval=yes
11045               else
11046                   defaultval=no
11047               fi
11048           fi
11049
11050           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
11051 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
11052           # Check whether --enable-choice was given.
11053 if test "${enable_choice+set}" = set; then
11054   enableval=$enable_choice;
11055                           if test "$enableval" = yes; then
11056                             wx_cv_use_choice='wxUSE_CHOICE=yes'
11057                           else
11058                             wx_cv_use_choice='wxUSE_CHOICE=no'
11059                           fi
11060                           cache=yes
11061
11062 else
11063
11064                           cache=no
11065                           LINE=`grep "^wxUSE_CHOICE=" ${wx_arg_cache_file}`
11066                           if test "x$LINE" != x ; then
11067                             eval "DEFAULT_$LINE"
11068                           fi
11069
11070                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
11071
11072 fi
11073
11074
11075           eval "$wx_cv_use_choice"
11076           if test "x$cache" = xyes; then
11077             echo "wxUSE_CHOICE=$wxUSE_CHOICE" >> ${wx_arg_cache_file}.tmp
11078           fi
11079
11080           if test x"$enablestring" = xdisable; then
11081             if test $wxUSE_CHOICE = yes; then
11082               result=no
11083             else
11084               result=yes
11085             fi
11086           else
11087             result=$wxUSE_CHOICE
11088           fi
11089
11090           { echo "$as_me:$LINENO: result: $result" >&5
11091 echo "${ECHO_T}$result" >&6; }
11092
11093
11094           enablestring=
11095           defaultval=$wxUSE_ALL_FEATURES
11096           if test -z "$defaultval"; then
11097               if test x"$enablestring" = xdisable; then
11098                   defaultval=yes
11099               else
11100                   defaultval=no
11101               fi
11102           fi
11103
11104           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
11105 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
11106           # Check whether --enable-choicebook was given.
11107 if test "${enable_choicebook+set}" = set; then
11108   enableval=$enable_choicebook;
11109                           if test "$enableval" = yes; then
11110                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
11111                           else
11112                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
11113                           fi
11114                           cache=yes
11115
11116 else
11117
11118                           cache=no
11119                           LINE=`grep "^wxUSE_CHOICEBOOK=" ${wx_arg_cache_file}`
11120                           if test "x$LINE" != x ; then
11121                             eval "DEFAULT_$LINE"
11122                           fi
11123
11124                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
11125
11126 fi
11127
11128
11129           eval "$wx_cv_use_choicebook"
11130           if test "x$cache" = xyes; then
11131             echo "wxUSE_CHOICEBOOK=$wxUSE_CHOICEBOOK" >> ${wx_arg_cache_file}.tmp
11132           fi
11133
11134           if test x"$enablestring" = xdisable; then
11135             if test $wxUSE_CHOICEBOOK = yes; then
11136               result=no
11137             else
11138               result=yes
11139             fi
11140           else
11141             result=$wxUSE_CHOICEBOOK
11142           fi
11143
11144           { echo "$as_me:$LINENO: result: $result" >&5
11145 echo "${ECHO_T}$result" >&6; }
11146
11147
11148           enablestring=
11149           defaultval=$wxUSE_ALL_FEATURES
11150           if test -z "$defaultval"; then
11151               if test x"$enablestring" = xdisable; then
11152                   defaultval=yes
11153               else
11154                   defaultval=no
11155               fi
11156           fi
11157
11158           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
11159 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
11160           # Check whether --enable-collpane was given.
11161 if test "${enable_collpane+set}" = set; then
11162   enableval=$enable_collpane;
11163                           if test "$enableval" = yes; then
11164                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
11165                           else
11166                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
11167                           fi
11168                           cache=yes
11169
11170 else
11171
11172                           cache=no
11173                           LINE=`grep "^wxUSE_COLLPANE=" ${wx_arg_cache_file}`
11174                           if test "x$LINE" != x ; then
11175                             eval "DEFAULT_$LINE"
11176                           fi
11177
11178                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
11179
11180 fi
11181
11182
11183           eval "$wx_cv_use_collpane"
11184           if test "x$cache" = xyes; then
11185             echo "wxUSE_COLLPANE=$wxUSE_COLLPANE" >> ${wx_arg_cache_file}.tmp
11186           fi
11187
11188           if test x"$enablestring" = xdisable; then
11189             if test $wxUSE_COLLPANE = yes; then
11190               result=no
11191             else
11192               result=yes
11193             fi
11194           else
11195             result=$wxUSE_COLLPANE
11196           fi
11197
11198           { echo "$as_me:$LINENO: result: $result" >&5
11199 echo "${ECHO_T}$result" >&6; }
11200
11201
11202           enablestring=
11203           defaultval=$wxUSE_ALL_FEATURES
11204           if test -z "$defaultval"; then
11205               if test x"$enablestring" = xdisable; then
11206                   defaultval=yes
11207               else
11208                   defaultval=no
11209               fi
11210           fi
11211
11212           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
11213 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
11214           # Check whether --enable-colourpicker was given.
11215 if test "${enable_colourpicker+set}" = set; then
11216   enableval=$enable_colourpicker;
11217                           if test "$enableval" = yes; then
11218                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
11219                           else
11220                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
11221                           fi
11222                           cache=yes
11223
11224 else
11225
11226                           cache=no
11227                           LINE=`grep "^wxUSE_COLOURPICKERCTRL=" ${wx_arg_cache_file}`
11228                           if test "x$LINE" != x ; then
11229                             eval "DEFAULT_$LINE"
11230                           fi
11231
11232                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
11233
11234 fi
11235
11236
11237           eval "$wx_cv_use_colourpicker"
11238           if test "x$cache" = xyes; then
11239             echo "wxUSE_COLOURPICKERCTRL=$wxUSE_COLOURPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11240           fi
11241
11242           if test x"$enablestring" = xdisable; then
11243             if test $wxUSE_COLOURPICKERCTRL = yes; then
11244               result=no
11245             else
11246               result=yes
11247             fi
11248           else
11249             result=$wxUSE_COLOURPICKERCTRL
11250           fi
11251
11252           { echo "$as_me:$LINENO: result: $result" >&5
11253 echo "${ECHO_T}$result" >&6; }
11254
11255
11256           enablestring=
11257           defaultval=$wxUSE_ALL_FEATURES
11258           if test -z "$defaultval"; then
11259               if test x"$enablestring" = xdisable; then
11260                   defaultval=yes
11261               else
11262                   defaultval=no
11263               fi
11264           fi
11265
11266           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
11267 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
11268           # Check whether --enable-combobox was given.
11269 if test "${enable_combobox+set}" = set; then
11270   enableval=$enable_combobox;
11271                           if test "$enableval" = yes; then
11272                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
11273                           else
11274                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
11275                           fi
11276                           cache=yes
11277
11278 else
11279
11280                           cache=no
11281                           LINE=`grep "^wxUSE_COMBOBOX=" ${wx_arg_cache_file}`
11282                           if test "x$LINE" != x ; then
11283                             eval "DEFAULT_$LINE"
11284                           fi
11285
11286                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
11287
11288 fi
11289
11290
11291           eval "$wx_cv_use_combobox"
11292           if test "x$cache" = xyes; then
11293             echo "wxUSE_COMBOBOX=$wxUSE_COMBOBOX" >> ${wx_arg_cache_file}.tmp
11294           fi
11295
11296           if test x"$enablestring" = xdisable; then
11297             if test $wxUSE_COMBOBOX = yes; then
11298               result=no
11299             else
11300               result=yes
11301             fi
11302           else
11303             result=$wxUSE_COMBOBOX
11304           fi
11305
11306           { echo "$as_me:$LINENO: result: $result" >&5
11307 echo "${ECHO_T}$result" >&6; }
11308
11309
11310           enablestring=
11311           defaultval=$wxUSE_ALL_FEATURES
11312           if test -z "$defaultval"; then
11313               if test x"$enablestring" = xdisable; then
11314                   defaultval=yes
11315               else
11316                   defaultval=no
11317               fi
11318           fi
11319
11320           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
11321 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
11322           # Check whether --enable-comboctrl was given.
11323 if test "${enable_comboctrl+set}" = set; then
11324   enableval=$enable_comboctrl;
11325                           if test "$enableval" = yes; then
11326                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
11327                           else
11328                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
11329                           fi
11330                           cache=yes
11331
11332 else
11333
11334                           cache=no
11335                           LINE=`grep "^wxUSE_COMBOCTRL=" ${wx_arg_cache_file}`
11336                           if test "x$LINE" != x ; then
11337                             eval "DEFAULT_$LINE"
11338                           fi
11339
11340                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
11341
11342 fi
11343
11344
11345           eval "$wx_cv_use_comboctrl"
11346           if test "x$cache" = xyes; then
11347             echo "wxUSE_COMBOCTRL=$wxUSE_COMBOCTRL" >> ${wx_arg_cache_file}.tmp
11348           fi
11349
11350           if test x"$enablestring" = xdisable; then
11351             if test $wxUSE_COMBOCTRL = yes; then
11352               result=no
11353             else
11354               result=yes
11355             fi
11356           else
11357             result=$wxUSE_COMBOCTRL
11358           fi
11359
11360           { echo "$as_me:$LINENO: result: $result" >&5
11361 echo "${ECHO_T}$result" >&6; }
11362
11363
11364           enablestring=
11365           defaultval=$wxUSE_ALL_FEATURES
11366           if test -z "$defaultval"; then
11367               if test x"$enablestring" = xdisable; then
11368                   defaultval=yes
11369               else
11370                   defaultval=no
11371               fi
11372           fi
11373
11374           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
11375 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
11376           # Check whether --enable-datepick was given.
11377 if test "${enable_datepick+set}" = set; then
11378   enableval=$enable_datepick;
11379                           if test "$enableval" = yes; then
11380                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
11381                           else
11382                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
11383                           fi
11384                           cache=yes
11385
11386 else
11387
11388                           cache=no
11389                           LINE=`grep "^wxUSE_DATEPICKCTRL=" ${wx_arg_cache_file}`
11390                           if test "x$LINE" != x ; then
11391                             eval "DEFAULT_$LINE"
11392                           fi
11393
11394                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
11395
11396 fi
11397
11398
11399           eval "$wx_cv_use_datepick"
11400           if test "x$cache" = xyes; then
11401             echo "wxUSE_DATEPICKCTRL=$wxUSE_DATEPICKCTRL" >> ${wx_arg_cache_file}.tmp
11402           fi
11403
11404           if test x"$enablestring" = xdisable; then
11405             if test $wxUSE_DATEPICKCTRL = yes; then
11406               result=no
11407             else
11408               result=yes
11409             fi
11410           else
11411             result=$wxUSE_DATEPICKCTRL
11412           fi
11413
11414           { echo "$as_me:$LINENO: result: $result" >&5
11415 echo "${ECHO_T}$result" >&6; }
11416
11417
11418           enablestring=
11419           defaultval=$wxUSE_ALL_FEATURES
11420           if test -z "$defaultval"; then
11421               if test x"$enablestring" = xdisable; then
11422                   defaultval=yes
11423               else
11424                   defaultval=no
11425               fi
11426           fi
11427
11428           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
11429 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
11430           # Check whether --enable-dirpicker was given.
11431 if test "${enable_dirpicker+set}" = set; then
11432   enableval=$enable_dirpicker;
11433                           if test "$enableval" = yes; then
11434                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
11435                           else
11436                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
11437                           fi
11438                           cache=yes
11439
11440 else
11441
11442                           cache=no
11443                           LINE=`grep "^wxUSE_DIRPICKERCTRL=" ${wx_arg_cache_file}`
11444                           if test "x$LINE" != x ; then
11445                             eval "DEFAULT_$LINE"
11446                           fi
11447
11448                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
11449
11450 fi
11451
11452
11453           eval "$wx_cv_use_dirpicker"
11454           if test "x$cache" = xyes; then
11455             echo "wxUSE_DIRPICKERCTRL=$wxUSE_DIRPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11456           fi
11457
11458           if test x"$enablestring" = xdisable; then
11459             if test $wxUSE_DIRPICKERCTRL = yes; then
11460               result=no
11461             else
11462               result=yes
11463             fi
11464           else
11465             result=$wxUSE_DIRPICKERCTRL
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}-display" >&5
11483 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11484           # Check whether --enable-display was given.
11485 if test "${enable_display+set}" = set; then
11486   enableval=$enable_display;
11487                           if test "$enableval" = yes; then
11488                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11489                           else
11490                             wx_cv_use_display='wxUSE_DISPLAY=no'
11491                           fi
11492                           cache=yes
11493
11494 else
11495
11496                           cache=no
11497                           LINE=`grep "^wxUSE_DISPLAY=" ${wx_arg_cache_file}`
11498                           if test "x$LINE" != x ; then
11499                             eval "DEFAULT_$LINE"
11500                           fi
11501
11502                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11503
11504 fi
11505
11506
11507           eval "$wx_cv_use_display"
11508           if test "x$cache" = xyes; then
11509             echo "wxUSE_DISPLAY=$wxUSE_DISPLAY" >> ${wx_arg_cache_file}.tmp
11510           fi
11511
11512           if test x"$enablestring" = xdisable; then
11513             if test $wxUSE_DISPLAY = yes; then
11514               result=no
11515             else
11516               result=yes
11517             fi
11518           else
11519             result=$wxUSE_DISPLAY
11520           fi
11521
11522           { echo "$as_me:$LINENO: result: $result" >&5
11523 echo "${ECHO_T}$result" >&6; }
11524
11525
11526           enablestring=
11527           defaultval=$wxUSE_ALL_FEATURES
11528           if test -z "$defaultval"; then
11529               if test x"$enablestring" = xdisable; then
11530                   defaultval=yes
11531               else
11532                   defaultval=no
11533               fi
11534           fi
11535
11536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
11537 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
11538           # Check whether --enable-detect_sm was given.
11539 if test "${enable_detect_sm+set}" = set; then
11540   enableval=$enable_detect_sm;
11541                           if test "$enableval" = yes; then
11542                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
11543                           else
11544                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
11545                           fi
11546                           cache=yes
11547
11548 else
11549
11550                           cache=no
11551                           LINE=`grep "^wxUSE_DETECT_SM=" ${wx_arg_cache_file}`
11552                           if test "x$LINE" != x ; then
11553                             eval "DEFAULT_$LINE"
11554                           fi
11555
11556                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
11557
11558 fi
11559
11560
11561           eval "$wx_cv_use_detect_sm"
11562           if test "x$cache" = xyes; then
11563             echo "wxUSE_DETECT_SM=$wxUSE_DETECT_SM" >> ${wx_arg_cache_file}.tmp
11564           fi
11565
11566           if test x"$enablestring" = xdisable; then
11567             if test $wxUSE_DETECT_SM = yes; then
11568               result=no
11569             else
11570               result=yes
11571             fi
11572           else
11573             result=$wxUSE_DETECT_SM
11574           fi
11575
11576           { echo "$as_me:$LINENO: result: $result" >&5
11577 echo "${ECHO_T}$result" >&6; }
11578
11579
11580           enablestring=
11581           defaultval=$wxUSE_ALL_FEATURES
11582           if test -z "$defaultval"; then
11583               if test x"$enablestring" = xdisable; then
11584                   defaultval=yes
11585               else
11586                   defaultval=no
11587               fi
11588           fi
11589
11590           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11591 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11592           # Check whether --enable-editablebox was given.
11593 if test "${enable_editablebox+set}" = set; then
11594   enableval=$enable_editablebox;
11595                           if test "$enableval" = yes; then
11596                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11597                           else
11598                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11599                           fi
11600                           cache=yes
11601
11602 else
11603
11604                           cache=no
11605                           LINE=`grep "^wxUSE_EDITABLELISTBOX=" ${wx_arg_cache_file}`
11606                           if test "x$LINE" != x ; then
11607                             eval "DEFAULT_$LINE"
11608                           fi
11609
11610                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11611
11612 fi
11613
11614
11615           eval "$wx_cv_use_editablebox"
11616           if test "x$cache" = xyes; then
11617             echo "wxUSE_EDITABLELISTBOX=$wxUSE_EDITABLELISTBOX" >> ${wx_arg_cache_file}.tmp
11618           fi
11619
11620           if test x"$enablestring" = xdisable; then
11621             if test $wxUSE_EDITABLELISTBOX = yes; then
11622               result=no
11623             else
11624               result=yes
11625             fi
11626           else
11627             result=$wxUSE_EDITABLELISTBOX
11628           fi
11629
11630           { echo "$as_me:$LINENO: result: $result" >&5
11631 echo "${ECHO_T}$result" >&6; }
11632
11633
11634           enablestring=
11635           defaultval=$wxUSE_ALL_FEATURES
11636           if test -z "$defaultval"; then
11637               if test x"$enablestring" = xdisable; then
11638                   defaultval=yes
11639               else
11640                   defaultval=no
11641               fi
11642           fi
11643
11644           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11645 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11646           # Check whether --enable-filepicker was given.
11647 if test "${enable_filepicker+set}" = set; then
11648   enableval=$enable_filepicker;
11649                           if test "$enableval" = yes; then
11650                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11651                           else
11652                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11653                           fi
11654                           cache=yes
11655
11656 else
11657
11658                           cache=no
11659                           LINE=`grep "^wxUSE_FILEPICKERCTRL=" ${wx_arg_cache_file}`
11660                           if test "x$LINE" != x ; then
11661                             eval "DEFAULT_$LINE"
11662                           fi
11663
11664                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11665
11666 fi
11667
11668
11669           eval "$wx_cv_use_filepicker"
11670           if test "x$cache" = xyes; then
11671             echo "wxUSE_FILEPICKERCTRL=$wxUSE_FILEPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11672           fi
11673
11674           if test x"$enablestring" = xdisable; then
11675             if test $wxUSE_FILEPICKERCTRL = yes; then
11676               result=no
11677             else
11678               result=yes
11679             fi
11680           else
11681             result=$wxUSE_FILEPICKERCTRL
11682           fi
11683
11684           { echo "$as_me:$LINENO: result: $result" >&5
11685 echo "${ECHO_T}$result" >&6; }
11686
11687
11688           enablestring=
11689           defaultval=$wxUSE_ALL_FEATURES
11690           if test -z "$defaultval"; then
11691               if test x"$enablestring" = xdisable; then
11692                   defaultval=yes
11693               else
11694                   defaultval=no
11695               fi
11696           fi
11697
11698           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11699 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11700           # Check whether --enable-fontpicker was given.
11701 if test "${enable_fontpicker+set}" = set; then
11702   enableval=$enable_fontpicker;
11703                           if test "$enableval" = yes; then
11704                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11705                           else
11706                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11707                           fi
11708                           cache=yes
11709
11710 else
11711
11712                           cache=no
11713                           LINE=`grep "^wxUSE_FONTPICKERCTRL=" ${wx_arg_cache_file}`
11714                           if test "x$LINE" != x ; then
11715                             eval "DEFAULT_$LINE"
11716                           fi
11717
11718                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11719
11720 fi
11721
11722
11723           eval "$wx_cv_use_fontpicker"
11724           if test "x$cache" = xyes; then
11725             echo "wxUSE_FONTPICKERCTRL=$wxUSE_FONTPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11726           fi
11727
11728           if test x"$enablestring" = xdisable; then
11729             if test $wxUSE_FONTPICKERCTRL = yes; then
11730               result=no
11731             else
11732               result=yes
11733             fi
11734           else
11735             result=$wxUSE_FONTPICKERCTRL
11736           fi
11737
11738           { echo "$as_me:$LINENO: result: $result" >&5
11739 echo "${ECHO_T}$result" >&6; }
11740
11741
11742           enablestring=
11743           defaultval=$wxUSE_ALL_FEATURES
11744           if test -z "$defaultval"; then
11745               if test x"$enablestring" = xdisable; then
11746                   defaultval=yes
11747               else
11748                   defaultval=no
11749               fi
11750           fi
11751
11752           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11753 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11754           # Check whether --enable-gauge was given.
11755 if test "${enable_gauge+set}" = set; then
11756   enableval=$enable_gauge;
11757                           if test "$enableval" = yes; then
11758                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11759                           else
11760                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11761                           fi
11762                           cache=yes
11763
11764 else
11765
11766                           cache=no
11767                           LINE=`grep "^wxUSE_GAUGE=" ${wx_arg_cache_file}`
11768                           if test "x$LINE" != x ; then
11769                             eval "DEFAULT_$LINE"
11770                           fi
11771
11772                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11773
11774 fi
11775
11776
11777           eval "$wx_cv_use_gauge"
11778           if test "x$cache" = xyes; then
11779             echo "wxUSE_GAUGE=$wxUSE_GAUGE" >> ${wx_arg_cache_file}.tmp
11780           fi
11781
11782           if test x"$enablestring" = xdisable; then
11783             if test $wxUSE_GAUGE = yes; then
11784               result=no
11785             else
11786               result=yes
11787             fi
11788           else
11789             result=$wxUSE_GAUGE
11790           fi
11791
11792           { echo "$as_me:$LINENO: result: $result" >&5
11793 echo "${ECHO_T}$result" >&6; }
11794
11795
11796           enablestring=
11797           defaultval=$wxUSE_ALL_FEATURES
11798           if test -z "$defaultval"; then
11799               if test x"$enablestring" = xdisable; then
11800                   defaultval=yes
11801               else
11802                   defaultval=no
11803               fi
11804           fi
11805
11806           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11807 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11808           # Check whether --enable-grid was given.
11809 if test "${enable_grid+set}" = set; then
11810   enableval=$enable_grid;
11811                           if test "$enableval" = yes; then
11812                             wx_cv_use_grid='wxUSE_GRID=yes'
11813                           else
11814                             wx_cv_use_grid='wxUSE_GRID=no'
11815                           fi
11816                           cache=yes
11817
11818 else
11819
11820                           cache=no
11821                           LINE=`grep "^wxUSE_GRID=" ${wx_arg_cache_file}`
11822                           if test "x$LINE" != x ; then
11823                             eval "DEFAULT_$LINE"
11824                           fi
11825
11826                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11827
11828 fi
11829
11830
11831           eval "$wx_cv_use_grid"
11832           if test "x$cache" = xyes; then
11833             echo "wxUSE_GRID=$wxUSE_GRID" >> ${wx_arg_cache_file}.tmp
11834           fi
11835
11836           if test x"$enablestring" = xdisable; then
11837             if test $wxUSE_GRID = yes; then
11838               result=no
11839             else
11840               result=yes
11841             fi
11842           else
11843             result=$wxUSE_GRID
11844           fi
11845
11846           { echo "$as_me:$LINENO: result: $result" >&5
11847 echo "${ECHO_T}$result" >&6; }
11848
11849
11850           enablestring=
11851           defaultval=$wxUSE_ALL_FEATURES
11852           if test -z "$defaultval"; then
11853               if test x"$enablestring" = xdisable; then
11854                   defaultval=yes
11855               else
11856                   defaultval=no
11857               fi
11858           fi
11859
11860           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
11861 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
11862           # Check whether --enable-dataviewctrl was given.
11863 if test "${enable_dataviewctrl+set}" = set; then
11864   enableval=$enable_dataviewctrl;
11865                           if test "$enableval" = yes; then
11866                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
11867                           else
11868                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
11869                           fi
11870                           cache=yes
11871
11872 else
11873
11874                           cache=no
11875                           LINE=`grep "^wxUSE_DATAVIEWCTRL=" ${wx_arg_cache_file}`
11876                           if test "x$LINE" != x ; then
11877                             eval "DEFAULT_$LINE"
11878                           fi
11879
11880                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
11881
11882 fi
11883
11884
11885           eval "$wx_cv_use_dataviewctrl"
11886           if test "x$cache" = xyes; then
11887             echo "wxUSE_DATAVIEWCTRL=$wxUSE_DATAVIEWCTRL" >> ${wx_arg_cache_file}.tmp
11888           fi
11889
11890           if test x"$enablestring" = xdisable; then
11891             if test $wxUSE_DATAVIEWCTRL = yes; then
11892               result=no
11893             else
11894               result=yes
11895             fi
11896           else
11897             result=$wxUSE_DATAVIEWCTRL
11898           fi
11899
11900           { echo "$as_me:$LINENO: result: $result" >&5
11901 echo "${ECHO_T}$result" >&6; }
11902
11903
11904           enablestring=
11905           defaultval=$wxUSE_ALL_FEATURES
11906           if test -z "$defaultval"; then
11907               if test x"$enablestring" = xdisable; then
11908                   defaultval=yes
11909               else
11910                   defaultval=no
11911               fi
11912           fi
11913
11914           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11915 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11916           # Check whether --enable-hyperlink was given.
11917 if test "${enable_hyperlink+set}" = set; then
11918   enableval=$enable_hyperlink;
11919                           if test "$enableval" = yes; then
11920                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11921                           else
11922                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11923                           fi
11924                           cache=yes
11925
11926 else
11927
11928                           cache=no
11929                           LINE=`grep "^wxUSE_HYPERLINKCTRL=" ${wx_arg_cache_file}`
11930                           if test "x$LINE" != x ; then
11931                             eval "DEFAULT_$LINE"
11932                           fi
11933
11934                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11935
11936 fi
11937
11938
11939           eval "$wx_cv_use_hyperlink"
11940           if test "x$cache" = xyes; then
11941             echo "wxUSE_HYPERLINKCTRL=$wxUSE_HYPERLINKCTRL" >> ${wx_arg_cache_file}.tmp
11942           fi
11943
11944           if test x"$enablestring" = xdisable; then
11945             if test $wxUSE_HYPERLINKCTRL = yes; then
11946               result=no
11947             else
11948               result=yes
11949             fi
11950           else
11951             result=$wxUSE_HYPERLINKCTRL
11952           fi
11953
11954           { echo "$as_me:$LINENO: result: $result" >&5
11955 echo "${ECHO_T}$result" >&6; }
11956
11957
11958           enablestring=
11959           defaultval=$wxUSE_ALL_FEATURES
11960           if test -z "$defaultval"; then
11961               if test x"$enablestring" = xdisable; then
11962                   defaultval=yes
11963               else
11964                   defaultval=no
11965               fi
11966           fi
11967
11968           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11969 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11970           # Check whether --enable-imaglist was given.
11971 if test "${enable_imaglist+set}" = set; then
11972   enableval=$enable_imaglist;
11973                           if test "$enableval" = yes; then
11974                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11975                           else
11976                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11977                           fi
11978                           cache=yes
11979
11980 else
11981
11982                           cache=no
11983                           LINE=`grep "^wxUSE_IMAGLIST=" ${wx_arg_cache_file}`
11984                           if test "x$LINE" != x ; then
11985                             eval "DEFAULT_$LINE"
11986                           fi
11987
11988                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11989
11990 fi
11991
11992
11993           eval "$wx_cv_use_imaglist"
11994           if test "x$cache" = xyes; then
11995             echo "wxUSE_IMAGLIST=$wxUSE_IMAGLIST" >> ${wx_arg_cache_file}.tmp
11996           fi
11997
11998           if test x"$enablestring" = xdisable; then
11999             if test $wxUSE_IMAGLIST = yes; then
12000               result=no
12001             else
12002               result=yes
12003             fi
12004           else
12005             result=$wxUSE_IMAGLIST
12006           fi
12007
12008           { echo "$as_me:$LINENO: result: $result" >&5
12009 echo "${ECHO_T}$result" >&6; }
12010
12011
12012           enablestring=
12013           defaultval=$wxUSE_ALL_FEATURES
12014           if test -z "$defaultval"; then
12015               if test x"$enablestring" = xdisable; then
12016                   defaultval=yes
12017               else
12018                   defaultval=no
12019               fi
12020           fi
12021
12022           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
12023 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
12024           # Check whether --enable-listbook was given.
12025 if test "${enable_listbook+set}" = set; then
12026   enableval=$enable_listbook;
12027                           if test "$enableval" = yes; then
12028                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
12029                           else
12030                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
12031                           fi
12032                           cache=yes
12033
12034 else
12035
12036                           cache=no
12037                           LINE=`grep "^wxUSE_LISTBOOK=" ${wx_arg_cache_file}`
12038                           if test "x$LINE" != x ; then
12039                             eval "DEFAULT_$LINE"
12040                           fi
12041
12042                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
12043
12044 fi
12045
12046
12047           eval "$wx_cv_use_listbook"
12048           if test "x$cache" = xyes; then
12049             echo "wxUSE_LISTBOOK=$wxUSE_LISTBOOK" >> ${wx_arg_cache_file}.tmp
12050           fi
12051
12052           if test x"$enablestring" = xdisable; then
12053             if test $wxUSE_LISTBOOK = yes; then
12054               result=no
12055             else
12056               result=yes
12057             fi
12058           else
12059             result=$wxUSE_LISTBOOK
12060           fi
12061
12062           { echo "$as_me:$LINENO: result: $result" >&5
12063 echo "${ECHO_T}$result" >&6; }
12064
12065
12066           enablestring=
12067           defaultval=$wxUSE_ALL_FEATURES
12068           if test -z "$defaultval"; then
12069               if test x"$enablestring" = xdisable; then
12070                   defaultval=yes
12071               else
12072                   defaultval=no
12073               fi
12074           fi
12075
12076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
12077 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
12078           # Check whether --enable-listbox was given.
12079 if test "${enable_listbox+set}" = set; then
12080   enableval=$enable_listbox;
12081                           if test "$enableval" = yes; then
12082                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
12083                           else
12084                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
12085                           fi
12086                           cache=yes
12087
12088 else
12089
12090                           cache=no
12091                           LINE=`grep "^wxUSE_LISTBOX=" ${wx_arg_cache_file}`
12092                           if test "x$LINE" != x ; then
12093                             eval "DEFAULT_$LINE"
12094                           fi
12095
12096                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
12097
12098 fi
12099
12100
12101           eval "$wx_cv_use_listbox"
12102           if test "x$cache" = xyes; then
12103             echo "wxUSE_LISTBOX=$wxUSE_LISTBOX" >> ${wx_arg_cache_file}.tmp
12104           fi
12105
12106           if test x"$enablestring" = xdisable; then
12107             if test $wxUSE_LISTBOX = yes; then
12108               result=no
12109             else
12110               result=yes
12111             fi
12112           else
12113             result=$wxUSE_LISTBOX
12114           fi
12115
12116           { echo "$as_me:$LINENO: result: $result" >&5
12117 echo "${ECHO_T}$result" >&6; }
12118
12119
12120           enablestring=
12121           defaultval=$wxUSE_ALL_FEATURES
12122           if test -z "$defaultval"; then
12123               if test x"$enablestring" = xdisable; then
12124                   defaultval=yes
12125               else
12126                   defaultval=no
12127               fi
12128           fi
12129
12130           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
12131 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
12132           # Check whether --enable-listctrl was given.
12133 if test "${enable_listctrl+set}" = set; then
12134   enableval=$enable_listctrl;
12135                           if test "$enableval" = yes; then
12136                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
12137                           else
12138                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
12139                           fi
12140                           cache=yes
12141
12142 else
12143
12144                           cache=no
12145                           LINE=`grep "^wxUSE_LISTCTRL=" ${wx_arg_cache_file}`
12146                           if test "x$LINE" != x ; then
12147                             eval "DEFAULT_$LINE"
12148                           fi
12149
12150                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
12151
12152 fi
12153
12154
12155           eval "$wx_cv_use_listctrl"
12156           if test "x$cache" = xyes; then
12157             echo "wxUSE_LISTCTRL=$wxUSE_LISTCTRL" >> ${wx_arg_cache_file}.tmp
12158           fi
12159
12160           if test x"$enablestring" = xdisable; then
12161             if test $wxUSE_LISTCTRL = yes; then
12162               result=no
12163             else
12164               result=yes
12165             fi
12166           else
12167             result=$wxUSE_LISTCTRL
12168           fi
12169
12170           { echo "$as_me:$LINENO: result: $result" >&5
12171 echo "${ECHO_T}$result" >&6; }
12172
12173
12174           enablestring=
12175           defaultval=$wxUSE_ALL_FEATURES
12176           if test -z "$defaultval"; then
12177               if test x"$enablestring" = xdisable; then
12178                   defaultval=yes
12179               else
12180                   defaultval=no
12181               fi
12182           fi
12183
12184           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
12185 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
12186           # Check whether --enable-notebook was given.
12187 if test "${enable_notebook+set}" = set; then
12188   enableval=$enable_notebook;
12189                           if test "$enableval" = yes; then
12190                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
12191                           else
12192                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
12193                           fi
12194                           cache=yes
12195
12196 else
12197
12198                           cache=no
12199                           LINE=`grep "^wxUSE_NOTEBOOK=" ${wx_arg_cache_file}`
12200                           if test "x$LINE" != x ; then
12201                             eval "DEFAULT_$LINE"
12202                           fi
12203
12204                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
12205
12206 fi
12207
12208
12209           eval "$wx_cv_use_notebook"
12210           if test "x$cache" = xyes; then
12211             echo "wxUSE_NOTEBOOK=$wxUSE_NOTEBOOK" >> ${wx_arg_cache_file}.tmp
12212           fi
12213
12214           if test x"$enablestring" = xdisable; then
12215             if test $wxUSE_NOTEBOOK = yes; then
12216               result=no
12217             else
12218               result=yes
12219             fi
12220           else
12221             result=$wxUSE_NOTEBOOK
12222           fi
12223
12224           { echo "$as_me:$LINENO: result: $result" >&5
12225 echo "${ECHO_T}$result" >&6; }
12226
12227
12228           enablestring=
12229           defaultval=$wxUSE_ALL_FEATURES
12230           if test -z "$defaultval"; then
12231               if test x"$enablestring" = xdisable; then
12232                   defaultval=yes
12233               else
12234                   defaultval=no
12235               fi
12236           fi
12237
12238           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
12239 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
12240           # Check whether --enable-odcombobox was given.
12241 if test "${enable_odcombobox+set}" = set; then
12242   enableval=$enable_odcombobox;
12243                           if test "$enableval" = yes; then
12244                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
12245                           else
12246                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
12247                           fi
12248                           cache=yes
12249
12250 else
12251
12252                           cache=no
12253                           LINE=`grep "^wxUSE_ODCOMBOBOX=" ${wx_arg_cache_file}`
12254                           if test "x$LINE" != x ; then
12255                             eval "DEFAULT_$LINE"
12256                           fi
12257
12258                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
12259
12260 fi
12261
12262
12263           eval "$wx_cv_use_odcombobox"
12264           if test "x$cache" = xyes; then
12265             echo "wxUSE_ODCOMBOBOX=$wxUSE_ODCOMBOBOX" >> ${wx_arg_cache_file}.tmp
12266           fi
12267
12268           if test x"$enablestring" = xdisable; then
12269             if test $wxUSE_ODCOMBOBOX = yes; then
12270               result=no
12271             else
12272               result=yes
12273             fi
12274           else
12275             result=$wxUSE_ODCOMBOBOX
12276           fi
12277
12278           { echo "$as_me:$LINENO: result: $result" >&5
12279 echo "${ECHO_T}$result" >&6; }
12280
12281
12282           enablestring=
12283           defaultval=$wxUSE_ALL_FEATURES
12284           if test -z "$defaultval"; then
12285               if test x"$enablestring" = xdisable; then
12286                   defaultval=yes
12287               else
12288                   defaultval=no
12289               fi
12290           fi
12291
12292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
12293 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
12294           # Check whether --enable-radiobox was given.
12295 if test "${enable_radiobox+set}" = set; then
12296   enableval=$enable_radiobox;
12297                           if test "$enableval" = yes; then
12298                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
12299                           else
12300                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
12301                           fi
12302                           cache=yes
12303
12304 else
12305
12306                           cache=no
12307                           LINE=`grep "^wxUSE_RADIOBOX=" ${wx_arg_cache_file}`
12308                           if test "x$LINE" != x ; then
12309                             eval "DEFAULT_$LINE"
12310                           fi
12311
12312                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
12313
12314 fi
12315
12316
12317           eval "$wx_cv_use_radiobox"
12318           if test "x$cache" = xyes; then
12319             echo "wxUSE_RADIOBOX=$wxUSE_RADIOBOX" >> ${wx_arg_cache_file}.tmp
12320           fi
12321
12322           if test x"$enablestring" = xdisable; then
12323             if test $wxUSE_RADIOBOX = yes; then
12324               result=no
12325             else
12326               result=yes
12327             fi
12328           else
12329             result=$wxUSE_RADIOBOX
12330           fi
12331
12332           { echo "$as_me:$LINENO: result: $result" >&5
12333 echo "${ECHO_T}$result" >&6; }
12334
12335
12336           enablestring=
12337           defaultval=$wxUSE_ALL_FEATURES
12338           if test -z "$defaultval"; then
12339               if test x"$enablestring" = xdisable; then
12340                   defaultval=yes
12341               else
12342                   defaultval=no
12343               fi
12344           fi
12345
12346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
12347 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
12348           # Check whether --enable-radiobtn was given.
12349 if test "${enable_radiobtn+set}" = set; then
12350   enableval=$enable_radiobtn;
12351                           if test "$enableval" = yes; then
12352                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
12353                           else
12354                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
12355                           fi
12356                           cache=yes
12357
12358 else
12359
12360                           cache=no
12361                           LINE=`grep "^wxUSE_RADIOBTN=" ${wx_arg_cache_file}`
12362                           if test "x$LINE" != x ; then
12363                             eval "DEFAULT_$LINE"
12364                           fi
12365
12366                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
12367
12368 fi
12369
12370
12371           eval "$wx_cv_use_radiobtn"
12372           if test "x$cache" = xyes; then
12373             echo "wxUSE_RADIOBTN=$wxUSE_RADIOBTN" >> ${wx_arg_cache_file}.tmp
12374           fi
12375
12376           if test x"$enablestring" = xdisable; then
12377             if test $wxUSE_RADIOBTN = yes; then
12378               result=no
12379             else
12380               result=yes
12381             fi
12382           else
12383             result=$wxUSE_RADIOBTN
12384           fi
12385
12386           { echo "$as_me:$LINENO: result: $result" >&5
12387 echo "${ECHO_T}$result" >&6; }
12388
12389
12390           enablestring=
12391           defaultval=$wxUSE_ALL_FEATURES
12392           if test -z "$defaultval"; then
12393               if test x"$enablestring" = xdisable; then
12394                   defaultval=yes
12395               else
12396                   defaultval=no
12397               fi
12398           fi
12399
12400           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12401 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12402           # Check whether --enable-sash was given.
12403 if test "${enable_sash+set}" = set; then
12404   enableval=$enable_sash;
12405                           if test "$enableval" = yes; then
12406                             wx_cv_use_sash='wxUSE_SASH=yes'
12407                           else
12408                             wx_cv_use_sash='wxUSE_SASH=no'
12409                           fi
12410                           cache=yes
12411
12412 else
12413
12414                           cache=no
12415                           LINE=`grep "^wxUSE_SASH=" ${wx_arg_cache_file}`
12416                           if test "x$LINE" != x ; then
12417                             eval "DEFAULT_$LINE"
12418                           fi
12419
12420                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12421
12422 fi
12423
12424
12425           eval "$wx_cv_use_sash"
12426           if test "x$cache" = xyes; then
12427             echo "wxUSE_SASH=$wxUSE_SASH" >> ${wx_arg_cache_file}.tmp
12428           fi
12429
12430           if test x"$enablestring" = xdisable; then
12431             if test $wxUSE_SASH = yes; then
12432               result=no
12433             else
12434               result=yes
12435             fi
12436           else
12437             result=$wxUSE_SASH
12438           fi
12439
12440           { echo "$as_me:$LINENO: result: $result" >&5
12441 echo "${ECHO_T}$result" >&6; }
12442
12443
12444           enablestring=
12445           defaultval=$wxUSE_ALL_FEATURES
12446           if test -z "$defaultval"; then
12447               if test x"$enablestring" = xdisable; then
12448                   defaultval=yes
12449               else
12450                   defaultval=no
12451               fi
12452           fi
12453
12454           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12455 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12456           # Check whether --enable-scrollbar was given.
12457 if test "${enable_scrollbar+set}" = set; then
12458   enableval=$enable_scrollbar;
12459                           if test "$enableval" = yes; then
12460                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12461                           else
12462                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12463                           fi
12464                           cache=yes
12465
12466 else
12467
12468                           cache=no
12469                           LINE=`grep "^wxUSE_SCROLLBAR=" ${wx_arg_cache_file}`
12470                           if test "x$LINE" != x ; then
12471                             eval "DEFAULT_$LINE"
12472                           fi
12473
12474                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12475
12476 fi
12477
12478
12479           eval "$wx_cv_use_scrollbar"
12480           if test "x$cache" = xyes; then
12481             echo "wxUSE_SCROLLBAR=$wxUSE_SCROLLBAR" >> ${wx_arg_cache_file}.tmp
12482           fi
12483
12484           if test x"$enablestring" = xdisable; then
12485             if test $wxUSE_SCROLLBAR = yes; then
12486               result=no
12487             else
12488               result=yes
12489             fi
12490           else
12491             result=$wxUSE_SCROLLBAR
12492           fi
12493
12494           { echo "$as_me:$LINENO: result: $result" >&5
12495 echo "${ECHO_T}$result" >&6; }
12496
12497
12498           enablestring=
12499           defaultval=$wxUSE_ALL_FEATURES
12500           if test -z "$defaultval"; then
12501               if test x"$enablestring" = xdisable; then
12502                   defaultval=yes
12503               else
12504                   defaultval=no
12505               fi
12506           fi
12507
12508           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12509 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12510           # Check whether --enable-searchctrl was given.
12511 if test "${enable_searchctrl+set}" = set; then
12512   enableval=$enable_searchctrl;
12513                           if test "$enableval" = yes; then
12514                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12515                           else
12516                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12517                           fi
12518                           cache=yes
12519
12520 else
12521
12522                           cache=no
12523                           LINE=`grep "^wxUSE_SEARCHCTRL=" ${wx_arg_cache_file}`
12524                           if test "x$LINE" != x ; then
12525                             eval "DEFAULT_$LINE"
12526                           fi
12527
12528                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12529
12530 fi
12531
12532
12533           eval "$wx_cv_use_searchctrl"
12534           if test "x$cache" = xyes; then
12535             echo "wxUSE_SEARCHCTRL=$wxUSE_SEARCHCTRL" >> ${wx_arg_cache_file}.tmp
12536           fi
12537
12538           if test x"$enablestring" = xdisable; then
12539             if test $wxUSE_SEARCHCTRL = yes; then
12540               result=no
12541             else
12542               result=yes
12543             fi
12544           else
12545             result=$wxUSE_SEARCHCTRL
12546           fi
12547
12548           { echo "$as_me:$LINENO: result: $result" >&5
12549 echo "${ECHO_T}$result" >&6; }
12550
12551
12552           enablestring=
12553           defaultval=$wxUSE_ALL_FEATURES
12554           if test -z "$defaultval"; then
12555               if test x"$enablestring" = xdisable; then
12556                   defaultval=yes
12557               else
12558                   defaultval=no
12559               fi
12560           fi
12561
12562           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12563 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12564           # Check whether --enable-slider was given.
12565 if test "${enable_slider+set}" = set; then
12566   enableval=$enable_slider;
12567                           if test "$enableval" = yes; then
12568                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12569                           else
12570                             wx_cv_use_slider='wxUSE_SLIDER=no'
12571                           fi
12572                           cache=yes
12573
12574 else
12575
12576                           cache=no
12577                           LINE=`grep "^wxUSE_SLIDER=" ${wx_arg_cache_file}`
12578                           if test "x$LINE" != x ; then
12579                             eval "DEFAULT_$LINE"
12580                           fi
12581
12582                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12583
12584 fi
12585
12586
12587           eval "$wx_cv_use_slider"
12588           if test "x$cache" = xyes; then
12589             echo "wxUSE_SLIDER=$wxUSE_SLIDER" >> ${wx_arg_cache_file}.tmp
12590           fi
12591
12592           if test x"$enablestring" = xdisable; then
12593             if test $wxUSE_SLIDER = yes; then
12594               result=no
12595             else
12596               result=yes
12597             fi
12598           else
12599             result=$wxUSE_SLIDER
12600           fi
12601
12602           { echo "$as_me:$LINENO: result: $result" >&5
12603 echo "${ECHO_T}$result" >&6; }
12604
12605
12606           enablestring=
12607           defaultval=$wxUSE_ALL_FEATURES
12608           if test -z "$defaultval"; then
12609               if test x"$enablestring" = xdisable; then
12610                   defaultval=yes
12611               else
12612                   defaultval=no
12613               fi
12614           fi
12615
12616           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12617 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12618           # Check whether --enable-spinbtn was given.
12619 if test "${enable_spinbtn+set}" = set; then
12620   enableval=$enable_spinbtn;
12621                           if test "$enableval" = yes; then
12622                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12623                           else
12624                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12625                           fi
12626                           cache=yes
12627
12628 else
12629
12630                           cache=no
12631                           LINE=`grep "^wxUSE_SPINBTN=" ${wx_arg_cache_file}`
12632                           if test "x$LINE" != x ; then
12633                             eval "DEFAULT_$LINE"
12634                           fi
12635
12636                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12637
12638 fi
12639
12640
12641           eval "$wx_cv_use_spinbtn"
12642           if test "x$cache" = xyes; then
12643             echo "wxUSE_SPINBTN=$wxUSE_SPINBTN" >> ${wx_arg_cache_file}.tmp
12644           fi
12645
12646           if test x"$enablestring" = xdisable; then
12647             if test $wxUSE_SPINBTN = yes; then
12648               result=no
12649             else
12650               result=yes
12651             fi
12652           else
12653             result=$wxUSE_SPINBTN
12654           fi
12655
12656           { echo "$as_me:$LINENO: result: $result" >&5
12657 echo "${ECHO_T}$result" >&6; }
12658
12659
12660           enablestring=
12661           defaultval=$wxUSE_ALL_FEATURES
12662           if test -z "$defaultval"; then
12663               if test x"$enablestring" = xdisable; then
12664                   defaultval=yes
12665               else
12666                   defaultval=no
12667               fi
12668           fi
12669
12670           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12671 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12672           # Check whether --enable-spinctrl was given.
12673 if test "${enable_spinctrl+set}" = set; then
12674   enableval=$enable_spinctrl;
12675                           if test "$enableval" = yes; then
12676                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12677                           else
12678                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12679                           fi
12680                           cache=yes
12681
12682 else
12683
12684                           cache=no
12685                           LINE=`grep "^wxUSE_SPINCTRL=" ${wx_arg_cache_file}`
12686                           if test "x$LINE" != x ; then
12687                             eval "DEFAULT_$LINE"
12688                           fi
12689
12690                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12691
12692 fi
12693
12694
12695           eval "$wx_cv_use_spinctrl"
12696           if test "x$cache" = xyes; then
12697             echo "wxUSE_SPINCTRL=$wxUSE_SPINCTRL" >> ${wx_arg_cache_file}.tmp
12698           fi
12699
12700           if test x"$enablestring" = xdisable; then
12701             if test $wxUSE_SPINCTRL = yes; then
12702               result=no
12703             else
12704               result=yes
12705             fi
12706           else
12707             result=$wxUSE_SPINCTRL
12708           fi
12709
12710           { echo "$as_me:$LINENO: result: $result" >&5
12711 echo "${ECHO_T}$result" >&6; }
12712
12713
12714           enablestring=
12715           defaultval=$wxUSE_ALL_FEATURES
12716           if test -z "$defaultval"; then
12717               if test x"$enablestring" = xdisable; then
12718                   defaultval=yes
12719               else
12720                   defaultval=no
12721               fi
12722           fi
12723
12724           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12725 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12726           # Check whether --enable-splitter was given.
12727 if test "${enable_splitter+set}" = set; then
12728   enableval=$enable_splitter;
12729                           if test "$enableval" = yes; then
12730                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12731                           else
12732                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12733                           fi
12734                           cache=yes
12735
12736 else
12737
12738                           cache=no
12739                           LINE=`grep "^wxUSE_SPLITTER=" ${wx_arg_cache_file}`
12740                           if test "x$LINE" != x ; then
12741                             eval "DEFAULT_$LINE"
12742                           fi
12743
12744                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12745
12746 fi
12747
12748
12749           eval "$wx_cv_use_splitter"
12750           if test "x$cache" = xyes; then
12751             echo "wxUSE_SPLITTER=$wxUSE_SPLITTER" >> ${wx_arg_cache_file}.tmp
12752           fi
12753
12754           if test x"$enablestring" = xdisable; then
12755             if test $wxUSE_SPLITTER = yes; then
12756               result=no
12757             else
12758               result=yes
12759             fi
12760           else
12761             result=$wxUSE_SPLITTER
12762           fi
12763
12764           { echo "$as_me:$LINENO: result: $result" >&5
12765 echo "${ECHO_T}$result" >&6; }
12766
12767
12768           enablestring=
12769           defaultval=$wxUSE_ALL_FEATURES
12770           if test -z "$defaultval"; then
12771               if test x"$enablestring" = xdisable; then
12772                   defaultval=yes
12773               else
12774                   defaultval=no
12775               fi
12776           fi
12777
12778           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12779 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12780           # Check whether --enable-statbmp was given.
12781 if test "${enable_statbmp+set}" = set; then
12782   enableval=$enable_statbmp;
12783                           if test "$enableval" = yes; then
12784                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12785                           else
12786                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12787                           fi
12788                           cache=yes
12789
12790 else
12791
12792                           cache=no
12793                           LINE=`grep "^wxUSE_STATBMP=" ${wx_arg_cache_file}`
12794                           if test "x$LINE" != x ; then
12795                             eval "DEFAULT_$LINE"
12796                           fi
12797
12798                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12799
12800 fi
12801
12802
12803           eval "$wx_cv_use_statbmp"
12804           if test "x$cache" = xyes; then
12805             echo "wxUSE_STATBMP=$wxUSE_STATBMP" >> ${wx_arg_cache_file}.tmp
12806           fi
12807
12808           if test x"$enablestring" = xdisable; then
12809             if test $wxUSE_STATBMP = yes; then
12810               result=no
12811             else
12812               result=yes
12813             fi
12814           else
12815             result=$wxUSE_STATBMP
12816           fi
12817
12818           { echo "$as_me:$LINENO: result: $result" >&5
12819 echo "${ECHO_T}$result" >&6; }
12820
12821
12822           enablestring=
12823           defaultval=$wxUSE_ALL_FEATURES
12824           if test -z "$defaultval"; then
12825               if test x"$enablestring" = xdisable; then
12826                   defaultval=yes
12827               else
12828                   defaultval=no
12829               fi
12830           fi
12831
12832           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12833 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12834           # Check whether --enable-statbox was given.
12835 if test "${enable_statbox+set}" = set; then
12836   enableval=$enable_statbox;
12837                           if test "$enableval" = yes; then
12838                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12839                           else
12840                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12841                           fi
12842                           cache=yes
12843
12844 else
12845
12846                           cache=no
12847                           LINE=`grep "^wxUSE_STATBOX=" ${wx_arg_cache_file}`
12848                           if test "x$LINE" != x ; then
12849                             eval "DEFAULT_$LINE"
12850                           fi
12851
12852                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12853
12854 fi
12855
12856
12857           eval "$wx_cv_use_statbox"
12858           if test "x$cache" = xyes; then
12859             echo "wxUSE_STATBOX=$wxUSE_STATBOX" >> ${wx_arg_cache_file}.tmp
12860           fi
12861
12862           if test x"$enablestring" = xdisable; then
12863             if test $wxUSE_STATBOX = yes; then
12864               result=no
12865             else
12866               result=yes
12867             fi
12868           else
12869             result=$wxUSE_STATBOX
12870           fi
12871
12872           { echo "$as_me:$LINENO: result: $result" >&5
12873 echo "${ECHO_T}$result" >&6; }
12874
12875
12876           enablestring=
12877           defaultval=$wxUSE_ALL_FEATURES
12878           if test -z "$defaultval"; then
12879               if test x"$enablestring" = xdisable; then
12880                   defaultval=yes
12881               else
12882                   defaultval=no
12883               fi
12884           fi
12885
12886           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12887 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12888           # Check whether --enable-statline was given.
12889 if test "${enable_statline+set}" = set; then
12890   enableval=$enable_statline;
12891                           if test "$enableval" = yes; then
12892                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12893                           else
12894                             wx_cv_use_statline='wxUSE_STATLINE=no'
12895                           fi
12896                           cache=yes
12897
12898 else
12899
12900                           cache=no
12901                           LINE=`grep "^wxUSE_STATLINE=" ${wx_arg_cache_file}`
12902                           if test "x$LINE" != x ; then
12903                             eval "DEFAULT_$LINE"
12904                           fi
12905
12906                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12907
12908 fi
12909
12910
12911           eval "$wx_cv_use_statline"
12912           if test "x$cache" = xyes; then
12913             echo "wxUSE_STATLINE=$wxUSE_STATLINE" >> ${wx_arg_cache_file}.tmp
12914           fi
12915
12916           if test x"$enablestring" = xdisable; then
12917             if test $wxUSE_STATLINE = yes; then
12918               result=no
12919             else
12920               result=yes
12921             fi
12922           else
12923             result=$wxUSE_STATLINE
12924           fi
12925
12926           { echo "$as_me:$LINENO: result: $result" >&5
12927 echo "${ECHO_T}$result" >&6; }
12928
12929
12930           enablestring=
12931           defaultval=$wxUSE_ALL_FEATURES
12932           if test -z "$defaultval"; then
12933               if test x"$enablestring" = xdisable; then
12934                   defaultval=yes
12935               else
12936                   defaultval=no
12937               fi
12938           fi
12939
12940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12941 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12942           # Check whether --enable-stattext was given.
12943 if test "${enable_stattext+set}" = set; then
12944   enableval=$enable_stattext;
12945                           if test "$enableval" = yes; then
12946                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12947                           else
12948                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12949                           fi
12950                           cache=yes
12951
12952 else
12953
12954                           cache=no
12955                           LINE=`grep "^wxUSE_STATTEXT=" ${wx_arg_cache_file}`
12956                           if test "x$LINE" != x ; then
12957                             eval "DEFAULT_$LINE"
12958                           fi
12959
12960                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12961
12962 fi
12963
12964
12965           eval "$wx_cv_use_stattext"
12966           if test "x$cache" = xyes; then
12967             echo "wxUSE_STATTEXT=$wxUSE_STATTEXT" >> ${wx_arg_cache_file}.tmp
12968           fi
12969
12970           if test x"$enablestring" = xdisable; then
12971             if test $wxUSE_STATTEXT = yes; then
12972               result=no
12973             else
12974               result=yes
12975             fi
12976           else
12977             result=$wxUSE_STATTEXT
12978           fi
12979
12980           { echo "$as_me:$LINENO: result: $result" >&5
12981 echo "${ECHO_T}$result" >&6; }
12982
12983
12984           enablestring=
12985           defaultval=$wxUSE_ALL_FEATURES
12986           if test -z "$defaultval"; then
12987               if test x"$enablestring" = xdisable; then
12988                   defaultval=yes
12989               else
12990                   defaultval=no
12991               fi
12992           fi
12993
12994           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12995 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12996           # Check whether --enable-statusbar was given.
12997 if test "${enable_statusbar+set}" = set; then
12998   enableval=$enable_statusbar;
12999                           if test "$enableval" = yes; then
13000                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
13001                           else
13002                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
13003                           fi
13004                           cache=yes
13005
13006 else
13007
13008                           cache=no
13009                           LINE=`grep "^wxUSE_STATUSBAR=" ${wx_arg_cache_file}`
13010                           if test "x$LINE" != x ; then
13011                             eval "DEFAULT_$LINE"
13012                           fi
13013
13014                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
13015
13016 fi
13017
13018
13019           eval "$wx_cv_use_statusbar"
13020           if test "x$cache" = xyes; then
13021             echo "wxUSE_STATUSBAR=$wxUSE_STATUSBAR" >> ${wx_arg_cache_file}.tmp
13022           fi
13023
13024           if test x"$enablestring" = xdisable; then
13025             if test $wxUSE_STATUSBAR = yes; then
13026               result=no
13027             else
13028               result=yes
13029             fi
13030           else
13031             result=$wxUSE_STATUSBAR
13032           fi
13033
13034           { echo "$as_me:$LINENO: result: $result" >&5
13035 echo "${ECHO_T}$result" >&6; }
13036
13037
13038           enablestring=
13039           defaultval=$wxUSE_ALL_FEATURES
13040           if test -z "$defaultval"; then
13041               if test x"$enablestring" = xdisable; then
13042                   defaultval=yes
13043               else
13044                   defaultval=no
13045               fi
13046           fi
13047
13048           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
13049 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
13050           # Check whether --enable-tabdialog was given.
13051 if test "${enable_tabdialog+set}" = set; then
13052   enableval=$enable_tabdialog;
13053                           if test "$enableval" = yes; then
13054                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
13055                           else
13056                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
13057                           fi
13058                           cache=yes
13059
13060 else
13061
13062                           cache=no
13063                           LINE=`grep "^wxUSE_TAB_DIALOG=" ${wx_arg_cache_file}`
13064                           if test "x$LINE" != x ; then
13065                             eval "DEFAULT_$LINE"
13066                           fi
13067
13068                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
13069
13070 fi
13071
13072
13073           eval "$wx_cv_use_tabdialog"
13074           if test "x$cache" = xyes; then
13075             echo "wxUSE_TAB_DIALOG=$wxUSE_TAB_DIALOG" >> ${wx_arg_cache_file}.tmp
13076           fi
13077
13078           if test x"$enablestring" = xdisable; then
13079             if test $wxUSE_TAB_DIALOG = yes; then
13080               result=no
13081             else
13082               result=yes
13083             fi
13084           else
13085             result=$wxUSE_TAB_DIALOG
13086           fi
13087
13088           { echo "$as_me:$LINENO: result: $result" >&5
13089 echo "${ECHO_T}$result" >&6; }
13090
13091
13092           enablestring=
13093           defaultval=$wxUSE_ALL_FEATURES
13094           if test -z "$defaultval"; then
13095               if test x"$enablestring" = xdisable; then
13096                   defaultval=yes
13097               else
13098                   defaultval=no
13099               fi
13100           fi
13101
13102           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
13103 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
13104           # Check whether --enable-taskbaricon was given.
13105 if test "${enable_taskbaricon+set}" = set; then
13106   enableval=$enable_taskbaricon;
13107                           if test "$enableval" = yes; then
13108                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
13109                           else
13110                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
13111                           fi
13112                           cache=yes
13113
13114 else
13115
13116                           cache=no
13117                           LINE=`grep "^wxUSE_TASKBARICON=" ${wx_arg_cache_file}`
13118                           if test "x$LINE" != x ; then
13119                             eval "DEFAULT_$LINE"
13120                           fi
13121
13122                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
13123
13124 fi
13125
13126
13127           eval "$wx_cv_use_taskbaricon"
13128           if test "x$cache" = xyes; then
13129             echo "wxUSE_TASKBARICON=$wxUSE_TASKBARICON" >> ${wx_arg_cache_file}.tmp
13130           fi
13131
13132           if test x"$enablestring" = xdisable; then
13133             if test $wxUSE_TASKBARICON = yes; then
13134               result=no
13135             else
13136               result=yes
13137             fi
13138           else
13139             result=$wxUSE_TASKBARICON
13140           fi
13141
13142           { echo "$as_me:$LINENO: result: $result" >&5
13143 echo "${ECHO_T}$result" >&6; }
13144
13145
13146           enablestring=
13147           defaultval=$wxUSE_ALL_FEATURES
13148           if test -z "$defaultval"; then
13149               if test x"$enablestring" = xdisable; then
13150                   defaultval=yes
13151               else
13152                   defaultval=no
13153               fi
13154           fi
13155
13156           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
13157 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
13158           # Check whether --enable-textctrl was given.
13159 if test "${enable_textctrl+set}" = set; then
13160   enableval=$enable_textctrl;
13161                           if test "$enableval" = yes; then
13162                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
13163                           else
13164                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
13165                           fi
13166                           cache=yes
13167
13168 else
13169
13170                           cache=no
13171                           LINE=`grep "^wxUSE_TEXTCTRL=" ${wx_arg_cache_file}`
13172                           if test "x$LINE" != x ; then
13173                             eval "DEFAULT_$LINE"
13174                           fi
13175
13176                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
13177
13178 fi
13179
13180
13181           eval "$wx_cv_use_textctrl"
13182           if test "x$cache" = xyes; then
13183             echo "wxUSE_TEXTCTRL=$wxUSE_TEXTCTRL" >> ${wx_arg_cache_file}.tmp
13184           fi
13185
13186           if test x"$enablestring" = xdisable; then
13187             if test $wxUSE_TEXTCTRL = yes; then
13188               result=no
13189             else
13190               result=yes
13191             fi
13192           else
13193             result=$wxUSE_TEXTCTRL
13194           fi
13195
13196           { echo "$as_me:$LINENO: result: $result" >&5
13197 echo "${ECHO_T}$result" >&6; }
13198
13199
13200           enablestring=
13201           defaultval=$wxUSE_ALL_FEATURES
13202           if test -z "$defaultval"; then
13203               if test x"$enablestring" = xdisable; then
13204                   defaultval=yes
13205               else
13206                   defaultval=no
13207               fi
13208           fi
13209
13210           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
13211 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
13212           # Check whether --enable-togglebtn was given.
13213 if test "${enable_togglebtn+set}" = set; then
13214   enableval=$enable_togglebtn;
13215                           if test "$enableval" = yes; then
13216                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
13217                           else
13218                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
13219                           fi
13220                           cache=yes
13221
13222 else
13223
13224                           cache=no
13225                           LINE=`grep "^wxUSE_TOGGLEBTN=" ${wx_arg_cache_file}`
13226                           if test "x$LINE" != x ; then
13227                             eval "DEFAULT_$LINE"
13228                           fi
13229
13230                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
13231
13232 fi
13233
13234
13235           eval "$wx_cv_use_togglebtn"
13236           if test "x$cache" = xyes; then
13237             echo "wxUSE_TOGGLEBTN=$wxUSE_TOGGLEBTN" >> ${wx_arg_cache_file}.tmp
13238           fi
13239
13240           if test x"$enablestring" = xdisable; then
13241             if test $wxUSE_TOGGLEBTN = yes; then
13242               result=no
13243             else
13244               result=yes
13245             fi
13246           else
13247             result=$wxUSE_TOGGLEBTN
13248           fi
13249
13250           { echo "$as_me:$LINENO: result: $result" >&5
13251 echo "${ECHO_T}$result" >&6; }
13252
13253
13254           enablestring=
13255           defaultval=$wxUSE_ALL_FEATURES
13256           if test -z "$defaultval"; then
13257               if test x"$enablestring" = xdisable; then
13258                   defaultval=yes
13259               else
13260                   defaultval=no
13261               fi
13262           fi
13263
13264           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
13265 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
13266           # Check whether --enable-toolbar was given.
13267 if test "${enable_toolbar+set}" = set; then
13268   enableval=$enable_toolbar;
13269                           if test "$enableval" = yes; then
13270                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
13271                           else
13272                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
13273                           fi
13274                           cache=yes
13275
13276 else
13277
13278                           cache=no
13279                           LINE=`grep "^wxUSE_TOOLBAR=" ${wx_arg_cache_file}`
13280                           if test "x$LINE" != x ; then
13281                             eval "DEFAULT_$LINE"
13282                           fi
13283
13284                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
13285
13286 fi
13287
13288
13289           eval "$wx_cv_use_toolbar"
13290           if test "x$cache" = xyes; then
13291             echo "wxUSE_TOOLBAR=$wxUSE_TOOLBAR" >> ${wx_arg_cache_file}.tmp
13292           fi
13293
13294           if test x"$enablestring" = xdisable; then
13295             if test $wxUSE_TOOLBAR = yes; then
13296               result=no
13297             else
13298               result=yes
13299             fi
13300           else
13301             result=$wxUSE_TOOLBAR
13302           fi
13303
13304           { echo "$as_me:$LINENO: result: $result" >&5
13305 echo "${ECHO_T}$result" >&6; }
13306
13307
13308           enablestring=
13309           defaultval=$wxUSE_ALL_FEATURES
13310           if test -z "$defaultval"; then
13311               if test x"$enablestring" = xdisable; then
13312                   defaultval=yes
13313               else
13314                   defaultval=no
13315               fi
13316           fi
13317
13318           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
13319 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
13320           # Check whether --enable-tbarnative was given.
13321 if test "${enable_tbarnative+set}" = set; then
13322   enableval=$enable_tbarnative;
13323                           if test "$enableval" = yes; then
13324                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
13325                           else
13326                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
13327                           fi
13328                           cache=yes
13329
13330 else
13331
13332                           cache=no
13333                           LINE=`grep "^wxUSE_TOOLBAR_NATIVE=" ${wx_arg_cache_file}`
13334                           if test "x$LINE" != x ; then
13335                             eval "DEFAULT_$LINE"
13336                           fi
13337
13338                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
13339
13340 fi
13341
13342
13343           eval "$wx_cv_use_tbarnative"
13344           if test "x$cache" = xyes; then
13345             echo "wxUSE_TOOLBAR_NATIVE=$wxUSE_TOOLBAR_NATIVE" >> ${wx_arg_cache_file}.tmp
13346           fi
13347
13348           if test x"$enablestring" = xdisable; then
13349             if test $wxUSE_TOOLBAR_NATIVE = yes; then
13350               result=no
13351             else
13352               result=yes
13353             fi
13354           else
13355             result=$wxUSE_TOOLBAR_NATIVE
13356           fi
13357
13358           { echo "$as_me:$LINENO: result: $result" >&5
13359 echo "${ECHO_T}$result" >&6; }
13360
13361
13362           enablestring=
13363           defaultval=$wxUSE_ALL_FEATURES
13364           if test -z "$defaultval"; then
13365               if test x"$enablestring" = xdisable; then
13366                   defaultval=yes
13367               else
13368                   defaultval=no
13369               fi
13370           fi
13371
13372           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
13373 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
13374           # Check whether --enable-treebook was given.
13375 if test "${enable_treebook+set}" = set; then
13376   enableval=$enable_treebook;
13377                           if test "$enableval" = yes; then
13378                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
13379                           else
13380                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
13381                           fi
13382                           cache=yes
13383
13384 else
13385
13386                           cache=no
13387                           LINE=`grep "^wxUSE_TREEBOOK=" ${wx_arg_cache_file}`
13388                           if test "x$LINE" != x ; then
13389                             eval "DEFAULT_$LINE"
13390                           fi
13391
13392                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
13393
13394 fi
13395
13396
13397           eval "$wx_cv_use_treebook"
13398           if test "x$cache" = xyes; then
13399             echo "wxUSE_TREEBOOK=$wxUSE_TREEBOOK" >> ${wx_arg_cache_file}.tmp
13400           fi
13401
13402           if test x"$enablestring" = xdisable; then
13403             if test $wxUSE_TREEBOOK = yes; then
13404               result=no
13405             else
13406               result=yes
13407             fi
13408           else
13409             result=$wxUSE_TREEBOOK
13410           fi
13411
13412           { echo "$as_me:$LINENO: result: $result" >&5
13413 echo "${ECHO_T}$result" >&6; }
13414
13415
13416           enablestring=
13417           defaultval=$wxUSE_ALL_FEATURES
13418           if test -z "$defaultval"; then
13419               if test x"$enablestring" = xdisable; then
13420                   defaultval=yes
13421               else
13422                   defaultval=no
13423               fi
13424           fi
13425
13426           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
13427 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
13428           # Check whether --enable-toolbook was given.
13429 if test "${enable_toolbook+set}" = set; then
13430   enableval=$enable_toolbook;
13431                           if test "$enableval" = yes; then
13432                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
13433                           else
13434                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
13435                           fi
13436                           cache=yes
13437
13438 else
13439
13440                           cache=no
13441                           LINE=`grep "^wxUSE_TOOLBOOK=" ${wx_arg_cache_file}`
13442                           if test "x$LINE" != x ; then
13443                             eval "DEFAULT_$LINE"
13444                           fi
13445
13446                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
13447
13448 fi
13449
13450
13451           eval "$wx_cv_use_toolbook"
13452           if test "x$cache" = xyes; then
13453             echo "wxUSE_TOOLBOOK=$wxUSE_TOOLBOOK" >> ${wx_arg_cache_file}.tmp
13454           fi
13455
13456           if test x"$enablestring" = xdisable; then
13457             if test $wxUSE_TOOLBOOK = yes; then
13458               result=no
13459             else
13460               result=yes
13461             fi
13462           else
13463             result=$wxUSE_TOOLBOOK
13464           fi
13465
13466           { echo "$as_me:$LINENO: result: $result" >&5
13467 echo "${ECHO_T}$result" >&6; }
13468
13469
13470           enablestring=
13471           defaultval=$wxUSE_ALL_FEATURES
13472           if test -z "$defaultval"; then
13473               if test x"$enablestring" = xdisable; then
13474                   defaultval=yes
13475               else
13476                   defaultval=no
13477               fi
13478           fi
13479
13480           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
13481 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
13482           # Check whether --enable-treectrl was given.
13483 if test "${enable_treectrl+set}" = set; then
13484   enableval=$enable_treectrl;
13485                           if test "$enableval" = yes; then
13486                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
13487                           else
13488                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
13489                           fi
13490                           cache=yes
13491
13492 else
13493
13494                           cache=no
13495                           LINE=`grep "^wxUSE_TREECTRL=" ${wx_arg_cache_file}`
13496                           if test "x$LINE" != x ; then
13497                             eval "DEFAULT_$LINE"
13498                           fi
13499
13500                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
13501
13502 fi
13503
13504
13505           eval "$wx_cv_use_treectrl"
13506           if test "x$cache" = xyes; then
13507             echo "wxUSE_TREECTRL=$wxUSE_TREECTRL" >> ${wx_arg_cache_file}.tmp
13508           fi
13509
13510           if test x"$enablestring" = xdisable; then
13511             if test $wxUSE_TREECTRL = yes; then
13512               result=no
13513             else
13514               result=yes
13515             fi
13516           else
13517             result=$wxUSE_TREECTRL
13518           fi
13519
13520           { echo "$as_me:$LINENO: result: $result" >&5
13521 echo "${ECHO_T}$result" >&6; }
13522
13523
13524           enablestring=
13525           defaultval=$wxUSE_ALL_FEATURES
13526           if test -z "$defaultval"; then
13527               if test x"$enablestring" = xdisable; then
13528                   defaultval=yes
13529               else
13530                   defaultval=no
13531               fi
13532           fi
13533
13534           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
13535 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
13536           # Check whether --enable-tipwindow was given.
13537 if test "${enable_tipwindow+set}" = set; then
13538   enableval=$enable_tipwindow;
13539                           if test "$enableval" = yes; then
13540                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
13541                           else
13542                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
13543                           fi
13544                           cache=yes
13545
13546 else
13547
13548                           cache=no
13549                           LINE=`grep "^wxUSE_TIPWINDOW=" ${wx_arg_cache_file}`
13550                           if test "x$LINE" != x ; then
13551                             eval "DEFAULT_$LINE"
13552                           fi
13553
13554                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
13555
13556 fi
13557
13558
13559           eval "$wx_cv_use_tipwindow"
13560           if test "x$cache" = xyes; then
13561             echo "wxUSE_TIPWINDOW=$wxUSE_TIPWINDOW" >> ${wx_arg_cache_file}.tmp
13562           fi
13563
13564           if test x"$enablestring" = xdisable; then
13565             if test $wxUSE_TIPWINDOW = yes; then
13566               result=no
13567             else
13568               result=yes
13569             fi
13570           else
13571             result=$wxUSE_TIPWINDOW
13572           fi
13573
13574           { echo "$as_me:$LINENO: result: $result" >&5
13575 echo "${ECHO_T}$result" >&6; }
13576
13577
13578           enablestring=
13579           defaultval=$wxUSE_ALL_FEATURES
13580           if test -z "$defaultval"; then
13581               if test x"$enablestring" = xdisable; then
13582                   defaultval=yes
13583               else
13584                   defaultval=no
13585               fi
13586           fi
13587
13588           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
13589 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
13590           # Check whether --enable-popupwin was given.
13591 if test "${enable_popupwin+set}" = set; then
13592   enableval=$enable_popupwin;
13593                           if test "$enableval" = yes; then
13594                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
13595                           else
13596                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
13597                           fi
13598                           cache=yes
13599
13600 else
13601
13602                           cache=no
13603                           LINE=`grep "^wxUSE_POPUPWIN=" ${wx_arg_cache_file}`
13604                           if test "x$LINE" != x ; then
13605                             eval "DEFAULT_$LINE"
13606                           fi
13607
13608                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
13609
13610 fi
13611
13612
13613           eval "$wx_cv_use_popupwin"
13614           if test "x$cache" = xyes; then
13615             echo "wxUSE_POPUPWIN=$wxUSE_POPUPWIN" >> ${wx_arg_cache_file}.tmp
13616           fi
13617
13618           if test x"$enablestring" = xdisable; then
13619             if test $wxUSE_POPUPWIN = yes; then
13620               result=no
13621             else
13622               result=yes
13623             fi
13624           else
13625             result=$wxUSE_POPUPWIN
13626           fi
13627
13628           { echo "$as_me:$LINENO: result: $result" >&5
13629 echo "${ECHO_T}$result" >&6; }
13630
13631
13632
13633
13634           enablestring=
13635           defaultval=$wxUSE_ALL_FEATURES
13636           if test -z "$defaultval"; then
13637               if test x"$enablestring" = xdisable; then
13638                   defaultval=yes
13639               else
13640                   defaultval=no
13641               fi
13642           fi
13643
13644           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
13645 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
13646           # Check whether --enable-commondlg was given.
13647 if test "${enable_commondlg+set}" = set; then
13648   enableval=$enable_commondlg;
13649                           if test "$enableval" = yes; then
13650                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
13651                           else
13652                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
13653                           fi
13654                           cache=yes
13655
13656 else
13657
13658                           cache=no
13659                           LINE=`grep "^wxUSE_COMMONDLGS=" ${wx_arg_cache_file}`
13660                           if test "x$LINE" != x ; then
13661                             eval "DEFAULT_$LINE"
13662                           fi
13663
13664                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
13665
13666 fi
13667
13668
13669           eval "$wx_cv_use_commondlg"
13670           if test "x$cache" = xyes; then
13671             echo "wxUSE_COMMONDLGS=$wxUSE_COMMONDLGS" >> ${wx_arg_cache_file}.tmp
13672           fi
13673
13674           if test x"$enablestring" = xdisable; then
13675             if test $wxUSE_COMMONDLGS = yes; then
13676               result=no
13677             else
13678               result=yes
13679             fi
13680           else
13681             result=$wxUSE_COMMONDLGS
13682           fi
13683
13684           { echo "$as_me:$LINENO: result: $result" >&5
13685 echo "${ECHO_T}$result" >&6; }
13686
13687
13688           enablestring=
13689           defaultval=$wxUSE_ALL_FEATURES
13690           if test -z "$defaultval"; then
13691               if test x"$enablestring" = xdisable; then
13692                   defaultval=yes
13693               else
13694                   defaultval=no
13695               fi
13696           fi
13697
13698           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
13699 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
13700           # Check whether --enable-aboutdlg was given.
13701 if test "${enable_aboutdlg+set}" = set; then
13702   enableval=$enable_aboutdlg;
13703                           if test "$enableval" = yes; then
13704                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
13705                           else
13706                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
13707                           fi
13708                           cache=yes
13709
13710 else
13711
13712                           cache=no
13713                           LINE=`grep "^wxUSE_ABOUTDLG=" ${wx_arg_cache_file}`
13714                           if test "x$LINE" != x ; then
13715                             eval "DEFAULT_$LINE"
13716                           fi
13717
13718                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
13719
13720 fi
13721
13722
13723           eval "$wx_cv_use_aboutdlg"
13724           if test "x$cache" = xyes; then
13725             echo "wxUSE_ABOUTDLG=$wxUSE_ABOUTDLG" >> ${wx_arg_cache_file}.tmp
13726           fi
13727
13728           if test x"$enablestring" = xdisable; then
13729             if test $wxUSE_ABOUTDLG = yes; then
13730               result=no
13731             else
13732               result=yes
13733             fi
13734           else
13735             result=$wxUSE_ABOUTDLG
13736           fi
13737
13738           { echo "$as_me:$LINENO: result: $result" >&5
13739 echo "${ECHO_T}$result" >&6; }
13740
13741
13742           enablestring=
13743           defaultval=$wxUSE_ALL_FEATURES
13744           if test -z "$defaultval"; then
13745               if test x"$enablestring" = xdisable; then
13746                   defaultval=yes
13747               else
13748                   defaultval=no
13749               fi
13750           fi
13751
13752           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13753 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13754           # Check whether --enable-choicedlg was given.
13755 if test "${enable_choicedlg+set}" = set; then
13756   enableval=$enable_choicedlg;
13757                           if test "$enableval" = yes; then
13758                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13759                           else
13760                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13761                           fi
13762                           cache=yes
13763
13764 else
13765
13766                           cache=no
13767                           LINE=`grep "^wxUSE_CHOICEDLG=" ${wx_arg_cache_file}`
13768                           if test "x$LINE" != x ; then
13769                             eval "DEFAULT_$LINE"
13770                           fi
13771
13772                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13773
13774 fi
13775
13776
13777           eval "$wx_cv_use_choicedlg"
13778           if test "x$cache" = xyes; then
13779             echo "wxUSE_CHOICEDLG=$wxUSE_CHOICEDLG" >> ${wx_arg_cache_file}.tmp
13780           fi
13781
13782           if test x"$enablestring" = xdisable; then
13783             if test $wxUSE_CHOICEDLG = yes; then
13784               result=no
13785             else
13786               result=yes
13787             fi
13788           else
13789             result=$wxUSE_CHOICEDLG
13790           fi
13791
13792           { echo "$as_me:$LINENO: result: $result" >&5
13793 echo "${ECHO_T}$result" >&6; }
13794
13795
13796           enablestring=
13797           defaultval=$wxUSE_ALL_FEATURES
13798           if test -z "$defaultval"; then
13799               if test x"$enablestring" = xdisable; then
13800                   defaultval=yes
13801               else
13802                   defaultval=no
13803               fi
13804           fi
13805
13806           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13807 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13808           # Check whether --enable-coldlg was given.
13809 if test "${enable_coldlg+set}" = set; then
13810   enableval=$enable_coldlg;
13811                           if test "$enableval" = yes; then
13812                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13813                           else
13814                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13815                           fi
13816                           cache=yes
13817
13818 else
13819
13820                           cache=no
13821                           LINE=`grep "^wxUSE_COLOURDLG=" ${wx_arg_cache_file}`
13822                           if test "x$LINE" != x ; then
13823                             eval "DEFAULT_$LINE"
13824                           fi
13825
13826                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13827
13828 fi
13829
13830
13831           eval "$wx_cv_use_coldlg"
13832           if test "x$cache" = xyes; then
13833             echo "wxUSE_COLOURDLG=$wxUSE_COLOURDLG" >> ${wx_arg_cache_file}.tmp
13834           fi
13835
13836           if test x"$enablestring" = xdisable; then
13837             if test $wxUSE_COLOURDLG = yes; then
13838               result=no
13839             else
13840               result=yes
13841             fi
13842           else
13843             result=$wxUSE_COLOURDLG
13844           fi
13845
13846           { echo "$as_me:$LINENO: result: $result" >&5
13847 echo "${ECHO_T}$result" >&6; }
13848
13849
13850           enablestring=
13851           defaultval=$wxUSE_ALL_FEATURES
13852           if test -z "$defaultval"; then
13853               if test x"$enablestring" = xdisable; then
13854                   defaultval=yes
13855               else
13856                   defaultval=no
13857               fi
13858           fi
13859
13860           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13861 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13862           # Check whether --enable-filedlg was given.
13863 if test "${enable_filedlg+set}" = set; then
13864   enableval=$enable_filedlg;
13865                           if test "$enableval" = yes; then
13866                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13867                           else
13868                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13869                           fi
13870                           cache=yes
13871
13872 else
13873
13874                           cache=no
13875                           LINE=`grep "^wxUSE_FILEDLG=" ${wx_arg_cache_file}`
13876                           if test "x$LINE" != x ; then
13877                             eval "DEFAULT_$LINE"
13878                           fi
13879
13880                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13881
13882 fi
13883
13884
13885           eval "$wx_cv_use_filedlg"
13886           if test "x$cache" = xyes; then
13887             echo "wxUSE_FILEDLG=$wxUSE_FILEDLG" >> ${wx_arg_cache_file}.tmp
13888           fi
13889
13890           if test x"$enablestring" = xdisable; then
13891             if test $wxUSE_FILEDLG = yes; then
13892               result=no
13893             else
13894               result=yes
13895             fi
13896           else
13897             result=$wxUSE_FILEDLG
13898           fi
13899
13900           { echo "$as_me:$LINENO: result: $result" >&5
13901 echo "${ECHO_T}$result" >&6; }
13902
13903
13904           enablestring=
13905           defaultval=$wxUSE_ALL_FEATURES
13906           if test -z "$defaultval"; then
13907               if test x"$enablestring" = xdisable; then
13908                   defaultval=yes
13909               else
13910                   defaultval=no
13911               fi
13912           fi
13913
13914           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13915 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13916           # Check whether --enable-finddlg was given.
13917 if test "${enable_finddlg+set}" = set; then
13918   enableval=$enable_finddlg;
13919                           if test "$enableval" = yes; then
13920                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13921                           else
13922                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13923                           fi
13924                           cache=yes
13925
13926 else
13927
13928                           cache=no
13929                           LINE=`grep "^wxUSE_FINDREPLDLG=" ${wx_arg_cache_file}`
13930                           if test "x$LINE" != x ; then
13931                             eval "DEFAULT_$LINE"
13932                           fi
13933
13934                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13935
13936 fi
13937
13938
13939           eval "$wx_cv_use_finddlg"
13940           if test "x$cache" = xyes; then
13941             echo "wxUSE_FINDREPLDLG=$wxUSE_FINDREPLDLG" >> ${wx_arg_cache_file}.tmp
13942           fi
13943
13944           if test x"$enablestring" = xdisable; then
13945             if test $wxUSE_FINDREPLDLG = yes; then
13946               result=no
13947             else
13948               result=yes
13949             fi
13950           else
13951             result=$wxUSE_FINDREPLDLG
13952           fi
13953
13954           { echo "$as_me:$LINENO: result: $result" >&5
13955 echo "${ECHO_T}$result" >&6; }
13956
13957
13958           enablestring=
13959           defaultval=$wxUSE_ALL_FEATURES
13960           if test -z "$defaultval"; then
13961               if test x"$enablestring" = xdisable; then
13962                   defaultval=yes
13963               else
13964                   defaultval=no
13965               fi
13966           fi
13967
13968           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13969 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13970           # Check whether --enable-fontdlg was given.
13971 if test "${enable_fontdlg+set}" = set; then
13972   enableval=$enable_fontdlg;
13973                           if test "$enableval" = yes; then
13974                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13975                           else
13976                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13977                           fi
13978                           cache=yes
13979
13980 else
13981
13982                           cache=no
13983                           LINE=`grep "^wxUSE_FONTDLG=" ${wx_arg_cache_file}`
13984                           if test "x$LINE" != x ; then
13985                             eval "DEFAULT_$LINE"
13986                           fi
13987
13988                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13989
13990 fi
13991
13992
13993           eval "$wx_cv_use_fontdlg"
13994           if test "x$cache" = xyes; then
13995             echo "wxUSE_FONTDLG=$wxUSE_FONTDLG" >> ${wx_arg_cache_file}.tmp
13996           fi
13997
13998           if test x"$enablestring" = xdisable; then
13999             if test $wxUSE_FONTDLG = yes; then
14000               result=no
14001             else
14002               result=yes
14003             fi
14004           else
14005             result=$wxUSE_FONTDLG
14006           fi
14007
14008           { echo "$as_me:$LINENO: result: $result" >&5
14009 echo "${ECHO_T}$result" >&6; }
14010
14011
14012           enablestring=
14013           defaultval=$wxUSE_ALL_FEATURES
14014           if test -z "$defaultval"; then
14015               if test x"$enablestring" = xdisable; then
14016                   defaultval=yes
14017               else
14018                   defaultval=no
14019               fi
14020           fi
14021
14022           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
14023 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
14024           # Check whether --enable-dirdlg was given.
14025 if test "${enable_dirdlg+set}" = set; then
14026   enableval=$enable_dirdlg;
14027                           if test "$enableval" = yes; then
14028                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
14029                           else
14030                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
14031                           fi
14032                           cache=yes
14033
14034 else
14035
14036                           cache=no
14037                           LINE=`grep "^wxUSE_DIRDLG=" ${wx_arg_cache_file}`
14038                           if test "x$LINE" != x ; then
14039                             eval "DEFAULT_$LINE"
14040                           fi
14041
14042                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
14043
14044 fi
14045
14046
14047           eval "$wx_cv_use_dirdlg"
14048           if test "x$cache" = xyes; then
14049             echo "wxUSE_DIRDLG=$wxUSE_DIRDLG" >> ${wx_arg_cache_file}.tmp
14050           fi
14051
14052           if test x"$enablestring" = xdisable; then
14053             if test $wxUSE_DIRDLG = yes; then
14054               result=no
14055             else
14056               result=yes
14057             fi
14058           else
14059             result=$wxUSE_DIRDLG
14060           fi
14061
14062           { echo "$as_me:$LINENO: result: $result" >&5
14063 echo "${ECHO_T}$result" >&6; }
14064
14065
14066           enablestring=
14067           defaultval=$wxUSE_ALL_FEATURES
14068           if test -z "$defaultval"; then
14069               if test x"$enablestring" = xdisable; then
14070                   defaultval=yes
14071               else
14072                   defaultval=no
14073               fi
14074           fi
14075
14076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
14077 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
14078           # Check whether --enable-msgdlg was given.
14079 if test "${enable_msgdlg+set}" = set; then
14080   enableval=$enable_msgdlg;
14081                           if test "$enableval" = yes; then
14082                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
14083                           else
14084                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
14085                           fi
14086                           cache=yes
14087
14088 else
14089
14090                           cache=no
14091                           LINE=`grep "^wxUSE_MSGDLG=" ${wx_arg_cache_file}`
14092                           if test "x$LINE" != x ; then
14093                             eval "DEFAULT_$LINE"
14094                           fi
14095
14096                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
14097
14098 fi
14099
14100
14101           eval "$wx_cv_use_msgdlg"
14102           if test "x$cache" = xyes; then
14103             echo "wxUSE_MSGDLG=$wxUSE_MSGDLG" >> ${wx_arg_cache_file}.tmp
14104           fi
14105
14106           if test x"$enablestring" = xdisable; then
14107             if test $wxUSE_MSGDLG = yes; then
14108               result=no
14109             else
14110               result=yes
14111             fi
14112           else
14113             result=$wxUSE_MSGDLG
14114           fi
14115
14116           { echo "$as_me:$LINENO: result: $result" >&5
14117 echo "${ECHO_T}$result" >&6; }
14118
14119
14120           enablestring=
14121           defaultval=$wxUSE_ALL_FEATURES
14122           if test -z "$defaultval"; then
14123               if test x"$enablestring" = xdisable; then
14124                   defaultval=yes
14125               else
14126                   defaultval=no
14127               fi
14128           fi
14129
14130           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
14131 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
14132           # Check whether --enable-numberdlg was given.
14133 if test "${enable_numberdlg+set}" = set; then
14134   enableval=$enable_numberdlg;
14135                           if test "$enableval" = yes; then
14136                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
14137                           else
14138                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
14139                           fi
14140                           cache=yes
14141
14142 else
14143
14144                           cache=no
14145                           LINE=`grep "^wxUSE_NUMBERDLG=" ${wx_arg_cache_file}`
14146                           if test "x$LINE" != x ; then
14147                             eval "DEFAULT_$LINE"
14148                           fi
14149
14150                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
14151
14152 fi
14153
14154
14155           eval "$wx_cv_use_numberdlg"
14156           if test "x$cache" = xyes; then
14157             echo "wxUSE_NUMBERDLG=$wxUSE_NUMBERDLG" >> ${wx_arg_cache_file}.tmp
14158           fi
14159
14160           if test x"$enablestring" = xdisable; then
14161             if test $wxUSE_NUMBERDLG = yes; then
14162               result=no
14163             else
14164               result=yes
14165             fi
14166           else
14167             result=$wxUSE_NUMBERDLG
14168           fi
14169
14170           { echo "$as_me:$LINENO: result: $result" >&5
14171 echo "${ECHO_T}$result" >&6; }
14172
14173
14174           enablestring=
14175           defaultval=$wxUSE_ALL_FEATURES
14176           if test -z "$defaultval"; then
14177               if test x"$enablestring" = xdisable; then
14178                   defaultval=yes
14179               else
14180                   defaultval=no
14181               fi
14182           fi
14183
14184           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
14185 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
14186           # Check whether --enable-splash was given.
14187 if test "${enable_splash+set}" = set; then
14188   enableval=$enable_splash;
14189                           if test "$enableval" = yes; then
14190                             wx_cv_use_splash='wxUSE_SPLASH=yes'
14191                           else
14192                             wx_cv_use_splash='wxUSE_SPLASH=no'
14193                           fi
14194                           cache=yes
14195
14196 else
14197
14198                           cache=no
14199                           LINE=`grep "^wxUSE_SPLASH=" ${wx_arg_cache_file}`
14200                           if test "x$LINE" != x ; then
14201                             eval "DEFAULT_$LINE"
14202                           fi
14203
14204                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
14205
14206 fi
14207
14208
14209           eval "$wx_cv_use_splash"
14210           if test "x$cache" = xyes; then
14211             echo "wxUSE_SPLASH=$wxUSE_SPLASH" >> ${wx_arg_cache_file}.tmp
14212           fi
14213
14214           if test x"$enablestring" = xdisable; then
14215             if test $wxUSE_SPLASH = yes; then
14216               result=no
14217             else
14218               result=yes
14219             fi
14220           else
14221             result=$wxUSE_SPLASH
14222           fi
14223
14224           { echo "$as_me:$LINENO: result: $result" >&5
14225 echo "${ECHO_T}$result" >&6; }
14226
14227
14228           enablestring=
14229           defaultval=$wxUSE_ALL_FEATURES
14230           if test -z "$defaultval"; then
14231               if test x"$enablestring" = xdisable; then
14232                   defaultval=yes
14233               else
14234                   defaultval=no
14235               fi
14236           fi
14237
14238           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
14239 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
14240           # Check whether --enable-textdlg was given.
14241 if test "${enable_textdlg+set}" = set; then
14242   enableval=$enable_textdlg;
14243                           if test "$enableval" = yes; then
14244                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
14245                           else
14246                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
14247                           fi
14248                           cache=yes
14249
14250 else
14251
14252                           cache=no
14253                           LINE=`grep "^wxUSE_TEXTDLG=" ${wx_arg_cache_file}`
14254                           if test "x$LINE" != x ; then
14255                             eval "DEFAULT_$LINE"
14256                           fi
14257
14258                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
14259
14260 fi
14261
14262
14263           eval "$wx_cv_use_textdlg"
14264           if test "x$cache" = xyes; then
14265             echo "wxUSE_TEXTDLG=$wxUSE_TEXTDLG" >> ${wx_arg_cache_file}.tmp
14266           fi
14267
14268           if test x"$enablestring" = xdisable; then
14269             if test $wxUSE_TEXTDLG = yes; then
14270               result=no
14271             else
14272               result=yes
14273             fi
14274           else
14275             result=$wxUSE_TEXTDLG
14276           fi
14277
14278           { echo "$as_me:$LINENO: result: $result" >&5
14279 echo "${ECHO_T}$result" >&6; }
14280
14281
14282           enablestring=
14283           defaultval=$wxUSE_ALL_FEATURES
14284           if test -z "$defaultval"; then
14285               if test x"$enablestring" = xdisable; then
14286                   defaultval=yes
14287               else
14288                   defaultval=no
14289               fi
14290           fi
14291
14292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
14293 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
14294           # Check whether --enable-tipdlg was given.
14295 if test "${enable_tipdlg+set}" = set; then
14296   enableval=$enable_tipdlg;
14297                           if test "$enableval" = yes; then
14298                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
14299                           else
14300                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
14301                           fi
14302                           cache=yes
14303
14304 else
14305
14306                           cache=no
14307                           LINE=`grep "^wxUSE_STARTUP_TIPS=" ${wx_arg_cache_file}`
14308                           if test "x$LINE" != x ; then
14309                             eval "DEFAULT_$LINE"
14310                           fi
14311
14312                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
14313
14314 fi
14315
14316
14317           eval "$wx_cv_use_tipdlg"
14318           if test "x$cache" = xyes; then
14319             echo "wxUSE_STARTUP_TIPS=$wxUSE_STARTUP_TIPS" >> ${wx_arg_cache_file}.tmp
14320           fi
14321
14322           if test x"$enablestring" = xdisable; then
14323             if test $wxUSE_STARTUP_TIPS = yes; then
14324               result=no
14325             else
14326               result=yes
14327             fi
14328           else
14329             result=$wxUSE_STARTUP_TIPS
14330           fi
14331
14332           { echo "$as_me:$LINENO: result: $result" >&5
14333 echo "${ECHO_T}$result" >&6; }
14334
14335
14336           enablestring=
14337           defaultval=$wxUSE_ALL_FEATURES
14338           if test -z "$defaultval"; then
14339               if test x"$enablestring" = xdisable; then
14340                   defaultval=yes
14341               else
14342                   defaultval=no
14343               fi
14344           fi
14345
14346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
14347 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
14348           # Check whether --enable-progressdlg was given.
14349 if test "${enable_progressdlg+set}" = set; then
14350   enableval=$enable_progressdlg;
14351                           if test "$enableval" = yes; then
14352                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
14353                           else
14354                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
14355                           fi
14356                           cache=yes
14357
14358 else
14359
14360                           cache=no
14361                           LINE=`grep "^wxUSE_PROGRESSDLG=" ${wx_arg_cache_file}`
14362                           if test "x$LINE" != x ; then
14363                             eval "DEFAULT_$LINE"
14364                           fi
14365
14366                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
14367
14368 fi
14369
14370
14371           eval "$wx_cv_use_progressdlg"
14372           if test "x$cache" = xyes; then
14373             echo "wxUSE_PROGRESSDLG=$wxUSE_PROGRESSDLG" >> ${wx_arg_cache_file}.tmp
14374           fi
14375
14376           if test x"$enablestring" = xdisable; then
14377             if test $wxUSE_PROGRESSDLG = yes; then
14378               result=no
14379             else
14380               result=yes
14381             fi
14382           else
14383             result=$wxUSE_PROGRESSDLG
14384           fi
14385
14386           { echo "$as_me:$LINENO: result: $result" >&5
14387 echo "${ECHO_T}$result" >&6; }
14388
14389
14390           enablestring=
14391           defaultval=$wxUSE_ALL_FEATURES
14392           if test -z "$defaultval"; then
14393               if test x"$enablestring" = xdisable; then
14394                   defaultval=yes
14395               else
14396                   defaultval=no
14397               fi
14398           fi
14399
14400           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
14401 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
14402           # Check whether --enable-wizarddlg was given.
14403 if test "${enable_wizarddlg+set}" = set; then
14404   enableval=$enable_wizarddlg;
14405                           if test "$enableval" = yes; then
14406                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
14407                           else
14408                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
14409                           fi
14410                           cache=yes
14411
14412 else
14413
14414                           cache=no
14415                           LINE=`grep "^wxUSE_WIZARDDLG=" ${wx_arg_cache_file}`
14416                           if test "x$LINE" != x ; then
14417                             eval "DEFAULT_$LINE"
14418                           fi
14419
14420                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
14421
14422 fi
14423
14424
14425           eval "$wx_cv_use_wizarddlg"
14426           if test "x$cache" = xyes; then
14427             echo "wxUSE_WIZARDDLG=$wxUSE_WIZARDDLG" >> ${wx_arg_cache_file}.tmp
14428           fi
14429
14430           if test x"$enablestring" = xdisable; then
14431             if test $wxUSE_WIZARDDLG = yes; then
14432               result=no
14433             else
14434               result=yes
14435             fi
14436           else
14437             result=$wxUSE_WIZARDDLG
14438           fi
14439
14440           { echo "$as_me:$LINENO: result: $result" >&5
14441 echo "${ECHO_T}$result" >&6; }
14442
14443
14444
14445
14446           enablestring=
14447           defaultval=$wxUSE_ALL_FEATURES
14448           if test -z "$defaultval"; then
14449               if test x"$enablestring" = xdisable; then
14450                   defaultval=yes
14451               else
14452                   defaultval=no
14453               fi
14454           fi
14455
14456           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
14457 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
14458           # Check whether --enable-menus was given.
14459 if test "${enable_menus+set}" = set; then
14460   enableval=$enable_menus;
14461                           if test "$enableval" = yes; then
14462                             wx_cv_use_menus='wxUSE_MENUS=yes'
14463                           else
14464                             wx_cv_use_menus='wxUSE_MENUS=no'
14465                           fi
14466                           cache=yes
14467
14468 else
14469
14470                           cache=no
14471                           LINE=`grep "^wxUSE_MENUS=" ${wx_arg_cache_file}`
14472                           if test "x$LINE" != x ; then
14473                             eval "DEFAULT_$LINE"
14474                           fi
14475
14476                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
14477
14478 fi
14479
14480
14481           eval "$wx_cv_use_menus"
14482           if test "x$cache" = xyes; then
14483             echo "wxUSE_MENUS=$wxUSE_MENUS" >> ${wx_arg_cache_file}.tmp
14484           fi
14485
14486           if test x"$enablestring" = xdisable; then
14487             if test $wxUSE_MENUS = yes; then
14488               result=no
14489             else
14490               result=yes
14491             fi
14492           else
14493             result=$wxUSE_MENUS
14494           fi
14495
14496           { echo "$as_me:$LINENO: result: $result" >&5
14497 echo "${ECHO_T}$result" >&6; }
14498
14499
14500           enablestring=
14501           defaultval=$wxUSE_ALL_FEATURES
14502           if test -z "$defaultval"; then
14503               if test x"$enablestring" = xdisable; then
14504                   defaultval=yes
14505               else
14506                   defaultval=no
14507               fi
14508           fi
14509
14510           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
14511 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
14512           # Check whether --enable-miniframe was given.
14513 if test "${enable_miniframe+set}" = set; then
14514   enableval=$enable_miniframe;
14515                           if test "$enableval" = yes; then
14516                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
14517                           else
14518                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
14519                           fi
14520                           cache=yes
14521
14522 else
14523
14524                           cache=no
14525                           LINE=`grep "^wxUSE_MINIFRAME=" ${wx_arg_cache_file}`
14526                           if test "x$LINE" != x ; then
14527                             eval "DEFAULT_$LINE"
14528                           fi
14529
14530                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
14531
14532 fi
14533
14534
14535           eval "$wx_cv_use_miniframe"
14536           if test "x$cache" = xyes; then
14537             echo "wxUSE_MINIFRAME=$wxUSE_MINIFRAME" >> ${wx_arg_cache_file}.tmp
14538           fi
14539
14540           if test x"$enablestring" = xdisable; then
14541             if test $wxUSE_MINIFRAME = yes; then
14542               result=no
14543             else
14544               result=yes
14545             fi
14546           else
14547             result=$wxUSE_MINIFRAME
14548           fi
14549
14550           { echo "$as_me:$LINENO: result: $result" >&5
14551 echo "${ECHO_T}$result" >&6; }
14552
14553
14554           enablestring=
14555           defaultval=$wxUSE_ALL_FEATURES
14556           if test -z "$defaultval"; then
14557               if test x"$enablestring" = xdisable; then
14558                   defaultval=yes
14559               else
14560                   defaultval=no
14561               fi
14562           fi
14563
14564           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
14565 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
14566           # Check whether --enable-tooltips was given.
14567 if test "${enable_tooltips+set}" = set; then
14568   enableval=$enable_tooltips;
14569                           if test "$enableval" = yes; then
14570                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
14571                           else
14572                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
14573                           fi
14574                           cache=yes
14575
14576 else
14577
14578                           cache=no
14579                           LINE=`grep "^wxUSE_TOOLTIPS=" ${wx_arg_cache_file}`
14580                           if test "x$LINE" != x ; then
14581                             eval "DEFAULT_$LINE"
14582                           fi
14583
14584                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
14585
14586 fi
14587
14588
14589           eval "$wx_cv_use_tooltips"
14590           if test "x$cache" = xyes; then
14591             echo "wxUSE_TOOLTIPS=$wxUSE_TOOLTIPS" >> ${wx_arg_cache_file}.tmp
14592           fi
14593
14594           if test x"$enablestring" = xdisable; then
14595             if test $wxUSE_TOOLTIPS = yes; then
14596               result=no
14597             else
14598               result=yes
14599             fi
14600           else
14601             result=$wxUSE_TOOLTIPS
14602           fi
14603
14604           { echo "$as_me:$LINENO: result: $result" >&5
14605 echo "${ECHO_T}$result" >&6; }
14606
14607
14608           enablestring=
14609           defaultval=$wxUSE_ALL_FEATURES
14610           if test -z "$defaultval"; then
14611               if test x"$enablestring" = xdisable; then
14612                   defaultval=yes
14613               else
14614                   defaultval=no
14615               fi
14616           fi
14617
14618           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
14619 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
14620           # Check whether --enable-splines was given.
14621 if test "${enable_splines+set}" = set; then
14622   enableval=$enable_splines;
14623                           if test "$enableval" = yes; then
14624                             wx_cv_use_splines='wxUSE_SPLINES=yes'
14625                           else
14626                             wx_cv_use_splines='wxUSE_SPLINES=no'
14627                           fi
14628                           cache=yes
14629
14630 else
14631
14632                           cache=no
14633                           LINE=`grep "^wxUSE_SPLINES=" ${wx_arg_cache_file}`
14634                           if test "x$LINE" != x ; then
14635                             eval "DEFAULT_$LINE"
14636                           fi
14637
14638                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
14639
14640 fi
14641
14642
14643           eval "$wx_cv_use_splines"
14644           if test "x$cache" = xyes; then
14645             echo "wxUSE_SPLINES=$wxUSE_SPLINES" >> ${wx_arg_cache_file}.tmp
14646           fi
14647
14648           if test x"$enablestring" = xdisable; then
14649             if test $wxUSE_SPLINES = yes; then
14650               result=no
14651             else
14652               result=yes
14653             fi
14654           else
14655             result=$wxUSE_SPLINES
14656           fi
14657
14658           { echo "$as_me:$LINENO: result: $result" >&5
14659 echo "${ECHO_T}$result" >&6; }
14660
14661
14662           enablestring=
14663           defaultval=$wxUSE_ALL_FEATURES
14664           if test -z "$defaultval"; then
14665               if test x"$enablestring" = xdisable; then
14666                   defaultval=yes
14667               else
14668                   defaultval=no
14669               fi
14670           fi
14671
14672           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
14673 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
14674           # Check whether --enable-mousewheel was given.
14675 if test "${enable_mousewheel+set}" = set; then
14676   enableval=$enable_mousewheel;
14677                           if test "$enableval" = yes; then
14678                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
14679                           else
14680                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
14681                           fi
14682                           cache=yes
14683
14684 else
14685
14686                           cache=no
14687                           LINE=`grep "^wxUSE_MOUSEWHEEL=" ${wx_arg_cache_file}`
14688                           if test "x$LINE" != x ; then
14689                             eval "DEFAULT_$LINE"
14690                           fi
14691
14692                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
14693
14694 fi
14695
14696
14697           eval "$wx_cv_use_mousewheel"
14698           if test "x$cache" = xyes; then
14699             echo "wxUSE_MOUSEWHEEL=$wxUSE_MOUSEWHEEL" >> ${wx_arg_cache_file}.tmp
14700           fi
14701
14702           if test x"$enablestring" = xdisable; then
14703             if test $wxUSE_MOUSEWHEEL = yes; then
14704               result=no
14705             else
14706               result=yes
14707             fi
14708           else
14709             result=$wxUSE_MOUSEWHEEL
14710           fi
14711
14712           { echo "$as_me:$LINENO: result: $result" >&5
14713 echo "${ECHO_T}$result" >&6; }
14714
14715
14716           enablestring=
14717           defaultval=$wxUSE_ALL_FEATURES
14718           if test -z "$defaultval"; then
14719               if test x"$enablestring" = xdisable; then
14720                   defaultval=yes
14721               else
14722                   defaultval=no
14723               fi
14724           fi
14725
14726           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
14727 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
14728           # Check whether --enable-validators was given.
14729 if test "${enable_validators+set}" = set; then
14730   enableval=$enable_validators;
14731                           if test "$enableval" = yes; then
14732                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
14733                           else
14734                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
14735                           fi
14736                           cache=yes
14737
14738 else
14739
14740                           cache=no
14741                           LINE=`grep "^wxUSE_VALIDATORS=" ${wx_arg_cache_file}`
14742                           if test "x$LINE" != x ; then
14743                             eval "DEFAULT_$LINE"
14744                           fi
14745
14746                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
14747
14748 fi
14749
14750
14751           eval "$wx_cv_use_validators"
14752           if test "x$cache" = xyes; then
14753             echo "wxUSE_VALIDATORS=$wxUSE_VALIDATORS" >> ${wx_arg_cache_file}.tmp
14754           fi
14755
14756           if test x"$enablestring" = xdisable; then
14757             if test $wxUSE_VALIDATORS = yes; then
14758               result=no
14759             else
14760               result=yes
14761             fi
14762           else
14763             result=$wxUSE_VALIDATORS
14764           fi
14765
14766           { echo "$as_me:$LINENO: result: $result" >&5
14767 echo "${ECHO_T}$result" >&6; }
14768
14769
14770           enablestring=
14771           defaultval=$wxUSE_ALL_FEATURES
14772           if test -z "$defaultval"; then
14773               if test x"$enablestring" = xdisable; then
14774                   defaultval=yes
14775               else
14776                   defaultval=no
14777               fi
14778           fi
14779
14780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
14781 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
14782           # Check whether --enable-busyinfo was given.
14783 if test "${enable_busyinfo+set}" = set; then
14784   enableval=$enable_busyinfo;
14785                           if test "$enableval" = yes; then
14786                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
14787                           else
14788                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
14789                           fi
14790                           cache=yes
14791
14792 else
14793
14794                           cache=no
14795                           LINE=`grep "^wxUSE_BUSYINFO=" ${wx_arg_cache_file}`
14796                           if test "x$LINE" != x ; then
14797                             eval "DEFAULT_$LINE"
14798                           fi
14799
14800                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
14801
14802 fi
14803
14804
14805           eval "$wx_cv_use_busyinfo"
14806           if test "x$cache" = xyes; then
14807             echo "wxUSE_BUSYINFO=$wxUSE_BUSYINFO" >> ${wx_arg_cache_file}.tmp
14808           fi
14809
14810           if test x"$enablestring" = xdisable; then
14811             if test $wxUSE_BUSYINFO = yes; then
14812               result=no
14813             else
14814               result=yes
14815             fi
14816           else
14817             result=$wxUSE_BUSYINFO
14818           fi
14819
14820           { echo "$as_me:$LINENO: result: $result" >&5
14821 echo "${ECHO_T}$result" >&6; }
14822
14823
14824           enablestring=
14825           defaultval=$wxUSE_ALL_FEATURES
14826           if test -z "$defaultval"; then
14827               if test x"$enablestring" = xdisable; then
14828                   defaultval=yes
14829               else
14830                   defaultval=no
14831               fi
14832           fi
14833
14834           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
14835 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
14836           # Check whether --enable-joystick was given.
14837 if test "${enable_joystick+set}" = set; then
14838   enableval=$enable_joystick;
14839                           if test "$enableval" = yes; then
14840                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
14841                           else
14842                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
14843                           fi
14844                           cache=yes
14845
14846 else
14847
14848                           cache=no
14849                           LINE=`grep "^wxUSE_JOYSTICK=" ${wx_arg_cache_file}`
14850                           if test "x$LINE" != x ; then
14851                             eval "DEFAULT_$LINE"
14852                           fi
14853
14854                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
14855
14856 fi
14857
14858
14859           eval "$wx_cv_use_joystick"
14860           if test "x$cache" = xyes; then
14861             echo "wxUSE_JOYSTICK=$wxUSE_JOYSTICK" >> ${wx_arg_cache_file}.tmp
14862           fi
14863
14864           if test x"$enablestring" = xdisable; then
14865             if test $wxUSE_JOYSTICK = yes; then
14866               result=no
14867             else
14868               result=yes
14869             fi
14870           else
14871             result=$wxUSE_JOYSTICK
14872           fi
14873
14874           { echo "$as_me:$LINENO: result: $result" >&5
14875 echo "${ECHO_T}$result" >&6; }
14876
14877
14878           enablestring=
14879           defaultval=$wxUSE_ALL_FEATURES
14880           if test -z "$defaultval"; then
14881               if test x"$enablestring" = xdisable; then
14882                   defaultval=yes
14883               else
14884                   defaultval=no
14885               fi
14886           fi
14887
14888           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
14889 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
14890           # Check whether --enable-metafile was given.
14891 if test "${enable_metafile+set}" = set; then
14892   enableval=$enable_metafile;
14893                           if test "$enableval" = yes; then
14894                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
14895                           else
14896                             wx_cv_use_metafile='wxUSE_METAFILE=no'
14897                           fi
14898                           cache=yes
14899
14900 else
14901
14902                           cache=no
14903                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
14904                           if test "x$LINE" != x ; then
14905                             eval "DEFAULT_$LINE"
14906                           fi
14907
14908                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
14909
14910 fi
14911
14912
14913           eval "$wx_cv_use_metafile"
14914           if test "x$cache" = xyes; then
14915             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
14916           fi
14917
14918           if test x"$enablestring" = xdisable; then
14919             if test $wxUSE_METAFILE = yes; then
14920               result=no
14921             else
14922               result=yes
14923             fi
14924           else
14925             result=$wxUSE_METAFILE
14926           fi
14927
14928           { echo "$as_me:$LINENO: result: $result" >&5
14929 echo "${ECHO_T}$result" >&6; }
14930
14931
14932           enablestring=
14933           defaultval=$wxUSE_ALL_FEATURES
14934           if test -z "$defaultval"; then
14935               if test x"$enablestring" = xdisable; then
14936                   defaultval=yes
14937               else
14938                   defaultval=no
14939               fi
14940           fi
14941
14942           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
14943 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
14944           # Check whether --enable-dragimage was given.
14945 if test "${enable_dragimage+set}" = set; then
14946   enableval=$enable_dragimage;
14947                           if test "$enableval" = yes; then
14948                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
14949                           else
14950                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
14951                           fi
14952                           cache=yes
14953
14954 else
14955
14956                           cache=no
14957                           LINE=`grep "^wxUSE_DRAGIMAGE=" ${wx_arg_cache_file}`
14958                           if test "x$LINE" != x ; then
14959                             eval "DEFAULT_$LINE"
14960                           fi
14961
14962                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
14963
14964 fi
14965
14966
14967           eval "$wx_cv_use_dragimage"
14968           if test "x$cache" = xyes; then
14969             echo "wxUSE_DRAGIMAGE=$wxUSE_DRAGIMAGE" >> ${wx_arg_cache_file}.tmp
14970           fi
14971
14972           if test x"$enablestring" = xdisable; then
14973             if test $wxUSE_DRAGIMAGE = yes; then
14974               result=no
14975             else
14976               result=yes
14977             fi
14978           else
14979             result=$wxUSE_DRAGIMAGE
14980           fi
14981
14982           { echo "$as_me:$LINENO: result: $result" >&5
14983 echo "${ECHO_T}$result" >&6; }
14984
14985
14986           enablestring=
14987           defaultval=$wxUSE_ALL_FEATURES
14988           if test -z "$defaultval"; then
14989               if test x"$enablestring" = xdisable; then
14990                   defaultval=yes
14991               else
14992                   defaultval=no
14993               fi
14994           fi
14995
14996           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
14997 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
14998           # Check whether --enable-accessibility was given.
14999 if test "${enable_accessibility+set}" = set; then
15000   enableval=$enable_accessibility;
15001                           if test "$enableval" = yes; then
15002                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
15003                           else
15004                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
15005                           fi
15006                           cache=yes
15007
15008 else
15009
15010                           cache=no
15011                           LINE=`grep "^wxUSE_ACCESSIBILITY=" ${wx_arg_cache_file}`
15012                           if test "x$LINE" != x ; then
15013                             eval "DEFAULT_$LINE"
15014                           fi
15015
15016                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
15017
15018 fi
15019
15020
15021           eval "$wx_cv_use_accessibility"
15022           if test "x$cache" = xyes; then
15023             echo "wxUSE_ACCESSIBILITY=$wxUSE_ACCESSIBILITY" >> ${wx_arg_cache_file}.tmp
15024           fi
15025
15026           if test x"$enablestring" = xdisable; then
15027             if test $wxUSE_ACCESSIBILITY = yes; then
15028               result=no
15029             else
15030               result=yes
15031             fi
15032           else
15033             result=$wxUSE_ACCESSIBILITY
15034           fi
15035
15036           { echo "$as_me:$LINENO: result: $result" >&5
15037 echo "${ECHO_T}$result" >&6; }
15038
15039
15040
15041
15042           enablestring=
15043           defaultval=$wxUSE_ALL_FEATURES
15044           if test -z "$defaultval"; then
15045               if test x"$enablestring" = xdisable; then
15046                   defaultval=yes
15047               else
15048                   defaultval=no
15049               fi
15050           fi
15051
15052           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
15053 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
15054           # Check whether --enable-palette was given.
15055 if test "${enable_palette+set}" = set; then
15056   enableval=$enable_palette;
15057                           if test "$enableval" = yes; then
15058                             wx_cv_use_palette='wxUSE_PALETTE=yes'
15059                           else
15060                             wx_cv_use_palette='wxUSE_PALETTE=no'
15061                           fi
15062                           cache=yes
15063
15064 else
15065
15066                           cache=no
15067                           LINE=`grep "^wxUSE_PALETTE=" ${wx_arg_cache_file}`
15068                           if test "x$LINE" != x ; then
15069                             eval "DEFAULT_$LINE"
15070                           fi
15071
15072                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
15073
15074 fi
15075
15076
15077           eval "$wx_cv_use_palette"
15078           if test "x$cache" = xyes; then
15079             echo "wxUSE_PALETTE=$wxUSE_PALETTE" >> ${wx_arg_cache_file}.tmp
15080           fi
15081
15082           if test x"$enablestring" = xdisable; then
15083             if test $wxUSE_PALETTE = yes; then
15084               result=no
15085             else
15086               result=yes
15087             fi
15088           else
15089             result=$wxUSE_PALETTE
15090           fi
15091
15092           { echo "$as_me:$LINENO: result: $result" >&5
15093 echo "${ECHO_T}$result" >&6; }
15094
15095
15096           enablestring=
15097           defaultval=$wxUSE_ALL_FEATURES
15098           if test -z "$defaultval"; then
15099               if test x"$enablestring" = xdisable; then
15100                   defaultval=yes
15101               else
15102                   defaultval=no
15103               fi
15104           fi
15105
15106           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
15107 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
15108           # Check whether --enable-image was given.
15109 if test "${enable_image+set}" = set; then
15110   enableval=$enable_image;
15111                           if test "$enableval" = yes; then
15112                             wx_cv_use_image='wxUSE_IMAGE=yes'
15113                           else
15114                             wx_cv_use_image='wxUSE_IMAGE=no'
15115                           fi
15116                           cache=yes
15117
15118 else
15119
15120                           cache=no
15121                           LINE=`grep "^wxUSE_IMAGE=" ${wx_arg_cache_file}`
15122                           if test "x$LINE" != x ; then
15123                             eval "DEFAULT_$LINE"
15124                           fi
15125
15126                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
15127
15128 fi
15129
15130
15131           eval "$wx_cv_use_image"
15132           if test "x$cache" = xyes; then
15133             echo "wxUSE_IMAGE=$wxUSE_IMAGE" >> ${wx_arg_cache_file}.tmp
15134           fi
15135
15136           if test x"$enablestring" = xdisable; then
15137             if test $wxUSE_IMAGE = yes; then
15138               result=no
15139             else
15140               result=yes
15141             fi
15142           else
15143             result=$wxUSE_IMAGE
15144           fi
15145
15146           { echo "$as_me:$LINENO: result: $result" >&5
15147 echo "${ECHO_T}$result" >&6; }
15148
15149
15150           enablestring=
15151           defaultval=$wxUSE_ALL_FEATURES
15152           if test -z "$defaultval"; then
15153               if test x"$enablestring" = xdisable; then
15154                   defaultval=yes
15155               else
15156                   defaultval=no
15157               fi
15158           fi
15159
15160           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
15161 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
15162           # Check whether --enable-gif was given.
15163 if test "${enable_gif+set}" = set; then
15164   enableval=$enable_gif;
15165                           if test "$enableval" = yes; then
15166                             wx_cv_use_gif='wxUSE_GIF=yes'
15167                           else
15168                             wx_cv_use_gif='wxUSE_GIF=no'
15169                           fi
15170                           cache=yes
15171
15172 else
15173
15174                           cache=no
15175                           LINE=`grep "^wxUSE_GIF=" ${wx_arg_cache_file}`
15176                           if test "x$LINE" != x ; then
15177                             eval "DEFAULT_$LINE"
15178                           fi
15179
15180                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
15181
15182 fi
15183
15184
15185           eval "$wx_cv_use_gif"
15186           if test "x$cache" = xyes; then
15187             echo "wxUSE_GIF=$wxUSE_GIF" >> ${wx_arg_cache_file}.tmp
15188           fi
15189
15190           if test x"$enablestring" = xdisable; then
15191             if test $wxUSE_GIF = yes; then
15192               result=no
15193             else
15194               result=yes
15195             fi
15196           else
15197             result=$wxUSE_GIF
15198           fi
15199
15200           { echo "$as_me:$LINENO: result: $result" >&5
15201 echo "${ECHO_T}$result" >&6; }
15202
15203
15204           enablestring=
15205           defaultval=$wxUSE_ALL_FEATURES
15206           if test -z "$defaultval"; then
15207               if test x"$enablestring" = xdisable; then
15208                   defaultval=yes
15209               else
15210                   defaultval=no
15211               fi
15212           fi
15213
15214           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
15215 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
15216           # Check whether --enable-pcx was given.
15217 if test "${enable_pcx+set}" = set; then
15218   enableval=$enable_pcx;
15219                           if test "$enableval" = yes; then
15220                             wx_cv_use_pcx='wxUSE_PCX=yes'
15221                           else
15222                             wx_cv_use_pcx='wxUSE_PCX=no'
15223                           fi
15224                           cache=yes
15225
15226 else
15227
15228                           cache=no
15229                           LINE=`grep "^wxUSE_PCX=" ${wx_arg_cache_file}`
15230                           if test "x$LINE" != x ; then
15231                             eval "DEFAULT_$LINE"
15232                           fi
15233
15234                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
15235
15236 fi
15237
15238
15239           eval "$wx_cv_use_pcx"
15240           if test "x$cache" = xyes; then
15241             echo "wxUSE_PCX=$wxUSE_PCX" >> ${wx_arg_cache_file}.tmp
15242           fi
15243
15244           if test x"$enablestring" = xdisable; then
15245             if test $wxUSE_PCX = yes; then
15246               result=no
15247             else
15248               result=yes
15249             fi
15250           else
15251             result=$wxUSE_PCX
15252           fi
15253
15254           { echo "$as_me:$LINENO: result: $result" >&5
15255 echo "${ECHO_T}$result" >&6; }
15256
15257
15258           enablestring=
15259           defaultval=$wxUSE_ALL_FEATURES
15260           if test -z "$defaultval"; then
15261               if test x"$enablestring" = xdisable; then
15262                   defaultval=yes
15263               else
15264                   defaultval=no
15265               fi
15266           fi
15267
15268           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
15269 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
15270           # Check whether --enable-tga was given.
15271 if test "${enable_tga+set}" = set; then
15272   enableval=$enable_tga;
15273                           if test "$enableval" = yes; then
15274                             wx_cv_use_tga='wxUSE_TGA=yes'
15275                           else
15276                             wx_cv_use_tga='wxUSE_TGA=no'
15277                           fi
15278                           cache=yes
15279
15280 else
15281
15282                           cache=no
15283                           LINE=`grep "^wxUSE_TGA=" ${wx_arg_cache_file}`
15284                           if test "x$LINE" != x ; then
15285                             eval "DEFAULT_$LINE"
15286                           fi
15287
15288                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
15289
15290 fi
15291
15292
15293           eval "$wx_cv_use_tga"
15294           if test "x$cache" = xyes; then
15295             echo "wxUSE_TGA=$wxUSE_TGA" >> ${wx_arg_cache_file}.tmp
15296           fi
15297
15298           if test x"$enablestring" = xdisable; then
15299             if test $wxUSE_TGA = yes; then
15300               result=no
15301             else
15302               result=yes
15303             fi
15304           else
15305             result=$wxUSE_TGA
15306           fi
15307
15308           { echo "$as_me:$LINENO: result: $result" >&5
15309 echo "${ECHO_T}$result" >&6; }
15310
15311
15312           enablestring=
15313           defaultval=$wxUSE_ALL_FEATURES
15314           if test -z "$defaultval"; then
15315               if test x"$enablestring" = xdisable; then
15316                   defaultval=yes
15317               else
15318                   defaultval=no
15319               fi
15320           fi
15321
15322           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
15323 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
15324           # Check whether --enable-iff was given.
15325 if test "${enable_iff+set}" = set; then
15326   enableval=$enable_iff;
15327                           if test "$enableval" = yes; then
15328                             wx_cv_use_iff='wxUSE_IFF=yes'
15329                           else
15330                             wx_cv_use_iff='wxUSE_IFF=no'
15331                           fi
15332                           cache=yes
15333
15334 else
15335
15336                           cache=no
15337                           LINE=`grep "^wxUSE_IFF=" ${wx_arg_cache_file}`
15338                           if test "x$LINE" != x ; then
15339                             eval "DEFAULT_$LINE"
15340                           fi
15341
15342                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
15343
15344 fi
15345
15346
15347           eval "$wx_cv_use_iff"
15348           if test "x$cache" = xyes; then
15349             echo "wxUSE_IFF=$wxUSE_IFF" >> ${wx_arg_cache_file}.tmp
15350           fi
15351
15352           if test x"$enablestring" = xdisable; then
15353             if test $wxUSE_IFF = yes; then
15354               result=no
15355             else
15356               result=yes
15357             fi
15358           else
15359             result=$wxUSE_IFF
15360           fi
15361
15362           { echo "$as_me:$LINENO: result: $result" >&5
15363 echo "${ECHO_T}$result" >&6; }
15364
15365
15366           enablestring=
15367           defaultval=$wxUSE_ALL_FEATURES
15368           if test -z "$defaultval"; then
15369               if test x"$enablestring" = xdisable; then
15370                   defaultval=yes
15371               else
15372                   defaultval=no
15373               fi
15374           fi
15375
15376           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
15377 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
15378           # Check whether --enable-pnm was given.
15379 if test "${enable_pnm+set}" = set; then
15380   enableval=$enable_pnm;
15381                           if test "$enableval" = yes; then
15382                             wx_cv_use_pnm='wxUSE_PNM=yes'
15383                           else
15384                             wx_cv_use_pnm='wxUSE_PNM=no'
15385                           fi
15386                           cache=yes
15387
15388 else
15389
15390                           cache=no
15391                           LINE=`grep "^wxUSE_PNM=" ${wx_arg_cache_file}`
15392                           if test "x$LINE" != x ; then
15393                             eval "DEFAULT_$LINE"
15394                           fi
15395
15396                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
15397
15398 fi
15399
15400
15401           eval "$wx_cv_use_pnm"
15402           if test "x$cache" = xyes; then
15403             echo "wxUSE_PNM=$wxUSE_PNM" >> ${wx_arg_cache_file}.tmp
15404           fi
15405
15406           if test x"$enablestring" = xdisable; then
15407             if test $wxUSE_PNM = yes; then
15408               result=no
15409             else
15410               result=yes
15411             fi
15412           else
15413             result=$wxUSE_PNM
15414           fi
15415
15416           { echo "$as_me:$LINENO: result: $result" >&5
15417 echo "${ECHO_T}$result" >&6; }
15418
15419
15420           enablestring=
15421           defaultval=$wxUSE_ALL_FEATURES
15422           if test -z "$defaultval"; then
15423               if test x"$enablestring" = xdisable; then
15424                   defaultval=yes
15425               else
15426                   defaultval=no
15427               fi
15428           fi
15429
15430           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
15431 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
15432           # Check whether --enable-xpm was given.
15433 if test "${enable_xpm+set}" = set; then
15434   enableval=$enable_xpm;
15435                           if test "$enableval" = yes; then
15436                             wx_cv_use_xpm='wxUSE_XPM=yes'
15437                           else
15438                             wx_cv_use_xpm='wxUSE_XPM=no'
15439                           fi
15440                           cache=yes
15441
15442 else
15443
15444                           cache=no
15445                           LINE=`grep "^wxUSE_XPM=" ${wx_arg_cache_file}`
15446                           if test "x$LINE" != x ; then
15447                             eval "DEFAULT_$LINE"
15448                           fi
15449
15450                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
15451
15452 fi
15453
15454
15455           eval "$wx_cv_use_xpm"
15456           if test "x$cache" = xyes; then
15457             echo "wxUSE_XPM=$wxUSE_XPM" >> ${wx_arg_cache_file}.tmp
15458           fi
15459
15460           if test x"$enablestring" = xdisable; then
15461             if test $wxUSE_XPM = yes; then
15462               result=no
15463             else
15464               result=yes
15465             fi
15466           else
15467             result=$wxUSE_XPM
15468           fi
15469
15470           { echo "$as_me:$LINENO: result: $result" >&5
15471 echo "${ECHO_T}$result" >&6; }
15472
15473
15474           enablestring=
15475           defaultval=$wxUSE_ALL_FEATURES
15476           if test -z "$defaultval"; then
15477               if test x"$enablestring" = xdisable; then
15478                   defaultval=yes
15479               else
15480                   defaultval=no
15481               fi
15482           fi
15483
15484           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
15485 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
15486           # Check whether --enable-ico_cur was given.
15487 if test "${enable_ico_cur+set}" = set; then
15488   enableval=$enable_ico_cur;
15489                           if test "$enableval" = yes; then
15490                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
15491                           else
15492                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
15493                           fi
15494                           cache=yes
15495
15496 else
15497
15498                           cache=no
15499                           LINE=`grep "^wxUSE_ICO_CUR=" ${wx_arg_cache_file}`
15500                           if test "x$LINE" != x ; then
15501                             eval "DEFAULT_$LINE"
15502                           fi
15503
15504                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
15505
15506 fi
15507
15508
15509           eval "$wx_cv_use_ico_cur"
15510           if test "x$cache" = xyes; then
15511             echo "wxUSE_ICO_CUR=$wxUSE_ICO_CUR" >> ${wx_arg_cache_file}.tmp
15512           fi
15513
15514           if test x"$enablestring" = xdisable; then
15515             if test $wxUSE_ICO_CUR = yes; then
15516               result=no
15517             else
15518               result=yes
15519             fi
15520           else
15521             result=$wxUSE_ICO_CUR
15522           fi
15523
15524           { echo "$as_me:$LINENO: result: $result" >&5
15525 echo "${ECHO_T}$result" >&6; }
15526
15527
15528
15529
15530           enablestring=
15531           defaultval=$wxUSE_ALL_FEATURES
15532           if test -z "$defaultval"; then
15533               if test x"$enablestring" = xdisable; then
15534                   defaultval=yes
15535               else
15536                   defaultval=no
15537               fi
15538           fi
15539
15540           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
15541 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
15542           # Check whether --enable-dccache was given.
15543 if test "${enable_dccache+set}" = set; then
15544   enableval=$enable_dccache;
15545                           if test "$enableval" = yes; then
15546                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
15547                           else
15548                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
15549                           fi
15550                           cache=yes
15551
15552 else
15553
15554                           cache=no
15555                           LINE=`grep "^wxUSE_DC_CACHEING=" ${wx_arg_cache_file}`
15556                           if test "x$LINE" != x ; then
15557                             eval "DEFAULT_$LINE"
15558                           fi
15559
15560                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
15561
15562 fi
15563
15564
15565           eval "$wx_cv_use_dccache"
15566           if test "x$cache" = xyes; then
15567             echo "wxUSE_DC_CACHEING=$wxUSE_DC_CACHEING" >> ${wx_arg_cache_file}.tmp
15568           fi
15569
15570           if test x"$enablestring" = xdisable; then
15571             if test $wxUSE_DC_CACHEING = yes; then
15572               result=no
15573             else
15574               result=yes
15575             fi
15576           else
15577             result=$wxUSE_DC_CACHEING
15578           fi
15579
15580           { echo "$as_me:$LINENO: result: $result" >&5
15581 echo "${ECHO_T}$result" >&6; }
15582
15583
15584           enablestring=
15585           defaultval=$wxUSE_ALL_FEATURES
15586           if test -z "$defaultval"; then
15587               if test x"$enablestring" = xdisable; then
15588                   defaultval=yes
15589               else
15590                   defaultval=no
15591               fi
15592           fi
15593
15594           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
15595 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
15596           # Check whether --enable-ps-in-msw was given.
15597 if test "${enable_ps_in_msw+set}" = set; then
15598   enableval=$enable_ps_in_msw;
15599                           if test "$enableval" = yes; then
15600                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
15601                           else
15602                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
15603                           fi
15604                           cache=yes
15605
15606 else
15607
15608                           cache=no
15609                           LINE=`grep "^wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=" ${wx_arg_cache_file}`
15610                           if test "x$LINE" != x ; then
15611                             eval "DEFAULT_$LINE"
15612                           fi
15613
15614                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
15615
15616 fi
15617
15618
15619           eval "$wx_cv_use_ps_in_msw"
15620           if test "x$cache" = xyes; then
15621             echo "wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" >> ${wx_arg_cache_file}.tmp
15622           fi
15623
15624           if test x"$enablestring" = xdisable; then
15625             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
15626               result=no
15627             else
15628               result=yes
15629             fi
15630           else
15631             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
15632           fi
15633
15634           { echo "$as_me:$LINENO: result: $result" >&5
15635 echo "${ECHO_T}$result" >&6; }
15636
15637
15638           enablestring=
15639           defaultval=$wxUSE_ALL_FEATURES
15640           if test -z "$defaultval"; then
15641               if test x"$enablestring" = xdisable; then
15642                   defaultval=yes
15643               else
15644                   defaultval=no
15645               fi
15646           fi
15647
15648           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
15649 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
15650           # Check whether --enable-ownerdrawn was given.
15651 if test "${enable_ownerdrawn+set}" = set; then
15652   enableval=$enable_ownerdrawn;
15653                           if test "$enableval" = yes; then
15654                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
15655                           else
15656                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
15657                           fi
15658                           cache=yes
15659
15660 else
15661
15662                           cache=no
15663                           LINE=`grep "^wxUSE_OWNER_DRAWN=" ${wx_arg_cache_file}`
15664                           if test "x$LINE" != x ; then
15665                             eval "DEFAULT_$LINE"
15666                           fi
15667
15668                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
15669
15670 fi
15671
15672
15673           eval "$wx_cv_use_ownerdrawn"
15674           if test "x$cache" = xyes; then
15675             echo "wxUSE_OWNER_DRAWN=$wxUSE_OWNER_DRAWN" >> ${wx_arg_cache_file}.tmp
15676           fi
15677
15678           if test x"$enablestring" = xdisable; then
15679             if test $wxUSE_OWNER_DRAWN = yes; then
15680               result=no
15681             else
15682               result=yes
15683             fi
15684           else
15685             result=$wxUSE_OWNER_DRAWN
15686           fi
15687
15688           { echo "$as_me:$LINENO: result: $result" >&5
15689 echo "${ECHO_T}$result" >&6; }
15690
15691
15692           enablestring=
15693           defaultval=$wxUSE_ALL_FEATURES
15694           if test -z "$defaultval"; then
15695               if test x"$enablestring" = xdisable; then
15696                   defaultval=yes
15697               else
15698                   defaultval=no
15699               fi
15700           fi
15701
15702           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
15703 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
15704           # Check whether --enable-regkey was given.
15705 if test "${enable_regkey+set}" = set; then
15706   enableval=$enable_regkey;
15707                           if test "$enableval" = yes; then
15708                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
15709                           else
15710                             wx_cv_use_regkey='wxUSE_REGKEY=no'
15711                           fi
15712                           cache=yes
15713
15714 else
15715
15716                           cache=no
15717                           LINE=`grep "^wxUSE_REGKEY=" ${wx_arg_cache_file}`
15718                           if test "x$LINE" != x ; then
15719                             eval "DEFAULT_$LINE"
15720                           fi
15721
15722                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
15723
15724 fi
15725
15726
15727           eval "$wx_cv_use_regkey"
15728           if test "x$cache" = xyes; then
15729             echo "wxUSE_REGKEY=$wxUSE_REGKEY" >> ${wx_arg_cache_file}.tmp
15730           fi
15731
15732           if test x"$enablestring" = xdisable; then
15733             if test $wxUSE_REGKEY = yes; then
15734               result=no
15735             else
15736               result=yes
15737             fi
15738           else
15739             result=$wxUSE_REGKEY
15740           fi
15741
15742           { echo "$as_me:$LINENO: result: $result" >&5
15743 echo "${ECHO_T}$result" >&6; }
15744
15745
15746           enablestring=
15747           defaultval=$wxUSE_ALL_FEATURES
15748           if test -z "$defaultval"; then
15749               if test x"$enablestring" = xdisable; then
15750                   defaultval=yes
15751               else
15752                   defaultval=no
15753               fi
15754           fi
15755
15756           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
15757 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
15758           # Check whether --enable-uxtheme was given.
15759 if test "${enable_uxtheme+set}" = set; then
15760   enableval=$enable_uxtheme;
15761                           if test "$enableval" = yes; then
15762                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
15763                           else
15764                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
15765                           fi
15766                           cache=yes
15767
15768 else
15769
15770                           cache=no
15771                           LINE=`grep "^wxUSE_UXTHEME=" ${wx_arg_cache_file}`
15772                           if test "x$LINE" != x ; then
15773                             eval "DEFAULT_$LINE"
15774                           fi
15775
15776                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
15777
15778 fi
15779
15780
15781           eval "$wx_cv_use_uxtheme"
15782           if test "x$cache" = xyes; then
15783             echo "wxUSE_UXTHEME=$wxUSE_UXTHEME" >> ${wx_arg_cache_file}.tmp
15784           fi
15785
15786           if test x"$enablestring" = xdisable; then
15787             if test $wxUSE_UXTHEME = yes; then
15788               result=no
15789             else
15790               result=yes
15791             fi
15792           else
15793             result=$wxUSE_UXTHEME
15794           fi
15795
15796           { echo "$as_me:$LINENO: result: $result" >&5
15797 echo "${ECHO_T}$result" >&6; }
15798
15799
15800           enablestring=
15801           defaultval=$wxUSE_ALL_FEATURES
15802           if test -z "$defaultval"; then
15803               if test x"$enablestring" = xdisable; then
15804                   defaultval=yes
15805               else
15806                   defaultval=no
15807               fi
15808           fi
15809
15810           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
15811 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
15812           # Check whether --enable-wxdib was given.
15813 if test "${enable_wxdib+set}" = set; then
15814   enableval=$enable_wxdib;
15815                           if test "$enableval" = yes; then
15816                             wx_cv_use_wxdib='wxUSE_DIB=yes'
15817                           else
15818                             wx_cv_use_wxdib='wxUSE_DIB=no'
15819                           fi
15820                           cache=yes
15821
15822 else
15823
15824                           cache=no
15825                           LINE=`grep "^wxUSE_DIB=" ${wx_arg_cache_file}`
15826                           if test "x$LINE" != x ; then
15827                             eval "DEFAULT_$LINE"
15828                           fi
15829
15830                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
15831
15832 fi
15833
15834
15835           eval "$wx_cv_use_wxdib"
15836           if test "x$cache" = xyes; then
15837             echo "wxUSE_DIB=$wxUSE_DIB" >> ${wx_arg_cache_file}.tmp
15838           fi
15839
15840           if test x"$enablestring" = xdisable; then
15841             if test $wxUSE_DIB = yes; then
15842               result=no
15843             else
15844               result=yes
15845             fi
15846           else
15847             result=$wxUSE_DIB
15848           fi
15849
15850           { echo "$as_me:$LINENO: result: $result" >&5
15851 echo "${ECHO_T}$result" >&6; }
15852
15853
15854 fi
15855
15856
15857           echo "saving argument cache $wx_arg_cache_file"
15858           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
15859
15860
15861
15862 { echo "$as_me:$LINENO: checking for toolkit" >&5
15863 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
15864
15865 # In Wine, we need to default to MSW, not GTK or MOTIF
15866 if test "$wxUSE_WINE" = "yes"; then
15867     DEFAULT_DEFAULT_wxUSE_GTK=0
15868     DEFAULT_DEFAULT_wxUSE_MOTIF=0
15869     DEFAULT_DEFAULT_wxUSE_MSW=1
15870     wxUSE_SHARED=no
15871     CC=${CC:-winegcc}
15872     CXX=${CXX:-wineg++}
15873 fi
15874
15875
15876 if test "$wxUSE_GUI" = "yes"; then
15877
15878     if test "$USE_BEOS" = 1; then
15879         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
15880 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
15881    { (exit 1); exit 1; }; }
15882     fi
15883
15884     if test "$TOOLKIT_GIVEN" = 1; then
15885             for toolkit in `echo $ALL_TOOLKITS`; do
15886         var=wxUSE_$toolkit
15887         eval "value=\$${var}"
15888         if test "x$value" = "xno"; then
15889           eval "$var=0"
15890         elif test "x$value" != "x"; then
15891           eval "$var=1"
15892         fi
15893
15894         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
15895           eval "wx${toolkit}_VERSION=$value"
15896         fi
15897       done
15898     else
15899             for toolkit in `echo $ALL_TOOLKITS`; do
15900         if test "$has_toolkit_in_cache" != 1; then
15901           var=DEFAULT_DEFAULT_wxUSE_$toolkit
15902         else
15903           var=DEFAULT_wxUSE_$toolkit
15904
15905           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
15906           if test "x$version" != "x"; then
15907             eval "wx${toolkit}_VERSION=$version"
15908           fi
15909         fi
15910         eval "wxUSE_$toolkit=\$${var}"
15911       done
15912     fi
15913
15914             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
15915                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
15916                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
15917
15918         case "${host}" in
15919       *-pc-os2_emx | *-pc-os2-emx )
15920         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
15921     esac
15922
15923     case "$NUM_TOOLKITS" in
15924       1)
15925       ;;
15926       0)
15927         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
15928 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
15929    { (exit 1); exit 1; }; }
15930       ;;
15931       *)
15932         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
15933 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
15934    { (exit 1); exit 1; }; }
15935     esac
15936
15937     # to be removed when --disable-gtk2 isn't needed
15938     if test "x$wxUSE_GTK2" = "xyes"; then
15939         wxGTK_VERSION=2
15940     elif test "x$wxUSE_GTK2" = "xno"; then
15941         wxGTK_VERSION=1
15942     fi
15943
15944         for toolkit in `echo $ALL_TOOLKITS`; do
15945       var=wxUSE_$toolkit
15946       eval "value=\$${var}"
15947       if test "x$value" != x; then
15948         cache_var=CACHE_$toolkit
15949         eval "cache=\$${cache_var}"
15950         if test "$cache" = 1; then
15951           echo "$var=$value" >> ${wx_arg_cache_file}
15952           eval "version=\$wx${toolkit}_VERSION"
15953           if test "x$version" != "x"; then
15954             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
15955           fi
15956         fi
15957         if test "$value" = 1; then
15958           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
15959           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
15960 echo "${ECHO_T}$toolkit_echo" >&6; }
15961         fi
15962       fi
15963     done
15964 else
15965     if test "x$host_alias" != "x"; then
15966         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
15967 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
15968     else
15969         { echo "$as_me:$LINENO: result: base only" >&5
15970 echo "${ECHO_T}base only" >&6; }
15971     fi
15972 fi
15973
15974
15975 cat >confcache <<\_ACEOF
15976 # This file is a shell script that caches the results of configure
15977 # tests run on this system so they can be shared between configure
15978 # scripts and configure runs, see configure's option --config-cache.
15979 # It is not useful on other systems.  If it contains results you don't
15980 # want to keep, you may remove or edit it.
15981 #
15982 # config.status only pays attention to the cache file if you give it
15983 # the --recheck option to rerun configure.
15984 #
15985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15987 # following values.
15988
15989 _ACEOF
15990
15991 # The following way of writing the cache mishandles newlines in values,
15992 # but we know of no workaround that is simple, portable, and efficient.
15993 # So, we kill variables containing newlines.
15994 # Ultrix sh set writes to stderr and can't be redirected directly,
15995 # and sets the high bit in the cache file unless we assign to the vars.
15996 (
15997   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15998     eval ac_val=\$$ac_var
15999     case $ac_val in #(
16000     *${as_nl}*)
16001       case $ac_var in #(
16002       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16003 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16004       esac
16005       case $ac_var in #(
16006       _ | IFS | as_nl) ;; #(
16007       *) $as_unset $ac_var ;;
16008       esac ;;
16009     esac
16010   done
16011
16012   (set) 2>&1 |
16013     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16014     *${as_nl}ac_space=\ *)
16015       # `set' does not quote correctly, so add quotes (double-quote
16016       # substitution turns \\\\ into \\, and sed turns \\ into \).
16017       sed -n \
16018         "s/'/'\\\\''/g;
16019           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16020       ;; #(
16021     *)
16022       # `set' quotes correctly as required by POSIX, so do not add quotes.
16023       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16024       ;;
16025     esac |
16026     sort
16027 ) |
16028   sed '
16029      /^ac_cv_env_/b end
16030      t clear
16031      :clear
16032      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16033      t end
16034      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16035      :end' >>confcache
16036 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16037   if test -w "$cache_file"; then
16038     test "x$cache_file" != "x/dev/null" &&
16039       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16040 echo "$as_me: updating cache $cache_file" >&6;}
16041     cat confcache >$cache_file
16042   else
16043     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16044 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16045   fi
16046 fi
16047 rm -f confcache
16048
16049 CFLAGS=${CFLAGS:=}
16050
16051
16052
16053     ac_ext=c
16054 ac_cpp='$CPP $CPPFLAGS'
16055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16058 if test -n "$ac_tool_prefix"; then
16059   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16060 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16063 if test "${ac_cv_prog_CC+set}" = set; then
16064   echo $ECHO_N "(cached) $ECHO_C" >&6
16065 else
16066   if test -n "$CC"; then
16067   ac_cv_prog_CC="$CC" # Let the user override the test.
16068 else
16069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16070 for as_dir in $PATH
16071 do
16072   IFS=$as_save_IFS
16073   test -z "$as_dir" && as_dir=.
16074   for ac_exec_ext in '' $ac_executable_extensions; do
16075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16076     ac_cv_prog_CC="${ac_tool_prefix}gcc"
16077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16078     break 2
16079   fi
16080 done
16081 done
16082 IFS=$as_save_IFS
16083
16084 fi
16085 fi
16086 CC=$ac_cv_prog_CC
16087 if test -n "$CC"; then
16088   { echo "$as_me:$LINENO: result: $CC" >&5
16089 echo "${ECHO_T}$CC" >&6; }
16090 else
16091   { echo "$as_me:$LINENO: result: no" >&5
16092 echo "${ECHO_T}no" >&6; }
16093 fi
16094
16095
16096 fi
16097 if test -z "$ac_cv_prog_CC"; then
16098   ac_ct_CC=$CC
16099   # Extract the first word of "gcc", so it can be a program name with args.
16100 set dummy gcc; ac_word=$2
16101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16104   echo $ECHO_N "(cached) $ECHO_C" >&6
16105 else
16106   if test -n "$ac_ct_CC"; then
16107   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16108 else
16109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16110 for as_dir in $PATH
16111 do
16112   IFS=$as_save_IFS
16113   test -z "$as_dir" && as_dir=.
16114   for ac_exec_ext in '' $ac_executable_extensions; do
16115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16116     ac_cv_prog_ac_ct_CC="gcc"
16117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16118     break 2
16119   fi
16120 done
16121 done
16122 IFS=$as_save_IFS
16123
16124 fi
16125 fi
16126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16127 if test -n "$ac_ct_CC"; then
16128   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16129 echo "${ECHO_T}$ac_ct_CC" >&6; }
16130 else
16131   { echo "$as_me:$LINENO: result: no" >&5
16132 echo "${ECHO_T}no" >&6; }
16133 fi
16134
16135   if test "x$ac_ct_CC" = x; then
16136     CC=""
16137   else
16138     case $cross_compiling:$ac_tool_warned in
16139 yes:)
16140 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16141 whose name does not start with the host triplet.  If you think this
16142 configuration is useful to you, please write to autoconf@gnu.org." >&5
16143 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16144 whose name does not start with the host triplet.  If you think this
16145 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16146 ac_tool_warned=yes ;;
16147 esac
16148     CC=$ac_ct_CC
16149   fi
16150 else
16151   CC="$ac_cv_prog_CC"
16152 fi
16153
16154 if test -z "$CC"; then
16155           if test -n "$ac_tool_prefix"; then
16156     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16157 set dummy ${ac_tool_prefix}cc; ac_word=$2
16158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16160 if test "${ac_cv_prog_CC+set}" = set; then
16161   echo $ECHO_N "(cached) $ECHO_C" >&6
16162 else
16163   if test -n "$CC"; then
16164   ac_cv_prog_CC="$CC" # Let the user override the test.
16165 else
16166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16167 for as_dir in $PATH
16168 do
16169   IFS=$as_save_IFS
16170   test -z "$as_dir" && as_dir=.
16171   for ac_exec_ext in '' $ac_executable_extensions; do
16172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16173     ac_cv_prog_CC="${ac_tool_prefix}cc"
16174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16175     break 2
16176   fi
16177 done
16178 done
16179 IFS=$as_save_IFS
16180
16181 fi
16182 fi
16183 CC=$ac_cv_prog_CC
16184 if test -n "$CC"; then
16185   { echo "$as_me:$LINENO: result: $CC" >&5
16186 echo "${ECHO_T}$CC" >&6; }
16187 else
16188   { echo "$as_me:$LINENO: result: no" >&5
16189 echo "${ECHO_T}no" >&6; }
16190 fi
16191
16192
16193   fi
16194 fi
16195 if test -z "$CC"; then
16196   # Extract the first word of "cc", so it can be a program name with args.
16197 set dummy cc; ac_word=$2
16198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16200 if test "${ac_cv_prog_CC+set}" = set; then
16201   echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203   if test -n "$CC"; then
16204   ac_cv_prog_CC="$CC" # Let the user override the test.
16205 else
16206   ac_prog_rejected=no
16207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16208 for as_dir in $PATH
16209 do
16210   IFS=$as_save_IFS
16211   test -z "$as_dir" && as_dir=.
16212   for ac_exec_ext in '' $ac_executable_extensions; do
16213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16214     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16215        ac_prog_rejected=yes
16216        continue
16217      fi
16218     ac_cv_prog_CC="cc"
16219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16220     break 2
16221   fi
16222 done
16223 done
16224 IFS=$as_save_IFS
16225
16226 if test $ac_prog_rejected = yes; then
16227   # We found a bogon in the path, so make sure we never use it.
16228   set dummy $ac_cv_prog_CC
16229   shift
16230   if test $# != 0; then
16231     # We chose a different compiler from the bogus one.
16232     # However, it has the same basename, so the bogon will be chosen
16233     # first if we set CC to just the basename; use the full file name.
16234     shift
16235     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16236   fi
16237 fi
16238 fi
16239 fi
16240 CC=$ac_cv_prog_CC
16241 if test -n "$CC"; then
16242   { echo "$as_me:$LINENO: result: $CC" >&5
16243 echo "${ECHO_T}$CC" >&6; }
16244 else
16245   { echo "$as_me:$LINENO: result: no" >&5
16246 echo "${ECHO_T}no" >&6; }
16247 fi
16248
16249
16250 fi
16251 if test -z "$CC"; then
16252   if test -n "$ac_tool_prefix"; then
16253   for ac_prog in cl.exe
16254   do
16255     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16259 if test "${ac_cv_prog_CC+set}" = set; then
16260   echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262   if test -n "$CC"; then
16263   ac_cv_prog_CC="$CC" # Let the user override the test.
16264 else
16265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16266 for as_dir in $PATH
16267 do
16268   IFS=$as_save_IFS
16269   test -z "$as_dir" && as_dir=.
16270   for ac_exec_ext in '' $ac_executable_extensions; do
16271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16272     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16274     break 2
16275   fi
16276 done
16277 done
16278 IFS=$as_save_IFS
16279
16280 fi
16281 fi
16282 CC=$ac_cv_prog_CC
16283 if test -n "$CC"; then
16284   { echo "$as_me:$LINENO: result: $CC" >&5
16285 echo "${ECHO_T}$CC" >&6; }
16286 else
16287   { echo "$as_me:$LINENO: result: no" >&5
16288 echo "${ECHO_T}no" >&6; }
16289 fi
16290
16291
16292     test -n "$CC" && break
16293   done
16294 fi
16295 if test -z "$CC"; then
16296   ac_ct_CC=$CC
16297   for ac_prog in cl.exe
16298 do
16299   # Extract the first word of "$ac_prog", so it can be a program name with args.
16300 set dummy $ac_prog; ac_word=$2
16301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16304   echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306   if test -n "$ac_ct_CC"; then
16307   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16308 else
16309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16310 for as_dir in $PATH
16311 do
16312   IFS=$as_save_IFS
16313   test -z "$as_dir" && as_dir=.
16314   for ac_exec_ext in '' $ac_executable_extensions; do
16315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16316     ac_cv_prog_ac_ct_CC="$ac_prog"
16317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16318     break 2
16319   fi
16320 done
16321 done
16322 IFS=$as_save_IFS
16323
16324 fi
16325 fi
16326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16327 if test -n "$ac_ct_CC"; then
16328   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16329 echo "${ECHO_T}$ac_ct_CC" >&6; }
16330 else
16331   { echo "$as_me:$LINENO: result: no" >&5
16332 echo "${ECHO_T}no" >&6; }
16333 fi
16334
16335
16336   test -n "$ac_ct_CC" && break
16337 done
16338
16339   if test "x$ac_ct_CC" = x; then
16340     CC=""
16341   else
16342     case $cross_compiling:$ac_tool_warned in
16343 yes:)
16344 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16345 whose name does not start with the host triplet.  If you think this
16346 configuration is useful to you, please write to autoconf@gnu.org." >&5
16347 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16348 whose name does not start with the host triplet.  If you think this
16349 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16350 ac_tool_warned=yes ;;
16351 esac
16352     CC=$ac_ct_CC
16353   fi
16354 fi
16355
16356 fi
16357
16358
16359 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
16360 See \`config.log' for more details." >&5
16361 echo "$as_me: error: no acceptable C compiler found in \$PATH
16362 See \`config.log' for more details." >&2;}
16363    { (exit 1); exit 1; }; }
16364
16365 # Provide some information about the compiler.
16366 echo "$as_me:$LINENO: checking for C compiler version" >&5
16367 ac_compiler=`set X $ac_compile; echo $2`
16368 { (ac_try="$ac_compiler --version >&5"
16369 case "(($ac_try" in
16370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371   *) ac_try_echo=$ac_try;;
16372 esac
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374   (eval "$ac_compiler --version >&5") 2>&5
16375   ac_status=$?
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); }
16378 { (ac_try="$ac_compiler -v >&5"
16379 case "(($ac_try" in
16380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381   *) ac_try_echo=$ac_try;;
16382 esac
16383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384   (eval "$ac_compiler -v >&5") 2>&5
16385   ac_status=$?
16386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387   (exit $ac_status); }
16388 { (ac_try="$ac_compiler -V >&5"
16389 case "(($ac_try" in
16390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391   *) ac_try_echo=$ac_try;;
16392 esac
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394   (eval "$ac_compiler -V >&5") 2>&5
16395   ac_status=$?
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); }
16398
16399 cat >conftest.$ac_ext <<_ACEOF
16400 /* confdefs.h.  */
16401 _ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h.  */
16405
16406 int
16407 main ()
16408 {
16409
16410   ;
16411   return 0;
16412 }
16413 _ACEOF
16414 ac_clean_files_save=$ac_clean_files
16415 ac_clean_files="$ac_clean_files a.out a.exe b.out"
16416 # Try to create an executable without -o first, disregard a.out.
16417 # It will help us diagnose broken compilers, and finding out an intuition
16418 # of exeext.
16419 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
16420 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
16421 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
16422 #
16423 # List of possible output files, starting from the most likely.
16424 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
16425 # only as a last resort.  b.out is created by i960 compilers.
16426 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
16427 #
16428 # The IRIX 6 linker writes into existing files which may not be
16429 # executable, retaining their permissions.  Remove them first so a
16430 # subsequent execution test works.
16431 ac_rmfiles=
16432 for ac_file in $ac_files
16433 do
16434   case $ac_file in
16435     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
16436     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
16437   esac
16438 done
16439 rm -f $ac_rmfiles
16440
16441 if { (ac_try="$ac_link_default"
16442 case "(($ac_try" in
16443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444   *) ac_try_echo=$ac_try;;
16445 esac
16446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447   (eval "$ac_link_default") 2>&5
16448   ac_status=$?
16449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450   (exit $ac_status); }; then
16451   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
16452 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
16453 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
16454 # so that the user can short-circuit this test for compilers unknown to
16455 # Autoconf.
16456 for ac_file in $ac_files ''
16457 do
16458   test -f "$ac_file" || continue
16459   case $ac_file in
16460     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
16461         ;;
16462     [ab].out )
16463         # We found the default executable, but exeext='' is most
16464         # certainly right.
16465         break;;
16466     *.* )
16467         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
16468         then :; else
16469            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
16470         fi
16471         # We set ac_cv_exeext here because the later test for it is not
16472         # safe: cross compilers may not add the suffix if given an `-o'
16473         # argument, so we may need to know it at that point already.
16474         # Even if this section looks crufty: it has the advantage of
16475         # actually working.
16476         break;;
16477     * )
16478         break;;
16479   esac
16480 done
16481 test "$ac_cv_exeext" = no && ac_cv_exeext=
16482
16483 else
16484   ac_file=''
16485 fi
16486
16487 { echo "$as_me:$LINENO: result: $ac_file" >&5
16488 echo "${ECHO_T}$ac_file" >&6; }
16489 if test -z "$ac_file"; then
16490   echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16492
16493 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
16494 See \`config.log' for more details." >&5
16495 echo "$as_me: error: C compiler cannot create executables
16496 See \`config.log' for more details." >&2;}
16497    { (exit 77); exit 77; }; }
16498 fi
16499
16500 ac_exeext=$ac_cv_exeext
16501
16502 # Check that the compiler produces executables we can run.  If not, either
16503 # the compiler is broken, or we cross compile.
16504 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
16505 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
16506 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
16507 # If not cross compiling, check that we can run a simple program.
16508 if test "$cross_compiling" != yes; then
16509   if { ac_try='./$ac_file'
16510   { (case "(($ac_try" in
16511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512   *) ac_try_echo=$ac_try;;
16513 esac
16514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515   (eval "$ac_try") 2>&5
16516   ac_status=$?
16517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518   (exit $ac_status); }; }; then
16519     cross_compiling=no
16520   else
16521     if test "$cross_compiling" = maybe; then
16522         cross_compiling=yes
16523     else
16524         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
16525 If you meant to cross compile, use \`--host'.
16526 See \`config.log' for more details." >&5
16527 echo "$as_me: error: cannot run C compiled programs.
16528 If you meant to cross compile, use \`--host'.
16529 See \`config.log' for more details." >&2;}
16530    { (exit 1); exit 1; }; }
16531     fi
16532   fi
16533 fi
16534 { echo "$as_me:$LINENO: result: yes" >&5
16535 echo "${ECHO_T}yes" >&6; }
16536
16537 rm -f a.out a.exe conftest$ac_cv_exeext b.out
16538 ac_clean_files=$ac_clean_files_save
16539 # Check that the compiler produces executables we can run.  If not, either
16540 # the compiler is broken, or we cross compile.
16541 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
16542 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
16543 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
16544 echo "${ECHO_T}$cross_compiling" >&6; }
16545
16546 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
16547 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
16548 if { (ac_try="$ac_link"
16549 case "(($ac_try" in
16550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551   *) ac_try_echo=$ac_try;;
16552 esac
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554   (eval "$ac_link") 2>&5
16555   ac_status=$?
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); }; then
16558   # If both `conftest.exe' and `conftest' are `present' (well, observable)
16559 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
16560 # work properly (i.e., refer to `conftest.exe'), while it won't with
16561 # `rm'.
16562 for ac_file in conftest.exe conftest conftest.*; do
16563   test -f "$ac_file" || continue
16564   case $ac_file in
16565     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
16566     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
16567           break;;
16568     * ) break;;
16569   esac
16570 done
16571 else
16572   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
16573 See \`config.log' for more details." >&5
16574 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
16575 See \`config.log' for more details." >&2;}
16576    { (exit 1); exit 1; }; }
16577 fi
16578
16579 rm -f conftest$ac_cv_exeext
16580 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
16581 echo "${ECHO_T}$ac_cv_exeext" >&6; }
16582
16583 rm -f conftest.$ac_ext
16584 EXEEXT=$ac_cv_exeext
16585 ac_exeext=$EXEEXT
16586 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
16587 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
16588 if test "${ac_cv_objext+set}" = set; then
16589   echo $ECHO_N "(cached) $ECHO_C" >&6
16590 else
16591   cat >conftest.$ac_ext <<_ACEOF
16592 /* confdefs.h.  */
16593 _ACEOF
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h.  */
16597
16598 int
16599 main ()
16600 {
16601
16602   ;
16603   return 0;
16604 }
16605 _ACEOF
16606 rm -f conftest.o conftest.obj
16607 if { (ac_try="$ac_compile"
16608 case "(($ac_try" in
16609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610   *) ac_try_echo=$ac_try;;
16611 esac
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613   (eval "$ac_compile") 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }; then
16617   for ac_file in conftest.o conftest.obj conftest.*; do
16618   test -f "$ac_file" || continue;
16619   case $ac_file in
16620     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
16621     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
16622        break;;
16623   esac
16624 done
16625 else
16626   echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16628
16629 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
16630 See \`config.log' for more details." >&5
16631 echo "$as_me: error: cannot compute suffix of object files: cannot compile
16632 See \`config.log' for more details." >&2;}
16633    { (exit 1); exit 1; }; }
16634 fi
16635
16636 rm -f conftest.$ac_cv_objext conftest.$ac_ext
16637 fi
16638 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
16639 echo "${ECHO_T}$ac_cv_objext" >&6; }
16640 OBJEXT=$ac_cv_objext
16641 ac_objext=$OBJEXT
16642 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
16643 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
16644 if test "${ac_cv_c_compiler_gnu+set}" = set; then
16645   echo $ECHO_N "(cached) $ECHO_C" >&6
16646 else
16647   cat >conftest.$ac_ext <<_ACEOF
16648 /* confdefs.h.  */
16649 _ACEOF
16650 cat confdefs.h >>conftest.$ac_ext
16651 cat >>conftest.$ac_ext <<_ACEOF
16652 /* end confdefs.h.  */
16653
16654 int
16655 main ()
16656 {
16657 #ifndef __GNUC__
16658        choke me
16659 #endif
16660
16661   ;
16662   return 0;
16663 }
16664 _ACEOF
16665 rm -f conftest.$ac_objext
16666 if { (ac_try="$ac_compile"
16667 case "(($ac_try" in
16668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669   *) ac_try_echo=$ac_try;;
16670 esac
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672   (eval "$ac_compile") 2>conftest.er1
16673   ac_status=$?
16674   grep -v '^ *+' conftest.er1 >conftest.err
16675   rm -f conftest.er1
16676   cat conftest.err >&5
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); } && {
16679          test -z "$ac_c_werror_flag" ||
16680          test ! -s conftest.err
16681        } && test -s conftest.$ac_objext; then
16682   ac_compiler_gnu=yes
16683 else
16684   echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16686
16687         ac_compiler_gnu=no
16688 fi
16689
16690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16692
16693 fi
16694 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
16695 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
16696 GCC=`test $ac_compiler_gnu = yes && echo yes`
16697 ac_test_CFLAGS=${CFLAGS+set}
16698 ac_save_CFLAGS=$CFLAGS
16699 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16700 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16701 if test "${ac_cv_prog_cc_g+set}" = set; then
16702   echo $ECHO_N "(cached) $ECHO_C" >&6
16703 else
16704   ac_save_c_werror_flag=$ac_c_werror_flag
16705    ac_c_werror_flag=yes
16706    ac_cv_prog_cc_g=no
16707    CFLAGS="-g"
16708    cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h.  */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h.  */
16714
16715 int
16716 main ()
16717 {
16718
16719   ;
16720   return 0;
16721 }
16722 _ACEOF
16723 rm -f conftest.$ac_objext
16724 if { (ac_try="$ac_compile"
16725 case "(($ac_try" in
16726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727   *) ac_try_echo=$ac_try;;
16728 esac
16729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16730   (eval "$ac_compile") 2>conftest.er1
16731   ac_status=$?
16732   grep -v '^ *+' conftest.er1 >conftest.err
16733   rm -f conftest.er1
16734   cat conftest.err >&5
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); } && {
16737          test -z "$ac_c_werror_flag" ||
16738          test ! -s conftest.err
16739        } && test -s conftest.$ac_objext; then
16740   ac_cv_prog_cc_g=yes
16741 else
16742   echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16744
16745         CFLAGS=""
16746       cat >conftest.$ac_ext <<_ACEOF
16747 /* confdefs.h.  */
16748 _ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h.  */
16752
16753 int
16754 main ()
16755 {
16756
16757   ;
16758   return 0;
16759 }
16760 _ACEOF
16761 rm -f conftest.$ac_objext
16762 if { (ac_try="$ac_compile"
16763 case "(($ac_try" in
16764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765   *) ac_try_echo=$ac_try;;
16766 esac
16767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768   (eval "$ac_compile") 2>conftest.er1
16769   ac_status=$?
16770   grep -v '^ *+' conftest.er1 >conftest.err
16771   rm -f conftest.er1
16772   cat conftest.err >&5
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); } && {
16775          test -z "$ac_c_werror_flag" ||
16776          test ! -s conftest.err
16777        } && test -s conftest.$ac_objext; then
16778   :
16779 else
16780   echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16782
16783         ac_c_werror_flag=$ac_save_c_werror_flag
16784          CFLAGS="-g"
16785          cat >conftest.$ac_ext <<_ACEOF
16786 /* confdefs.h.  */
16787 _ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h.  */
16791
16792 int
16793 main ()
16794 {
16795
16796   ;
16797   return 0;
16798 }
16799 _ACEOF
16800 rm -f conftest.$ac_objext
16801 if { (ac_try="$ac_compile"
16802 case "(($ac_try" in
16803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804   *) ac_try_echo=$ac_try;;
16805 esac
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807   (eval "$ac_compile") 2>conftest.er1
16808   ac_status=$?
16809   grep -v '^ *+' conftest.er1 >conftest.err
16810   rm -f conftest.er1
16811   cat conftest.err >&5
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); } && {
16814          test -z "$ac_c_werror_flag" ||
16815          test ! -s conftest.err
16816        } && test -s conftest.$ac_objext; then
16817   ac_cv_prog_cc_g=yes
16818 else
16819   echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16821
16822
16823 fi
16824
16825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16826 fi
16827
16828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16829 fi
16830
16831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16832    ac_c_werror_flag=$ac_save_c_werror_flag
16833 fi
16834 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16835 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16836 if test "$ac_test_CFLAGS" = set; then
16837   CFLAGS=$ac_save_CFLAGS
16838 elif test $ac_cv_prog_cc_g = yes; then
16839   if test "$GCC" = yes; then
16840     CFLAGS="-g -O2"
16841   else
16842     CFLAGS="-g"
16843   fi
16844 else
16845   if test "$GCC" = yes; then
16846     CFLAGS="-O2"
16847   else
16848     CFLAGS=
16849   fi
16850 fi
16851 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
16852 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
16853 if test "${ac_cv_prog_cc_c89+set}" = set; then
16854   echo $ECHO_N "(cached) $ECHO_C" >&6
16855 else
16856   ac_cv_prog_cc_c89=no
16857 ac_save_CC=$CC
16858 cat >conftest.$ac_ext <<_ACEOF
16859 /* confdefs.h.  */
16860 _ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h.  */
16864 #include <stdarg.h>
16865 #include <stdio.h>
16866 #include <sys/types.h>
16867 #include <sys/stat.h>
16868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16869 struct buf { int x; };
16870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16871 static char *e (p, i)
16872      char **p;
16873      int i;
16874 {
16875   return p[i];
16876 }
16877 static char *f (char * (*g) (char **, int), char **p, ...)
16878 {
16879   char *s;
16880   va_list v;
16881   va_start (v,p);
16882   s = g (p, va_arg (v,int));
16883   va_end (v);
16884   return s;
16885 }
16886
16887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16888    function prototypes and stuff, but not '\xHH' hex character constants.
16889    These don't provoke an error unfortunately, instead are silently treated
16890    as 'x'.  The following induces an error, until -std is added to get
16891    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16892    array size at least.  It's necessary to write '\x00'==0 to get something
16893    that's true only with -std.  */
16894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16895
16896 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16897    inside strings and character constants.  */
16898 #define FOO(x) 'x'
16899 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16900
16901 int test (int i, double x);
16902 struct s1 {int (*f) (int a);};
16903 struct s2 {int (*f) (double a);};
16904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16905 int argc;
16906 char **argv;
16907 int
16908 main ()
16909 {
16910 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16911   ;
16912   return 0;
16913 }
16914 _ACEOF
16915 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16916         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16917 do
16918   CC="$ac_save_CC $ac_arg"
16919   rm -f conftest.$ac_objext
16920 if { (ac_try="$ac_compile"
16921 case "(($ac_try" in
16922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923   *) ac_try_echo=$ac_try;;
16924 esac
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926   (eval "$ac_compile") 2>conftest.er1
16927   ac_status=$?
16928   grep -v '^ *+' conftest.er1 >conftest.err
16929   rm -f conftest.er1
16930   cat conftest.err >&5
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); } && {
16933          test -z "$ac_c_werror_flag" ||
16934          test ! -s conftest.err
16935        } && test -s conftest.$ac_objext; then
16936   ac_cv_prog_cc_c89=$ac_arg
16937 else
16938   echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16940
16941
16942 fi
16943
16944 rm -f core conftest.err conftest.$ac_objext
16945   test "x$ac_cv_prog_cc_c89" != "xno" && break
16946 done
16947 rm -f conftest.$ac_ext
16948 CC=$ac_save_CC
16949
16950 fi
16951 # AC_CACHE_VAL
16952 case "x$ac_cv_prog_cc_c89" in
16953   x)
16954     { echo "$as_me:$LINENO: result: none needed" >&5
16955 echo "${ECHO_T}none needed" >&6; } ;;
16956   xno)
16957     { echo "$as_me:$LINENO: result: unsupported" >&5
16958 echo "${ECHO_T}unsupported" >&6; } ;;
16959   *)
16960     CC="$CC $ac_cv_prog_cc_c89"
16961     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
16962 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
16963 esac
16964
16965
16966 ac_ext=c
16967 ac_cpp='$CPP $CPPFLAGS'
16968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16971
16972
16973
16974
16975     ac_ext=c
16976 ac_cpp='$CPP $CPPFLAGS'
16977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16980
16981     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
16982 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
16983 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986   cat >conftest.$ac_ext <<_ACEOF
16987 /* confdefs.h.  */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h.  */
16992
16993 int
16994 main ()
16995 {
16996
16997              #ifndef __INTEL_COMPILER
16998                 choke me
16999              #endif
17000
17001   ;
17002   return 0;
17003 }
17004 _ACEOF
17005 rm -f conftest.$ac_objext
17006 if { (ac_try="$ac_compile"
17007 case "(($ac_try" in
17008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009   *) ac_try_echo=$ac_try;;
17010 esac
17011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012   (eval "$ac_compile") 2>conftest.er1
17013   ac_status=$?
17014   grep -v '^ *+' conftest.er1 >conftest.err
17015   rm -f conftest.er1
17016   cat conftest.err >&5
17017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); } && {
17019          test -z "$ac_c_werror_flag" ||
17020          test ! -s conftest.err
17021        } && test -s conftest.$ac_objext; then
17022   bakefile_cv_c_compiler___INTEL_COMPILER=yes
17023 else
17024   echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17026
17027         bakefile_cv_c_compiler___INTEL_COMPILER=no
17028
17029 fi
17030
17031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032
17033
17034 fi
17035 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
17036 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
17037     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
17038         :; INTELCC=yes
17039     else
17040         :;
17041     fi
17042     ac_ext=c
17043 ac_cpp='$CPP $CPPFLAGS'
17044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17047
17048
17049
17050
17051         if test "x$GCC" != "xyes"; then
17052         if test "xCC" = "xC"; then
17053             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17054 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17055 if test "${bakefile_cv_c_exto+set}" = set; then
17056   echo $ECHO_N "(cached) $ECHO_C" >&6
17057 else
17058   cat >conftest.$ac_ext <<_ACEOF
17059 /* confdefs.h.  */
17060 _ACEOF
17061 cat confdefs.h >>conftest.$ac_ext
17062 cat >>conftest.$ac_ext <<_ACEOF
17063 /* end confdefs.h.  */
17064
17065 int
17066 main ()
17067 {
17068
17069   ;
17070   return 0;
17071 }
17072 _ACEOF
17073 rm -f conftest.$ac_objext conftest.$ac_ext.o
17074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17075   (eval $ac_compile) 2>&5
17076   ac_status=$?
17077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078   (exit $ac_status); }; then
17079   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17080     case $ac_file in
17081         conftest.$ac_ext.o)
17082             bakefile_cv_c_exto="-ext o"
17083             ;;
17084         *)
17085             ;;
17086     esac
17087 done
17088 else
17089   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17090 See \`config.log' for more details." >&5
17091 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17092 See \`config.log' for more details." >&2;}
17093    { (exit 1); exit 1; }; }
17094
17095 fi
17096
17097 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17098
17099 fi
17100 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17101 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17102 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17103     if test "c" = "c"; then
17104         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17105     fi
17106     if test "c" = "cxx"; then
17107         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17108     fi
17109 fi
17110
17111             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17112                 unset ac_cv_prog_cc_g
17113                 ac_test_CFLAGS=${CFLAGS+set}
17114 ac_save_CFLAGS=$CFLAGS
17115 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17116 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17117 if test "${ac_cv_prog_cc_g+set}" = set; then
17118   echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120   ac_save_c_werror_flag=$ac_c_werror_flag
17121    ac_c_werror_flag=yes
17122    ac_cv_prog_cc_g=no
17123    CFLAGS="-g"
17124    cat >conftest.$ac_ext <<_ACEOF
17125 /* confdefs.h.  */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h.  */
17130
17131 int
17132 main ()
17133 {
17134
17135   ;
17136   return 0;
17137 }
17138 _ACEOF
17139 rm -f conftest.$ac_objext
17140 if { (ac_try="$ac_compile"
17141 case "(($ac_try" in
17142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143   *) ac_try_echo=$ac_try;;
17144 esac
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146   (eval "$ac_compile") 2>conftest.er1
17147   ac_status=$?
17148   grep -v '^ *+' conftest.er1 >conftest.err
17149   rm -f conftest.er1
17150   cat conftest.err >&5
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); } && {
17153          test -z "$ac_c_werror_flag" ||
17154          test ! -s conftest.err
17155        } && test -s conftest.$ac_objext; then
17156   ac_cv_prog_cc_g=yes
17157 else
17158   echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17160
17161         CFLAGS=""
17162       cat >conftest.$ac_ext <<_ACEOF
17163 /* confdefs.h.  */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h.  */
17168
17169 int
17170 main ()
17171 {
17172
17173   ;
17174   return 0;
17175 }
17176 _ACEOF
17177 rm -f conftest.$ac_objext
17178 if { (ac_try="$ac_compile"
17179 case "(($ac_try" in
17180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181   *) ac_try_echo=$ac_try;;
17182 esac
17183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184   (eval "$ac_compile") 2>conftest.er1
17185   ac_status=$?
17186   grep -v '^ *+' conftest.er1 >conftest.err
17187   rm -f conftest.er1
17188   cat conftest.err >&5
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); } && {
17191          test -z "$ac_c_werror_flag" ||
17192          test ! -s conftest.err
17193        } && test -s conftest.$ac_objext; then
17194   :
17195 else
17196   echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17198
17199         ac_c_werror_flag=$ac_save_c_werror_flag
17200          CFLAGS="-g"
17201          cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h.  */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h.  */
17207
17208 int
17209 main ()
17210 {
17211
17212   ;
17213   return 0;
17214 }
17215 _ACEOF
17216 rm -f conftest.$ac_objext
17217 if { (ac_try="$ac_compile"
17218 case "(($ac_try" in
17219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220   *) ac_try_echo=$ac_try;;
17221 esac
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223   (eval "$ac_compile") 2>conftest.er1
17224   ac_status=$?
17225   grep -v '^ *+' conftest.er1 >conftest.err
17226   rm -f conftest.er1
17227   cat conftest.err >&5
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); } && {
17230          test -z "$ac_c_werror_flag" ||
17231          test ! -s conftest.err
17232        } && test -s conftest.$ac_objext; then
17233   ac_cv_prog_cc_g=yes
17234 else
17235   echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.$ac_ext >&5
17237
17238
17239 fi
17240
17241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17242 fi
17243
17244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17245 fi
17246
17247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17248    ac_c_werror_flag=$ac_save_c_werror_flag
17249 fi
17250 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17251 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17252 if test "$ac_test_CFLAGS" = set; then
17253   CFLAGS=$ac_save_CFLAGS
17254 elif test $ac_cv_prog_cc_g = yes; then
17255   if test "$GCC" = yes; then
17256     CFLAGS="-g -O2"
17257   else
17258     CFLAGS="-g"
17259   fi
17260 else
17261   if test "$GCC" = yes; then
17262     CFLAGS="-O2"
17263   else
17264     CFLAGS=
17265   fi
17266 fi
17267             fi
17268         fi
17269
17270                         case `uname -s` in
17271             AIX*)
17272
17273
17274     ac_ext=c
17275 ac_cpp='$CPP $CPPFLAGS'
17276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17279
17280     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17281 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17282 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17283   echo $ECHO_N "(cached) $ECHO_C" >&6
17284 else
17285   cat >conftest.$ac_ext <<_ACEOF
17286 /* confdefs.h.  */
17287 _ACEOF
17288 cat confdefs.h >>conftest.$ac_ext
17289 cat >>conftest.$ac_ext <<_ACEOF
17290 /* end confdefs.h.  */
17291
17292 int
17293 main ()
17294 {
17295
17296              #ifndef __xlC__
17297                 choke me
17298              #endif
17299
17300   ;
17301   return 0;
17302 }
17303 _ACEOF
17304 rm -f conftest.$ac_objext
17305 if { (ac_try="$ac_compile"
17306 case "(($ac_try" in
17307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308   *) ac_try_echo=$ac_try;;
17309 esac
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311   (eval "$ac_compile") 2>conftest.er1
17312   ac_status=$?
17313   grep -v '^ *+' conftest.er1 >conftest.err
17314   rm -f conftest.er1
17315   cat conftest.err >&5
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); } && {
17318          test -z "$ac_c_werror_flag" ||
17319          test ! -s conftest.err
17320        } && test -s conftest.$ac_objext; then
17321   bakefile_cv_c_compiler___xlC__=yes
17322 else
17323   echo "$as_me: failed program was:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17325
17326         bakefile_cv_c_compiler___xlC__=no
17327
17328 fi
17329
17330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17331
17332
17333 fi
17334 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17335 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17336     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17337         :; XLCC=yes
17338     else
17339         :;
17340     fi
17341     ac_ext=c
17342 ac_cpp='$CPP $CPPFLAGS'
17343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17346
17347
17348
17349                 ;;
17350
17351             Darwin)
17352
17353
17354     ac_ext=c
17355 ac_cpp='$CPP $CPPFLAGS'
17356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17359
17360     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
17361 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
17362 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
17363   echo $ECHO_N "(cached) $ECHO_C" >&6
17364 else
17365   cat >conftest.$ac_ext <<_ACEOF
17366 /* confdefs.h.  */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h.  */
17371
17372 int
17373 main ()
17374 {
17375
17376              #ifndef __MWERKS__
17377                 choke me
17378              #endif
17379
17380   ;
17381   return 0;
17382 }
17383 _ACEOF
17384 rm -f conftest.$ac_objext
17385 if { (ac_try="$ac_compile"
17386 case "(($ac_try" in
17387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388   *) ac_try_echo=$ac_try;;
17389 esac
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391   (eval "$ac_compile") 2>conftest.er1
17392   ac_status=$?
17393   grep -v '^ *+' conftest.er1 >conftest.err
17394   rm -f conftest.er1
17395   cat conftest.err >&5
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); } && {
17398          test -z "$ac_c_werror_flag" ||
17399          test ! -s conftest.err
17400        } && test -s conftest.$ac_objext; then
17401   bakefile_cv_c_compiler___MWERKS__=yes
17402 else
17403   echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17405
17406         bakefile_cv_c_compiler___MWERKS__=no
17407
17408 fi
17409
17410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17411
17412
17413 fi
17414 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
17415 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
17416     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
17417         :; MWCC=yes
17418     else
17419         :;
17420     fi
17421     ac_ext=c
17422 ac_cpp='$CPP $CPPFLAGS'
17423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17426
17427
17428
17429
17430
17431     ac_ext=c
17432 ac_cpp='$CPP $CPPFLAGS'
17433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17436
17437     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17438 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17439 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17440   echo $ECHO_N "(cached) $ECHO_C" >&6
17441 else
17442   cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h.  */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h.  */
17448
17449 int
17450 main ()
17451 {
17452
17453              #ifndef __xlC__
17454                 choke me
17455              #endif
17456
17457   ;
17458   return 0;
17459 }
17460 _ACEOF
17461 rm -f conftest.$ac_objext
17462 if { (ac_try="$ac_compile"
17463 case "(($ac_try" in
17464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465   *) ac_try_echo=$ac_try;;
17466 esac
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468   (eval "$ac_compile") 2>conftest.er1
17469   ac_status=$?
17470   grep -v '^ *+' conftest.er1 >conftest.err
17471   rm -f conftest.er1
17472   cat conftest.err >&5
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); } && {
17475          test -z "$ac_c_werror_flag" ||
17476          test ! -s conftest.err
17477        } && test -s conftest.$ac_objext; then
17478   bakefile_cv_c_compiler___xlC__=yes
17479 else
17480   echo "$as_me: failed program was:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17482
17483         bakefile_cv_c_compiler___xlC__=no
17484
17485 fi
17486
17487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17488
17489
17490 fi
17491 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17492 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17493     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17494         :; XLCC=yes
17495     else
17496         :;
17497     fi
17498     ac_ext=c
17499 ac_cpp='$CPP $CPPFLAGS'
17500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17503
17504
17505
17506                 ;;
17507
17508             IRIX*)
17509
17510
17511     ac_ext=c
17512 ac_cpp='$CPP $CPPFLAGS'
17513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17516
17517     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
17518 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
17519 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
17520   echo $ECHO_N "(cached) $ECHO_C" >&6
17521 else
17522   cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h.  */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h.  */
17528
17529 int
17530 main ()
17531 {
17532
17533              #ifndef _SGI_COMPILER_VERSION
17534                 choke me
17535              #endif
17536
17537   ;
17538   return 0;
17539 }
17540 _ACEOF
17541 rm -f conftest.$ac_objext
17542 if { (ac_try="$ac_compile"
17543 case "(($ac_try" in
17544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545   *) ac_try_echo=$ac_try;;
17546 esac
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548   (eval "$ac_compile") 2>conftest.er1
17549   ac_status=$?
17550   grep -v '^ *+' conftest.er1 >conftest.err
17551   rm -f conftest.er1
17552   cat conftest.err >&5
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); } && {
17555          test -z "$ac_c_werror_flag" ||
17556          test ! -s conftest.err
17557        } && test -s conftest.$ac_objext; then
17558   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
17559 else
17560   echo "$as_me: failed program was:" >&5
17561 sed 's/^/| /' conftest.$ac_ext >&5
17562
17563         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
17564
17565 fi
17566
17567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17568
17569
17570 fi
17571 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
17572 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
17573     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17574         :; SGICC=yes
17575     else
17576         :;
17577     fi
17578     ac_ext=c
17579 ac_cpp='$CPP $CPPFLAGS'
17580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17583
17584
17585
17586                 ;;
17587
17588             Linux*)
17589
17590
17591     ac_ext=c
17592 ac_cpp='$CPP $CPPFLAGS'
17593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17596
17597     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17598 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17599 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17600   echo $ECHO_N "(cached) $ECHO_C" >&6
17601 else
17602   cat >conftest.$ac_ext <<_ACEOF
17603 /* confdefs.h.  */
17604 _ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h.  */
17608
17609 int
17610 main ()
17611 {
17612
17613              #ifndef __SUNPRO_C
17614                 choke me
17615              #endif
17616
17617   ;
17618   return 0;
17619 }
17620 _ACEOF
17621 rm -f conftest.$ac_objext
17622 if { (ac_try="$ac_compile"
17623 case "(($ac_try" in
17624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625   *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628   (eval "$ac_compile") 2>conftest.er1
17629   ac_status=$?
17630   grep -v '^ *+' conftest.er1 >conftest.err
17631   rm -f conftest.er1
17632   cat conftest.err >&5
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); } && {
17635          test -z "$ac_c_werror_flag" ||
17636          test ! -s conftest.err
17637        } && test -s conftest.$ac_objext; then
17638   bakefile_cv_c_compiler___SUNPRO_C=yes
17639 else
17640   echo "$as_me: failed program was:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17642
17643         bakefile_cv_c_compiler___SUNPRO_C=no
17644
17645 fi
17646
17647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17648
17649
17650 fi
17651 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17652 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17653     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17654         :; SUNCC=yes
17655     else
17656         :;
17657     fi
17658     ac_ext=c
17659 ac_cpp='$CPP $CPPFLAGS'
17660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17663
17664
17665
17666                 ;;
17667
17668             HP-UX*)
17669
17670
17671     ac_ext=c
17672 ac_cpp='$CPP $CPPFLAGS'
17673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17676
17677     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
17678 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
17679 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
17680   echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682   cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688
17689 int
17690 main ()
17691 {
17692
17693              #ifndef __HP_cc
17694                 choke me
17695              #endif
17696
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708   (eval "$ac_compile") 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } && {
17715          test -z "$ac_c_werror_flag" ||
17716          test ! -s conftest.err
17717        } && test -s conftest.$ac_objext; then
17718   bakefile_cv_c_compiler___HP_cc=yes
17719 else
17720   echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17722
17723         bakefile_cv_c_compiler___HP_cc=no
17724
17725 fi
17726
17727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17728
17729
17730 fi
17731 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
17732 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
17733     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
17734         :; HPCC=yes
17735     else
17736         :;
17737     fi
17738     ac_ext=c
17739 ac_cpp='$CPP $CPPFLAGS'
17740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17743
17744
17745
17746                 ;;
17747
17748             OSF1)
17749
17750
17751     ac_ext=c
17752 ac_cpp='$CPP $CPPFLAGS'
17753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17756
17757     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
17758 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
17759 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
17760   echo $ECHO_N "(cached) $ECHO_C" >&6
17761 else
17762   cat >conftest.$ac_ext <<_ACEOF
17763 /* confdefs.h.  */
17764 _ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h.  */
17768
17769 int
17770 main ()
17771 {
17772
17773              #ifndef __DECC
17774                 choke me
17775              #endif
17776
17777   ;
17778   return 0;
17779 }
17780 _ACEOF
17781 rm -f conftest.$ac_objext
17782 if { (ac_try="$ac_compile"
17783 case "(($ac_try" in
17784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785   *) ac_try_echo=$ac_try;;
17786 esac
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788   (eval "$ac_compile") 2>conftest.er1
17789   ac_status=$?
17790   grep -v '^ *+' conftest.er1 >conftest.err
17791   rm -f conftest.er1
17792   cat conftest.err >&5
17793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); } && {
17795          test -z "$ac_c_werror_flag" ||
17796          test ! -s conftest.err
17797        } && test -s conftest.$ac_objext; then
17798   bakefile_cv_c_compiler___DECC=yes
17799 else
17800   echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17802
17803         bakefile_cv_c_compiler___DECC=no
17804
17805 fi
17806
17807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808
17809
17810 fi
17811 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
17812 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
17813     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
17814         :; COMPAQCC=yes
17815     else
17816         :;
17817     fi
17818     ac_ext=c
17819 ac_cpp='$CPP $CPPFLAGS'
17820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17823
17824
17825
17826                 ;;
17827
17828             SunOS)
17829
17830
17831     ac_ext=c
17832 ac_cpp='$CPP $CPPFLAGS'
17833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17836
17837     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17838 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17839 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17840   echo $ECHO_N "(cached) $ECHO_C" >&6
17841 else
17842   cat >conftest.$ac_ext <<_ACEOF
17843 /* confdefs.h.  */
17844 _ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h.  */
17848
17849 int
17850 main ()
17851 {
17852
17853              #ifndef __SUNPRO_C
17854                 choke me
17855              #endif
17856
17857   ;
17858   return 0;
17859 }
17860 _ACEOF
17861 rm -f conftest.$ac_objext
17862 if { (ac_try="$ac_compile"
17863 case "(($ac_try" in
17864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865   *) ac_try_echo=$ac_try;;
17866 esac
17867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17868   (eval "$ac_compile") 2>conftest.er1
17869   ac_status=$?
17870   grep -v '^ *+' conftest.er1 >conftest.err
17871   rm -f conftest.er1
17872   cat conftest.err >&5
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); } && {
17875          test -z "$ac_c_werror_flag" ||
17876          test ! -s conftest.err
17877        } && test -s conftest.$ac_objext; then
17878   bakefile_cv_c_compiler___SUNPRO_C=yes
17879 else
17880   echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17882
17883         bakefile_cv_c_compiler___SUNPRO_C=no
17884
17885 fi
17886
17887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17888
17889
17890 fi
17891 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17892 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17893     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17894         :; SUNCC=yes
17895     else
17896         :;
17897     fi
17898     ac_ext=c
17899 ac_cpp='$CPP $CPPFLAGS'
17900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17903
17904
17905
17906                 ;;
17907         esac
17908     fi
17909
17910
17911
17912 ac_ext=c
17913 ac_cpp='$CPP $CPPFLAGS'
17914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17917 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
17918 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
17919 # On Suns, sometimes $CPP names a directory.
17920 if test -n "$CPP" && test -d "$CPP"; then
17921   CPP=
17922 fi
17923 if test -z "$CPP"; then
17924   if test "${ac_cv_prog_CPP+set}" = set; then
17925   echo $ECHO_N "(cached) $ECHO_C" >&6
17926 else
17927       # Double quotes because CPP needs to be expanded
17928     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17929     do
17930       ac_preproc_ok=false
17931 for ac_c_preproc_warn_flag in '' yes
17932 do
17933   # Use a header file that comes with gcc, so configuring glibc
17934   # with a fresh cross-compiler works.
17935   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17936   # <limits.h> exists even on freestanding compilers.
17937   # On the NeXT, cc -E runs the code through the compiler's parser,
17938   # not just through cpp. "Syntax error" is here to catch this case.
17939   cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h.  */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h.  */
17945 #ifdef __STDC__
17946 # include <limits.h>
17947 #else
17948 # include <assert.h>
17949 #endif
17950                      Syntax error
17951 _ACEOF
17952 if { (ac_try="$ac_cpp conftest.$ac_ext"
17953 case "(($ac_try" in
17954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955   *) ac_try_echo=$ac_try;;
17956 esac
17957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17958   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17959   ac_status=$?
17960   grep -v '^ *+' conftest.er1 >conftest.err
17961   rm -f conftest.er1
17962   cat conftest.err >&5
17963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); } >/dev/null && {
17965          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17966          test ! -s conftest.err
17967        }; then
17968   :
17969 else
17970   echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17972
17973   # Broken: fails on valid input.
17974 continue
17975 fi
17976
17977 rm -f conftest.err conftest.$ac_ext
17978
17979   # OK, works on sane cases.  Now check whether nonexistent headers
17980   # can be detected and how.
17981   cat >conftest.$ac_ext <<_ACEOF
17982 /* confdefs.h.  */
17983 _ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h.  */
17987 #include <ac_nonexistent.h>
17988 _ACEOF
17989 if { (ac_try="$ac_cpp conftest.$ac_ext"
17990 case "(($ac_try" in
17991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992   *) ac_try_echo=$ac_try;;
17993 esac
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17996   ac_status=$?
17997   grep -v '^ *+' conftest.er1 >conftest.err
17998   rm -f conftest.er1
17999   cat conftest.err >&5
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); } >/dev/null && {
18002          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18003          test ! -s conftest.err
18004        }; then
18005   # Broken: success on invalid input.
18006 continue
18007 else
18008   echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18010
18011   # Passes both tests.
18012 ac_preproc_ok=:
18013 break
18014 fi
18015
18016 rm -f conftest.err conftest.$ac_ext
18017
18018 done
18019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18020 rm -f conftest.err conftest.$ac_ext
18021 if $ac_preproc_ok; then
18022   break
18023 fi
18024
18025     done
18026     ac_cv_prog_CPP=$CPP
18027
18028 fi
18029   CPP=$ac_cv_prog_CPP
18030 else
18031   ac_cv_prog_CPP=$CPP
18032 fi
18033 { echo "$as_me:$LINENO: result: $CPP" >&5
18034 echo "${ECHO_T}$CPP" >&6; }
18035 ac_preproc_ok=false
18036 for ac_c_preproc_warn_flag in '' yes
18037 do
18038   # Use a header file that comes with gcc, so configuring glibc
18039   # with a fresh cross-compiler works.
18040   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18041   # <limits.h> exists even on freestanding compilers.
18042   # On the NeXT, cc -E runs the code through the compiler's parser,
18043   # not just through cpp. "Syntax error" is here to catch this case.
18044   cat >conftest.$ac_ext <<_ACEOF
18045 /* confdefs.h.  */
18046 _ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h.  */
18050 #ifdef __STDC__
18051 # include <limits.h>
18052 #else
18053 # include <assert.h>
18054 #endif
18055                      Syntax error
18056 _ACEOF
18057 if { (ac_try="$ac_cpp conftest.$ac_ext"
18058 case "(($ac_try" in
18059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060   *) ac_try_echo=$ac_try;;
18061 esac
18062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18064   ac_status=$?
18065   grep -v '^ *+' conftest.er1 >conftest.err
18066   rm -f conftest.er1
18067   cat conftest.err >&5
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); } >/dev/null && {
18070          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18071          test ! -s conftest.err
18072        }; then
18073   :
18074 else
18075   echo "$as_me: failed program was:" >&5
18076 sed 's/^/| /' conftest.$ac_ext >&5
18077
18078   # Broken: fails on valid input.
18079 continue
18080 fi
18081
18082 rm -f conftest.err conftest.$ac_ext
18083
18084   # OK, works on sane cases.  Now check whether nonexistent headers
18085   # can be detected and how.
18086   cat >conftest.$ac_ext <<_ACEOF
18087 /* confdefs.h.  */
18088 _ACEOF
18089 cat confdefs.h >>conftest.$ac_ext
18090 cat >>conftest.$ac_ext <<_ACEOF
18091 /* end confdefs.h.  */
18092 #include <ac_nonexistent.h>
18093 _ACEOF
18094 if { (ac_try="$ac_cpp conftest.$ac_ext"
18095 case "(($ac_try" in
18096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097   *) ac_try_echo=$ac_try;;
18098 esac
18099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18101   ac_status=$?
18102   grep -v '^ *+' conftest.er1 >conftest.err
18103   rm -f conftest.er1
18104   cat conftest.err >&5
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); } >/dev/null && {
18107          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18108          test ! -s conftest.err
18109        }; then
18110   # Broken: success on invalid input.
18111 continue
18112 else
18113   echo "$as_me: failed program was:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18115
18116   # Passes both tests.
18117 ac_preproc_ok=:
18118 break
18119 fi
18120
18121 rm -f conftest.err conftest.$ac_ext
18122
18123 done
18124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18125 rm -f conftest.err conftest.$ac_ext
18126 if $ac_preproc_ok; then
18127   :
18128 else
18129   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
18130 See \`config.log' for more details." >&5
18131 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
18132 See \`config.log' for more details." >&2;}
18133    { (exit 1); exit 1; }; }
18134 fi
18135
18136 ac_ext=c
18137 ac_cpp='$CPP $CPPFLAGS'
18138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18141
18142
18143 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
18144 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
18145 if test "${ac_cv_path_GREP+set}" = set; then
18146   echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148   # Extract the first word of "grep ggrep" to use in msg output
18149 if test -z "$GREP"; then
18150 set dummy grep ggrep; ac_prog_name=$2
18151 if test "${ac_cv_path_GREP+set}" = set; then
18152   echo $ECHO_N "(cached) $ECHO_C" >&6
18153 else
18154   ac_path_GREP_found=false
18155 # Loop through the user's path and test for each of PROGNAME-LIST
18156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18157 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18158 do
18159   IFS=$as_save_IFS
18160   test -z "$as_dir" && as_dir=.
18161   for ac_prog in grep ggrep; do
18162   for ac_exec_ext in '' $ac_executable_extensions; do
18163     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
18164     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
18165     # Check for GNU ac_path_GREP and select it if it is found.
18166   # Check for GNU $ac_path_GREP
18167 case `"$ac_path_GREP" --version 2>&1` in
18168 *GNU*)
18169   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
18170 *)
18171   ac_count=0
18172   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18173   while :
18174   do
18175     cat "conftest.in" "conftest.in" >"conftest.tmp"
18176     mv "conftest.tmp" "conftest.in"
18177     cp "conftest.in" "conftest.nl"
18178     echo 'GREP' >> "conftest.nl"
18179     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18180     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18181     ac_count=`expr $ac_count + 1`
18182     if test $ac_count -gt ${ac_path_GREP_max-0}; then
18183       # Best one so far, save it but keep looking for a better one
18184       ac_cv_path_GREP="$ac_path_GREP"
18185       ac_path_GREP_max=$ac_count
18186     fi
18187     # 10*(2^10) chars as input seems more than enough
18188     test $ac_count -gt 10 && break
18189   done
18190   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18191 esac
18192
18193
18194     $ac_path_GREP_found && break 3
18195   done
18196 done
18197
18198 done
18199 IFS=$as_save_IFS
18200
18201
18202 fi
18203
18204 GREP="$ac_cv_path_GREP"
18205 if test -z "$GREP"; then
18206   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18207 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18208    { (exit 1); exit 1; }; }
18209 fi
18210
18211 else
18212   ac_cv_path_GREP=$GREP
18213 fi
18214
18215
18216 fi
18217 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
18218 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
18219  GREP="$ac_cv_path_GREP"
18220
18221
18222 { echo "$as_me:$LINENO: checking for egrep" >&5
18223 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
18224 if test "${ac_cv_path_EGREP+set}" = set; then
18225   echo $ECHO_N "(cached) $ECHO_C" >&6
18226 else
18227   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
18228    then ac_cv_path_EGREP="$GREP -E"
18229    else
18230      # Extract the first word of "egrep" to use in msg output
18231 if test -z "$EGREP"; then
18232 set dummy egrep; ac_prog_name=$2
18233 if test "${ac_cv_path_EGREP+set}" = set; then
18234   echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236   ac_path_EGREP_found=false
18237 # Loop through the user's path and test for each of PROGNAME-LIST
18238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18240 do
18241   IFS=$as_save_IFS
18242   test -z "$as_dir" && as_dir=.
18243   for ac_prog in egrep; do
18244   for ac_exec_ext in '' $ac_executable_extensions; do
18245     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
18246     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
18247     # Check for GNU ac_path_EGREP and select it if it is found.
18248   # Check for GNU $ac_path_EGREP
18249 case `"$ac_path_EGREP" --version 2>&1` in
18250 *GNU*)
18251   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
18252 *)
18253   ac_count=0
18254   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18255   while :
18256   do
18257     cat "conftest.in" "conftest.in" >"conftest.tmp"
18258     mv "conftest.tmp" "conftest.in"
18259     cp "conftest.in" "conftest.nl"
18260     echo 'EGREP' >> "conftest.nl"
18261     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18262     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18263     ac_count=`expr $ac_count + 1`
18264     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
18265       # Best one so far, save it but keep looking for a better one
18266       ac_cv_path_EGREP="$ac_path_EGREP"
18267       ac_path_EGREP_max=$ac_count
18268     fi
18269     # 10*(2^10) chars as input seems more than enough
18270     test $ac_count -gt 10 && break
18271   done
18272   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18273 esac
18274
18275
18276     $ac_path_EGREP_found && break 3
18277   done
18278 done
18279
18280 done
18281 IFS=$as_save_IFS
18282
18283
18284 fi
18285
18286 EGREP="$ac_cv_path_EGREP"
18287 if test -z "$EGREP"; then
18288   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18289 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18290    { (exit 1); exit 1; }; }
18291 fi
18292
18293 else
18294   ac_cv_path_EGREP=$EGREP
18295 fi
18296
18297
18298    fi
18299 fi
18300 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
18301 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
18302  EGREP="$ac_cv_path_EGREP"
18303
18304
18305 if test $ac_cv_c_compiler_gnu = yes; then
18306     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
18307 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
18308 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
18309   echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
18311     ac_pattern="Autoconf.*'x'"
18312   cat >conftest.$ac_ext <<_ACEOF
18313 /* confdefs.h.  */
18314 _ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h.  */
18318 #include <sgtty.h>
18319 Autoconf TIOCGETP
18320 _ACEOF
18321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18322   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18323   ac_cv_prog_gcc_traditional=yes
18324 else
18325   ac_cv_prog_gcc_traditional=no
18326 fi
18327 rm -f conftest*
18328
18329
18330   if test $ac_cv_prog_gcc_traditional = no; then
18331     cat >conftest.$ac_ext <<_ACEOF
18332 /* confdefs.h.  */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h.  */
18337 #include <termio.h>
18338 Autoconf TCGETA
18339 _ACEOF
18340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18341   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18342   ac_cv_prog_gcc_traditional=yes
18343 fi
18344 rm -f conftest*
18345
18346   fi
18347 fi
18348 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
18349 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
18350   if test $ac_cv_prog_gcc_traditional = yes; then
18351     CC="$CC -traditional"
18352   fi
18353 fi
18354
18355
18356 CXXFLAGS=${CXXFLAGS:=}
18357
18358
18359
18360     ac_ext=cpp
18361 ac_cpp='$CXXCPP $CPPFLAGS'
18362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18365 if test -z "$CXX"; then
18366   if test -n "$CCC"; then
18367     CXX=$CCC
18368   else
18369     if test -n "$ac_tool_prefix"; then
18370   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18371   do
18372     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18373 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18376 if test "${ac_cv_prog_CXX+set}" = set; then
18377   echo $ECHO_N "(cached) $ECHO_C" >&6
18378 else
18379   if test -n "$CXX"; then
18380   ac_cv_prog_CXX="$CXX" # Let the user override the test.
18381 else
18382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18383 for as_dir in $PATH
18384 do
18385   IFS=$as_save_IFS
18386   test -z "$as_dir" && as_dir=.
18387   for ac_exec_ext in '' $ac_executable_extensions; do
18388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18389     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18391     break 2
18392   fi
18393 done
18394 done
18395 IFS=$as_save_IFS
18396
18397 fi
18398 fi
18399 CXX=$ac_cv_prog_CXX
18400 if test -n "$CXX"; then
18401   { echo "$as_me:$LINENO: result: $CXX" >&5
18402 echo "${ECHO_T}$CXX" >&6; }
18403 else
18404   { echo "$as_me:$LINENO: result: no" >&5
18405 echo "${ECHO_T}no" >&6; }
18406 fi
18407
18408
18409     test -n "$CXX" && break
18410   done
18411 fi
18412 if test -z "$CXX"; then
18413   ac_ct_CXX=$CXX
18414   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18415 do
18416   # Extract the first word of "$ac_prog", so it can be a program name with args.
18417 set dummy $ac_prog; ac_word=$2
18418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18420 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
18421   echo $ECHO_N "(cached) $ECHO_C" >&6
18422 else
18423   if test -n "$ac_ct_CXX"; then
18424   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18425 else
18426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18427 for as_dir in $PATH
18428 do
18429   IFS=$as_save_IFS
18430   test -z "$as_dir" && as_dir=.
18431   for ac_exec_ext in '' $ac_executable_extensions; do
18432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18433     ac_cv_prog_ac_ct_CXX="$ac_prog"
18434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18435     break 2
18436   fi
18437 done
18438 done
18439 IFS=$as_save_IFS
18440
18441 fi
18442 fi
18443 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18444 if test -n "$ac_ct_CXX"; then
18445   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
18446 echo "${ECHO_T}$ac_ct_CXX" >&6; }
18447 else
18448   { echo "$as_me:$LINENO: result: no" >&5
18449 echo "${ECHO_T}no" >&6; }
18450 fi
18451
18452
18453   test -n "$ac_ct_CXX" && break
18454 done
18455
18456   if test "x$ac_ct_CXX" = x; then
18457     CXX="g++"
18458   else
18459     case $cross_compiling:$ac_tool_warned in
18460 yes:)
18461 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18462 whose name does not start with the host triplet.  If you think this
18463 configuration is useful to you, please write to autoconf@gnu.org." >&5
18464 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18465 whose name does not start with the host triplet.  If you think this
18466 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18467 ac_tool_warned=yes ;;
18468 esac
18469     CXX=$ac_ct_CXX
18470   fi
18471 fi
18472
18473   fi
18474 fi
18475 # Provide some information about the compiler.
18476 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
18477 ac_compiler=`set X $ac_compile; echo $2`
18478 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
18485   ac_status=$?
18486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); }
18488 { (ac_try="$ac_compiler -v >&5"
18489 case "(($ac_try" in
18490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18491   *) ac_try_echo=$ac_try;;
18492 esac
18493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18494   (eval "$ac_compiler -v >&5") 2>&5
18495   ac_status=$?
18496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497   (exit $ac_status); }
18498 { (ac_try="$ac_compiler -V >&5"
18499 case "(($ac_try" in
18500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18501   *) ac_try_echo=$ac_try;;
18502 esac
18503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18504   (eval "$ac_compiler -V >&5") 2>&5
18505   ac_status=$?
18506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507   (exit $ac_status); }
18508
18509 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
18510 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
18511 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
18512   echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514   cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h.  */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h.  */
18520
18521 int
18522 main ()
18523 {
18524 #ifndef __GNUC__
18525        choke me
18526 #endif
18527
18528   ;
18529   return 0;
18530 }
18531 _ACEOF
18532 rm -f conftest.$ac_objext
18533 if { (ac_try="$ac_compile"
18534 case "(($ac_try" in
18535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536   *) ac_try_echo=$ac_try;;
18537 esac
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539   (eval "$ac_compile") 2>conftest.er1
18540   ac_status=$?
18541   grep -v '^ *+' conftest.er1 >conftest.err
18542   rm -f conftest.er1
18543   cat conftest.err >&5
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); } && {
18546          test -z "$ac_cxx_werror_flag" ||
18547          test ! -s conftest.err
18548        } && test -s conftest.$ac_objext; then
18549   ac_compiler_gnu=yes
18550 else
18551   echo "$as_me: failed program was:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18553
18554         ac_compiler_gnu=no
18555 fi
18556
18557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18558 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
18559
18560 fi
18561 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
18562 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
18563 GXX=`test $ac_compiler_gnu = yes && echo yes`
18564 ac_test_CXXFLAGS=${CXXFLAGS+set}
18565 ac_save_CXXFLAGS=$CXXFLAGS
18566 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
18567 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
18568 if test "${ac_cv_prog_cxx_g+set}" = set; then
18569   echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
18572    ac_cxx_werror_flag=yes
18573    ac_cv_prog_cxx_g=no
18574    CXXFLAGS="-g"
18575    cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h.  */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h.  */
18581
18582 int
18583 main ()
18584 {
18585
18586   ;
18587   return 0;
18588 }
18589 _ACEOF
18590 rm -f conftest.$ac_objext
18591 if { (ac_try="$ac_compile"
18592 case "(($ac_try" in
18593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594   *) ac_try_echo=$ac_try;;
18595 esac
18596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597   (eval "$ac_compile") 2>conftest.er1
18598   ac_status=$?
18599   grep -v '^ *+' conftest.er1 >conftest.err
18600   rm -f conftest.er1
18601   cat conftest.err >&5
18602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603   (exit $ac_status); } && {
18604          test -z "$ac_cxx_werror_flag" ||
18605          test ! -s conftest.err
18606        } && test -s conftest.$ac_objext; then
18607   ac_cv_prog_cxx_g=yes
18608 else
18609   echo "$as_me: failed program was:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18611
18612         CXXFLAGS=""
18613       cat >conftest.$ac_ext <<_ACEOF
18614 /* confdefs.h.  */
18615 _ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h.  */
18619
18620 int
18621 main ()
18622 {
18623
18624   ;
18625   return 0;
18626 }
18627 _ACEOF
18628 rm -f conftest.$ac_objext
18629 if { (ac_try="$ac_compile"
18630 case "(($ac_try" in
18631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632   *) ac_try_echo=$ac_try;;
18633 esac
18634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635   (eval "$ac_compile") 2>conftest.er1
18636   ac_status=$?
18637   grep -v '^ *+' conftest.er1 >conftest.err
18638   rm -f conftest.er1
18639   cat conftest.err >&5
18640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641   (exit $ac_status); } && {
18642          test -z "$ac_cxx_werror_flag" ||
18643          test ! -s conftest.err
18644        } && test -s conftest.$ac_objext; then
18645   :
18646 else
18647   echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18649
18650         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18651          CXXFLAGS="-g"
18652          cat >conftest.$ac_ext <<_ACEOF
18653 /* confdefs.h.  */
18654 _ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h.  */
18658
18659 int
18660 main ()
18661 {
18662
18663   ;
18664   return 0;
18665 }
18666 _ACEOF
18667 rm -f conftest.$ac_objext
18668 if { (ac_try="$ac_compile"
18669 case "(($ac_try" in
18670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671   *) ac_try_echo=$ac_try;;
18672 esac
18673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18674   (eval "$ac_compile") 2>conftest.er1
18675   ac_status=$?
18676   grep -v '^ *+' conftest.er1 >conftest.err
18677   rm -f conftest.er1
18678   cat conftest.err >&5
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); } && {
18681          test -z "$ac_cxx_werror_flag" ||
18682          test ! -s conftest.err
18683        } && test -s conftest.$ac_objext; then
18684   ac_cv_prog_cxx_g=yes
18685 else
18686   echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689
18690 fi
18691
18692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18693 fi
18694
18695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18696 fi
18697
18698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18699    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18700 fi
18701 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
18702 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
18703 if test "$ac_test_CXXFLAGS" = set; then
18704   CXXFLAGS=$ac_save_CXXFLAGS
18705 elif test $ac_cv_prog_cxx_g = yes; then
18706   if test "$GXX" = yes; then
18707     CXXFLAGS="-g -O2"
18708   else
18709     CXXFLAGS="-g"
18710   fi
18711 else
18712   if test "$GXX" = yes; then
18713     CXXFLAGS="-O2"
18714   else
18715     CXXFLAGS=
18716   fi
18717 fi
18718 ac_ext=c
18719 ac_cpp='$CPP $CPPFLAGS'
18720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18723
18724
18725
18726
18727     ac_ext=cpp
18728 ac_cpp='$CXXCPP $CPPFLAGS'
18729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18732
18733     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
18734 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
18735 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
18736   echo $ECHO_N "(cached) $ECHO_C" >&6
18737 else
18738   cat >conftest.$ac_ext <<_ACEOF
18739 /* confdefs.h.  */
18740 _ACEOF
18741 cat confdefs.h >>conftest.$ac_ext
18742 cat >>conftest.$ac_ext <<_ACEOF
18743 /* end confdefs.h.  */
18744
18745 int
18746 main ()
18747 {
18748
18749              #ifndef __INTEL_COMPILER
18750                 choke me
18751              #endif
18752
18753   ;
18754   return 0;
18755 }
18756 _ACEOF
18757 rm -f conftest.$ac_objext
18758 if { (ac_try="$ac_compile"
18759 case "(($ac_try" in
18760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761   *) ac_try_echo=$ac_try;;
18762 esac
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764   (eval "$ac_compile") 2>conftest.er1
18765   ac_status=$?
18766   grep -v '^ *+' conftest.er1 >conftest.err
18767   rm -f conftest.er1
18768   cat conftest.err >&5
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); } && {
18771          test -z "$ac_cxx_werror_flag" ||
18772          test ! -s conftest.err
18773        } && test -s conftest.$ac_objext; then
18774   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
18775 else
18776   echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18778
18779         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
18780
18781 fi
18782
18783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18784
18785
18786 fi
18787 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
18788 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
18789     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
18790         :; INTELCXX=yes
18791     else
18792         :;
18793     fi
18794     ac_ext=c
18795 ac_cpp='$CPP $CPPFLAGS'
18796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18799
18800
18801
18802
18803         if test "x$GCXX" != "xyes"; then
18804         if test "xCXX" = "xC"; then
18805             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18806 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18807 if test "${bakefile_cv_c_exto+set}" = set; then
18808   echo $ECHO_N "(cached) $ECHO_C" >&6
18809 else
18810   cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h.  */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h.  */
18816
18817 int
18818 main ()
18819 {
18820
18821   ;
18822   return 0;
18823 }
18824 _ACEOF
18825 rm -f conftest.$ac_objext conftest.$ac_ext.o
18826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18827   (eval $ac_compile) 2>&5
18828   ac_status=$?
18829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830   (exit $ac_status); }; then
18831   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18832     case $ac_file in
18833         conftest.$ac_ext.o)
18834             bakefile_cv_c_exto="-ext o"
18835             ;;
18836         *)
18837             ;;
18838     esac
18839 done
18840 else
18841   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18842 See \`config.log' for more details." >&5
18843 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18844 See \`config.log' for more details." >&2;}
18845    { (exit 1); exit 1; }; }
18846
18847 fi
18848
18849 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18850
18851 fi
18852 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18853 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18854 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18855     if test "c" = "c"; then
18856         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18857     fi
18858     if test "c" = "cxx"; then
18859         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18860     fi
18861 fi
18862
18863             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18864                 unset ac_cv_prog_cc_g
18865                 ac_test_CFLAGS=${CFLAGS+set}
18866 ac_save_CFLAGS=$CFLAGS
18867 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18868 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18869 if test "${ac_cv_prog_cc_g+set}" = set; then
18870   echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872   ac_save_c_werror_flag=$ac_c_werror_flag
18873    ac_c_werror_flag=yes
18874    ac_cv_prog_cc_g=no
18875    CFLAGS="-g"
18876    cat >conftest.$ac_ext <<_ACEOF
18877 /* confdefs.h.  */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h.  */
18882
18883 int
18884 main ()
18885 {
18886
18887   ;
18888   return 0;
18889 }
18890 _ACEOF
18891 rm -f conftest.$ac_objext
18892 if { (ac_try="$ac_compile"
18893 case "(($ac_try" in
18894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895   *) ac_try_echo=$ac_try;;
18896 esac
18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898   (eval "$ac_compile") 2>conftest.er1
18899   ac_status=$?
18900   grep -v '^ *+' conftest.er1 >conftest.err
18901   rm -f conftest.er1
18902   cat conftest.err >&5
18903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904   (exit $ac_status); } && {
18905          test -z "$ac_c_werror_flag" ||
18906          test ! -s conftest.err
18907        } && test -s conftest.$ac_objext; then
18908   ac_cv_prog_cc_g=yes
18909 else
18910   echo "$as_me: failed program was:" >&5
18911 sed 's/^/| /' conftest.$ac_ext >&5
18912
18913         CFLAGS=""
18914       cat >conftest.$ac_ext <<_ACEOF
18915 /* confdefs.h.  */
18916 _ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h.  */
18920
18921 int
18922 main ()
18923 {
18924
18925   ;
18926   return 0;
18927 }
18928 _ACEOF
18929 rm -f conftest.$ac_objext
18930 if { (ac_try="$ac_compile"
18931 case "(($ac_try" in
18932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933   *) ac_try_echo=$ac_try;;
18934 esac
18935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936   (eval "$ac_compile") 2>conftest.er1
18937   ac_status=$?
18938   grep -v '^ *+' conftest.er1 >conftest.err
18939   rm -f conftest.er1
18940   cat conftest.err >&5
18941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942   (exit $ac_status); } && {
18943          test -z "$ac_c_werror_flag" ||
18944          test ! -s conftest.err
18945        } && test -s conftest.$ac_objext; then
18946   :
18947 else
18948   echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18950
18951         ac_c_werror_flag=$ac_save_c_werror_flag
18952          CFLAGS="-g"
18953          cat >conftest.$ac_ext <<_ACEOF
18954 /* confdefs.h.  */
18955 _ACEOF
18956 cat confdefs.h >>conftest.$ac_ext
18957 cat >>conftest.$ac_ext <<_ACEOF
18958 /* end confdefs.h.  */
18959
18960 int
18961 main ()
18962 {
18963
18964   ;
18965   return 0;
18966 }
18967 _ACEOF
18968 rm -f conftest.$ac_objext
18969 if { (ac_try="$ac_compile"
18970 case "(($ac_try" in
18971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972   *) ac_try_echo=$ac_try;;
18973 esac
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975   (eval "$ac_compile") 2>conftest.er1
18976   ac_status=$?
18977   grep -v '^ *+' conftest.er1 >conftest.err
18978   rm -f conftest.er1
18979   cat conftest.err >&5
18980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981   (exit $ac_status); } && {
18982          test -z "$ac_c_werror_flag" ||
18983          test ! -s conftest.err
18984        } && test -s conftest.$ac_objext; then
18985   ac_cv_prog_cc_g=yes
18986 else
18987   echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18989
18990
18991 fi
18992
18993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18994 fi
18995
18996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18997 fi
18998
18999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000    ac_c_werror_flag=$ac_save_c_werror_flag
19001 fi
19002 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19003 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19004 if test "$ac_test_CFLAGS" = set; then
19005   CFLAGS=$ac_save_CFLAGS
19006 elif test $ac_cv_prog_cc_g = yes; then
19007   if test "$GCC" = yes; then
19008     CFLAGS="-g -O2"
19009   else
19010     CFLAGS="-g"
19011   fi
19012 else
19013   if test "$GCC" = yes; then
19014     CFLAGS="-O2"
19015   else
19016     CFLAGS=
19017   fi
19018 fi
19019             fi
19020         fi
19021
19022                         case `uname -s` in
19023             AIX*)
19024
19025
19026     ac_ext=cpp
19027 ac_cpp='$CXXCPP $CPPFLAGS'
19028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19031
19032     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19033 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19034 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19035   echo $ECHO_N "(cached) $ECHO_C" >&6
19036 else
19037   cat >conftest.$ac_ext <<_ACEOF
19038 /* confdefs.h.  */
19039 _ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h.  */
19043
19044 int
19045 main ()
19046 {
19047
19048              #ifndef __xlC__
19049                 choke me
19050              #endif
19051
19052   ;
19053   return 0;
19054 }
19055 _ACEOF
19056 rm -f conftest.$ac_objext
19057 if { (ac_try="$ac_compile"
19058 case "(($ac_try" in
19059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060   *) ac_try_echo=$ac_try;;
19061 esac
19062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063   (eval "$ac_compile") 2>conftest.er1
19064   ac_status=$?
19065   grep -v '^ *+' conftest.er1 >conftest.err
19066   rm -f conftest.er1
19067   cat conftest.err >&5
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); } && {
19070          test -z "$ac_cxx_werror_flag" ||
19071          test ! -s conftest.err
19072        } && test -s conftest.$ac_objext; then
19073   bakefile_cv_cxx_compiler___xlC__=yes
19074 else
19075   echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078         bakefile_cv_cxx_compiler___xlC__=no
19079
19080 fi
19081
19082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19083
19084
19085 fi
19086 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19087 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19088     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19089         :; XLCXX=yes
19090     else
19091         :;
19092     fi
19093     ac_ext=c
19094 ac_cpp='$CPP $CPPFLAGS'
19095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19098
19099
19100
19101                 ;;
19102
19103             Darwin)
19104
19105
19106     ac_ext=cpp
19107 ac_cpp='$CXXCPP $CPPFLAGS'
19108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19111
19112     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
19113 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
19114 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
19115   echo $ECHO_N "(cached) $ECHO_C" >&6
19116 else
19117   cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h.  */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h.  */
19123
19124 int
19125 main ()
19126 {
19127
19128              #ifndef __MWERKS__
19129                 choke me
19130              #endif
19131
19132   ;
19133   return 0;
19134 }
19135 _ACEOF
19136 rm -f conftest.$ac_objext
19137 if { (ac_try="$ac_compile"
19138 case "(($ac_try" in
19139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140   *) ac_try_echo=$ac_try;;
19141 esac
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143   (eval "$ac_compile") 2>conftest.er1
19144   ac_status=$?
19145   grep -v '^ *+' conftest.er1 >conftest.err
19146   rm -f conftest.er1
19147   cat conftest.err >&5
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); } && {
19150          test -z "$ac_cxx_werror_flag" ||
19151          test ! -s conftest.err
19152        } && test -s conftest.$ac_objext; then
19153   bakefile_cv_cxx_compiler___MWERKS__=yes
19154 else
19155   echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19157
19158         bakefile_cv_cxx_compiler___MWERKS__=no
19159
19160 fi
19161
19162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19163
19164
19165 fi
19166 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
19167 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
19168     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
19169         :; MWCXX=yes
19170     else
19171         :;
19172     fi
19173     ac_ext=c
19174 ac_cpp='$CPP $CPPFLAGS'
19175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19178
19179
19180
19181
19182
19183     ac_ext=cpp
19184 ac_cpp='$CXXCPP $CPPFLAGS'
19185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19188
19189     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19190 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19191 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19192   echo $ECHO_N "(cached) $ECHO_C" >&6
19193 else
19194   cat >conftest.$ac_ext <<_ACEOF
19195 /* confdefs.h.  */
19196 _ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h.  */
19200
19201 int
19202 main ()
19203 {
19204
19205              #ifndef __xlC__
19206                 choke me
19207              #endif
19208
19209   ;
19210   return 0;
19211 }
19212 _ACEOF
19213 rm -f conftest.$ac_objext
19214 if { (ac_try="$ac_compile"
19215 case "(($ac_try" in
19216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217   *) ac_try_echo=$ac_try;;
19218 esac
19219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220   (eval "$ac_compile") 2>conftest.er1
19221   ac_status=$?
19222   grep -v '^ *+' conftest.er1 >conftest.err
19223   rm -f conftest.er1
19224   cat conftest.err >&5
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); } && {
19227          test -z "$ac_cxx_werror_flag" ||
19228          test ! -s conftest.err
19229        } && test -s conftest.$ac_objext; then
19230   bakefile_cv_cxx_compiler___xlC__=yes
19231 else
19232   echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19234
19235         bakefile_cv_cxx_compiler___xlC__=no
19236
19237 fi
19238
19239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19240
19241
19242 fi
19243 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19244 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19245     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19246         :; XLCXX=yes
19247     else
19248         :;
19249     fi
19250     ac_ext=c
19251 ac_cpp='$CPP $CPPFLAGS'
19252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19255
19256
19257
19258                 ;;
19259
19260             IRIX*)
19261
19262
19263     ac_ext=cpp
19264 ac_cpp='$CXXCPP $CPPFLAGS'
19265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19268
19269     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
19270 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
19271 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
19272   echo $ECHO_N "(cached) $ECHO_C" >&6
19273 else
19274   cat >conftest.$ac_ext <<_ACEOF
19275 /* confdefs.h.  */
19276 _ACEOF
19277 cat confdefs.h >>conftest.$ac_ext
19278 cat >>conftest.$ac_ext <<_ACEOF
19279 /* end confdefs.h.  */
19280
19281 int
19282 main ()
19283 {
19284
19285              #ifndef _SGI_COMPILER_VERSION
19286                 choke me
19287              #endif
19288
19289   ;
19290   return 0;
19291 }
19292 _ACEOF
19293 rm -f conftest.$ac_objext
19294 if { (ac_try="$ac_compile"
19295 case "(($ac_try" in
19296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297   *) ac_try_echo=$ac_try;;
19298 esac
19299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300   (eval "$ac_compile") 2>conftest.er1
19301   ac_status=$?
19302   grep -v '^ *+' conftest.er1 >conftest.err
19303   rm -f conftest.er1
19304   cat conftest.err >&5
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); } && {
19307          test -z "$ac_cxx_werror_flag" ||
19308          test ! -s conftest.err
19309        } && test -s conftest.$ac_objext; then
19310   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
19311 else
19312   echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
19316
19317 fi
19318
19319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19320
19321
19322 fi
19323 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
19324 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
19325     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
19326         :; SGICXX=yes
19327     else
19328         :;
19329     fi
19330     ac_ext=c
19331 ac_cpp='$CPP $CPPFLAGS'
19332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19335
19336
19337
19338                 ;;
19339
19340             Linux*)
19341
19342
19343     ac_ext=cpp
19344 ac_cpp='$CXXCPP $CPPFLAGS'
19345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19348
19349     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19350 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19351 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19352   echo $ECHO_N "(cached) $ECHO_C" >&6
19353 else
19354   cat >conftest.$ac_ext <<_ACEOF
19355 /* confdefs.h.  */
19356 _ACEOF
19357 cat confdefs.h >>conftest.$ac_ext
19358 cat >>conftest.$ac_ext <<_ACEOF
19359 /* end confdefs.h.  */
19360
19361 int
19362 main ()
19363 {
19364
19365              #ifndef __SUNPRO_CC
19366                 choke me
19367              #endif
19368
19369   ;
19370   return 0;
19371 }
19372 _ACEOF
19373 rm -f conftest.$ac_objext
19374 if { (ac_try="$ac_compile"
19375 case "(($ac_try" in
19376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377   *) ac_try_echo=$ac_try;;
19378 esac
19379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380   (eval "$ac_compile") 2>conftest.er1
19381   ac_status=$?
19382   grep -v '^ *+' conftest.er1 >conftest.err
19383   rm -f conftest.er1
19384   cat conftest.err >&5
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); } && {
19387          test -z "$ac_cxx_werror_flag" ||
19388          test ! -s conftest.err
19389        } && test -s conftest.$ac_objext; then
19390   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19391 else
19392   echo "$as_me: failed program was:" >&5
19393 sed 's/^/| /' conftest.$ac_ext >&5
19394
19395         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19396
19397 fi
19398
19399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19400
19401
19402 fi
19403 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19404 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19405     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19406         :; SUNCXX=yes
19407     else
19408         :;
19409     fi
19410     ac_ext=c
19411 ac_cpp='$CPP $CPPFLAGS'
19412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19415
19416
19417
19418                 ;;
19419
19420             HP-UX*)
19421
19422
19423     ac_ext=cpp
19424 ac_cpp='$CXXCPP $CPPFLAGS'
19425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19428
19429     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
19430 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
19431 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
19432   echo $ECHO_N "(cached) $ECHO_C" >&6
19433 else
19434   cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h.  */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h.  */
19440
19441 int
19442 main ()
19443 {
19444
19445              #ifndef __HP_aCC
19446                 choke me
19447              #endif
19448
19449   ;
19450   return 0;
19451 }
19452 _ACEOF
19453 rm -f conftest.$ac_objext
19454 if { (ac_try="$ac_compile"
19455 case "(($ac_try" in
19456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457   *) ac_try_echo=$ac_try;;
19458 esac
19459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460   (eval "$ac_compile") 2>conftest.er1
19461   ac_status=$?
19462   grep -v '^ *+' conftest.er1 >conftest.err
19463   rm -f conftest.er1
19464   cat conftest.err >&5
19465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466   (exit $ac_status); } && {
19467          test -z "$ac_cxx_werror_flag" ||
19468          test ! -s conftest.err
19469        } && test -s conftest.$ac_objext; then
19470   bakefile_cv_cxx_compiler___HP_aCC=yes
19471 else
19472   echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19474
19475         bakefile_cv_cxx_compiler___HP_aCC=no
19476
19477 fi
19478
19479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19480
19481
19482 fi
19483 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
19484 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
19485     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
19486         :; HPCXX=yes
19487     else
19488         :;
19489     fi
19490     ac_ext=c
19491 ac_cpp='$CPP $CPPFLAGS'
19492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19495
19496
19497
19498                 ;;
19499
19500             OSF1)
19501
19502
19503     ac_ext=cpp
19504 ac_cpp='$CXXCPP $CPPFLAGS'
19505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19508
19509     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
19510 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
19511 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
19512   echo $ECHO_N "(cached) $ECHO_C" >&6
19513 else
19514   cat >conftest.$ac_ext <<_ACEOF
19515 /* confdefs.h.  */
19516 _ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h.  */
19520
19521 int
19522 main ()
19523 {
19524
19525              #ifndef __DECCXX
19526                 choke me
19527              #endif
19528
19529   ;
19530   return 0;
19531 }
19532 _ACEOF
19533 rm -f conftest.$ac_objext
19534 if { (ac_try="$ac_compile"
19535 case "(($ac_try" in
19536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537   *) ac_try_echo=$ac_try;;
19538 esac
19539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19540   (eval "$ac_compile") 2>conftest.er1
19541   ac_status=$?
19542   grep -v '^ *+' conftest.er1 >conftest.err
19543   rm -f conftest.er1
19544   cat conftest.err >&5
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); } && {
19547          test -z "$ac_cxx_werror_flag" ||
19548          test ! -s conftest.err
19549        } && test -s conftest.$ac_objext; then
19550   bakefile_cv_cxx_compiler___DECCXX=yes
19551 else
19552   echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19554
19555         bakefile_cv_cxx_compiler___DECCXX=no
19556
19557 fi
19558
19559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19560
19561
19562 fi
19563 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
19564 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
19565     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
19566         :; COMPAQCXX=yes
19567     else
19568         :;
19569     fi
19570     ac_ext=c
19571 ac_cpp='$CPP $CPPFLAGS'
19572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19575
19576
19577
19578                 ;;
19579
19580             SunOS)
19581
19582
19583     ac_ext=cpp
19584 ac_cpp='$CXXCPP $CPPFLAGS'
19585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19588
19589     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19590 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19591 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19592   echo $ECHO_N "(cached) $ECHO_C" >&6
19593 else
19594   cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h.  */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h.  */
19600
19601 int
19602 main ()
19603 {
19604
19605              #ifndef __SUNPRO_CC
19606                 choke me
19607              #endif
19608
19609   ;
19610   return 0;
19611 }
19612 _ACEOF
19613 rm -f conftest.$ac_objext
19614 if { (ac_try="$ac_compile"
19615 case "(($ac_try" in
19616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617   *) ac_try_echo=$ac_try;;
19618 esac
19619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620   (eval "$ac_compile") 2>conftest.er1
19621   ac_status=$?
19622   grep -v '^ *+' conftest.er1 >conftest.err
19623   rm -f conftest.er1
19624   cat conftest.err >&5
19625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626   (exit $ac_status); } && {
19627          test -z "$ac_cxx_werror_flag" ||
19628          test ! -s conftest.err
19629        } && test -s conftest.$ac_objext; then
19630   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19631 else
19632   echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19634
19635         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19636
19637 fi
19638
19639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19640
19641
19642 fi
19643 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19644 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19645     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19646         :; SUNCXX=yes
19647     else
19648         :;
19649     fi
19650     ac_ext=c
19651 ac_cpp='$CPP $CPPFLAGS'
19652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19655
19656
19657
19658                 ;;
19659         esac
19660     fi
19661
19662
19663
19664 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
19665     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
19666 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
19667    { (exit 1); exit 1; }; }
19668 fi
19669
19670 if test -n "$ac_tool_prefix"; then
19671   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19672 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19675 if test "${ac_cv_prog_RANLIB+set}" = set; then
19676   echo $ECHO_N "(cached) $ECHO_C" >&6
19677 else
19678   if test -n "$RANLIB"; then
19679   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19680 else
19681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19682 for as_dir in $PATH
19683 do
19684   IFS=$as_save_IFS
19685   test -z "$as_dir" && as_dir=.
19686   for ac_exec_ext in '' $ac_executable_extensions; do
19687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19688     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19690     break 2
19691   fi
19692 done
19693 done
19694 IFS=$as_save_IFS
19695
19696 fi
19697 fi
19698 RANLIB=$ac_cv_prog_RANLIB
19699 if test -n "$RANLIB"; then
19700   { echo "$as_me:$LINENO: result: $RANLIB" >&5
19701 echo "${ECHO_T}$RANLIB" >&6; }
19702 else
19703   { echo "$as_me:$LINENO: result: no" >&5
19704 echo "${ECHO_T}no" >&6; }
19705 fi
19706
19707
19708 fi
19709 if test -z "$ac_cv_prog_RANLIB"; then
19710   ac_ct_RANLIB=$RANLIB
19711   # Extract the first word of "ranlib", so it can be a program name with args.
19712 set dummy ranlib; ac_word=$2
19713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19715 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19716   echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718   if test -n "$ac_ct_RANLIB"; then
19719   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19720 else
19721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19722 for as_dir in $PATH
19723 do
19724   IFS=$as_save_IFS
19725   test -z "$as_dir" && as_dir=.
19726   for ac_exec_ext in '' $ac_executable_extensions; do
19727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19728     ac_cv_prog_ac_ct_RANLIB="ranlib"
19729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19730     break 2
19731   fi
19732 done
19733 done
19734 IFS=$as_save_IFS
19735
19736 fi
19737 fi
19738 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19739 if test -n "$ac_ct_RANLIB"; then
19740   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
19741 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
19742 else
19743   { echo "$as_me:$LINENO: result: no" >&5
19744 echo "${ECHO_T}no" >&6; }
19745 fi
19746
19747   if test "x$ac_ct_RANLIB" = x; then
19748     RANLIB=":"
19749   else
19750     case $cross_compiling:$ac_tool_warned in
19751 yes:)
19752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19753 whose name does not start with the host triplet.  If you think this
19754 configuration is useful to you, please write to autoconf@gnu.org." >&5
19755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19756 whose name does not start with the host triplet.  If you think this
19757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19758 ac_tool_warned=yes ;;
19759 esac
19760     RANLIB=$ac_ct_RANLIB
19761   fi
19762 else
19763   RANLIB="$ac_cv_prog_RANLIB"
19764 fi
19765
19766
19767 if test "x$SUNCXX" != xyes; then
19768     if test -n "$ac_tool_prefix"; then
19769   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19770 set dummy ${ac_tool_prefix}ar; ac_word=$2
19771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19773 if test "${ac_cv_prog_AR+set}" = set; then
19774   echo $ECHO_N "(cached) $ECHO_C" >&6
19775 else
19776   if test -n "$AR"; then
19777   ac_cv_prog_AR="$AR" # Let the user override the test.
19778 else
19779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19780 for as_dir in $PATH
19781 do
19782   IFS=$as_save_IFS
19783   test -z "$as_dir" && as_dir=.
19784   for ac_exec_ext in '' $ac_executable_extensions; do
19785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19786     ac_cv_prog_AR="${ac_tool_prefix}ar"
19787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19788     break 2
19789   fi
19790 done
19791 done
19792 IFS=$as_save_IFS
19793
19794 fi
19795 fi
19796 AR=$ac_cv_prog_AR
19797 if test -n "$AR"; then
19798   { echo "$as_me:$LINENO: result: $AR" >&5
19799 echo "${ECHO_T}$AR" >&6; }
19800 else
19801   { echo "$as_me:$LINENO: result: no" >&5
19802 echo "${ECHO_T}no" >&6; }
19803 fi
19804
19805
19806 fi
19807 if test -z "$ac_cv_prog_AR"; then
19808   ac_ct_AR=$AR
19809   # Extract the first word of "ar", so it can be a program name with args.
19810 set dummy ar; ac_word=$2
19811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19813 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19814   echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816   if test -n "$ac_ct_AR"; then
19817   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19818 else
19819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19820 for as_dir in $PATH
19821 do
19822   IFS=$as_save_IFS
19823   test -z "$as_dir" && as_dir=.
19824   for ac_exec_ext in '' $ac_executable_extensions; do
19825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19826     ac_cv_prog_ac_ct_AR="ar"
19827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19828     break 2
19829   fi
19830 done
19831 done
19832 IFS=$as_save_IFS
19833
19834 fi
19835 fi
19836 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19837 if test -n "$ac_ct_AR"; then
19838   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19839 echo "${ECHO_T}$ac_ct_AR" >&6; }
19840 else
19841   { echo "$as_me:$LINENO: result: no" >&5
19842 echo "${ECHO_T}no" >&6; }
19843 fi
19844
19845   if test "x$ac_ct_AR" = x; then
19846     AR=""
19847   else
19848     case $cross_compiling:$ac_tool_warned in
19849 yes:)
19850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19851 whose name does not start with the host triplet.  If you think this
19852 configuration is useful to you, please write to autoconf@gnu.org." >&5
19853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19854 whose name does not start with the host triplet.  If you think this
19855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19856 ac_tool_warned=yes ;;
19857 esac
19858     AR=$ac_ct_AR
19859   fi
19860 else
19861   AR="$ac_cv_prog_AR"
19862 fi
19863
19864     if test "x$AR" = "x" ; then
19865         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
19866 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
19867    { (exit 1); exit 1; }; }
19868     fi
19869 fi
19870
19871 # Find a good install program.  We prefer a C program (faster),
19872 # so one script is as good as another.  But avoid the broken or
19873 # incompatible versions:
19874 # SysV /etc/install, /usr/sbin/install
19875 # SunOS /usr/etc/install
19876 # IRIX /sbin/install
19877 # AIX /bin/install
19878 # AmigaOS /C/install, which installs bootblocks on floppy discs
19879 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19880 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19881 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19882 # OS/2's system install, which has a completely different semantic
19883 # ./install, which can be erroneously created by make from ./install.sh.
19884 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19885 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19886 if test -z "$INSTALL"; then
19887 if test "${ac_cv_path_install+set}" = set; then
19888   echo $ECHO_N "(cached) $ECHO_C" >&6
19889 else
19890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19891 for as_dir in $PATH
19892 do
19893   IFS=$as_save_IFS
19894   test -z "$as_dir" && as_dir=.
19895   # Account for people who put trailing slashes in PATH elements.
19896 case $as_dir/ in
19897   ./ | .// | /cC/* | \
19898   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19899   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19900   /usr/ucb/* ) ;;
19901   *)
19902     # OSF1 and SCO ODT 3.0 have their own names for install.
19903     # Don't use installbsd from OSF since it installs stuff as root
19904     # by default.
19905     for ac_prog in ginstall scoinst install; do
19906       for ac_exec_ext in '' $ac_executable_extensions; do
19907         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19908           if test $ac_prog = install &&
19909             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19910             # AIX install.  It has an incompatible calling convention.
19911             :
19912           elif test $ac_prog = install &&
19913             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19914             # program-specific install script used by HP pwplus--don't use.
19915             :
19916           else
19917             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19918             break 3
19919           fi
19920         fi
19921       done
19922     done
19923     ;;
19924 esac
19925 done
19926 IFS=$as_save_IFS
19927
19928
19929 fi
19930   if test "${ac_cv_path_install+set}" = set; then
19931     INSTALL=$ac_cv_path_install
19932   else
19933     # As a last resort, use the slow shell script.  Don't cache a
19934     # value for INSTALL within a source directory, because that will
19935     # break other packages using the cache if that directory is
19936     # removed, or if the value is a relative name.
19937     INSTALL=$ac_install_sh
19938   fi
19939 fi
19940 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19941 echo "${ECHO_T}$INSTALL" >&6; }
19942
19943 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19944 # It thinks the first close brace ends the variable substitution.
19945 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19946
19947 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19948
19949 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19950
19951
19952 case ${INSTALL} in
19953   /* ) # Absolute
19954      ;;
19955   ?:* ) # Drive letter, considered as absolute.
19956      ;;
19957   *)
19958      INSTALL=`pwd`/${INSTALL} ;;
19959 esac
19960
19961 retest_macosx_linking=no
19962
19963 #if test "$wxUSE_MAC" = 1; then
19964     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
19965                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
19966             # Implicitly turn on the new --with-macosx-sdk using the default
19967             # SDK which provides the behavior this option has always had.
19968             if test "x$wxUSE_MACOSX_SDK" = "x"; then
19969                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
19970 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
19971                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
19972 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
19973                 wxUSE_MACOSX_SDK=yes
19974             fi
19975         else
19976             # Complain to user if he specified an argument to --enable-universal_binary
19977             # and also 1) specified --with-macosx-sdk using the default (yes) or
19978             # 2) specified --with-macosx-sdk using a path or 3) specified
19979             # --without-macosx-sdk (no).
19980             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
19981                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19982 See \`config.log' for more details." >&5
19983 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
19984 See \`config.log' for more details." >&2;}
19985    { (exit 1); exit 1; }; }
19986             else
19987                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
19988                 # special-case the empty string because the below test simply
19989                 # converts "no" to the empty string anyway.
19990                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
19991                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
19992 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
19993             fi
19994         fi
19995                 OSX_UNIV_OPTS="-arch ppc -arch i386"
19996         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
19997         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
19998         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
19999                                                                                                                 retest_macosx_linking=yes
20000
20001                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
20002 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
20003         bk_use_pch=no
20004     fi
20005 #fi
20006
20007 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
20008     wxUSE_MACOSX_SDK=
20009 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
20010     # TODO: Search for most recent SDK and use it.
20011     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
20012 fi
20013
20014
20015 if test "x$wxUSE_MACOSX_SDK" != "x"; then
20016     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
20017 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
20018     if ! test -d "$wxUSE_MACOSX_SDK"; then
20019         { { echo "$as_me:$LINENO: error: not found
20020 See \`config.log' for more details." >&5
20021 echo "$as_me: error: not found
20022 See \`config.log' for more details." >&2;}
20023    { (exit 1); exit 1; }; }
20024     else
20025         { echo "$as_me:$LINENO: result: exists" >&5
20026 echo "${ECHO_T}exists" >&6; }
20027     fi
20028     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
20029     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
20030     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
20031     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
20032     retest_macosx_linking=yes
20033             fi
20034
20035 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
20036     wxUSE_MACOSX_VERSION_MIN=
20037 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
20038     if test "x$wxUSE_MACOSX_SDK" != "x"; then
20039         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
20040 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
20041
20042         MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
20043
20044         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
20045             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
20046             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
20047 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
20048         else
20049             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
20050 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
20051             wxUSE_MACOSX_VERSION_MIN=
20052         fi
20053     else
20054         wxUSE_MACOSX_VERSION_MIN=
20055     fi
20056 fi
20057
20058 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
20059     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
20060     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
20061     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
20062     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
20063     retest_macosx_linking=yes
20064 fi
20065
20066 if test "x$retest_macosx_linking" = "xyes"; then
20067     ac_ext=c
20068 ac_cpp='$CPP $CPPFLAGS'
20069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20072
20073     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
20074 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
20075     cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h.  */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h.  */
20081
20082 int
20083 main ()
20084 {
20085
20086   ;
20087   return 0;
20088 }
20089 _ACEOF
20090 rm -f conftest.$ac_objext conftest$ac_exeext
20091 if { (ac_try="$ac_link"
20092 case "(($ac_try" in
20093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094   *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097   (eval "$ac_link") 2>conftest.er1
20098   ac_status=$?
20099   grep -v '^ *+' conftest.er1 >conftest.err
20100   rm -f conftest.er1
20101   cat conftest.err >&5
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); } && {
20104          test -z "$ac_c_werror_flag" ||
20105          test ! -s conftest.err
20106        } && test -s conftest$ac_exeext &&
20107        $as_test_x conftest$ac_exeext; then
20108   { echo "$as_me:$LINENO: result: yes" >&5
20109 echo "${ECHO_T}yes" >&6; }
20110 else
20111   echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20113
20114         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20115 See \`config.log' for more details." >&5
20116 echo "$as_me: error: no.  Try a different SDK
20117 See \`config.log' for more details." >&2;}
20118    { (exit 1); exit 1; }; }; exit 1
20119 fi
20120
20121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20122       conftest$ac_exeext conftest.$ac_ext
20123     ac_ext=c
20124 ac_cpp='$CPP $CPPFLAGS'
20125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20128
20129
20130     ac_ext=cpp
20131 ac_cpp='$CXXCPP $CPPFLAGS'
20132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20135
20136     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
20137 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
20138     cat >conftest.$ac_ext <<_ACEOF
20139 /* confdefs.h.  */
20140 _ACEOF
20141 cat confdefs.h >>conftest.$ac_ext
20142 cat >>conftest.$ac_ext <<_ACEOF
20143 /* end confdefs.h.  */
20144
20145 int
20146 main ()
20147 {
20148
20149   ;
20150   return 0;
20151 }
20152 _ACEOF
20153 rm -f conftest.$ac_objext conftest$ac_exeext
20154 if { (ac_try="$ac_link"
20155 case "(($ac_try" in
20156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157   *) ac_try_echo=$ac_try;;
20158 esac
20159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20160   (eval "$ac_link") 2>conftest.er1
20161   ac_status=$?
20162   grep -v '^ *+' conftest.er1 >conftest.err
20163   rm -f conftest.er1
20164   cat conftest.err >&5
20165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166   (exit $ac_status); } && {
20167          test -z "$ac_cxx_werror_flag" ||
20168          test ! -s conftest.err
20169        } && test -s conftest$ac_exeext &&
20170        $as_test_x conftest$ac_exeext; then
20171   { echo "$as_me:$LINENO: result: yes" >&5
20172 echo "${ECHO_T}yes" >&6; }
20173 else
20174   echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20176
20177         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20178 See \`config.log' for more details." >&5
20179 echo "$as_me: error: no.  Try a different SDK
20180 See \`config.log' for more details." >&2;}
20181    { (exit 1); exit 1; }; }; exit 1
20182 fi
20183
20184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20185       conftest$ac_exeext conftest.$ac_ext
20186     ac_ext=c
20187 ac_cpp='$CPP $CPPFLAGS'
20188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20191
20192 fi
20193
20194
20195 case "${host}" in
20196
20197                 *-*-darwin* )
20198         INSTALL_PROGRAM="cp -fp"
20199         INSTALL_DATA="cp -fp"
20200         ;;
20201     *)
20202         ;;
20203 esac
20204
20205 if test -n "$ac_tool_prefix"; then
20206   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20207 set dummy ${ac_tool_prefix}strip; ac_word=$2
20208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20210 if test "${ac_cv_prog_STRIP+set}" = set; then
20211   echo $ECHO_N "(cached) $ECHO_C" >&6
20212 else
20213   if test -n "$STRIP"; then
20214   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
20215 else
20216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20217 for as_dir in $PATH
20218 do
20219   IFS=$as_save_IFS
20220   test -z "$as_dir" && as_dir=.
20221   for ac_exec_ext in '' $ac_executable_extensions; do
20222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20223     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
20224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20225     break 2
20226   fi
20227 done
20228 done
20229 IFS=$as_save_IFS
20230
20231 fi
20232 fi
20233 STRIP=$ac_cv_prog_STRIP
20234 if test -n "$STRIP"; then
20235   { echo "$as_me:$LINENO: result: $STRIP" >&5
20236 echo "${ECHO_T}$STRIP" >&6; }
20237 else
20238   { echo "$as_me:$LINENO: result: no" >&5
20239 echo "${ECHO_T}no" >&6; }
20240 fi
20241
20242
20243 fi
20244 if test -z "$ac_cv_prog_STRIP"; then
20245   ac_ct_STRIP=$STRIP
20246   # Extract the first word of "strip", so it can be a program name with args.
20247 set dummy strip; ac_word=$2
20248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20250 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
20251   echo $ECHO_N "(cached) $ECHO_C" >&6
20252 else
20253   if test -n "$ac_ct_STRIP"; then
20254   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
20255 else
20256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20257 for as_dir in $PATH
20258 do
20259   IFS=$as_save_IFS
20260   test -z "$as_dir" && as_dir=.
20261   for ac_exec_ext in '' $ac_executable_extensions; do
20262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20263     ac_cv_prog_ac_ct_STRIP="strip"
20264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20265     break 2
20266   fi
20267 done
20268 done
20269 IFS=$as_save_IFS
20270
20271 fi
20272 fi
20273 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
20274 if test -n "$ac_ct_STRIP"; then
20275   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
20276 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
20277 else
20278   { echo "$as_me:$LINENO: result: no" >&5
20279 echo "${ECHO_T}no" >&6; }
20280 fi
20281
20282   if test "x$ac_ct_STRIP" = x; then
20283     STRIP="true"
20284   else
20285     case $cross_compiling:$ac_tool_warned in
20286 yes:)
20287 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20288 whose name does not start with the host triplet.  If you think this
20289 configuration is useful to you, please write to autoconf@gnu.org." >&5
20290 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20291 whose name does not start with the host triplet.  If you think this
20292 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20293 ac_tool_warned=yes ;;
20294 esac
20295     STRIP=$ac_ct_STRIP
20296   fi
20297 else
20298   STRIP="$ac_cv_prog_STRIP"
20299 fi
20300
20301
20302 if test "$wxUSE_WINE" = "yes"; then
20303     if test -n "$ac_tool_prefix"; then
20304   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
20305 set dummy ${ac_tool_prefix}wrc; ac_word=$2
20306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20308 if test "${ac_cv_prog_WINDRES+set}" = set; then
20309   echo $ECHO_N "(cached) $ECHO_C" >&6
20310 else
20311   if test -n "$WINDRES"; then
20312   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20313 else
20314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20315 for as_dir in $PATH
20316 do
20317   IFS=$as_save_IFS
20318   test -z "$as_dir" && as_dir=.
20319   for ac_exec_ext in '' $ac_executable_extensions; do
20320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20321     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
20322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20323     break 2
20324   fi
20325 done
20326 done
20327 IFS=$as_save_IFS
20328
20329 fi
20330 fi
20331 WINDRES=$ac_cv_prog_WINDRES
20332 if test -n "$WINDRES"; then
20333   { echo "$as_me:$LINENO: result: $WINDRES" >&5
20334 echo "${ECHO_T}$WINDRES" >&6; }
20335 else
20336   { echo "$as_me:$LINENO: result: no" >&5
20337 echo "${ECHO_T}no" >&6; }
20338 fi
20339
20340
20341 fi
20342 if test -z "$ac_cv_prog_WINDRES"; then
20343   ac_ct_WINDRES=$WINDRES
20344   # Extract the first word of "wrc", so it can be a program name with args.
20345 set dummy wrc; ac_word=$2
20346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20348 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
20349   echo $ECHO_N "(cached) $ECHO_C" >&6
20350 else
20351   if test -n "$ac_ct_WINDRES"; then
20352   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20353 else
20354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20355 for as_dir in $PATH
20356 do
20357   IFS=$as_save_IFS
20358   test -z "$as_dir" && as_dir=.
20359   for ac_exec_ext in '' $ac_executable_extensions; do
20360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20361     ac_cv_prog_ac_ct_WINDRES="wrc"
20362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20363     break 2
20364   fi
20365 done
20366 done
20367 IFS=$as_save_IFS
20368
20369 fi
20370 fi
20371 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20372 if test -n "$ac_ct_WINDRES"; then
20373   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
20374 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
20375 else
20376   { echo "$as_me:$LINENO: result: no" >&5
20377 echo "${ECHO_T}no" >&6; }
20378 fi
20379
20380   if test "x$ac_ct_WINDRES" = x; then
20381     WINDRES=""
20382   else
20383     case $cross_compiling:$ac_tool_warned in
20384 yes:)
20385 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20386 whose name does not start with the host triplet.  If you think this
20387 configuration is useful to you, please write to autoconf@gnu.org." >&5
20388 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20389 whose name does not start with the host triplet.  If you think this
20390 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20391 ac_tool_warned=yes ;;
20392 esac
20393     WINDRES=$ac_ct_WINDRES
20394   fi
20395 else
20396   WINDRES="$ac_cv_prog_WINDRES"
20397 fi
20398
20399     RESCOMP="$WINDRES"
20400 else
20401     case "${host}" in
20402     *-*-cygwin* | *-*-mingw32* )
20403                                 if test -n "$ac_tool_prefix"; then
20404   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20405 set dummy ${ac_tool_prefix}windres; ac_word=$2
20406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20408 if test "${ac_cv_prog_WINDRES+set}" = set; then
20409   echo $ECHO_N "(cached) $ECHO_C" >&6
20410 else
20411   if test -n "$WINDRES"; then
20412   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20413 else
20414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20415 for as_dir in $PATH
20416 do
20417   IFS=$as_save_IFS
20418   test -z "$as_dir" && as_dir=.
20419   for ac_exec_ext in '' $ac_executable_extensions; do
20420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20421     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20423     break 2
20424   fi
20425 done
20426 done
20427 IFS=$as_save_IFS
20428
20429 fi
20430 fi
20431 WINDRES=$ac_cv_prog_WINDRES
20432 if test -n "$WINDRES"; then
20433   { echo "$as_me:$LINENO: result: $WINDRES" >&5
20434 echo "${ECHO_T}$WINDRES" >&6; }
20435 else
20436   { echo "$as_me:$LINENO: result: no" >&5
20437 echo "${ECHO_T}no" >&6; }
20438 fi
20439
20440
20441 fi
20442 if test -z "$ac_cv_prog_WINDRES"; then
20443   ac_ct_WINDRES=$WINDRES
20444   # Extract the first word of "windres", so it can be a program name with args.
20445 set dummy windres; ac_word=$2
20446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20448 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
20449   echo $ECHO_N "(cached) $ECHO_C" >&6
20450 else
20451   if test -n "$ac_ct_WINDRES"; then
20452   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20453 else
20454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20455 for as_dir in $PATH
20456 do
20457   IFS=$as_save_IFS
20458   test -z "$as_dir" && as_dir=.
20459   for ac_exec_ext in '' $ac_executable_extensions; do
20460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20461     ac_cv_prog_ac_ct_WINDRES="windres"
20462     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20463     break 2
20464   fi
20465 done
20466 done
20467 IFS=$as_save_IFS
20468
20469 fi
20470 fi
20471 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20472 if test -n "$ac_ct_WINDRES"; then
20473   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
20474 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
20475 else
20476   { echo "$as_me:$LINENO: result: no" >&5
20477 echo "${ECHO_T}no" >&6; }
20478 fi
20479
20480   if test "x$ac_ct_WINDRES" = x; then
20481     WINDRES=""
20482   else
20483     case $cross_compiling:$ac_tool_warned in
20484 yes:)
20485 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20486 whose name does not start with the host triplet.  If you think this
20487 configuration is useful to you, please write to autoconf@gnu.org." >&5
20488 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20489 whose name does not start with the host triplet.  If you think this
20490 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20491 ac_tool_warned=yes ;;
20492 esac
20493     WINDRES=$ac_ct_WINDRES
20494   fi
20495 else
20496   WINDRES="$ac_cv_prog_WINDRES"
20497 fi
20498
20499         RESCOMP="$WINDRES"
20500         if test -n "$ac_tool_prefix"; then
20501   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
20502 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
20503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20505 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
20506   echo $ECHO_N "(cached) $ECHO_C" >&6
20507 else
20508   if test -n "$DLLTOOL"; then
20509   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
20510 else
20511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20512 for as_dir in $PATH
20513 do
20514   IFS=$as_save_IFS
20515   test -z "$as_dir" && as_dir=.
20516   for ac_exec_ext in '' $ac_executable_extensions; do
20517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20518     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
20519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20520     break 2
20521   fi
20522 done
20523 done
20524 IFS=$as_save_IFS
20525
20526 fi
20527 fi
20528 DLLTOOL=$ac_cv_prog_DLLTOOL
20529 if test -n "$DLLTOOL"; then
20530   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
20531 echo "${ECHO_T}$DLLTOOL" >&6; }
20532 else
20533   { echo "$as_me:$LINENO: result: no" >&5
20534 echo "${ECHO_T}no" >&6; }
20535 fi
20536
20537
20538 fi
20539 if test -z "$ac_cv_prog_DLLTOOL"; then
20540   ac_ct_DLLTOOL=$DLLTOOL
20541   # Extract the first word of "dlltool", so it can be a program name with args.
20542 set dummy dlltool; ac_word=$2
20543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20545 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
20546   echo $ECHO_N "(cached) $ECHO_C" >&6
20547 else
20548   if test -n "$ac_ct_DLLTOOL"; then
20549   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
20550 else
20551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20552 for as_dir in $PATH
20553 do
20554   IFS=$as_save_IFS
20555   test -z "$as_dir" && as_dir=.
20556   for ac_exec_ext in '' $ac_executable_extensions; do
20557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20558     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
20559     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20560     break 2
20561   fi
20562 done
20563 done
20564 IFS=$as_save_IFS
20565
20566 fi
20567 fi
20568 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
20569 if test -n "$ac_ct_DLLTOOL"; then
20570   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
20571 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
20572 else
20573   { echo "$as_me:$LINENO: result: no" >&5
20574 echo "${ECHO_T}no" >&6; }
20575 fi
20576
20577   if test "x$ac_ct_DLLTOOL" = x; then
20578     DLLTOOL=""
20579   else
20580     case $cross_compiling:$ac_tool_warned in
20581 yes:)
20582 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20583 whose name does not start with the host triplet.  If you think this
20584 configuration is useful to you, please write to autoconf@gnu.org." >&5
20585 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20586 whose name does not start with the host triplet.  If you think this
20587 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20588 ac_tool_warned=yes ;;
20589 esac
20590     DLLTOOL=$ac_ct_DLLTOOL
20591   fi
20592 else
20593   DLLTOOL="$ac_cv_prog_DLLTOOL"
20594 fi
20595
20596         ;;
20597     esac
20598 fi
20599
20600 { echo "$as_me:$LINENO: checking if make is GNU make" >&5
20601 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
20602 if test "${wx_cv_prog_makeisgnu+set}" = set; then
20603   echo $ECHO_N "(cached) $ECHO_C" >&6
20604 else
20605
20606     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
20607             $EGREP -s GNU > /dev/null); then
20608         wx_cv_prog_makeisgnu="yes"
20609     else
20610         wx_cv_prog_makeisgnu="no"
20611     fi
20612
20613 fi
20614 { echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
20615 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6; }
20616
20617 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
20618     IF_GNU_MAKE=""
20619 else
20620     IF_GNU_MAKE="#"
20621 fi
20622
20623
20624
20625 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
20626 { echo "$as_me:$LINENO: checking if make supports VPATH" >&5
20627 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6; }
20628 if test "${wx_cv_prog_makevpath+set}" = set; then
20629   echo $ECHO_N "(cached) $ECHO_C" >&6
20630 else
20631
20632 cat - << EOF > confMake
20633 check : file
20634         cp \$? \$@
20635         cp \$? final_file
20636 EOF
20637
20638 if test ! -d sub ; then
20639   mkdir sub
20640 fi
20641 echo dummy > sub/file
20642 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
20643 RESULT=$?
20644 rm -f sub/file check final_file confMake
20645 rmdir sub
20646 if test "$RESULT" = 0; then
20647   wx_cv_prog_makevpath="yes"
20648 else
20649   wx_cv_prog_makevpath="no"
20650 fi
20651
20652 fi
20653 { echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
20654 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6; }
20655
20656 if test "x$wx_cv_prog_makevpath" != "xyes"; then
20657 { { echo "$as_me:$LINENO: error:
20658 You need a make-utility that is able to use the variable
20659 VPATH correctly.
20660 If your version of make does not support VPATH correctly,
20661 please install GNU-make (possibly as gmake), and start
20662 configure with the following command:
20663 export MAKE=gmake; ./configure  for sh-type shells
20664 setenv MAKE gmake; ./configure  for csh-type shells
20665 Also please do remember to use gmake in this case every time
20666 you are trying to compile.
20667 " >&5
20668 echo "$as_me: error:
20669 You need a make-utility that is able to use the variable
20670 VPATH correctly.
20671 If your version of make does not support VPATH correctly,
20672 please install GNU-make (possibly as gmake), and start
20673 configure with the following command:
20674 export MAKE=gmake; ./configure  for sh-type shells
20675 setenv MAKE gmake; ./configure  for csh-type shells
20676 Also please do remember to use gmake in this case every time
20677 you are trying to compile.
20678 " >&2;}
20679    { (exit 1); exit 1; }; }
20680 fi fi
20681 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
20682 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
20683 LN_S=$as_ln_s
20684 if test "$LN_S" = "ln -s"; then
20685   { echo "$as_me:$LINENO: result: yes" >&5
20686 echo "${ECHO_T}yes" >&6; }
20687 else
20688   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20689 echo "${ECHO_T}no, using $LN_S" >&6; }
20690 fi
20691
20692
20693
20694
20695 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
20696     CXXFLAGS="-qunique $CXXFLAGS"
20697 fi
20698
20699 case "${host}" in
20700   powerpc-*-darwin* )
20701     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
20702 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
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
20710 int
20711 main ()
20712 {
20713 #ifndef __POWERPC__
20714         choke me for lack of PowerPC
20715 #endif
20716
20717   ;
20718   return 0;
20719 }
20720 _ACEOF
20721 rm -f conftest.$ac_objext
20722 if { (ac_try="$ac_compile"
20723 case "(($ac_try" in
20724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725   *) ac_try_echo=$ac_try;;
20726 esac
20727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728   (eval "$ac_compile") 2>conftest.er1
20729   ac_status=$?
20730   grep -v '^ *+' conftest.er1 >conftest.err
20731   rm -f conftest.er1
20732   cat conftest.err >&5
20733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734   (exit $ac_status); } && {
20735          test -z "$ac_c_werror_flag" ||
20736          test ! -s conftest.err
20737        } && test -s conftest.$ac_objext; then
20738   { echo "$as_me:$LINENO: result: yes" >&5
20739 echo "${ECHO_T}yes" >&6; }
20740 else
20741   echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20743
20744         { echo "$as_me:$LINENO: result: no" >&5
20745 echo "${ECHO_T}no" >&6; }
20746         cat >>confdefs.h <<\_ACEOF
20747 #define __POWERPC__ 1
20748 _ACEOF
20749
20750
20751 fi
20752
20753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20754   ;;
20755 esac
20756
20757 case "${host}" in
20758   *-*-darwin* )
20759     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
20760 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
20761     cat >conftest.$ac_ext <<_ACEOF
20762 /* confdefs.h.  */
20763 _ACEOF
20764 cat confdefs.h >>conftest.$ac_ext
20765 cat >>conftest.$ac_ext <<_ACEOF
20766 /* end confdefs.h.  */
20767 #include <CoreFoundation/CFBase.h>
20768
20769 int
20770 main ()
20771 {
20772
20773   ;
20774   return 0;
20775 }
20776 _ACEOF
20777 rm -f conftest.$ac_objext
20778 if { (ac_try="$ac_compile"
20779 case "(($ac_try" in
20780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781   *) ac_try_echo=$ac_try;;
20782 esac
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784   (eval "$ac_compile") 2>conftest.er1
20785   ac_status=$?
20786   grep -v '^ *+' conftest.er1 >conftest.err
20787   rm -f conftest.er1
20788   cat conftest.err >&5
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); } && {
20791          test -z "$ac_c_werror_flag" ||
20792          test ! -s conftest.err
20793        } && test -s conftest.$ac_objext; then
20794   { echo "$as_me:$LINENO: result: yes" >&5
20795 echo "${ECHO_T}yes" >&6; }
20796 else
20797   echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20799
20800         { echo "$as_me:$LINENO: result: no" >&5
20801 echo "${ECHO_T}no" >&6; }
20802         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
20803 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
20804         cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h.  */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h.  */
20810 #define __CF_USE_FRAMEWORK_INCLUDES__
20811 #include <CoreFoundation/CFBase.h>
20812
20813 int
20814 main ()
20815 {
20816
20817   ;
20818   return 0;
20819 }
20820 _ACEOF
20821 rm -f conftest.$ac_objext
20822 if { (ac_try="$ac_compile"
20823 case "(($ac_try" in
20824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825   *) ac_try_echo=$ac_try;;
20826 esac
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828   (eval "$ac_compile") 2>conftest.er1
20829   ac_status=$?
20830   grep -v '^ *+' conftest.er1 >conftest.err
20831   rm -f conftest.er1
20832   cat conftest.err >&5
20833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); } && {
20835          test -z "$ac_c_werror_flag" ||
20836          test ! -s conftest.err
20837        } && test -s conftest.$ac_objext; then
20838   { echo "$as_me:$LINENO: result: yes" >&5
20839 echo "${ECHO_T}yes" >&6; }
20840                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
20841 else
20842   echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20844
20845         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
20846 See \`config.log' for more details." >&5
20847 echo "$as_me: error: no.  CoreFoundation not available.
20848 See \`config.log' for more details." >&2;}
20849    { (exit 1); exit 1; }; }
20850
20851 fi
20852
20853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20854
20855
20856 fi
20857
20858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20859   ;;
20860 esac
20861
20862 wants_win32=0
20863 doesnt_want_win32=0
20864 case "${host}" in
20865   *-*-cygwin*)
20866       if test "$wxUSE_MSW" = 1 ; then
20867         wants_win32=1
20868       else
20869                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
20870 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
20871 if test "${wx_cv_nocygwin+set}" = set; then
20872   echo $ECHO_N "(cached) $ECHO_C" >&6
20873 else
20874
20875                 cat >conftest.$ac_ext <<_ACEOF
20876 /* confdefs.h.  */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h.  */
20881
20882 int
20883 main ()
20884 {
20885
20886                         #ifdef __MINGW32__
20887                             choke me
20888                         #endif
20889
20890   ;
20891   return 0;
20892 }
20893 _ACEOF
20894 rm -f conftest.$ac_objext
20895 if { (ac_try="$ac_compile"
20896 case "(($ac_try" in
20897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898   *) ac_try_echo=$ac_try;;
20899 esac
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901   (eval "$ac_compile") 2>conftest.er1
20902   ac_status=$?
20903   grep -v '^ *+' conftest.er1 >conftest.err
20904   rm -f conftest.er1
20905   cat conftest.err >&5
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); } && {
20908          test -z "$ac_c_werror_flag" ||
20909          test ! -s conftest.err
20910        } && test -s conftest.$ac_objext; then
20911   wx_cv_nocygwin=no
20912 else
20913   echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20915
20916         wx_cv_nocygwin=yes
20917
20918 fi
20919
20920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20921
20922
20923 fi
20924 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
20925 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
20926
20927         if test "$wx_cv_nocygwin" = "yes"; then
20928             wants_win32=1
20929         else
20930             doesnt_want_win32=1
20931         fi
20932       fi
20933       if test "$wants_win32" = 1 ; then
20934         BAKEFILE_FORCE_PLATFORM=win32
20935       fi
20936   ;;
20937   *-*-mingw*)
20938       wants_win32=1
20939   ;;
20940 esac
20941
20942 if test "$wxUSE_WINE" = "yes"; then
20943     wants_win32=1
20944     LDFLAGS_GUI="-mwindows"
20945 fi
20946
20947 if test "$wants_win32" = 1 ; then
20948     USE_UNIX=0
20949     USE_WIN32=1
20950     cat >>confdefs.h <<\_ACEOF
20951 #define __WIN32__ 1
20952 _ACEOF
20953
20954     cat >>confdefs.h <<\_ACEOF
20955 #define __WIN95__ 1
20956 _ACEOF
20957
20958     cat >>confdefs.h <<\_ACEOF
20959 #define __WINDOWS__ 1
20960 _ACEOF
20961
20962     cat >>confdefs.h <<\_ACEOF
20963 #define __GNUWIN32__ 1
20964 _ACEOF
20965
20966     cat >>confdefs.h <<\_ACEOF
20967 #define STRICT 1
20968 _ACEOF
20969
20970 fi
20971 if test "$doesnt_want_win32" = 1 ; then
20972     USE_UNIX=1
20973     USE_WIN32=0
20974 fi
20975
20976 if test "$USE_UNIX" = 1 ; then
20977     wxUSE_UNIX=yes
20978     cat >>confdefs.h <<\_ACEOF
20979 #define __UNIX__ 1
20980 _ACEOF
20981
20982 fi
20983
20984 case "${host}" in
20985   *-pc-os2_emx | *-pc-os2-emx )
20986                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
20987                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
20988 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
20989 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
20990   echo $ECHO_N "(cached) $ECHO_C" >&6
20991 else
20992   ac_check_lib_save_LIBS=$LIBS
20993 LIBS="-lcExt  $LIBS"
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
21001 /* Override any GCC internal prototype to avoid an error.
21002    Use char because int might match the return type of a GCC
21003    builtin and then its argument prototype would still apply.  */
21004 #ifdef __cplusplus
21005 extern "C"
21006 #endif
21007 char drand48 ();
21008 int
21009 main ()
21010 {
21011 return drand48 ();
21012   ;
21013   return 0;
21014 }
21015 _ACEOF
21016 rm -f conftest.$ac_objext conftest$ac_exeext
21017 if { (ac_try="$ac_link"
21018 case "(($ac_try" in
21019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020   *) ac_try_echo=$ac_try;;
21021 esac
21022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21023   (eval "$ac_link") 2>conftest.er1
21024   ac_status=$?
21025   grep -v '^ *+' conftest.er1 >conftest.err
21026   rm -f conftest.er1
21027   cat conftest.err >&5
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); } && {
21030          test -z "$ac_c_werror_flag" ||
21031          test ! -s conftest.err
21032        } && test -s conftest$ac_exeext &&
21033        $as_test_x conftest$ac_exeext; then
21034   ac_cv_lib_cExt_drand48=yes
21035 else
21036   echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.$ac_ext >&5
21038
21039         ac_cv_lib_cExt_drand48=no
21040 fi
21041
21042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21043       conftest$ac_exeext conftest.$ac_ext
21044 LIBS=$ac_check_lib_save_LIBS
21045 fi
21046 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
21047 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
21048 if test $ac_cv_lib_cExt_drand48 = yes; then
21049   LIBS="$LIBS -lcExt"
21050 fi
21051
21052       else
21053                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
21054       fi
21055                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
21056 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
21057 if test "${wx_cv_gccversion+set}" = set; then
21058   echo $ECHO_N "(cached) $ECHO_C" >&6
21059 else
21060
21061           if test "$cross_compiling" = yes; then
21062                 wx_cv_gccversion="EMX2"
21063
21064 else
21065   cat >conftest.$ac_ext <<_ACEOF
21066 /* confdefs.h.  */
21067 _ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h.  */
21071
21072                   #include <stdio.h>
21073
21074                   int main()
21075                   {
21076                       FILE *f=fopen("conftestval", "w");
21077                       if (!f) exit(1);
21078                       fprintf(f,
21079                   #if (__GNUC__ < 3)
21080                               "EMX2"
21081                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
21082                               "EMX3"
21083                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
21084                               "Innotek5"
21085                   #else
21086                               "Innotek6"
21087                   #endif
21088                       );
21089                       exit(0);
21090                   }
21091
21092 _ACEOF
21093 rm -f conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097   *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100   (eval "$ac_link") 2>&5
21101   ac_status=$?
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21104   { (case "(($ac_try" in
21105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106   *) ac_try_echo=$ac_try;;
21107 esac
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109   (eval "$ac_try") 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; }; then
21113   wx_cv_gccversion=`cat conftestval`
21114 else
21115   echo "$as_me: program exited with status $ac_status" >&5
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21118
21119 ( exit $ac_status )
21120 wx_cv_gccversion="EMX2"
21121 fi
21122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21123 fi
21124
21125
21126
21127 fi
21128 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
21129 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
21130       if test "$wx_cv_gccversion" = "EMX2"; then
21131           LIBS="$LIBS -lstdcpp"
21132           LDFLAGS="$LDFLAGS -Zsysv-signals"
21133       else
21134           if test "$wx_cv_gccversion" = "EMX3"; then
21135               LIBS="$LIBS -lstdcxx -lgcc"
21136               LDFLAGS="$LDFLAGS -Zsysv-signals"
21137           else
21138               LIBS="$LIBS -lstdc++"
21139           fi
21140       fi
21141       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
21142         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
21143 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
21144         wxUSE_OMF=yes
21145         enable_omf=yes
21146       fi
21147         ;;
21148   *)
21149
21150       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
21151 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
21152 if test "${ac_cv_string_strcasecmp+set}" = set; then
21153   echo $ECHO_N "(cached) $ECHO_C" >&6
21154 else
21155
21156           cat >conftest.$ac_ext <<_ACEOF
21157 /* confdefs.h.  */
21158 _ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h.  */
21162
21163               #include <string.h>
21164
21165 int
21166 main ()
21167 {
21168
21169                   strcasecmp("foo", "bar");
21170
21171   ;
21172   return 0;
21173 }
21174 _ACEOF
21175 rm -f conftest.$ac_objext conftest$ac_exeext
21176 if { (ac_try="$ac_link"
21177 case "(($ac_try" in
21178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21179   *) ac_try_echo=$ac_try;;
21180 esac
21181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21182   (eval "$ac_link") 2>conftest.er1
21183   ac_status=$?
21184   grep -v '^ *+' conftest.er1 >conftest.err
21185   rm -f conftest.er1
21186   cat conftest.err >&5
21187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188   (exit $ac_status); } && {
21189          test -z "$ac_c_werror_flag" ||
21190          test ! -s conftest.err
21191        } && test -s conftest$ac_exeext &&
21192        $as_test_x conftest$ac_exeext; then
21193   ac_cv_string_strcasecmp=yes
21194 else
21195   echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21197
21198         ac_cv_string_strcasecmp=no
21199
21200 fi
21201
21202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21203       conftest$ac_exeext conftest.$ac_ext
21204
21205 fi
21206 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
21207 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
21208
21209       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
21210           cat >>confdefs.h <<\_ACEOF
21211 #define HAVE_STRCASECMP_IN_STRING_H 1
21212 _ACEOF
21213
21214       else
21215           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
21216 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
21217 if test "${ac_cv_strings_strcasecmp+set}" = set; then
21218   echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220
21221               cat >conftest.$ac_ext <<_ACEOF
21222 /* confdefs.h.  */
21223 _ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h.  */
21227
21228                   #include <strings.h>
21229
21230 int
21231 main ()
21232 {
21233
21234                       strcasecmp("foo", "bar");
21235
21236   ;
21237   return 0;
21238 }
21239 _ACEOF
21240 rm -f conftest.$ac_objext conftest$ac_exeext
21241 if { (ac_try="$ac_link"
21242 case "(($ac_try" in
21243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244   *) ac_try_echo=$ac_try;;
21245 esac
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247   (eval "$ac_link") 2>conftest.er1
21248   ac_status=$?
21249   grep -v '^ *+' conftest.er1 >conftest.err
21250   rm -f conftest.er1
21251   cat conftest.err >&5
21252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253   (exit $ac_status); } && {
21254          test -z "$ac_c_werror_flag" ||
21255          test ! -s conftest.err
21256        } && test -s conftest$ac_exeext &&
21257        $as_test_x conftest$ac_exeext; then
21258   ac_cv_strings_strcasecmp=yes
21259 else
21260   echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21262
21263         ac_cv_strings_strcasecmp=no
21264
21265 fi
21266
21267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21268       conftest$ac_exeext conftest.$ac_ext
21269
21270 fi
21271 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
21272 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
21273
21274           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
21275               cat >>confdefs.h <<\_ACEOF
21276 #define HAVE_STRCASECMP_IN_STRINGS_H 1
21277 _ACEOF
21278
21279           else
21280               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
21281 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
21282    { (exit 1); exit 1; }; }
21283           fi
21284       fi
21285
21286         ;;
21287 esac
21288
21289
21290 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21291 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21292 if test "${ac_cv_header_stdc+set}" = set; then
21293   echo $ECHO_N "(cached) $ECHO_C" >&6
21294 else
21295   cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h.  */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h.  */
21301 #include <stdlib.h>
21302 #include <stdarg.h>
21303 #include <string.h>
21304 #include <float.h>
21305
21306 int
21307 main ()
21308 {
21309
21310   ;
21311   return 0;
21312 }
21313 _ACEOF
21314 rm -f conftest.$ac_objext
21315 if { (ac_try="$ac_compile"
21316 case "(($ac_try" in
21317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318   *) ac_try_echo=$ac_try;;
21319 esac
21320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21321   (eval "$ac_compile") 2>conftest.er1
21322   ac_status=$?
21323   grep -v '^ *+' conftest.er1 >conftest.err
21324   rm -f conftest.er1
21325   cat conftest.err >&5
21326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327   (exit $ac_status); } && {
21328          test -z "$ac_c_werror_flag" ||
21329          test ! -s conftest.err
21330        } && test -s conftest.$ac_objext; then
21331   ac_cv_header_stdc=yes
21332 else
21333   echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21335
21336         ac_cv_header_stdc=no
21337 fi
21338
21339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21340
21341 if test $ac_cv_header_stdc = yes; then
21342   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21343   cat >conftest.$ac_ext <<_ACEOF
21344 /* confdefs.h.  */
21345 _ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h.  */
21349 #include <string.h>
21350
21351 _ACEOF
21352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21353   $EGREP "memchr" >/dev/null 2>&1; then
21354   :
21355 else
21356   ac_cv_header_stdc=no
21357 fi
21358 rm -f conftest*
21359
21360 fi
21361
21362 if test $ac_cv_header_stdc = yes; then
21363   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21364   cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h.  */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h.  */
21370 #include <stdlib.h>
21371
21372 _ACEOF
21373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21374   $EGREP "free" >/dev/null 2>&1; then
21375   :
21376 else
21377   ac_cv_header_stdc=no
21378 fi
21379 rm -f conftest*
21380
21381 fi
21382
21383 if test $ac_cv_header_stdc = yes; then
21384   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21385   if test "$cross_compiling" = yes; then
21386   :
21387 else
21388   cat >conftest.$ac_ext <<_ACEOF
21389 /* confdefs.h.  */
21390 _ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h.  */
21394 #include <ctype.h>
21395 #include <stdlib.h>
21396 #if ((' ' & 0x0FF) == 0x020)
21397 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21398 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21399 #else
21400 # define ISLOWER(c) \
21401                    (('a' <= (c) && (c) <= 'i') \
21402                      || ('j' <= (c) && (c) <= 'r') \
21403                      || ('s' <= (c) && (c) <= 'z'))
21404 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21405 #endif
21406
21407 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21408 int
21409 main ()
21410 {
21411   int i;
21412   for (i = 0; i < 256; i++)
21413     if (XOR (islower (i), ISLOWER (i))
21414         || toupper (i) != TOUPPER (i))
21415       return 2;
21416   return 0;
21417 }
21418 _ACEOF
21419 rm -f conftest$ac_exeext
21420 if { (ac_try="$ac_link"
21421 case "(($ac_try" in
21422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423   *) ac_try_echo=$ac_try;;
21424 esac
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426   (eval "$ac_link") 2>&5
21427   ac_status=$?
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21430   { (case "(($ac_try" in
21431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432   *) ac_try_echo=$ac_try;;
21433 esac
21434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435   (eval "$ac_try") 2>&5
21436   ac_status=$?
21437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438   (exit $ac_status); }; }; then
21439   :
21440 else
21441   echo "$as_me: program exited with status $ac_status" >&5
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445 ( exit $ac_status )
21446 ac_cv_header_stdc=no
21447 fi
21448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21449 fi
21450
21451
21452 fi
21453 fi
21454 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21455 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21456 if test $ac_cv_header_stdc = yes; then
21457
21458 cat >>confdefs.h <<\_ACEOF
21459 #define STDC_HEADERS 1
21460 _ACEOF
21461
21462 fi
21463
21464 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
21475                   inttypes.h stdint.h unistd.h
21476 do
21477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21481   echo $ECHO_N "(cached) $ECHO_C" >&6
21482 else
21483   cat >conftest.$ac_ext <<_ACEOF
21484 /* confdefs.h.  */
21485 _ACEOF
21486 cat confdefs.h >>conftest.$ac_ext
21487 cat >>conftest.$ac_ext <<_ACEOF
21488 /* end confdefs.h.  */
21489 $ac_includes_default
21490
21491 #include <$ac_header>
21492 _ACEOF
21493 rm -f conftest.$ac_objext
21494 if { (ac_try="$ac_compile"
21495 case "(($ac_try" in
21496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497   *) ac_try_echo=$ac_try;;
21498 esac
21499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500   (eval "$ac_compile") 2>conftest.er1
21501   ac_status=$?
21502   grep -v '^ *+' conftest.er1 >conftest.err
21503   rm -f conftest.er1
21504   cat conftest.err >&5
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); } && {
21507          test -z "$ac_c_werror_flag" ||
21508          test ! -s conftest.err
21509        } && test -s conftest.$ac_objext; then
21510   eval "$as_ac_Header=yes"
21511 else
21512   echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21514
21515         eval "$as_ac_Header=no"
21516 fi
21517
21518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21519 fi
21520 ac_res=`eval echo '${'$as_ac_Header'}'`
21521                { echo "$as_me:$LINENO: result: $ac_res" >&5
21522 echo "${ECHO_T}$ac_res" >&6; }
21523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21524   cat >>confdefs.h <<_ACEOF
21525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21526 _ACEOF
21527
21528 fi
21529
21530 done
21531
21532
21533
21534
21535
21536
21537
21538
21539 for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
21540 do
21541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21545   echo $ECHO_N "(cached) $ECHO_C" >&6
21546 else
21547   cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h.  */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h.  */
21553 $ac_includes_default
21554
21555 #include <$ac_header>
21556 _ACEOF
21557 rm -f conftest.$ac_objext
21558 if { (ac_try="$ac_compile"
21559 case "(($ac_try" in
21560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561   *) ac_try_echo=$ac_try;;
21562 esac
21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564   (eval "$ac_compile") 2>conftest.er1
21565   ac_status=$?
21566   grep -v '^ *+' conftest.er1 >conftest.err
21567   rm -f conftest.er1
21568   cat conftest.err >&5
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); } && {
21571          test -z "$ac_c_werror_flag" ||
21572          test ! -s conftest.err
21573        } && test -s conftest.$ac_objext; then
21574   eval "$as_ac_Header=yes"
21575 else
21576   echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21578
21579         eval "$as_ac_Header=no"
21580 fi
21581
21582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21583 fi
21584 ac_res=`eval echo '${'$as_ac_Header'}'`
21585                { echo "$as_me:$LINENO: result: $ac_res" >&5
21586 echo "${ECHO_T}$ac_res" >&6; }
21587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21588   cat >>confdefs.h <<_ACEOF
21589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21590 _ACEOF
21591
21592 fi
21593
21594 done
21595
21596
21597 if test "$ac_cv_header_wchar_h" != "yes"; then
21598
21599 for ac_header in wcstr.h
21600 do
21601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21605   echo $ECHO_N "(cached) $ECHO_C" >&6
21606 else
21607   cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h.  */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h.  */
21613 $ac_includes_default
21614
21615 #include <$ac_header>
21616 _ACEOF
21617 rm -f conftest.$ac_objext
21618 if { (ac_try="$ac_compile"
21619 case "(($ac_try" in
21620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621   *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624   (eval "$ac_compile") 2>conftest.er1
21625   ac_status=$?
21626   grep -v '^ *+' conftest.er1 >conftest.err
21627   rm -f conftest.er1
21628   cat conftest.err >&5
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); } && {
21631          test -z "$ac_c_werror_flag" ||
21632          test ! -s conftest.err
21633        } && test -s conftest.$ac_objext; then
21634   eval "$as_ac_Header=yes"
21635 else
21636   echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639         eval "$as_ac_Header=no"
21640 fi
21641
21642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21643 fi
21644 ac_res=`eval echo '${'$as_ac_Header'}'`
21645                { echo "$as_me:$LINENO: result: $ac_res" >&5
21646 echo "${ECHO_T}$ac_res" >&6; }
21647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21648   cat >>confdefs.h <<_ACEOF
21649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21650 _ACEOF
21651
21652 fi
21653
21654 done
21655
21656 fi
21657
21658 case "${host}" in
21659   *-pc-os2_emx | *-pc-os2-emx )
21660                   if test $ac_cv_header_langinfo_h = "yes" \
21661                 -a \(   "$wx_cv_gccversion" = "EMX2" \
21662                      -o "$wx_cv_gccversion" = "EMX3" \
21663                      -o "$wx_cv_gccversion" = "Innotek5" \); then
21664           LIBS="$LIBS -lintl"
21665       fi
21666   ;;
21667 esac
21668
21669 if test "$USE_UNIX" = 1 ; then
21670
21671 for ac_header in sys/select.h
21672 do
21673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21677   echo $ECHO_N "(cached) $ECHO_C" >&6
21678 else
21679   cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h.  */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h.  */
21685 $ac_includes_default
21686
21687 #include <$ac_header>
21688 _ACEOF
21689 rm -f conftest.$ac_objext
21690 if { (ac_try="$ac_compile"
21691 case "(($ac_try" in
21692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693   *) ac_try_echo=$ac_try;;
21694 esac
21695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21696   (eval "$ac_compile") 2>conftest.er1
21697   ac_status=$?
21698   grep -v '^ *+' conftest.er1 >conftest.err
21699   rm -f conftest.er1
21700   cat conftest.err >&5
21701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702   (exit $ac_status); } && {
21703          test -z "$ac_c_werror_flag" ||
21704          test ! -s conftest.err
21705        } && test -s conftest.$ac_objext; then
21706   eval "$as_ac_Header=yes"
21707 else
21708   echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21710
21711         eval "$as_ac_Header=no"
21712 fi
21713
21714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21715 fi
21716 ac_res=`eval echo '${'$as_ac_Header'}'`
21717                { echo "$as_me:$LINENO: result: $ac_res" >&5
21718 echo "${ECHO_T}$ac_res" >&6; }
21719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21720   cat >>confdefs.h <<_ACEOF
21721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21722 _ACEOF
21723
21724 fi
21725
21726 done
21727
21728 fi
21729
21730
21731 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21732 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21733 if test "${ac_cv_c_const+set}" = set; then
21734   echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736   cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h.  */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h.  */
21742
21743 int
21744 main ()
21745 {
21746 /* FIXME: Include the comments suggested by Paul. */
21747 #ifndef __cplusplus
21748   /* Ultrix mips cc rejects this.  */
21749   typedef int charset[2];
21750   const charset cs;
21751   /* SunOS 4.1.1 cc rejects this.  */
21752   char const *const *pcpcc;
21753   char **ppc;
21754   /* NEC SVR4.0.2 mips cc rejects this.  */
21755   struct point {int x, y;};
21756   static struct point const zero = {0,0};
21757   /* AIX XL C 1.02.0.0 rejects this.
21758      It does not let you subtract one const X* pointer from another in
21759      an arm of an if-expression whose if-part is not a constant
21760      expression */
21761   const char *g = "string";
21762   pcpcc = &g + (g ? g-g : 0);
21763   /* HPUX 7.0 cc rejects these. */
21764   ++pcpcc;
21765   ppc = (char**) pcpcc;
21766   pcpcc = (char const *const *) ppc;
21767   { /* SCO 3.2v4 cc rejects this.  */
21768     char *t;
21769     char const *s = 0 ? (char *) 0 : (char const *) 0;
21770
21771     *t++ = 0;
21772     if (s) return 0;
21773   }
21774   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21775     int x[] = {25, 17};
21776     const int *foo = &x[0];
21777     ++foo;
21778   }
21779   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21780     typedef const int *iptr;
21781     iptr p = 0;
21782     ++p;
21783   }
21784   { /* AIX XL C 1.02.0.0 rejects this saying
21785        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21786     struct s { int j; const int *ap[3]; };
21787     struct s *b; b->j = 5;
21788   }
21789   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21790     const int foo = 10;
21791     if (!foo) return 0;
21792   }
21793   return !cs[0] && !zero.x;
21794 #endif
21795
21796   ;
21797   return 0;
21798 }
21799 _ACEOF
21800 rm -f conftest.$ac_objext
21801 if { (ac_try="$ac_compile"
21802 case "(($ac_try" in
21803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804   *) ac_try_echo=$ac_try;;
21805 esac
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807   (eval "$ac_compile") 2>conftest.er1
21808   ac_status=$?
21809   grep -v '^ *+' conftest.er1 >conftest.err
21810   rm -f conftest.er1
21811   cat conftest.err >&5
21812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813   (exit $ac_status); } && {
21814          test -z "$ac_c_werror_flag" ||
21815          test ! -s conftest.err
21816        } && test -s conftest.$ac_objext; then
21817   ac_cv_c_const=yes
21818 else
21819   echo "$as_me: failed program was:" >&5
21820 sed 's/^/| /' conftest.$ac_ext >&5
21821
21822         ac_cv_c_const=no
21823 fi
21824
21825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21826 fi
21827 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21828 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21829 if test $ac_cv_c_const = no; then
21830
21831 cat >>confdefs.h <<\_ACEOF
21832 #define const
21833 _ACEOF
21834
21835 fi
21836
21837 { echo "$as_me:$LINENO: checking for inline" >&5
21838 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21839 if test "${ac_cv_c_inline+set}" = set; then
21840   echo $ECHO_N "(cached) $ECHO_C" >&6
21841 else
21842   ac_cv_c_inline=no
21843 for ac_kw in inline __inline__ __inline; do
21844   cat >conftest.$ac_ext <<_ACEOF
21845 /* confdefs.h.  */
21846 _ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h.  */
21850 #ifndef __cplusplus
21851 typedef int foo_t;
21852 static $ac_kw foo_t static_foo () {return 0; }
21853 $ac_kw foo_t foo () {return 0; }
21854 #endif
21855
21856 _ACEOF
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861   *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864   (eval "$ac_compile") 2>conftest.er1
21865   ac_status=$?
21866   grep -v '^ *+' conftest.er1 >conftest.err
21867   rm -f conftest.er1
21868   cat conftest.err >&5
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); } && {
21871          test -z "$ac_c_werror_flag" ||
21872          test ! -s conftest.err
21873        } && test -s conftest.$ac_objext; then
21874   ac_cv_c_inline=$ac_kw
21875 else
21876   echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21878
21879
21880 fi
21881
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883   test "$ac_cv_c_inline" != no && break
21884 done
21885
21886 fi
21887 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21888 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21889
21890
21891 case $ac_cv_c_inline in
21892   inline | yes) ;;
21893   *)
21894     case $ac_cv_c_inline in
21895       no) ac_val=;;
21896       *) ac_val=$ac_cv_c_inline;;
21897     esac
21898     cat >>confdefs.h <<_ACEOF
21899 #ifndef __cplusplus
21900 #define inline $ac_val
21901 #endif
21902 _ACEOF
21903     ;;
21904 esac
21905
21906
21907 { echo "$as_me:$LINENO: checking for short" >&5
21908 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21909 if test "${ac_cv_type_short+set}" = set; then
21910   echo $ECHO_N "(cached) $ECHO_C" >&6
21911 else
21912   cat >conftest.$ac_ext <<_ACEOF
21913 /* confdefs.h.  */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h.  */
21918 $ac_includes_default
21919 typedef short ac__type_new_;
21920 int
21921 main ()
21922 {
21923 if ((ac__type_new_ *) 0)
21924   return 0;
21925 if (sizeof (ac__type_new_))
21926   return 0;
21927   ;
21928   return 0;
21929 }
21930 _ACEOF
21931 rm -f conftest.$ac_objext
21932 if { (ac_try="$ac_compile"
21933 case "(($ac_try" in
21934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935   *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938   (eval "$ac_compile") 2>conftest.er1
21939   ac_status=$?
21940   grep -v '^ *+' conftest.er1 >conftest.err
21941   rm -f conftest.er1
21942   cat conftest.err >&5
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); } && {
21945          test -z "$ac_c_werror_flag" ||
21946          test ! -s conftest.err
21947        } && test -s conftest.$ac_objext; then
21948   ac_cv_type_short=yes
21949 else
21950   echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21952
21953         ac_cv_type_short=no
21954 fi
21955
21956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21957 fi
21958 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21959 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21960
21961 # The cast to long int works around a bug in the HP C Compiler
21962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21964 # This bug is HP SR number 8606223364.
21965 { echo "$as_me:$LINENO: checking size of short" >&5
21966 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21967 if test "${ac_cv_sizeof_short+set}" = set; then
21968   echo $ECHO_N "(cached) $ECHO_C" >&6
21969 else
21970   if test "$cross_compiling" = yes; then
21971   # Depending upon the size, compute the lo and hi bounds.
21972 cat >conftest.$ac_ext <<_ACEOF
21973 /* confdefs.h.  */
21974 _ACEOF
21975 cat confdefs.h >>conftest.$ac_ext
21976 cat >>conftest.$ac_ext <<_ACEOF
21977 /* end confdefs.h.  */
21978 $ac_includes_default
21979    typedef short ac__type_sizeof_;
21980 int
21981 main ()
21982 {
21983 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21984 test_array [0] = 0
21985
21986   ;
21987   return 0;
21988 }
21989 _ACEOF
21990 rm -f conftest.$ac_objext
21991 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21998   ac_status=$?
21999   grep -v '^ *+' conftest.er1 >conftest.err
22000   rm -f conftest.er1
22001   cat conftest.err >&5
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); } && {
22004          test -z "$ac_c_werror_flag" ||
22005          test ! -s conftest.err
22006        } && test -s conftest.$ac_objext; then
22007   ac_lo=0 ac_mid=0
22008   while :; do
22009     cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h.  */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h.  */
22015 $ac_includes_default
22016    typedef short ac__type_sizeof_;
22017 int
22018 main ()
22019 {
22020 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22021 test_array [0] = 0
22022
22023   ;
22024   return 0;
22025 }
22026 _ACEOF
22027 rm -f conftest.$ac_objext
22028 if { (ac_try="$ac_compile"
22029 case "(($ac_try" in
22030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031   *) ac_try_echo=$ac_try;;
22032 esac
22033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22034   (eval "$ac_compile") 2>conftest.er1
22035   ac_status=$?
22036   grep -v '^ *+' conftest.er1 >conftest.err
22037   rm -f conftest.er1
22038   cat conftest.err >&5
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); } && {
22041          test -z "$ac_c_werror_flag" ||
22042          test ! -s conftest.err
22043        } && test -s conftest.$ac_objext; then
22044   ac_hi=$ac_mid; break
22045 else
22046   echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22048
22049         ac_lo=`expr $ac_mid + 1`
22050                         if test $ac_lo -le $ac_mid; then
22051                           ac_lo= ac_hi=
22052                           break
22053                         fi
22054                         ac_mid=`expr 2 '*' $ac_mid + 1`
22055 fi
22056
22057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22058   done
22059 else
22060   echo "$as_me: failed program was:" >&5
22061 sed 's/^/| /' conftest.$ac_ext >&5
22062
22063         cat >conftest.$ac_ext <<_ACEOF
22064 /* confdefs.h.  */
22065 _ACEOF
22066 cat confdefs.h >>conftest.$ac_ext
22067 cat >>conftest.$ac_ext <<_ACEOF
22068 /* end confdefs.h.  */
22069 $ac_includes_default
22070    typedef short ac__type_sizeof_;
22071 int
22072 main ()
22073 {
22074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22075 test_array [0] = 0
22076
22077   ;
22078   return 0;
22079 }
22080 _ACEOF
22081 rm -f conftest.$ac_objext
22082 if { (ac_try="$ac_compile"
22083 case "(($ac_try" in
22084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22085   *) ac_try_echo=$ac_try;;
22086 esac
22087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22088   (eval "$ac_compile") 2>conftest.er1
22089   ac_status=$?
22090   grep -v '^ *+' conftest.er1 >conftest.err
22091   rm -f conftest.er1
22092   cat conftest.err >&5
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); } && {
22095          test -z "$ac_c_werror_flag" ||
22096          test ! -s conftest.err
22097        } && test -s conftest.$ac_objext; then
22098   ac_hi=-1 ac_mid=-1
22099   while :; do
22100     cat >conftest.$ac_ext <<_ACEOF
22101 /* confdefs.h.  */
22102 _ACEOF
22103 cat confdefs.h >>conftest.$ac_ext
22104 cat >>conftest.$ac_ext <<_ACEOF
22105 /* end confdefs.h.  */
22106 $ac_includes_default
22107    typedef short ac__type_sizeof_;
22108 int
22109 main ()
22110 {
22111 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22112 test_array [0] = 0
22113
22114   ;
22115   return 0;
22116 }
22117 _ACEOF
22118 rm -f conftest.$ac_objext
22119 if { (ac_try="$ac_compile"
22120 case "(($ac_try" in
22121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122   *) ac_try_echo=$ac_try;;
22123 esac
22124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125   (eval "$ac_compile") 2>conftest.er1
22126   ac_status=$?
22127   grep -v '^ *+' conftest.er1 >conftest.err
22128   rm -f conftest.er1
22129   cat conftest.err >&5
22130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131   (exit $ac_status); } && {
22132          test -z "$ac_c_werror_flag" ||
22133          test ! -s conftest.err
22134        } && test -s conftest.$ac_objext; then
22135   ac_lo=$ac_mid; break
22136 else
22137   echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22139
22140         ac_hi=`expr '(' $ac_mid ')' - 1`
22141                         if test $ac_mid -le $ac_hi; then
22142                           ac_lo= ac_hi=
22143                           break
22144                         fi
22145                         ac_mid=`expr 2 '*' $ac_mid`
22146 fi
22147
22148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22149   done
22150 else
22151   echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22153
22154         ac_lo= ac_hi=
22155 fi
22156
22157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22158 fi
22159
22160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22161 # Binary search between lo and hi bounds.
22162 while test "x$ac_lo" != "x$ac_hi"; do
22163   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22164   cat >conftest.$ac_ext <<_ACEOF
22165 /* confdefs.h.  */
22166 _ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h.  */
22170 $ac_includes_default
22171    typedef short ac__type_sizeof_;
22172 int
22173 main ()
22174 {
22175 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22176 test_array [0] = 0
22177
22178   ;
22179   return 0;
22180 }
22181 _ACEOF
22182 rm -f conftest.$ac_objext
22183 if { (ac_try="$ac_compile"
22184 case "(($ac_try" in
22185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186   *) ac_try_echo=$ac_try;;
22187 esac
22188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189   (eval "$ac_compile") 2>conftest.er1
22190   ac_status=$?
22191   grep -v '^ *+' conftest.er1 >conftest.err
22192   rm -f conftest.er1
22193   cat conftest.err >&5
22194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); } && {
22196          test -z "$ac_c_werror_flag" ||
22197          test ! -s conftest.err
22198        } && test -s conftest.$ac_objext; then
22199   ac_hi=$ac_mid
22200 else
22201   echo "$as_me: failed program was:" >&5
22202 sed 's/^/| /' conftest.$ac_ext >&5
22203
22204         ac_lo=`expr '(' $ac_mid ')' + 1`
22205 fi
22206
22207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22208 done
22209 case $ac_lo in
22210 ?*) ac_cv_sizeof_short=$ac_lo;;
22211 '') if test "$ac_cv_type_short" = yes; then
22212      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22213 See \`config.log' for more details." >&5
22214 echo "$as_me: error: cannot compute sizeof (short)
22215 See \`config.log' for more details." >&2;}
22216    { (exit 77); exit 77; }; }
22217    else
22218      ac_cv_sizeof_short=0
22219    fi ;;
22220 esac
22221 else
22222   cat >conftest.$ac_ext <<_ACEOF
22223 /* confdefs.h.  */
22224 _ACEOF
22225 cat confdefs.h >>conftest.$ac_ext
22226 cat >>conftest.$ac_ext <<_ACEOF
22227 /* end confdefs.h.  */
22228 $ac_includes_default
22229    typedef short ac__type_sizeof_;
22230 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22231 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22232 #include <stdio.h>
22233 #include <stdlib.h>
22234 int
22235 main ()
22236 {
22237
22238   FILE *f = fopen ("conftest.val", "w");
22239   if (! f)
22240     return 1;
22241   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22242     {
22243       long int i = longval ();
22244       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22245         return 1;
22246       fprintf (f, "%ld\n", i);
22247     }
22248   else
22249     {
22250       unsigned long int i = ulongval ();
22251       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22252         return 1;
22253       fprintf (f, "%lu\n", i);
22254     }
22255   return ferror (f) || fclose (f) != 0;
22256
22257   ;
22258   return 0;
22259 }
22260 _ACEOF
22261 rm -f conftest$ac_exeext
22262 if { (ac_try="$ac_link"
22263 case "(($ac_try" in
22264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22265   *) ac_try_echo=$ac_try;;
22266 esac
22267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22268   (eval "$ac_link") 2>&5
22269   ac_status=$?
22270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22272   { (case "(($ac_try" in
22273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274   *) ac_try_echo=$ac_try;;
22275 esac
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277   (eval "$ac_try") 2>&5
22278   ac_status=$?
22279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280   (exit $ac_status); }; }; then
22281   ac_cv_sizeof_short=`cat conftest.val`
22282 else
22283   echo "$as_me: program exited with status $ac_status" >&5
22284 echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22286
22287 ( exit $ac_status )
22288 if test "$ac_cv_type_short" = yes; then
22289      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22290 See \`config.log' for more details." >&5
22291 echo "$as_me: error: cannot compute sizeof (short)
22292 See \`config.log' for more details." >&2;}
22293    { (exit 77); exit 77; }; }
22294    else
22295      ac_cv_sizeof_short=0
22296    fi
22297 fi
22298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22299 fi
22300 rm -f conftest.val
22301 fi
22302 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22303 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
22304
22305
22306
22307 cat >>confdefs.h <<_ACEOF
22308 #define SIZEOF_SHORT $ac_cv_sizeof_short
22309 _ACEOF
22310
22311
22312 { echo "$as_me:$LINENO: checking for void *" >&5
22313 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
22314 if test "${ac_cv_type_void_p+set}" = set; then
22315   echo $ECHO_N "(cached) $ECHO_C" >&6
22316 else
22317   cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h.  */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h.  */
22323 $ac_includes_default
22324 typedef void * ac__type_new_;
22325 int
22326 main ()
22327 {
22328 if ((ac__type_new_ *) 0)
22329   return 0;
22330 if (sizeof (ac__type_new_))
22331   return 0;
22332   ;
22333   return 0;
22334 }
22335 _ACEOF
22336 rm -f conftest.$ac_objext
22337 if { (ac_try="$ac_compile"
22338 case "(($ac_try" in
22339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340   *) ac_try_echo=$ac_try;;
22341 esac
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343   (eval "$ac_compile") 2>conftest.er1
22344   ac_status=$?
22345   grep -v '^ *+' conftest.er1 >conftest.err
22346   rm -f conftest.er1
22347   cat conftest.err >&5
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); } && {
22350          test -z "$ac_c_werror_flag" ||
22351          test ! -s conftest.err
22352        } && test -s conftest.$ac_objext; then
22353   ac_cv_type_void_p=yes
22354 else
22355   echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22357
22358         ac_cv_type_void_p=no
22359 fi
22360
22361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22362 fi
22363 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22364 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22365
22366 # The cast to long int works around a bug in the HP C Compiler
22367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22369 # This bug is HP SR number 8606223364.
22370 { echo "$as_me:$LINENO: checking size of void *" >&5
22371 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22372 if test "${ac_cv_sizeof_void_p+set}" = set; then
22373   echo $ECHO_N "(cached) $ECHO_C" >&6
22374 else
22375   if test "$cross_compiling" = yes; then
22376   # Depending upon the size, compute the lo and hi bounds.
22377 cat >conftest.$ac_ext <<_ACEOF
22378 /* confdefs.h.  */
22379 _ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h.  */
22383 $ac_includes_default
22384    typedef void * ac__type_sizeof_;
22385 int
22386 main ()
22387 {
22388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22389 test_array [0] = 0
22390
22391   ;
22392   return 0;
22393 }
22394 _ACEOF
22395 rm -f conftest.$ac_objext
22396 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22403   ac_status=$?
22404   grep -v '^ *+' conftest.er1 >conftest.err
22405   rm -f conftest.er1
22406   cat conftest.err >&5
22407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408   (exit $ac_status); } && {
22409          test -z "$ac_c_werror_flag" ||
22410          test ! -s conftest.err
22411        } && test -s conftest.$ac_objext; then
22412   ac_lo=0 ac_mid=0
22413   while :; do
22414     cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h.  */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h.  */
22420 $ac_includes_default
22421    typedef void * ac__type_sizeof_;
22422 int
22423 main ()
22424 {
22425 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22426 test_array [0] = 0
22427
22428   ;
22429   return 0;
22430 }
22431 _ACEOF
22432 rm -f conftest.$ac_objext
22433 if { (ac_try="$ac_compile"
22434 case "(($ac_try" in
22435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436   *) ac_try_echo=$ac_try;;
22437 esac
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439   (eval "$ac_compile") 2>conftest.er1
22440   ac_status=$?
22441   grep -v '^ *+' conftest.er1 >conftest.err
22442   rm -f conftest.er1
22443   cat conftest.err >&5
22444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445   (exit $ac_status); } && {
22446          test -z "$ac_c_werror_flag" ||
22447          test ! -s conftest.err
22448        } && test -s conftest.$ac_objext; then
22449   ac_hi=$ac_mid; break
22450 else
22451   echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22453
22454         ac_lo=`expr $ac_mid + 1`
22455                         if test $ac_lo -le $ac_mid; then
22456                           ac_lo= ac_hi=
22457                           break
22458                         fi
22459                         ac_mid=`expr 2 '*' $ac_mid + 1`
22460 fi
22461
22462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22463   done
22464 else
22465   echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22467
22468         cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h.  */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h.  */
22474 $ac_includes_default
22475    typedef void * ac__type_sizeof_;
22476 int
22477 main ()
22478 {
22479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22480 test_array [0] = 0
22481
22482   ;
22483   return 0;
22484 }
22485 _ACEOF
22486 rm -f conftest.$ac_objext
22487 if { (ac_try="$ac_compile"
22488 case "(($ac_try" in
22489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490   *) ac_try_echo=$ac_try;;
22491 esac
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493   (eval "$ac_compile") 2>conftest.er1
22494   ac_status=$?
22495   grep -v '^ *+' conftest.er1 >conftest.err
22496   rm -f conftest.er1
22497   cat conftest.err >&5
22498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499   (exit $ac_status); } && {
22500          test -z "$ac_c_werror_flag" ||
22501          test ! -s conftest.err
22502        } && test -s conftest.$ac_objext; then
22503   ac_hi=-1 ac_mid=-1
22504   while :; do
22505     cat >conftest.$ac_ext <<_ACEOF
22506 /* confdefs.h.  */
22507 _ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h.  */
22511 $ac_includes_default
22512    typedef void * ac__type_sizeof_;
22513 int
22514 main ()
22515 {
22516 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22517 test_array [0] = 0
22518
22519   ;
22520   return 0;
22521 }
22522 _ACEOF
22523 rm -f conftest.$ac_objext
22524 if { (ac_try="$ac_compile"
22525 case "(($ac_try" in
22526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527   *) ac_try_echo=$ac_try;;
22528 esac
22529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22530   (eval "$ac_compile") 2>conftest.er1
22531   ac_status=$?
22532   grep -v '^ *+' conftest.er1 >conftest.err
22533   rm -f conftest.er1
22534   cat conftest.err >&5
22535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536   (exit $ac_status); } && {
22537          test -z "$ac_c_werror_flag" ||
22538          test ! -s conftest.err
22539        } && test -s conftest.$ac_objext; then
22540   ac_lo=$ac_mid; break
22541 else
22542   echo "$as_me: failed program was:" >&5
22543 sed 's/^/| /' conftest.$ac_ext >&5
22544
22545         ac_hi=`expr '(' $ac_mid ')' - 1`
22546                         if test $ac_mid -le $ac_hi; then
22547                           ac_lo= ac_hi=
22548                           break
22549                         fi
22550                         ac_mid=`expr 2 '*' $ac_mid`
22551 fi
22552
22553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22554   done
22555 else
22556   echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22558
22559         ac_lo= ac_hi=
22560 fi
22561
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22563 fi
22564
22565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22566 # Binary search between lo and hi bounds.
22567 while test "x$ac_lo" != "x$ac_hi"; do
22568   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22569   cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h.  */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h.  */
22575 $ac_includes_default
22576    typedef void * ac__type_sizeof_;
22577 int
22578 main ()
22579 {
22580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22581 test_array [0] = 0
22582
22583   ;
22584   return 0;
22585 }
22586 _ACEOF
22587 rm -f conftest.$ac_objext
22588 if { (ac_try="$ac_compile"
22589 case "(($ac_try" in
22590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591   *) ac_try_echo=$ac_try;;
22592 esac
22593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22594   (eval "$ac_compile") 2>conftest.er1
22595   ac_status=$?
22596   grep -v '^ *+' conftest.er1 >conftest.err
22597   rm -f conftest.er1
22598   cat conftest.err >&5
22599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600   (exit $ac_status); } && {
22601          test -z "$ac_c_werror_flag" ||
22602          test ! -s conftest.err
22603        } && test -s conftest.$ac_objext; then
22604   ac_hi=$ac_mid
22605 else
22606   echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22608
22609         ac_lo=`expr '(' $ac_mid ')' + 1`
22610 fi
22611
22612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22613 done
22614 case $ac_lo in
22615 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22616 '') if test "$ac_cv_type_void_p" = yes; then
22617      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22618 See \`config.log' for more details." >&5
22619 echo "$as_me: error: cannot compute sizeof (void *)
22620 See \`config.log' for more details." >&2;}
22621    { (exit 77); exit 77; }; }
22622    else
22623      ac_cv_sizeof_void_p=0
22624    fi ;;
22625 esac
22626 else
22627   cat >conftest.$ac_ext <<_ACEOF
22628 /* confdefs.h.  */
22629 _ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h.  */
22633 $ac_includes_default
22634    typedef void * ac__type_sizeof_;
22635 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22636 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22637 #include <stdio.h>
22638 #include <stdlib.h>
22639 int
22640 main ()
22641 {
22642
22643   FILE *f = fopen ("conftest.val", "w");
22644   if (! f)
22645     return 1;
22646   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22647     {
22648       long int i = longval ();
22649       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22650         return 1;
22651       fprintf (f, "%ld\n", i);
22652     }
22653   else
22654     {
22655       unsigned long int i = ulongval ();
22656       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22657         return 1;
22658       fprintf (f, "%lu\n", i);
22659     }
22660   return ferror (f) || fclose (f) != 0;
22661
22662   ;
22663   return 0;
22664 }
22665 _ACEOF
22666 rm -f conftest$ac_exeext
22667 if { (ac_try="$ac_link"
22668 case "(($ac_try" in
22669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22670   *) ac_try_echo=$ac_try;;
22671 esac
22672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22673   (eval "$ac_link") 2>&5
22674   ac_status=$?
22675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22677   { (case "(($ac_try" in
22678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22679   *) ac_try_echo=$ac_try;;
22680 esac
22681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22682   (eval "$ac_try") 2>&5
22683   ac_status=$?
22684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685   (exit $ac_status); }; }; then
22686   ac_cv_sizeof_void_p=`cat conftest.val`
22687 else
22688   echo "$as_me: program exited with status $ac_status" >&5
22689 echo "$as_me: failed program was:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22691
22692 ( exit $ac_status )
22693 if test "$ac_cv_type_void_p" = yes; then
22694      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22695 See \`config.log' for more details." >&5
22696 echo "$as_me: error: cannot compute sizeof (void *)
22697 See \`config.log' for more details." >&2;}
22698    { (exit 77); exit 77; }; }
22699    else
22700      ac_cv_sizeof_void_p=0
22701    fi
22702 fi
22703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22704 fi
22705 rm -f conftest.val
22706 fi
22707 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22708 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22709
22710
22711
22712 cat >>confdefs.h <<_ACEOF
22713 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22714 _ACEOF
22715
22716
22717 { echo "$as_me:$LINENO: checking for int" >&5
22718 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22719 if test "${ac_cv_type_int+set}" = set; then
22720   echo $ECHO_N "(cached) $ECHO_C" >&6
22721 else
22722   cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h.  */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h.  */
22728 $ac_includes_default
22729 typedef int ac__type_new_;
22730 int
22731 main ()
22732 {
22733 if ((ac__type_new_ *) 0)
22734   return 0;
22735 if (sizeof (ac__type_new_))
22736   return 0;
22737   ;
22738   return 0;
22739 }
22740 _ACEOF
22741 rm -f conftest.$ac_objext
22742 if { (ac_try="$ac_compile"
22743 case "(($ac_try" in
22744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745   *) ac_try_echo=$ac_try;;
22746 esac
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748   (eval "$ac_compile") 2>conftest.er1
22749   ac_status=$?
22750   grep -v '^ *+' conftest.er1 >conftest.err
22751   rm -f conftest.er1
22752   cat conftest.err >&5
22753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754   (exit $ac_status); } && {
22755          test -z "$ac_c_werror_flag" ||
22756          test ! -s conftest.err
22757        } && test -s conftest.$ac_objext; then
22758   ac_cv_type_int=yes
22759 else
22760   echo "$as_me: failed program was:" >&5
22761 sed 's/^/| /' conftest.$ac_ext >&5
22762
22763         ac_cv_type_int=no
22764 fi
22765
22766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22767 fi
22768 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22769 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22770
22771 # The cast to long int works around a bug in the HP C Compiler
22772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22774 # This bug is HP SR number 8606223364.
22775 { echo "$as_me:$LINENO: checking size of int" >&5
22776 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22777 if test "${ac_cv_sizeof_int+set}" = set; then
22778   echo $ECHO_N "(cached) $ECHO_C" >&6
22779 else
22780   if test "$cross_compiling" = yes; then
22781   # Depending upon the size, compute the lo and hi bounds.
22782 cat >conftest.$ac_ext <<_ACEOF
22783 /* confdefs.h.  */
22784 _ACEOF
22785 cat confdefs.h >>conftest.$ac_ext
22786 cat >>conftest.$ac_ext <<_ACEOF
22787 /* end confdefs.h.  */
22788 $ac_includes_default
22789    typedef int ac__type_sizeof_;
22790 int
22791 main ()
22792 {
22793 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22794 test_array [0] = 0
22795
22796   ;
22797   return 0;
22798 }
22799 _ACEOF
22800 rm -f conftest.$ac_objext
22801 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22808   ac_status=$?
22809   grep -v '^ *+' conftest.er1 >conftest.err
22810   rm -f conftest.er1
22811   cat conftest.err >&5
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); } && {
22814          test -z "$ac_c_werror_flag" ||
22815          test ! -s conftest.err
22816        } && test -s conftest.$ac_objext; then
22817   ac_lo=0 ac_mid=0
22818   while :; do
22819     cat >conftest.$ac_ext <<_ACEOF
22820 /* confdefs.h.  */
22821 _ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h.  */
22825 $ac_includes_default
22826    typedef int ac__type_sizeof_;
22827 int
22828 main ()
22829 {
22830 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22831 test_array [0] = 0
22832
22833   ;
22834   return 0;
22835 }
22836 _ACEOF
22837 rm -f conftest.$ac_objext
22838 if { (ac_try="$ac_compile"
22839 case "(($ac_try" in
22840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841   *) ac_try_echo=$ac_try;;
22842 esac
22843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22844   (eval "$ac_compile") 2>conftest.er1
22845   ac_status=$?
22846   grep -v '^ *+' conftest.er1 >conftest.err
22847   rm -f conftest.er1
22848   cat conftest.err >&5
22849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850   (exit $ac_status); } && {
22851          test -z "$ac_c_werror_flag" ||
22852          test ! -s conftest.err
22853        } && test -s conftest.$ac_objext; then
22854   ac_hi=$ac_mid; break
22855 else
22856   echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22858
22859         ac_lo=`expr $ac_mid + 1`
22860                         if test $ac_lo -le $ac_mid; then
22861                           ac_lo= ac_hi=
22862                           break
22863                         fi
22864                         ac_mid=`expr 2 '*' $ac_mid + 1`
22865 fi
22866
22867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868   done
22869 else
22870   echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22872
22873         cat >conftest.$ac_ext <<_ACEOF
22874 /* confdefs.h.  */
22875 _ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h.  */
22879 $ac_includes_default
22880    typedef int ac__type_sizeof_;
22881 int
22882 main ()
22883 {
22884 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22885 test_array [0] = 0
22886
22887   ;
22888   return 0;
22889 }
22890 _ACEOF
22891 rm -f conftest.$ac_objext
22892 if { (ac_try="$ac_compile"
22893 case "(($ac_try" in
22894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22895   *) ac_try_echo=$ac_try;;
22896 esac
22897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22898   (eval "$ac_compile") 2>conftest.er1
22899   ac_status=$?
22900   grep -v '^ *+' conftest.er1 >conftest.err
22901   rm -f conftest.er1
22902   cat conftest.err >&5
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); } && {
22905          test -z "$ac_c_werror_flag" ||
22906          test ! -s conftest.err
22907        } && test -s conftest.$ac_objext; then
22908   ac_hi=-1 ac_mid=-1
22909   while :; do
22910     cat >conftest.$ac_ext <<_ACEOF
22911 /* confdefs.h.  */
22912 _ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h.  */
22916 $ac_includes_default
22917    typedef int ac__type_sizeof_;
22918 int
22919 main ()
22920 {
22921 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22922 test_array [0] = 0
22923
22924   ;
22925   return 0;
22926 }
22927 _ACEOF
22928 rm -f conftest.$ac_objext
22929 if { (ac_try="$ac_compile"
22930 case "(($ac_try" in
22931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22932   *) ac_try_echo=$ac_try;;
22933 esac
22934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22935   (eval "$ac_compile") 2>conftest.er1
22936   ac_status=$?
22937   grep -v '^ *+' conftest.er1 >conftest.err
22938   rm -f conftest.er1
22939   cat conftest.err >&5
22940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941   (exit $ac_status); } && {
22942          test -z "$ac_c_werror_flag" ||
22943          test ! -s conftest.err
22944        } && test -s conftest.$ac_objext; then
22945   ac_lo=$ac_mid; break
22946 else
22947   echo "$as_me: failed program was:" >&5
22948 sed 's/^/| /' conftest.$ac_ext >&5
22949
22950         ac_hi=`expr '(' $ac_mid ')' - 1`
22951                         if test $ac_mid -le $ac_hi; then
22952                           ac_lo= ac_hi=
22953                           break
22954                         fi
22955                         ac_mid=`expr 2 '*' $ac_mid`
22956 fi
22957
22958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22959   done
22960 else
22961   echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22963
22964         ac_lo= ac_hi=
22965 fi
22966
22967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22968 fi
22969
22970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22971 # Binary search between lo and hi bounds.
22972 while test "x$ac_lo" != "x$ac_hi"; do
22973   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22974   cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h.  */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h.  */
22980 $ac_includes_default
22981    typedef int ac__type_sizeof_;
22982 int
22983 main ()
22984 {
22985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22986 test_array [0] = 0
22987
22988   ;
22989   return 0;
22990 }
22991 _ACEOF
22992 rm -f conftest.$ac_objext
22993 if { (ac_try="$ac_compile"
22994 case "(($ac_try" in
22995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996   *) ac_try_echo=$ac_try;;
22997 esac
22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22999   (eval "$ac_compile") 2>conftest.er1
23000   ac_status=$?
23001   grep -v '^ *+' conftest.er1 >conftest.err
23002   rm -f conftest.er1
23003   cat conftest.err >&5
23004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005   (exit $ac_status); } && {
23006          test -z "$ac_c_werror_flag" ||
23007          test ! -s conftest.err
23008        } && test -s conftest.$ac_objext; then
23009   ac_hi=$ac_mid
23010 else
23011   echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23013
23014         ac_lo=`expr '(' $ac_mid ')' + 1`
23015 fi
23016
23017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23018 done
23019 case $ac_lo in
23020 ?*) ac_cv_sizeof_int=$ac_lo;;
23021 '') if test "$ac_cv_type_int" = yes; then
23022      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23023 See \`config.log' for more details." >&5
23024 echo "$as_me: error: cannot compute sizeof (int)
23025 See \`config.log' for more details." >&2;}
23026    { (exit 77); exit 77; }; }
23027    else
23028      ac_cv_sizeof_int=0
23029    fi ;;
23030 esac
23031 else
23032   cat >conftest.$ac_ext <<_ACEOF
23033 /* confdefs.h.  */
23034 _ACEOF
23035 cat confdefs.h >>conftest.$ac_ext
23036 cat >>conftest.$ac_ext <<_ACEOF
23037 /* end confdefs.h.  */
23038 $ac_includes_default
23039    typedef int ac__type_sizeof_;
23040 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23041 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23042 #include <stdio.h>
23043 #include <stdlib.h>
23044 int
23045 main ()
23046 {
23047
23048   FILE *f = fopen ("conftest.val", "w");
23049   if (! f)
23050     return 1;
23051   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23052     {
23053       long int i = longval ();
23054       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23055         return 1;
23056       fprintf (f, "%ld\n", i);
23057     }
23058   else
23059     {
23060       unsigned long int i = ulongval ();
23061       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23062         return 1;
23063       fprintf (f, "%lu\n", i);
23064     }
23065   return ferror (f) || fclose (f) != 0;
23066
23067   ;
23068   return 0;
23069 }
23070 _ACEOF
23071 rm -f conftest$ac_exeext
23072 if { (ac_try="$ac_link"
23073 case "(($ac_try" in
23074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075   *) ac_try_echo=$ac_try;;
23076 esac
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078   (eval "$ac_link") 2>&5
23079   ac_status=$?
23080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23082   { (case "(($ac_try" in
23083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23084   *) ac_try_echo=$ac_try;;
23085 esac
23086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23087   (eval "$ac_try") 2>&5
23088   ac_status=$?
23089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090   (exit $ac_status); }; }; then
23091   ac_cv_sizeof_int=`cat conftest.val`
23092 else
23093   echo "$as_me: program exited with status $ac_status" >&5
23094 echo "$as_me: failed program was:" >&5
23095 sed 's/^/| /' conftest.$ac_ext >&5
23096
23097 ( exit $ac_status )
23098 if test "$ac_cv_type_int" = yes; then
23099      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23100 See \`config.log' for more details." >&5
23101 echo "$as_me: error: cannot compute sizeof (int)
23102 See \`config.log' for more details." >&2;}
23103    { (exit 77); exit 77; }; }
23104    else
23105      ac_cv_sizeof_int=0
23106    fi
23107 fi
23108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23109 fi
23110 rm -f conftest.val
23111 fi
23112 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23113 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23114
23115
23116
23117 cat >>confdefs.h <<_ACEOF
23118 #define SIZEOF_INT $ac_cv_sizeof_int
23119 _ACEOF
23120
23121
23122 { echo "$as_me:$LINENO: checking for long" >&5
23123 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23124 if test "${ac_cv_type_long+set}" = set; then
23125   echo $ECHO_N "(cached) $ECHO_C" >&6
23126 else
23127   cat >conftest.$ac_ext <<_ACEOF
23128 /* confdefs.h.  */
23129 _ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h.  */
23133 $ac_includes_default
23134 typedef long ac__type_new_;
23135 int
23136 main ()
23137 {
23138 if ((ac__type_new_ *) 0)
23139   return 0;
23140 if (sizeof (ac__type_new_))
23141   return 0;
23142   ;
23143   return 0;
23144 }
23145 _ACEOF
23146 rm -f conftest.$ac_objext
23147 if { (ac_try="$ac_compile"
23148 case "(($ac_try" in
23149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150   *) ac_try_echo=$ac_try;;
23151 esac
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153   (eval "$ac_compile") 2>conftest.er1
23154   ac_status=$?
23155   grep -v '^ *+' conftest.er1 >conftest.err
23156   rm -f conftest.er1
23157   cat conftest.err >&5
23158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159   (exit $ac_status); } && {
23160          test -z "$ac_c_werror_flag" ||
23161          test ! -s conftest.err
23162        } && test -s conftest.$ac_objext; then
23163   ac_cv_type_long=yes
23164 else
23165   echo "$as_me: failed program was:" >&5
23166 sed 's/^/| /' conftest.$ac_ext >&5
23167
23168         ac_cv_type_long=no
23169 fi
23170
23171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23172 fi
23173 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23174 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23175
23176 # The cast to long int works around a bug in the HP C Compiler
23177 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23178 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23179 # This bug is HP SR number 8606223364.
23180 { echo "$as_me:$LINENO: checking size of long" >&5
23181 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
23182 if test "${ac_cv_sizeof_long+set}" = set; then
23183   echo $ECHO_N "(cached) $ECHO_C" >&6
23184 else
23185   if test "$cross_compiling" = yes; then
23186   # Depending upon the size, compute the lo and hi bounds.
23187 cat >conftest.$ac_ext <<_ACEOF
23188 /* confdefs.h.  */
23189 _ACEOF
23190 cat confdefs.h >>conftest.$ac_ext
23191 cat >>conftest.$ac_ext <<_ACEOF
23192 /* end confdefs.h.  */
23193 $ac_includes_default
23194    typedef long ac__type_sizeof_;
23195 int
23196 main ()
23197 {
23198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23199 test_array [0] = 0
23200
23201   ;
23202   return 0;
23203 }
23204 _ACEOF
23205 rm -f conftest.$ac_objext
23206 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23213   ac_status=$?
23214   grep -v '^ *+' conftest.er1 >conftest.err
23215   rm -f conftest.er1
23216   cat conftest.err >&5
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); } && {
23219          test -z "$ac_c_werror_flag" ||
23220          test ! -s conftest.err
23221        } && test -s conftest.$ac_objext; then
23222   ac_lo=0 ac_mid=0
23223   while :; do
23224     cat >conftest.$ac_ext <<_ACEOF
23225 /* confdefs.h.  */
23226 _ACEOF
23227 cat confdefs.h >>conftest.$ac_ext
23228 cat >>conftest.$ac_ext <<_ACEOF
23229 /* end confdefs.h.  */
23230 $ac_includes_default
23231    typedef long ac__type_sizeof_;
23232 int
23233 main ()
23234 {
23235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23236 test_array [0] = 0
23237
23238   ;
23239   return 0;
23240 }
23241 _ACEOF
23242 rm -f conftest.$ac_objext
23243 if { (ac_try="$ac_compile"
23244 case "(($ac_try" in
23245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23246   *) ac_try_echo=$ac_try;;
23247 esac
23248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23249   (eval "$ac_compile") 2>conftest.er1
23250   ac_status=$?
23251   grep -v '^ *+' conftest.er1 >conftest.err
23252   rm -f conftest.er1
23253   cat conftest.err >&5
23254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255   (exit $ac_status); } && {
23256          test -z "$ac_c_werror_flag" ||
23257          test ! -s conftest.err
23258        } && test -s conftest.$ac_objext; then
23259   ac_hi=$ac_mid; break
23260 else
23261   echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23263
23264         ac_lo=`expr $ac_mid + 1`
23265                         if test $ac_lo -le $ac_mid; then
23266                           ac_lo= ac_hi=
23267                           break
23268                         fi
23269                         ac_mid=`expr 2 '*' $ac_mid + 1`
23270 fi
23271
23272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273   done
23274 else
23275   echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.$ac_ext >&5
23277
23278         cat >conftest.$ac_ext <<_ACEOF
23279 /* confdefs.h.  */
23280 _ACEOF
23281 cat confdefs.h >>conftest.$ac_ext
23282 cat >>conftest.$ac_ext <<_ACEOF
23283 /* end confdefs.h.  */
23284 $ac_includes_default
23285    typedef long ac__type_sizeof_;
23286 int
23287 main ()
23288 {
23289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23290 test_array [0] = 0
23291
23292   ;
23293   return 0;
23294 }
23295 _ACEOF
23296 rm -f conftest.$ac_objext
23297 if { (ac_try="$ac_compile"
23298 case "(($ac_try" in
23299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300   *) ac_try_echo=$ac_try;;
23301 esac
23302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23303   (eval "$ac_compile") 2>conftest.er1
23304   ac_status=$?
23305   grep -v '^ *+' conftest.er1 >conftest.err
23306   rm -f conftest.er1
23307   cat conftest.err >&5
23308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309   (exit $ac_status); } && {
23310          test -z "$ac_c_werror_flag" ||
23311          test ! -s conftest.err
23312        } && test -s conftest.$ac_objext; then
23313   ac_hi=-1 ac_mid=-1
23314   while :; do
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 ac__type_sizeof_;
23323 int
23324 main ()
23325 {
23326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
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=$ac_mid; break
23351 else
23352   echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23354
23355         ac_hi=`expr '(' $ac_mid ')' - 1`
23356                         if test $ac_mid -le $ac_hi; then
23357                           ac_lo= ac_hi=
23358                           break
23359                         fi
23360                         ac_mid=`expr 2 '*' $ac_mid`
23361 fi
23362
23363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23364   done
23365 else
23366   echo "$as_me: failed program was:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23368
23369         ac_lo= ac_hi=
23370 fi
23371
23372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23373 fi
23374
23375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23376 # Binary search between lo and hi bounds.
23377 while test "x$ac_lo" != "x$ac_hi"; do
23378   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23379   cat >conftest.$ac_ext <<_ACEOF
23380 /* confdefs.h.  */
23381 _ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h.  */
23385 $ac_includes_default
23386    typedef long ac__type_sizeof_;
23387 int
23388 main ()
23389 {
23390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23391 test_array [0] = 0
23392
23393   ;
23394   return 0;
23395 }
23396 _ACEOF
23397 rm -f conftest.$ac_objext
23398 if { (ac_try="$ac_compile"
23399 case "(($ac_try" in
23400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23401   *) ac_try_echo=$ac_try;;
23402 esac
23403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23404   (eval "$ac_compile") 2>conftest.er1
23405   ac_status=$?
23406   grep -v '^ *+' conftest.er1 >conftest.err
23407   rm -f conftest.er1
23408   cat conftest.err >&5
23409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410   (exit $ac_status); } && {
23411          test -z "$ac_c_werror_flag" ||
23412          test ! -s conftest.err
23413        } && test -s conftest.$ac_objext; then
23414   ac_hi=$ac_mid
23415 else
23416   echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23418
23419         ac_lo=`expr '(' $ac_mid ')' + 1`
23420 fi
23421
23422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23423 done
23424 case $ac_lo in
23425 ?*) ac_cv_sizeof_long=$ac_lo;;
23426 '') if test "$ac_cv_type_long" = yes; then
23427      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23428 See \`config.log' for more details." >&5
23429 echo "$as_me: error: cannot compute sizeof (long)
23430 See \`config.log' for more details." >&2;}
23431    { (exit 77); exit 77; }; }
23432    else
23433      ac_cv_sizeof_long=0
23434    fi ;;
23435 esac
23436 else
23437   cat >conftest.$ac_ext <<_ACEOF
23438 /* confdefs.h.  */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h.  */
23443 $ac_includes_default
23444    typedef long ac__type_sizeof_;
23445 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23446 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23447 #include <stdio.h>
23448 #include <stdlib.h>
23449 int
23450 main ()
23451 {
23452
23453   FILE *f = fopen ("conftest.val", "w");
23454   if (! f)
23455     return 1;
23456   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23457     {
23458       long int i = longval ();
23459       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23460         return 1;
23461       fprintf (f, "%ld\n", i);
23462     }
23463   else
23464     {
23465       unsigned long int i = ulongval ();
23466       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23467         return 1;
23468       fprintf (f, "%lu\n", i);
23469     }
23470   return ferror (f) || fclose (f) != 0;
23471
23472   ;
23473   return 0;
23474 }
23475 _ACEOF
23476 rm -f conftest$ac_exeext
23477 if { (ac_try="$ac_link"
23478 case "(($ac_try" in
23479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23480   *) ac_try_echo=$ac_try;;
23481 esac
23482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23483   (eval "$ac_link") 2>&5
23484   ac_status=$?
23485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23487   { (case "(($ac_try" in
23488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23489   *) ac_try_echo=$ac_try;;
23490 esac
23491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23492   (eval "$ac_try") 2>&5
23493   ac_status=$?
23494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495   (exit $ac_status); }; }; then
23496   ac_cv_sizeof_long=`cat conftest.val`
23497 else
23498   echo "$as_me: program exited with status $ac_status" >&5
23499 echo "$as_me: failed program was:" >&5
23500 sed 's/^/| /' conftest.$ac_ext >&5
23501
23502 ( exit $ac_status )
23503 if test "$ac_cv_type_long" = yes; then
23504      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23505 See \`config.log' for more details." >&5
23506 echo "$as_me: error: cannot compute sizeof (long)
23507 See \`config.log' for more details." >&2;}
23508    { (exit 77); exit 77; }; }
23509    else
23510      ac_cv_sizeof_long=0
23511    fi
23512 fi
23513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23514 fi
23515 rm -f conftest.val
23516 fi
23517 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23518 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23519
23520
23521
23522 cat >>confdefs.h <<_ACEOF
23523 #define SIZEOF_LONG $ac_cv_sizeof_long
23524 _ACEOF
23525
23526
23527 { echo "$as_me:$LINENO: checking for size_t" >&5
23528 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23529 if test "${ac_cv_type_size_t+set}" = set; then
23530   echo $ECHO_N "(cached) $ECHO_C" >&6
23531 else
23532   cat >conftest.$ac_ext <<_ACEOF
23533 /* confdefs.h.  */
23534 _ACEOF
23535 cat confdefs.h >>conftest.$ac_ext
23536 cat >>conftest.$ac_ext <<_ACEOF
23537 /* end confdefs.h.  */
23538 $ac_includes_default
23539 typedef size_t ac__type_new_;
23540 int
23541 main ()
23542 {
23543 if ((ac__type_new_ *) 0)
23544   return 0;
23545 if (sizeof (ac__type_new_))
23546   return 0;
23547   ;
23548   return 0;
23549 }
23550 _ACEOF
23551 rm -f conftest.$ac_objext
23552 if { (ac_try="$ac_compile"
23553 case "(($ac_try" in
23554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23555   *) ac_try_echo=$ac_try;;
23556 esac
23557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23558   (eval "$ac_compile") 2>conftest.er1
23559   ac_status=$?
23560   grep -v '^ *+' conftest.er1 >conftest.err
23561   rm -f conftest.er1
23562   cat conftest.err >&5
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); } && {
23565          test -z "$ac_c_werror_flag" ||
23566          test ! -s conftest.err
23567        } && test -s conftest.$ac_objext; then
23568   ac_cv_type_size_t=yes
23569 else
23570   echo "$as_me: failed program was:" >&5
23571 sed 's/^/| /' conftest.$ac_ext >&5
23572
23573         ac_cv_type_size_t=no
23574 fi
23575
23576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23577 fi
23578 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23579 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23580
23581 # The cast to long int works around a bug in the HP C Compiler
23582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23584 # This bug is HP SR number 8606223364.
23585 { echo "$as_me:$LINENO: checking size of size_t" >&5
23586 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
23587 if test "${ac_cv_sizeof_size_t+set}" = set; then
23588   echo $ECHO_N "(cached) $ECHO_C" >&6
23589 else
23590   if test "$cross_compiling" = yes; then
23591   # Depending upon the size, compute the lo and hi bounds.
23592 cat >conftest.$ac_ext <<_ACEOF
23593 /* confdefs.h.  */
23594 _ACEOF
23595 cat confdefs.h >>conftest.$ac_ext
23596 cat >>conftest.$ac_ext <<_ACEOF
23597 /* end confdefs.h.  */
23598 $ac_includes_default
23599    typedef size_t ac__type_sizeof_;
23600 int
23601 main ()
23602 {
23603 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23604 test_array [0] = 0
23605
23606   ;
23607   return 0;
23608 }
23609 _ACEOF
23610 rm -f conftest.$ac_objext
23611 if { (ac_try="$ac_compile"
23612 case "(($ac_try" in
23613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614   *) ac_try_echo=$ac_try;;
23615 esac
23616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23617   (eval "$ac_compile") 2>conftest.er1
23618   ac_status=$?
23619   grep -v '^ *+' conftest.er1 >conftest.err
23620   rm -f conftest.er1
23621   cat conftest.err >&5
23622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623   (exit $ac_status); } && {
23624          test -z "$ac_c_werror_flag" ||
23625          test ! -s conftest.err
23626        } && test -s conftest.$ac_objext; then
23627   ac_lo=0 ac_mid=0
23628   while :; do
23629     cat >conftest.$ac_ext <<_ACEOF
23630 /* confdefs.h.  */
23631 _ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h.  */
23635 $ac_includes_default
23636    typedef size_t ac__type_sizeof_;
23637 int
23638 main ()
23639 {
23640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23641 test_array [0] = 0
23642
23643   ;
23644   return 0;
23645 }
23646 _ACEOF
23647 rm -f conftest.$ac_objext
23648 if { (ac_try="$ac_compile"
23649 case "(($ac_try" in
23650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651   *) ac_try_echo=$ac_try;;
23652 esac
23653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23654   (eval "$ac_compile") 2>conftest.er1
23655   ac_status=$?
23656   grep -v '^ *+' conftest.er1 >conftest.err
23657   rm -f conftest.er1
23658   cat conftest.err >&5
23659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660   (exit $ac_status); } && {
23661          test -z "$ac_c_werror_flag" ||
23662          test ! -s conftest.err
23663        } && test -s conftest.$ac_objext; then
23664   ac_hi=$ac_mid; break
23665 else
23666   echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23668
23669         ac_lo=`expr $ac_mid + 1`
23670                         if test $ac_lo -le $ac_mid; then
23671                           ac_lo= ac_hi=
23672                           break
23673                         fi
23674                         ac_mid=`expr 2 '*' $ac_mid + 1`
23675 fi
23676
23677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23678   done
23679 else
23680   echo "$as_me: failed program was:" >&5
23681 sed 's/^/| /' conftest.$ac_ext >&5
23682
23683         cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h.  */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h.  */
23689 $ac_includes_default
23690    typedef size_t ac__type_sizeof_;
23691 int
23692 main ()
23693 {
23694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23695 test_array [0] = 0
23696
23697   ;
23698   return 0;
23699 }
23700 _ACEOF
23701 rm -f conftest.$ac_objext
23702 if { (ac_try="$ac_compile"
23703 case "(($ac_try" in
23704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23705   *) ac_try_echo=$ac_try;;
23706 esac
23707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23708   (eval "$ac_compile") 2>conftest.er1
23709   ac_status=$?
23710   grep -v '^ *+' conftest.er1 >conftest.err
23711   rm -f conftest.er1
23712   cat conftest.err >&5
23713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714   (exit $ac_status); } && {
23715          test -z "$ac_c_werror_flag" ||
23716          test ! -s conftest.err
23717        } && test -s conftest.$ac_objext; then
23718   ac_hi=-1 ac_mid=-1
23719   while :; do
23720     cat >conftest.$ac_ext <<_ACEOF
23721 /* confdefs.h.  */
23722 _ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h.  */
23726 $ac_includes_default
23727    typedef size_t ac__type_sizeof_;
23728 int
23729 main ()
23730 {
23731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23732 test_array [0] = 0
23733
23734   ;
23735   return 0;
23736 }
23737 _ACEOF
23738 rm -f conftest.$ac_objext
23739 if { (ac_try="$ac_compile"
23740 case "(($ac_try" in
23741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23742   *) ac_try_echo=$ac_try;;
23743 esac
23744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23745   (eval "$ac_compile") 2>conftest.er1
23746   ac_status=$?
23747   grep -v '^ *+' conftest.er1 >conftest.err
23748   rm -f conftest.er1
23749   cat conftest.err >&5
23750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751   (exit $ac_status); } && {
23752          test -z "$ac_c_werror_flag" ||
23753          test ! -s conftest.err
23754        } && test -s conftest.$ac_objext; then
23755   ac_lo=$ac_mid; break
23756 else
23757   echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23759
23760         ac_hi=`expr '(' $ac_mid ')' - 1`
23761                         if test $ac_mid -le $ac_hi; then
23762                           ac_lo= ac_hi=
23763                           break
23764                         fi
23765                         ac_mid=`expr 2 '*' $ac_mid`
23766 fi
23767
23768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23769   done
23770 else
23771   echo "$as_me: failed program was:" >&5
23772 sed 's/^/| /' conftest.$ac_ext >&5
23773
23774         ac_lo= ac_hi=
23775 fi
23776
23777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23778 fi
23779
23780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23781 # Binary search between lo and hi bounds.
23782 while test "x$ac_lo" != "x$ac_hi"; do
23783   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23784   cat >conftest.$ac_ext <<_ACEOF
23785 /* confdefs.h.  */
23786 _ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h.  */
23790 $ac_includes_default
23791    typedef size_t ac__type_sizeof_;
23792 int
23793 main ()
23794 {
23795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23796 test_array [0] = 0
23797
23798   ;
23799   return 0;
23800 }
23801 _ACEOF
23802 rm -f conftest.$ac_objext
23803 if { (ac_try="$ac_compile"
23804 case "(($ac_try" in
23805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806   *) ac_try_echo=$ac_try;;
23807 esac
23808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23809   (eval "$ac_compile") 2>conftest.er1
23810   ac_status=$?
23811   grep -v '^ *+' conftest.er1 >conftest.err
23812   rm -f conftest.er1
23813   cat conftest.err >&5
23814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815   (exit $ac_status); } && {
23816          test -z "$ac_c_werror_flag" ||
23817          test ! -s conftest.err
23818        } && test -s conftest.$ac_objext; then
23819   ac_hi=$ac_mid
23820 else
23821   echo "$as_me: failed program was:" >&5
23822 sed 's/^/| /' conftest.$ac_ext >&5
23823
23824         ac_lo=`expr '(' $ac_mid ')' + 1`
23825 fi
23826
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23828 done
23829 case $ac_lo in
23830 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23831 '') if test "$ac_cv_type_size_t" = yes; then
23832      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23833 See \`config.log' for more details." >&5
23834 echo "$as_me: error: cannot compute sizeof (size_t)
23835 See \`config.log' for more details." >&2;}
23836    { (exit 77); exit 77; }; }
23837    else
23838      ac_cv_sizeof_size_t=0
23839    fi ;;
23840 esac
23841 else
23842   cat >conftest.$ac_ext <<_ACEOF
23843 /* confdefs.h.  */
23844 _ACEOF
23845 cat confdefs.h >>conftest.$ac_ext
23846 cat >>conftest.$ac_ext <<_ACEOF
23847 /* end confdefs.h.  */
23848 $ac_includes_default
23849    typedef size_t ac__type_sizeof_;
23850 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23851 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23852 #include <stdio.h>
23853 #include <stdlib.h>
23854 int
23855 main ()
23856 {
23857
23858   FILE *f = fopen ("conftest.val", "w");
23859   if (! f)
23860     return 1;
23861   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23862     {
23863       long int i = longval ();
23864       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23865         return 1;
23866       fprintf (f, "%ld\n", i);
23867     }
23868   else
23869     {
23870       unsigned long int i = ulongval ();
23871       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23872         return 1;
23873       fprintf (f, "%lu\n", i);
23874     }
23875   return ferror (f) || fclose (f) != 0;
23876
23877   ;
23878   return 0;
23879 }
23880 _ACEOF
23881 rm -f conftest$ac_exeext
23882 if { (ac_try="$ac_link"
23883 case "(($ac_try" in
23884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885   *) ac_try_echo=$ac_try;;
23886 esac
23887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23888   (eval "$ac_link") 2>&5
23889   ac_status=$?
23890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23892   { (case "(($ac_try" in
23893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23894   *) ac_try_echo=$ac_try;;
23895 esac
23896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23897   (eval "$ac_try") 2>&5
23898   ac_status=$?
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); }; }; then
23901   ac_cv_sizeof_size_t=`cat conftest.val`
23902 else
23903   echo "$as_me: program exited with status $ac_status" >&5
23904 echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23906
23907 ( exit $ac_status )
23908 if test "$ac_cv_type_size_t" = yes; then
23909      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23910 See \`config.log' for more details." >&5
23911 echo "$as_me: error: cannot compute sizeof (size_t)
23912 See \`config.log' for more details." >&2;}
23913    { (exit 77); exit 77; }; }
23914    else
23915      ac_cv_sizeof_size_t=0
23916    fi
23917 fi
23918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23919 fi
23920 rm -f conftest.val
23921 fi
23922 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23923 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
23924
23925
23926
23927 cat >>confdefs.h <<_ACEOF
23928 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23929 _ACEOF
23930
23931
23932
23933 case "${host}" in
23934     arm-*-linux* )
23935         { echo "$as_me:$LINENO: checking for long long" >&5
23936 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23937 if test "${ac_cv_type_long_long+set}" = set; then
23938   echo $ECHO_N "(cached) $ECHO_C" >&6
23939 else
23940   cat >conftest.$ac_ext <<_ACEOF
23941 /* confdefs.h.  */
23942 _ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h.  */
23946 $ac_includes_default
23947 typedef long long ac__type_new_;
23948 int
23949 main ()
23950 {
23951 if ((ac__type_new_ *) 0)
23952   return 0;
23953 if (sizeof (ac__type_new_))
23954   return 0;
23955   ;
23956   return 0;
23957 }
23958 _ACEOF
23959 rm -f conftest.$ac_objext
23960 if { (ac_try="$ac_compile"
23961 case "(($ac_try" in
23962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23963   *) ac_try_echo=$ac_try;;
23964 esac
23965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23966   (eval "$ac_compile") 2>conftest.er1
23967   ac_status=$?
23968   grep -v '^ *+' conftest.er1 >conftest.err
23969   rm -f conftest.er1
23970   cat conftest.err >&5
23971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972   (exit $ac_status); } && {
23973          test -z "$ac_c_werror_flag" ||
23974          test ! -s conftest.err
23975        } && test -s conftest.$ac_objext; then
23976   ac_cv_type_long_long=yes
23977 else
23978   echo "$as_me: failed program was:" >&5
23979 sed 's/^/| /' conftest.$ac_ext >&5
23980
23981         ac_cv_type_long_long=no
23982 fi
23983
23984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23985 fi
23986 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23987 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23988
23989 # The cast to long int works around a bug in the HP C Compiler
23990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23992 # This bug is HP SR number 8606223364.
23993 { echo "$as_me:$LINENO: checking size of long long" >&5
23994 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23995 if test "${ac_cv_sizeof_long_long+set}" = set; then
23996   echo $ECHO_N "(cached) $ECHO_C" >&6
23997 else
23998   if test "$cross_compiling" = yes; then
23999   # Depending upon the size, compute the lo and hi bounds.
24000 cat >conftest.$ac_ext <<_ACEOF
24001 /* confdefs.h.  */
24002 _ACEOF
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h.  */
24006 $ac_includes_default
24007    typedef long long ac__type_sizeof_;
24008 int
24009 main ()
24010 {
24011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24012 test_array [0] = 0
24013
24014   ;
24015   return 0;
24016 }
24017 _ACEOF
24018 rm -f conftest.$ac_objext
24019 if { (ac_try="$ac_compile"
24020 case "(($ac_try" in
24021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24022   *) ac_try_echo=$ac_try;;
24023 esac
24024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24025   (eval "$ac_compile") 2>conftest.er1
24026   ac_status=$?
24027   grep -v '^ *+' conftest.er1 >conftest.err
24028   rm -f conftest.er1
24029   cat conftest.err >&5
24030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031   (exit $ac_status); } && {
24032          test -z "$ac_c_werror_flag" ||
24033          test ! -s conftest.err
24034        } && test -s conftest.$ac_objext; then
24035   ac_lo=0 ac_mid=0
24036   while :; do
24037     cat >conftest.$ac_ext <<_ACEOF
24038 /* confdefs.h.  */
24039 _ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h.  */
24043 $ac_includes_default
24044    typedef long long ac__type_sizeof_;
24045 int
24046 main ()
24047 {
24048 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24049 test_array [0] = 0
24050
24051   ;
24052   return 0;
24053 }
24054 _ACEOF
24055 rm -f conftest.$ac_objext
24056 if { (ac_try="$ac_compile"
24057 case "(($ac_try" in
24058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24059   *) ac_try_echo=$ac_try;;
24060 esac
24061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24062   (eval "$ac_compile") 2>conftest.er1
24063   ac_status=$?
24064   grep -v '^ *+' conftest.er1 >conftest.err
24065   rm -f conftest.er1
24066   cat conftest.err >&5
24067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24068   (exit $ac_status); } && {
24069          test -z "$ac_c_werror_flag" ||
24070          test ! -s conftest.err
24071        } && test -s conftest.$ac_objext; then
24072   ac_hi=$ac_mid; break
24073 else
24074   echo "$as_me: failed program was:" >&5
24075 sed 's/^/| /' conftest.$ac_ext >&5
24076
24077         ac_lo=`expr $ac_mid + 1`
24078                         if test $ac_lo -le $ac_mid; then
24079                           ac_lo= ac_hi=
24080                           break
24081                         fi
24082                         ac_mid=`expr 2 '*' $ac_mid + 1`
24083 fi
24084
24085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24086   done
24087 else
24088   echo "$as_me: failed program was:" >&5
24089 sed 's/^/| /' conftest.$ac_ext >&5
24090
24091         cat >conftest.$ac_ext <<_ACEOF
24092 /* confdefs.h.  */
24093 _ACEOF
24094 cat confdefs.h >>conftest.$ac_ext
24095 cat >>conftest.$ac_ext <<_ACEOF
24096 /* end confdefs.h.  */
24097 $ac_includes_default
24098    typedef long long ac__type_sizeof_;
24099 int
24100 main ()
24101 {
24102 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24103 test_array [0] = 0
24104
24105   ;
24106   return 0;
24107 }
24108 _ACEOF
24109 rm -f conftest.$ac_objext
24110 if { (ac_try="$ac_compile"
24111 case "(($ac_try" in
24112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24113   *) ac_try_echo=$ac_try;;
24114 esac
24115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24116   (eval "$ac_compile") 2>conftest.er1
24117   ac_status=$?
24118   grep -v '^ *+' conftest.er1 >conftest.err
24119   rm -f conftest.er1
24120   cat conftest.err >&5
24121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122   (exit $ac_status); } && {
24123          test -z "$ac_c_werror_flag" ||
24124          test ! -s conftest.err
24125        } && test -s conftest.$ac_objext; then
24126   ac_hi=-1 ac_mid=-1
24127   while :; do
24128     cat >conftest.$ac_ext <<_ACEOF
24129 /* confdefs.h.  */
24130 _ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h.  */
24134 $ac_includes_default
24135    typedef long long ac__type_sizeof_;
24136 int
24137 main ()
24138 {
24139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24140 test_array [0] = 0
24141
24142   ;
24143   return 0;
24144 }
24145 _ACEOF
24146 rm -f conftest.$ac_objext
24147 if { (ac_try="$ac_compile"
24148 case "(($ac_try" in
24149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24150   *) ac_try_echo=$ac_try;;
24151 esac
24152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24153   (eval "$ac_compile") 2>conftest.er1
24154   ac_status=$?
24155   grep -v '^ *+' conftest.er1 >conftest.err
24156   rm -f conftest.er1
24157   cat conftest.err >&5
24158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159   (exit $ac_status); } && {
24160          test -z "$ac_c_werror_flag" ||
24161          test ! -s conftest.err
24162        } && test -s conftest.$ac_objext; then
24163   ac_lo=$ac_mid; break
24164 else
24165   echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24167
24168         ac_hi=`expr '(' $ac_mid ')' - 1`
24169                         if test $ac_mid -le $ac_hi; then
24170                           ac_lo= ac_hi=
24171                           break
24172                         fi
24173                         ac_mid=`expr 2 '*' $ac_mid`
24174 fi
24175
24176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24177   done
24178 else
24179   echo "$as_me: failed program was:" >&5
24180 sed 's/^/| /' conftest.$ac_ext >&5
24181
24182         ac_lo= ac_hi=
24183 fi
24184
24185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24186 fi
24187
24188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24189 # Binary search between lo and hi bounds.
24190 while test "x$ac_lo" != "x$ac_hi"; do
24191   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24192   cat >conftest.$ac_ext <<_ACEOF
24193 /* confdefs.h.  */
24194 _ACEOF
24195 cat confdefs.h >>conftest.$ac_ext
24196 cat >>conftest.$ac_ext <<_ACEOF
24197 /* end confdefs.h.  */
24198 $ac_includes_default
24199    typedef long long ac__type_sizeof_;
24200 int
24201 main ()
24202 {
24203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24204 test_array [0] = 0
24205
24206   ;
24207   return 0;
24208 }
24209 _ACEOF
24210 rm -f conftest.$ac_objext
24211 if { (ac_try="$ac_compile"
24212 case "(($ac_try" in
24213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24214   *) ac_try_echo=$ac_try;;
24215 esac
24216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24217   (eval "$ac_compile") 2>conftest.er1
24218   ac_status=$?
24219   grep -v '^ *+' conftest.er1 >conftest.err
24220   rm -f conftest.er1
24221   cat conftest.err >&5
24222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223   (exit $ac_status); } && {
24224          test -z "$ac_c_werror_flag" ||
24225          test ! -s conftest.err
24226        } && test -s conftest.$ac_objext; then
24227   ac_hi=$ac_mid
24228 else
24229   echo "$as_me: failed program was:" >&5
24230 sed 's/^/| /' conftest.$ac_ext >&5
24231
24232         ac_lo=`expr '(' $ac_mid ')' + 1`
24233 fi
24234
24235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24236 done
24237 case $ac_lo in
24238 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24239 '') if test "$ac_cv_type_long_long" = yes; then
24240      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24241 See \`config.log' for more details." >&5
24242 echo "$as_me: error: cannot compute sizeof (long long)
24243 See \`config.log' for more details." >&2;}
24244    { (exit 77); exit 77; }; }
24245    else
24246      ac_cv_sizeof_long_long=0
24247    fi ;;
24248 esac
24249 else
24250   cat >conftest.$ac_ext <<_ACEOF
24251 /* confdefs.h.  */
24252 _ACEOF
24253 cat confdefs.h >>conftest.$ac_ext
24254 cat >>conftest.$ac_ext <<_ACEOF
24255 /* end confdefs.h.  */
24256 $ac_includes_default
24257    typedef long long ac__type_sizeof_;
24258 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24259 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24260 #include <stdio.h>
24261 #include <stdlib.h>
24262 int
24263 main ()
24264 {
24265
24266   FILE *f = fopen ("conftest.val", "w");
24267   if (! f)
24268     return 1;
24269   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24270     {
24271       long int i = longval ();
24272       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24273         return 1;
24274       fprintf (f, "%ld\n", i);
24275     }
24276   else
24277     {
24278       unsigned long int i = ulongval ();
24279       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24280         return 1;
24281       fprintf (f, "%lu\n", i);
24282     }
24283   return ferror (f) || fclose (f) != 0;
24284
24285   ;
24286   return 0;
24287 }
24288 _ACEOF
24289 rm -f conftest$ac_exeext
24290 if { (ac_try="$ac_link"
24291 case "(($ac_try" in
24292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24293   *) ac_try_echo=$ac_try;;
24294 esac
24295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24296   (eval "$ac_link") 2>&5
24297   ac_status=$?
24298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24300   { (case "(($ac_try" in
24301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24302   *) ac_try_echo=$ac_try;;
24303 esac
24304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24305   (eval "$ac_try") 2>&5
24306   ac_status=$?
24307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308   (exit $ac_status); }; }; then
24309   ac_cv_sizeof_long_long=`cat conftest.val`
24310 else
24311   echo "$as_me: program exited with status $ac_status" >&5
24312 echo "$as_me: failed program was:" >&5
24313 sed 's/^/| /' conftest.$ac_ext >&5
24314
24315 ( exit $ac_status )
24316 if test "$ac_cv_type_long_long" = yes; then
24317      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24318 See \`config.log' for more details." >&5
24319 echo "$as_me: error: cannot compute sizeof (long long)
24320 See \`config.log' for more details." >&2;}
24321    { (exit 77); exit 77; }; }
24322    else
24323      ac_cv_sizeof_long_long=0
24324    fi
24325 fi
24326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24327 fi
24328 rm -f conftest.val
24329 fi
24330 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24331 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24332
24333
24334
24335 cat >>confdefs.h <<_ACEOF
24336 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24337 _ACEOF
24338
24339
24340     ;;
24341     *-hp-hpux* )
24342         { echo "$as_me:$LINENO: checking for long long" >&5
24343 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24344 if test "${ac_cv_type_long_long+set}" = set; then
24345   echo $ECHO_N "(cached) $ECHO_C" >&6
24346 else
24347   cat >conftest.$ac_ext <<_ACEOF
24348 /* confdefs.h.  */
24349 _ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h.  */
24353 $ac_includes_default
24354 typedef long long ac__type_new_;
24355 int
24356 main ()
24357 {
24358 if ((ac__type_new_ *) 0)
24359   return 0;
24360 if (sizeof (ac__type_new_))
24361   return 0;
24362   ;
24363   return 0;
24364 }
24365 _ACEOF
24366 rm -f conftest.$ac_objext
24367 if { (ac_try="$ac_compile"
24368 case "(($ac_try" in
24369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24370   *) ac_try_echo=$ac_try;;
24371 esac
24372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24373   (eval "$ac_compile") 2>conftest.er1
24374   ac_status=$?
24375   grep -v '^ *+' conftest.er1 >conftest.err
24376   rm -f conftest.er1
24377   cat conftest.err >&5
24378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379   (exit $ac_status); } && {
24380          test -z "$ac_c_werror_flag" ||
24381          test ! -s conftest.err
24382        } && test -s conftest.$ac_objext; then
24383   ac_cv_type_long_long=yes
24384 else
24385   echo "$as_me: failed program was:" >&5
24386 sed 's/^/| /' conftest.$ac_ext >&5
24387
24388         ac_cv_type_long_long=no
24389 fi
24390
24391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24392 fi
24393 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24394 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24395
24396 # The cast to long int works around a bug in the HP C Compiler
24397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24399 # This bug is HP SR number 8606223364.
24400 { echo "$as_me:$LINENO: checking size of long long" >&5
24401 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24402 if test "${ac_cv_sizeof_long_long+set}" = set; then
24403   echo $ECHO_N "(cached) $ECHO_C" >&6
24404 else
24405   if test "$cross_compiling" = yes; then
24406   # Depending upon the size, compute the lo and hi bounds.
24407 cat >conftest.$ac_ext <<_ACEOF
24408 /* confdefs.h.  */
24409 _ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h.  */
24413 $ac_includes_default
24414    typedef long long ac__type_sizeof_;
24415 int
24416 main ()
24417 {
24418 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24419 test_array [0] = 0
24420
24421   ;
24422   return 0;
24423 }
24424 _ACEOF
24425 rm -f conftest.$ac_objext
24426 if { (ac_try="$ac_compile"
24427 case "(($ac_try" in
24428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429   *) ac_try_echo=$ac_try;;
24430 esac
24431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24432   (eval "$ac_compile") 2>conftest.er1
24433   ac_status=$?
24434   grep -v '^ *+' conftest.er1 >conftest.err
24435   rm -f conftest.er1
24436   cat conftest.err >&5
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); } && {
24439          test -z "$ac_c_werror_flag" ||
24440          test ! -s conftest.err
24441        } && test -s conftest.$ac_objext; then
24442   ac_lo=0 ac_mid=0
24443   while :; do
24444     cat >conftest.$ac_ext <<_ACEOF
24445 /* confdefs.h.  */
24446 _ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h.  */
24450 $ac_includes_default
24451    typedef long long ac__type_sizeof_;
24452 int
24453 main ()
24454 {
24455 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24456 test_array [0] = 0
24457
24458   ;
24459   return 0;
24460 }
24461 _ACEOF
24462 rm -f conftest.$ac_objext
24463 if { (ac_try="$ac_compile"
24464 case "(($ac_try" in
24465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24466   *) ac_try_echo=$ac_try;;
24467 esac
24468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24469   (eval "$ac_compile") 2>conftest.er1
24470   ac_status=$?
24471   grep -v '^ *+' conftest.er1 >conftest.err
24472   rm -f conftest.er1
24473   cat conftest.err >&5
24474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475   (exit $ac_status); } && {
24476          test -z "$ac_c_werror_flag" ||
24477          test ! -s conftest.err
24478        } && test -s conftest.$ac_objext; then
24479   ac_hi=$ac_mid; break
24480 else
24481   echo "$as_me: failed program was:" >&5
24482 sed 's/^/| /' conftest.$ac_ext >&5
24483
24484         ac_lo=`expr $ac_mid + 1`
24485                         if test $ac_lo -le $ac_mid; then
24486                           ac_lo= ac_hi=
24487                           break
24488                         fi
24489                         ac_mid=`expr 2 '*' $ac_mid + 1`
24490 fi
24491
24492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24493   done
24494 else
24495   echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24497
24498         cat >conftest.$ac_ext <<_ACEOF
24499 /* confdefs.h.  */
24500 _ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h.  */
24504 $ac_includes_default
24505    typedef long long ac__type_sizeof_;
24506 int
24507 main ()
24508 {
24509 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24510 test_array [0] = 0
24511
24512   ;
24513   return 0;
24514 }
24515 _ACEOF
24516 rm -f conftest.$ac_objext
24517 if { (ac_try="$ac_compile"
24518 case "(($ac_try" in
24519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520   *) ac_try_echo=$ac_try;;
24521 esac
24522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24523   (eval "$ac_compile") 2>conftest.er1
24524   ac_status=$?
24525   grep -v '^ *+' conftest.er1 >conftest.err
24526   rm -f conftest.er1
24527   cat conftest.err >&5
24528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529   (exit $ac_status); } && {
24530          test -z "$ac_c_werror_flag" ||
24531          test ! -s conftest.err
24532        } && test -s conftest.$ac_objext; then
24533   ac_hi=-1 ac_mid=-1
24534   while :; do
24535     cat >conftest.$ac_ext <<_ACEOF
24536 /* confdefs.h.  */
24537 _ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h.  */
24541 $ac_includes_default
24542    typedef long long ac__type_sizeof_;
24543 int
24544 main ()
24545 {
24546 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24547 test_array [0] = 0
24548
24549   ;
24550   return 0;
24551 }
24552 _ACEOF
24553 rm -f conftest.$ac_objext
24554 if { (ac_try="$ac_compile"
24555 case "(($ac_try" in
24556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24557   *) ac_try_echo=$ac_try;;
24558 esac
24559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24560   (eval "$ac_compile") 2>conftest.er1
24561   ac_status=$?
24562   grep -v '^ *+' conftest.er1 >conftest.err
24563   rm -f conftest.er1
24564   cat conftest.err >&5
24565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566   (exit $ac_status); } && {
24567          test -z "$ac_c_werror_flag" ||
24568          test ! -s conftest.err
24569        } && test -s conftest.$ac_objext; then
24570   ac_lo=$ac_mid; break
24571 else
24572   echo "$as_me: failed program was:" >&5
24573 sed 's/^/| /' conftest.$ac_ext >&5
24574
24575         ac_hi=`expr '(' $ac_mid ')' - 1`
24576                         if test $ac_mid -le $ac_hi; then
24577                           ac_lo= ac_hi=
24578                           break
24579                         fi
24580                         ac_mid=`expr 2 '*' $ac_mid`
24581 fi
24582
24583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24584   done
24585 else
24586   echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24588
24589         ac_lo= ac_hi=
24590 fi
24591
24592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24593 fi
24594
24595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24596 # Binary search between lo and hi bounds.
24597 while test "x$ac_lo" != "x$ac_hi"; do
24598   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24599   cat >conftest.$ac_ext <<_ACEOF
24600 /* confdefs.h.  */
24601 _ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h.  */
24605 $ac_includes_default
24606    typedef long long ac__type_sizeof_;
24607 int
24608 main ()
24609 {
24610 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24611 test_array [0] = 0
24612
24613   ;
24614   return 0;
24615 }
24616 _ACEOF
24617 rm -f conftest.$ac_objext
24618 if { (ac_try="$ac_compile"
24619 case "(($ac_try" in
24620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24621   *) ac_try_echo=$ac_try;;
24622 esac
24623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24624   (eval "$ac_compile") 2>conftest.er1
24625   ac_status=$?
24626   grep -v '^ *+' conftest.er1 >conftest.err
24627   rm -f conftest.er1
24628   cat conftest.err >&5
24629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630   (exit $ac_status); } && {
24631          test -z "$ac_c_werror_flag" ||
24632          test ! -s conftest.err
24633        } && test -s conftest.$ac_objext; then
24634   ac_hi=$ac_mid
24635 else
24636   echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24638
24639         ac_lo=`expr '(' $ac_mid ')' + 1`
24640 fi
24641
24642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24643 done
24644 case $ac_lo in
24645 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24646 '') if test "$ac_cv_type_long_long" = yes; then
24647      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24648 See \`config.log' for more details." >&5
24649 echo "$as_me: error: cannot compute sizeof (long long)
24650 See \`config.log' for more details." >&2;}
24651    { (exit 77); exit 77; }; }
24652    else
24653      ac_cv_sizeof_long_long=0
24654    fi ;;
24655 esac
24656 else
24657   cat >conftest.$ac_ext <<_ACEOF
24658 /* confdefs.h.  */
24659 _ACEOF
24660 cat confdefs.h >>conftest.$ac_ext
24661 cat >>conftest.$ac_ext <<_ACEOF
24662 /* end confdefs.h.  */
24663 $ac_includes_default
24664    typedef long long ac__type_sizeof_;
24665 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24666 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24667 #include <stdio.h>
24668 #include <stdlib.h>
24669 int
24670 main ()
24671 {
24672
24673   FILE *f = fopen ("conftest.val", "w");
24674   if (! f)
24675     return 1;
24676   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24677     {
24678       long int i = longval ();
24679       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24680         return 1;
24681       fprintf (f, "%ld\n", i);
24682     }
24683   else
24684     {
24685       unsigned long int i = ulongval ();
24686       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24687         return 1;
24688       fprintf (f, "%lu\n", i);
24689     }
24690   return ferror (f) || fclose (f) != 0;
24691
24692   ;
24693   return 0;
24694 }
24695 _ACEOF
24696 rm -f conftest$ac_exeext
24697 if { (ac_try="$ac_link"
24698 case "(($ac_try" in
24699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700   *) ac_try_echo=$ac_try;;
24701 esac
24702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24703   (eval "$ac_link") 2>&5
24704   ac_status=$?
24705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24707   { (case "(($ac_try" in
24708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24709   *) ac_try_echo=$ac_try;;
24710 esac
24711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24712   (eval "$ac_try") 2>&5
24713   ac_status=$?
24714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715   (exit $ac_status); }; }; then
24716   ac_cv_sizeof_long_long=`cat conftest.val`
24717 else
24718   echo "$as_me: program exited with status $ac_status" >&5
24719 echo "$as_me: failed program was:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24721
24722 ( exit $ac_status )
24723 if test "$ac_cv_type_long_long" = yes; then
24724      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24725 See \`config.log' for more details." >&5
24726 echo "$as_me: error: cannot compute sizeof (long long)
24727 See \`config.log' for more details." >&2;}
24728    { (exit 77); exit 77; }; }
24729    else
24730      ac_cv_sizeof_long_long=0
24731    fi
24732 fi
24733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24734 fi
24735 rm -f conftest.val
24736 fi
24737 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24738 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24739
24740
24741
24742 cat >>confdefs.h <<_ACEOF
24743 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24744 _ACEOF
24745
24746
24747         if test "$ac_cv_sizeof_long_long" != "0"; then
24748                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
24749         fi
24750     ;;
24751     * )
24752         { echo "$as_me:$LINENO: checking for long long" >&5
24753 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24754 if test "${ac_cv_type_long_long+set}" = set; then
24755   echo $ECHO_N "(cached) $ECHO_C" >&6
24756 else
24757   cat >conftest.$ac_ext <<_ACEOF
24758 /* confdefs.h.  */
24759 _ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h.  */
24763 $ac_includes_default
24764 typedef long long ac__type_new_;
24765 int
24766 main ()
24767 {
24768 if ((ac__type_new_ *) 0)
24769   return 0;
24770 if (sizeof (ac__type_new_))
24771   return 0;
24772   ;
24773   return 0;
24774 }
24775 _ACEOF
24776 rm -f conftest.$ac_objext
24777 if { (ac_try="$ac_compile"
24778 case "(($ac_try" in
24779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24780   *) ac_try_echo=$ac_try;;
24781 esac
24782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24783   (eval "$ac_compile") 2>conftest.er1
24784   ac_status=$?
24785   grep -v '^ *+' conftest.er1 >conftest.err
24786   rm -f conftest.er1
24787   cat conftest.err >&5
24788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789   (exit $ac_status); } && {
24790          test -z "$ac_c_werror_flag" ||
24791          test ! -s conftest.err
24792        } && test -s conftest.$ac_objext; then
24793   ac_cv_type_long_long=yes
24794 else
24795   echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24797
24798         ac_cv_type_long_long=no
24799 fi
24800
24801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24802 fi
24803 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24804 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24805
24806 # The cast to long int works around a bug in the HP C Compiler
24807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24809 # This bug is HP SR number 8606223364.
24810 { echo "$as_me:$LINENO: checking size of long long" >&5
24811 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24812 if test "${ac_cv_sizeof_long_long+set}" = set; then
24813   echo $ECHO_N "(cached) $ECHO_C" >&6
24814 else
24815   if test "$cross_compiling" = yes; then
24816   # Depending upon the size, compute the lo and hi bounds.
24817 cat >conftest.$ac_ext <<_ACEOF
24818 /* confdefs.h.  */
24819 _ACEOF
24820 cat confdefs.h >>conftest.$ac_ext
24821 cat >>conftest.$ac_ext <<_ACEOF
24822 /* end confdefs.h.  */
24823 $ac_includes_default
24824    typedef long long ac__type_sizeof_;
24825 int
24826 main ()
24827 {
24828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24829 test_array [0] = 0
24830
24831   ;
24832   return 0;
24833 }
24834 _ACEOF
24835 rm -f conftest.$ac_objext
24836 if { (ac_try="$ac_compile"
24837 case "(($ac_try" in
24838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24839   *) ac_try_echo=$ac_try;;
24840 esac
24841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24842   (eval "$ac_compile") 2>conftest.er1
24843   ac_status=$?
24844   grep -v '^ *+' conftest.er1 >conftest.err
24845   rm -f conftest.er1
24846   cat conftest.err >&5
24847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848   (exit $ac_status); } && {
24849          test -z "$ac_c_werror_flag" ||
24850          test ! -s conftest.err
24851        } && test -s conftest.$ac_objext; then
24852   ac_lo=0 ac_mid=0
24853   while :; do
24854     cat >conftest.$ac_ext <<_ACEOF
24855 /* confdefs.h.  */
24856 _ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h.  */
24860 $ac_includes_default
24861    typedef long long ac__type_sizeof_;
24862 int
24863 main ()
24864 {
24865 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24866 test_array [0] = 0
24867
24868   ;
24869   return 0;
24870 }
24871 _ACEOF
24872 rm -f conftest.$ac_objext
24873 if { (ac_try="$ac_compile"
24874 case "(($ac_try" in
24875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24876   *) ac_try_echo=$ac_try;;
24877 esac
24878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24879   (eval "$ac_compile") 2>conftest.er1
24880   ac_status=$?
24881   grep -v '^ *+' conftest.er1 >conftest.err
24882   rm -f conftest.er1
24883   cat conftest.err >&5
24884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885   (exit $ac_status); } && {
24886          test -z "$ac_c_werror_flag" ||
24887          test ! -s conftest.err
24888        } && test -s conftest.$ac_objext; then
24889   ac_hi=$ac_mid; break
24890 else
24891   echo "$as_me: failed program was:" >&5
24892 sed 's/^/| /' conftest.$ac_ext >&5
24893
24894         ac_lo=`expr $ac_mid + 1`
24895                         if test $ac_lo -le $ac_mid; then
24896                           ac_lo= ac_hi=
24897                           break
24898                         fi
24899                         ac_mid=`expr 2 '*' $ac_mid + 1`
24900 fi
24901
24902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24903   done
24904 else
24905   echo "$as_me: failed program was:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24907
24908         cat >conftest.$ac_ext <<_ACEOF
24909 /* confdefs.h.  */
24910 _ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h.  */
24914 $ac_includes_default
24915    typedef long long ac__type_sizeof_;
24916 int
24917 main ()
24918 {
24919 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24920 test_array [0] = 0
24921
24922   ;
24923   return 0;
24924 }
24925 _ACEOF
24926 rm -f conftest.$ac_objext
24927 if { (ac_try="$ac_compile"
24928 case "(($ac_try" in
24929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24930   *) ac_try_echo=$ac_try;;
24931 esac
24932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24933   (eval "$ac_compile") 2>conftest.er1
24934   ac_status=$?
24935   grep -v '^ *+' conftest.er1 >conftest.err
24936   rm -f conftest.er1
24937   cat conftest.err >&5
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); } && {
24940          test -z "$ac_c_werror_flag" ||
24941          test ! -s conftest.err
24942        } && test -s conftest.$ac_objext; then
24943   ac_hi=-1 ac_mid=-1
24944   while :; do
24945     cat >conftest.$ac_ext <<_ACEOF
24946 /* confdefs.h.  */
24947 _ACEOF
24948 cat confdefs.h >>conftest.$ac_ext
24949 cat >>conftest.$ac_ext <<_ACEOF
24950 /* end confdefs.h.  */
24951 $ac_includes_default
24952    typedef long long ac__type_sizeof_;
24953 int
24954 main ()
24955 {
24956 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24957 test_array [0] = 0
24958
24959   ;
24960   return 0;
24961 }
24962 _ACEOF
24963 rm -f conftest.$ac_objext
24964 if { (ac_try="$ac_compile"
24965 case "(($ac_try" in
24966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967   *) ac_try_echo=$ac_try;;
24968 esac
24969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24970   (eval "$ac_compile") 2>conftest.er1
24971   ac_status=$?
24972   grep -v '^ *+' conftest.er1 >conftest.err
24973   rm -f conftest.er1
24974   cat conftest.err >&5
24975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976   (exit $ac_status); } && {
24977          test -z "$ac_c_werror_flag" ||
24978          test ! -s conftest.err
24979        } && test -s conftest.$ac_objext; then
24980   ac_lo=$ac_mid; break
24981 else
24982   echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24984
24985         ac_hi=`expr '(' $ac_mid ')' - 1`
24986                         if test $ac_mid -le $ac_hi; then
24987                           ac_lo= ac_hi=
24988                           break
24989                         fi
24990                         ac_mid=`expr 2 '*' $ac_mid`
24991 fi
24992
24993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24994   done
24995 else
24996   echo "$as_me: failed program was:" >&5
24997 sed 's/^/| /' conftest.$ac_ext >&5
24998
24999         ac_lo= ac_hi=
25000 fi
25001
25002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25003 fi
25004
25005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25006 # Binary search between lo and hi bounds.
25007 while test "x$ac_lo" != "x$ac_hi"; do
25008   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25009   cat >conftest.$ac_ext <<_ACEOF
25010 /* confdefs.h.  */
25011 _ACEOF
25012 cat confdefs.h >>conftest.$ac_ext
25013 cat >>conftest.$ac_ext <<_ACEOF
25014 /* end confdefs.h.  */
25015 $ac_includes_default
25016    typedef long long ac__type_sizeof_;
25017 int
25018 main ()
25019 {
25020 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25021 test_array [0] = 0
25022
25023   ;
25024   return 0;
25025 }
25026 _ACEOF
25027 rm -f conftest.$ac_objext
25028 if { (ac_try="$ac_compile"
25029 case "(($ac_try" in
25030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25031   *) ac_try_echo=$ac_try;;
25032 esac
25033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25034   (eval "$ac_compile") 2>conftest.er1
25035   ac_status=$?
25036   grep -v '^ *+' conftest.er1 >conftest.err
25037   rm -f conftest.er1
25038   cat conftest.err >&5
25039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040   (exit $ac_status); } && {
25041          test -z "$ac_c_werror_flag" ||
25042          test ! -s conftest.err
25043        } && test -s conftest.$ac_objext; then
25044   ac_hi=$ac_mid
25045 else
25046   echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25048
25049         ac_lo=`expr '(' $ac_mid ')' + 1`
25050 fi
25051
25052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25053 done
25054 case $ac_lo in
25055 ?*) ac_cv_sizeof_long_long=$ac_lo;;
25056 '') if test "$ac_cv_type_long_long" = yes; then
25057      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25058 See \`config.log' for more details." >&5
25059 echo "$as_me: error: cannot compute sizeof (long long)
25060 See \`config.log' for more details." >&2;}
25061    { (exit 77); exit 77; }; }
25062    else
25063      ac_cv_sizeof_long_long=0
25064    fi ;;
25065 esac
25066 else
25067   cat >conftest.$ac_ext <<_ACEOF
25068 /* confdefs.h.  */
25069 _ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h.  */
25073 $ac_includes_default
25074    typedef long long ac__type_sizeof_;
25075 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25076 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25077 #include <stdio.h>
25078 #include <stdlib.h>
25079 int
25080 main ()
25081 {
25082
25083   FILE *f = fopen ("conftest.val", "w");
25084   if (! f)
25085     return 1;
25086   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25087     {
25088       long int i = longval ();
25089       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25090         return 1;
25091       fprintf (f, "%ld\n", i);
25092     }
25093   else
25094     {
25095       unsigned long int i = ulongval ();
25096       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25097         return 1;
25098       fprintf (f, "%lu\n", i);
25099     }
25100   return ferror (f) || fclose (f) != 0;
25101
25102   ;
25103   return 0;
25104 }
25105 _ACEOF
25106 rm -f conftest$ac_exeext
25107 if { (ac_try="$ac_link"
25108 case "(($ac_try" in
25109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25110   *) ac_try_echo=$ac_try;;
25111 esac
25112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25113   (eval "$ac_link") 2>&5
25114   ac_status=$?
25115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25117   { (case "(($ac_try" in
25118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119   *) ac_try_echo=$ac_try;;
25120 esac
25121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122   (eval "$ac_try") 2>&5
25123   ac_status=$?
25124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125   (exit $ac_status); }; }; then
25126   ac_cv_sizeof_long_long=`cat conftest.val`
25127 else
25128   echo "$as_me: program exited with status $ac_status" >&5
25129 echo "$as_me: failed program was:" >&5
25130 sed 's/^/| /' conftest.$ac_ext >&5
25131
25132 ( exit $ac_status )
25133 if test "$ac_cv_type_long_long" = yes; then
25134      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25135 See \`config.log' for more details." >&5
25136 echo "$as_me: error: cannot compute sizeof (long long)
25137 See \`config.log' for more details." >&2;}
25138    { (exit 77); exit 77; }; }
25139    else
25140      ac_cv_sizeof_long_long=0
25141    fi
25142 fi
25143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25144 fi
25145 rm -f conftest.val
25146 fi
25147 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
25148 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
25149
25150
25151
25152 cat >>confdefs.h <<_ACEOF
25153 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
25154 _ACEOF
25155
25156
25157 esac
25158
25159 { echo "$as_me:$LINENO: checking for wchar_t" >&5
25160 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
25161 if test "${ac_cv_type_wchar_t+set}" = set; then
25162   echo $ECHO_N "(cached) $ECHO_C" >&6
25163 else
25164   cat >conftest.$ac_ext <<_ACEOF
25165 /* confdefs.h.  */
25166 _ACEOF
25167 cat confdefs.h >>conftest.$ac_ext
25168 cat >>conftest.$ac_ext <<_ACEOF
25169 /* end confdefs.h.  */
25170
25171         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25172         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25173         #  error "fake wchar_t"
25174         #endif
25175         #ifdef HAVE_WCHAR_H
25176         #  ifdef __CYGWIN__
25177         #    include <stddef.h>
25178         #  endif
25179         #  include <wchar.h>
25180         #endif
25181         #ifdef HAVE_STDLIB_H
25182         #  include <stdlib.h>
25183         #endif
25184         #include <stdio.h>
25185
25186
25187
25188 typedef wchar_t ac__type_new_;
25189 int
25190 main ()
25191 {
25192 if ((ac__type_new_ *) 0)
25193   return 0;
25194 if (sizeof (ac__type_new_))
25195   return 0;
25196   ;
25197   return 0;
25198 }
25199 _ACEOF
25200 rm -f conftest.$ac_objext
25201 if { (ac_try="$ac_compile"
25202 case "(($ac_try" in
25203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25204   *) ac_try_echo=$ac_try;;
25205 esac
25206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25207   (eval "$ac_compile") 2>conftest.er1
25208   ac_status=$?
25209   grep -v '^ *+' conftest.er1 >conftest.err
25210   rm -f conftest.er1
25211   cat conftest.err >&5
25212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213   (exit $ac_status); } && {
25214          test -z "$ac_c_werror_flag" ||
25215          test ! -s conftest.err
25216        } && test -s conftest.$ac_objext; then
25217   ac_cv_type_wchar_t=yes
25218 else
25219   echo "$as_me: failed program was:" >&5
25220 sed 's/^/| /' conftest.$ac_ext >&5
25221
25222         ac_cv_type_wchar_t=no
25223 fi
25224
25225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25226 fi
25227 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
25228 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
25229
25230 # The cast to long int works around a bug in the HP C Compiler
25231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25233 # This bug is HP SR number 8606223364.
25234 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
25235 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
25236 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
25237   echo $ECHO_N "(cached) $ECHO_C" >&6
25238 else
25239   if test "$cross_compiling" = yes; then
25240   # Depending upon the size, compute the lo and hi bounds.
25241 cat >conftest.$ac_ext <<_ACEOF
25242 /* confdefs.h.  */
25243 _ACEOF
25244 cat confdefs.h >>conftest.$ac_ext
25245 cat >>conftest.$ac_ext <<_ACEOF
25246 /* end confdefs.h.  */
25247
25248         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25249         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25250         #  error "fake wchar_t"
25251         #endif
25252         #ifdef HAVE_WCHAR_H
25253         #  ifdef __CYGWIN__
25254         #    include <stddef.h>
25255         #  endif
25256         #  include <wchar.h>
25257         #endif
25258         #ifdef HAVE_STDLIB_H
25259         #  include <stdlib.h>
25260         #endif
25261         #include <stdio.h>
25262
25263
25264
25265    typedef wchar_t ac__type_sizeof_;
25266 int
25267 main ()
25268 {
25269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25270 test_array [0] = 0
25271
25272   ;
25273   return 0;
25274 }
25275 _ACEOF
25276 rm -f conftest.$ac_objext
25277 if { (ac_try="$ac_compile"
25278 case "(($ac_try" in
25279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25280   *) ac_try_echo=$ac_try;;
25281 esac
25282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25283   (eval "$ac_compile") 2>conftest.er1
25284   ac_status=$?
25285   grep -v '^ *+' conftest.er1 >conftest.err
25286   rm -f conftest.er1
25287   cat conftest.err >&5
25288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289   (exit $ac_status); } && {
25290          test -z "$ac_c_werror_flag" ||
25291          test ! -s conftest.err
25292        } && test -s conftest.$ac_objext; then
25293   ac_lo=0 ac_mid=0
25294   while :; do
25295     cat >conftest.$ac_ext <<_ACEOF
25296 /* confdefs.h.  */
25297 _ACEOF
25298 cat confdefs.h >>conftest.$ac_ext
25299 cat >>conftest.$ac_ext <<_ACEOF
25300 /* end confdefs.h.  */
25301
25302         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25303         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25304         #  error "fake wchar_t"
25305         #endif
25306         #ifdef HAVE_WCHAR_H
25307         #  ifdef __CYGWIN__
25308         #    include <stddef.h>
25309         #  endif
25310         #  include <wchar.h>
25311         #endif
25312         #ifdef HAVE_STDLIB_H
25313         #  include <stdlib.h>
25314         #endif
25315         #include <stdio.h>
25316
25317
25318
25319    typedef wchar_t ac__type_sizeof_;
25320 int
25321 main ()
25322 {
25323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25324 test_array [0] = 0
25325
25326   ;
25327   return 0;
25328 }
25329 _ACEOF
25330 rm -f conftest.$ac_objext
25331 if { (ac_try="$ac_compile"
25332 case "(($ac_try" in
25333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25334   *) ac_try_echo=$ac_try;;
25335 esac
25336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25337   (eval "$ac_compile") 2>conftest.er1
25338   ac_status=$?
25339   grep -v '^ *+' conftest.er1 >conftest.err
25340   rm -f conftest.er1
25341   cat conftest.err >&5
25342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343   (exit $ac_status); } && {
25344          test -z "$ac_c_werror_flag" ||
25345          test ! -s conftest.err
25346        } && test -s conftest.$ac_objext; then
25347   ac_hi=$ac_mid; break
25348 else
25349   echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25351
25352         ac_lo=`expr $ac_mid + 1`
25353                         if test $ac_lo -le $ac_mid; then
25354                           ac_lo= ac_hi=
25355                           break
25356                         fi
25357                         ac_mid=`expr 2 '*' $ac_mid + 1`
25358 fi
25359
25360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25361   done
25362 else
25363   echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25365
25366         cat >conftest.$ac_ext <<_ACEOF
25367 /* confdefs.h.  */
25368 _ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h.  */
25372
25373         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25374         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25375         #  error "fake wchar_t"
25376         #endif
25377         #ifdef HAVE_WCHAR_H
25378         #  ifdef __CYGWIN__
25379         #    include <stddef.h>
25380         #  endif
25381         #  include <wchar.h>
25382         #endif
25383         #ifdef HAVE_STDLIB_H
25384         #  include <stdlib.h>
25385         #endif
25386         #include <stdio.h>
25387
25388
25389
25390    typedef wchar_t ac__type_sizeof_;
25391 int
25392 main ()
25393 {
25394 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25395 test_array [0] = 0
25396
25397   ;
25398   return 0;
25399 }
25400 _ACEOF
25401 rm -f conftest.$ac_objext
25402 if { (ac_try="$ac_compile"
25403 case "(($ac_try" in
25404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25405   *) ac_try_echo=$ac_try;;
25406 esac
25407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25408   (eval "$ac_compile") 2>conftest.er1
25409   ac_status=$?
25410   grep -v '^ *+' conftest.er1 >conftest.err
25411   rm -f conftest.er1
25412   cat conftest.err >&5
25413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414   (exit $ac_status); } && {
25415          test -z "$ac_c_werror_flag" ||
25416          test ! -s conftest.err
25417        } && test -s conftest.$ac_objext; then
25418   ac_hi=-1 ac_mid=-1
25419   while :; do
25420     cat >conftest.$ac_ext <<_ACEOF
25421 /* confdefs.h.  */
25422 _ACEOF
25423 cat confdefs.h >>conftest.$ac_ext
25424 cat >>conftest.$ac_ext <<_ACEOF
25425 /* end confdefs.h.  */
25426
25427         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25428         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25429         #  error "fake wchar_t"
25430         #endif
25431         #ifdef HAVE_WCHAR_H
25432         #  ifdef __CYGWIN__
25433         #    include <stddef.h>
25434         #  endif
25435         #  include <wchar.h>
25436         #endif
25437         #ifdef HAVE_STDLIB_H
25438         #  include <stdlib.h>
25439         #endif
25440         #include <stdio.h>
25441
25442
25443
25444    typedef wchar_t ac__type_sizeof_;
25445 int
25446 main ()
25447 {
25448 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25449 test_array [0] = 0
25450
25451   ;
25452   return 0;
25453 }
25454 _ACEOF
25455 rm -f conftest.$ac_objext
25456 if { (ac_try="$ac_compile"
25457 case "(($ac_try" in
25458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459   *) ac_try_echo=$ac_try;;
25460 esac
25461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25462   (eval "$ac_compile") 2>conftest.er1
25463   ac_status=$?
25464   grep -v '^ *+' conftest.er1 >conftest.err
25465   rm -f conftest.er1
25466   cat conftest.err >&5
25467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468   (exit $ac_status); } && {
25469          test -z "$ac_c_werror_flag" ||
25470          test ! -s conftest.err
25471        } && test -s conftest.$ac_objext; then
25472   ac_lo=$ac_mid; break
25473 else
25474   echo "$as_me: failed program was:" >&5
25475 sed 's/^/| /' conftest.$ac_ext >&5
25476
25477         ac_hi=`expr '(' $ac_mid ')' - 1`
25478                         if test $ac_mid -le $ac_hi; then
25479                           ac_lo= ac_hi=
25480                           break
25481                         fi
25482                         ac_mid=`expr 2 '*' $ac_mid`
25483 fi
25484
25485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25486   done
25487 else
25488   echo "$as_me: failed program was:" >&5
25489 sed 's/^/| /' conftest.$ac_ext >&5
25490
25491         ac_lo= ac_hi=
25492 fi
25493
25494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25495 fi
25496
25497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25498 # Binary search between lo and hi bounds.
25499 while test "x$ac_lo" != "x$ac_hi"; do
25500   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25501   cat >conftest.$ac_ext <<_ACEOF
25502 /* confdefs.h.  */
25503 _ACEOF
25504 cat confdefs.h >>conftest.$ac_ext
25505 cat >>conftest.$ac_ext <<_ACEOF
25506 /* end confdefs.h.  */
25507
25508         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25509         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25510         #  error "fake wchar_t"
25511         #endif
25512         #ifdef HAVE_WCHAR_H
25513         #  ifdef __CYGWIN__
25514         #    include <stddef.h>
25515         #  endif
25516         #  include <wchar.h>
25517         #endif
25518         #ifdef HAVE_STDLIB_H
25519         #  include <stdlib.h>
25520         #endif
25521         #include <stdio.h>
25522
25523
25524
25525    typedef wchar_t ac__type_sizeof_;
25526 int
25527 main ()
25528 {
25529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25530 test_array [0] = 0
25531
25532   ;
25533   return 0;
25534 }
25535 _ACEOF
25536 rm -f conftest.$ac_objext
25537 if { (ac_try="$ac_compile"
25538 case "(($ac_try" in
25539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25540   *) ac_try_echo=$ac_try;;
25541 esac
25542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25543   (eval "$ac_compile") 2>conftest.er1
25544   ac_status=$?
25545   grep -v '^ *+' conftest.er1 >conftest.err
25546   rm -f conftest.er1
25547   cat conftest.err >&5
25548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25549   (exit $ac_status); } && {
25550          test -z "$ac_c_werror_flag" ||
25551          test ! -s conftest.err
25552        } && test -s conftest.$ac_objext; then
25553   ac_hi=$ac_mid
25554 else
25555   echo "$as_me: failed program was:" >&5
25556 sed 's/^/| /' conftest.$ac_ext >&5
25557
25558         ac_lo=`expr '(' $ac_mid ')' + 1`
25559 fi
25560
25561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25562 done
25563 case $ac_lo in
25564 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25565 '') if test "$ac_cv_type_wchar_t" = yes; then
25566      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25567 See \`config.log' for more details." >&5
25568 echo "$as_me: error: cannot compute sizeof (wchar_t)
25569 See \`config.log' for more details." >&2;}
25570    { (exit 77); exit 77; }; }
25571    else
25572      ac_cv_sizeof_wchar_t=0
25573    fi ;;
25574 esac
25575 else
25576   cat >conftest.$ac_ext <<_ACEOF
25577 /* confdefs.h.  */
25578 _ACEOF
25579 cat confdefs.h >>conftest.$ac_ext
25580 cat >>conftest.$ac_ext <<_ACEOF
25581 /* end confdefs.h.  */
25582
25583         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25584         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25585         #  error "fake wchar_t"
25586         #endif
25587         #ifdef HAVE_WCHAR_H
25588         #  ifdef __CYGWIN__
25589         #    include <stddef.h>
25590         #  endif
25591         #  include <wchar.h>
25592         #endif
25593         #ifdef HAVE_STDLIB_H
25594         #  include <stdlib.h>
25595         #endif
25596         #include <stdio.h>
25597
25598
25599
25600    typedef wchar_t ac__type_sizeof_;
25601 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25602 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25603 #include <stdio.h>
25604 #include <stdlib.h>
25605 int
25606 main ()
25607 {
25608
25609   FILE *f = fopen ("conftest.val", "w");
25610   if (! f)
25611     return 1;
25612   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25613     {
25614       long int i = longval ();
25615       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25616         return 1;
25617       fprintf (f, "%ld\n", i);
25618     }
25619   else
25620     {
25621       unsigned long int i = ulongval ();
25622       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25623         return 1;
25624       fprintf (f, "%lu\n", i);
25625     }
25626   return ferror (f) || fclose (f) != 0;
25627
25628   ;
25629   return 0;
25630 }
25631 _ACEOF
25632 rm -f conftest$ac_exeext
25633 if { (ac_try="$ac_link"
25634 case "(($ac_try" in
25635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25636   *) ac_try_echo=$ac_try;;
25637 esac
25638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25639   (eval "$ac_link") 2>&5
25640   ac_status=$?
25641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25643   { (case "(($ac_try" in
25644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25645   *) ac_try_echo=$ac_try;;
25646 esac
25647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25648   (eval "$ac_try") 2>&5
25649   ac_status=$?
25650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651   (exit $ac_status); }; }; then
25652   ac_cv_sizeof_wchar_t=`cat conftest.val`
25653 else
25654   echo "$as_me: program exited with status $ac_status" >&5
25655 echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.$ac_ext >&5
25657
25658 ( exit $ac_status )
25659 if test "$ac_cv_type_wchar_t" = yes; then
25660      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25661 See \`config.log' for more details." >&5
25662 echo "$as_me: error: cannot compute sizeof (wchar_t)
25663 See \`config.log' for more details." >&2;}
25664    { (exit 77); exit 77; }; }
25665    else
25666      ac_cv_sizeof_wchar_t=0
25667    fi
25668 fi
25669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25670 fi
25671 rm -f conftest.val
25672 fi
25673 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25674 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25675
25676
25677
25678 cat >>confdefs.h <<_ACEOF
25679 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25680 _ACEOF
25681
25682
25683 if test "$ac_cv_sizeof_wchar_t" != "0"; then
25684     wxUSE_WCHAR_T=yes
25685 else
25686     wxUSE_WCHAR_T=no
25687 fi
25688
25689 { echo "$as_me:$LINENO: checking for va_copy" >&5
25690 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
25691 if test "${wx_cv_func_va_copy+set}" = set; then
25692   echo $ECHO_N "(cached) $ECHO_C" >&6
25693 else
25694
25695         ac_ext=cpp
25696 ac_cpp='$CXXCPP $CPPFLAGS'
25697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25700
25701         cat >conftest.$ac_ext <<_ACEOF
25702
25703             #include <stdarg.h>
25704             void foo(char *f, ...)
25705             {
25706                 va_list ap1, ap2;
25707                 va_start(ap1, f);
25708                 va_copy(ap2, ap1);
25709                 va_end(ap2);
25710                 va_end(ap1);
25711             }
25712             int main()
25713             {
25714                 foo("hi", 17);
25715                 return 0;
25716             }
25717 _ACEOF
25718 rm -f conftest.$ac_objext conftest$ac_exeext
25719 if { (ac_try="$ac_link"
25720 case "(($ac_try" in
25721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25722   *) ac_try_echo=$ac_try;;
25723 esac
25724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25725   (eval "$ac_link") 2>conftest.er1
25726   ac_status=$?
25727   grep -v '^ *+' conftest.er1 >conftest.err
25728   rm -f conftest.er1
25729   cat conftest.err >&5
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); } && {
25732          test -z "$ac_cxx_werror_flag" ||
25733          test ! -s conftest.err
25734        } && test -s conftest$ac_exeext &&
25735        $as_test_x conftest$ac_exeext; then
25736   wx_cv_func_va_copy=yes
25737 else
25738   echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25740
25741         wx_cv_func_va_copy=no
25742
25743 fi
25744
25745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25746       conftest$ac_exeext conftest.$ac_ext
25747         ac_ext=c
25748 ac_cpp='$CPP $CPPFLAGS'
25749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25752
25753
25754
25755 fi
25756 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
25757 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
25758
25759 if test $wx_cv_func_va_copy = "yes"; then
25760     cat >>confdefs.h <<\_ACEOF
25761 #define HAVE_VA_COPY 1
25762 _ACEOF
25763
25764 else
25765         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
25766 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
25767 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
25768   echo $ECHO_N "(cached) $ECHO_C" >&6
25769 else
25770
25771             if test "$cross_compiling" = yes; then
25772                   wx_cv_type_va_list_lvalue=yes
25773
25774 else
25775   cat >conftest.$ac_ext <<_ACEOF
25776
25777                 #include <stdarg.h>
25778                 int foo(char *f, ...)
25779                 {
25780                     va_list ap1, ap2;
25781                     va_start(ap1, f);
25782                     ap2 = ap1;
25783                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
25784                         return 1;
25785                     va_end(ap2);
25786                     va_end(ap1);
25787                     return 0;
25788                 }
25789                 int main()
25790                 {
25791                     return foo("hi", 17);
25792                 }
25793 _ACEOF
25794 rm -f conftest$ac_exeext
25795 if { (ac_try="$ac_link"
25796 case "(($ac_try" in
25797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25798   *) ac_try_echo=$ac_try;;
25799 esac
25800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25801   (eval "$ac_link") 2>&5
25802   ac_status=$?
25803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25805   { (case "(($ac_try" in
25806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25807   *) ac_try_echo=$ac_try;;
25808 esac
25809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25810   (eval "$ac_try") 2>&5
25811   ac_status=$?
25812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813   (exit $ac_status); }; }; then
25814   wx_cv_type_va_list_lvalue=yes
25815 else
25816   echo "$as_me: program exited with status $ac_status" >&5
25817 echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25819
25820 ( exit $ac_status )
25821 wx_cv_type_va_list_lvalue=no
25822 fi
25823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25824 fi
25825
25826
25827
25828
25829 fi
25830 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
25831 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
25832
25833     if test $wx_cv_type_va_list_lvalue != "yes"; then
25834                         cat >>confdefs.h <<\_ACEOF
25835 #define VA_LIST_IS_ARRAY 1
25836 _ACEOF
25837
25838     fi
25839 fi
25840
25841 if test "$wxUSE_VARARG_MACROS" = "yes"; then
25842
25843 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
25844 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
25845 if test "${wx_cv_have_variadic_macros+set}" = set; then
25846   echo $ECHO_N "(cached) $ECHO_C" >&6
25847 else
25848
25849                         ac_ext=cpp
25850 ac_cpp='$CXXCPP $CPPFLAGS'
25851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25854
25855         cat >conftest.$ac_ext <<_ACEOF
25856 /* confdefs.h.  */
25857 _ACEOF
25858 cat confdefs.h >>conftest.$ac_ext
25859 cat >>conftest.$ac_ext <<_ACEOF
25860 /* end confdefs.h.  */
25861
25862                     #include <stdio.h>
25863                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
25864
25865 int
25866 main ()
25867 {
25868
25869                     test("%s %d %p", "test", 1, 0);
25870
25871
25872   ;
25873   return 0;
25874 }
25875 _ACEOF
25876 rm -f conftest.$ac_objext
25877 if { (ac_try="$ac_compile"
25878 case "(($ac_try" in
25879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25880   *) ac_try_echo=$ac_try;;
25881 esac
25882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25883   (eval "$ac_compile") 2>conftest.er1
25884   ac_status=$?
25885   grep -v '^ *+' conftest.er1 >conftest.err
25886   rm -f conftest.er1
25887   cat conftest.err >&5
25888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889   (exit $ac_status); } && {
25890          test -z "$ac_cxx_werror_flag" ||
25891          test ! -s conftest.err
25892        } && test -s conftest.$ac_objext; then
25893   wx_cv_have_variadic_macros=yes
25894 else
25895   echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25897
25898         wx_cv_have_variadic_macros=no
25899
25900 fi
25901
25902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25903         ac_ext=c
25904 ac_cpp='$CPP $CPPFLAGS'
25905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25908
25909
25910
25911 fi
25912 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
25913 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
25914
25915 if test $wx_cv_have_variadic_macros = "yes"; then
25916     cat >>confdefs.h <<\_ACEOF
25917 #define HAVE_VARIADIC_MACROS 1
25918 _ACEOF
25919
25920 fi
25921
25922 fi
25923 # Check whether --enable-largefile was given.
25924 if test "${enable_largefile+set}" = set; then
25925   enableval=$enable_largefile;
25926 fi
25927
25928 if test "$enable_largefile" != no; then
25929             wx_largefile=no
25930
25931     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25932 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25933 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25934   echo $ECHO_N "(cached) $ECHO_C" >&6
25935 else
25936
25937           cat >conftest.$ac_ext <<_ACEOF
25938 /* confdefs.h.  */
25939 _ACEOF
25940 cat confdefs.h >>conftest.$ac_ext
25941 cat >>conftest.$ac_ext <<_ACEOF
25942 /* end confdefs.h.  */
25943 #define _FILE_OFFSET_BITS 64
25944                           #include <sys/types.h>
25945 int
25946 main ()
25947 {
25948 typedef struct {
25949     unsigned int field: sizeof(off_t) == 8;
25950 } wxlf;
25951
25952   ;
25953   return 0;
25954 }
25955 _ACEOF
25956 rm -f conftest.$ac_objext
25957 if { (ac_try="$ac_compile"
25958 case "(($ac_try" in
25959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25960   *) ac_try_echo=$ac_try;;
25961 esac
25962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25963   (eval "$ac_compile") 2>conftest.er1
25964   ac_status=$?
25965   grep -v '^ *+' conftest.er1 >conftest.err
25966   rm -f conftest.er1
25967   cat conftest.err >&5
25968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); } && {
25970          test -z "$ac_c_werror_flag" ||
25971          test ! -s conftest.err
25972        } && test -s conftest.$ac_objext; then
25973   ac_cv_sys_file_offset_bits=64
25974 else
25975   echo "$as_me: failed program was:" >&5
25976 sed 's/^/| /' conftest.$ac_ext >&5
25977
25978         ac_cv_sys_file_offset_bits=no
25979 fi
25980
25981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25982
25983
25984 fi
25985 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25986 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25987
25988     if test "$ac_cv_sys_file_offset_bits" != no; then
25989         wx_largefile=yes
25990         cat >>confdefs.h <<_ACEOF
25991 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25992 _ACEOF
25993
25994     fi
25995
25996     if test "x$wx_largefile" != "xyes"; then
25997
25998     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25999 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
26000 if test "${ac_cv_sys_large_files+set}" = set; then
26001   echo $ECHO_N "(cached) $ECHO_C" >&6
26002 else
26003
26004           cat >conftest.$ac_ext <<_ACEOF
26005 /* confdefs.h.  */
26006 _ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h.  */
26010 #define _LARGE_FILES 1
26011                           #include <sys/types.h>
26012 int
26013 main ()
26014 {
26015 typedef struct {
26016     unsigned int field: sizeof(off_t) == 8;
26017 } wxlf;
26018
26019   ;
26020   return 0;
26021 }
26022 _ACEOF
26023 rm -f conftest.$ac_objext
26024 if { (ac_try="$ac_compile"
26025 case "(($ac_try" in
26026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26027   *) ac_try_echo=$ac_try;;
26028 esac
26029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26030   (eval "$ac_compile") 2>conftest.er1
26031   ac_status=$?
26032   grep -v '^ *+' conftest.er1 >conftest.err
26033   rm -f conftest.er1
26034   cat conftest.err >&5
26035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036   (exit $ac_status); } && {
26037          test -z "$ac_c_werror_flag" ||
26038          test ! -s conftest.err
26039        } && test -s conftest.$ac_objext; then
26040   ac_cv_sys_large_files=1
26041 else
26042   echo "$as_me: failed program was:" >&5
26043 sed 's/^/| /' conftest.$ac_ext >&5
26044
26045         ac_cv_sys_large_files=no
26046 fi
26047
26048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26049
26050
26051 fi
26052 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26053 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
26054
26055     if test "$ac_cv_sys_large_files" != no; then
26056         wx_largefile=yes
26057         cat >>confdefs.h <<_ACEOF
26058 #define _LARGE_FILES $ac_cv_sys_large_files
26059 _ACEOF
26060
26061     fi
26062
26063     fi
26064
26065     { echo "$as_me:$LINENO: checking if large file support is available" >&5
26066 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
26067     if test "x$wx_largefile" = "xyes"; then
26068         cat >>confdefs.h <<\_ACEOF
26069 #define HAVE_LARGEFILE_SUPPORT 1
26070 _ACEOF
26071
26072     fi
26073     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
26074 echo "${ECHO_T}$wx_largefile" >&6; }
26075 fi
26076
26077
26078 if test "x$wx_largefile" = "xyes"; then
26079     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
26080         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
26081
26082                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
26083             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
26084 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
26085 if test "${wx_cv_STDC_EXT_required+set}" = set; then
26086   echo $ECHO_N "(cached) $ECHO_C" >&6
26087 else
26088
26089                     ac_ext=cpp
26090 ac_cpp='$CXXCPP $CPPFLAGS'
26091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26094
26095                     cat >conftest.$ac_ext <<_ACEOF
26096 /* confdefs.h.  */
26097 _ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h.  */
26101
26102 int
26103 main ()
26104 {
26105
26106                             #ifndef __STDC_EXT__
26107                                 choke me
26108                             #endif
26109
26110   ;
26111   return 0;
26112 }
26113 _ACEOF
26114 rm -f conftest.$ac_objext
26115 if { (ac_try="$ac_compile"
26116 case "(($ac_try" in
26117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26118   *) ac_try_echo=$ac_try;;
26119 esac
26120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26121   (eval "$ac_compile") 2>conftest.er1
26122   ac_status=$?
26123   grep -v '^ *+' conftest.er1 >conftest.err
26124   rm -f conftest.er1
26125   cat conftest.err >&5
26126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127   (exit $ac_status); } && {
26128          test -z "$ac_cxx_werror_flag" ||
26129          test ! -s conftest.err
26130        } && test -s conftest.$ac_objext; then
26131   wx_cv_STDC_EXT_required=no
26132 else
26133   echo "$as_me: failed program was:" >&5
26134 sed 's/^/| /' conftest.$ac_ext >&5
26135
26136         wx_cv_STDC_EXT_required=yes
26137
26138 fi
26139
26140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26141                     ac_ext=c
26142 ac_cpp='$CPP $CPPFLAGS'
26143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26146
26147
26148
26149 fi
26150 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
26151 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
26152             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
26153                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
26154             fi
26155         fi
26156     else
26157         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
26158     fi
26159         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
26160 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
26161 if test "${ac_cv_sys_largefile_source+set}" = set; then
26162   echo $ECHO_N "(cached) $ECHO_C" >&6
26163 else
26164   while :; do
26165   cat >conftest.$ac_ext <<_ACEOF
26166 /* confdefs.h.  */
26167 _ACEOF
26168 cat confdefs.h >>conftest.$ac_ext
26169 cat >>conftest.$ac_ext <<_ACEOF
26170 /* end confdefs.h.  */
26171 #include <sys/types.h> /* for off_t */
26172      #include <stdio.h>
26173 int
26174 main ()
26175 {
26176 int (*fp) (FILE *, off_t, int) = fseeko;
26177      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26178   ;
26179   return 0;
26180 }
26181 _ACEOF
26182 rm -f conftest.$ac_objext conftest$ac_exeext
26183 if { (ac_try="$ac_link"
26184 case "(($ac_try" in
26185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26186   *) ac_try_echo=$ac_try;;
26187 esac
26188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26189   (eval "$ac_link") 2>conftest.er1
26190   ac_status=$?
26191   grep -v '^ *+' conftest.er1 >conftest.err
26192   rm -f conftest.er1
26193   cat conftest.err >&5
26194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195   (exit $ac_status); } && {
26196          test -z "$ac_c_werror_flag" ||
26197          test ! -s conftest.err
26198        } && test -s conftest$ac_exeext &&
26199        $as_test_x conftest$ac_exeext; then
26200   ac_cv_sys_largefile_source=no; break
26201 else
26202   echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26204
26205
26206 fi
26207
26208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26209       conftest$ac_exeext conftest.$ac_ext
26210   cat >conftest.$ac_ext <<_ACEOF
26211 /* confdefs.h.  */
26212 _ACEOF
26213 cat confdefs.h >>conftest.$ac_ext
26214 cat >>conftest.$ac_ext <<_ACEOF
26215 /* end confdefs.h.  */
26216 #define _LARGEFILE_SOURCE 1
26217 #include <sys/types.h> /* for off_t */
26218      #include <stdio.h>
26219 int
26220 main ()
26221 {
26222 int (*fp) (FILE *, off_t, int) = fseeko;
26223      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26224   ;
26225   return 0;
26226 }
26227 _ACEOF
26228 rm -f conftest.$ac_objext conftest$ac_exeext
26229 if { (ac_try="$ac_link"
26230 case "(($ac_try" in
26231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26232   *) ac_try_echo=$ac_try;;
26233 esac
26234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26235   (eval "$ac_link") 2>conftest.er1
26236   ac_status=$?
26237   grep -v '^ *+' conftest.er1 >conftest.err
26238   rm -f conftest.er1
26239   cat conftest.err >&5
26240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241   (exit $ac_status); } && {
26242          test -z "$ac_c_werror_flag" ||
26243          test ! -s conftest.err
26244        } && test -s conftest$ac_exeext &&
26245        $as_test_x conftest$ac_exeext; then
26246   ac_cv_sys_largefile_source=1; break
26247 else
26248   echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26250
26251
26252 fi
26253
26254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26255       conftest$ac_exeext conftest.$ac_ext
26256   ac_cv_sys_largefile_source=unknown
26257   break
26258 done
26259 fi
26260 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
26261 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
26262 case $ac_cv_sys_largefile_source in #(
26263   no | unknown) ;;
26264   *)
26265 cat >>confdefs.h <<_ACEOF
26266 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
26267 _ACEOF
26268 ;;
26269 esac
26270 rm -f conftest*
26271
26272 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
26273 # in glibc 2.1.3, but that breaks too many other things.
26274 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
26275 if test $ac_cv_sys_largefile_source != unknown; then
26276
26277 cat >>confdefs.h <<\_ACEOF
26278 #define HAVE_FSEEKO 1
26279 _ACEOF
26280
26281 fi
26282
26283     if test "$ac_cv_sys_largefile_source" != no; then
26284         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
26285     fi
26286 fi
26287
26288 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26289 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
26290 if test "${ac_cv_c_bigendian+set}" = set; then
26291   echo $ECHO_N "(cached) $ECHO_C" >&6
26292 else
26293   ac_cv_c_bigendian=unknown
26294 # See if sys/param.h defines the BYTE_ORDER macro.
26295 cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h.  */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h.  */
26301 #include <sys/types.h>
26302 #include <sys/param.h>
26303 int
26304 main ()
26305 {
26306
26307 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26308  bogus endian macros
26309 #endif
26310   ;
26311   return 0;
26312 }
26313 _ACEOF
26314 rm -f conftest.$ac_objext
26315 if { (ac_try="$ac_compile"
26316 case "(($ac_try" in
26317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318   *) ac_try_echo=$ac_try;;
26319 esac
26320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26321   (eval "$ac_compile") 2>conftest.er1
26322   ac_status=$?
26323   grep -v '^ *+' conftest.er1 >conftest.err
26324   rm -f conftest.er1
26325   cat conftest.err >&5
26326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327   (exit $ac_status); } && {
26328          test -z "$ac_c_werror_flag" ||
26329          test ! -s conftest.err
26330        } && test -s conftest.$ac_objext; then
26331   # It does; now see whether it defined to BIG_ENDIAN or not.
26332 cat >conftest.$ac_ext <<_ACEOF
26333 /* confdefs.h.  */
26334 _ACEOF
26335 cat confdefs.h >>conftest.$ac_ext
26336 cat >>conftest.$ac_ext <<_ACEOF
26337 /* end confdefs.h.  */
26338 #include <sys/types.h>
26339 #include <sys/param.h>
26340 int
26341 main ()
26342 {
26343
26344 #if BYTE_ORDER != BIG_ENDIAN
26345  not big endian
26346 #endif
26347   ;
26348   return 0;
26349 }
26350 _ACEOF
26351 rm -f conftest.$ac_objext
26352 if { (ac_try="$ac_compile"
26353 case "(($ac_try" in
26354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26355   *) ac_try_echo=$ac_try;;
26356 esac
26357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26358   (eval "$ac_compile") 2>conftest.er1
26359   ac_status=$?
26360   grep -v '^ *+' conftest.er1 >conftest.err
26361   rm -f conftest.er1
26362   cat conftest.err >&5
26363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364   (exit $ac_status); } && {
26365          test -z "$ac_c_werror_flag" ||
26366          test ! -s conftest.err
26367        } && test -s conftest.$ac_objext; then
26368   ac_cv_c_bigendian=yes
26369 else
26370   echo "$as_me: failed program was:" >&5
26371 sed 's/^/| /' conftest.$ac_ext >&5
26372
26373         ac_cv_c_bigendian=no
26374 fi
26375
26376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26377 else
26378   echo "$as_me: failed program was:" >&5
26379 sed 's/^/| /' conftest.$ac_ext >&5
26380
26381
26382 fi
26383
26384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26385 if test $ac_cv_c_bigendian = unknown; then
26386 if test "$cross_compiling" = yes; then
26387   ac_cv_c_bigendian=unknown
26388 else
26389   cat >conftest.$ac_ext <<_ACEOF
26390 /* confdefs.h.  */
26391 _ACEOF
26392 cat confdefs.h >>conftest.$ac_ext
26393 cat >>conftest.$ac_ext <<_ACEOF
26394 /* end confdefs.h.  */
26395 main () {
26396   /* Are we little or big endian?  From Harbison&Steele.  */
26397   union
26398   {
26399     long l;
26400     char c[sizeof (long)];
26401   } u;
26402   u.l = 1;
26403   exit (u.c[sizeof (long) - 1] == 1);
26404 }
26405 _ACEOF
26406 rm -f conftest$ac_exeext
26407 if { (ac_try="$ac_link"
26408 case "(($ac_try" in
26409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26410   *) ac_try_echo=$ac_try;;
26411 esac
26412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26413   (eval "$ac_link") 2>&5
26414   ac_status=$?
26415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26417   { (case "(($ac_try" in
26418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26419   *) ac_try_echo=$ac_try;;
26420 esac
26421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26422   (eval "$ac_try") 2>&5
26423   ac_status=$?
26424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425   (exit $ac_status); }; }; then
26426   ac_cv_c_bigendian=no
26427 else
26428   echo "$as_me: program exited with status $ac_status" >&5
26429 echo "$as_me: failed program was:" >&5
26430 sed 's/^/| /' conftest.$ac_ext >&5
26431
26432 ( exit $ac_status )
26433 ac_cv_c_bigendian=yes
26434 fi
26435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26436 fi
26437
26438
26439 fi
26440 fi
26441 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26442 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
26443 if test $ac_cv_c_bigendian = unknown; then
26444   { 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
26445 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;}
26446 fi
26447 if test $ac_cv_c_bigendian = yes; then
26448   cat >>confdefs.h <<\_ACEOF
26449 #define WORDS_BIGENDIAN 1
26450 _ACEOF
26451
26452 fi
26453
26454
26455
26456
26457     ac_ext=cpp
26458 ac_cpp='$CXXCPP $CPPFLAGS'
26459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26462
26463
26464
26465 for ac_header in iostream
26466 do
26467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26471   echo $ECHO_N "(cached) $ECHO_C" >&6
26472 else
26473   cat >conftest.$ac_ext <<_ACEOF
26474 /* confdefs.h.  */
26475 _ACEOF
26476 cat confdefs.h >>conftest.$ac_ext
26477 cat >>conftest.$ac_ext <<_ACEOF
26478 /* end confdefs.h.  */
26479
26480
26481 #include <$ac_header>
26482 _ACEOF
26483 rm -f conftest.$ac_objext
26484 if { (ac_try="$ac_compile"
26485 case "(($ac_try" in
26486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26487   *) ac_try_echo=$ac_try;;
26488 esac
26489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26490   (eval "$ac_compile") 2>conftest.er1
26491   ac_status=$?
26492   grep -v '^ *+' conftest.er1 >conftest.err
26493   rm -f conftest.er1
26494   cat conftest.err >&5
26495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496   (exit $ac_status); } && {
26497          test -z "$ac_cxx_werror_flag" ||
26498          test ! -s conftest.err
26499        } && test -s conftest.$ac_objext; then
26500   eval "$as_ac_Header=yes"
26501 else
26502   echo "$as_me: failed program was:" >&5
26503 sed 's/^/| /' conftest.$ac_ext >&5
26504
26505         eval "$as_ac_Header=no"
26506 fi
26507
26508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26509 fi
26510 ac_res=`eval echo '${'$as_ac_Header'}'`
26511                { echo "$as_me:$LINENO: result: $ac_res" >&5
26512 echo "${ECHO_T}$ac_res" >&6; }
26513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26514   cat >>confdefs.h <<_ACEOF
26515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26516 _ACEOF
26517
26518 fi
26519
26520 done
26521
26522
26523     if test "$ac_cv_header_iostream" = "yes" ; then
26524       :
26525     else
26526       cat >>confdefs.h <<\_ACEOF
26527 #define wxUSE_IOSTREAMH 1
26528 _ACEOF
26529
26530     fi
26531
26532     ac_ext=c
26533 ac_cpp='$CPP $CPPFLAGS'
26534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26537
26538
26539
26540
26541   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
26542 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
26543 if test "${wx_cv_cpp_bool+set}" = set; then
26544   echo $ECHO_N "(cached) $ECHO_C" >&6
26545 else
26546
26547
26548     ac_ext=cpp
26549 ac_cpp='$CXXCPP $CPPFLAGS'
26550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26553
26554
26555     cat >conftest.$ac_ext <<_ACEOF
26556 /* confdefs.h.  */
26557 _ACEOF
26558 cat confdefs.h >>conftest.$ac_ext
26559 cat >>conftest.$ac_ext <<_ACEOF
26560 /* end confdefs.h.  */
26561
26562
26563 int
26564 main ()
26565 {
26566
26567         bool b = true;
26568
26569         return 0;
26570
26571   ;
26572   return 0;
26573 }
26574 _ACEOF
26575 rm -f conftest.$ac_objext
26576 if { (ac_try="$ac_compile"
26577 case "(($ac_try" in
26578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26579   *) ac_try_echo=$ac_try;;
26580 esac
26581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26582   (eval "$ac_compile") 2>conftest.er1
26583   ac_status=$?
26584   grep -v '^ *+' conftest.er1 >conftest.err
26585   rm -f conftest.er1
26586   cat conftest.err >&5
26587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588   (exit $ac_status); } && {
26589          test -z "$ac_cxx_werror_flag" ||
26590          test ! -s conftest.err
26591        } && test -s conftest.$ac_objext; then
26592
26593         wx_cv_cpp_bool=yes
26594
26595 else
26596   echo "$as_me: failed program was:" >&5
26597 sed 's/^/| /' conftest.$ac_ext >&5
26598
26599
26600         wx_cv_cpp_bool=no
26601
26602
26603 fi
26604
26605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26606
26607     ac_ext=c
26608 ac_cpp='$CPP $CPPFLAGS'
26609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26612
26613
26614 fi
26615 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
26616 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
26617
26618   if test "$wx_cv_cpp_bool" = "yes"; then
26619     cat >>confdefs.h <<\_ACEOF
26620 #define HAVE_BOOL 1
26621 _ACEOF
26622
26623   fi
26624
26625
26626
26627   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
26628 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
26629 if test "${wx_cv_explicit+set}" = set; then
26630   echo $ECHO_N "(cached) $ECHO_C" >&6
26631 else
26632
26633
26634     ac_ext=cpp
26635 ac_cpp='$CXXCPP $CPPFLAGS'
26636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26639
26640
26641             cat >conftest.$ac_ext <<_ACEOF
26642 /* confdefs.h.  */
26643 _ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h.  */
26647
26648         class Foo { public: explicit Foo(int) {} };
26649
26650 int
26651 main ()
26652 {
26653
26654         return 0;
26655
26656   ;
26657   return 0;
26658 }
26659 _ACEOF
26660 rm -f conftest.$ac_objext
26661 if { (ac_try="$ac_compile"
26662 case "(($ac_try" in
26663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26664   *) ac_try_echo=$ac_try;;
26665 esac
26666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26667   (eval "$ac_compile") 2>conftest.er1
26668   ac_status=$?
26669   grep -v '^ *+' conftest.er1 >conftest.err
26670   rm -f conftest.er1
26671   cat conftest.err >&5
26672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673   (exit $ac_status); } && {
26674          test -z "$ac_cxx_werror_flag" ||
26675          test ! -s conftest.err
26676        } && test -s conftest.$ac_objext; then
26677
26678         cat >conftest.$ac_ext <<_ACEOF
26679 /* confdefs.h.  */
26680 _ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h.  */
26684
26685                 class Foo { public: explicit Foo(int) {} };
26686                 static void TakeFoo(const Foo& foo) { }
26687
26688 int
26689 main ()
26690 {
26691
26692                 TakeFoo(17);
26693                 return 0;
26694
26695   ;
26696   return 0;
26697 }
26698 _ACEOF
26699 rm -f conftest.$ac_objext
26700 if { (ac_try="$ac_compile"
26701 case "(($ac_try" in
26702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703   *) ac_try_echo=$ac_try;;
26704 esac
26705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706   (eval "$ac_compile") 2>conftest.er1
26707   ac_status=$?
26708   grep -v '^ *+' conftest.er1 >conftest.err
26709   rm -f conftest.er1
26710   cat conftest.err >&5
26711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712   (exit $ac_status); } && {
26713          test -z "$ac_cxx_werror_flag" ||
26714          test ! -s conftest.err
26715        } && test -s conftest.$ac_objext; then
26716   wx_cv_explicit=no
26717 else
26718   echo "$as_me: failed program was:" >&5
26719 sed 's/^/| /' conftest.$ac_ext >&5
26720
26721         wx_cv_explicit=yes
26722
26723 fi
26724
26725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26726
26727 else
26728   echo "$as_me: failed program was:" >&5
26729 sed 's/^/| /' conftest.$ac_ext >&5
26730
26731         wx_cv_explicit=no
26732
26733 fi
26734
26735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26736
26737     ac_ext=c
26738 ac_cpp='$CPP $CPPFLAGS'
26739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26742
26743
26744 fi
26745 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
26746 echo "${ECHO_T}$wx_cv_explicit" >&6; }
26747
26748   if test "$wx_cv_explicit" = "yes"; then
26749     cat >>confdefs.h <<\_ACEOF
26750 #define HAVE_EXPLICIT 1
26751 _ACEOF
26752
26753   fi
26754
26755
26756 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
26757 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
26758 if test "${ac_cv_cxx_const_cast+set}" = set; then
26759   echo $ECHO_N "(cached) $ECHO_C" >&6
26760 else
26761
26762  ac_ext=cpp
26763 ac_cpp='$CXXCPP $CPPFLAGS'
26764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26767
26768  cat >conftest.$ac_ext <<_ACEOF
26769 /* confdefs.h.  */
26770 _ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h.  */
26774
26775 int
26776 main ()
26777 {
26778 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
26779   ;
26780   return 0;
26781 }
26782 _ACEOF
26783 rm -f conftest.$ac_objext
26784 if { (ac_try="$ac_compile"
26785 case "(($ac_try" in
26786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787   *) ac_try_echo=$ac_try;;
26788 esac
26789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790   (eval "$ac_compile") 2>conftest.er1
26791   ac_status=$?
26792   grep -v '^ *+' conftest.er1 >conftest.err
26793   rm -f conftest.er1
26794   cat conftest.err >&5
26795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796   (exit $ac_status); } && {
26797          test -z "$ac_cxx_werror_flag" ||
26798          test ! -s conftest.err
26799        } && test -s conftest.$ac_objext; then
26800   ac_cv_cxx_const_cast=yes
26801 else
26802   echo "$as_me: failed program was:" >&5
26803 sed 's/^/| /' conftest.$ac_ext >&5
26804
26805         ac_cv_cxx_const_cast=no
26806 fi
26807
26808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26809  ac_ext=c
26810 ac_cpp='$CPP $CPPFLAGS'
26811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26814
26815
26816 fi
26817 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
26818 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
26819 if test "$ac_cv_cxx_const_cast" = yes; then
26820
26821 cat >>confdefs.h <<\_ACEOF
26822 #define HAVE_CONST_CAST
26823 _ACEOF
26824
26825 fi
26826
26827 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
26828 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
26829 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
26830   echo $ECHO_N "(cached) $ECHO_C" >&6
26831 else
26832
26833  ac_ext=cpp
26834 ac_cpp='$CXXCPP $CPPFLAGS'
26835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26838
26839  cat >conftest.$ac_ext <<_ACEOF
26840 /* confdefs.h.  */
26841 _ACEOF
26842 cat confdefs.h >>conftest.$ac_ext
26843 cat >>conftest.$ac_ext <<_ACEOF
26844 /* end confdefs.h.  */
26845 #include <typeinfo>
26846 class Base { public : Base () {} virtual void f () = 0;};
26847 class Derived : public Base { public : Derived () {} virtual void f () {} };
26848 class Unrelated { public : Unrelated () {} };
26849 int g (Unrelated&) { return 0; }
26850 int
26851 main ()
26852 {
26853
26854 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
26855   ;
26856   return 0;
26857 }
26858 _ACEOF
26859 rm -f conftest.$ac_objext
26860 if { (ac_try="$ac_compile"
26861 case "(($ac_try" in
26862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26863   *) ac_try_echo=$ac_try;;
26864 esac
26865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26866   (eval "$ac_compile") 2>conftest.er1
26867   ac_status=$?
26868   grep -v '^ *+' conftest.er1 >conftest.err
26869   rm -f conftest.er1
26870   cat conftest.err >&5
26871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872   (exit $ac_status); } && {
26873          test -z "$ac_cxx_werror_flag" ||
26874          test ! -s conftest.err
26875        } && test -s conftest.$ac_objext; then
26876   ac_cv_cxx_reinterpret_cast=yes
26877 else
26878   echo "$as_me: failed program was:" >&5
26879 sed 's/^/| /' conftest.$ac_ext >&5
26880
26881         ac_cv_cxx_reinterpret_cast=no
26882 fi
26883
26884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26885  ac_ext=c
26886 ac_cpp='$CPP $CPPFLAGS'
26887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26890
26891
26892 fi
26893 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
26894 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
26895 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
26896
26897 cat >>confdefs.h <<\_ACEOF
26898 #define HAVE_REINTERPRET_CAST
26899 _ACEOF
26900
26901 fi
26902
26903 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
26904 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
26905 if test "${ac_cv_cxx_static_cast+set}" = set; then
26906   echo $ECHO_N "(cached) $ECHO_C" >&6
26907 else
26908
26909  ac_ext=cpp
26910 ac_cpp='$CXXCPP $CPPFLAGS'
26911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26914
26915  cat >conftest.$ac_ext <<_ACEOF
26916 /* confdefs.h.  */
26917 _ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h.  */
26921 #include <typeinfo>
26922 class Base { public : Base () {} virtual void f () = 0; };
26923 class Derived : public Base { public : Derived () {} virtual void f () {} };
26924 int g (Derived&) { return 0; }
26925 int
26926 main ()
26927 {
26928
26929 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
26930   ;
26931   return 0;
26932 }
26933 _ACEOF
26934 rm -f conftest.$ac_objext
26935 if { (ac_try="$ac_compile"
26936 case "(($ac_try" in
26937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938   *) ac_try_echo=$ac_try;;
26939 esac
26940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941   (eval "$ac_compile") 2>conftest.er1
26942   ac_status=$?
26943   grep -v '^ *+' conftest.er1 >conftest.err
26944   rm -f conftest.er1
26945   cat conftest.err >&5
26946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947   (exit $ac_status); } && {
26948          test -z "$ac_cxx_werror_flag" ||
26949          test ! -s conftest.err
26950        } && test -s conftest.$ac_objext; then
26951   ac_cv_cxx_static_cast=yes
26952 else
26953   echo "$as_me: failed program was:" >&5
26954 sed 's/^/| /' conftest.$ac_ext >&5
26955
26956         ac_cv_cxx_static_cast=no
26957 fi
26958
26959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26960  ac_ext=c
26961 ac_cpp='$CPP $CPPFLAGS'
26962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26965
26966
26967 fi
26968 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
26969 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
26970 if test "$ac_cv_cxx_static_cast" = yes; then
26971
26972 cat >>confdefs.h <<\_ACEOF
26973 #define HAVE_STATIC_CAST
26974 _ACEOF
26975
26976 fi
26977
26978
26979 if test "x$SUNCXX" = xyes; then
26980     CXXFLAGS="-features=tmplife $CXXFLAGS"
26981 fi
26982
26983 if test "x$SUNCC" = xyes; then
26984     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
26985 fi
26986
26987 if test "x$SGICC" = "xyes"; then
26988     CFLAGS="-woff 3970 $CFLAGS"
26989 fi
26990 if test "x$SGICXX" = "xyes"; then
26991     CXXFLAGS="-woff 3970 $CXXFLAGS"
26992 fi
26993
26994 if test "x$HPCC" = "xyes"; then
26995                     CFLAGS="+W 2011,2450 $CFLAGS"
26996 fi
26997 if test "x$HPCXX" = "xyes"; then
26998             CXXFLAGS="+W 2340 $CXXFLAGS"
26999 fi
27000
27001 if test "x$COMPAQCXX" = "xyes"; then
27002                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
27003 fi
27004
27005 ac_ext=cpp
27006 ac_cpp='$CXXCPP $CPPFLAGS'
27007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27010
27011
27012 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
27013     if test "$wxUSE_UNICODE" = "yes"; then
27014         std_string="std::wstring"
27015         char_type="wchar_t"
27016     else
27017         std_string="std::string"
27018         char_type="char"
27019     fi
27020
27021         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
27022 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
27023 if test "${wx_cv_class_stdstring+set}" = set; then
27024   echo $ECHO_N "(cached) $ECHO_C" >&6
27025 else
27026
27027             cat >conftest.$ac_ext <<_ACEOF
27028 /* confdefs.h.  */
27029 _ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h.  */
27033 #include <string>
27034 int
27035 main ()
27036 {
27037 $std_string foo;
27038   ;
27039   return 0;
27040 }
27041 _ACEOF
27042 rm -f conftest.$ac_objext
27043 if { (ac_try="$ac_compile"
27044 case "(($ac_try" in
27045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27046   *) ac_try_echo=$ac_try;;
27047 esac
27048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27049   (eval "$ac_compile") 2>conftest.er1
27050   ac_status=$?
27051   grep -v '^ *+' conftest.er1 >conftest.err
27052   rm -f conftest.er1
27053   cat conftest.err >&5
27054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055   (exit $ac_status); } && {
27056          test -z "$ac_cxx_werror_flag" ||
27057          test ! -s conftest.err
27058        } && test -s conftest.$ac_objext; then
27059   wx_cv_class_stdstring=yes
27060 else
27061   echo "$as_me: failed program was:" >&5
27062 sed 's/^/| /' conftest.$ac_ext >&5
27063
27064         wx_cv_class_stdstring=no
27065
27066 fi
27067
27068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27069
27070
27071 fi
27072 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
27073 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
27074
27075     if test "$wx_cv_class_stdstring" = yes; then
27076         if test "$wxUSE_UNICODE" = "yes"; then
27077             cat >>confdefs.h <<\_ACEOF
27078 #define HAVE_STD_WSTRING 1
27079 _ACEOF
27080
27081         fi
27082                     else
27083         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
27084 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
27085 if test "${wx_cv_class_stdbasicstring+set}" = set; then
27086   echo $ECHO_N "(cached) $ECHO_C" >&6
27087 else
27088
27089                 cat >conftest.$ac_ext <<_ACEOF
27090 /* confdefs.h.  */
27091 _ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h.  */
27095
27096                     #ifdef HAVE_WCHAR_H
27097                     #  ifdef __CYGWIN__
27098                     #    include <stddef.h>
27099                     #  endif
27100                     #  include <wchar.h>
27101                     #endif
27102                     #ifdef HAVE_STDLIB_H
27103                     #  include <stdlib.h>
27104                     #endif
27105                     #include <stdio.h>
27106                     #include <string>
27107
27108 int
27109 main ()
27110 {
27111 std::basic_string<$char_type> foo;
27112                      const $char_type* dummy = foo.c_str();
27113   ;
27114   return 0;
27115 }
27116 _ACEOF
27117 rm -f conftest.$ac_objext
27118 if { (ac_try="$ac_compile"
27119 case "(($ac_try" in
27120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121   *) ac_try_echo=$ac_try;;
27122 esac
27123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124   (eval "$ac_compile") 2>conftest.er1
27125   ac_status=$?
27126   grep -v '^ *+' conftest.er1 >conftest.err
27127   rm -f conftest.er1
27128   cat conftest.err >&5
27129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); } && {
27131          test -z "$ac_cxx_werror_flag" ||
27132          test ! -s conftest.err
27133        } && test -s conftest.$ac_objext; then
27134   wx_cv_class_stdbasicstring=yes
27135 else
27136   echo "$as_me: failed program was:" >&5
27137 sed 's/^/| /' conftest.$ac_ext >&5
27138
27139         wx_cv_class_stdbasicstring=no
27140
27141 fi
27142
27143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27144
27145
27146 fi
27147 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
27148 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
27149
27150         if test "$wx_cv_class_stdbasicstring" != yes; then
27151             if test "$wxUSE_STL" = "yes"; then
27152                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
27153 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
27154    { (exit 1); exit 1; }; }
27155             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
27156                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
27157 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
27158    { (exit 1); exit 1; }; }
27159             else
27160                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
27161 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
27162                 wxUSE_STD_STRING=no
27163             fi
27164         fi
27165     fi
27166 fi
27167
27168 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
27169     { echo "$as_me:$LINENO: checking for std::istream" >&5
27170 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
27171 if test "${ac_cv_type_std__istream+set}" = set; then
27172   echo $ECHO_N "(cached) $ECHO_C" >&6
27173 else
27174   cat >conftest.$ac_ext <<_ACEOF
27175 /* confdefs.h.  */
27176 _ACEOF
27177 cat confdefs.h >>conftest.$ac_ext
27178 cat >>conftest.$ac_ext <<_ACEOF
27179 /* end confdefs.h.  */
27180 #include <iostream>
27181
27182 typedef std::istream ac__type_new_;
27183 int
27184 main ()
27185 {
27186 if ((ac__type_new_ *) 0)
27187   return 0;
27188 if (sizeof (ac__type_new_))
27189   return 0;
27190   ;
27191   return 0;
27192 }
27193 _ACEOF
27194 rm -f conftest.$ac_objext
27195 if { (ac_try="$ac_compile"
27196 case "(($ac_try" in
27197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198   *) ac_try_echo=$ac_try;;
27199 esac
27200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201   (eval "$ac_compile") 2>conftest.er1
27202   ac_status=$?
27203   grep -v '^ *+' conftest.er1 >conftest.err
27204   rm -f conftest.er1
27205   cat conftest.err >&5
27206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207   (exit $ac_status); } && {
27208          test -z "$ac_cxx_werror_flag" ||
27209          test ! -s conftest.err
27210        } && test -s conftest.$ac_objext; then
27211   ac_cv_type_std__istream=yes
27212 else
27213   echo "$as_me: failed program was:" >&5
27214 sed 's/^/| /' conftest.$ac_ext >&5
27215
27216         ac_cv_type_std__istream=no
27217 fi
27218
27219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27220 fi
27221 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
27222 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
27223 if test $ac_cv_type_std__istream = yes; then
27224
27225 cat >>confdefs.h <<_ACEOF
27226 #define HAVE_STD__ISTREAM 1
27227 _ACEOF
27228
27229
27230 else
27231   wxUSE_STD_IOSTREAM=no
27232 fi
27233 { echo "$as_me:$LINENO: checking for std::ostream" >&5
27234 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
27235 if test "${ac_cv_type_std__ostream+set}" = set; then
27236   echo $ECHO_N "(cached) $ECHO_C" >&6
27237 else
27238   cat >conftest.$ac_ext <<_ACEOF
27239 /* confdefs.h.  */
27240 _ACEOF
27241 cat confdefs.h >>conftest.$ac_ext
27242 cat >>conftest.$ac_ext <<_ACEOF
27243 /* end confdefs.h.  */
27244 #include <iostream>
27245
27246 typedef std::ostream ac__type_new_;
27247 int
27248 main ()
27249 {
27250 if ((ac__type_new_ *) 0)
27251   return 0;
27252 if (sizeof (ac__type_new_))
27253   return 0;
27254   ;
27255   return 0;
27256 }
27257 _ACEOF
27258 rm -f conftest.$ac_objext
27259 if { (ac_try="$ac_compile"
27260 case "(($ac_try" in
27261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262   *) ac_try_echo=$ac_try;;
27263 esac
27264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27265   (eval "$ac_compile") 2>conftest.er1
27266   ac_status=$?
27267   grep -v '^ *+' conftest.er1 >conftest.err
27268   rm -f conftest.er1
27269   cat conftest.err >&5
27270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); } && {
27272          test -z "$ac_cxx_werror_flag" ||
27273          test ! -s conftest.err
27274        } && test -s conftest.$ac_objext; then
27275   ac_cv_type_std__ostream=yes
27276 else
27277   echo "$as_me: failed program was:" >&5
27278 sed 's/^/| /' conftest.$ac_ext >&5
27279
27280         ac_cv_type_std__ostream=no
27281 fi
27282
27283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27284 fi
27285 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
27286 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
27287 if test $ac_cv_type_std__ostream = yes; then
27288
27289 cat >>confdefs.h <<_ACEOF
27290 #define HAVE_STD__OSTREAM 1
27291 _ACEOF
27292
27293
27294 else
27295   wxUSE_STD_IOSTREAM=no
27296 fi
27297
27298
27299     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
27300         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
27301             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
27302 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
27303    { (exit 1); exit 1; }; }
27304         else
27305             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
27306 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
27307         fi
27308     fi
27309 fi
27310
27311 if test "$wxUSE_STL" = "yes"; then
27312         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
27313 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
27314 if test "${wx_cv_lib_stl+set}" = set; then
27315   echo $ECHO_N "(cached) $ECHO_C" >&6
27316 else
27317   cat >conftest.$ac_ext <<_ACEOF
27318 /* confdefs.h.  */
27319 _ACEOF
27320 cat confdefs.h >>conftest.$ac_ext
27321 cat >>conftest.$ac_ext <<_ACEOF
27322 /* end confdefs.h.  */
27323 #include <string>
27324             #include <functional>
27325             #include <algorithm>
27326             #include <vector>
27327             #include <list>
27328 int
27329 main ()
27330 {
27331 std::vector<int> moo;
27332              std::list<int> foo;
27333              std::vector<int>::iterator it =
27334                  std::find_if(moo.begin(), moo.end(),
27335                               std::bind2nd(std::less<int>(), 3));
27336   ;
27337   return 0;
27338 }
27339 _ACEOF
27340 rm -f conftest.$ac_objext
27341 if { (ac_try="$ac_compile"
27342 case "(($ac_try" in
27343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27344   *) ac_try_echo=$ac_try;;
27345 esac
27346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27347   (eval "$ac_compile") 2>conftest.er1
27348   ac_status=$?
27349   grep -v '^ *+' conftest.er1 >conftest.err
27350   rm -f conftest.er1
27351   cat conftest.err >&5
27352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353   (exit $ac_status); } && {
27354          test -z "$ac_cxx_werror_flag" ||
27355          test ! -s conftest.err
27356        } && test -s conftest.$ac_objext; then
27357   wx_cv_lib_stl=yes
27358 else
27359   echo "$as_me: failed program was:" >&5
27360 sed 's/^/| /' conftest.$ac_ext >&5
27361
27362         wx_cv_lib_stl=no
27363
27364 fi
27365
27366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27367
27368 fi
27369 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
27370 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
27371
27372     if test "$wx_cv_lib_stl" != yes; then
27373          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
27374 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
27375    { (exit 1); exit 1; }; }
27376     fi
27377
27378         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
27379 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
27380 if test "${wx_cv_func_stdstring_compare+set}" = set; then
27381   echo $ECHO_N "(cached) $ECHO_C" >&6
27382 else
27383   cat >conftest.$ac_ext <<_ACEOF
27384 /* confdefs.h.  */
27385 _ACEOF
27386 cat confdefs.h >>conftest.$ac_ext
27387 cat >>conftest.$ac_ext <<_ACEOF
27388 /* end confdefs.h.  */
27389 #include <string>
27390 int
27391 main ()
27392 {
27393 std::string foo, bar;
27394             foo.compare(bar);
27395             foo.compare(1, 1, bar);
27396             foo.compare(1, 1, bar, 1, 1);
27397             foo.compare("");
27398             foo.compare(1, 1, "");
27399             foo.compare(1, 1, "", 2);
27400   ;
27401   return 0;
27402 }
27403 _ACEOF
27404 rm -f conftest.$ac_objext
27405 if { (ac_try="$ac_compile"
27406 case "(($ac_try" in
27407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408   *) ac_try_echo=$ac_try;;
27409 esac
27410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411   (eval "$ac_compile") 2>conftest.er1
27412   ac_status=$?
27413   grep -v '^ *+' conftest.er1 >conftest.err
27414   rm -f conftest.er1
27415   cat conftest.err >&5
27416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417   (exit $ac_status); } && {
27418          test -z "$ac_cxx_werror_flag" ||
27419          test ! -s conftest.err
27420        } && test -s conftest.$ac_objext; then
27421   wx_cv_func_stdstring_compare=yes
27422 else
27423   echo "$as_me: failed program was:" >&5
27424 sed 's/^/| /' conftest.$ac_ext >&5
27425
27426         wx_cv_func_stdstring_compare=no
27427
27428 fi
27429
27430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27431
27432 fi
27433 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
27434 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
27435
27436     if test "$wx_cv_func_stdstring_compare" = yes; then
27437         cat >>confdefs.h <<\_ACEOF
27438 #define HAVE_STD_STRING_COMPARE 1
27439 _ACEOF
27440
27441     fi
27442
27443         { echo "$as_me:$LINENO: checking for hash_map" >&5
27444 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
27445 if test "${ac_cv_header_hash_map+set}" = set; then
27446   echo $ECHO_N "(cached) $ECHO_C" >&6
27447 else
27448   cat >conftest.$ac_ext <<_ACEOF
27449 /* confdefs.h.  */
27450 _ACEOF
27451 cat confdefs.h >>conftest.$ac_ext
27452 cat >>conftest.$ac_ext <<_ACEOF
27453 /* end confdefs.h.  */
27454
27455
27456
27457 #include <hash_map>
27458 _ACEOF
27459 rm -f conftest.$ac_objext
27460 if { (ac_try="$ac_compile"
27461 case "(($ac_try" in
27462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27463   *) ac_try_echo=$ac_try;;
27464 esac
27465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27466   (eval "$ac_compile") 2>conftest.er1
27467   ac_status=$?
27468   grep -v '^ *+' conftest.er1 >conftest.err
27469   rm -f conftest.er1
27470   cat conftest.err >&5
27471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); } && {
27473          test -z "$ac_cxx_werror_flag" ||
27474          test ! -s conftest.err
27475        } && test -s conftest.$ac_objext; then
27476   ac_cv_header_hash_map=yes
27477 else
27478   echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.$ac_ext >&5
27480
27481         ac_cv_header_hash_map=no
27482 fi
27483
27484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27485 fi
27486 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
27487 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
27488 if test $ac_cv_header_hash_map = yes; then
27489   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
27490 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
27491 if test "${wx_cv_class_stdhashmapset+set}" = set; then
27492   echo $ECHO_N "(cached) $ECHO_C" >&6
27493 else
27494   cat >conftest.$ac_ext <<_ACEOF
27495 /* confdefs.h.  */
27496 _ACEOF
27497 cat confdefs.h >>conftest.$ac_ext
27498 cat >>conftest.$ac_ext <<_ACEOF
27499 /* end confdefs.h.  */
27500 #include <hash_map>
27501                 #include <hash_set>
27502 int
27503 main ()
27504 {
27505 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
27506                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
27507   ;
27508   return 0;
27509 }
27510 _ACEOF
27511 rm -f conftest.$ac_objext
27512 if { (ac_try="$ac_compile"
27513 case "(($ac_try" in
27514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515   *) ac_try_echo=$ac_try;;
27516 esac
27517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518   (eval "$ac_compile") 2>conftest.er1
27519   ac_status=$?
27520   grep -v '^ *+' conftest.er1 >conftest.err
27521   rm -f conftest.er1
27522   cat conftest.err >&5
27523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); } && {
27525          test -z "$ac_cxx_werror_flag" ||
27526          test ! -s conftest.err
27527        } && test -s conftest.$ac_objext; then
27528   wx_cv_class_stdhashmapset=yes
27529 else
27530   echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27532
27533         wx_cv_class_stdhashmapset=no
27534 fi
27535
27536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27537
27538
27539 fi
27540 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
27541 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
27542 fi
27543
27544
27545
27546     if test "$wx_cv_class_stdhashmapset" = yes; then
27547         cat >>confdefs.h <<\_ACEOF
27548 #define HAVE_HASH_MAP 1
27549 _ACEOF
27550
27551         cat >>confdefs.h <<\_ACEOF
27552 #define HAVE_STD_HASH_MAP 1
27553 _ACEOF
27554
27555     fi
27556
27557     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27558 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
27559 if test "${ac_cv_header_ext_hash_map+set}" = set; then
27560   echo $ECHO_N "(cached) $ECHO_C" >&6
27561 else
27562   cat >conftest.$ac_ext <<_ACEOF
27563 /* confdefs.h.  */
27564 _ACEOF
27565 cat confdefs.h >>conftest.$ac_ext
27566 cat >>conftest.$ac_ext <<_ACEOF
27567 /* end confdefs.h.  */
27568
27569
27570
27571 #include <ext/hash_map>
27572 _ACEOF
27573 rm -f conftest.$ac_objext
27574 if { (ac_try="$ac_compile"
27575 case "(($ac_try" in
27576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577   *) ac_try_echo=$ac_try;;
27578 esac
27579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27580   (eval "$ac_compile") 2>conftest.er1
27581   ac_status=$?
27582   grep -v '^ *+' conftest.er1 >conftest.err
27583   rm -f conftest.er1
27584   cat conftest.err >&5
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); } && {
27587          test -z "$ac_cxx_werror_flag" ||
27588          test ! -s conftest.err
27589        } && test -s conftest.$ac_objext; then
27590   ac_cv_header_ext_hash_map=yes
27591 else
27592   echo "$as_me: failed program was:" >&5
27593 sed 's/^/| /' conftest.$ac_ext >&5
27594
27595         ac_cv_header_ext_hash_map=no
27596 fi
27597
27598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27599 fi
27600 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27601 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
27602 if test $ac_cv_header_ext_hash_map = yes; then
27603   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
27604 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
27605 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
27606   echo $ECHO_N "(cached) $ECHO_C" >&6
27607 else
27608   cat >conftest.$ac_ext <<_ACEOF
27609 /* confdefs.h.  */
27610 _ACEOF
27611 cat confdefs.h >>conftest.$ac_ext
27612 cat >>conftest.$ac_ext <<_ACEOF
27613 /* end confdefs.h.  */
27614 #include <ext/hash_map>
27615                 #include <ext/hash_set>
27616 int
27617 main ()
27618 {
27619 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
27620                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
27621   ;
27622   return 0;
27623 }
27624 _ACEOF
27625 rm -f conftest.$ac_objext
27626 if { (ac_try="$ac_compile"
27627 case "(($ac_try" in
27628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27629   *) ac_try_echo=$ac_try;;
27630 esac
27631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27632   (eval "$ac_compile") 2>conftest.er1
27633   ac_status=$?
27634   grep -v '^ *+' conftest.er1 >conftest.err
27635   rm -f conftest.er1
27636   cat conftest.err >&5
27637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638   (exit $ac_status); } && {
27639          test -z "$ac_cxx_werror_flag" ||
27640          test ! -s conftest.err
27641        } && test -s conftest.$ac_objext; then
27642   wx_cv_class_gnuhashmapset=yes
27643 else
27644   echo "$as_me: failed program was:" >&5
27645 sed 's/^/| /' conftest.$ac_ext >&5
27646
27647         wx_cv_class_gnuhashmapset=no
27648 fi
27649
27650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27651
27652
27653 fi
27654 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
27655 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
27656 fi
27657
27658
27659
27660     if test "$wx_cv_class_gnuhashmapset" = yes; then
27661          cat >>confdefs.h <<\_ACEOF
27662 #define HAVE_EXT_HASH_MAP 1
27663 _ACEOF
27664
27665          cat >>confdefs.h <<\_ACEOF
27666 #define HAVE_GNU_CXX_HASH_MAP 1
27667 _ACEOF
27668
27669     fi
27670 fi
27671
27672 ac_ext=c
27673 ac_cpp='$CPP $CPPFLAGS'
27674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27677
27678
27679
27680 SEARCH_INCLUDE="\
27681     /usr/local/include        \
27682                               \
27683     /usr/Motif-2.1/include    \
27684     /usr/Motif-1.2/include    \
27685     /usr/include/Motif1.2     \
27686                               \
27687     /usr/dt/include           \
27688     /usr/openwin/include      \
27689                               \
27690     /usr/include/Xm           \
27691                               \
27692     /usr/X11R6/include        \
27693     /usr/X11R6.4/include      \
27694     /usr/X11R5/include        \
27695     /usr/X11R4/include        \
27696                               \
27697     /usr/include/X11R6        \
27698     /usr/include/X11R5        \
27699     /usr/include/X11R4        \
27700                               \
27701     /usr/local/X11R6/include  \
27702     /usr/local/X11R5/include  \
27703     /usr/local/X11R4/include  \
27704                               \
27705     /usr/local/include/X11R6  \
27706     /usr/local/include/X11R5  \
27707     /usr/local/include/X11R4  \
27708                               \
27709     /usr/X11/include          \
27710     /usr/include/X11          \
27711     /usr/local/X11/include    \
27712     /usr/local/include/X11    \
27713                               \
27714     /usr/XFree86/include/X11  \
27715     /usr/pkg/include          \
27716                               \
27717     /usr/openwin/share/include"
27718
27719 { echo "$as_me:$LINENO: checking for libraries directory" >&5
27720 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
27721
27722 case "${host}" in
27723     *-*-irix6* )
27724         if test "${wx_cv_std_libpath+set}" = set; then
27725   echo $ECHO_N "(cached) $ECHO_C" >&6
27726 else
27727
27728                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27729                     for e in a so sl dylib dll.a; do
27730                         libc="$d/libc.$e"
27731                         if test -f $libc; then
27732                             save_LIBS="$LIBS"
27733                             LIBS="$libc"
27734                             cat >conftest.$ac_ext <<_ACEOF
27735 int main() { return 0; }
27736 _ACEOF
27737 rm -f conftest.$ac_objext conftest$ac_exeext
27738 if { (ac_try="$ac_link"
27739 case "(($ac_try" in
27740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741   *) ac_try_echo=$ac_try;;
27742 esac
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744   (eval "$ac_link") 2>conftest.er1
27745   ac_status=$?
27746   grep -v '^ *+' conftest.er1 >conftest.err
27747   rm -f conftest.er1
27748   cat conftest.err >&5
27749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750   (exit $ac_status); } && {
27751          test -z "$ac_c_werror_flag" ||
27752          test ! -s conftest.err
27753        } && test -s conftest$ac_exeext &&
27754        $as_test_x conftest$ac_exeext; then
27755   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27756 else
27757   echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27759
27760
27761 fi
27762
27763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27764       conftest$ac_exeext conftest.$ac_ext
27765                             LIBS="$save_LIBS"
27766                             if test "x$wx_cv_std_libpath" != "x"; then
27767                                 break 2
27768                             fi
27769                         fi
27770                     done
27771                 done
27772                 if test "x$wx_cv_std_libpath" = "x"; then
27773                     wx_cv_std_libpath="lib"
27774                 fi
27775
27776
27777 fi
27778
27779         ;;
27780
27781     *-*-solaris2* )
27782                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27783             wx_cv_std_libpath="lib/64"
27784         else
27785             wx_cv_std_libpath="lib"
27786         fi
27787         ;;
27788
27789     *-*-linux* )
27790                 if test "$ac_cv_sizeof_void_p" = 8 -a \
27791                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27792             wx_cv_std_libpath="lib64"
27793         else
27794             wx_cv_std_libpath="lib"
27795         fi
27796         ;;
27797
27798     *)
27799         wx_cv_std_libpath="lib";
27800         ;;
27801 esac
27802
27803 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27804 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
27805
27806 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
27807
27808 if test "$build" != "$host" -a "$GCC" = yes; then
27809                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27810         cross_root=`dirname $cross_root`
27811         cross_root=`dirname $cross_root`
27812
27813                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27814         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27815         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27816
27817                 if test -z "$PKG_CONFIG_PATH"; then
27818             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27819             export PKG_CONFIG_PATH
27820         fi
27821
27822                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27823
27824 ac_find_includes=
27825 for ac_dir in $SEARCH_INCLUDE /usr/include;
27826   do
27827     if test -f "$ac_dir/X11/Intrinsic.h"; then
27828       ac_find_includes=$ac_dir
27829       break
27830     fi
27831   done
27832
27833             x_includes=$ac_find_includes
27834         fi
27835         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27836
27837   ac_find_libraries=
27838   for ac_dir in $SEARCH_LIB;
27839   do
27840     for ac_extension in a so sl dylib dll.a; do
27841       if test -f "$ac_dir/libXt.$ac_extension"; then
27842         ac_find_libraries=$ac_dir
27843         break 2
27844       fi
27845     done
27846   done
27847
27848             x_libraries=$ac_find_libraries
27849         fi
27850     fi
27851 fi
27852
27853
27854 cat >confcache <<\_ACEOF
27855 # This file is a shell script that caches the results of configure
27856 # tests run on this system so they can be shared between configure
27857 # scripts and configure runs, see configure's option --config-cache.
27858 # It is not useful on other systems.  If it contains results you don't
27859 # want to keep, you may remove or edit it.
27860 #
27861 # config.status only pays attention to the cache file if you give it
27862 # the --recheck option to rerun configure.
27863 #
27864 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27865 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27866 # following values.
27867
27868 _ACEOF
27869
27870 # The following way of writing the cache mishandles newlines in values,
27871 # but we know of no workaround that is simple, portable, and efficient.
27872 # So, we kill variables containing newlines.
27873 # Ultrix sh set writes to stderr and can't be redirected directly,
27874 # and sets the high bit in the cache file unless we assign to the vars.
27875 (
27876   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27877     eval ac_val=\$$ac_var
27878     case $ac_val in #(
27879     *${as_nl}*)
27880       case $ac_var in #(
27881       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27882 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27883       esac
27884       case $ac_var in #(
27885       _ | IFS | as_nl) ;; #(
27886       *) $as_unset $ac_var ;;
27887       esac ;;
27888     esac
27889   done
27890
27891   (set) 2>&1 |
27892     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27893     *${as_nl}ac_space=\ *)
27894       # `set' does not quote correctly, so add quotes (double-quote
27895       # substitution turns \\\\ into \\, and sed turns \\ into \).
27896       sed -n \
27897         "s/'/'\\\\''/g;
27898           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27899       ;; #(
27900     *)
27901       # `set' quotes correctly as required by POSIX, so do not add quotes.
27902       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27903       ;;
27904     esac |
27905     sort
27906 ) |
27907   sed '
27908      /^ac_cv_env_/b end
27909      t clear
27910      :clear
27911      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27912      t end
27913      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27914      :end' >>confcache
27915 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27916   if test -w "$cache_file"; then
27917     test "x$cache_file" != "x/dev/null" &&
27918       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27919 echo "$as_me: updating cache $cache_file" >&6;}
27920     cat confcache >$cache_file
27921   else
27922     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27923 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27924   fi
27925 fi
27926 rm -f confcache
27927
27928 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27929     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27930 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27931 if test "${wx_cv_lib_glibc21+set}" = set; then
27932   echo $ECHO_N "(cached) $ECHO_C" >&6
27933 else
27934
27935         cat >conftest.$ac_ext <<_ACEOF
27936 /* confdefs.h.  */
27937 _ACEOF
27938 cat confdefs.h >>conftest.$ac_ext
27939 cat >>conftest.$ac_ext <<_ACEOF
27940 /* end confdefs.h.  */
27941 #include <features.h>
27942 int
27943 main ()
27944 {
27945
27946                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27947                 not glibc 2.1
27948                 #endif
27949
27950   ;
27951   return 0;
27952 }
27953 _ACEOF
27954 rm -f conftest.$ac_objext
27955 if { (ac_try="$ac_compile"
27956 case "(($ac_try" in
27957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27958   *) ac_try_echo=$ac_try;;
27959 esac
27960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27961   (eval "$ac_compile") 2>conftest.er1
27962   ac_status=$?
27963   grep -v '^ *+' conftest.er1 >conftest.err
27964   rm -f conftest.er1
27965   cat conftest.err >&5
27966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967   (exit $ac_status); } && {
27968          test -z "$ac_c_werror_flag" ||
27969          test ! -s conftest.err
27970        } && test -s conftest.$ac_objext; then
27971
27972                 wx_cv_lib_glibc21=yes
27973
27974 else
27975   echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27977
27978
27979                 wx_cv_lib_glibc21=no
27980
27981
27982 fi
27983
27984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27985
27986 fi
27987 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27988 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27989     if test "$wx_cv_lib_glibc21" = "yes"; then
27990         cat >>confdefs.h <<\_ACEOF
27991 #define wxHAVE_GLIBC2 1
27992 _ACEOF
27993
27994     fi
27995 fi
27996
27997 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27998     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27999         cat >>confdefs.h <<\_ACEOF
28000 #define _GNU_SOURCE 1
28001 _ACEOF
28002
28003     fi
28004 fi
28005
28006 have_cos=0
28007 have_floor=0
28008
28009 for ac_func in cos
28010 do
28011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28015   echo $ECHO_N "(cached) $ECHO_C" >&6
28016 else
28017   cat >conftest.$ac_ext <<_ACEOF
28018 /* confdefs.h.  */
28019 _ACEOF
28020 cat confdefs.h >>conftest.$ac_ext
28021 cat >>conftest.$ac_ext <<_ACEOF
28022 /* end confdefs.h.  */
28023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28025 #define $ac_func innocuous_$ac_func
28026
28027 /* System header to define __stub macros and hopefully few prototypes,
28028     which can conflict with char $ac_func (); below.
28029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28030     <limits.h> exists even on freestanding compilers.  */
28031
28032 #ifdef __STDC__
28033 # include <limits.h>
28034 #else
28035 # include <assert.h>
28036 #endif
28037
28038 #undef $ac_func
28039
28040 /* Override any GCC internal prototype to avoid an error.
28041    Use char because int might match the return type of a GCC
28042    builtin and then its argument prototype would still apply.  */
28043 #ifdef __cplusplus
28044 extern "C"
28045 #endif
28046 char $ac_func ();
28047 /* The GNU C library defines this for functions which it implements
28048     to always fail with ENOSYS.  Some functions are actually named
28049     something starting with __ and the normal name is an alias.  */
28050 #if defined __stub_$ac_func || defined __stub___$ac_func
28051 choke me
28052 #endif
28053
28054 int
28055 main ()
28056 {
28057 return $ac_func ();
28058   ;
28059   return 0;
28060 }
28061 _ACEOF
28062 rm -f conftest.$ac_objext conftest$ac_exeext
28063 if { (ac_try="$ac_link"
28064 case "(($ac_try" in
28065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28066   *) ac_try_echo=$ac_try;;
28067 esac
28068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28069   (eval "$ac_link") 2>conftest.er1
28070   ac_status=$?
28071   grep -v '^ *+' conftest.er1 >conftest.err
28072   rm -f conftest.er1
28073   cat conftest.err >&5
28074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075   (exit $ac_status); } && {
28076          test -z "$ac_c_werror_flag" ||
28077          test ! -s conftest.err
28078        } && test -s conftest$ac_exeext &&
28079        $as_test_x conftest$ac_exeext; then
28080   eval "$as_ac_var=yes"
28081 else
28082   echo "$as_me: failed program was:" >&5
28083 sed 's/^/| /' conftest.$ac_ext >&5
28084
28085         eval "$as_ac_var=no"
28086 fi
28087
28088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28089       conftest$ac_exeext conftest.$ac_ext
28090 fi
28091 ac_res=`eval echo '${'$as_ac_var'}'`
28092                { echo "$as_me:$LINENO: result: $ac_res" >&5
28093 echo "${ECHO_T}$ac_res" >&6; }
28094 if test `eval echo '${'$as_ac_var'}'` = yes; then
28095   cat >>confdefs.h <<_ACEOF
28096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28097 _ACEOF
28098  have_cos=1
28099 fi
28100 done
28101
28102
28103 for ac_func in floor
28104 do
28105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28109   echo $ECHO_N "(cached) $ECHO_C" >&6
28110 else
28111   cat >conftest.$ac_ext <<_ACEOF
28112 /* confdefs.h.  */
28113 _ACEOF
28114 cat confdefs.h >>conftest.$ac_ext
28115 cat >>conftest.$ac_ext <<_ACEOF
28116 /* end confdefs.h.  */
28117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28119 #define $ac_func innocuous_$ac_func
28120
28121 /* System header to define __stub macros and hopefully few prototypes,
28122     which can conflict with char $ac_func (); below.
28123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28124     <limits.h> exists even on freestanding compilers.  */
28125
28126 #ifdef __STDC__
28127 # include <limits.h>
28128 #else
28129 # include <assert.h>
28130 #endif
28131
28132 #undef $ac_func
28133
28134 /* Override any GCC internal prototype to avoid an error.
28135    Use char because int might match the return type of a GCC
28136    builtin and then its argument prototype would still apply.  */
28137 #ifdef __cplusplus
28138 extern "C"
28139 #endif
28140 char $ac_func ();
28141 /* The GNU C library defines this for functions which it implements
28142     to always fail with ENOSYS.  Some functions are actually named
28143     something starting with __ and the normal name is an alias.  */
28144 #if defined __stub_$ac_func || defined __stub___$ac_func
28145 choke me
28146 #endif
28147
28148 int
28149 main ()
28150 {
28151 return $ac_func ();
28152   ;
28153   return 0;
28154 }
28155 _ACEOF
28156 rm -f conftest.$ac_objext conftest$ac_exeext
28157 if { (ac_try="$ac_link"
28158 case "(($ac_try" in
28159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28160   *) ac_try_echo=$ac_try;;
28161 esac
28162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28163   (eval "$ac_link") 2>conftest.er1
28164   ac_status=$?
28165   grep -v '^ *+' conftest.er1 >conftest.err
28166   rm -f conftest.er1
28167   cat conftest.err >&5
28168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169   (exit $ac_status); } && {
28170          test -z "$ac_c_werror_flag" ||
28171          test ! -s conftest.err
28172        } && test -s conftest$ac_exeext &&
28173        $as_test_x conftest$ac_exeext; then
28174   eval "$as_ac_var=yes"
28175 else
28176   echo "$as_me: failed program was:" >&5
28177 sed 's/^/| /' conftest.$ac_ext >&5
28178
28179         eval "$as_ac_var=no"
28180 fi
28181
28182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28183       conftest$ac_exeext conftest.$ac_ext
28184 fi
28185 ac_res=`eval echo '${'$as_ac_var'}'`
28186                { echo "$as_me:$LINENO: result: $ac_res" >&5
28187 echo "${ECHO_T}$ac_res" >&6; }
28188 if test `eval echo '${'$as_ac_var'}'` = yes; then
28189   cat >>confdefs.h <<_ACEOF
28190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28191 _ACEOF
28192  have_floor=1
28193 fi
28194 done
28195
28196 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
28197 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
28198 if test "$have_cos" = 1 -a "$have_floor" = 1; then
28199     { echo "$as_me:$LINENO: result: yes" >&5
28200 echo "${ECHO_T}yes" >&6; }
28201 else
28202     { echo "$as_me:$LINENO: result: no" >&5
28203 echo "${ECHO_T}no" >&6; }
28204     LIBS="$LIBS -lm"
28205     # use different functions to avoid configure caching
28206     have_sin=0
28207     have_ceil=0
28208
28209 for ac_func in sin
28210 do
28211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28212 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28215   echo $ECHO_N "(cached) $ECHO_C" >&6
28216 else
28217   cat >conftest.$ac_ext <<_ACEOF
28218 /* confdefs.h.  */
28219 _ACEOF
28220 cat confdefs.h >>conftest.$ac_ext
28221 cat >>conftest.$ac_ext <<_ACEOF
28222 /* end confdefs.h.  */
28223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28224    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28225 #define $ac_func innocuous_$ac_func
28226
28227 /* System header to define __stub macros and hopefully few prototypes,
28228     which can conflict with char $ac_func (); below.
28229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28230     <limits.h> exists even on freestanding compilers.  */
28231
28232 #ifdef __STDC__
28233 # include <limits.h>
28234 #else
28235 # include <assert.h>
28236 #endif
28237
28238 #undef $ac_func
28239
28240 /* Override any GCC internal prototype to avoid an error.
28241    Use char because int might match the return type of a GCC
28242    builtin and then its argument prototype would still apply.  */
28243 #ifdef __cplusplus
28244 extern "C"
28245 #endif
28246 char $ac_func ();
28247 /* The GNU C library defines this for functions which it implements
28248     to always fail with ENOSYS.  Some functions are actually named
28249     something starting with __ and the normal name is an alias.  */
28250 #if defined __stub_$ac_func || defined __stub___$ac_func
28251 choke me
28252 #endif
28253
28254 int
28255 main ()
28256 {
28257 return $ac_func ();
28258   ;
28259   return 0;
28260 }
28261 _ACEOF
28262 rm -f conftest.$ac_objext conftest$ac_exeext
28263 if { (ac_try="$ac_link"
28264 case "(($ac_try" in
28265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266   *) ac_try_echo=$ac_try;;
28267 esac
28268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269   (eval "$ac_link") 2>conftest.er1
28270   ac_status=$?
28271   grep -v '^ *+' conftest.er1 >conftest.err
28272   rm -f conftest.er1
28273   cat conftest.err >&5
28274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275   (exit $ac_status); } && {
28276          test -z "$ac_c_werror_flag" ||
28277          test ! -s conftest.err
28278        } && test -s conftest$ac_exeext &&
28279        $as_test_x conftest$ac_exeext; then
28280   eval "$as_ac_var=yes"
28281 else
28282   echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28284
28285         eval "$as_ac_var=no"
28286 fi
28287
28288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28289       conftest$ac_exeext conftest.$ac_ext
28290 fi
28291 ac_res=`eval echo '${'$as_ac_var'}'`
28292                { echo "$as_me:$LINENO: result: $ac_res" >&5
28293 echo "${ECHO_T}$ac_res" >&6; }
28294 if test `eval echo '${'$as_ac_var'}'` = yes; then
28295   cat >>confdefs.h <<_ACEOF
28296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28297 _ACEOF
28298  have_sin=1
28299 fi
28300 done
28301
28302
28303 for ac_func in ceil
28304 do
28305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28306 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28308 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28309   echo $ECHO_N "(cached) $ECHO_C" >&6
28310 else
28311   cat >conftest.$ac_ext <<_ACEOF
28312 /* confdefs.h.  */
28313 _ACEOF
28314 cat confdefs.h >>conftest.$ac_ext
28315 cat >>conftest.$ac_ext <<_ACEOF
28316 /* end confdefs.h.  */
28317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28319 #define $ac_func innocuous_$ac_func
28320
28321 /* System header to define __stub macros and hopefully few prototypes,
28322     which can conflict with char $ac_func (); below.
28323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28324     <limits.h> exists even on freestanding compilers.  */
28325
28326 #ifdef __STDC__
28327 # include <limits.h>
28328 #else
28329 # include <assert.h>
28330 #endif
28331
28332 #undef $ac_func
28333
28334 /* Override any GCC internal prototype to avoid an error.
28335    Use char because int might match the return type of a GCC
28336    builtin and then its argument prototype would still apply.  */
28337 #ifdef __cplusplus
28338 extern "C"
28339 #endif
28340 char $ac_func ();
28341 /* The GNU C library defines this for functions which it implements
28342     to always fail with ENOSYS.  Some functions are actually named
28343     something starting with __ and the normal name is an alias.  */
28344 #if defined __stub_$ac_func || defined __stub___$ac_func
28345 choke me
28346 #endif
28347
28348 int
28349 main ()
28350 {
28351 return $ac_func ();
28352   ;
28353   return 0;
28354 }
28355 _ACEOF
28356 rm -f conftest.$ac_objext conftest$ac_exeext
28357 if { (ac_try="$ac_link"
28358 case "(($ac_try" in
28359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360   *) ac_try_echo=$ac_try;;
28361 esac
28362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28363   (eval "$ac_link") 2>conftest.er1
28364   ac_status=$?
28365   grep -v '^ *+' conftest.er1 >conftest.err
28366   rm -f conftest.er1
28367   cat conftest.err >&5
28368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369   (exit $ac_status); } && {
28370          test -z "$ac_c_werror_flag" ||
28371          test ! -s conftest.err
28372        } && test -s conftest$ac_exeext &&
28373        $as_test_x conftest$ac_exeext; then
28374   eval "$as_ac_var=yes"
28375 else
28376   echo "$as_me: failed program was:" >&5
28377 sed 's/^/| /' conftest.$ac_ext >&5
28378
28379         eval "$as_ac_var=no"
28380 fi
28381
28382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28383       conftest$ac_exeext conftest.$ac_ext
28384 fi
28385 ac_res=`eval echo '${'$as_ac_var'}'`
28386                { echo "$as_me:$LINENO: result: $ac_res" >&5
28387 echo "${ECHO_T}$ac_res" >&6; }
28388 if test `eval echo '${'$as_ac_var'}'` = yes; then
28389   cat >>confdefs.h <<_ACEOF
28390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28391 _ACEOF
28392  have_ceil=1
28393 fi
28394 done
28395
28396     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
28397 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
28398     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28399         { echo "$as_me:$LINENO: result: yes" >&5
28400 echo "${ECHO_T}yes" >&6; }
28401     else
28402         { echo "$as_me:$LINENO: result: no" >&5
28403 echo "${ECHO_T}no" >&6; }
28404         # not sure we should warn the user, crash, etc.
28405     fi
28406 fi
28407
28408 ac_ext=cpp
28409 ac_cpp='$CXXCPP $CPPFLAGS'
28410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28413
28414 if test "wxUSE_UNICODE" = "yes"; then
28415
28416   for wx_func in wcstoull
28417   do
28418     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28419 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28420 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28421   echo $ECHO_N "(cached) $ECHO_C" >&6
28422 else
28423
28424         cat >conftest.$ac_ext <<_ACEOF
28425
28426             /* confdefs.h.  */
28427 _ACEOF
28428 cat confdefs.h >>conftest.$ac_ext
28429 cat >>conftest.$ac_ext <<_ACEOF
28430 /* end confdefs.h.  */
28431
28432
28433                 $ac_includes_default
28434
28435 int
28436 main ()
28437 {
28438
28439                 #ifndef $wx_func
28440                   &$wx_func;
28441                 #endif
28442
28443
28444   ;
28445   return 0;
28446 }
28447
28448 _ACEOF
28449 rm -f conftest.$ac_objext conftest$ac_exeext
28450 if { (ac_try="$ac_link"
28451 case "(($ac_try" in
28452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28453   *) ac_try_echo=$ac_try;;
28454 esac
28455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28456   (eval "$ac_link") 2>conftest.er1
28457   ac_status=$?
28458   grep -v '^ *+' conftest.er1 >conftest.err
28459   rm -f conftest.er1
28460   cat conftest.err >&5
28461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462   (exit $ac_status); } && {
28463          test -z "$ac_cxx_werror_flag" ||
28464          test ! -s conftest.err
28465        } && test -s conftest$ac_exeext &&
28466        $as_test_x conftest$ac_exeext; then
28467   eval wx_cv_func_$wx_func=yes
28468 else
28469   echo "$as_me: failed program was:" >&5
28470 sed 's/^/| /' conftest.$ac_ext >&5
28471
28472         eval wx_cv_func_$wx_func=no
28473 fi
28474
28475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28476       conftest$ac_exeext conftest.$ac_ext
28477
28478 fi
28479 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28480                { echo "$as_me:$LINENO: result: $ac_res" >&5
28481 echo "${ECHO_T}$ac_res" >&6; }
28482
28483     if eval test \$wx_cv_func_$wx_func = yes
28484     then
28485       cat >>confdefs.h <<_ACEOF
28486 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28487 _ACEOF
28488
28489
28490     else
28491       :
28492
28493     fi
28494   done
28495
28496 else
28497
28498   for wx_func in strtoull
28499   do
28500     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28501 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28502 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28503   echo $ECHO_N "(cached) $ECHO_C" >&6
28504 else
28505
28506         cat >conftest.$ac_ext <<_ACEOF
28507
28508             /* confdefs.h.  */
28509 _ACEOF
28510 cat confdefs.h >>conftest.$ac_ext
28511 cat >>conftest.$ac_ext <<_ACEOF
28512 /* end confdefs.h.  */
28513
28514
28515                 $ac_includes_default
28516
28517 int
28518 main ()
28519 {
28520
28521                 #ifndef $wx_func
28522                   &$wx_func;
28523                 #endif
28524
28525
28526   ;
28527   return 0;
28528 }
28529
28530 _ACEOF
28531 rm -f conftest.$ac_objext conftest$ac_exeext
28532 if { (ac_try="$ac_link"
28533 case "(($ac_try" in
28534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535   *) ac_try_echo=$ac_try;;
28536 esac
28537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538   (eval "$ac_link") 2>conftest.er1
28539   ac_status=$?
28540   grep -v '^ *+' conftest.er1 >conftest.err
28541   rm -f conftest.er1
28542   cat conftest.err >&5
28543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544   (exit $ac_status); } && {
28545          test -z "$ac_cxx_werror_flag" ||
28546          test ! -s conftest.err
28547        } && test -s conftest$ac_exeext &&
28548        $as_test_x conftest$ac_exeext; then
28549   eval wx_cv_func_$wx_func=yes
28550 else
28551   echo "$as_me: failed program was:" >&5
28552 sed 's/^/| /' conftest.$ac_ext >&5
28553
28554         eval wx_cv_func_$wx_func=no
28555 fi
28556
28557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28558       conftest$ac_exeext conftest.$ac_ext
28559
28560 fi
28561 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28562                { echo "$as_me:$LINENO: result: $ac_res" >&5
28563 echo "${ECHO_T}$ac_res" >&6; }
28564
28565     if eval test \$wx_cv_func_$wx_func = yes
28566     then
28567       cat >>confdefs.h <<_ACEOF
28568 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28569 _ACEOF
28570
28571
28572     else
28573       :
28574
28575     fi
28576   done
28577
28578 fi
28579 ac_ext=c
28580 ac_cpp='$CPP $CPPFLAGS'
28581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28584
28585
28586
28587
28588 if test "$wxUSE_REGEX" != "no"; then
28589     cat >>confdefs.h <<\_ACEOF
28590 #define wxUSE_REGEX 1
28591 _ACEOF
28592
28593
28594     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28595         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
28596 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
28597         wxUSE_REGEX=builtin
28598     fi
28599
28600     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
28601                         { echo "$as_me:$LINENO: checking for regex.h" >&5
28602 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28603 if test "${ac_cv_header_regex_h+set}" = set; then
28604   echo $ECHO_N "(cached) $ECHO_C" >&6
28605 else
28606   cat >conftest.$ac_ext <<_ACEOF
28607 /* confdefs.h.  */
28608 _ACEOF
28609 cat confdefs.h >>conftest.$ac_ext
28610 cat >>conftest.$ac_ext <<_ACEOF
28611 /* end confdefs.h.  */
28612
28613
28614 #include <regex.h>
28615 _ACEOF
28616 rm -f conftest.$ac_objext
28617 if { (ac_try="$ac_compile"
28618 case "(($ac_try" in
28619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28620   *) ac_try_echo=$ac_try;;
28621 esac
28622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28623   (eval "$ac_compile") 2>conftest.er1
28624   ac_status=$?
28625   grep -v '^ *+' conftest.er1 >conftest.err
28626   rm -f conftest.er1
28627   cat conftest.err >&5
28628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629   (exit $ac_status); } && {
28630          test -z "$ac_c_werror_flag" ||
28631          test ! -s conftest.err
28632        } && test -s conftest.$ac_objext; then
28633   ac_cv_header_regex_h=yes
28634 else
28635   echo "$as_me: failed program was:" >&5
28636 sed 's/^/| /' conftest.$ac_ext >&5
28637
28638         ac_cv_header_regex_h=no
28639 fi
28640
28641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28642 fi
28643 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28644 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28645 if test $ac_cv_header_regex_h = yes; then
28646
28647
28648 for ac_func in regcomp re_search
28649 do
28650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28654   echo $ECHO_N "(cached) $ECHO_C" >&6
28655 else
28656   cat >conftest.$ac_ext <<_ACEOF
28657 /* confdefs.h.  */
28658 _ACEOF
28659 cat confdefs.h >>conftest.$ac_ext
28660 cat >>conftest.$ac_ext <<_ACEOF
28661 /* end confdefs.h.  */
28662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28664 #define $ac_func innocuous_$ac_func
28665
28666 /* System header to define __stub macros and hopefully few prototypes,
28667     which can conflict with char $ac_func (); below.
28668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28669     <limits.h> exists even on freestanding compilers.  */
28670
28671 #ifdef __STDC__
28672 # include <limits.h>
28673 #else
28674 # include <assert.h>
28675 #endif
28676
28677 #undef $ac_func
28678
28679 /* Override any GCC internal prototype to avoid an error.
28680    Use char because int might match the return type of a GCC
28681    builtin and then its argument prototype would still apply.  */
28682 #ifdef __cplusplus
28683 extern "C"
28684 #endif
28685 char $ac_func ();
28686 /* The GNU C library defines this for functions which it implements
28687     to always fail with ENOSYS.  Some functions are actually named
28688     something starting with __ and the normal name is an alias.  */
28689 #if defined __stub_$ac_func || defined __stub___$ac_func
28690 choke me
28691 #endif
28692
28693 int
28694 main ()
28695 {
28696 return $ac_func ();
28697   ;
28698   return 0;
28699 }
28700 _ACEOF
28701 rm -f conftest.$ac_objext conftest$ac_exeext
28702 if { (ac_try="$ac_link"
28703 case "(($ac_try" in
28704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28705   *) ac_try_echo=$ac_try;;
28706 esac
28707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28708   (eval "$ac_link") 2>conftest.er1
28709   ac_status=$?
28710   grep -v '^ *+' conftest.er1 >conftest.err
28711   rm -f conftest.er1
28712   cat conftest.err >&5
28713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714   (exit $ac_status); } && {
28715          test -z "$ac_c_werror_flag" ||
28716          test ! -s conftest.err
28717        } && test -s conftest$ac_exeext &&
28718        $as_test_x conftest$ac_exeext; then
28719   eval "$as_ac_var=yes"
28720 else
28721   echo "$as_me: failed program was:" >&5
28722 sed 's/^/| /' conftest.$ac_ext >&5
28723
28724         eval "$as_ac_var=no"
28725 fi
28726
28727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28728       conftest$ac_exeext conftest.$ac_ext
28729 fi
28730 ac_res=`eval echo '${'$as_ac_var'}'`
28731                { echo "$as_me:$LINENO: result: $ac_res" >&5
28732 echo "${ECHO_T}$ac_res" >&6; }
28733 if test `eval echo '${'$as_ac_var'}'` = yes; then
28734   cat >>confdefs.h <<_ACEOF
28735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28736 _ACEOF
28737
28738 fi
28739 done
28740
28741 fi
28742
28743
28744
28745         if test "x$ac_cv_func_regcomp" != "xyes"; then
28746             if test "$wxUSE_REGEX" = "sys" ; then
28747                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28748 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28749    { (exit 1); exit 1; }; }
28750             else
28751                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28752 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28753                 wxUSE_REGEX=builtin
28754             fi
28755         else
28756                         wxUSE_REGEX=sys
28757                         cat >>confdefs.h <<\_ACEOF
28758 #define WX_NO_REGEX_ADVANCED 1
28759 _ACEOF
28760
28761         fi
28762     fi
28763 fi
28764
28765
28766 ZLIB_LINK=
28767 if test "$wxUSE_ZLIB" != "no" ; then
28768     cat >>confdefs.h <<\_ACEOF
28769 #define wxUSE_ZLIB 1
28770 _ACEOF
28771
28772
28773     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28774                                                 if test "$USE_DARWIN" = 1; then
28775             system_zlib_h_ok="yes"
28776         else
28777                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28778 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28779 if test "${ac_cv_header_zlib_h+set}" = set; then
28780   echo $ECHO_N "(cached) $ECHO_C" >&6
28781 else
28782   if test "$cross_compiling" = yes; then
28783                       unset ac_cv_header_zlib_h
28784
28785 else
28786   cat >conftest.$ac_ext <<_ACEOF
28787 /* confdefs.h.  */
28788 _ACEOF
28789 cat confdefs.h >>conftest.$ac_ext
28790 cat >>conftest.$ac_ext <<_ACEOF
28791 /* end confdefs.h.  */
28792
28793                         #include <zlib.h>
28794                         #include <stdio.h>
28795
28796                         int main()
28797                         {
28798                             FILE *f=fopen("conftestval", "w");
28799                             if (!f) exit(1);
28800                             fprintf(f, "%s",
28801                                     ZLIB_VERSION[0] == '1' &&
28802                                     (ZLIB_VERSION[2] > '1' ||
28803                                     (ZLIB_VERSION[2] == '1' &&
28804                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28805                             exit(0);
28806                         }
28807
28808 _ACEOF
28809 rm -f conftest$ac_exeext
28810 if { (ac_try="$ac_link"
28811 case "(($ac_try" in
28812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28813   *) ac_try_echo=$ac_try;;
28814 esac
28815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28816   (eval "$ac_link") 2>&5
28817   ac_status=$?
28818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28820   { (case "(($ac_try" in
28821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28822   *) ac_try_echo=$ac_try;;
28823 esac
28824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28825   (eval "$ac_try") 2>&5
28826   ac_status=$?
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); }; }; then
28829   ac_cv_header_zlib_h=`cat conftestval`
28830 else
28831   echo "$as_me: program exited with status $ac_status" >&5
28832 echo "$as_me: failed program was:" >&5
28833 sed 's/^/| /' conftest.$ac_ext >&5
28834
28835 ( exit $ac_status )
28836 ac_cv_header_zlib_h=no
28837 fi
28838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28839 fi
28840
28841
28842
28843 fi
28844 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28845 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28846                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28847 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28848 if test "${ac_cv_header_zlib_h+set}" = set; then
28849   echo $ECHO_N "(cached) $ECHO_C" >&6
28850 else
28851   cat >conftest.$ac_ext <<_ACEOF
28852 /* confdefs.h.  */
28853 _ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h.  */
28857
28858
28859 #include <zlib.h>
28860 _ACEOF
28861 rm -f conftest.$ac_objext
28862 if { (ac_try="$ac_compile"
28863 case "(($ac_try" in
28864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865   *) ac_try_echo=$ac_try;;
28866 esac
28867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868   (eval "$ac_compile") 2>conftest.er1
28869   ac_status=$?
28870   grep -v '^ *+' conftest.er1 >conftest.err
28871   rm -f conftest.er1
28872   cat conftest.err >&5
28873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874   (exit $ac_status); } && {
28875          test -z "$ac_c_werror_flag" ||
28876          test ! -s conftest.err
28877        } && test -s conftest.$ac_objext; then
28878   ac_cv_header_zlib_h=yes
28879 else
28880   echo "$as_me: failed program was:" >&5
28881 sed 's/^/| /' conftest.$ac_ext >&5
28882
28883         ac_cv_header_zlib_h=no
28884 fi
28885
28886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28887 fi
28888 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28889 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28890
28891
28892
28893             system_zlib_h_ok=$ac_cv_header_zlib_h
28894         fi
28895
28896         if test "$system_zlib_h_ok" = "yes"; then
28897             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28898 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28899 if test "${ac_cv_lib_z_deflate+set}" = set; then
28900   echo $ECHO_N "(cached) $ECHO_C" >&6
28901 else
28902   ac_check_lib_save_LIBS=$LIBS
28903 LIBS="-lz  $LIBS"
28904 cat >conftest.$ac_ext <<_ACEOF
28905 /* confdefs.h.  */
28906 _ACEOF
28907 cat confdefs.h >>conftest.$ac_ext
28908 cat >>conftest.$ac_ext <<_ACEOF
28909 /* end confdefs.h.  */
28910
28911 /* Override any GCC internal prototype to avoid an error.
28912    Use char because int might match the return type of a GCC
28913    builtin and then its argument prototype would still apply.  */
28914 #ifdef __cplusplus
28915 extern "C"
28916 #endif
28917 char deflate ();
28918 int
28919 main ()
28920 {
28921 return deflate ();
28922   ;
28923   return 0;
28924 }
28925 _ACEOF
28926 rm -f conftest.$ac_objext conftest$ac_exeext
28927 if { (ac_try="$ac_link"
28928 case "(($ac_try" in
28929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930   *) ac_try_echo=$ac_try;;
28931 esac
28932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28933   (eval "$ac_link") 2>conftest.er1
28934   ac_status=$?
28935   grep -v '^ *+' conftest.er1 >conftest.err
28936   rm -f conftest.er1
28937   cat conftest.err >&5
28938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939   (exit $ac_status); } && {
28940          test -z "$ac_c_werror_flag" ||
28941          test ! -s conftest.err
28942        } && test -s conftest$ac_exeext &&
28943        $as_test_x conftest$ac_exeext; then
28944   ac_cv_lib_z_deflate=yes
28945 else
28946   echo "$as_me: failed program was:" >&5
28947 sed 's/^/| /' conftest.$ac_ext >&5
28948
28949         ac_cv_lib_z_deflate=no
28950 fi
28951
28952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28953       conftest$ac_exeext conftest.$ac_ext
28954 LIBS=$ac_check_lib_save_LIBS
28955 fi
28956 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28957 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28958 if test $ac_cv_lib_z_deflate = yes; then
28959   ZLIB_LINK=" -lz"
28960 fi
28961
28962         fi
28963
28964         if test "x$ZLIB_LINK" = "x" ; then
28965             if test "$wxUSE_ZLIB" = "sys" ; then
28966                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28967 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28968    { (exit 1); exit 1; }; }
28969             else
28970                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28971 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28972                 wxUSE_ZLIB=builtin
28973             fi
28974         else
28975                         wxUSE_ZLIB=sys
28976         fi
28977     fi
28978 fi
28979
28980
28981 PNG_LINK=
28982 if test "$wxUSE_LIBPNG" != "no" ; then
28983     cat >>confdefs.h <<\_ACEOF
28984 #define wxUSE_LIBPNG 1
28985 _ACEOF
28986
28987
28988     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28989         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28990 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28991         wxUSE_LIBPNG=sys
28992     fi
28993
28994                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28995         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28996 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28997         wxUSE_LIBPNG=builtin
28998     fi
28999
29000     if test "$wxUSE_MGL" != 1 ; then
29001                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
29002                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
29003 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
29004 if test "${ac_cv_header_png_h+set}" = set; then
29005   echo $ECHO_N "(cached) $ECHO_C" >&6
29006 else
29007   if test "$cross_compiling" = yes; then
29008                       unset ac_cv_header_png_h
29009
29010 else
29011   cat >conftest.$ac_ext <<_ACEOF
29012 /* confdefs.h.  */
29013 _ACEOF
29014 cat confdefs.h >>conftest.$ac_ext
29015 cat >>conftest.$ac_ext <<_ACEOF
29016 /* end confdefs.h.  */
29017
29018                         #include <png.h>
29019                         #include <stdio.h>
29020
29021                         int main()
29022                         {
29023                             FILE *f=fopen("conftestval", "w");
29024                             if (!f) exit(1);
29025                             fprintf(f, "%s",
29026                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
29027                             exit(0);
29028                         }
29029
29030 _ACEOF
29031 rm -f conftest$ac_exeext
29032 if { (ac_try="$ac_link"
29033 case "(($ac_try" in
29034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035   *) ac_try_echo=$ac_try;;
29036 esac
29037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038   (eval "$ac_link") 2>&5
29039   ac_status=$?
29040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29042   { (case "(($ac_try" in
29043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29044   *) ac_try_echo=$ac_try;;
29045 esac
29046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29047   (eval "$ac_try") 2>&5
29048   ac_status=$?
29049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050   (exit $ac_status); }; }; then
29051   ac_cv_header_png_h=`cat conftestval`
29052 else
29053   echo "$as_me: program exited with status $ac_status" >&5
29054 echo "$as_me: failed program was:" >&5
29055 sed 's/^/| /' conftest.$ac_ext >&5
29056
29057 ( exit $ac_status )
29058 ac_cv_header_png_h=no
29059 fi
29060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29061 fi
29062
29063
29064
29065 fi
29066 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29067 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29068             { echo "$as_me:$LINENO: checking for png.h" >&5
29069 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
29070 if test "${ac_cv_header_png_h+set}" = set; then
29071   echo $ECHO_N "(cached) $ECHO_C" >&6
29072 else
29073   cat >conftest.$ac_ext <<_ACEOF
29074 /* confdefs.h.  */
29075 _ACEOF
29076 cat confdefs.h >>conftest.$ac_ext
29077 cat >>conftest.$ac_ext <<_ACEOF
29078 /* end confdefs.h.  */
29079
29080
29081 #include <png.h>
29082 _ACEOF
29083 rm -f conftest.$ac_objext
29084 if { (ac_try="$ac_compile"
29085 case "(($ac_try" in
29086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29087   *) ac_try_echo=$ac_try;;
29088 esac
29089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29090   (eval "$ac_compile") 2>conftest.er1
29091   ac_status=$?
29092   grep -v '^ *+' conftest.er1 >conftest.err
29093   rm -f conftest.er1
29094   cat conftest.err >&5
29095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096   (exit $ac_status); } && {
29097          test -z "$ac_c_werror_flag" ||
29098          test ! -s conftest.err
29099        } && test -s conftest.$ac_objext; then
29100   ac_cv_header_png_h=yes
29101 else
29102   echo "$as_me: failed program was:" >&5
29103 sed 's/^/| /' conftest.$ac_ext >&5
29104
29105         ac_cv_header_png_h=no
29106 fi
29107
29108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29109 fi
29110 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29111 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29112
29113
29114
29115             if test "$ac_cv_header_png_h" = "yes"; then
29116                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
29117 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
29118 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
29119   echo $ECHO_N "(cached) $ECHO_C" >&6
29120 else
29121   ac_check_lib_save_LIBS=$LIBS
29122 LIBS="-lpng -lz -lm $LIBS"
29123 cat >conftest.$ac_ext <<_ACEOF
29124 /* confdefs.h.  */
29125 _ACEOF
29126 cat confdefs.h >>conftest.$ac_ext
29127 cat >>conftest.$ac_ext <<_ACEOF
29128 /* end confdefs.h.  */
29129
29130 /* Override any GCC internal prototype to avoid an error.
29131    Use char because int might match the return type of a GCC
29132    builtin and then its argument prototype would still apply.  */
29133 #ifdef __cplusplus
29134 extern "C"
29135 #endif
29136 char png_check_sig ();
29137 int
29138 main ()
29139 {
29140 return png_check_sig ();
29141   ;
29142   return 0;
29143 }
29144 _ACEOF
29145 rm -f conftest.$ac_objext conftest$ac_exeext
29146 if { (ac_try="$ac_link"
29147 case "(($ac_try" in
29148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29149   *) ac_try_echo=$ac_try;;
29150 esac
29151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29152   (eval "$ac_link") 2>conftest.er1
29153   ac_status=$?
29154   grep -v '^ *+' conftest.er1 >conftest.err
29155   rm -f conftest.er1
29156   cat conftest.err >&5
29157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158   (exit $ac_status); } && {
29159          test -z "$ac_c_werror_flag" ||
29160          test ! -s conftest.err
29161        } && test -s conftest$ac_exeext &&
29162        $as_test_x conftest$ac_exeext; then
29163   ac_cv_lib_png_png_check_sig=yes
29164 else
29165   echo "$as_me: failed program was:" >&5
29166 sed 's/^/| /' conftest.$ac_ext >&5
29167
29168         ac_cv_lib_png_png_check_sig=no
29169 fi
29170
29171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29172       conftest$ac_exeext conftest.$ac_ext
29173 LIBS=$ac_check_lib_save_LIBS
29174 fi
29175 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
29176 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
29177 if test $ac_cv_lib_png_png_check_sig = yes; then
29178   PNG_LINK=" -lpng -lz"
29179 fi
29180
29181             fi
29182
29183             if test "x$PNG_LINK" = "x" ; then
29184                 if test "$wxUSE_LIBPNG" = "sys" ; then
29185                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
29186 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
29187    { (exit 1); exit 1; }; }
29188                 else
29189                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
29190 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
29191                     wxUSE_LIBPNG=builtin
29192                 fi
29193             else
29194                                 wxUSE_LIBPNG=sys
29195             fi
29196         fi
29197     fi
29198
29199     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
29200 fi
29201
29202
29203 JPEG_LINK=
29204 if test "$wxUSE_LIBJPEG" != "no" ; then
29205     cat >>confdefs.h <<\_ACEOF
29206 #define wxUSE_LIBJPEG 1
29207 _ACEOF
29208
29209
29210     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
29211         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
29212 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
29213         wxUSE_LIBJPEG=sys
29214     fi
29215
29216     if test "$wxUSE_MGL" != 1 ; then
29217                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
29218                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
29219 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
29220             if test "${ac_cv_header_jpeglib_h+set}" = set; then
29221   echo $ECHO_N "(cached) $ECHO_C" >&6
29222 else
29223   cat >conftest.$ac_ext <<_ACEOF
29224 /* confdefs.h.  */
29225 _ACEOF
29226 cat confdefs.h >>conftest.$ac_ext
29227 cat >>conftest.$ac_ext <<_ACEOF
29228 /* end confdefs.h.  */
29229
29230                         #undef HAVE_STDLIB_H
29231                         #include <stdio.h>
29232                         #include <jpeglib.h>
29233
29234 int
29235 main ()
29236 {
29237
29238
29239   ;
29240   return 0;
29241 }
29242 _ACEOF
29243 rm -f conftest.$ac_objext
29244 if { (ac_try="$ac_compile"
29245 case "(($ac_try" in
29246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29247   *) ac_try_echo=$ac_try;;
29248 esac
29249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29250   (eval "$ac_compile") 2>conftest.er1
29251   ac_status=$?
29252   grep -v '^ *+' conftest.er1 >conftest.err
29253   rm -f conftest.er1
29254   cat conftest.err >&5
29255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256   (exit $ac_status); } && {
29257          test -z "$ac_c_werror_flag" ||
29258          test ! -s conftest.err
29259        } && test -s conftest.$ac_objext; then
29260   ac_cv_header_jpeglib_h=yes
29261 else
29262   echo "$as_me: failed program was:" >&5
29263 sed 's/^/| /' conftest.$ac_ext >&5
29264
29265         ac_cv_header_jpeglib_h=no
29266
29267 fi
29268
29269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29270
29271 fi
29272
29273             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
29274 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
29275
29276             if test "$ac_cv_header_jpeglib_h" = "yes"; then
29277                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
29278 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
29279 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
29280   echo $ECHO_N "(cached) $ECHO_C" >&6
29281 else
29282   ac_check_lib_save_LIBS=$LIBS
29283 LIBS="-ljpeg  $LIBS"
29284 cat >conftest.$ac_ext <<_ACEOF
29285 /* confdefs.h.  */
29286 _ACEOF
29287 cat confdefs.h >>conftest.$ac_ext
29288 cat >>conftest.$ac_ext <<_ACEOF
29289 /* end confdefs.h.  */
29290
29291 /* Override any GCC internal prototype to avoid an error.
29292    Use char because int might match the return type of a GCC
29293    builtin and then its argument prototype would still apply.  */
29294 #ifdef __cplusplus
29295 extern "C"
29296 #endif
29297 char jpeg_read_header ();
29298 int
29299 main ()
29300 {
29301 return jpeg_read_header ();
29302   ;
29303   return 0;
29304 }
29305 _ACEOF
29306 rm -f conftest.$ac_objext conftest$ac_exeext
29307 if { (ac_try="$ac_link"
29308 case "(($ac_try" in
29309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29310   *) ac_try_echo=$ac_try;;
29311 esac
29312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29313   (eval "$ac_link") 2>conftest.er1
29314   ac_status=$?
29315   grep -v '^ *+' conftest.er1 >conftest.err
29316   rm -f conftest.er1
29317   cat conftest.err >&5
29318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319   (exit $ac_status); } && {
29320          test -z "$ac_c_werror_flag" ||
29321          test ! -s conftest.err
29322        } && test -s conftest$ac_exeext &&
29323        $as_test_x conftest$ac_exeext; then
29324   ac_cv_lib_jpeg_jpeg_read_header=yes
29325 else
29326   echo "$as_me: failed program was:" >&5
29327 sed 's/^/| /' conftest.$ac_ext >&5
29328
29329         ac_cv_lib_jpeg_jpeg_read_header=no
29330 fi
29331
29332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29333       conftest$ac_exeext conftest.$ac_ext
29334 LIBS=$ac_check_lib_save_LIBS
29335 fi
29336 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29337 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29338 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
29339   JPEG_LINK=" -ljpeg"
29340 fi
29341
29342             fi
29343
29344             if test "x$JPEG_LINK" = "x" ; then
29345                 if test "$wxUSE_LIBJPEG" = "sys" ; then
29346                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
29347 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
29348    { (exit 1); exit 1; }; }
29349                 else
29350                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
29351 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
29352                     wxUSE_LIBJPEG=builtin
29353                 fi
29354             else
29355                                 wxUSE_LIBJPEG=sys
29356
29357                 if test "$wxUSE_MSW" = 1; then
29358                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
29359 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29360 if test "${ac_cv_type_boolean+set}" = set; then
29361   echo $ECHO_N "(cached) $ECHO_C" >&6
29362 else
29363   cat >conftest.$ac_ext <<_ACEOF
29364 /* confdefs.h.  */
29365 _ACEOF
29366 cat confdefs.h >>conftest.$ac_ext
29367 cat >>conftest.$ac_ext <<_ACEOF
29368 /* end confdefs.h.  */
29369 #include <windows.h>
29370
29371 typedef boolean ac__type_new_;
29372 int
29373 main ()
29374 {
29375 if ((ac__type_new_ *) 0)
29376   return 0;
29377 if (sizeof (ac__type_new_))
29378   return 0;
29379   ;
29380   return 0;
29381 }
29382 _ACEOF
29383 rm -f conftest.$ac_objext
29384 if { (ac_try="$ac_compile"
29385 case "(($ac_try" in
29386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29387   *) ac_try_echo=$ac_try;;
29388 esac
29389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29390   (eval "$ac_compile") 2>conftest.er1
29391   ac_status=$?
29392   grep -v '^ *+' conftest.er1 >conftest.err
29393   rm -f conftest.er1
29394   cat conftest.err >&5
29395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396   (exit $ac_status); } && {
29397          test -z "$ac_c_werror_flag" ||
29398          test ! -s conftest.err
29399        } && test -s conftest.$ac_objext; then
29400   ac_cv_type_boolean=yes
29401 else
29402   echo "$as_me: failed program was:" >&5
29403 sed 's/^/| /' conftest.$ac_ext >&5
29404
29405         ac_cv_type_boolean=no
29406 fi
29407
29408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29409 fi
29410 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29411 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29412 if test $ac_cv_type_boolean = yes; then
29413
29414 cat >>confdefs.h <<_ACEOF
29415 #define HAVE_BOOLEAN 1
29416 _ACEOF
29417
29418
29419                             { echo "$as_me:$LINENO: checking for boolean" >&5
29420 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29421 if test "${ac_cv_type_boolean+set}" = set; then
29422   echo $ECHO_N "(cached) $ECHO_C" >&6
29423 else
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
29431                                     #undef HAVE_BOOLEAN
29432                                     #include <stdio.h>
29433                                     #include <jpeglib.h>
29434
29435
29436 typedef boolean ac__type_new_;
29437 int
29438 main ()
29439 {
29440 if ((ac__type_new_ *) 0)
29441   return 0;
29442 if (sizeof (ac__type_new_))
29443   return 0;
29444   ;
29445   return 0;
29446 }
29447 _ACEOF
29448 rm -f conftest.$ac_objext
29449 if { (ac_try="$ac_compile"
29450 case "(($ac_try" in
29451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452   *) ac_try_echo=$ac_try;;
29453 esac
29454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455   (eval "$ac_compile") 2>conftest.er1
29456   ac_status=$?
29457   grep -v '^ *+' conftest.er1 >conftest.err
29458   rm -f conftest.er1
29459   cat conftest.err >&5
29460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461   (exit $ac_status); } && {
29462          test -z "$ac_c_werror_flag" ||
29463          test ! -s conftest.err
29464        } && test -s conftest.$ac_objext; then
29465   ac_cv_type_boolean=yes
29466 else
29467   echo "$as_me: failed program was:" >&5
29468 sed 's/^/| /' conftest.$ac_ext >&5
29469
29470         ac_cv_type_boolean=no
29471 fi
29472
29473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29474 fi
29475 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29476 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29477
29478 # The cast to long int works around a bug in the HP C Compiler
29479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29481 # This bug is HP SR number 8606223364.
29482 { echo "$as_me:$LINENO: checking size of boolean" >&5
29483 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
29484 if test "${ac_cv_sizeof_boolean+set}" = set; then
29485   echo $ECHO_N "(cached) $ECHO_C" >&6
29486 else
29487   if test "$cross_compiling" = yes; then
29488   # Depending upon the size, compute the lo and hi bounds.
29489 cat >conftest.$ac_ext <<_ACEOF
29490 /* confdefs.h.  */
29491 _ACEOF
29492 cat confdefs.h >>conftest.$ac_ext
29493 cat >>conftest.$ac_ext <<_ACEOF
29494 /* end confdefs.h.  */
29495
29496                                     #undef HAVE_BOOLEAN
29497                                     #include <stdio.h>
29498                                     #include <jpeglib.h>
29499
29500
29501    typedef boolean ac__type_sizeof_;
29502 int
29503 main ()
29504 {
29505 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29506 test_array [0] = 0
29507
29508   ;
29509   return 0;
29510 }
29511 _ACEOF
29512 rm -f conftest.$ac_objext
29513 if { (ac_try="$ac_compile"
29514 case "(($ac_try" in
29515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516   *) ac_try_echo=$ac_try;;
29517 esac
29518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519   (eval "$ac_compile") 2>conftest.er1
29520   ac_status=$?
29521   grep -v '^ *+' conftest.er1 >conftest.err
29522   rm -f conftest.er1
29523   cat conftest.err >&5
29524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525   (exit $ac_status); } && {
29526          test -z "$ac_c_werror_flag" ||
29527          test ! -s conftest.err
29528        } && test -s conftest.$ac_objext; then
29529   ac_lo=0 ac_mid=0
29530   while :; do
29531     cat >conftest.$ac_ext <<_ACEOF
29532 /* confdefs.h.  */
29533 _ACEOF
29534 cat confdefs.h >>conftest.$ac_ext
29535 cat >>conftest.$ac_ext <<_ACEOF
29536 /* end confdefs.h.  */
29537
29538                                     #undef HAVE_BOOLEAN
29539                                     #include <stdio.h>
29540                                     #include <jpeglib.h>
29541
29542
29543    typedef boolean ac__type_sizeof_;
29544 int
29545 main ()
29546 {
29547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29548 test_array [0] = 0
29549
29550   ;
29551   return 0;
29552 }
29553 _ACEOF
29554 rm -f conftest.$ac_objext
29555 if { (ac_try="$ac_compile"
29556 case "(($ac_try" in
29557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29558   *) ac_try_echo=$ac_try;;
29559 esac
29560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29561   (eval "$ac_compile") 2>conftest.er1
29562   ac_status=$?
29563   grep -v '^ *+' conftest.er1 >conftest.err
29564   rm -f conftest.er1
29565   cat conftest.err >&5
29566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567   (exit $ac_status); } && {
29568          test -z "$ac_c_werror_flag" ||
29569          test ! -s conftest.err
29570        } && test -s conftest.$ac_objext; then
29571   ac_hi=$ac_mid; break
29572 else
29573   echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29575
29576         ac_lo=`expr $ac_mid + 1`
29577                         if test $ac_lo -le $ac_mid; then
29578                           ac_lo= ac_hi=
29579                           break
29580                         fi
29581                         ac_mid=`expr 2 '*' $ac_mid + 1`
29582 fi
29583
29584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29585   done
29586 else
29587   echo "$as_me: failed program was:" >&5
29588 sed 's/^/| /' conftest.$ac_ext >&5
29589
29590         cat >conftest.$ac_ext <<_ACEOF
29591 /* confdefs.h.  */
29592 _ACEOF
29593 cat confdefs.h >>conftest.$ac_ext
29594 cat >>conftest.$ac_ext <<_ACEOF
29595 /* end confdefs.h.  */
29596
29597                                     #undef HAVE_BOOLEAN
29598                                     #include <stdio.h>
29599                                     #include <jpeglib.h>
29600
29601
29602    typedef boolean ac__type_sizeof_;
29603 int
29604 main ()
29605 {
29606 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29607 test_array [0] = 0
29608
29609   ;
29610   return 0;
29611 }
29612 _ACEOF
29613 rm -f conftest.$ac_objext
29614 if { (ac_try="$ac_compile"
29615 case "(($ac_try" in
29616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29617   *) ac_try_echo=$ac_try;;
29618 esac
29619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29620   (eval "$ac_compile") 2>conftest.er1
29621   ac_status=$?
29622   grep -v '^ *+' conftest.er1 >conftest.err
29623   rm -f conftest.er1
29624   cat conftest.err >&5
29625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626   (exit $ac_status); } && {
29627          test -z "$ac_c_werror_flag" ||
29628          test ! -s conftest.err
29629        } && test -s conftest.$ac_objext; then
29630   ac_hi=-1 ac_mid=-1
29631   while :; do
29632     cat >conftest.$ac_ext <<_ACEOF
29633 /* confdefs.h.  */
29634 _ACEOF
29635 cat confdefs.h >>conftest.$ac_ext
29636 cat >>conftest.$ac_ext <<_ACEOF
29637 /* end confdefs.h.  */
29638
29639                                     #undef HAVE_BOOLEAN
29640                                     #include <stdio.h>
29641                                     #include <jpeglib.h>
29642
29643
29644    typedef boolean ac__type_sizeof_;
29645 int
29646 main ()
29647 {
29648 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29649 test_array [0] = 0
29650
29651   ;
29652   return 0;
29653 }
29654 _ACEOF
29655 rm -f conftest.$ac_objext
29656 if { (ac_try="$ac_compile"
29657 case "(($ac_try" in
29658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29659   *) ac_try_echo=$ac_try;;
29660 esac
29661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29662   (eval "$ac_compile") 2>conftest.er1
29663   ac_status=$?
29664   grep -v '^ *+' conftest.er1 >conftest.err
29665   rm -f conftest.er1
29666   cat conftest.err >&5
29667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668   (exit $ac_status); } && {
29669          test -z "$ac_c_werror_flag" ||
29670          test ! -s conftest.err
29671        } && test -s conftest.$ac_objext; then
29672   ac_lo=$ac_mid; break
29673 else
29674   echo "$as_me: failed program was:" >&5
29675 sed 's/^/| /' conftest.$ac_ext >&5
29676
29677         ac_hi=`expr '(' $ac_mid ')' - 1`
29678                         if test $ac_mid -le $ac_hi; then
29679                           ac_lo= ac_hi=
29680                           break
29681                         fi
29682                         ac_mid=`expr 2 '*' $ac_mid`
29683 fi
29684
29685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29686   done
29687 else
29688   echo "$as_me: failed program was:" >&5
29689 sed 's/^/| /' conftest.$ac_ext >&5
29690
29691         ac_lo= ac_hi=
29692 fi
29693
29694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29695 fi
29696
29697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29698 # Binary search between lo and hi bounds.
29699 while test "x$ac_lo" != "x$ac_hi"; do
29700   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29701   cat >conftest.$ac_ext <<_ACEOF
29702 /* confdefs.h.  */
29703 _ACEOF
29704 cat confdefs.h >>conftest.$ac_ext
29705 cat >>conftest.$ac_ext <<_ACEOF
29706 /* end confdefs.h.  */
29707
29708                                     #undef HAVE_BOOLEAN
29709                                     #include <stdio.h>
29710                                     #include <jpeglib.h>
29711
29712
29713    typedef boolean ac__type_sizeof_;
29714 int
29715 main ()
29716 {
29717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29718 test_array [0] = 0
29719
29720   ;
29721   return 0;
29722 }
29723 _ACEOF
29724 rm -f conftest.$ac_objext
29725 if { (ac_try="$ac_compile"
29726 case "(($ac_try" in
29727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728   *) ac_try_echo=$ac_try;;
29729 esac
29730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29731   (eval "$ac_compile") 2>conftest.er1
29732   ac_status=$?
29733   grep -v '^ *+' conftest.er1 >conftest.err
29734   rm -f conftest.er1
29735   cat conftest.err >&5
29736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737   (exit $ac_status); } && {
29738          test -z "$ac_c_werror_flag" ||
29739          test ! -s conftest.err
29740        } && test -s conftest.$ac_objext; then
29741   ac_hi=$ac_mid
29742 else
29743   echo "$as_me: failed program was:" >&5
29744 sed 's/^/| /' conftest.$ac_ext >&5
29745
29746         ac_lo=`expr '(' $ac_mid ')' + 1`
29747 fi
29748
29749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29750 done
29751 case $ac_lo in
29752 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29753 '') if test "$ac_cv_type_boolean" = yes; then
29754      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29755 See \`config.log' for more details." >&5
29756 echo "$as_me: error: cannot compute sizeof (boolean)
29757 See \`config.log' for more details." >&2;}
29758    { (exit 77); exit 77; }; }
29759    else
29760      ac_cv_sizeof_boolean=0
29761    fi ;;
29762 esac
29763 else
29764   cat >conftest.$ac_ext <<_ACEOF
29765 /* confdefs.h.  */
29766 _ACEOF
29767 cat confdefs.h >>conftest.$ac_ext
29768 cat >>conftest.$ac_ext <<_ACEOF
29769 /* end confdefs.h.  */
29770
29771                                     #undef HAVE_BOOLEAN
29772                                     #include <stdio.h>
29773                                     #include <jpeglib.h>
29774
29775
29776    typedef boolean ac__type_sizeof_;
29777 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29778 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29779 #include <stdio.h>
29780 #include <stdlib.h>
29781 int
29782 main ()
29783 {
29784
29785   FILE *f = fopen ("conftest.val", "w");
29786   if (! f)
29787     return 1;
29788   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29789     {
29790       long int i = longval ();
29791       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29792         return 1;
29793       fprintf (f, "%ld\n", i);
29794     }
29795   else
29796     {
29797       unsigned long int i = ulongval ();
29798       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29799         return 1;
29800       fprintf (f, "%lu\n", i);
29801     }
29802   return ferror (f) || fclose (f) != 0;
29803
29804   ;
29805   return 0;
29806 }
29807 _ACEOF
29808 rm -f conftest$ac_exeext
29809 if { (ac_try="$ac_link"
29810 case "(($ac_try" in
29811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812   *) ac_try_echo=$ac_try;;
29813 esac
29814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815   (eval "$ac_link") 2>&5
29816   ac_status=$?
29817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29819   { (case "(($ac_try" in
29820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821   *) ac_try_echo=$ac_try;;
29822 esac
29823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824   (eval "$ac_try") 2>&5
29825   ac_status=$?
29826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827   (exit $ac_status); }; }; then
29828   ac_cv_sizeof_boolean=`cat conftest.val`
29829 else
29830   echo "$as_me: program exited with status $ac_status" >&5
29831 echo "$as_me: failed program was:" >&5
29832 sed 's/^/| /' conftest.$ac_ext >&5
29833
29834 ( exit $ac_status )
29835 if test "$ac_cv_type_boolean" = yes; then
29836      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29837 See \`config.log' for more details." >&5
29838 echo "$as_me: error: cannot compute sizeof (boolean)
29839 See \`config.log' for more details." >&2;}
29840    { (exit 77); exit 77; }; }
29841    else
29842      ac_cv_sizeof_boolean=0
29843    fi
29844 fi
29845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29846 fi
29847 rm -f conftest.val
29848 fi
29849 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29850 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29851
29852
29853
29854 cat >>confdefs.h <<_ACEOF
29855 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29856 _ACEOF
29857
29858
29859                             cat >>confdefs.h <<_ACEOF
29860 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29861 _ACEOF
29862
29863
29864 fi
29865
29866                 fi
29867             fi
29868         fi
29869     fi
29870 fi
29871
29872
29873 TIFF_LINK=
29874 TIFF_PREREQ_LINKS=-lm
29875 if test "$wxUSE_LIBTIFF" != "no" ; then
29876     cat >>confdefs.h <<\_ACEOF
29877 #define wxUSE_LIBTIFF 1
29878 _ACEOF
29879
29880
29881     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29882                         if test "$wxUSE_LIBJPEG" = "sys"; then
29883             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29884         fi
29885         if test "$wxUSE_ZLIB" = "sys"; then
29886             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29887         fi
29888         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29889 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29890 if test "${ac_cv_header_tiffio_h+set}" = set; then
29891   echo $ECHO_N "(cached) $ECHO_C" >&6
29892 else
29893   cat >conftest.$ac_ext <<_ACEOF
29894 /* confdefs.h.  */
29895 _ACEOF
29896 cat confdefs.h >>conftest.$ac_ext
29897 cat >>conftest.$ac_ext <<_ACEOF
29898 /* end confdefs.h.  */
29899
29900
29901
29902 #include <tiffio.h>
29903 _ACEOF
29904 rm -f conftest.$ac_objext
29905 if { (ac_try="$ac_compile"
29906 case "(($ac_try" in
29907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908   *) ac_try_echo=$ac_try;;
29909 esac
29910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29911   (eval "$ac_compile") 2>conftest.er1
29912   ac_status=$?
29913   grep -v '^ *+' conftest.er1 >conftest.err
29914   rm -f conftest.er1
29915   cat conftest.err >&5
29916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917   (exit $ac_status); } && {
29918          test -z "$ac_c_werror_flag" ||
29919          test ! -s conftest.err
29920        } && test -s conftest.$ac_objext; then
29921   ac_cv_header_tiffio_h=yes
29922 else
29923   echo "$as_me: failed program was:" >&5
29924 sed 's/^/| /' conftest.$ac_ext >&5
29925
29926         ac_cv_header_tiffio_h=no
29927 fi
29928
29929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29930 fi
29931 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29932 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29933 if test $ac_cv_header_tiffio_h = yes; then
29934
29935                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29936 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29937 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29938   echo $ECHO_N "(cached) $ECHO_C" >&6
29939 else
29940   ac_check_lib_save_LIBS=$LIBS
29941 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29942 cat >conftest.$ac_ext <<_ACEOF
29943 /* confdefs.h.  */
29944 _ACEOF
29945 cat confdefs.h >>conftest.$ac_ext
29946 cat >>conftest.$ac_ext <<_ACEOF
29947 /* end confdefs.h.  */
29948
29949 /* Override any GCC internal prototype to avoid an error.
29950    Use char because int might match the return type of a GCC
29951    builtin and then its argument prototype would still apply.  */
29952 #ifdef __cplusplus
29953 extern "C"
29954 #endif
29955 char TIFFError ();
29956 int
29957 main ()
29958 {
29959 return TIFFError ();
29960   ;
29961   return 0;
29962 }
29963 _ACEOF
29964 rm -f conftest.$ac_objext conftest$ac_exeext
29965 if { (ac_try="$ac_link"
29966 case "(($ac_try" in
29967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968   *) ac_try_echo=$ac_try;;
29969 esac
29970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971   (eval "$ac_link") 2>conftest.er1
29972   ac_status=$?
29973   grep -v '^ *+' conftest.er1 >conftest.err
29974   rm -f conftest.er1
29975   cat conftest.err >&5
29976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977   (exit $ac_status); } && {
29978          test -z "$ac_c_werror_flag" ||
29979          test ! -s conftest.err
29980        } && test -s conftest$ac_exeext &&
29981        $as_test_x conftest$ac_exeext; then
29982   ac_cv_lib_tiff_TIFFError=yes
29983 else
29984   echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.$ac_ext >&5
29986
29987         ac_cv_lib_tiff_TIFFError=no
29988 fi
29989
29990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29991       conftest$ac_exeext conftest.$ac_ext
29992 LIBS=$ac_check_lib_save_LIBS
29993 fi
29994 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29995 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29996 if test $ac_cv_lib_tiff_TIFFError = yes; then
29997   TIFF_LINK=" -ltiff"
29998 fi
29999
30000
30001 fi
30002
30003
30004
30005         if test "x$TIFF_LINK" = "x" ; then
30006             if test "$wxUSE_LIBTIFF" = "sys" ; then
30007                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
30008 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
30009    { (exit 1); exit 1; }; }
30010             else
30011                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
30012 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
30013                 wxUSE_LIBTIFF=builtin
30014             fi
30015         else
30016                         wxUSE_LIBTIFF=sys
30017         fi
30018     fi
30019 fi
30020
30021
30022 if test "$wxUSE_WCHAR_T" != "yes"; then
30023     if test "$wxUSE_EXPAT" != "no"; then
30024         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
30025 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
30026         wxUSE_EXPAT=no
30027     fi
30028     if test "$wxUSE_XML" != "no"; then
30029         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
30030 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
30031         wxUSE_XML=no
30032     fi
30033 fi
30034
30035 if test "$wxUSE_EXPAT" != "no"; then
30036     wxUSE_XML=yes
30037     cat >>confdefs.h <<\_ACEOF
30038 #define wxUSE_EXPAT 1
30039 _ACEOF
30040
30041     cat >>confdefs.h <<\_ACEOF
30042 #define wxUSE_XML 1
30043 _ACEOF
30044
30045
30046     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
30047         { echo "$as_me:$LINENO: checking for expat.h" >&5
30048 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
30049 if test "${ac_cv_header_expat_h+set}" = set; then
30050   echo $ECHO_N "(cached) $ECHO_C" >&6
30051 else
30052   cat >conftest.$ac_ext <<_ACEOF
30053 /* confdefs.h.  */
30054 _ACEOF
30055 cat confdefs.h >>conftest.$ac_ext
30056 cat >>conftest.$ac_ext <<_ACEOF
30057 /* end confdefs.h.  */
30058
30059
30060 #include <expat.h>
30061 _ACEOF
30062 rm -f conftest.$ac_objext
30063 if { (ac_try="$ac_compile"
30064 case "(($ac_try" in
30065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30066   *) ac_try_echo=$ac_try;;
30067 esac
30068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30069   (eval "$ac_compile") 2>conftest.er1
30070   ac_status=$?
30071   grep -v '^ *+' conftest.er1 >conftest.err
30072   rm -f conftest.er1
30073   cat conftest.err >&5
30074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075   (exit $ac_status); } && {
30076          test -z "$ac_c_werror_flag" ||
30077          test ! -s conftest.err
30078        } && test -s conftest.$ac_objext; then
30079   ac_cv_header_expat_h=yes
30080 else
30081   echo "$as_me: failed program was:" >&5
30082 sed 's/^/| /' conftest.$ac_ext >&5
30083
30084         ac_cv_header_expat_h=no
30085 fi
30086
30087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30088 fi
30089 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
30090 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
30091 if test $ac_cv_header_expat_h = yes; then
30092   found_expat_h=1
30093 fi
30094
30095
30096         if test "x$found_expat_h" = "x1"; then
30097                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
30098 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
30099 if test "${wx_cv_expat_is_not_broken+set}" = set; then
30100   echo $ECHO_N "(cached) $ECHO_C" >&6
30101 else
30102
30103                 ac_ext=cpp
30104 ac_cpp='$CXXCPP $CPPFLAGS'
30105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30108
30109                 cat >conftest.$ac_ext <<_ACEOF
30110 /* confdefs.h.  */
30111 _ACEOF
30112 cat confdefs.h >>conftest.$ac_ext
30113 cat >>conftest.$ac_ext <<_ACEOF
30114 /* end confdefs.h.  */
30115 #include <expat.h>
30116 int
30117 main ()
30118 {
30119
30120   ;
30121   return 0;
30122 }
30123 _ACEOF
30124 rm -f conftest.$ac_objext
30125 if { (ac_try="$ac_compile"
30126 case "(($ac_try" in
30127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30128   *) ac_try_echo=$ac_try;;
30129 esac
30130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30131   (eval "$ac_compile") 2>conftest.er1
30132   ac_status=$?
30133   grep -v '^ *+' conftest.er1 >conftest.err
30134   rm -f conftest.er1
30135   cat conftest.err >&5
30136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137   (exit $ac_status); } && {
30138          test -z "$ac_cxx_werror_flag" ||
30139          test ! -s conftest.err
30140        } && test -s conftest.$ac_objext; then
30141   wx_cv_expat_is_not_broken=yes
30142 else
30143   echo "$as_me: failed program was:" >&5
30144 sed 's/^/| /' conftest.$ac_ext >&5
30145
30146         wx_cv_expat_is_not_broken=no
30147
30148 fi
30149
30150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30151                 ac_ext=c
30152 ac_cpp='$CPP $CPPFLAGS'
30153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30156
30157
30158
30159 fi
30160 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
30161 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
30162             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
30163                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
30164 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
30165 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
30166   echo $ECHO_N "(cached) $ECHO_C" >&6
30167 else
30168   ac_check_lib_save_LIBS=$LIBS
30169 LIBS="-lexpat  $LIBS"
30170 cat >conftest.$ac_ext <<_ACEOF
30171 /* confdefs.h.  */
30172 _ACEOF
30173 cat confdefs.h >>conftest.$ac_ext
30174 cat >>conftest.$ac_ext <<_ACEOF
30175 /* end confdefs.h.  */
30176
30177 /* Override any GCC internal prototype to avoid an error.
30178    Use char because int might match the return type of a GCC
30179    builtin and then its argument prototype would still apply.  */
30180 #ifdef __cplusplus
30181 extern "C"
30182 #endif
30183 char XML_ParserCreate ();
30184 int
30185 main ()
30186 {
30187 return XML_ParserCreate ();
30188   ;
30189   return 0;
30190 }
30191 _ACEOF
30192 rm -f conftest.$ac_objext conftest$ac_exeext
30193 if { (ac_try="$ac_link"
30194 case "(($ac_try" in
30195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30196   *) ac_try_echo=$ac_try;;
30197 esac
30198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30199   (eval "$ac_link") 2>conftest.er1
30200   ac_status=$?
30201   grep -v '^ *+' conftest.er1 >conftest.err
30202   rm -f conftest.er1
30203   cat conftest.err >&5
30204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205   (exit $ac_status); } && {
30206          test -z "$ac_c_werror_flag" ||
30207          test ! -s conftest.err
30208        } && test -s conftest$ac_exeext &&
30209        $as_test_x conftest$ac_exeext; then
30210   ac_cv_lib_expat_XML_ParserCreate=yes
30211 else
30212   echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30214
30215         ac_cv_lib_expat_XML_ParserCreate=no
30216 fi
30217
30218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30219       conftest$ac_exeext conftest.$ac_ext
30220 LIBS=$ac_check_lib_save_LIBS
30221 fi
30222 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
30223 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
30224 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
30225   EXPAT_LINK=" -lexpat"
30226 fi
30227
30228             fi
30229         fi
30230         if test "x$EXPAT_LINK" = "x" ; then
30231             if test "$wxUSE_EXPAT" = "sys" ; then
30232                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
30233 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
30234    { (exit 1); exit 1; }; }
30235             else
30236                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
30237 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
30238                 wxUSE_EXPAT=builtin
30239             fi
30240         else
30241                         wxUSE_EXPAT=sys
30242         fi
30243     fi
30244     if test "$wxUSE_EXPAT" = "builtin" ; then
30245                 subdirs="$subdirs src/expat"
30246
30247     fi
30248 fi
30249
30250
30251
30252 if test "$wxUSE_LIBMSPACK" != "no"; then
30253     { echo "$as_me:$LINENO: checking for mspack.h" >&5
30254 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
30255 if test "${ac_cv_header_mspack_h+set}" = set; then
30256   echo $ECHO_N "(cached) $ECHO_C" >&6
30257 else
30258   cat >conftest.$ac_ext <<_ACEOF
30259 /* confdefs.h.  */
30260 _ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h.  */
30264
30265
30266 #include <mspack.h>
30267 _ACEOF
30268 rm -f conftest.$ac_objext
30269 if { (ac_try="$ac_compile"
30270 case "(($ac_try" in
30271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30272   *) ac_try_echo=$ac_try;;
30273 esac
30274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30275   (eval "$ac_compile") 2>conftest.er1
30276   ac_status=$?
30277   grep -v '^ *+' conftest.er1 >conftest.err
30278   rm -f conftest.er1
30279   cat conftest.err >&5
30280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281   (exit $ac_status); } && {
30282          test -z "$ac_c_werror_flag" ||
30283          test ! -s conftest.err
30284        } && test -s conftest.$ac_objext; then
30285   ac_cv_header_mspack_h=yes
30286 else
30287   echo "$as_me: failed program was:" >&5
30288 sed 's/^/| /' conftest.$ac_ext >&5
30289
30290         ac_cv_header_mspack_h=no
30291 fi
30292
30293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30294 fi
30295 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
30296 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
30297 if test $ac_cv_header_mspack_h = yes; then
30298   found_mspack_h=1
30299 fi
30300
30301
30302     if test "x$found_mspack_h" = "x1"; then
30303         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
30304 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
30305 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
30306   echo $ECHO_N "(cached) $ECHO_C" >&6
30307 else
30308   ac_check_lib_save_LIBS=$LIBS
30309 LIBS="-lmspack  $LIBS"
30310 cat >conftest.$ac_ext <<_ACEOF
30311 /* confdefs.h.  */
30312 _ACEOF
30313 cat confdefs.h >>conftest.$ac_ext
30314 cat >>conftest.$ac_ext <<_ACEOF
30315 /* end confdefs.h.  */
30316
30317 /* Override any GCC internal prototype to avoid an error.
30318    Use char because int might match the return type of a GCC
30319    builtin and then its argument prototype would still apply.  */
30320 #ifdef __cplusplus
30321 extern "C"
30322 #endif
30323 char mspack_create_chm_decompressor ();
30324 int
30325 main ()
30326 {
30327 return mspack_create_chm_decompressor ();
30328   ;
30329   return 0;
30330 }
30331 _ACEOF
30332 rm -f conftest.$ac_objext conftest$ac_exeext
30333 if { (ac_try="$ac_link"
30334 case "(($ac_try" in
30335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30336   *) ac_try_echo=$ac_try;;
30337 esac
30338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30339   (eval "$ac_link") 2>conftest.er1
30340   ac_status=$?
30341   grep -v '^ *+' conftest.er1 >conftest.err
30342   rm -f conftest.er1
30343   cat conftest.err >&5
30344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345   (exit $ac_status); } && {
30346          test -z "$ac_c_werror_flag" ||
30347          test ! -s conftest.err
30348        } && test -s conftest$ac_exeext &&
30349        $as_test_x conftest$ac_exeext; then
30350   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
30351 else
30352   echo "$as_me: failed program was:" >&5
30353 sed 's/^/| /' conftest.$ac_ext >&5
30354
30355         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
30356 fi
30357
30358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30359       conftest$ac_exeext conftest.$ac_ext
30360 LIBS=$ac_check_lib_save_LIBS
30361 fi
30362 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
30363 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
30364 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
30365   MSPACK_LINK=" -lmspack"
30366 fi
30367
30368     fi
30369     if test "x$MSPACK_LINK" = "x" ; then
30370         wxUSE_LIBMSPACK=no
30371     fi
30372 fi
30373
30374 if test "$wxUSE_LIBMSPACK" != "no"; then
30375     cat >>confdefs.h <<\_ACEOF
30376 #define wxUSE_LIBMSPACK 1
30377 _ACEOF
30378
30379 fi
30380
30381
30382
30383 AFMINSTALL=
30384 WIN32INSTALL=
30385
30386 TOOLKIT=
30387 TOOLKIT_INCLUDE=
30388 WIDGET_SET=
30389
30390 if test "$USE_WIN32" = 1 ; then
30391
30392 for ac_header in w32api.h
30393 do
30394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30398   echo $ECHO_N "(cached) $ECHO_C" >&6
30399 else
30400   cat >conftest.$ac_ext <<_ACEOF
30401 /* confdefs.h.  */
30402 _ACEOF
30403 cat confdefs.h >>conftest.$ac_ext
30404 cat >>conftest.$ac_ext <<_ACEOF
30405 /* end confdefs.h.  */
30406
30407
30408 #include <$ac_header>
30409 _ACEOF
30410 rm -f conftest.$ac_objext
30411 if { (ac_try="$ac_compile"
30412 case "(($ac_try" in
30413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30414   *) ac_try_echo=$ac_try;;
30415 esac
30416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30417   (eval "$ac_compile") 2>conftest.er1
30418   ac_status=$?
30419   grep -v '^ *+' conftest.er1 >conftest.err
30420   rm -f conftest.er1
30421   cat conftest.err >&5
30422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423   (exit $ac_status); } && {
30424          test -z "$ac_c_werror_flag" ||
30425          test ! -s conftest.err
30426        } && test -s conftest.$ac_objext; then
30427   eval "$as_ac_Header=yes"
30428 else
30429   echo "$as_me: failed program was:" >&5
30430 sed 's/^/| /' conftest.$ac_ext >&5
30431
30432         eval "$as_ac_Header=no"
30433 fi
30434
30435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30436 fi
30437 ac_res=`eval echo '${'$as_ac_Header'}'`
30438                { echo "$as_me:$LINENO: result: $ac_res" >&5
30439 echo "${ECHO_T}$ac_res" >&6; }
30440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30441   cat >>confdefs.h <<_ACEOF
30442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30443 _ACEOF
30444
30445 fi
30446
30447 done
30448
30449     { echo "$as_me:$LINENO: checking for windows.h" >&5
30450 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30451 if test "${ac_cv_header_windows_h+set}" = set; then
30452   echo $ECHO_N "(cached) $ECHO_C" >&6
30453 else
30454   cat >conftest.$ac_ext <<_ACEOF
30455 /* confdefs.h.  */
30456 _ACEOF
30457 cat confdefs.h >>conftest.$ac_ext
30458 cat >>conftest.$ac_ext <<_ACEOF
30459 /* end confdefs.h.  */
30460
30461
30462 #include <windows.h>
30463 _ACEOF
30464 rm -f conftest.$ac_objext
30465 if { (ac_try="$ac_compile"
30466 case "(($ac_try" in
30467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468   *) ac_try_echo=$ac_try;;
30469 esac
30470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471   (eval "$ac_compile") 2>conftest.er1
30472   ac_status=$?
30473   grep -v '^ *+' conftest.er1 >conftest.err
30474   rm -f conftest.er1
30475   cat conftest.err >&5
30476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30477   (exit $ac_status); } && {
30478          test -z "$ac_c_werror_flag" ||
30479          test ! -s conftest.err
30480        } && test -s conftest.$ac_objext; then
30481   ac_cv_header_windows_h=yes
30482 else
30483   echo "$as_me: failed program was:" >&5
30484 sed 's/^/| /' conftest.$ac_ext >&5
30485
30486         ac_cv_header_windows_h=no
30487 fi
30488
30489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30490 fi
30491 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30492 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30493 if test $ac_cv_header_windows_h = yes; then
30494   :
30495 else
30496
30497         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
30498 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
30499    { (exit 1); exit 1; }; }
30500
30501 fi
30502
30503
30504
30505             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
30506
30507     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
30508         LIBS="$LIBS -loleacc"
30509     fi
30510
30511     case "${host}" in
30512         *-*-cygwin* )
30513                         LIBS="$LIBS -lkernel32 -luser32"
30514     esac
30515
30516         if test "$wxUSE_ODBC" = "sys" ; then
30517         wxUSE_ODBC = "yes"
30518     fi
30519     if test "$wxUSE_ODBC" = "yes" ; then
30520         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
30521         cat >>confdefs.h <<\_ACEOF
30522 #define wxUSE_ODBC 1
30523 _ACEOF
30524
30525     fi
30526
30527         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30528     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
30529
30530                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30531
30532         WIN32INSTALL=win32install
30533
30534         { echo "$as_me:$LINENO: checking for pbt.h" >&5
30535 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
30536 if test "${ac_cv_header_pbt_h+set}" = set; then
30537   echo $ECHO_N "(cached) $ECHO_C" >&6
30538 else
30539   cat >conftest.$ac_ext <<_ACEOF
30540 /* confdefs.h.  */
30541 _ACEOF
30542 cat confdefs.h >>conftest.$ac_ext
30543 cat >>conftest.$ac_ext <<_ACEOF
30544 /* end confdefs.h.  */
30545
30546
30547 #include <pbt.h>
30548 _ACEOF
30549 rm -f conftest.$ac_objext
30550 if { (ac_try="$ac_compile"
30551 case "(($ac_try" in
30552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30553   *) ac_try_echo=$ac_try;;
30554 esac
30555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30556   (eval "$ac_compile") 2>conftest.er1
30557   ac_status=$?
30558   grep -v '^ *+' conftest.er1 >conftest.err
30559   rm -f conftest.er1
30560   cat conftest.err >&5
30561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562   (exit $ac_status); } && {
30563          test -z "$ac_c_werror_flag" ||
30564          test ! -s conftest.err
30565        } && test -s conftest.$ac_objext; then
30566   ac_cv_header_pbt_h=yes
30567 else
30568   echo "$as_me: failed program was:" >&5
30569 sed 's/^/| /' conftest.$ac_ext >&5
30570
30571         ac_cv_header_pbt_h=no
30572 fi
30573
30574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30575 fi
30576 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
30577 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
30578 if test $ac_cv_header_pbt_h = yes; then
30579   :
30580 else
30581   cat >>confdefs.h <<\_ACEOF
30582 #define NEED_PBT_H 1
30583 _ACEOF
30584
30585 fi
30586
30587
30588 fi
30589
30590 if test "$wxUSE_GUI" = "yes"; then
30591     USE_GUI=1
30592
30593     GUI_TK_LIBRARY=
30594
30595     WXGTK12=
30596     WXGTK127=
30597     WXGTK20=
30598     WXGPE=
30599
30600     if test "$wxUSE_COCOA" = 1 ; then
30601         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
30602             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
30603 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
30604             wxUSE_PRINTING_ARCHITECTURE=no
30605         fi
30606         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
30607             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
30608 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
30609             wxUSE_DRAG_AND_DROP=no
30610         fi
30611         if test "$wxUSE_DRAGIMAGE" = "yes"; then
30612             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
30613 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
30614             wxUSE_DRAGIMAGE=no
30615         fi
30616     fi
30617
30618     if test "$wxUSE_MSW" = 1 ; then
30619         TOOLKIT=MSW
30620         GUIDIST=MSW_DIST
30621
30622                 case "${host}" in
30623             *-*-mingw32* )
30624                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
30625         esac
30626     fi
30627
30628     if test "$wxUSE_GTK" = 1; then
30629                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
30630 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
30631
30632         gtk_version_cached=1
30633         if test "${wx_cv_lib_gtk+set}" = set; then
30634   echo $ECHO_N "(cached) $ECHO_C" >&6
30635 else
30636
30637                                                 gtk_version_cached=0
30638                 { echo "$as_me:$LINENO: result: " >&5
30639 echo "${ECHO_T}" >&6; }
30640
30641                                                 GTK_MODULES=
30642                 if test "$wxUSE_THREADS" = "yes"; then
30643                     GTK_MODULES=gthread
30644                 fi
30645
30646                                 wx_cv_lib_gtk=
30647                 if test "x$wxGTK_VERSION" != "x1"
30648                 then
30649                                                                                 case "${host}" in
30650                         *-*-solaris2* )
30651                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
30652                                 enable_gtktest=no
30653                             fi
30654                     esac
30655
30656                     # Check whether --enable-gtktest was given.
30657 if test "${enable_gtktest+set}" = set; then
30658   enableval=$enable_gtktest;
30659 else
30660   enable_gtktest=yes
30661 fi
30662
30663
30664   pkg_config_args=gtk+-2.0
30665   for module in . $GTK_MODULES
30666   do
30667       case "$module" in
30668          gthread)
30669              pkg_config_args="$pkg_config_args gthread-2.0"
30670          ;;
30671       esac
30672   done
30673
30674   no_gtk=""
30675
30676   # Extract the first word of "pkg-config", so it can be a program name with args.
30677 set dummy pkg-config; ac_word=$2
30678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30680 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30681   echo $ECHO_N "(cached) $ECHO_C" >&6
30682 else
30683   case $PKG_CONFIG in
30684   [\\/]* | ?:[\\/]*)
30685   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30686   ;;
30687   *)
30688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30689 for as_dir in $PATH
30690 do
30691   IFS=$as_save_IFS
30692   test -z "$as_dir" && as_dir=.
30693   for ac_exec_ext in '' $ac_executable_extensions; do
30694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30695     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30697     break 2
30698   fi
30699 done
30700 done
30701 IFS=$as_save_IFS
30702
30703   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30704   ;;
30705 esac
30706 fi
30707 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30708 if test -n "$PKG_CONFIG"; then
30709   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30710 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30711 else
30712   { echo "$as_me:$LINENO: result: no" >&5
30713 echo "${ECHO_T}no" >&6; }
30714 fi
30715
30716
30717
30718   if test x$PKG_CONFIG != xno ; then
30719     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30720       :
30721     else
30722       echo "*** pkg-config too old; version 0.7 or better required."
30723       no_gtk=yes
30724       PKG_CONFIG=no
30725     fi
30726   else
30727     no_gtk=yes
30728   fi
30729
30730   min_gtk_version=2.0.0
30731   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30732 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30733
30734   if test x$PKG_CONFIG != xno ; then
30735     ## don't try to run the test against uninstalled libtool libs
30736     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30737           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30738           enable_gtktest=no
30739     fi
30740
30741     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30742           :
30743     else
30744           no_gtk=yes
30745     fi
30746   fi
30747
30748   if test x"$no_gtk" = x ; then
30749     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30750     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30751     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30752            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30753     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30754            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30755     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30756            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30757     if test "x$enable_gtktest" = "xyes" ; then
30758       ac_save_CFLAGS="$CFLAGS"
30759       ac_save_LIBS="$LIBS"
30760       CFLAGS="$CFLAGS $GTK_CFLAGS"
30761       LIBS="$GTK_LIBS $LIBS"
30762       rm -f conf.gtktest
30763       if test "$cross_compiling" = yes; then
30764   echo $ac_n "cross compiling; assumed OK... $ac_c"
30765 else
30766   cat >conftest.$ac_ext <<_ACEOF
30767 /* confdefs.h.  */
30768 _ACEOF
30769 cat confdefs.h >>conftest.$ac_ext
30770 cat >>conftest.$ac_ext <<_ACEOF
30771 /* end confdefs.h.  */
30772
30773 #include <gtk/gtk.h>
30774 #include <stdio.h>
30775 #include <stdlib.h>
30776
30777 int
30778 main ()
30779 {
30780   int major, minor, micro;
30781   char *tmp_version;
30782
30783   system ("touch conf.gtktest");
30784
30785   /* HP/UX 9 (%@#!) writes to sscanf strings */
30786   tmp_version = g_strdup("$min_gtk_version");
30787   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30788      printf("%s, bad version string\n", "$min_gtk_version");
30789      exit(1);
30790    }
30791
30792   if ((gtk_major_version != $gtk_config_major_version) ||
30793       (gtk_minor_version != $gtk_config_minor_version) ||
30794       (gtk_micro_version != $gtk_config_micro_version))
30795     {
30796       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30797              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30798              gtk_major_version, gtk_minor_version, gtk_micro_version);
30799       printf ("*** was found! If pkg-config was correct, then it is best\n");
30800       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30801       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30802       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30803       printf("*** required on your system.\n");
30804       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30805       printf("*** to point to the correct configuration files\n");
30806     }
30807   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30808            (gtk_minor_version != GTK_MINOR_VERSION) ||
30809            (gtk_micro_version != GTK_MICRO_VERSION))
30810     {
30811       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30812              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30813       printf("*** library (version %d.%d.%d)\n",
30814              gtk_major_version, gtk_minor_version, gtk_micro_version);
30815     }
30816   else
30817     {
30818       if ((gtk_major_version > major) ||
30819         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30820         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30821       {
30822         return 0;
30823        }
30824      else
30825       {
30826         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30827                gtk_major_version, gtk_minor_version, gtk_micro_version);
30828         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30829                major, minor, micro);
30830         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30831         printf("***\n");
30832         printf("*** If you have already installed a sufficiently new version, this error\n");
30833         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30834         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30835         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30836         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30837         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30838         printf("*** so that the correct libraries are found at run-time))\n");
30839       }
30840     }
30841   return 1;
30842 }
30843
30844 _ACEOF
30845 rm -f conftest$ac_exeext
30846 if { (ac_try="$ac_link"
30847 case "(($ac_try" in
30848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30849   *) ac_try_echo=$ac_try;;
30850 esac
30851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30852   (eval "$ac_link") 2>&5
30853   ac_status=$?
30854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30856   { (case "(($ac_try" in
30857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30858   *) ac_try_echo=$ac_try;;
30859 esac
30860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30861   (eval "$ac_try") 2>&5
30862   ac_status=$?
30863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864   (exit $ac_status); }; }; then
30865   :
30866 else
30867   echo "$as_me: program exited with status $ac_status" >&5
30868 echo "$as_me: failed program was:" >&5
30869 sed 's/^/| /' conftest.$ac_ext >&5
30870
30871 ( exit $ac_status )
30872 no_gtk=yes
30873 fi
30874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30875 fi
30876
30877
30878        CFLAGS="$ac_save_CFLAGS"
30879        LIBS="$ac_save_LIBS"
30880      fi
30881   fi
30882   if test "x$no_gtk" = x ; then
30883      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30884 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30885      wx_cv_lib_gtk=2.0
30886   else
30887      { echo "$as_me:$LINENO: result: no" >&5
30888 echo "${ECHO_T}no" >&6; }
30889      if test "$PKG_CONFIG" = "no" ; then
30890        echo "*** A new enough version of pkg-config was not found."
30891        echo "*** See http://pkgconfig.sourceforge.net"
30892      else
30893        if test -f conf.gtktest ; then
30894         :
30895        else
30896           echo "*** Could not run GTK+ test program, checking why..."
30897           ac_save_CFLAGS="$CFLAGS"
30898           ac_save_LIBS="$LIBS"
30899           CFLAGS="$CFLAGS $GTK_CFLAGS"
30900           LIBS="$LIBS $GTK_LIBS"
30901           cat >conftest.$ac_ext <<_ACEOF
30902 /* confdefs.h.  */
30903 _ACEOF
30904 cat confdefs.h >>conftest.$ac_ext
30905 cat >>conftest.$ac_ext <<_ACEOF
30906 /* end confdefs.h.  */
30907
30908 #include <gtk/gtk.h>
30909 #include <stdio.h>
30910
30911 int
30912 main ()
30913 {
30914  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30915   ;
30916   return 0;
30917 }
30918 _ACEOF
30919 rm -f conftest.$ac_objext conftest$ac_exeext
30920 if { (ac_try="$ac_link"
30921 case "(($ac_try" in
30922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30923   *) ac_try_echo=$ac_try;;
30924 esac
30925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30926   (eval "$ac_link") 2>conftest.er1
30927   ac_status=$?
30928   grep -v '^ *+' conftest.er1 >conftest.err
30929   rm -f conftest.er1
30930   cat conftest.err >&5
30931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932   (exit $ac_status); } && {
30933          test -z "$ac_c_werror_flag" ||
30934          test ! -s conftest.err
30935        } && test -s conftest$ac_exeext &&
30936        $as_test_x conftest$ac_exeext; then
30937    echo "*** The test program compiled, but did not run. This usually means"
30938           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30939           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30940           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30941           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30942           echo "*** is required on your system"
30943           echo "***"
30944           echo "*** If you have an old version installed, it is best to remove it, although"
30945           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30946 else
30947   echo "$as_me: failed program was:" >&5
30948 sed 's/^/| /' conftest.$ac_ext >&5
30949
30950          echo "*** The test program failed to compile or link. See the file config.log for the"
30951           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30952 fi
30953
30954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30955       conftest$ac_exeext conftest.$ac_ext
30956           CFLAGS="$ac_save_CFLAGS"
30957           LIBS="$ac_save_LIBS"
30958        fi
30959      fi
30960      GTK_CFLAGS=""
30961      GTK_LIBS=""
30962      :
30963   fi
30964
30965
30966   rm -f conf.gtktest
30967
30968
30969                                         case "${host}" in
30970                         *-*-solaris2* )
30971                             if test "$wxUSE_SHARED" != "yes"; then
30972                                 GTK_LIBS="$GTK_LIBS -lX11"
30973                             fi
30974                     esac
30975                 fi
30976
30977                                 if test -z "$wx_cv_lib_gtk"; then
30978                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30979
30980 # Check whether --with-gtk-prefix was given.
30981 if test "${with_gtk_prefix+set}" = set; then
30982   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30983 else
30984   gtk_config_prefix=""
30985 fi
30986
30987
30988 # Check whether --with-gtk-exec-prefix was given.
30989 if test "${with_gtk_exec_prefix+set}" = set; then
30990   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30991 else
30992   gtk_config_exec_prefix=""
30993 fi
30994
30995 # Check whether --enable-gtktest was given.
30996 if test "${enable_gtktest+set}" = set; then
30997   enableval=$enable_gtktest;
30998 else
30999   enable_gtktest=yes
31000 fi
31001
31002
31003   for module in . $GTK_MODULES
31004   do
31005       case "$module" in
31006          gthread)
31007              gtk_config_args="$gtk_config_args gthread"
31008          ;;
31009       esac
31010   done
31011
31012   if test x$gtk_config_exec_prefix != x ; then
31013      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31014      if test x${GTK_CONFIG+set} != xset ; then
31015         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31016      fi
31017   fi
31018   if test x$gtk_config_prefix != x ; then
31019      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31020      if test x${GTK_CONFIG+set} != xset ; then
31021         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31022      fi
31023   fi
31024
31025   # Extract the first word of "gtk-config", so it can be a program name with args.
31026 set dummy gtk-config; ac_word=$2
31027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31029 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31030   echo $ECHO_N "(cached) $ECHO_C" >&6
31031 else
31032   case $GTK_CONFIG in
31033   [\\/]* | ?:[\\/]*)
31034   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31035   ;;
31036   *)
31037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31038 for as_dir in $PATH
31039 do
31040   IFS=$as_save_IFS
31041   test -z "$as_dir" && as_dir=.
31042   for ac_exec_ext in '' $ac_executable_extensions; do
31043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31044     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31046     break 2
31047   fi
31048 done
31049 done
31050 IFS=$as_save_IFS
31051
31052   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31053   ;;
31054 esac
31055 fi
31056 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31057 if test -n "$GTK_CONFIG"; then
31058   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31059 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31060 else
31061   { echo "$as_me:$LINENO: result: no" >&5
31062 echo "${ECHO_T}no" >&6; }
31063 fi
31064
31065
31066   min_gtk_version=1.2.7
31067   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31068 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31069   no_gtk=""
31070   if test "$GTK_CONFIG" = "no" ; then
31071     no_gtk=yes
31072   else
31073     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31074     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31075     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31076            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31077     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31078            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31079     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31080            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31081     if test "x$enable_gtktest" = "xyes" ; then
31082       ac_save_CFLAGS="$CFLAGS"
31083       ac_save_LIBS="$LIBS"
31084       CFLAGS="$CFLAGS $GTK_CFLAGS"
31085       LIBS="$GTK_LIBS $LIBS"
31086       rm -f conf.gtktest
31087       if test "$cross_compiling" = yes; then
31088   echo $ac_n "cross compiling; assumed OK... $ac_c"
31089 else
31090   cat >conftest.$ac_ext <<_ACEOF
31091 /* confdefs.h.  */
31092 _ACEOF
31093 cat confdefs.h >>conftest.$ac_ext
31094 cat >>conftest.$ac_ext <<_ACEOF
31095 /* end confdefs.h.  */
31096
31097 #include <gtk/gtk.h>
31098 #include <stdio.h>
31099 #include <stdlib.h>
31100
31101 int
31102 main ()
31103 {
31104   int major, minor, micro;
31105   char *tmp_version;
31106
31107   system ("touch conf.gtktest");
31108
31109   /* HP/UX 9 (%@#!) writes to sscanf strings */
31110   tmp_version = g_strdup("$min_gtk_version");
31111   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31112      printf("%s, bad version string\n", "$min_gtk_version");
31113      exit(1);
31114    }
31115
31116   if ((gtk_major_version != $gtk_config_major_version) ||
31117       (gtk_minor_version != $gtk_config_minor_version) ||
31118       (gtk_micro_version != $gtk_config_micro_version))
31119     {
31120       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31121              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31122              gtk_major_version, gtk_minor_version, gtk_micro_version);
31123       printf ("*** was found! If gtk-config was correct, then it is best\n");
31124       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31125       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31126       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31127       printf("*** required on your system.\n");
31128       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31129       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31130       printf("*** before re-running configure\n");
31131     }
31132 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31133   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31134            (gtk_minor_version != GTK_MINOR_VERSION) ||
31135            (gtk_micro_version != GTK_MICRO_VERSION))
31136     {
31137       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31138              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31139       printf("*** library (version %d.%d.%d)\n",
31140              gtk_major_version, gtk_minor_version, gtk_micro_version);
31141     }
31142 #endif /* defined (GTK_MAJOR_VERSION) ... */
31143   else
31144     {
31145       if ((gtk_major_version > major) ||
31146         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31147         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31148       {
31149         return 0;
31150        }
31151      else
31152       {
31153         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31154                gtk_major_version, gtk_minor_version, gtk_micro_version);
31155         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31156                major, minor, micro);
31157         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31158         printf("***\n");
31159         printf("*** If you have already installed a sufficiently new version, this error\n");
31160         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31161         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31162         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31163         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31164         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31165         printf("*** so that the correct libraries are found at run-time))\n");
31166       }
31167     }
31168   return 1;
31169 }
31170
31171 _ACEOF
31172 rm -f conftest$ac_exeext
31173 if { (ac_try="$ac_link"
31174 case "(($ac_try" in
31175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176   *) ac_try_echo=$ac_try;;
31177 esac
31178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179   (eval "$ac_link") 2>&5
31180   ac_status=$?
31181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31183   { (case "(($ac_try" in
31184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31185   *) ac_try_echo=$ac_try;;
31186 esac
31187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31188   (eval "$ac_try") 2>&5
31189   ac_status=$?
31190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191   (exit $ac_status); }; }; then
31192   :
31193 else
31194   echo "$as_me: program exited with status $ac_status" >&5
31195 echo "$as_me: failed program was:" >&5
31196 sed 's/^/| /' conftest.$ac_ext >&5
31197
31198 ( exit $ac_status )
31199 no_gtk=yes
31200 fi
31201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31202 fi
31203
31204
31205        CFLAGS="$ac_save_CFLAGS"
31206        LIBS="$ac_save_LIBS"
31207      fi
31208   fi
31209   if test "x$no_gtk" = x ; then
31210      { echo "$as_me:$LINENO: result: yes" >&5
31211 echo "${ECHO_T}yes" >&6; }
31212      wx_cv_lib_gtk=1.2.7
31213   else
31214      { echo "$as_me:$LINENO: result: no" >&5
31215 echo "${ECHO_T}no" >&6; }
31216      if test "$GTK_CONFIG" = "no" ; then
31217        echo "*** The gtk-config script installed by GTK could not be found"
31218        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31219        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31220        echo "*** full path to gtk-config."
31221      else
31222        if test -f conf.gtktest ; then
31223         :
31224        else
31225           echo "*** Could not run GTK test program, checking why..."
31226           CFLAGS="$CFLAGS $GTK_CFLAGS"
31227           LIBS="$LIBS $GTK_LIBS"
31228           cat >conftest.$ac_ext <<_ACEOF
31229 /* confdefs.h.  */
31230 _ACEOF
31231 cat confdefs.h >>conftest.$ac_ext
31232 cat >>conftest.$ac_ext <<_ACEOF
31233 /* end confdefs.h.  */
31234
31235 #include <gtk/gtk.h>
31236 #include <stdio.h>
31237
31238 int
31239 main ()
31240 {
31241  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31242   ;
31243   return 0;
31244 }
31245 _ACEOF
31246 rm -f conftest.$ac_objext conftest$ac_exeext
31247 if { (ac_try="$ac_link"
31248 case "(($ac_try" in
31249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31250   *) ac_try_echo=$ac_try;;
31251 esac
31252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31253   (eval "$ac_link") 2>conftest.er1
31254   ac_status=$?
31255   grep -v '^ *+' conftest.er1 >conftest.err
31256   rm -f conftest.er1
31257   cat conftest.err >&5
31258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259   (exit $ac_status); } && {
31260          test -z "$ac_c_werror_flag" ||
31261          test ! -s conftest.err
31262        } && test -s conftest$ac_exeext &&
31263        $as_test_x conftest$ac_exeext; then
31264    echo "*** The test program compiled, but did not run. This usually means"
31265           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31266           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31267           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31268           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31269           echo "*** is required on your system"
31270           echo "***"
31271           echo "*** If you have an old version installed, it is best to remove it, although"
31272           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31273           echo "***"
31274           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31275           echo "*** came with the system with the command"
31276           echo "***"
31277           echo "***    rpm --erase --nodeps gtk gtk-devel"
31278 else
31279   echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31281
31282          echo "*** The test program failed to compile or link. See the file config.log for the"
31283           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31284           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31285           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31286 fi
31287
31288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31289       conftest$ac_exeext conftest.$ac_ext
31290           CFLAGS="$ac_save_CFLAGS"
31291           LIBS="$ac_save_LIBS"
31292        fi
31293      fi
31294      GTK_CFLAGS=""
31295      GTK_LIBS=""
31296      :
31297   fi
31298
31299
31300   rm -f conf.gtktest
31301
31302
31303                         if test -z "$wx_cv_lib_gtk"; then
31304
31305 # Check whether --with-gtk-prefix was given.
31306 if test "${with_gtk_prefix+set}" = set; then
31307   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
31308 else
31309   gtk_config_prefix=""
31310 fi
31311
31312
31313 # Check whether --with-gtk-exec-prefix was given.
31314 if test "${with_gtk_exec_prefix+set}" = set; then
31315   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
31316 else
31317   gtk_config_exec_prefix=""
31318 fi
31319
31320 # Check whether --enable-gtktest was given.
31321 if test "${enable_gtktest+set}" = set; then
31322   enableval=$enable_gtktest;
31323 else
31324   enable_gtktest=yes
31325 fi
31326
31327
31328   for module in . $GTK_MODULES
31329   do
31330       case "$module" in
31331          gthread)
31332              gtk_config_args="$gtk_config_args gthread"
31333          ;;
31334       esac
31335   done
31336
31337   if test x$gtk_config_exec_prefix != x ; then
31338      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31339      if test x${GTK_CONFIG+set} != xset ; then
31340         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31341      fi
31342   fi
31343   if test x$gtk_config_prefix != x ; then
31344      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31345      if test x${GTK_CONFIG+set} != xset ; then
31346         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31347      fi
31348   fi
31349
31350   # Extract the first word of "gtk-config", so it can be a program name with args.
31351 set dummy gtk-config; ac_word=$2
31352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31354 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31355   echo $ECHO_N "(cached) $ECHO_C" >&6
31356 else
31357   case $GTK_CONFIG in
31358   [\\/]* | ?:[\\/]*)
31359   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31360   ;;
31361   *)
31362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31363 for as_dir in $PATH
31364 do
31365   IFS=$as_save_IFS
31366   test -z "$as_dir" && as_dir=.
31367   for ac_exec_ext in '' $ac_executable_extensions; do
31368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31369     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31371     break 2
31372   fi
31373 done
31374 done
31375 IFS=$as_save_IFS
31376
31377   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31378   ;;
31379 esac
31380 fi
31381 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31382 if test -n "$GTK_CONFIG"; then
31383   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31384 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31385 else
31386   { echo "$as_me:$LINENO: result: no" >&5
31387 echo "${ECHO_T}no" >&6; }
31388 fi
31389
31390
31391   min_gtk_version=1.2.3
31392   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31393 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31394   no_gtk=""
31395   if test "$GTK_CONFIG" = "no" ; then
31396     no_gtk=yes
31397   else
31398     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31399     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31400     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31401            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31402     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31403            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31404     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31405            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31406     if test "x$enable_gtktest" = "xyes" ; then
31407       ac_save_CFLAGS="$CFLAGS"
31408       ac_save_LIBS="$LIBS"
31409       CFLAGS="$CFLAGS $GTK_CFLAGS"
31410       LIBS="$GTK_LIBS $LIBS"
31411       rm -f conf.gtktest
31412       if test "$cross_compiling" = yes; then
31413   echo $ac_n "cross compiling; assumed OK... $ac_c"
31414 else
31415   cat >conftest.$ac_ext <<_ACEOF
31416 /* confdefs.h.  */
31417 _ACEOF
31418 cat confdefs.h >>conftest.$ac_ext
31419 cat >>conftest.$ac_ext <<_ACEOF
31420 /* end confdefs.h.  */
31421
31422 #include <gtk/gtk.h>
31423 #include <stdio.h>
31424 #include <stdlib.h>
31425
31426 int
31427 main ()
31428 {
31429   int major, minor, micro;
31430   char *tmp_version;
31431
31432   system ("touch conf.gtktest");
31433
31434   /* HP/UX 9 (%@#!) writes to sscanf strings */
31435   tmp_version = g_strdup("$min_gtk_version");
31436   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31437      printf("%s, bad version string\n", "$min_gtk_version");
31438      exit(1);
31439    }
31440
31441   if ((gtk_major_version != $gtk_config_major_version) ||
31442       (gtk_minor_version != $gtk_config_minor_version) ||
31443       (gtk_micro_version != $gtk_config_micro_version))
31444     {
31445       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31446              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31447              gtk_major_version, gtk_minor_version, gtk_micro_version);
31448       printf ("*** was found! If gtk-config was correct, then it is best\n");
31449       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31450       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31451       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31452       printf("*** required on your system.\n");
31453       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31454       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31455       printf("*** before re-running configure\n");
31456     }
31457 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31458   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31459            (gtk_minor_version != GTK_MINOR_VERSION) ||
31460            (gtk_micro_version != GTK_MICRO_VERSION))
31461     {
31462       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31463              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31464       printf("*** library (version %d.%d.%d)\n",
31465              gtk_major_version, gtk_minor_version, gtk_micro_version);
31466     }
31467 #endif /* defined (GTK_MAJOR_VERSION) ... */
31468   else
31469     {
31470       if ((gtk_major_version > major) ||
31471         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31472         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31473       {
31474         return 0;
31475        }
31476      else
31477       {
31478         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31479                gtk_major_version, gtk_minor_version, gtk_micro_version);
31480         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31481                major, minor, micro);
31482         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31483         printf("***\n");
31484         printf("*** If you have already installed a sufficiently new version, this error\n");
31485         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31486         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31487         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31488         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31489         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31490         printf("*** so that the correct libraries are found at run-time))\n");
31491       }
31492     }
31493   return 1;
31494 }
31495
31496 _ACEOF
31497 rm -f conftest$ac_exeext
31498 if { (ac_try="$ac_link"
31499 case "(($ac_try" in
31500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31501   *) ac_try_echo=$ac_try;;
31502 esac
31503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31504   (eval "$ac_link") 2>&5
31505   ac_status=$?
31506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31508   { (case "(($ac_try" in
31509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31510   *) ac_try_echo=$ac_try;;
31511 esac
31512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31513   (eval "$ac_try") 2>&5
31514   ac_status=$?
31515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31516   (exit $ac_status); }; }; then
31517   :
31518 else
31519   echo "$as_me: program exited with status $ac_status" >&5
31520 echo "$as_me: failed program was:" >&5
31521 sed 's/^/| /' conftest.$ac_ext >&5
31522
31523 ( exit $ac_status )
31524 no_gtk=yes
31525 fi
31526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31527 fi
31528
31529
31530        CFLAGS="$ac_save_CFLAGS"
31531        LIBS="$ac_save_LIBS"
31532      fi
31533   fi
31534   if test "x$no_gtk" = x ; then
31535      { echo "$as_me:$LINENO: result: yes" >&5
31536 echo "${ECHO_T}yes" >&6; }
31537      wx_cv_lib_gtk=1.2.3
31538   else
31539      { echo "$as_me:$LINENO: result: no" >&5
31540 echo "${ECHO_T}no" >&6; }
31541      if test "$GTK_CONFIG" = "no" ; then
31542        echo "*** The gtk-config script installed by GTK could not be found"
31543        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31544        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31545        echo "*** full path to gtk-config."
31546      else
31547        if test -f conf.gtktest ; then
31548         :
31549        else
31550           echo "*** Could not run GTK test program, checking why..."
31551           CFLAGS="$CFLAGS $GTK_CFLAGS"
31552           LIBS="$LIBS $GTK_LIBS"
31553           cat >conftest.$ac_ext <<_ACEOF
31554 /* confdefs.h.  */
31555 _ACEOF
31556 cat confdefs.h >>conftest.$ac_ext
31557 cat >>conftest.$ac_ext <<_ACEOF
31558 /* end confdefs.h.  */
31559
31560 #include <gtk/gtk.h>
31561 #include <stdio.h>
31562
31563 int
31564 main ()
31565 {
31566  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31567   ;
31568   return 0;
31569 }
31570 _ACEOF
31571 rm -f conftest.$ac_objext conftest$ac_exeext
31572 if { (ac_try="$ac_link"
31573 case "(($ac_try" in
31574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31575   *) ac_try_echo=$ac_try;;
31576 esac
31577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31578   (eval "$ac_link") 2>conftest.er1
31579   ac_status=$?
31580   grep -v '^ *+' conftest.er1 >conftest.err
31581   rm -f conftest.er1
31582   cat conftest.err >&5
31583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31584   (exit $ac_status); } && {
31585          test -z "$ac_c_werror_flag" ||
31586          test ! -s conftest.err
31587        } && test -s conftest$ac_exeext &&
31588        $as_test_x conftest$ac_exeext; then
31589    echo "*** The test program compiled, but did not run. This usually means"
31590           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31591           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31592           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31593           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31594           echo "*** is required on your system"
31595           echo "***"
31596           echo "*** If you have an old version installed, it is best to remove it, although"
31597           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31598           echo "***"
31599           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31600           echo "*** came with the system with the command"
31601           echo "***"
31602           echo "***    rpm --erase --nodeps gtk gtk-devel"
31603 else
31604   echo "$as_me: failed program was:" >&5
31605 sed 's/^/| /' conftest.$ac_ext >&5
31606
31607          echo "*** The test program failed to compile or link. See the file config.log for the"
31608           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31609           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31610           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31611 fi
31612
31613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31614       conftest$ac_exeext conftest.$ac_ext
31615           CFLAGS="$ac_save_CFLAGS"
31616           LIBS="$ac_save_LIBS"
31617        fi
31618      fi
31619      GTK_CFLAGS=""
31620      GTK_LIBS=""
31621      :
31622   fi
31623
31624
31625   rm -f conf.gtktest
31626
31627                         fi
31628                     fi
31629                 fi
31630
31631                 if test -z "$wx_cv_lib_gtk"; then
31632                                         wx_cv_lib_gtk=none
31633                 else
31634                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
31635                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
31636                 fi
31637
31638
31639 fi
31640
31641
31642                         if test "$gtk_version_cached" = 1; then
31643             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
31644 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
31645         fi
31646
31647         case "$wx_cv_lib_gtk" in
31648             2.0)    WXGTK20=1
31649                     TOOLKIT_VERSION=2
31650                     ;;
31651             1.2.7)  WXGTK127=1
31652                     WXGTK12=1
31653                     ;;
31654             1.2.3)  WXGTK12=1
31655                     ;;
31656             *)      { { echo "$as_me:$LINENO: error:
31657 The development files for GTK+ were not found. For GTK+ 2, please
31658 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31659 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31660 and that the version is 1.2.3 or above. Also check that the
31661 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31662 --libs' are in the LD_LIBRARY_PATH or equivalent.
31663                             " >&5
31664 echo "$as_me: error:
31665 The development files for GTK+ were not found. For GTK+ 2, please
31666 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31667 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31668 and that the version is 1.2.3 or above. Also check that the
31669 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31670 --libs' are in the LD_LIBRARY_PATH or equivalent.
31671                             " >&2;}
31672    { (exit 1); exit 1; }; }
31673                     ;;
31674         esac
31675
31676         if test "$WXGTK20" = 1; then
31677             save_CFLAGS="$CFLAGS"
31678             save_LIBS="$LIBS"
31679             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
31680             LIBS="$LIBS $wx_cv_libs_gtk"
31681
31682                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
31683 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
31684 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
31685   echo $ECHO_N "(cached) $ECHO_C" >&6
31686 else
31687   cat >conftest.$ac_ext <<_ACEOF
31688 /* confdefs.h.  */
31689 _ACEOF
31690 cat confdefs.h >>conftest.$ac_ext
31691 cat >>conftest.$ac_ext <<_ACEOF
31692 /* end confdefs.h.  */
31693 #include <gtk/gtk.h>
31694
31695 int
31696 main ()
31697 {
31698 #ifndef gtk_icon_size_lookup
31699   (void) gtk_icon_size_lookup;
31700 #endif
31701
31702   ;
31703   return 0;
31704 }
31705 _ACEOF
31706 rm -f conftest.$ac_objext
31707 if { (ac_try="$ac_compile"
31708 case "(($ac_try" in
31709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31710   *) ac_try_echo=$ac_try;;
31711 esac
31712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31713   (eval "$ac_compile") 2>conftest.er1
31714   ac_status=$?
31715   grep -v '^ *+' conftest.er1 >conftest.err
31716   rm -f conftest.er1
31717   cat conftest.err >&5
31718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719   (exit $ac_status); } && {
31720          test -z "$ac_c_werror_flag" ||
31721          test ! -s conftest.err
31722        } && test -s conftest.$ac_objext; then
31723   ac_cv_have_decl_gtk_icon_size_lookup=yes
31724 else
31725   echo "$as_me: failed program was:" >&5
31726 sed 's/^/| /' conftest.$ac_ext >&5
31727
31728         ac_cv_have_decl_gtk_icon_size_lookup=no
31729 fi
31730
31731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31732 fi
31733 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
31734 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
31735 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
31736
31737 cat >>confdefs.h <<_ACEOF
31738 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
31739 _ACEOF
31740
31741
31742 else
31743   cat >>confdefs.h <<_ACEOF
31744 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
31745 _ACEOF
31746
31747 cat >>confdefs.h <<\_ACEOF
31748 #define NEED_GTK_ICON_SIZE_LOOKUP 1
31749 _ACEOF
31750
31751 fi
31752
31753
31754
31755
31756                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31757 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31758             cat >conftest.$ac_ext <<_ACEOF
31759 /* confdefs.h.  */
31760 _ACEOF
31761 cat confdefs.h >>conftest.$ac_ext
31762 cat >>conftest.$ac_ext <<_ACEOF
31763 /* end confdefs.h.  */
31764
31765                             #include <gtk/gtk.h>
31766
31767 int
31768 main ()
31769 {
31770
31771                             #if !GTK_CHECK_VERSION(2,10,0)
31772                             Not GTK+ 2.10
31773                             #endif
31774
31775   ;
31776   return 0;
31777 }
31778 _ACEOF
31779 rm -f conftest.$ac_objext
31780 if { (ac_try="$ac_compile"
31781 case "(($ac_try" in
31782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783   *) ac_try_echo=$ac_try;;
31784 esac
31785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786   (eval "$ac_compile") 2>conftest.er1
31787   ac_status=$?
31788   grep -v '^ *+' conftest.er1 >conftest.err
31789   rm -f conftest.er1
31790   cat conftest.err >&5
31791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31792   (exit $ac_status); } && {
31793          test -z "$ac_c_werror_flag" ||
31794          test ! -s conftest.err
31795        } && test -s conftest.$ac_objext; then
31796
31797                             cat >>confdefs.h <<\_ACEOF
31798 #define __WXGTK210__ 1
31799 _ACEOF
31800
31801                             cat >>confdefs.h <<\_ACEOF
31802 #define __WXGTK26__ 1
31803 _ACEOF
31804
31805                             cat >>confdefs.h <<\_ACEOF
31806 #define __WXGTK24__ 1
31807 _ACEOF
31808
31809                             { echo "$as_me:$LINENO: result: yes" >&5
31810 echo "${ECHO_T}yes" >&6; }
31811                             ac_wxgtk210=1
31812
31813 else
31814   echo "$as_me: failed program was:" >&5
31815 sed 's/^/| /' conftest.$ac_ext >&5
31816
31817
31818                             { echo "$as_me:$LINENO: result: no" >&5
31819 echo "${ECHO_T}no" >&6; }
31820                             ac_wxgtk210=0
31821
31822 fi
31823
31824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31825
31826             if test "$ac_wxgtk210" = 0; then
31827                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31828 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31829                 cat >conftest.$ac_ext <<_ACEOF
31830 /* confdefs.h.  */
31831 _ACEOF
31832 cat confdefs.h >>conftest.$ac_ext
31833 cat >>conftest.$ac_ext <<_ACEOF
31834 /* end confdefs.h.  */
31835
31836                                 #include <gtk/gtk.h>
31837
31838 int
31839 main ()
31840 {
31841
31842                                 #if !GTK_CHECK_VERSION(2,6,0)
31843                                 Not GTK+ 2.6
31844                                 #endif
31845
31846   ;
31847   return 0;
31848 }
31849 _ACEOF
31850 rm -f conftest.$ac_objext
31851 if { (ac_try="$ac_compile"
31852 case "(($ac_try" in
31853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31854   *) ac_try_echo=$ac_try;;
31855 esac
31856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31857   (eval "$ac_compile") 2>conftest.er1
31858   ac_status=$?
31859   grep -v '^ *+' conftest.er1 >conftest.err
31860   rm -f conftest.er1
31861   cat conftest.err >&5
31862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31863   (exit $ac_status); } && {
31864          test -z "$ac_c_werror_flag" ||
31865          test ! -s conftest.err
31866        } && test -s conftest.$ac_objext; then
31867
31868                                 cat >>confdefs.h <<\_ACEOF
31869 #define __WXGTK26__ 1
31870 _ACEOF
31871
31872                                 cat >>confdefs.h <<\_ACEOF
31873 #define __WXGTK24__ 1
31874 _ACEOF
31875
31876                                 { echo "$as_me:$LINENO: result: yes" >&5
31877 echo "${ECHO_T}yes" >&6; }
31878                                 ac_wxgtk26=1
31879
31880 else
31881   echo "$as_me: failed program was:" >&5
31882 sed 's/^/| /' conftest.$ac_ext >&5
31883
31884
31885                                 { echo "$as_me:$LINENO: result: no" >&5
31886 echo "${ECHO_T}no" >&6; }
31887                                 ac_wxgtk26=0
31888
31889 fi
31890
31891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31892             fi
31893
31894             if test "$ac_wxgtk26" = 0; then
31895                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
31896 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
31897                 cat >conftest.$ac_ext <<_ACEOF
31898 /* confdefs.h.  */
31899 _ACEOF
31900 cat confdefs.h >>conftest.$ac_ext
31901 cat >>conftest.$ac_ext <<_ACEOF
31902 /* end confdefs.h.  */
31903
31904                                 #include <gtk/gtk.h>
31905
31906 int
31907 main ()
31908 {
31909
31910                                 #if !GTK_CHECK_VERSION(2,4,0)
31911                                 Not GTK+ 2.4
31912                                 #endif
31913
31914   ;
31915   return 0;
31916 }
31917 _ACEOF
31918 rm -f conftest.$ac_objext
31919 if { (ac_try="$ac_compile"
31920 case "(($ac_try" in
31921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31922   *) ac_try_echo=$ac_try;;
31923 esac
31924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31925   (eval "$ac_compile") 2>conftest.er1
31926   ac_status=$?
31927   grep -v '^ *+' conftest.er1 >conftest.err
31928   rm -f conftest.er1
31929   cat conftest.err >&5
31930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931   (exit $ac_status); } && {
31932          test -z "$ac_c_werror_flag" ||
31933          test ! -s conftest.err
31934        } && test -s conftest.$ac_objext; then
31935
31936                                 cat >>confdefs.h <<\_ACEOF
31937 #define __WXGTK24__ 1
31938 _ACEOF
31939
31940                                 { echo "$as_me:$LINENO: result: yes" >&5
31941 echo "${ECHO_T}yes" >&6; }
31942
31943 else
31944   echo "$as_me: failed program was:" >&5
31945 sed 's/^/| /' conftest.$ac_ext >&5
31946
31947
31948                                 { echo "$as_me:$LINENO: result: no" >&5
31949 echo "${ECHO_T}no" >&6; }
31950
31951 fi
31952
31953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31954             fi
31955
31956             CFLAGS="$save_CFLAGS"
31957             LIBS="$save_LIBS"
31958         else
31959             if test "$wxUSE_UNICODE" = "yes"; then
31960                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31961 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31962                 wxUSE_UNICODE=no
31963             fi
31964
31965                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31966 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31967 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31968   echo $ECHO_N "(cached) $ECHO_C" >&6
31969 else
31970   ac_check_lib_save_LIBS=$LIBS
31971 LIBS="-lgdk  $LIBS"
31972 cat >conftest.$ac_ext <<_ACEOF
31973 /* confdefs.h.  */
31974 _ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h.  */
31978
31979 /* Override any GCC internal prototype to avoid an error.
31980    Use char because int might match the return type of a GCC
31981    builtin and then its argument prototype would still apply.  */
31982 #ifdef __cplusplus
31983 extern "C"
31984 #endif
31985 char gdk_im_open ();
31986 int
31987 main ()
31988 {
31989 return gdk_im_open ();
31990   ;
31991   return 0;
31992 }
31993 _ACEOF
31994 rm -f conftest.$ac_objext conftest$ac_exeext
31995 if { (ac_try="$ac_link"
31996 case "(($ac_try" in
31997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31998   *) ac_try_echo=$ac_try;;
31999 esac
32000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32001   (eval "$ac_link") 2>conftest.er1
32002   ac_status=$?
32003   grep -v '^ *+' conftest.er1 >conftest.err
32004   rm -f conftest.er1
32005   cat conftest.err >&5
32006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007   (exit $ac_status); } && {
32008          test -z "$ac_c_werror_flag" ||
32009          test ! -s conftest.err
32010        } && test -s conftest$ac_exeext &&
32011        $as_test_x conftest$ac_exeext; then
32012   ac_cv_lib_gdk_gdk_im_open=yes
32013 else
32014   echo "$as_me: failed program was:" >&5
32015 sed 's/^/| /' conftest.$ac_ext >&5
32016
32017         ac_cv_lib_gdk_gdk_im_open=no
32018 fi
32019
32020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32021       conftest$ac_exeext conftest.$ac_ext
32022 LIBS=$ac_check_lib_save_LIBS
32023 fi
32024 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
32025 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
32026 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
32027   cat >>confdefs.h <<\_ACEOF
32028 #define HAVE_XIM 1
32029 _ACEOF
32030
32031 fi
32032
32033
32034                                     if test "$USE_DARWIN" != 1; then
32035
32036 for ac_func in poll
32037 do
32038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32041 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32042   echo $ECHO_N "(cached) $ECHO_C" >&6
32043 else
32044   cat >conftest.$ac_ext <<_ACEOF
32045 /* confdefs.h.  */
32046 _ACEOF
32047 cat confdefs.h >>conftest.$ac_ext
32048 cat >>conftest.$ac_ext <<_ACEOF
32049 /* end confdefs.h.  */
32050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32052 #define $ac_func innocuous_$ac_func
32053
32054 /* System header to define __stub macros and hopefully few prototypes,
32055     which can conflict with char $ac_func (); below.
32056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32057     <limits.h> exists even on freestanding compilers.  */
32058
32059 #ifdef __STDC__
32060 # include <limits.h>
32061 #else
32062 # include <assert.h>
32063 #endif
32064
32065 #undef $ac_func
32066
32067 /* Override any GCC internal prototype to avoid an error.
32068    Use char because int might match the return type of a GCC
32069    builtin and then its argument prototype would still apply.  */
32070 #ifdef __cplusplus
32071 extern "C"
32072 #endif
32073 char $ac_func ();
32074 /* The GNU C library defines this for functions which it implements
32075     to always fail with ENOSYS.  Some functions are actually named
32076     something starting with __ and the normal name is an alias.  */
32077 #if defined __stub_$ac_func || defined __stub___$ac_func
32078 choke me
32079 #endif
32080
32081 int
32082 main ()
32083 {
32084 return $ac_func ();
32085   ;
32086   return 0;
32087 }
32088 _ACEOF
32089 rm -f conftest.$ac_objext conftest$ac_exeext
32090 if { (ac_try="$ac_link"
32091 case "(($ac_try" in
32092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093   *) ac_try_echo=$ac_try;;
32094 esac
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096   (eval "$ac_link") 2>conftest.er1
32097   ac_status=$?
32098   grep -v '^ *+' conftest.er1 >conftest.err
32099   rm -f conftest.er1
32100   cat conftest.err >&5
32101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102   (exit $ac_status); } && {
32103          test -z "$ac_c_werror_flag" ||
32104          test ! -s conftest.err
32105        } && test -s conftest$ac_exeext &&
32106        $as_test_x conftest$ac_exeext; then
32107   eval "$as_ac_var=yes"
32108 else
32109   echo "$as_me: failed program was:" >&5
32110 sed 's/^/| /' conftest.$ac_ext >&5
32111
32112         eval "$as_ac_var=no"
32113 fi
32114
32115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32116       conftest$ac_exeext conftest.$ac_ext
32117 fi
32118 ac_res=`eval echo '${'$as_ac_var'}'`
32119                { echo "$as_me:$LINENO: result: $ac_res" >&5
32120 echo "${ECHO_T}$ac_res" >&6; }
32121 if test `eval echo '${'$as_ac_var'}'` = yes; then
32122   cat >>confdefs.h <<_ACEOF
32123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32124 _ACEOF
32125
32126 fi
32127 done
32128
32129             fi
32130         fi
32131
32132         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
32133         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
32134
32135         AFMINSTALL=afminstall
32136         TOOLKIT=GTK
32137         GUIDIST=GTK_DIST
32138
32139                 if test "$wxUSE_GPE" = "yes"; then
32140             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
32141 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
32142
32143   ac_find_libraries=
32144   for ac_dir in $SEARCH_LIB;
32145   do
32146     for ac_extension in a so sl dylib dll.a; do
32147       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
32148         ac_find_libraries=$ac_dir
32149         break 2
32150       fi
32151     done
32152   done
32153
32154             if test "$ac_find_libraries" != "" ; then
32155
32156     if test "$ac_find_libraries" = "default location"; then
32157     ac_path_to_link=""
32158   else
32159     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32160     result=$?
32161     if test $result = 0; then
32162       ac_path_to_link=""
32163     else
32164       ac_path_to_link=" -L$ac_find_libraries"
32165     fi
32166   fi
32167
32168                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
32169                 WXGPE=1
32170                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32171 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32172             else
32173                 { echo "$as_me:$LINENO: result: not found" >&5
32174 echo "${ECHO_T}not found" >&6; }
32175             fi
32176
32177                                                                                                                     fi
32178     fi
32179
32180     if test "$wxUSE_MGL" = 1; then
32181        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
32182 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
32183         if test "x$MGL_ROOT" = x ; then
32184             { echo "$as_me:$LINENO: result: not found" >&5
32185 echo "${ECHO_T}not found" >&6; }
32186             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
32187 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
32188    { (exit 1); exit 1; }; }
32189         else
32190             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
32191 echo "${ECHO_T}$MGL_ROOT" >&6; }
32192         fi
32193
32194         { echo "$as_me:$LINENO: checking for libmgl location" >&5
32195 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
32196                                 case "${host}" in
32197             *-*-linux* )
32198                                           if test "x$wxUSE_SHARED" = xyes ; then
32199                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
32200               else
32201                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
32202               fi
32203               ;;
32204             *-pc-msdosdjgpp )
32205               mgl_os_candidates="dos32/dj2"
32206               ;;
32207             *)
32208               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
32209 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
32210    { (exit 1); exit 1; }; }
32211         esac
32212
32213         mgl_lib_type=""
32214         mgl_os=""
32215
32216         for mgl_os_i in $mgl_os_candidates ; do
32217             if test "x$mgl_os" = x ; then
32218                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
32219                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
32220                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
32221                         mgl_lib_type=debug
32222                         mgl_os=$mgl_os_i
32223                     fi
32224                 fi
32225                 if test "x$mgl_lib_type" = x ; then
32226                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
32227                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
32228                         mgl_lib_type=release
32229                         mgl_os=$mgl_os_i
32230                     fi
32231                 fi
32232             fi
32233         done
32234
32235         if test "x$mgl_os" = x ; then
32236             { echo "$as_me:$LINENO: result: not found" >&5
32237 echo "${ECHO_T}not found" >&6; }
32238             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
32239 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
32240    { (exit 1); exit 1; }; }
32241         fi
32242         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
32243 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
32244
32245         wxUSE_UNIVERSAL="yes"
32246
32247         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
32248         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
32249
32250         AFMINSTALL=afminstall
32251         TOOLKIT=MGL
32252         GUIDIST=MGL_DIST
32253     fi
32254
32255     if test "$wxUSE_DFB" = 1; then
32256
32257
32258 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32259         if test -n "$ac_tool_prefix"; then
32260   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32261 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32264 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32265   echo $ECHO_N "(cached) $ECHO_C" >&6
32266 else
32267   case $PKG_CONFIG in
32268   [\\/]* | ?:[\\/]*)
32269   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32270   ;;
32271   *)
32272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32273 for as_dir in $PATH
32274 do
32275   IFS=$as_save_IFS
32276   test -z "$as_dir" && as_dir=.
32277   for ac_exec_ext in '' $ac_executable_extensions; do
32278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32279     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32281     break 2
32282   fi
32283 done
32284 done
32285 IFS=$as_save_IFS
32286
32287   ;;
32288 esac
32289 fi
32290 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32291 if test -n "$PKG_CONFIG"; then
32292   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32293 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32294 else
32295   { echo "$as_me:$LINENO: result: no" >&5
32296 echo "${ECHO_T}no" >&6; }
32297 fi
32298
32299
32300 fi
32301 if test -z "$ac_cv_path_PKG_CONFIG"; then
32302   ac_pt_PKG_CONFIG=$PKG_CONFIG
32303   # Extract the first word of "pkg-config", so it can be a program name with args.
32304 set dummy pkg-config; ac_word=$2
32305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32307 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32308   echo $ECHO_N "(cached) $ECHO_C" >&6
32309 else
32310   case $ac_pt_PKG_CONFIG in
32311   [\\/]* | ?:[\\/]*)
32312   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32313   ;;
32314   *)
32315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32316 for as_dir in $PATH
32317 do
32318   IFS=$as_save_IFS
32319   test -z "$as_dir" && as_dir=.
32320   for ac_exec_ext in '' $ac_executable_extensions; do
32321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32322     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32324     break 2
32325   fi
32326 done
32327 done
32328 IFS=$as_save_IFS
32329
32330   ;;
32331 esac
32332 fi
32333 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32334 if test -n "$ac_pt_PKG_CONFIG"; then
32335   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32336 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32337 else
32338   { echo "$as_me:$LINENO: result: no" >&5
32339 echo "${ECHO_T}no" >&6; }
32340 fi
32341
32342   if test "x$ac_pt_PKG_CONFIG" = x; then
32343     PKG_CONFIG=""
32344   else
32345     case $cross_compiling:$ac_tool_warned in
32346 yes:)
32347 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32348 whose name does not start with the host triplet.  If you think this
32349 configuration is useful to you, please write to autoconf@gnu.org." >&5
32350 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32351 whose name does not start with the host triplet.  If you think this
32352 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32353 ac_tool_warned=yes ;;
32354 esac
32355     PKG_CONFIG=$ac_pt_PKG_CONFIG
32356   fi
32357 else
32358   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32359 fi
32360
32361 fi
32362 if test -n "$PKG_CONFIG"; then
32363         _pkg_min_version=0.9.0
32364         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32365 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32366         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32367                 { echo "$as_me:$LINENO: result: yes" >&5
32368 echo "${ECHO_T}yes" >&6; }
32369         else
32370                 { echo "$as_me:$LINENO: result: no" >&5
32371 echo "${ECHO_T}no" >&6; }
32372                 PKG_CONFIG=""
32373         fi
32374
32375 fi
32376
32377
32378 pkg_failed=no
32379 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
32380 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
32381
32382 if test -n "$PKG_CONFIG"; then
32383     if test -n "$DIRECTFB_CFLAGS"; then
32384         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
32385     else
32386         if test -n "$PKG_CONFIG" && \
32387     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32388   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32389   ac_status=$?
32390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391   (exit $ac_status); }; then
32392   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
32393 else
32394   pkg_failed=yes
32395 fi
32396     fi
32397 else
32398         pkg_failed=untried
32399 fi
32400 if test -n "$PKG_CONFIG"; then
32401     if test -n "$DIRECTFB_LIBS"; then
32402         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
32403     else
32404         if test -n "$PKG_CONFIG" && \
32405     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32406   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32407   ac_status=$?
32408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32409   (exit $ac_status); }; then
32410   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
32411 else
32412   pkg_failed=yes
32413 fi
32414     fi
32415 else
32416         pkg_failed=untried
32417 fi
32418
32419
32420
32421 if test $pkg_failed = yes; then
32422
32423 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32424         _pkg_short_errors_supported=yes
32425 else
32426         _pkg_short_errors_supported=no
32427 fi
32428         if test $_pkg_short_errors_supported = yes; then
32429                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32430         else
32431                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32432         fi
32433         # Put the nasty error message in config.log where it belongs
32434         echo "$DIRECTFB_PKG_ERRORS" >&5
32435
32436
32437                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32438 echo "$as_me: error: DirectFB not found." >&2;}
32439    { (exit 1); exit 1; }; }
32440
32441
32442 elif test $pkg_failed = untried; then
32443
32444                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32445 echo "$as_me: error: DirectFB not found." >&2;}
32446    { (exit 1); exit 1; }; }
32447
32448
32449 else
32450         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
32451         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
32452         { echo "$as_me:$LINENO: result: yes" >&5
32453 echo "${ECHO_T}yes" >&6; }
32454
32455                            wxUSE_UNIVERSAL="yes"
32456                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
32457                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
32458                            TOOLKIT=DFB
32459                            GUIDIST=DFB_DIST
32460
32461 fi
32462     fi
32463
32464     if test "$wxUSE_MICROWIN" = 1; then
32465         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
32466 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
32467         if test "x$MICROWINDOWS" = x ; then
32468             { echo "$as_me:$LINENO: result: not found" >&5
32469 echo "${ECHO_T}not found" >&6; }
32470             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
32471 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
32472    { (exit 1); exit 1; }; }
32473         else
32474             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
32475 echo "${ECHO_T}$MICROWINDOWS" >&6; }
32476         fi
32477
32478         if test -f $MICROWINDOWS/lib/libmwin.a; then
32479             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
32480 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
32481         else
32482             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
32483 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
32484    { (exit 1); exit 1; }; }
32485         fi
32486
32487         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
32488         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
32489
32490         wxUSE_UNIVERSAL="yes"
32491
32492         AFMINSTALL=afminstall
32493         TOOLKIT=MICROWIN
32494         GUIDIST=MICROWIN_DIST
32495
32496         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
32497     fi
32498
32499         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32500                                 { echo "$as_me:$LINENO: checking for X" >&5
32501 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
32502
32503
32504 # Check whether --with-x was given.
32505 if test "${with_x+set}" = set; then
32506   withval=$with_x;
32507 fi
32508
32509 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32510 if test "x$with_x" = xno; then
32511   # The user explicitly disabled X.
32512   have_x=disabled
32513 else
32514   case $x_includes,$x_libraries in #(
32515     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
32516 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
32517    { (exit 1); exit 1; }; };; #(
32518     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
32519   echo $ECHO_N "(cached) $ECHO_C" >&6
32520 else
32521   # One or both of the vars are not set, and there is no cached value.
32522 ac_x_includes=no ac_x_libraries=no
32523 rm -f -r conftest.dir
32524 if mkdir conftest.dir; then
32525   cd conftest.dir
32526   cat >Imakefile <<'_ACEOF'
32527 incroot:
32528         @echo incroot='${INCROOT}'
32529 usrlibdir:
32530         @echo usrlibdir='${USRLIBDIR}'
32531 libdir:
32532         @echo libdir='${LIBDIR}'
32533 _ACEOF
32534   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
32535     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
32536     for ac_var in incroot usrlibdir libdir; do
32537       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32538     done
32539     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32540     for ac_extension in a so sl; do
32541       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32542          test -f "$ac_im_libdir/libX11.$ac_extension"; then
32543         ac_im_usrlibdir=$ac_im_libdir; break
32544       fi
32545     done
32546     # Screen out bogus values from the imake configuration.  They are
32547     # bogus both because they are the default anyway, and because
32548     # using them would break gcc on systems where it needs fixed includes.
32549     case $ac_im_incroot in
32550         /usr/include) ac_x_includes= ;;
32551         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32552     esac
32553     case $ac_im_usrlibdir in
32554         /usr/lib | /lib) ;;
32555         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32556     esac
32557   fi
32558   cd ..
32559   rm -f -r conftest.dir
32560 fi
32561
32562 # Standard set of common directories for X headers.
32563 # Check X11 before X11Rn because it is often a symlink to the current release.
32564 ac_x_header_dirs='
32565 /usr/X11/include
32566 /usr/X11R6/include
32567 /usr/X11R5/include
32568 /usr/X11R4/include
32569
32570 /usr/include/X11
32571 /usr/include/X11R6
32572 /usr/include/X11R5
32573 /usr/include/X11R4
32574
32575 /usr/local/X11/include
32576 /usr/local/X11R6/include
32577 /usr/local/X11R5/include
32578 /usr/local/X11R4/include
32579
32580 /usr/local/include/X11
32581 /usr/local/include/X11R6
32582 /usr/local/include/X11R5
32583 /usr/local/include/X11R4
32584
32585 /usr/X386/include
32586 /usr/x386/include
32587 /usr/XFree86/include/X11
32588
32589 /usr/include
32590 /usr/local/include
32591 /usr/unsupported/include
32592 /usr/athena/include
32593 /usr/local/x11r5/include
32594 /usr/lpp/Xamples/include
32595
32596 /usr/openwin/include
32597 /usr/openwin/share/include'
32598
32599 if test "$ac_x_includes" = no; then
32600   # Guess where to find include files, by looking for Xlib.h.
32601   # First, try using that file with no special directory specified.
32602   cat >conftest.$ac_ext <<_ACEOF
32603 /* confdefs.h.  */
32604 _ACEOF
32605 cat confdefs.h >>conftest.$ac_ext
32606 cat >>conftest.$ac_ext <<_ACEOF
32607 /* end confdefs.h.  */
32608 #include <X11/Xlib.h>
32609 _ACEOF
32610 if { (ac_try="$ac_cpp conftest.$ac_ext"
32611 case "(($ac_try" in
32612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32613   *) ac_try_echo=$ac_try;;
32614 esac
32615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32616   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32617   ac_status=$?
32618   grep -v '^ *+' conftest.er1 >conftest.err
32619   rm -f conftest.er1
32620   cat conftest.err >&5
32621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622   (exit $ac_status); } >/dev/null && {
32623          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32624          test ! -s conftest.err
32625        }; then
32626   # We can compile using X headers with no special include directory.
32627 ac_x_includes=
32628 else
32629   echo "$as_me: failed program was:" >&5
32630 sed 's/^/| /' conftest.$ac_ext >&5
32631
32632   for ac_dir in $ac_x_header_dirs; do
32633   if test -r "$ac_dir/X11/Xlib.h"; then
32634     ac_x_includes=$ac_dir
32635     break
32636   fi
32637 done
32638 fi
32639
32640 rm -f conftest.err conftest.$ac_ext
32641 fi # $ac_x_includes = no
32642
32643 if test "$ac_x_libraries" = no; then
32644   # Check for the libraries.
32645   # See if we find them without any special options.
32646   # Don't add to $LIBS permanently.
32647   ac_save_LIBS=$LIBS
32648   LIBS="-lX11 $LIBS"
32649   cat >conftest.$ac_ext <<_ACEOF
32650 /* confdefs.h.  */
32651 _ACEOF
32652 cat confdefs.h >>conftest.$ac_ext
32653 cat >>conftest.$ac_ext <<_ACEOF
32654 /* end confdefs.h.  */
32655 #include <X11/Xlib.h>
32656 int
32657 main ()
32658 {
32659 XrmInitialize ()
32660   ;
32661   return 0;
32662 }
32663 _ACEOF
32664 rm -f conftest.$ac_objext conftest$ac_exeext
32665 if { (ac_try="$ac_link"
32666 case "(($ac_try" in
32667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32668   *) ac_try_echo=$ac_try;;
32669 esac
32670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32671   (eval "$ac_link") 2>conftest.er1
32672   ac_status=$?
32673   grep -v '^ *+' conftest.er1 >conftest.err
32674   rm -f conftest.er1
32675   cat conftest.err >&5
32676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677   (exit $ac_status); } && {
32678          test -z "$ac_c_werror_flag" ||
32679          test ! -s conftest.err
32680        } && test -s conftest$ac_exeext &&
32681        $as_test_x conftest$ac_exeext; then
32682   LIBS=$ac_save_LIBS
32683 # We can link X programs with no special library path.
32684 ac_x_libraries=
32685 else
32686   echo "$as_me: failed program was:" >&5
32687 sed 's/^/| /' conftest.$ac_ext >&5
32688
32689         LIBS=$ac_save_LIBS
32690 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32691 do
32692   # Don't even attempt the hair of trying to link an X program!
32693   for ac_extension in a so sl; do
32694     if test -r "$ac_dir/libX11.$ac_extension"; then
32695       ac_x_libraries=$ac_dir
32696       break 2
32697     fi
32698   done
32699 done
32700 fi
32701
32702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32703       conftest$ac_exeext conftest.$ac_ext
32704 fi # $ac_x_libraries = no
32705
32706 case $ac_x_includes,$ac_x_libraries in #(
32707   no,* | *,no | *\'*)
32708     # Didn't find X, or a directory has "'" in its name.
32709     ac_cv_have_x="have_x=no";; #(
32710   *)
32711     # Record where we found X for the cache.
32712     ac_cv_have_x="have_x=yes\
32713         ac_x_includes='$ac_x_includes'\
32714         ac_x_libraries='$ac_x_libraries'"
32715 esac
32716 fi
32717 ;; #(
32718     *) have_x=yes;;
32719   esac
32720   eval "$ac_cv_have_x"
32721 fi # $with_x != no
32722
32723 if test "$have_x" != yes; then
32724   { echo "$as_me:$LINENO: result: $have_x" >&5
32725 echo "${ECHO_T}$have_x" >&6; }
32726   no_x=yes
32727 else
32728   # If each of the values was on the command line, it overrides each guess.
32729   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32730   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32731   # Update the cache value to reflect the command line values.
32732   ac_cv_have_x="have_x=yes\
32733         ac_x_includes='$x_includes'\
32734         ac_x_libraries='$x_libraries'"
32735   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32736 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
32737 fi
32738
32739 if test "$no_x" = yes; then
32740   # Not all programs may use this symbol, but it does not hurt to define it.
32741
32742 cat >>confdefs.h <<\_ACEOF
32743 #define X_DISPLAY_MISSING 1
32744 _ACEOF
32745
32746   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32747 else
32748   if test -n "$x_includes"; then
32749     X_CFLAGS="$X_CFLAGS -I$x_includes"
32750   fi
32751
32752   # It would also be nice to do this for all -L options, not just this one.
32753   if test -n "$x_libraries"; then
32754     X_LIBS="$X_LIBS -L$x_libraries"
32755     # For Solaris; some versions of Sun CC require a space after -R and
32756     # others require no space.  Words are not sufficient . . . .
32757     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32758 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32759     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32760     ac_xsave_c_werror_flag=$ac_c_werror_flag
32761     ac_c_werror_flag=yes
32762     cat >conftest.$ac_ext <<_ACEOF
32763 /* confdefs.h.  */
32764 _ACEOF
32765 cat confdefs.h >>conftest.$ac_ext
32766 cat >>conftest.$ac_ext <<_ACEOF
32767 /* end confdefs.h.  */
32768
32769 int
32770 main ()
32771 {
32772
32773   ;
32774   return 0;
32775 }
32776 _ACEOF
32777 rm -f conftest.$ac_objext conftest$ac_exeext
32778 if { (ac_try="$ac_link"
32779 case "(($ac_try" in
32780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32781   *) ac_try_echo=$ac_try;;
32782 esac
32783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32784   (eval "$ac_link") 2>conftest.er1
32785   ac_status=$?
32786   grep -v '^ *+' conftest.er1 >conftest.err
32787   rm -f conftest.er1
32788   cat conftest.err >&5
32789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790   (exit $ac_status); } && {
32791          test -z "$ac_c_werror_flag" ||
32792          test ! -s conftest.err
32793        } && test -s conftest$ac_exeext &&
32794        $as_test_x conftest$ac_exeext; then
32795   { echo "$as_me:$LINENO: result: no" >&5
32796 echo "${ECHO_T}no" >&6; }
32797        X_LIBS="$X_LIBS -R$x_libraries"
32798 else
32799   echo "$as_me: failed program was:" >&5
32800 sed 's/^/| /' conftest.$ac_ext >&5
32801
32802         LIBS="$ac_xsave_LIBS -R $x_libraries"
32803        cat >conftest.$ac_ext <<_ACEOF
32804 /* confdefs.h.  */
32805 _ACEOF
32806 cat confdefs.h >>conftest.$ac_ext
32807 cat >>conftest.$ac_ext <<_ACEOF
32808 /* end confdefs.h.  */
32809
32810 int
32811 main ()
32812 {
32813
32814   ;
32815   return 0;
32816 }
32817 _ACEOF
32818 rm -f conftest.$ac_objext conftest$ac_exeext
32819 if { (ac_try="$ac_link"
32820 case "(($ac_try" in
32821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32822   *) ac_try_echo=$ac_try;;
32823 esac
32824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32825   (eval "$ac_link") 2>conftest.er1
32826   ac_status=$?
32827   grep -v '^ *+' conftest.er1 >conftest.err
32828   rm -f conftest.er1
32829   cat conftest.err >&5
32830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831   (exit $ac_status); } && {
32832          test -z "$ac_c_werror_flag" ||
32833          test ! -s conftest.err
32834        } && test -s conftest$ac_exeext &&
32835        $as_test_x conftest$ac_exeext; then
32836   { echo "$as_me:$LINENO: result: yes" >&5
32837 echo "${ECHO_T}yes" >&6; }
32838           X_LIBS="$X_LIBS -R $x_libraries"
32839 else
32840   echo "$as_me: failed program was:" >&5
32841 sed 's/^/| /' conftest.$ac_ext >&5
32842
32843         { echo "$as_me:$LINENO: result: neither works" >&5
32844 echo "${ECHO_T}neither works" >&6; }
32845 fi
32846
32847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32848       conftest$ac_exeext conftest.$ac_ext
32849 fi
32850
32851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32852       conftest$ac_exeext conftest.$ac_ext
32853     ac_c_werror_flag=$ac_xsave_c_werror_flag
32854     LIBS=$ac_xsave_LIBS
32855   fi
32856
32857   # Check for system-dependent libraries X programs must link with.
32858   # Do this before checking for the system-independent R6 libraries
32859   # (-lICE), since we may need -lsocket or whatever for X linking.
32860
32861   if test "$ISC" = yes; then
32862     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32863   else
32864     # Martyn Johnson says this is needed for Ultrix, if the X
32865     # libraries were built with DECnet support.  And Karl Berry says
32866     # the Alpha needs dnet_stub (dnet does not exist).
32867     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32868     cat >conftest.$ac_ext <<_ACEOF
32869 /* confdefs.h.  */
32870 _ACEOF
32871 cat confdefs.h >>conftest.$ac_ext
32872 cat >>conftest.$ac_ext <<_ACEOF
32873 /* end confdefs.h.  */
32874
32875 /* Override any GCC internal prototype to avoid an error.
32876    Use char because int might match the return type of a GCC
32877    builtin and then its argument prototype would still apply.  */
32878 #ifdef __cplusplus
32879 extern "C"
32880 #endif
32881 char XOpenDisplay ();
32882 int
32883 main ()
32884 {
32885 return XOpenDisplay ();
32886   ;
32887   return 0;
32888 }
32889 _ACEOF
32890 rm -f conftest.$ac_objext conftest$ac_exeext
32891 if { (ac_try="$ac_link"
32892 case "(($ac_try" in
32893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32894   *) ac_try_echo=$ac_try;;
32895 esac
32896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32897   (eval "$ac_link") 2>conftest.er1
32898   ac_status=$?
32899   grep -v '^ *+' conftest.er1 >conftest.err
32900   rm -f conftest.er1
32901   cat conftest.err >&5
32902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903   (exit $ac_status); } && {
32904          test -z "$ac_c_werror_flag" ||
32905          test ! -s conftest.err
32906        } && test -s conftest$ac_exeext &&
32907        $as_test_x conftest$ac_exeext; then
32908   :
32909 else
32910   echo "$as_me: failed program was:" >&5
32911 sed 's/^/| /' conftest.$ac_ext >&5
32912
32913         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32914 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32915 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32916   echo $ECHO_N "(cached) $ECHO_C" >&6
32917 else
32918   ac_check_lib_save_LIBS=$LIBS
32919 LIBS="-ldnet  $LIBS"
32920 cat >conftest.$ac_ext <<_ACEOF
32921 /* confdefs.h.  */
32922 _ACEOF
32923 cat confdefs.h >>conftest.$ac_ext
32924 cat >>conftest.$ac_ext <<_ACEOF
32925 /* end confdefs.h.  */
32926
32927 /* Override any GCC internal prototype to avoid an error.
32928    Use char because int might match the return type of a GCC
32929    builtin and then its argument prototype would still apply.  */
32930 #ifdef __cplusplus
32931 extern "C"
32932 #endif
32933 char dnet_ntoa ();
32934 int
32935 main ()
32936 {
32937 return dnet_ntoa ();
32938   ;
32939   return 0;
32940 }
32941 _ACEOF
32942 rm -f conftest.$ac_objext conftest$ac_exeext
32943 if { (ac_try="$ac_link"
32944 case "(($ac_try" in
32945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32946   *) ac_try_echo=$ac_try;;
32947 esac
32948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32949   (eval "$ac_link") 2>conftest.er1
32950   ac_status=$?
32951   grep -v '^ *+' conftest.er1 >conftest.err
32952   rm -f conftest.er1
32953   cat conftest.err >&5
32954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955   (exit $ac_status); } && {
32956          test -z "$ac_c_werror_flag" ||
32957          test ! -s conftest.err
32958        } && test -s conftest$ac_exeext &&
32959        $as_test_x conftest$ac_exeext; then
32960   ac_cv_lib_dnet_dnet_ntoa=yes
32961 else
32962   echo "$as_me: failed program was:" >&5
32963 sed 's/^/| /' conftest.$ac_ext >&5
32964
32965         ac_cv_lib_dnet_dnet_ntoa=no
32966 fi
32967
32968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32969       conftest$ac_exeext conftest.$ac_ext
32970 LIBS=$ac_check_lib_save_LIBS
32971 fi
32972 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32973 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32974 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32975   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32976 fi
32977
32978     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32979       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32980 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32981 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
32982   echo $ECHO_N "(cached) $ECHO_C" >&6
32983 else
32984   ac_check_lib_save_LIBS=$LIBS
32985 LIBS="-ldnet_stub  $LIBS"
32986 cat >conftest.$ac_ext <<_ACEOF
32987 /* confdefs.h.  */
32988 _ACEOF
32989 cat confdefs.h >>conftest.$ac_ext
32990 cat >>conftest.$ac_ext <<_ACEOF
32991 /* end confdefs.h.  */
32992
32993 /* Override any GCC internal prototype to avoid an error.
32994    Use char because int might match the return type of a GCC
32995    builtin and then its argument prototype would still apply.  */
32996 #ifdef __cplusplus
32997 extern "C"
32998 #endif
32999 char dnet_ntoa ();
33000 int
33001 main ()
33002 {
33003 return dnet_ntoa ();
33004   ;
33005   return 0;
33006 }
33007 _ACEOF
33008 rm -f conftest.$ac_objext conftest$ac_exeext
33009 if { (ac_try="$ac_link"
33010 case "(($ac_try" in
33011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33012   *) ac_try_echo=$ac_try;;
33013 esac
33014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33015   (eval "$ac_link") 2>conftest.er1
33016   ac_status=$?
33017   grep -v '^ *+' conftest.er1 >conftest.err
33018   rm -f conftest.er1
33019   cat conftest.err >&5
33020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33021   (exit $ac_status); } && {
33022          test -z "$ac_c_werror_flag" ||
33023          test ! -s conftest.err
33024        } && test -s conftest$ac_exeext &&
33025        $as_test_x conftest$ac_exeext; then
33026   ac_cv_lib_dnet_stub_dnet_ntoa=yes
33027 else
33028   echo "$as_me: failed program was:" >&5
33029 sed 's/^/| /' conftest.$ac_ext >&5
33030
33031         ac_cv_lib_dnet_stub_dnet_ntoa=no
33032 fi
33033
33034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33035       conftest$ac_exeext conftest.$ac_ext
33036 LIBS=$ac_check_lib_save_LIBS
33037 fi
33038 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
33039 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
33040 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
33041   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
33042 fi
33043
33044     fi
33045 fi
33046
33047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33048       conftest$ac_exeext conftest.$ac_ext
33049     LIBS="$ac_xsave_LIBS"
33050
33051     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
33052     # to get the SysV transport functions.
33053     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
33054     # needs -lnsl.
33055     # The nsl library prevents programs from opening the X display
33056     # on Irix 5.2, according to T.E. Dickey.
33057     # The functions gethostbyname, getservbyname, and inet_addr are
33058     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
33059     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
33060 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
33061 if test "${ac_cv_func_gethostbyname+set}" = set; then
33062   echo $ECHO_N "(cached) $ECHO_C" >&6
33063 else
33064   cat >conftest.$ac_ext <<_ACEOF
33065 /* confdefs.h.  */
33066 _ACEOF
33067 cat confdefs.h >>conftest.$ac_ext
33068 cat >>conftest.$ac_ext <<_ACEOF
33069 /* end confdefs.h.  */
33070 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
33071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33072 #define gethostbyname innocuous_gethostbyname
33073
33074 /* System header to define __stub macros and hopefully few prototypes,
33075     which can conflict with char gethostbyname (); below.
33076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33077     <limits.h> exists even on freestanding compilers.  */
33078
33079 #ifdef __STDC__
33080 # include <limits.h>
33081 #else
33082 # include <assert.h>
33083 #endif
33084
33085 #undef gethostbyname
33086
33087 /* Override any GCC internal prototype to avoid an error.
33088    Use char because int might match the return type of a GCC
33089    builtin and then its argument prototype would still apply.  */
33090 #ifdef __cplusplus
33091 extern "C"
33092 #endif
33093 char gethostbyname ();
33094 /* The GNU C library defines this for functions which it implements
33095     to always fail with ENOSYS.  Some functions are actually named
33096     something starting with __ and the normal name is an alias.  */
33097 #if defined __stub_gethostbyname || defined __stub___gethostbyname
33098 choke me
33099 #endif
33100
33101 int
33102 main ()
33103 {
33104 return gethostbyname ();
33105   ;
33106   return 0;
33107 }
33108 _ACEOF
33109 rm -f conftest.$ac_objext conftest$ac_exeext
33110 if { (ac_try="$ac_link"
33111 case "(($ac_try" in
33112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113   *) ac_try_echo=$ac_try;;
33114 esac
33115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116   (eval "$ac_link") 2>conftest.er1
33117   ac_status=$?
33118   grep -v '^ *+' conftest.er1 >conftest.err
33119   rm -f conftest.er1
33120   cat conftest.err >&5
33121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122   (exit $ac_status); } && {
33123          test -z "$ac_c_werror_flag" ||
33124          test ! -s conftest.err
33125        } && test -s conftest$ac_exeext &&
33126        $as_test_x conftest$ac_exeext; then
33127   ac_cv_func_gethostbyname=yes
33128 else
33129   echo "$as_me: failed program was:" >&5
33130 sed 's/^/| /' conftest.$ac_ext >&5
33131
33132         ac_cv_func_gethostbyname=no
33133 fi
33134
33135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33136       conftest$ac_exeext conftest.$ac_ext
33137 fi
33138 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
33139 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
33140
33141     if test $ac_cv_func_gethostbyname = no; then
33142       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
33143 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
33144 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
33145   echo $ECHO_N "(cached) $ECHO_C" >&6
33146 else
33147   ac_check_lib_save_LIBS=$LIBS
33148 LIBS="-lnsl  $LIBS"
33149 cat >conftest.$ac_ext <<_ACEOF
33150 /* confdefs.h.  */
33151 _ACEOF
33152 cat confdefs.h >>conftest.$ac_ext
33153 cat >>conftest.$ac_ext <<_ACEOF
33154 /* end confdefs.h.  */
33155
33156 /* Override any GCC internal prototype to avoid an error.
33157    Use char because int might match the return type of a GCC
33158    builtin and then its argument prototype would still apply.  */
33159 #ifdef __cplusplus
33160 extern "C"
33161 #endif
33162 char gethostbyname ();
33163 int
33164 main ()
33165 {
33166 return gethostbyname ();
33167   ;
33168   return 0;
33169 }
33170 _ACEOF
33171 rm -f conftest.$ac_objext conftest$ac_exeext
33172 if { (ac_try="$ac_link"
33173 case "(($ac_try" in
33174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33175   *) ac_try_echo=$ac_try;;
33176 esac
33177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33178   (eval "$ac_link") 2>conftest.er1
33179   ac_status=$?
33180   grep -v '^ *+' conftest.er1 >conftest.err
33181   rm -f conftest.er1
33182   cat conftest.err >&5
33183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33184   (exit $ac_status); } && {
33185          test -z "$ac_c_werror_flag" ||
33186          test ! -s conftest.err
33187        } && test -s conftest$ac_exeext &&
33188        $as_test_x conftest$ac_exeext; then
33189   ac_cv_lib_nsl_gethostbyname=yes
33190 else
33191   echo "$as_me: failed program was:" >&5
33192 sed 's/^/| /' conftest.$ac_ext >&5
33193
33194         ac_cv_lib_nsl_gethostbyname=no
33195 fi
33196
33197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33198       conftest$ac_exeext conftest.$ac_ext
33199 LIBS=$ac_check_lib_save_LIBS
33200 fi
33201 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
33202 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
33203 if test $ac_cv_lib_nsl_gethostbyname = yes; then
33204   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
33205 fi
33206
33207       if test $ac_cv_lib_nsl_gethostbyname = no; then
33208         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
33209 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
33210 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
33211   echo $ECHO_N "(cached) $ECHO_C" >&6
33212 else
33213   ac_check_lib_save_LIBS=$LIBS
33214 LIBS="-lbsd  $LIBS"
33215 cat >conftest.$ac_ext <<_ACEOF
33216 /* confdefs.h.  */
33217 _ACEOF
33218 cat confdefs.h >>conftest.$ac_ext
33219 cat >>conftest.$ac_ext <<_ACEOF
33220 /* end confdefs.h.  */
33221
33222 /* Override any GCC internal prototype to avoid an error.
33223    Use char because int might match the return type of a GCC
33224    builtin and then its argument prototype would still apply.  */
33225 #ifdef __cplusplus
33226 extern "C"
33227 #endif
33228 char gethostbyname ();
33229 int
33230 main ()
33231 {
33232 return gethostbyname ();
33233   ;
33234   return 0;
33235 }
33236 _ACEOF
33237 rm -f conftest.$ac_objext conftest$ac_exeext
33238 if { (ac_try="$ac_link"
33239 case "(($ac_try" in
33240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33241   *) ac_try_echo=$ac_try;;
33242 esac
33243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33244   (eval "$ac_link") 2>conftest.er1
33245   ac_status=$?
33246   grep -v '^ *+' conftest.er1 >conftest.err
33247   rm -f conftest.er1
33248   cat conftest.err >&5
33249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250   (exit $ac_status); } && {
33251          test -z "$ac_c_werror_flag" ||
33252          test ! -s conftest.err
33253        } && test -s conftest$ac_exeext &&
33254        $as_test_x conftest$ac_exeext; then
33255   ac_cv_lib_bsd_gethostbyname=yes
33256 else
33257   echo "$as_me: failed program was:" >&5
33258 sed 's/^/| /' conftest.$ac_ext >&5
33259
33260         ac_cv_lib_bsd_gethostbyname=no
33261 fi
33262
33263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33264       conftest$ac_exeext conftest.$ac_ext
33265 LIBS=$ac_check_lib_save_LIBS
33266 fi
33267 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
33268 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
33269 if test $ac_cv_lib_bsd_gethostbyname = yes; then
33270   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
33271 fi
33272
33273       fi
33274     fi
33275
33276     # lieder@skyler.mavd.honeywell.com says without -lsocket,
33277     # socket/setsockopt and other routines are undefined under SCO ODT
33278     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
33279     # on later versions), says Simon Leinen: it contains gethostby*
33280     # variants that don't use the name server (or something).  -lsocket
33281     # must be given before -lnsl if both are needed.  We assume that
33282     # if connect needs -lnsl, so does gethostbyname.
33283     { echo "$as_me:$LINENO: checking for connect" >&5
33284 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
33285 if test "${ac_cv_func_connect+set}" = set; then
33286   echo $ECHO_N "(cached) $ECHO_C" >&6
33287 else
33288   cat >conftest.$ac_ext <<_ACEOF
33289 /* confdefs.h.  */
33290 _ACEOF
33291 cat confdefs.h >>conftest.$ac_ext
33292 cat >>conftest.$ac_ext <<_ACEOF
33293 /* end confdefs.h.  */
33294 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
33295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33296 #define connect innocuous_connect
33297
33298 /* System header to define __stub macros and hopefully few prototypes,
33299     which can conflict with char connect (); below.
33300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33301     <limits.h> exists even on freestanding compilers.  */
33302
33303 #ifdef __STDC__
33304 # include <limits.h>
33305 #else
33306 # include <assert.h>
33307 #endif
33308
33309 #undef connect
33310
33311 /* Override any GCC internal prototype to avoid an error.
33312    Use char because int might match the return type of a GCC
33313    builtin and then its argument prototype would still apply.  */
33314 #ifdef __cplusplus
33315 extern "C"
33316 #endif
33317 char connect ();
33318 /* The GNU C library defines this for functions which it implements
33319     to always fail with ENOSYS.  Some functions are actually named
33320     something starting with __ and the normal name is an alias.  */
33321 #if defined __stub_connect || defined __stub___connect
33322 choke me
33323 #endif
33324
33325 int
33326 main ()
33327 {
33328 return connect ();
33329   ;
33330   return 0;
33331 }
33332 _ACEOF
33333 rm -f conftest.$ac_objext conftest$ac_exeext
33334 if { (ac_try="$ac_link"
33335 case "(($ac_try" in
33336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33337   *) ac_try_echo=$ac_try;;
33338 esac
33339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33340   (eval "$ac_link") 2>conftest.er1
33341   ac_status=$?
33342   grep -v '^ *+' conftest.er1 >conftest.err
33343   rm -f conftest.er1
33344   cat conftest.err >&5
33345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346   (exit $ac_status); } && {
33347          test -z "$ac_c_werror_flag" ||
33348          test ! -s conftest.err
33349        } && test -s conftest$ac_exeext &&
33350        $as_test_x conftest$ac_exeext; then
33351   ac_cv_func_connect=yes
33352 else
33353   echo "$as_me: failed program was:" >&5
33354 sed 's/^/| /' conftest.$ac_ext >&5
33355
33356         ac_cv_func_connect=no
33357 fi
33358
33359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33360       conftest$ac_exeext conftest.$ac_ext
33361 fi
33362 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
33363 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
33364
33365     if test $ac_cv_func_connect = no; then
33366       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
33367 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
33368 if test "${ac_cv_lib_socket_connect+set}" = set; then
33369   echo $ECHO_N "(cached) $ECHO_C" >&6
33370 else
33371   ac_check_lib_save_LIBS=$LIBS
33372 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
33373 cat >conftest.$ac_ext <<_ACEOF
33374 /* confdefs.h.  */
33375 _ACEOF
33376 cat confdefs.h >>conftest.$ac_ext
33377 cat >>conftest.$ac_ext <<_ACEOF
33378 /* end confdefs.h.  */
33379
33380 /* Override any GCC internal prototype to avoid an error.
33381    Use char because int might match the return type of a GCC
33382    builtin and then its argument prototype would still apply.  */
33383 #ifdef __cplusplus
33384 extern "C"
33385 #endif
33386 char connect ();
33387 int
33388 main ()
33389 {
33390 return connect ();
33391   ;
33392   return 0;
33393 }
33394 _ACEOF
33395 rm -f conftest.$ac_objext conftest$ac_exeext
33396 if { (ac_try="$ac_link"
33397 case "(($ac_try" in
33398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33399   *) ac_try_echo=$ac_try;;
33400 esac
33401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33402   (eval "$ac_link") 2>conftest.er1
33403   ac_status=$?
33404   grep -v '^ *+' conftest.er1 >conftest.err
33405   rm -f conftest.er1
33406   cat conftest.err >&5
33407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408   (exit $ac_status); } && {
33409          test -z "$ac_c_werror_flag" ||
33410          test ! -s conftest.err
33411        } && test -s conftest$ac_exeext &&
33412        $as_test_x conftest$ac_exeext; then
33413   ac_cv_lib_socket_connect=yes
33414 else
33415   echo "$as_me: failed program was:" >&5
33416 sed 's/^/| /' conftest.$ac_ext >&5
33417
33418         ac_cv_lib_socket_connect=no
33419 fi
33420
33421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33422       conftest$ac_exeext conftest.$ac_ext
33423 LIBS=$ac_check_lib_save_LIBS
33424 fi
33425 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
33426 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
33427 if test $ac_cv_lib_socket_connect = yes; then
33428   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
33429 fi
33430
33431     fi
33432
33433     # Guillermo Gomez says -lposix is necessary on A/UX.
33434     { echo "$as_me:$LINENO: checking for remove" >&5
33435 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
33436 if test "${ac_cv_func_remove+set}" = set; then
33437   echo $ECHO_N "(cached) $ECHO_C" >&6
33438 else
33439   cat >conftest.$ac_ext <<_ACEOF
33440 /* confdefs.h.  */
33441 _ACEOF
33442 cat confdefs.h >>conftest.$ac_ext
33443 cat >>conftest.$ac_ext <<_ACEOF
33444 /* end confdefs.h.  */
33445 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
33446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33447 #define remove innocuous_remove
33448
33449 /* System header to define __stub macros and hopefully few prototypes,
33450     which can conflict with char remove (); below.
33451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33452     <limits.h> exists even on freestanding compilers.  */
33453
33454 #ifdef __STDC__
33455 # include <limits.h>
33456 #else
33457 # include <assert.h>
33458 #endif
33459
33460 #undef remove
33461
33462 /* Override any GCC internal prototype to avoid an error.
33463    Use char because int might match the return type of a GCC
33464    builtin and then its argument prototype would still apply.  */
33465 #ifdef __cplusplus
33466 extern "C"
33467 #endif
33468 char remove ();
33469 /* The GNU C library defines this for functions which it implements
33470     to always fail with ENOSYS.  Some functions are actually named
33471     something starting with __ and the normal name is an alias.  */
33472 #if defined __stub_remove || defined __stub___remove
33473 choke me
33474 #endif
33475
33476 int
33477 main ()
33478 {
33479 return remove ();
33480   ;
33481   return 0;
33482 }
33483 _ACEOF
33484 rm -f conftest.$ac_objext conftest$ac_exeext
33485 if { (ac_try="$ac_link"
33486 case "(($ac_try" in
33487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488   *) ac_try_echo=$ac_try;;
33489 esac
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491   (eval "$ac_link") 2>conftest.er1
33492   ac_status=$?
33493   grep -v '^ *+' conftest.er1 >conftest.err
33494   rm -f conftest.er1
33495   cat conftest.err >&5
33496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497   (exit $ac_status); } && {
33498          test -z "$ac_c_werror_flag" ||
33499          test ! -s conftest.err
33500        } && test -s conftest$ac_exeext &&
33501        $as_test_x conftest$ac_exeext; then
33502   ac_cv_func_remove=yes
33503 else
33504   echo "$as_me: failed program was:" >&5
33505 sed 's/^/| /' conftest.$ac_ext >&5
33506
33507         ac_cv_func_remove=no
33508 fi
33509
33510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33511       conftest$ac_exeext conftest.$ac_ext
33512 fi
33513 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
33514 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
33515
33516     if test $ac_cv_func_remove = no; then
33517       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
33518 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
33519 if test "${ac_cv_lib_posix_remove+set}" = set; then
33520   echo $ECHO_N "(cached) $ECHO_C" >&6
33521 else
33522   ac_check_lib_save_LIBS=$LIBS
33523 LIBS="-lposix  $LIBS"
33524 cat >conftest.$ac_ext <<_ACEOF
33525 /* confdefs.h.  */
33526 _ACEOF
33527 cat confdefs.h >>conftest.$ac_ext
33528 cat >>conftest.$ac_ext <<_ACEOF
33529 /* end confdefs.h.  */
33530
33531 /* Override any GCC internal prototype to avoid an error.
33532    Use char because int might match the return type of a GCC
33533    builtin and then its argument prototype would still apply.  */
33534 #ifdef __cplusplus
33535 extern "C"
33536 #endif
33537 char remove ();
33538 int
33539 main ()
33540 {
33541 return remove ();
33542   ;
33543   return 0;
33544 }
33545 _ACEOF
33546 rm -f conftest.$ac_objext conftest$ac_exeext
33547 if { (ac_try="$ac_link"
33548 case "(($ac_try" in
33549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33550   *) ac_try_echo=$ac_try;;
33551 esac
33552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33553   (eval "$ac_link") 2>conftest.er1
33554   ac_status=$?
33555   grep -v '^ *+' conftest.er1 >conftest.err
33556   rm -f conftest.er1
33557   cat conftest.err >&5
33558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33559   (exit $ac_status); } && {
33560          test -z "$ac_c_werror_flag" ||
33561          test ! -s conftest.err
33562        } && test -s conftest$ac_exeext &&
33563        $as_test_x conftest$ac_exeext; then
33564   ac_cv_lib_posix_remove=yes
33565 else
33566   echo "$as_me: failed program was:" >&5
33567 sed 's/^/| /' conftest.$ac_ext >&5
33568
33569         ac_cv_lib_posix_remove=no
33570 fi
33571
33572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33573       conftest$ac_exeext conftest.$ac_ext
33574 LIBS=$ac_check_lib_save_LIBS
33575 fi
33576 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
33577 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
33578 if test $ac_cv_lib_posix_remove = yes; then
33579   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
33580 fi
33581
33582     fi
33583
33584     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
33585     { echo "$as_me:$LINENO: checking for shmat" >&5
33586 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
33587 if test "${ac_cv_func_shmat+set}" = set; then
33588   echo $ECHO_N "(cached) $ECHO_C" >&6
33589 else
33590   cat >conftest.$ac_ext <<_ACEOF
33591 /* confdefs.h.  */
33592 _ACEOF
33593 cat confdefs.h >>conftest.$ac_ext
33594 cat >>conftest.$ac_ext <<_ACEOF
33595 /* end confdefs.h.  */
33596 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
33597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33598 #define shmat innocuous_shmat
33599
33600 /* System header to define __stub macros and hopefully few prototypes,
33601     which can conflict with char shmat (); below.
33602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33603     <limits.h> exists even on freestanding compilers.  */
33604
33605 #ifdef __STDC__
33606 # include <limits.h>
33607 #else
33608 # include <assert.h>
33609 #endif
33610
33611 #undef shmat
33612
33613 /* Override any GCC internal prototype to avoid an error.
33614    Use char because int might match the return type of a GCC
33615    builtin and then its argument prototype would still apply.  */
33616 #ifdef __cplusplus
33617 extern "C"
33618 #endif
33619 char shmat ();
33620 /* The GNU C library defines this for functions which it implements
33621     to always fail with ENOSYS.  Some functions are actually named
33622     something starting with __ and the normal name is an alias.  */
33623 #if defined __stub_shmat || defined __stub___shmat
33624 choke me
33625 #endif
33626
33627 int
33628 main ()
33629 {
33630 return shmat ();
33631   ;
33632   return 0;
33633 }
33634 _ACEOF
33635 rm -f conftest.$ac_objext conftest$ac_exeext
33636 if { (ac_try="$ac_link"
33637 case "(($ac_try" in
33638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33639   *) ac_try_echo=$ac_try;;
33640 esac
33641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33642   (eval "$ac_link") 2>conftest.er1
33643   ac_status=$?
33644   grep -v '^ *+' conftest.er1 >conftest.err
33645   rm -f conftest.er1
33646   cat conftest.err >&5
33647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648   (exit $ac_status); } && {
33649          test -z "$ac_c_werror_flag" ||
33650          test ! -s conftest.err
33651        } && test -s conftest$ac_exeext &&
33652        $as_test_x conftest$ac_exeext; then
33653   ac_cv_func_shmat=yes
33654 else
33655   echo "$as_me: failed program was:" >&5
33656 sed 's/^/| /' conftest.$ac_ext >&5
33657
33658         ac_cv_func_shmat=no
33659 fi
33660
33661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33662       conftest$ac_exeext conftest.$ac_ext
33663 fi
33664 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
33665 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
33666
33667     if test $ac_cv_func_shmat = no; then
33668       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
33669 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
33670 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
33671   echo $ECHO_N "(cached) $ECHO_C" >&6
33672 else
33673   ac_check_lib_save_LIBS=$LIBS
33674 LIBS="-lipc  $LIBS"
33675 cat >conftest.$ac_ext <<_ACEOF
33676 /* confdefs.h.  */
33677 _ACEOF
33678 cat confdefs.h >>conftest.$ac_ext
33679 cat >>conftest.$ac_ext <<_ACEOF
33680 /* end confdefs.h.  */
33681
33682 /* Override any GCC internal prototype to avoid an error.
33683    Use char because int might match the return type of a GCC
33684    builtin and then its argument prototype would still apply.  */
33685 #ifdef __cplusplus
33686 extern "C"
33687 #endif
33688 char shmat ();
33689 int
33690 main ()
33691 {
33692 return shmat ();
33693   ;
33694   return 0;
33695 }
33696 _ACEOF
33697 rm -f conftest.$ac_objext conftest$ac_exeext
33698 if { (ac_try="$ac_link"
33699 case "(($ac_try" in
33700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33701   *) ac_try_echo=$ac_try;;
33702 esac
33703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33704   (eval "$ac_link") 2>conftest.er1
33705   ac_status=$?
33706   grep -v '^ *+' conftest.er1 >conftest.err
33707   rm -f conftest.er1
33708   cat conftest.err >&5
33709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710   (exit $ac_status); } && {
33711          test -z "$ac_c_werror_flag" ||
33712          test ! -s conftest.err
33713        } && test -s conftest$ac_exeext &&
33714        $as_test_x conftest$ac_exeext; then
33715   ac_cv_lib_ipc_shmat=yes
33716 else
33717   echo "$as_me: failed program was:" >&5
33718 sed 's/^/| /' conftest.$ac_ext >&5
33719
33720         ac_cv_lib_ipc_shmat=no
33721 fi
33722
33723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33724       conftest$ac_exeext conftest.$ac_ext
33725 LIBS=$ac_check_lib_save_LIBS
33726 fi
33727 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33728 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
33729 if test $ac_cv_lib_ipc_shmat = yes; then
33730   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33731 fi
33732
33733     fi
33734   fi
33735
33736   # Check for libraries that X11R6 Xt/Xaw programs need.
33737   ac_save_LDFLAGS=$LDFLAGS
33738   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33739   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33740   # check for ICE first), but we must link in the order -lSM -lICE or
33741   # we get undefined symbols.  So assume we have SM if we have ICE.
33742   # These have to be linked with before -lX11, unlike the other
33743   # libraries we check for below, so use a different variable.
33744   # John Interrante, Karl Berry
33745   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33746 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
33747 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33748   echo $ECHO_N "(cached) $ECHO_C" >&6
33749 else
33750   ac_check_lib_save_LIBS=$LIBS
33751 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33752 cat >conftest.$ac_ext <<_ACEOF
33753 /* confdefs.h.  */
33754 _ACEOF
33755 cat confdefs.h >>conftest.$ac_ext
33756 cat >>conftest.$ac_ext <<_ACEOF
33757 /* end confdefs.h.  */
33758
33759 /* Override any GCC internal prototype to avoid an error.
33760    Use char because int might match the return type of a GCC
33761    builtin and then its argument prototype would still apply.  */
33762 #ifdef __cplusplus
33763 extern "C"
33764 #endif
33765 char IceConnectionNumber ();
33766 int
33767 main ()
33768 {
33769 return IceConnectionNumber ();
33770   ;
33771   return 0;
33772 }
33773 _ACEOF
33774 rm -f conftest.$ac_objext conftest$ac_exeext
33775 if { (ac_try="$ac_link"
33776 case "(($ac_try" in
33777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33778   *) ac_try_echo=$ac_try;;
33779 esac
33780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33781   (eval "$ac_link") 2>conftest.er1
33782   ac_status=$?
33783   grep -v '^ *+' conftest.er1 >conftest.err
33784   rm -f conftest.er1
33785   cat conftest.err >&5
33786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787   (exit $ac_status); } && {
33788          test -z "$ac_c_werror_flag" ||
33789          test ! -s conftest.err
33790        } && test -s conftest$ac_exeext &&
33791        $as_test_x conftest$ac_exeext; then
33792   ac_cv_lib_ICE_IceConnectionNumber=yes
33793 else
33794   echo "$as_me: failed program was:" >&5
33795 sed 's/^/| /' conftest.$ac_ext >&5
33796
33797         ac_cv_lib_ICE_IceConnectionNumber=no
33798 fi
33799
33800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33801       conftest$ac_exeext conftest.$ac_ext
33802 LIBS=$ac_check_lib_save_LIBS
33803 fi
33804 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33805 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33806 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33807   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33808 fi
33809
33810   LDFLAGS=$ac_save_LDFLAGS
33811
33812 fi
33813
33814
33815         if test "$no_x" = "yes"; then
33816           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33817 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33818    { (exit 1); exit 1; }; }
33819         fi
33820
33821                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33822         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33823         AFMINSTALL=afminstall
33824         COMPILED_X_PROGRAM=0
33825
33826     fi
33827
33828     if test "$wxUSE_X11" = 1; then
33829         if test "$wxUSE_NANOX" = "yes"; then
33830             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33831 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33832             if test "x$MICROWIN" = x ; then
33833                 { echo "$as_me:$LINENO: result: not found" >&5
33834 echo "${ECHO_T}not found" >&6; }
33835                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33836 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33837    { (exit 1); exit 1; }; }
33838             else
33839                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33840 echo "${ECHO_T}$MICROWIN" >&6; }
33841                 cat >>confdefs.h <<\_ACEOF
33842 #define wxUSE_NANOX 1
33843 _ACEOF
33844
33845             fi
33846         fi
33847
33848         if test "$wxUSE_UNICODE" = "yes"; then
33849
33850
33851 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33852         if test -n "$ac_tool_prefix"; then
33853   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33854 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33857 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33858   echo $ECHO_N "(cached) $ECHO_C" >&6
33859 else
33860   case $PKG_CONFIG in
33861   [\\/]* | ?:[\\/]*)
33862   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33863   ;;
33864   *)
33865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33866 for as_dir in $PATH
33867 do
33868   IFS=$as_save_IFS
33869   test -z "$as_dir" && as_dir=.
33870   for ac_exec_ext in '' $ac_executable_extensions; do
33871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33872     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33874     break 2
33875   fi
33876 done
33877 done
33878 IFS=$as_save_IFS
33879
33880   ;;
33881 esac
33882 fi
33883 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33884 if test -n "$PKG_CONFIG"; then
33885   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33886 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33887 else
33888   { echo "$as_me:$LINENO: result: no" >&5
33889 echo "${ECHO_T}no" >&6; }
33890 fi
33891
33892
33893 fi
33894 if test -z "$ac_cv_path_PKG_CONFIG"; then
33895   ac_pt_PKG_CONFIG=$PKG_CONFIG
33896   # Extract the first word of "pkg-config", so it can be a program name with args.
33897 set dummy pkg-config; ac_word=$2
33898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33900 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33901   echo $ECHO_N "(cached) $ECHO_C" >&6
33902 else
33903   case $ac_pt_PKG_CONFIG in
33904   [\\/]* | ?:[\\/]*)
33905   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33906   ;;
33907   *)
33908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33909 for as_dir in $PATH
33910 do
33911   IFS=$as_save_IFS
33912   test -z "$as_dir" && as_dir=.
33913   for ac_exec_ext in '' $ac_executable_extensions; do
33914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33915     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33917     break 2
33918   fi
33919 done
33920 done
33921 IFS=$as_save_IFS
33922
33923   ;;
33924 esac
33925 fi
33926 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33927 if test -n "$ac_pt_PKG_CONFIG"; then
33928   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33929 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33930 else
33931   { echo "$as_me:$LINENO: result: no" >&5
33932 echo "${ECHO_T}no" >&6; }
33933 fi
33934
33935   if test "x$ac_pt_PKG_CONFIG" = x; then
33936     PKG_CONFIG=""
33937   else
33938     case $cross_compiling:$ac_tool_warned in
33939 yes:)
33940 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33941 whose name does not start with the host triplet.  If you think this
33942 configuration is useful to you, please write to autoconf@gnu.org." >&5
33943 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33944 whose name does not start with the host triplet.  If you think this
33945 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33946 ac_tool_warned=yes ;;
33947 esac
33948     PKG_CONFIG=$ac_pt_PKG_CONFIG
33949   fi
33950 else
33951   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33952 fi
33953
33954 fi
33955 if test -n "$PKG_CONFIG"; then
33956         _pkg_min_version=0.9.0
33957         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33958 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33959         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33960                 { echo "$as_me:$LINENO: result: yes" >&5
33961 echo "${ECHO_T}yes" >&6; }
33962         else
33963                 { echo "$as_me:$LINENO: result: no" >&5
33964 echo "${ECHO_T}no" >&6; }
33965                 PKG_CONFIG=""
33966         fi
33967
33968 fi
33969
33970
33971 pkg_failed=no
33972 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33973 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33974
33975 if test -n "$PKG_CONFIG"; then
33976     if test -n "$PANGOX_CFLAGS"; then
33977         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33978     else
33979         if test -n "$PKG_CONFIG" && \
33980     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33981   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33982   ac_status=$?
33983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33984   (exit $ac_status); }; then
33985   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33986 else
33987   pkg_failed=yes
33988 fi
33989     fi
33990 else
33991         pkg_failed=untried
33992 fi
33993 if test -n "$PKG_CONFIG"; then
33994     if test -n "$PANGOX_LIBS"; then
33995         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33996     else
33997         if test -n "$PKG_CONFIG" && \
33998     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33999   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
34000   ac_status=$?
34001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002   (exit $ac_status); }; then
34003   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
34004 else
34005   pkg_failed=yes
34006 fi
34007     fi
34008 else
34009         pkg_failed=untried
34010 fi
34011
34012
34013
34014 if test $pkg_failed = yes; then
34015
34016 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34017         _pkg_short_errors_supported=yes
34018 else
34019         _pkg_short_errors_supported=no
34020 fi
34021         if test $_pkg_short_errors_supported = yes; then
34022                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
34023         else
34024                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
34025         fi
34026         # Put the nasty error message in config.log where it belongs
34027         echo "$PANGOX_PKG_ERRORS" >&5
34028
34029
34030                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
34031 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
34032    { (exit 1); exit 1; }; }
34033
34034
34035 elif test $pkg_failed = untried; then
34036
34037                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
34038 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
34039    { (exit 1); exit 1; }; }
34040
34041
34042 else
34043         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
34044         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
34045         { echo "$as_me:$LINENO: result: yes" >&5
34046 echo "${ECHO_T}yes" >&6; }
34047
34048                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
34049                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
34050                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
34051
34052 fi
34053
34054 pkg_failed=no
34055 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
34056 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
34057
34058 if test -n "$PKG_CONFIG"; then
34059     if test -n "$PANGOFT2_CFLAGS"; then
34060         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
34061     else
34062         if test -n "$PKG_CONFIG" && \
34063     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34064   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34065   ac_status=$?
34066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067   (exit $ac_status); }; then
34068   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
34069 else
34070   pkg_failed=yes
34071 fi
34072     fi
34073 else
34074         pkg_failed=untried
34075 fi
34076 if test -n "$PKG_CONFIG"; then
34077     if test -n "$PANGOFT2_LIBS"; then
34078         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
34079     else
34080         if test -n "$PKG_CONFIG" && \
34081     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34082   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34083   ac_status=$?
34084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085   (exit $ac_status); }; then
34086   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
34087 else
34088   pkg_failed=yes
34089 fi
34090     fi
34091 else
34092         pkg_failed=untried
34093 fi
34094
34095
34096
34097 if test $pkg_failed = yes; then
34098
34099 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34100         _pkg_short_errors_supported=yes
34101 else
34102         _pkg_short_errors_supported=no
34103 fi
34104         if test $_pkg_short_errors_supported = yes; then
34105                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
34106         else
34107                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
34108         fi
34109         # Put the nasty error message in config.log where it belongs
34110         echo "$PANGOFT2_PKG_ERRORS" >&5
34111
34112
34113                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34114 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34115                     wxUSE_PRINTING_ARCHITECTURE="no"
34116
34117
34118 elif test $pkg_failed = untried; then
34119
34120                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34121 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34122                     wxUSE_PRINTING_ARCHITECTURE="no"
34123
34124
34125 else
34126         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
34127         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
34128         { echo "$as_me:$LINENO: result: yes" >&5
34129 echo "${ECHO_T}yes" >&6; }
34130
34131                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
34132                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
34133                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
34134
34135 fi
34136
34137 pkg_failed=no
34138 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
34139 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
34140
34141 if test -n "$PKG_CONFIG"; then
34142     if test -n "$PANGOXFT_CFLAGS"; then
34143         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
34144     else
34145         if test -n "$PKG_CONFIG" && \
34146     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34147   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34148   ac_status=$?
34149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150   (exit $ac_status); }; then
34151   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
34152 else
34153   pkg_failed=yes
34154 fi
34155     fi
34156 else
34157         pkg_failed=untried
34158 fi
34159 if test -n "$PKG_CONFIG"; then
34160     if test -n "$PANGOXFT_LIBS"; then
34161         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
34162     else
34163         if test -n "$PKG_CONFIG" && \
34164     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34165   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34166   ac_status=$?
34167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34168   (exit $ac_status); }; then
34169   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
34170 else
34171   pkg_failed=yes
34172 fi
34173     fi
34174 else
34175         pkg_failed=untried
34176 fi
34177
34178
34179
34180 if test $pkg_failed = yes; then
34181
34182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34183         _pkg_short_errors_supported=yes
34184 else
34185         _pkg_short_errors_supported=no
34186 fi
34187         if test $_pkg_short_errors_supported = yes; then
34188                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
34189         else
34190                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
34191         fi
34192         # Put the nasty error message in config.log where it belongs
34193         echo "$PANGOXFT_PKG_ERRORS" >&5
34194
34195
34196                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34197 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34198
34199
34200 elif test $pkg_failed = untried; then
34201
34202                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34203 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34204
34205
34206 else
34207         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
34208         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
34209         { echo "$as_me:$LINENO: result: yes" >&5
34210 echo "${ECHO_T}yes" >&6; }
34211
34212                     cat >>confdefs.h <<\_ACEOF
34213 #define HAVE_PANGO_XFT 1
34214 _ACEOF
34215
34216                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
34217                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
34218                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
34219
34220 fi
34221             save_LIBS="$LIBS"
34222             LIBS="$LIBS $PANGOX_LIBS"
34223
34224 for ac_func in pango_font_family_is_monospace
34225 do
34226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34227 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34230   echo $ECHO_N "(cached) $ECHO_C" >&6
34231 else
34232   cat >conftest.$ac_ext <<_ACEOF
34233 /* confdefs.h.  */
34234 _ACEOF
34235 cat confdefs.h >>conftest.$ac_ext
34236 cat >>conftest.$ac_ext <<_ACEOF
34237 /* end confdefs.h.  */
34238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34240 #define $ac_func innocuous_$ac_func
34241
34242 /* System header to define __stub macros and hopefully few prototypes,
34243     which can conflict with char $ac_func (); below.
34244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34245     <limits.h> exists even on freestanding compilers.  */
34246
34247 #ifdef __STDC__
34248 # include <limits.h>
34249 #else
34250 # include <assert.h>
34251 #endif
34252
34253 #undef $ac_func
34254
34255 /* Override any GCC internal prototype to avoid an error.
34256    Use char because int might match the return type of a GCC
34257    builtin and then its argument prototype would still apply.  */
34258 #ifdef __cplusplus
34259 extern "C"
34260 #endif
34261 char $ac_func ();
34262 /* The GNU C library defines this for functions which it implements
34263     to always fail with ENOSYS.  Some functions are actually named
34264     something starting with __ and the normal name is an alias.  */
34265 #if defined __stub_$ac_func || defined __stub___$ac_func
34266 choke me
34267 #endif
34268
34269 int
34270 main ()
34271 {
34272 return $ac_func ();
34273   ;
34274   return 0;
34275 }
34276 _ACEOF
34277 rm -f conftest.$ac_objext conftest$ac_exeext
34278 if { (ac_try="$ac_link"
34279 case "(($ac_try" in
34280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34281   *) ac_try_echo=$ac_try;;
34282 esac
34283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34284   (eval "$ac_link") 2>conftest.er1
34285   ac_status=$?
34286   grep -v '^ *+' conftest.er1 >conftest.err
34287   rm -f conftest.er1
34288   cat conftest.err >&5
34289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34290   (exit $ac_status); } && {
34291          test -z "$ac_c_werror_flag" ||
34292          test ! -s conftest.err
34293        } && test -s conftest$ac_exeext &&
34294        $as_test_x conftest$ac_exeext; then
34295   eval "$as_ac_var=yes"
34296 else
34297   echo "$as_me: failed program was:" >&5
34298 sed 's/^/| /' conftest.$ac_ext >&5
34299
34300         eval "$as_ac_var=no"
34301 fi
34302
34303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34304       conftest$ac_exeext conftest.$ac_ext
34305 fi
34306 ac_res=`eval echo '${'$as_ac_var'}'`
34307                { echo "$as_me:$LINENO: result: $ac_res" >&5
34308 echo "${ECHO_T}$ac_res" >&6; }
34309 if test `eval echo '${'$as_ac_var'}'` = yes; then
34310   cat >>confdefs.h <<_ACEOF
34311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34312 _ACEOF
34313
34314 fi
34315 done
34316
34317             LIBS="$save_LIBS"
34318         fi
34319
34320         wxUSE_UNIVERSAL="yes"
34321
34322         if test "$wxUSE_NANOX" = "yes"; then
34323             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
34324             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"
34325             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
34326         else
34327             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
34328         fi
34329
34330         TOOLKIT=X11
34331         GUIDIST=X11_DIST
34332     fi
34333
34334     if test "$wxUSE_MOTIF" = 1; then
34335         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
34336 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
34337
34338 ac_find_includes=
34339 for ac_dir in $SEARCH_INCLUDE /usr/include;
34340   do
34341     if test -f "$ac_dir/Xm/Xm.h"; then
34342       ac_find_includes=$ac_dir
34343       break
34344     fi
34345   done
34346
34347         if test "$ac_find_includes" != "" ; then
34348             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34349 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34350
34351     if test "x$ac_find_includes" = "x/usr/include"; then
34352     ac_path_to_include=""
34353   else
34354     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
34355     result=$?
34356     if test $result = 0; then
34357       ac_path_to_include=""
34358     else
34359       ac_path_to_include=" -I$ac_find_includes"
34360     fi
34361   fi
34362
34363             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
34364         else
34365             save_CFLAGS=$CFLAGS
34366             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34367
34368             cat >conftest.$ac_ext <<_ACEOF
34369 /* confdefs.h.  */
34370 _ACEOF
34371 cat confdefs.h >>conftest.$ac_ext
34372 cat >>conftest.$ac_ext <<_ACEOF
34373 /* end confdefs.h.  */
34374
34375                     #include <Xm/Xm.h>
34376
34377 int
34378 main ()
34379 {
34380
34381                     int version;
34382                     version = xmUseVersion;
34383
34384   ;
34385   return 0;
34386 }
34387 _ACEOF
34388 rm -f conftest.$ac_objext
34389 if { (ac_try="$ac_compile"
34390 case "(($ac_try" in
34391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34392   *) ac_try_echo=$ac_try;;
34393 esac
34394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34395   (eval "$ac_compile") 2>conftest.er1
34396   ac_status=$?
34397   grep -v '^ *+' conftest.er1 >conftest.err
34398   rm -f conftest.er1
34399   cat conftest.err >&5
34400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401   (exit $ac_status); } && {
34402          test -z "$ac_c_werror_flag" ||
34403          test ! -s conftest.err
34404        } && test -s conftest.$ac_objext; then
34405
34406                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34407 echo "${ECHO_T}found in default search path" >&6; }
34408                     COMPILED_X_PROGRAM=1
34409
34410 else
34411   echo "$as_me: failed program was:" >&5
34412 sed 's/^/| /' conftest.$ac_ext >&5
34413
34414
34415                     { echo "$as_me:$LINENO: result: no" >&5
34416 echo "${ECHO_T}no" >&6; }
34417                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
34418 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
34419    { (exit 1); exit 1; }; }
34420
34421
34422 fi
34423
34424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34425
34426             CFLAGS=$save_CFLAGS
34427         fi
34428
34429
34430         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
34431 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
34432
34433   ac_find_libraries=
34434   for ac_dir in $SEARCH_LIB;
34435   do
34436     for ac_extension in a so sl dylib dll.a; do
34437       if test -f "$ac_dir/libXm.$ac_extension"; then
34438         ac_find_libraries=$ac_dir
34439         break 2
34440       fi
34441     done
34442   done
34443
34444
34445         if test "x$ac_find_libraries" != "x" ; then
34446             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34447 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34448
34449
34450     if test "$ac_find_libraries" = "default location"; then
34451     ac_path_to_link=""
34452   else
34453     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34454     result=$?
34455     if test $result = 0; then
34456       ac_path_to_link=""
34457     else
34458       ac_path_to_link=" -L$ac_find_libraries"
34459     fi
34460   fi
34461
34462             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34463         else
34464                                                 save_CFLAGS=$CFLAGS
34465             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34466             save_LIBS="$LIBS"
34467             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
34468
34469             cat >conftest.$ac_ext <<_ACEOF
34470 /* confdefs.h.  */
34471 _ACEOF
34472 cat confdefs.h >>conftest.$ac_ext
34473 cat >>conftest.$ac_ext <<_ACEOF
34474 /* end confdefs.h.  */
34475
34476                     #include <Xm/Xm.h>
34477
34478 int
34479 main ()
34480 {
34481
34482                     int version;
34483                     version = xmUseVersion;
34484
34485   ;
34486   return 0;
34487 }
34488 _ACEOF
34489 rm -f conftest.$ac_objext conftest$ac_exeext
34490 if { (ac_try="$ac_link"
34491 case "(($ac_try" in
34492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34493   *) ac_try_echo=$ac_try;;
34494 esac
34495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34496   (eval "$ac_link") 2>conftest.er1
34497   ac_status=$?
34498   grep -v '^ *+' conftest.er1 >conftest.err
34499   rm -f conftest.er1
34500   cat conftest.err >&5
34501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34502   (exit $ac_status); } && {
34503          test -z "$ac_c_werror_flag" ||
34504          test ! -s conftest.err
34505        } && test -s conftest$ac_exeext &&
34506        $as_test_x conftest$ac_exeext; then
34507
34508                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34509 echo "${ECHO_T}found in default search path" >&6; }
34510                     COMPILED_X_PROGRAM=1
34511
34512 else
34513   echo "$as_me: failed program was:" >&5
34514 sed 's/^/| /' conftest.$ac_ext >&5
34515
34516
34517                     { echo "$as_me:$LINENO: result: no" >&5
34518 echo "${ECHO_T}no" >&6; }
34519                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
34520 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
34521    { (exit 1); exit 1; }; }
34522
34523
34524 fi
34525
34526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34527       conftest$ac_exeext conftest.$ac_ext
34528
34529             CFLAGS=$save_CFLAGS
34530             LIBS="$save_LIBS"
34531         fi
34532
34533         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
34534 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
34535         libp_link=""
34536         libsm_ice_link=""
34537         libs_found=0
34538         for libp in "" " -lXp"; do
34539             if test "$libs_found" = "0"; then
34540                 for libsm_ice in "" " -lSM -lICE"; do
34541                     if test "$libs_found" = "0"; then
34542                         save_LIBS="$LIBS"
34543                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
34544                         save_CFLAGS=$CFLAGS
34545                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34546
34547                         cat >conftest.$ac_ext <<_ACEOF
34548 /* confdefs.h.  */
34549 _ACEOF
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h.  */
34553
34554                                 #include <Xm/Xm.h>
34555                                 #include <Xm/List.h>
34556
34557 int
34558 main ()
34559 {
34560
34561                                 XmString string = NULL;
34562                                 Widget w = NULL;
34563                                 int position = 0;
34564                                 XmListAddItem(w, string, position);
34565
34566   ;
34567   return 0;
34568 }
34569 _ACEOF
34570 rm -f conftest.$ac_objext conftest$ac_exeext
34571 if { (ac_try="$ac_link"
34572 case "(($ac_try" in
34573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34574   *) ac_try_echo=$ac_try;;
34575 esac
34576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34577   (eval "$ac_link") 2>conftest.er1
34578   ac_status=$?
34579   grep -v '^ *+' conftest.er1 >conftest.err
34580   rm -f conftest.er1
34581   cat conftest.err >&5
34582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583   (exit $ac_status); } && {
34584          test -z "$ac_c_werror_flag" ||
34585          test ! -s conftest.err
34586        } && test -s conftest$ac_exeext &&
34587        $as_test_x conftest$ac_exeext; then
34588
34589                                 libp_link="$libp"
34590                                 libsm_ice_link="$libsm_ice"
34591                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
34592 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
34593                                 libs_found=1
34594
34595 else
34596   echo "$as_me: failed program was:" >&5
34597 sed 's/^/| /' conftest.$ac_ext >&5
34598
34599
34600
34601 fi
34602
34603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34604       conftest$ac_exeext conftest.$ac_ext
34605
34606                         LIBS="$save_LIBS"
34607                         CFLAGS=$save_CFLAGS
34608                     fi
34609                 done
34610             fi
34611         done
34612
34613         if test "$libs_found" = "0"; then
34614             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
34615 echo "${ECHO_T}can't find the right libraries" >&6; }
34616             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
34617 echo "$as_me: error: can't link a simple motif program" >&2;}
34618    { (exit 1); exit 1; }; }
34619         fi
34620
34621                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
34622 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
34623 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
34624   echo $ECHO_N "(cached) $ECHO_C" >&6
34625 else
34626   ac_check_lib_save_LIBS=$LIBS
34627 LIBS="-lSgm  $LIBS"
34628 cat >conftest.$ac_ext <<_ACEOF
34629 /* confdefs.h.  */
34630 _ACEOF
34631 cat confdefs.h >>conftest.$ac_ext
34632 cat >>conftest.$ac_ext <<_ACEOF
34633 /* end confdefs.h.  */
34634
34635 /* Override any GCC internal prototype to avoid an error.
34636    Use char because int might match the return type of a GCC
34637    builtin and then its argument prototype would still apply.  */
34638 #ifdef __cplusplus
34639 extern "C"
34640 #endif
34641 char SgCreateList ();
34642 int
34643 main ()
34644 {
34645 return SgCreateList ();
34646   ;
34647   return 0;
34648 }
34649 _ACEOF
34650 rm -f conftest.$ac_objext conftest$ac_exeext
34651 if { (ac_try="$ac_link"
34652 case "(($ac_try" in
34653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34654   *) ac_try_echo=$ac_try;;
34655 esac
34656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34657   (eval "$ac_link") 2>conftest.er1
34658   ac_status=$?
34659   grep -v '^ *+' conftest.er1 >conftest.err
34660   rm -f conftest.er1
34661   cat conftest.err >&5
34662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663   (exit $ac_status); } && {
34664          test -z "$ac_c_werror_flag" ||
34665          test ! -s conftest.err
34666        } && test -s conftest$ac_exeext &&
34667        $as_test_x conftest$ac_exeext; then
34668   ac_cv_lib_Sgm_SgCreateList=yes
34669 else
34670   echo "$as_me: failed program was:" >&5
34671 sed 's/^/| /' conftest.$ac_ext >&5
34672
34673         ac_cv_lib_Sgm_SgCreateList=no
34674 fi
34675
34676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34677       conftest$ac_exeext conftest.$ac_ext
34678 LIBS=$ac_check_lib_save_LIBS
34679 fi
34680 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
34681 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
34682 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
34683   libsgm_link=" -lSgm"
34684 fi
34685
34686
34687         save_CFLAGS=$CFLAGS
34688         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34689
34690         { echo "$as_me:$LINENO: checking for Motif 2" >&5
34691 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
34692 if test "${wx_cv_lib_motif2+set}" = set; then
34693   echo $ECHO_N "(cached) $ECHO_C" >&6
34694 else
34695   cat >conftest.$ac_ext <<_ACEOF
34696 /* confdefs.h.  */
34697 _ACEOF
34698 cat confdefs.h >>conftest.$ac_ext
34699 cat >>conftest.$ac_ext <<_ACEOF
34700 /* end confdefs.h.  */
34701
34702                             #include <Xm/Xm.h>
34703
34704 int
34705 main ()
34706 {
34707
34708                             #if XmVersion < 2000
34709                             Not Motif 2
34710                             #endif
34711
34712   ;
34713   return 0;
34714 }
34715 _ACEOF
34716 rm -f conftest.$ac_objext
34717 if { (ac_try="$ac_compile"
34718 case "(($ac_try" in
34719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34720   *) ac_try_echo=$ac_try;;
34721 esac
34722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34723   (eval "$ac_compile") 2>conftest.er1
34724   ac_status=$?
34725   grep -v '^ *+' conftest.er1 >conftest.err
34726   rm -f conftest.er1
34727   cat conftest.err >&5
34728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729   (exit $ac_status); } && {
34730          test -z "$ac_c_werror_flag" ||
34731          test ! -s conftest.err
34732        } && test -s conftest.$ac_objext; then
34733   wx_cv_lib_motif2="yes"
34734 else
34735   echo "$as_me: failed program was:" >&5
34736 sed 's/^/| /' conftest.$ac_ext >&5
34737
34738         wx_cv_lib_motif2="no"
34739 fi
34740
34741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34742 fi
34743 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34744 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
34745         if test "$wx_cv_lib_motif2" = "yes"; then
34746             cat >>confdefs.h <<\_ACEOF
34747 #define __WXMOTIF20__ 1
34748 _ACEOF
34749
34750         else
34751             cat >>confdefs.h <<\_ACEOF
34752 #define __WXMOTIF20__ 0
34753 _ACEOF
34754
34755         fi
34756
34757         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34758 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34759 if test "${wx_cv_lib_lesstif+set}" = set; then
34760   echo $ECHO_N "(cached) $ECHO_C" >&6
34761 else
34762   cat >conftest.$ac_ext <<_ACEOF
34763 /* confdefs.h.  */
34764 _ACEOF
34765 cat confdefs.h >>conftest.$ac_ext
34766 cat >>conftest.$ac_ext <<_ACEOF
34767 /* end confdefs.h.  */
34768
34769                             #include <Xm/Xm.h>
34770
34771 int
34772 main ()
34773 {
34774
34775                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34776                             Not Lesstif
34777                             #endif
34778
34779   ;
34780   return 0;
34781 }
34782 _ACEOF
34783 rm -f conftest.$ac_objext
34784 if { (ac_try="$ac_compile"
34785 case "(($ac_try" in
34786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34787   *) ac_try_echo=$ac_try;;
34788 esac
34789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34790   (eval "$ac_compile") 2>conftest.er1
34791   ac_status=$?
34792   grep -v '^ *+' conftest.er1 >conftest.err
34793   rm -f conftest.er1
34794   cat conftest.err >&5
34795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34796   (exit $ac_status); } && {
34797          test -z "$ac_c_werror_flag" ||
34798          test ! -s conftest.err
34799        } && test -s conftest.$ac_objext; then
34800   wx_cv_lib_lesstif="yes"
34801 else
34802   echo "$as_me: failed program was:" >&5
34803 sed 's/^/| /' conftest.$ac_ext >&5
34804
34805         wx_cv_lib_lesstif="no"
34806 fi
34807
34808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34809
34810 fi
34811 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34812 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34813         if test "$wx_cv_lib_lesstif" = "yes"; then
34814             cat >>confdefs.h <<\_ACEOF
34815 #define __WXLESSTIF__ 1
34816 _ACEOF
34817
34818         else
34819             cat >>confdefs.h <<\_ACEOF
34820 #define __WXLESSTIF__ 0
34821 _ACEOF
34822
34823         fi
34824
34825         CFLAGS=$save_CFLAGS
34826
34827         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34828         TOOLKIT=MOTIF
34829         GUIDIST=MOTIF_DIST
34830     fi
34831
34832         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34833                 if test "$wxUSE_LIBXPM" = "sys"; then
34834             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34835 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34836
34837   ac_find_libraries=
34838   for ac_dir in $SEARCH_LIB;
34839   do
34840     for ac_extension in a so sl dylib dll.a; do
34841       if test -f "$ac_dir/libXpm.$ac_extension"; then
34842         ac_find_libraries=$ac_dir
34843         break 2
34844       fi
34845     done
34846   done
34847
34848             if test "$ac_find_libraries" != "" ; then
34849
34850     if test "$ac_find_libraries" = "default location"; then
34851     ac_path_to_link=""
34852   else
34853     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34854     result=$?
34855     if test $result = 0; then
34856       ac_path_to_link=""
34857     else
34858       ac_path_to_link=" -L$ac_find_libraries"
34859     fi
34860   fi
34861
34862                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34863                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34864 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34865
34866                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34867 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34868 if test "${wx_cv_x11_xpm_h+set}" = set; then
34869   echo $ECHO_N "(cached) $ECHO_C" >&6
34870 else
34871
34872                         save_CFLAGS=$CFLAGS
34873                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34874
34875                         cat >conftest.$ac_ext <<_ACEOF
34876 /* confdefs.h.  */
34877 _ACEOF
34878 cat confdefs.h >>conftest.$ac_ext
34879 cat >>conftest.$ac_ext <<_ACEOF
34880 /* end confdefs.h.  */
34881
34882                                 #include <X11/xpm.h>
34883
34884 int
34885 main ()
34886 {
34887
34888                                 int version;
34889                                 version = XpmLibraryVersion();
34890
34891   ;
34892   return 0;
34893 }
34894 _ACEOF
34895 rm -f conftest.$ac_objext
34896 if { (ac_try="$ac_compile"
34897 case "(($ac_try" in
34898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34899   *) ac_try_echo=$ac_try;;
34900 esac
34901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34902   (eval "$ac_compile") 2>conftest.er1
34903   ac_status=$?
34904   grep -v '^ *+' conftest.er1 >conftest.err
34905   rm -f conftest.er1
34906   cat conftest.err >&5
34907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34908   (exit $ac_status); } && {
34909          test -z "$ac_c_werror_flag" ||
34910          test ! -s conftest.err
34911        } && test -s conftest.$ac_objext; then
34912   wx_cv_x11_xpm_h=yes
34913 else
34914   echo "$as_me: failed program was:" >&5
34915 sed 's/^/| /' conftest.$ac_ext >&5
34916
34917         wx_cv_x11_xpm_h=no
34918
34919 fi
34920
34921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34922
34923                         CFLAGS=$save_CFLAGS
34924
34925
34926 fi
34927 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34928 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34929
34930                 if test $wx_cv_x11_xpm_h = "yes"; then
34931                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34932                     cat >>confdefs.h <<\_ACEOF
34933 #define wxHAVE_LIB_XPM 1
34934 _ACEOF
34935
34936                 else
34937                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34938 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34939                 fi
34940             fi
34941
34942         fi
34943
34944                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34945 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34946 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34947   echo $ECHO_N "(cached) $ECHO_C" >&6
34948 else
34949   ac_check_lib_save_LIBS=$LIBS
34950 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34951 cat >conftest.$ac_ext <<_ACEOF
34952 /* confdefs.h.  */
34953 _ACEOF
34954 cat confdefs.h >>conftest.$ac_ext
34955 cat >>conftest.$ac_ext <<_ACEOF
34956 /* end confdefs.h.  */
34957
34958 /* Override any GCC internal prototype to avoid an error.
34959    Use char because int might match the return type of a GCC
34960    builtin and then its argument prototype would still apply.  */
34961 #ifdef __cplusplus
34962 extern "C"
34963 #endif
34964 char XShapeQueryExtension ();
34965 int
34966 main ()
34967 {
34968 return XShapeQueryExtension ();
34969   ;
34970   return 0;
34971 }
34972 _ACEOF
34973 rm -f conftest.$ac_objext conftest$ac_exeext
34974 if { (ac_try="$ac_link"
34975 case "(($ac_try" in
34976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34977   *) ac_try_echo=$ac_try;;
34978 esac
34979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34980   (eval "$ac_link") 2>conftest.er1
34981   ac_status=$?
34982   grep -v '^ *+' conftest.er1 >conftest.err
34983   rm -f conftest.er1
34984   cat conftest.err >&5
34985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986   (exit $ac_status); } && {
34987          test -z "$ac_c_werror_flag" ||
34988          test ! -s conftest.err
34989        } && test -s conftest$ac_exeext &&
34990        $as_test_x conftest$ac_exeext; then
34991   ac_cv_lib_Xext_XShapeQueryExtension=yes
34992 else
34993   echo "$as_me: failed program was:" >&5
34994 sed 's/^/| /' conftest.$ac_ext >&5
34995
34996         ac_cv_lib_Xext_XShapeQueryExtension=no
34997 fi
34998
34999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35000       conftest$ac_exeext conftest.$ac_ext
35001 LIBS=$ac_check_lib_save_LIBS
35002 fi
35003 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
35004 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
35005 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
35006
35007                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
35008                       wxHAVE_XEXT_LIB=1
35009
35010 fi
35011
35012
35013         if test "$wxHAVE_XEXT_LIB" = 1; then
35014             save_CFLAGS="$CFLAGS"
35015             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
35016
35017             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
35018 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
35019             cat >conftest.$ac_ext <<_ACEOF
35020 /* confdefs.h.  */
35021 _ACEOF
35022 cat confdefs.h >>conftest.$ac_ext
35023 cat >>conftest.$ac_ext <<_ACEOF
35024 /* end confdefs.h.  */
35025
35026                             #include <X11/Xlib.h>
35027                             #include <X11/extensions/shape.h>
35028
35029 int
35030 main ()
35031 {
35032
35033                             int dummy1, dummy2;
35034                             XShapeQueryExtension((Display*)NULL,
35035                                                  (int*)NULL, (int*)NULL);
35036
35037   ;
35038   return 0;
35039 }
35040 _ACEOF
35041 rm -f conftest.$ac_objext
35042 if { (ac_try="$ac_compile"
35043 case "(($ac_try" in
35044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35045   *) ac_try_echo=$ac_try;;
35046 esac
35047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35048   (eval "$ac_compile") 2>conftest.er1
35049   ac_status=$?
35050   grep -v '^ *+' conftest.er1 >conftest.err
35051   rm -f conftest.er1
35052   cat conftest.err >&5
35053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35054   (exit $ac_status); } && {
35055          test -z "$ac_c_werror_flag" ||
35056          test ! -s conftest.err
35057        } && test -s conftest.$ac_objext; then
35058
35059                             cat >>confdefs.h <<\_ACEOF
35060 #define HAVE_XSHAPE 1
35061 _ACEOF
35062
35063                             { echo "$as_me:$LINENO: result: found" >&5
35064 echo "${ECHO_T}found" >&6; }
35065
35066 else
35067   echo "$as_me: failed program was:" >&5
35068 sed 's/^/| /' conftest.$ac_ext >&5
35069
35070
35071                             { echo "$as_me:$LINENO: result: not found" >&5
35072 echo "${ECHO_T}not found" >&6; }
35073
35074 fi
35075
35076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35077             CFLAGS="$save_CFLAGS"
35078
35079         fi
35080     fi
35081
35082     if test "$wxUSE_MAC" = 1; then
35083         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
35084 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
35085         if test "$GCC" = yes; then
35086             { echo "$as_me:$LINENO: result: gcc" >&5
35087 echo "${ECHO_T}gcc" >&6; }
35088             CPPFLAGS_PASCAL="-fpascal-strings"
35089         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
35090             { echo "$as_me:$LINENO: result: xlc" >&5
35091 echo "${ECHO_T}xlc" >&6; }
35092             CPPFLAGS_PASCAL="-qmacpstr"
35093         else
35094             { echo "$as_me:$LINENO: result: none" >&5
35095 echo "${ECHO_T}none" >&6; }
35096         fi
35097
35098         if test "x$wxUSE_UNIX" = "xyes"; then
35099             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
35100         else
35101                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
35102         fi
35103
35104         TOOLKIT=MAC
35105                 GUIDIST=MACX_DIST
35106                         WXBASEPORT="_carbon"
35107     fi
35108
35109     if test "$wxUSE_COCOA" = 1; then
35110         TOOLKIT=COCOA
35111         GUIDIST=COCOA_DIST
35112     fi
35113
35114     if test "$wxUSE_PM" = 1; then
35115         TOOLKIT=PM
35116         GUIDIST=PM_DIST
35117         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
35118 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
35119 if test "${wx_cv_spbcdata+set}" = set; then
35120   echo $ECHO_N "(cached) $ECHO_C" >&6
35121 else
35122
35123                 cat >conftest.$ac_ext <<_ACEOF
35124 /* confdefs.h.  */
35125 _ACEOF
35126 cat confdefs.h >>conftest.$ac_ext
35127 cat >>conftest.$ac_ext <<_ACEOF
35128 /* end confdefs.h.  */
35129
35130                         #define INCL_PM
35131                         #include <os2.h>
35132
35133 int
35134 main ()
35135 {
35136
35137                         SPBCDATA test;
35138
35139   ;
35140   return 0;
35141 }
35142 _ACEOF
35143 rm -f conftest.$ac_objext
35144 if { (ac_try="$ac_compile"
35145 case "(($ac_try" in
35146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35147   *) ac_try_echo=$ac_try;;
35148 esac
35149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35150   (eval "$ac_compile") 2>conftest.er1
35151   ac_status=$?
35152   grep -v '^ *+' conftest.er1 >conftest.err
35153   rm -f conftest.er1
35154   cat conftest.err >&5
35155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35156   (exit $ac_status); } && {
35157          test -z "$ac_c_werror_flag" ||
35158          test ! -s conftest.err
35159        } && test -s conftest.$ac_objext; then
35160   wx_cv_spbcdata=yes
35161 else
35162   echo "$as_me: failed program was:" >&5
35163 sed 's/^/| /' conftest.$ac_ext >&5
35164
35165         wx_cv_spbcdata=no
35166
35167 fi
35168
35169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35170
35171
35172 fi
35173 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
35174 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
35175
35176         if test $wx_cv_spbcdata = "yes"; then
35177             cat >>confdefs.h <<\_ACEOF
35178 #define HAVE_SPBCDATA 1
35179 _ACEOF
35180
35181         fi
35182     fi
35183
35184         if test "$TOOLKIT" = "PM" ; then
35185         TOOLKIT_DIR="os2"
35186     else
35187         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
35188     fi
35189
35190     if test "$wxUSE_UNIVERSAL" = "yes"; then
35191         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
35192         WIDGET_SET=univ
35193     fi
35194
35195         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
35196     DISTDIR="wx\$(TOOLKIT)"
35197 else
35198     USE_GUI=0
35199
35200             TOOLKIT_DIR="base"
35201
35202         if test "$USE_WIN32" = 1 ; then
35203                         TOOLKIT="MSW"
35204     fi
35205
35206         GUIDIST="BASE_DIST"
35207     DISTDIR="wxBase"
35208 fi
35209
35210
35211
35212 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
35213     if test "$TOOLKIT" = "DFB" ; then
35214         wxUSE_UNICODE_UTF8=yes
35215     elif test "$TOOLKIT" = "GTK" -a "$WXGTK20" = "1" ; then
35216         wxUSE_UNICODE_UTF8=yes
35217     elif test "$USE_OS2" = "1" ; then
35218                                 wxUSE_UNICODE_UTF8=yes
35219     else
35220         wxUSE_UNICODE_UTF8=no
35221     fi
35222 fi
35223
35224
35225 if test "$wxUSE_GUI" = "yes"; then
35226     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
35227
35228 for ac_header in X11/Xlib.h
35229 do
35230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35234   echo $ECHO_N "(cached) $ECHO_C" >&6
35235 else
35236   cat >conftest.$ac_ext <<_ACEOF
35237 /* confdefs.h.  */
35238 _ACEOF
35239 cat confdefs.h >>conftest.$ac_ext
35240 cat >>conftest.$ac_ext <<_ACEOF
35241 /* end confdefs.h.  */
35242
35243
35244 #include <$ac_header>
35245 _ACEOF
35246 rm -f conftest.$ac_objext
35247 if { (ac_try="$ac_compile"
35248 case "(($ac_try" in
35249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35250   *) ac_try_echo=$ac_try;;
35251 esac
35252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35253   (eval "$ac_compile") 2>conftest.er1
35254   ac_status=$?
35255   grep -v '^ *+' conftest.er1 >conftest.err
35256   rm -f conftest.er1
35257   cat conftest.err >&5
35258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35259   (exit $ac_status); } && {
35260          test -z "$ac_c_werror_flag" ||
35261          test ! -s conftest.err
35262        } && test -s conftest.$ac_objext; then
35263   eval "$as_ac_Header=yes"
35264 else
35265   echo "$as_me: failed program was:" >&5
35266 sed 's/^/| /' conftest.$ac_ext >&5
35267
35268         eval "$as_ac_Header=no"
35269 fi
35270
35271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35272 fi
35273 ac_res=`eval echo '${'$as_ac_Header'}'`
35274                { echo "$as_me:$LINENO: result: $ac_res" >&5
35275 echo "${ECHO_T}$ac_res" >&6; }
35276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35277   cat >>confdefs.h <<_ACEOF
35278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35279 _ACEOF
35280
35281 fi
35282
35283 done
35284
35285
35286 for ac_header in X11/XKBlib.h
35287 do
35288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35292   echo $ECHO_N "(cached) $ECHO_C" >&6
35293 else
35294   cat >conftest.$ac_ext <<_ACEOF
35295 /* confdefs.h.  */
35296 _ACEOF
35297 cat confdefs.h >>conftest.$ac_ext
35298 cat >>conftest.$ac_ext <<_ACEOF
35299 /* end confdefs.h.  */
35300
35301                           #if HAVE_X11_XLIB_H
35302                             #include <X11/Xlib.h>
35303                           #endif
35304
35305
35306 #include <$ac_header>
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   eval "$as_ac_Header=yes"
35326 else
35327   echo "$as_me: failed program was:" >&5
35328 sed 's/^/| /' conftest.$ac_ext >&5
35329
35330         eval "$as_ac_Header=no"
35331 fi
35332
35333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35334 fi
35335 ac_res=`eval echo '${'$as_ac_Header'}'`
35336                { echo "$as_me:$LINENO: result: $ac_res" >&5
35337 echo "${ECHO_T}$ac_res" >&6; }
35338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35339   cat >>confdefs.h <<_ACEOF
35340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35341 _ACEOF
35342
35343 fi
35344
35345 done
35346
35347     fi
35348 fi
35349
35350
35351
35352 IODBC_C_SRC=""
35353
35354
35355 if test "$TOOLKIT" != "MSW" ; then
35356
35357     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
35358
35359         { echo "$as_me:$LINENO: checking for sql.h" >&5
35360 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
35361 if test "${ac_cv_header_sql_h+set}" = set; then
35362   echo $ECHO_N "(cached) $ECHO_C" >&6
35363 else
35364   cat >conftest.$ac_ext <<_ACEOF
35365 /* confdefs.h.  */
35366 _ACEOF
35367 cat confdefs.h >>conftest.$ac_ext
35368 cat >>conftest.$ac_ext <<_ACEOF
35369 /* end confdefs.h.  */
35370
35371
35372 #include <sql.h>
35373 _ACEOF
35374 rm -f conftest.$ac_objext
35375 if { (ac_try="$ac_compile"
35376 case "(($ac_try" in
35377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35378   *) ac_try_echo=$ac_try;;
35379 esac
35380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35381   (eval "$ac_compile") 2>conftest.er1
35382   ac_status=$?
35383   grep -v '^ *+' conftest.er1 >conftest.err
35384   rm -f conftest.er1
35385   cat conftest.err >&5
35386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35387   (exit $ac_status); } && {
35388          test -z "$ac_c_werror_flag" ||
35389          test ! -s conftest.err
35390        } && test -s conftest.$ac_objext; then
35391   ac_cv_header_sql_h=yes
35392 else
35393   echo "$as_me: failed program was:" >&5
35394 sed 's/^/| /' conftest.$ac_ext >&5
35395
35396         ac_cv_header_sql_h=no
35397 fi
35398
35399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35400 fi
35401 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
35402 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
35403 if test $ac_cv_header_sql_h = yes; then
35404   found_sql_h=1
35405 fi
35406
35407
35408         if test "x$found_sql_h" = "x1" ; then
35409             { echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
35410 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6; }
35411 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
35412   echo $ECHO_N "(cached) $ECHO_C" >&6
35413 else
35414   ac_check_lib_save_LIBS=$LIBS
35415 LIBS="-liodbc  $LIBS"
35416 cat >conftest.$ac_ext <<_ACEOF
35417 /* confdefs.h.  */
35418 _ACEOF
35419 cat confdefs.h >>conftest.$ac_ext
35420 cat >>conftest.$ac_ext <<_ACEOF
35421 /* end confdefs.h.  */
35422
35423 /* Override any GCC internal prototype to avoid an error.
35424    Use char because int might match the return type of a GCC
35425    builtin and then its argument prototype would still apply.  */
35426 #ifdef __cplusplus
35427 extern "C"
35428 #endif
35429 char SQLAllocEnv ();
35430 int
35431 main ()
35432 {
35433 return SQLAllocEnv ();
35434   ;
35435   return 0;
35436 }
35437 _ACEOF
35438 rm -f conftest.$ac_objext conftest$ac_exeext
35439 if { (ac_try="$ac_link"
35440 case "(($ac_try" in
35441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35442   *) ac_try_echo=$ac_try;;
35443 esac
35444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35445   (eval "$ac_link") 2>conftest.er1
35446   ac_status=$?
35447   grep -v '^ *+' conftest.er1 >conftest.err
35448   rm -f conftest.er1
35449   cat conftest.err >&5
35450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35451   (exit $ac_status); } && {
35452          test -z "$ac_c_werror_flag" ||
35453          test ! -s conftest.err
35454        } && test -s conftest$ac_exeext &&
35455        $as_test_x conftest$ac_exeext; then
35456   ac_cv_lib_iodbc_SQLAllocEnv=yes
35457 else
35458   echo "$as_me: failed program was:" >&5
35459 sed 's/^/| /' conftest.$ac_ext >&5
35460
35461         ac_cv_lib_iodbc_SQLAllocEnv=no
35462 fi
35463
35464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35465       conftest$ac_exeext conftest.$ac_ext
35466 LIBS=$ac_check_lib_save_LIBS
35467 fi
35468 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
35469 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6; }
35470 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
35471   ODBC_LINK=" -liodbc"
35472 else
35473
35474                 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
35475 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6; }
35476 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
35477   echo $ECHO_N "(cached) $ECHO_C" >&6
35478 else
35479   ac_check_lib_save_LIBS=$LIBS
35480 LIBS="-lunixodbc  $LIBS"
35481 cat >conftest.$ac_ext <<_ACEOF
35482 /* confdefs.h.  */
35483 _ACEOF
35484 cat confdefs.h >>conftest.$ac_ext
35485 cat >>conftest.$ac_ext <<_ACEOF
35486 /* end confdefs.h.  */
35487
35488 /* Override any GCC internal prototype to avoid an error.
35489    Use char because int might match the return type of a GCC
35490    builtin and then its argument prototype would still apply.  */
35491 #ifdef __cplusplus
35492 extern "C"
35493 #endif
35494 char SQLAllocEnv ();
35495 int
35496 main ()
35497 {
35498 return SQLAllocEnv ();
35499   ;
35500   return 0;
35501 }
35502 _ACEOF
35503 rm -f conftest.$ac_objext conftest$ac_exeext
35504 if { (ac_try="$ac_link"
35505 case "(($ac_try" in
35506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35507   *) ac_try_echo=$ac_try;;
35508 esac
35509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35510   (eval "$ac_link") 2>conftest.er1
35511   ac_status=$?
35512   grep -v '^ *+' conftest.er1 >conftest.err
35513   rm -f conftest.er1
35514   cat conftest.err >&5
35515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516   (exit $ac_status); } && {
35517          test -z "$ac_c_werror_flag" ||
35518          test ! -s conftest.err
35519        } && test -s conftest$ac_exeext &&
35520        $as_test_x conftest$ac_exeext; then
35521   ac_cv_lib_unixodbc_SQLAllocEnv=yes
35522 else
35523   echo "$as_me: failed program was:" >&5
35524 sed 's/^/| /' conftest.$ac_ext >&5
35525
35526         ac_cv_lib_unixodbc_SQLAllocEnv=no
35527 fi
35528
35529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35530       conftest$ac_exeext conftest.$ac_ext
35531 LIBS=$ac_check_lib_save_LIBS
35532 fi
35533 { echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
35534 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6; }
35535 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
35536   ODBC_LINK=" -lunixodbc"
35537 else
35538
35539                     { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
35540 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6; }
35541 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
35542   echo $ECHO_N "(cached) $ECHO_C" >&6
35543 else
35544   ac_check_lib_save_LIBS=$LIBS
35545 LIBS="-lodbc  $LIBS"
35546 cat >conftest.$ac_ext <<_ACEOF
35547 /* confdefs.h.  */
35548 _ACEOF
35549 cat confdefs.h >>conftest.$ac_ext
35550 cat >>conftest.$ac_ext <<_ACEOF
35551 /* end confdefs.h.  */
35552
35553 /* Override any GCC internal prototype to avoid an error.
35554    Use char because int might match the return type of a GCC
35555    builtin and then its argument prototype would still apply.  */
35556 #ifdef __cplusplus
35557 extern "C"
35558 #endif
35559 char SQLAllocEnv ();
35560 int
35561 main ()
35562 {
35563 return SQLAllocEnv ();
35564   ;
35565   return 0;
35566 }
35567 _ACEOF
35568 rm -f conftest.$ac_objext conftest$ac_exeext
35569 if { (ac_try="$ac_link"
35570 case "(($ac_try" in
35571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35572   *) ac_try_echo=$ac_try;;
35573 esac
35574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35575   (eval "$ac_link") 2>conftest.er1
35576   ac_status=$?
35577   grep -v '^ *+' conftest.er1 >conftest.err
35578   rm -f conftest.er1
35579   cat conftest.err >&5
35580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581   (exit $ac_status); } && {
35582          test -z "$ac_c_werror_flag" ||
35583          test ! -s conftest.err
35584        } && test -s conftest$ac_exeext &&
35585        $as_test_x conftest$ac_exeext; then
35586   ac_cv_lib_odbc_SQLAllocEnv=yes
35587 else
35588   echo "$as_me: failed program was:" >&5
35589 sed 's/^/| /' conftest.$ac_ext >&5
35590
35591         ac_cv_lib_odbc_SQLAllocEnv=no
35592 fi
35593
35594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35595       conftest$ac_exeext conftest.$ac_ext
35596 LIBS=$ac_check_lib_save_LIBS
35597 fi
35598 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
35599 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6; }
35600 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
35601   ODBC_LINK=" -lodbc"
35602 fi
35603
35604
35605 fi
35606
35607
35608 fi
35609
35610         fi
35611         if test "x$ODBC_LINK" = "x" ; then
35612             if test "$wxUSE_ODBC" = "sys" ; then
35613                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
35614 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
35615    { (exit 1); exit 1; }; }
35616             else
35617                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
35618 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
35619                 wxUSE_ODBC=builtin
35620             fi
35621         else
35622                         wxUSE_ODBC=sys
35623         fi
35624     fi
35625
35626     if test "$wxUSE_ODBC" = "builtin" ; then
35627         cat >>confdefs.h <<\_ACEOF
35628 #define wxUSE_BUILTIN_IODBC 1
35629 _ACEOF
35630
35631     fi
35632 fi
35633
35634 if test "$wxUSE_ODBC" != "no" ; then
35635     cat >>confdefs.h <<\_ACEOF
35636 #define wxUSE_ODBC 1
35637 _ACEOF
35638
35639     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
35640
35641         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
35642 fi
35643
35644
35645 if test "$wxUSE_DISPLAY" = "yes"; then
35646     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35647         { echo "$as_me:$LINENO: checking for Xinerama" >&5
35648 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
35649
35650   ac_find_libraries=
35651   for ac_dir in $SEARCH_LIB;
35652   do
35653     for ac_extension in a so sl dylib dll.a; do
35654       if test -f "$ac_dir/libXinerama.$ac_extension"; then
35655         ac_find_libraries=$ac_dir
35656         break 2
35657       fi
35658     done
35659   done
35660
35661         if test "$ac_find_libraries" != "" ; then
35662
35663     if test "$ac_find_libraries" = "default location"; then
35664     ac_path_to_link=""
35665   else
35666     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35667     result=$?
35668     if test $result = 0; then
35669       ac_path_to_link=""
35670     else
35671       ac_path_to_link=" -L$ac_find_libraries"
35672     fi
35673   fi
35674
35675             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35676                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35677             fi
35678             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
35679             { echo "$as_me:$LINENO: result: yes" >&5
35680 echo "${ECHO_T}yes" >&6; }
35681
35682             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
35683 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
35684
35685   ac_find_libraries=
35686   for ac_dir in $SEARCH_LIB;
35687   do
35688     for ac_extension in a so sl dylib dll.a; do
35689       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35690         ac_find_libraries=$ac_dir
35691         break 2
35692       fi
35693     done
35694   done
35695
35696             if test "$ac_find_libraries" != "" ; then
35697                 { echo "$as_me:$LINENO: result: yes" >&5
35698 echo "${ECHO_T}yes" >&6; }
35699
35700 for ac_header in X11/extensions/xf86vmode.h
35701 do
35702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35706   echo $ECHO_N "(cached) $ECHO_C" >&6
35707 else
35708   cat >conftest.$ac_ext <<_ACEOF
35709 /* confdefs.h.  */
35710 _ACEOF
35711 cat confdefs.h >>conftest.$ac_ext
35712 cat >>conftest.$ac_ext <<_ACEOF
35713 /* end confdefs.h.  */
35714
35715                                       #if HAVE_X11_XLIB_H
35716                                         #include <X11/Xlib.h>
35717                                       #endif
35718
35719
35720 #include <$ac_header>
35721 _ACEOF
35722 rm -f conftest.$ac_objext
35723 if { (ac_try="$ac_compile"
35724 case "(($ac_try" in
35725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35726   *) ac_try_echo=$ac_try;;
35727 esac
35728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35729   (eval "$ac_compile") 2>conftest.er1
35730   ac_status=$?
35731   grep -v '^ *+' conftest.er1 >conftest.err
35732   rm -f conftest.er1
35733   cat conftest.err >&5
35734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35735   (exit $ac_status); } && {
35736          test -z "$ac_c_werror_flag" ||
35737          test ! -s conftest.err
35738        } && test -s conftest.$ac_objext; then
35739   eval "$as_ac_Header=yes"
35740 else
35741   echo "$as_me: failed program was:" >&5
35742 sed 's/^/| /' conftest.$ac_ext >&5
35743
35744         eval "$as_ac_Header=no"
35745 fi
35746
35747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35748 fi
35749 ac_res=`eval echo '${'$as_ac_Header'}'`
35750                { echo "$as_me:$LINENO: result: $ac_res" >&5
35751 echo "${ECHO_T}$ac_res" >&6; }
35752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35753   cat >>confdefs.h <<_ACEOF
35754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35755 _ACEOF
35756
35757                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35758
35759 fi
35760
35761 done
35762
35763             else
35764                 { echo "$as_me:$LINENO: result: no" >&5
35765 echo "${ECHO_T}no" >&6; }
35766             fi
35767
35768         else
35769             { echo "$as_me:$LINENO: result: no" >&5
35770 echo "${ECHO_T}no" >&6; }
35771             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35772 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
35773             wxUSE_DISPLAY="no"
35774         fi
35775     elif test "$wxUSE_MSW" = 1; then
35776         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35777 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
35778 if test "${ac_cv_header_ddraw_h+set}" = set; then
35779   echo $ECHO_N "(cached) $ECHO_C" >&6
35780 else
35781   cat >conftest.$ac_ext <<_ACEOF
35782 /* confdefs.h.  */
35783 _ACEOF
35784 cat confdefs.h >>conftest.$ac_ext
35785 cat >>conftest.$ac_ext <<_ACEOF
35786 /* end confdefs.h.  */
35787 #include <windows.h>
35788
35789 #include <ddraw.h>
35790 _ACEOF
35791 rm -f conftest.$ac_objext
35792 if { (ac_try="$ac_compile"
35793 case "(($ac_try" in
35794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35795   *) ac_try_echo=$ac_try;;
35796 esac
35797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35798   (eval "$ac_compile") 2>conftest.er1
35799   ac_status=$?
35800   grep -v '^ *+' conftest.er1 >conftest.err
35801   rm -f conftest.er1
35802   cat conftest.err >&5
35803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804   (exit $ac_status); } && {
35805          test -z "$ac_c_werror_flag" ||
35806          test ! -s conftest.err
35807        } && test -s conftest.$ac_objext; then
35808   ac_cv_header_ddraw_h=yes
35809 else
35810   echo "$as_me: failed program was:" >&5
35811 sed 's/^/| /' conftest.$ac_ext >&5
35812
35813         ac_cv_header_ddraw_h=no
35814 fi
35815
35816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35817 fi
35818 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35819 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
35820
35821
35822     fi
35823 fi
35824
35825 if test "$wxUSE_DETECT_SM" = "yes"; then
35826     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35827         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
35828 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
35829
35830   ac_find_libraries=
35831   for ac_dir in $SEARCH_LIB;
35832   do
35833     for ac_extension in a so sl dylib dll.a; do
35834       if test -f "$ac_dir/libSM.$ac_extension"; then
35835         ac_find_libraries=$ac_dir
35836         break 2
35837       fi
35838     done
35839   done
35840
35841         if test "$ac_find_libraries" != "" ; then
35842
35843     if test "$ac_find_libraries" = "default location"; then
35844     ac_path_to_link=""
35845   else
35846     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35847     result=$?
35848     if test $result = 0; then
35849       ac_path_to_link=""
35850     else
35851       ac_path_to_link=" -L$ac_find_libraries"
35852     fi
35853   fi
35854
35855             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35856                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35857             fi
35858             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
35859             { echo "$as_me:$LINENO: result: yes" >&5
35860 echo "${ECHO_T}yes" >&6; }
35861         else
35862             { echo "$as_me:$LINENO: result: no" >&5
35863 echo "${ECHO_T}no" >&6; }
35864             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35865 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35866             wxUSE_DETECT_SM="no"
35867         fi
35868     else
35869         wxUSE_DETECT_SM="no"
35870     fi
35871 fi
35872
35873
35874
35875 USE_OPENGL=0
35876 if test "$wxUSE_OPENGL" = "yes"; then
35877     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
35878         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35879 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35880         wxUSE_OPENGL="no"
35881     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
35882         OPENGL_LIBS="-framework OpenGL -framework AGL"
35883     elif test "$wxUSE_MSW" = 1; then
35884         OPENGL_LIBS="-lopengl32 -lglu32"
35885     else
35886                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35887 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
35888
35889 ac_find_includes=
35890 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
35891   do
35892     if test -f "$ac_dir/GL/gl.h"; then
35893       ac_find_includes=$ac_dir
35894       break
35895     fi
35896   done
35897
35898         if test "$ac_find_includes" != "" ; then
35899             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35900 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35901
35902     if test "x$ac_find_includes" = "x/usr/include"; then
35903     ac_path_to_include=""
35904   else
35905     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35906     result=$?
35907     if test $result = 0; then
35908       ac_path_to_include=""
35909     else
35910       ac_path_to_include=" -I$ac_find_includes"
35911     fi
35912   fi
35913
35914             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
35915         else
35916             { echo "$as_me:$LINENO: result: not found" >&5
35917 echo "${ECHO_T}not found" >&6; }
35918         fi
35919
35920         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
35921 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
35922 if test "${ac_cv_header_GL_gl_h+set}" = set; then
35923   echo $ECHO_N "(cached) $ECHO_C" >&6
35924 else
35925   cat >conftest.$ac_ext <<_ACEOF
35926 /* confdefs.h.  */
35927 _ACEOF
35928 cat confdefs.h >>conftest.$ac_ext
35929 cat >>conftest.$ac_ext <<_ACEOF
35930 /* end confdefs.h.  */
35931
35932
35933 #include <GL/gl.h>
35934 _ACEOF
35935 rm -f conftest.$ac_objext
35936 if { (ac_try="$ac_compile"
35937 case "(($ac_try" in
35938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35939   *) ac_try_echo=$ac_try;;
35940 esac
35941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35942   (eval "$ac_compile") 2>conftest.er1
35943   ac_status=$?
35944   grep -v '^ *+' conftest.er1 >conftest.err
35945   rm -f conftest.er1
35946   cat conftest.err >&5
35947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948   (exit $ac_status); } && {
35949          test -z "$ac_c_werror_flag" ||
35950          test ! -s conftest.err
35951        } && test -s conftest.$ac_objext; then
35952   ac_cv_header_GL_gl_h=yes
35953 else
35954   echo "$as_me: failed program was:" >&5
35955 sed 's/^/| /' conftest.$ac_ext >&5
35956
35957         ac_cv_header_GL_gl_h=no
35958 fi
35959
35960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35961 fi
35962 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
35963 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
35964 if test $ac_cv_header_GL_gl_h = yes; then
35965
35966             if test "${ac_cv_header_GL_glu_h+set}" = set; then
35967   { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
35968 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
35969 if test "${ac_cv_header_GL_glu_h+set}" = set; then
35970   echo $ECHO_N "(cached) $ECHO_C" >&6
35971 fi
35972 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35973 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35974 else
35975   # Is the header compilable?
35976 { echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
35977 echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6; }
35978 cat >conftest.$ac_ext <<_ACEOF
35979 /* confdefs.h.  */
35980 _ACEOF
35981 cat confdefs.h >>conftest.$ac_ext
35982 cat >>conftest.$ac_ext <<_ACEOF
35983 /* end confdefs.h.  */
35984 $ac_includes_default
35985 #include <GL/glu.h>
35986 _ACEOF
35987 rm -f conftest.$ac_objext
35988 if { (ac_try="$ac_compile"
35989 case "(($ac_try" in
35990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35991   *) ac_try_echo=$ac_try;;
35992 esac
35993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35994   (eval "$ac_compile") 2>conftest.er1
35995   ac_status=$?
35996   grep -v '^ *+' conftest.er1 >conftest.err
35997   rm -f conftest.er1
35998   cat conftest.err >&5
35999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000   (exit $ac_status); } && {
36001          test -z "$ac_c_werror_flag" ||
36002          test ! -s conftest.err
36003        } && test -s conftest.$ac_objext; then
36004   ac_header_compiler=yes
36005 else
36006   echo "$as_me: failed program was:" >&5
36007 sed 's/^/| /' conftest.$ac_ext >&5
36008
36009         ac_header_compiler=no
36010 fi
36011
36012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36014 echo "${ECHO_T}$ac_header_compiler" >&6; }
36015
36016 # Is the header present?
36017 { echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
36018 echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6; }
36019 cat >conftest.$ac_ext <<_ACEOF
36020 /* confdefs.h.  */
36021 _ACEOF
36022 cat confdefs.h >>conftest.$ac_ext
36023 cat >>conftest.$ac_ext <<_ACEOF
36024 /* end confdefs.h.  */
36025 #include <GL/glu.h>
36026 _ACEOF
36027 if { (ac_try="$ac_cpp conftest.$ac_ext"
36028 case "(($ac_try" in
36029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36030   *) ac_try_echo=$ac_try;;
36031 esac
36032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36033   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36034   ac_status=$?
36035   grep -v '^ *+' conftest.er1 >conftest.err
36036   rm -f conftest.er1
36037   cat conftest.err >&5
36038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039   (exit $ac_status); } >/dev/null && {
36040          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36041          test ! -s conftest.err
36042        }; then
36043   ac_header_preproc=yes
36044 else
36045   echo "$as_me: failed program was:" >&5
36046 sed 's/^/| /' conftest.$ac_ext >&5
36047
36048   ac_header_preproc=no
36049 fi
36050
36051 rm -f conftest.err conftest.$ac_ext
36052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36053 echo "${ECHO_T}$ac_header_preproc" >&6; }
36054
36055 # So?  What about this header?
36056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36057   yes:no: )
36058     { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
36059 echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36060     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
36061 echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
36062     ac_header_preproc=yes
36063     ;;
36064   no:yes:* )
36065     { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
36066 echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
36067     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
36068 echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
36069     { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
36070 echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
36071     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
36072 echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
36073     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
36074 echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
36075     { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
36076 echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
36077     ( cat <<\_ASBOX
36078 ## ----------------------------------------- ##
36079 ## Report this to wx-dev@lists.wxwidgets.org ##
36080 ## ----------------------------------------- ##
36081 _ASBOX
36082      ) | sed "s/^/$as_me: WARNING:     /" >&2
36083     ;;
36084 esac
36085 { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
36086 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
36087 if test "${ac_cv_header_GL_glu_h+set}" = set; then
36088   echo $ECHO_N "(cached) $ECHO_C" >&6
36089 else
36090   ac_cv_header_GL_glu_h=$ac_header_preproc
36091 fi
36092 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
36093 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
36094
36095 fi
36096 if test $ac_cv_header_GL_glu_h = yes; then
36097
36098                 found_gl=0
36099
36100                 { echo "$as_me:$LINENO: checking for -lGL" >&5
36101 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
36102
36103   ac_find_libraries=
36104   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
36105   do
36106     for ac_extension in a so sl dylib dll.a; do
36107       if test -f "$ac_dir/libGL.$ac_extension"; then
36108         ac_find_libraries=$ac_dir
36109         break 2
36110       fi
36111     done
36112   done
36113
36114                 if test "$ac_find_libraries" != "" ; then
36115                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
36116 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
36117
36118
36119     if test "$ac_find_libraries" = "default location"; then
36120     ac_path_to_link=""
36121   else
36122     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36123     result=$?
36124     if test $result = 0; then
36125       ac_path_to_link=""
36126     else
36127       ac_path_to_link=" -L$ac_find_libraries"
36128     fi
36129   fi
36130
36131                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
36132                         LDFLAGS_GL="$ac_path_to_link"
36133                     fi
36134
36135                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
36136 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
36137
36138   ac_find_libraries=
36139   for ac_dir in $SEARCH_LIB;
36140   do
36141     for ac_extension in a so sl dylib dll.a; do
36142       if test -f "$ac_dir/libGLU.$ac_extension"; then
36143         ac_find_libraries=$ac_dir
36144         break 2
36145       fi
36146     done
36147   done
36148
36149                     if test "$ac_find_libraries" != "" ; then
36150
36151     if test "$ac_find_libraries" = "default location"; then
36152     ac_path_to_link=""
36153   else
36154     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36155     result=$?
36156     if test $result = 0; then
36157       ac_path_to_link=""
36158     else
36159       ac_path_to_link=" -L$ac_find_libraries"
36160     fi
36161   fi
36162
36163                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
36164                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
36165                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
36166                         fi
36167
36168                         found_gl=1
36169                         OPENGL_LIBS="-lGL -lGLU"
36170                         { echo "$as_me:$LINENO: result: yes" >&5
36171 echo "${ECHO_T}yes" >&6; }
36172                     else
36173                         { echo "$as_me:$LINENO: result: no" >&5
36174 echo "${ECHO_T}no" >&6; }
36175                     fi
36176                 else
36177                     { echo "$as_me:$LINENO: result: no" >&5
36178 echo "${ECHO_T}no" >&6; }
36179                 fi
36180
36181                 if test "$found_gl" != 1; then
36182                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
36183 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
36184
36185   ac_find_libraries=
36186   for ac_dir in $SEARCH_LIB;
36187   do
36188     for ac_extension in a so sl dylib dll.a; do
36189       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
36190         ac_find_libraries=$ac_dir
36191         break 2
36192       fi
36193     done
36194   done
36195
36196                     if test "$ac_find_libraries" != "" ; then
36197
36198     if test "$ac_find_libraries" = "default location"; then
36199     ac_path_to_link=""
36200   else
36201     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36202     result=$?
36203     if test $result = 0; then
36204       ac_path_to_link=""
36205     else
36206       ac_path_to_link=" -L$ac_find_libraries"
36207     fi
36208   fi
36209
36210                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
36211                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
36212                         { echo "$as_me:$LINENO: result: yes" >&5
36213 echo "${ECHO_T}yes" >&6; }
36214                     else
36215                         { echo "$as_me:$LINENO: result: no" >&5
36216 echo "${ECHO_T}no" >&6; }
36217                     fi
36218                 fi
36219
36220 fi
36221
36222
36223
36224 fi
36225
36226
36227
36228         if test "x$OPENGL_LIBS" = "x"; then
36229                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
36230 echo "$as_me: error: OpenGL libraries not available" >&2;}
36231    { (exit 1); exit 1; }; }
36232         fi
36233     fi
36234
36235     if test "$wxUSE_OPENGL" = "yes"; then
36236         USE_OPENGL=1
36237         cat >>confdefs.h <<\_ACEOF
36238 #define wxUSE_OPENGL 1
36239 _ACEOF
36240
36241         cat >>confdefs.h <<\_ACEOF
36242 #define wxUSE_GLCANVAS 1
36243 _ACEOF
36244
36245         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
36246     fi
36247 fi
36248
36249
36250 if test -n "$TOOLKIT" ; then
36251     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
36252 fi
36253
36254
36255
36256 if test "$wxUSE_SHARED" = "yes"; then
36257     case "${host}" in
36258       *-pc-msdosdjgpp )
36259                 wxUSE_SHARED=no
36260         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
36261 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
36262       ;;
36263     esac
36264 fi
36265
36266 if test "$wxUSE_SHARED" = "yes"; then
36267
36268
36269     case "${host}" in
36270         *-*-cygwin* | *-*-mingw* )
36271                                                                                                 wx_cv_version_script=no
36272             ;;
36273
36274         *)
36275             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
36276 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
36277 if test "${wx_cv_version_script+set}" = set; then
36278   echo $ECHO_N "(cached) $ECHO_C" >&6
36279 else
36280
36281                 echo "VER_1 { *; };" >conftest.sym
36282                 echo "int main() { return 0; }" >conftest.cpp
36283
36284                 if { ac_try='
36285                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36286                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
36287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36288   (eval $ac_try) 2>&5
36289   ac_status=$?
36290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291   (exit $ac_status); }; } ; then
36292                   if test -s conftest.stderr ; then
36293                       wx_cv_version_script=no
36294                   else
36295                       wx_cv_version_script=yes
36296                   fi
36297                 else
36298                   wx_cv_version_script=no
36299                 fi
36300
36301                                                                                                                                                                                                 if test $wx_cv_version_script = yes
36302                 then
36303                   echo "struct B { virtual ~B() { } }; \
36304                         struct D : public B { }; \
36305                         void F() { D d; }" > conftest.cpp
36306
36307                   if { ac_try='
36308                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36309                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
36310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36311   (eval $ac_try) 2>&5
36312   ac_status=$?
36313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314   (exit $ac_status); }; } &&
36315                      { ac_try='
36316                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36317                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
36318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36319   (eval $ac_try) 2>&5
36320   ac_status=$?
36321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322   (exit $ac_status); }; }
36323                   then
36324                     if { ac_try='
36325                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36326                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
36327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36328   (eval $ac_try) 2>&5
36329   ac_status=$?
36330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36331   (exit $ac_status); }; }
36332                     then
36333                       wx_cv_version_script=yes
36334                     else
36335                       wx_cv_version_script=no
36336                     fi
36337                   fi
36338                 fi
36339
36340                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
36341                 rm -f conftest1.output conftest2.output conftest3.output
36342
36343 fi
36344 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
36345 echo "${ECHO_T}$wx_cv_version_script" >&6; }
36346
36347             if test $wx_cv_version_script = yes ; then
36348                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
36349             fi
36350             ;;
36351     esac
36352
36353
36354             if test "$wxUSE_VISIBILITY" != "no"; then
36355
36356
36357   if test -n "$GCC"; then
36358     CFLAGS_VISIBILITY="-fvisibility=hidden"
36359     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
36360     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
36361 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
36362     if test "${wx_cv_cc_visibility+set}" = set; then
36363   echo $ECHO_N "(cached) $ECHO_C" >&6
36364 else
36365
36366       wx_save_CXXFLAGS="$CXXFLAGS"
36367       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
36368       ac_ext=cpp
36369 ac_cpp='$CXXCPP $CPPFLAGS'
36370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36373
36374       cat >conftest.$ac_ext <<_ACEOF
36375 /* confdefs.h.  */
36376 _ACEOF
36377 cat confdefs.h >>conftest.$ac_ext
36378 cat >>conftest.$ac_ext <<_ACEOF
36379 /* end confdefs.h.  */
36380
36381          /* we need gcc >= 4.0, older versions with visibility support
36382             didn't have class visibility: */
36383          #if defined(__GNUC__) && __GNUC__ < 4
36384          error this gcc is too old;
36385          #endif
36386
36387          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
36388          extern __attribute__((__visibility__("default"))) int exportedvar;
36389          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
36390          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
36391          class __attribute__((__visibility__("default"))) Foo {
36392            Foo() {}
36393          };
36394
36395 int
36396 main ()
36397 {
36398
36399   ;
36400   return 0;
36401 }
36402 _ACEOF
36403 rm -f conftest.$ac_objext
36404 if { (ac_try="$ac_compile"
36405 case "(($ac_try" in
36406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36407   *) ac_try_echo=$ac_try;;
36408 esac
36409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36410   (eval "$ac_compile") 2>conftest.er1
36411   ac_status=$?
36412   grep -v '^ *+' conftest.er1 >conftest.err
36413   rm -f conftest.er1
36414   cat conftest.err >&5
36415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416   (exit $ac_status); } && {
36417          test -z "$ac_cxx_werror_flag" ||
36418          test ! -s conftest.err
36419        } && test -s conftest.$ac_objext; then
36420   wx_cv_cc_visibility=yes
36421 else
36422   echo "$as_me: failed program was:" >&5
36423 sed 's/^/| /' conftest.$ac_ext >&5
36424
36425         wx_cv_cc_visibility=no
36426 fi
36427
36428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36429       ac_ext=c
36430 ac_cpp='$CPP $CPPFLAGS'
36431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36434
36435       CXXFLAGS="$wx_save_CXXFLAGS"
36436 fi
36437
36438     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
36439 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
36440     if test $wx_cv_cc_visibility = yes; then
36441       cat >>confdefs.h <<\_ACEOF
36442 #define HAVE_VISIBILITY 1
36443 _ACEOF
36444
36445
36446                   { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
36447 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
36448       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
36449   echo $ECHO_N "(cached) $ECHO_C" >&6
36450 else
36451
36452         wx_save_CXXFLAGS="$CXXFLAGS"
36453         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
36454         ac_ext=cpp
36455 ac_cpp='$CXXCPP $CPPFLAGS'
36456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36459
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
36467             #include <string>
36468
36469 int
36470 main ()
36471 {
36472
36473             std::string x;
36474
36475   ;
36476   return 0;
36477 }
36478 _ACEOF
36479 rm -f conftest.$ac_objext conftest$ac_exeext
36480 if { (ac_try="$ac_link"
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_link") 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_cxx_werror_flag" ||
36494          test ! -s conftest.err
36495        } && test -s conftest$ac_exeext &&
36496        $as_test_x conftest$ac_exeext; then
36497   wx_cv_cc_broken_libstdcxx_visibility=no
36498 else
36499   echo "$as_me: failed program was:" >&5
36500 sed 's/^/| /' conftest.$ac_ext >&5
36501
36502         wx_cv_cc_broken_libstdcxx_visibility=yes
36503 fi
36504
36505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36506       conftest$ac_exeext conftest.$ac_ext
36507         ac_ext=c
36508 ac_cpp='$CPP $CPPFLAGS'
36509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36512
36513         CXXFLAGS="$wx_save_CXXFLAGS"
36514 fi
36515
36516       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
36517 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
36518       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
36519         cat >>confdefs.h <<\_ACEOF
36520 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
36521 _ACEOF
36522
36523       fi
36524
36525     else
36526       CFLAGS_VISIBILITY=""
36527       CXXFLAGS_VISIBILITY=""
36528     fi
36529
36530
36531   fi
36532
36533     fi
36534
36535         if test "x$SUNCXX" = xyes; then
36536         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
36537         WXCONFIG_RPATH="-R\$libdir"
36538     else
36539     case "${host}" in
36540       *-*-linux* | *-*-gnu* )
36541         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36542         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36543         ;;
36544
36545       *-*-solaris2* )
36546
36547                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
36548
36549                         saveLdflags="$LDFLAGS"
36550         LDFLAGS="$saveLdflags -Wl,-rpath,/"
36551         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
36552 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
36553         cat >conftest.$ac_ext <<_ACEOF
36554 /* confdefs.h.  */
36555 _ACEOF
36556 cat confdefs.h >>conftest.$ac_ext
36557 cat >>conftest.$ac_ext <<_ACEOF
36558 /* end confdefs.h.  */
36559
36560 int
36561 main ()
36562 {
36563
36564   ;
36565   return 0;
36566 }
36567 _ACEOF
36568 rm -f conftest.$ac_objext conftest$ac_exeext
36569 if { (ac_try="$ac_link"
36570 case "(($ac_try" in
36571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36572   *) ac_try_echo=$ac_try;;
36573 esac
36574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36575   (eval "$ac_link") 2>conftest.er1
36576   ac_status=$?
36577   grep -v '^ *+' conftest.er1 >conftest.err
36578   rm -f conftest.er1
36579   cat conftest.err >&5
36580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36581   (exit $ac_status); } && {
36582          test -z "$ac_c_werror_flag" ||
36583          test ! -s conftest.err
36584        } && test -s conftest$ac_exeext &&
36585        $as_test_x conftest$ac_exeext; then
36586
36587                 { echo "$as_me:$LINENO: result: yes" >&5
36588 echo "${ECHO_T}yes" >&6; }
36589                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36590                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36591
36592 else
36593   echo "$as_me: failed program was:" >&5
36594 sed 's/^/| /' conftest.$ac_ext >&5
36595
36596
36597                 { echo "$as_me:$LINENO: result: no" >&5
36598 echo "${ECHO_T}no" >&6; }
36599                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
36600 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
36601                 LDFLAGS="$saveLdflags -Wl,-R,/"
36602                 cat >conftest.$ac_ext <<_ACEOF
36603 /* confdefs.h.  */
36604 _ACEOF
36605 cat confdefs.h >>conftest.$ac_ext
36606 cat >>conftest.$ac_ext <<_ACEOF
36607 /* end confdefs.h.  */
36608
36609 int
36610 main ()
36611 {
36612
36613   ;
36614   return 0;
36615 }
36616 _ACEOF
36617 rm -f conftest.$ac_objext conftest$ac_exeext
36618 if { (ac_try="$ac_link"
36619 case "(($ac_try" in
36620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36621   *) ac_try_echo=$ac_try;;
36622 esac
36623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36624   (eval "$ac_link") 2>conftest.er1
36625   ac_status=$?
36626   grep -v '^ *+' conftest.er1 >conftest.err
36627   rm -f conftest.er1
36628   cat conftest.err >&5
36629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630   (exit $ac_status); } && {
36631          test -z "$ac_c_werror_flag" ||
36632          test ! -s conftest.err
36633        } && test -s conftest$ac_exeext &&
36634        $as_test_x conftest$ac_exeext; then
36635
36636                         { echo "$as_me:$LINENO: result: yes" >&5
36637 echo "${ECHO_T}yes" >&6; }
36638                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
36639                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
36640
36641 else
36642   echo "$as_me: failed program was:" >&5
36643 sed 's/^/| /' conftest.$ac_ext >&5
36644
36645
36646                         { echo "$as_me:$LINENO: result: no" >&5
36647 echo "${ECHO_T}no" >&6; }
36648
36649 fi
36650
36651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36652       conftest$ac_exeext conftest.$ac_ext
36653
36654 fi
36655
36656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36657       conftest$ac_exeext conftest.$ac_ext
36658         LDFLAGS="$saveLdflags"
36659       ;;
36660
36661       *-*-darwin* )
36662         install_name_tool=`which install_name_tool`
36663         if test "$install_name_tool" -a -x "$install_name_tool"; then
36664             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
36665             cat <<EOF >change-install-names
36666 #!/bin/sh
36667 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
36668 inst_cmd="install_name_tool "
36669 for i in \${libnames} ; do
36670     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
36671 done
36672 \${inst_cmd} \${3}
36673 EOF
36674             chmod +x change-install-names
36675         fi
36676       ;;
36677
36678       *-*-cygwin* | *-*-mingw32* )
36679                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
36680         ;;
36681
36682       *-*-hpux* )
36683         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
36684         WXCONFIG_RPATH="-Wl,+b,\$libdir"
36685         ;;
36686
36687     esac
36688     fi
36689
36690     if test $wxUSE_RPATH = "no"; then
36691         SAMPLES_RPATH_FLAG=''
36692         SAMPLES_RPATH_POSTLINK=''
36693         WXCONFIG_RPATH=''
36694     fi
36695
36696     SHARED=1
36697
36698 else
36699
36700     config_linkage_component="-static"
36701     SHARED=0
36702
36703 fi
36704
36705
36706 UNICODE=0
36707 lib_unicode_suffix=
36708 WX_CHARTYPE="ansi"
36709 if test "$wxUSE_UNICODE" = "yes"; then
36710     lib_unicode_suffix=u
36711     WX_CHARTYPE="unicode"
36712     UNICODE=1
36713 fi
36714
36715 lib_debug_suffix=
36716 WX_DEBUGTYPE="release"
36717 DEBUG_FLAG=0
36718 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
36719     lib_debug_suffix=d
36720     WX_DEBUGTYPE="debug"
36721     DEBUG_FLAG=1
36722 fi
36723
36724 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
36725 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
36726
36727 DEBUG_INFO=0
36728 if test "$wxUSE_DEBUG_INFO" = "yes"; then
36729     DEBUG_INFO=1
36730 fi
36731
36732 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
36733
36734 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
36735
36736 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
36737
36738 if test "$cross_compiling" = "yes"; then
36739     HOST_SUFFIX="-$host_alias"
36740     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
36741     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
36742 fi
36743
36744 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36745 if test "${TOOLKIT_DIR}" = "os2"; then
36746     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36747 else
36748     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36749 fi
36750
36751
36752
36753 if test "$wxUSE_COCOA" = 1; then
36754
36755     ac_ext=c
36756 ac_cpp='$CPP $CPPFLAGS'
36757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36760
36761 ac_ext=m
36762
36763     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
36764 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
36765     cat >conftest.$ac_ext <<_ACEOF
36766 /* confdefs.h.  */
36767 _ACEOF
36768 cat confdefs.h >>conftest.$ac_ext
36769 cat >>conftest.$ac_ext <<_ACEOF
36770 /* end confdefs.h.  */
36771 #include <AppKit/NSEvent.h>
36772 #include <CoreFoundation/CoreFoundation.h>
36773
36774 int
36775 main ()
36776 {
36777
36778   ;
36779   return 0;
36780 }
36781 _ACEOF
36782 rm -f conftest.$ac_objext
36783 if { (ac_try="$ac_compile"
36784 case "(($ac_try" in
36785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36786   *) ac_try_echo=$ac_try;;
36787 esac
36788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36789   (eval "$ac_compile") 2>conftest.er1
36790   ac_status=$?
36791   grep -v '^ *+' conftest.er1 >conftest.err
36792   rm -f conftest.er1
36793   cat conftest.err >&5
36794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36795   (exit $ac_status); } && {
36796          test -z "$ac_c_werror_flag" ||
36797          test ! -s conftest.err
36798        } && test -s conftest.$ac_objext; then
36799   { echo "$as_me:$LINENO: result: no" >&5
36800 echo "${ECHO_T}no" >&6; }
36801 else
36802   echo "$as_me: failed program was:" >&5
36803 sed 's/^/| /' conftest.$ac_ext >&5
36804
36805         { echo "$as_me:$LINENO: result: yes" >&5
36806 echo "${ECHO_T}yes" >&6; }
36807         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
36808 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
36809         cat >conftest.$ac_ext <<_ACEOF
36810 /* confdefs.h.  */
36811 _ACEOF
36812 cat confdefs.h >>conftest.$ac_ext
36813 cat >>conftest.$ac_ext <<_ACEOF
36814 /* end confdefs.h.  */
36815 #define __Point__ 1
36816 #include <AppKit/NSEvent.h>
36817 #include <CoreFoundation/CoreFoundation.h>
36818
36819 int
36820 main ()
36821 {
36822
36823   ;
36824   return 0;
36825 }
36826 _ACEOF
36827 rm -f conftest.$ac_objext
36828 if { (ac_try="$ac_compile"
36829 case "(($ac_try" in
36830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36831   *) ac_try_echo=$ac_try;;
36832 esac
36833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36834   (eval "$ac_compile") 2>conftest.er1
36835   ac_status=$?
36836   grep -v '^ *+' conftest.er1 >conftest.err
36837   rm -f conftest.er1
36838   cat conftest.err >&5
36839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36840   (exit $ac_status); } && {
36841          test -z "$ac_c_werror_flag" ||
36842          test ! -s conftest.err
36843        } && test -s conftest.$ac_objext; then
36844   { echo "$as_me:$LINENO: result: yes" >&5
36845 echo "${ECHO_T}yes" >&6; }
36846             cat >>confdefs.h <<\_ACEOF
36847 #define __Point__ 1
36848 _ACEOF
36849
36850
36851 else
36852   echo "$as_me: failed program was:" >&5
36853 sed 's/^/| /' conftest.$ac_ext >&5
36854
36855         { { echo "$as_me:$LINENO: error: no
36856 See \`config.log' for more details." >&5
36857 echo "$as_me: error: no
36858 See \`config.log' for more details." >&2;}
36859    { (exit 1); exit 1; }; }
36860
36861 fi
36862
36863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36864
36865 fi
36866
36867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36868     ac_ext=c
36869 ac_cpp='$CPP $CPPFLAGS'
36870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36873
36874 fi
36875
36876 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
36877             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
36878     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
36879
36880         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
36881
36882     # Extract the first word of "Rez", so it can be a program name with args.
36883 set dummy Rez; ac_word=$2
36884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36886 if test "${ac_cv_prog_REZ+set}" = set; then
36887   echo $ECHO_N "(cached) $ECHO_C" >&6
36888 else
36889   if test -n "$REZ"; then
36890   ac_cv_prog_REZ="$REZ" # Let the user override the test.
36891 else
36892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36893 for as_dir in $PATH
36894 do
36895   IFS=$as_save_IFS
36896   test -z "$as_dir" && as_dir=.
36897   for ac_exec_ext in '' $ac_executable_extensions; do
36898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36899     ac_cv_prog_REZ="Rez"
36900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36901     break 2
36902   fi
36903 done
36904 done
36905 IFS=$as_save_IFS
36906
36907   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
36908 fi
36909 fi
36910 REZ=$ac_cv_prog_REZ
36911 if test -n "$REZ"; then
36912   { echo "$as_me:$LINENO: result: $REZ" >&5
36913 echo "${ECHO_T}$REZ" >&6; }
36914 else
36915   { echo "$as_me:$LINENO: result: no" >&5
36916 echo "${ECHO_T}no" >&6; }
36917 fi
36918
36919
36920     # Extract the first word of "DeRez", so it can be a program name with args.
36921 set dummy DeRez; ac_word=$2
36922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36924 if test "${ac_cv_prog_DEREZ+set}" = set; then
36925   echo $ECHO_N "(cached) $ECHO_C" >&6
36926 else
36927   if test -n "$DEREZ"; then
36928   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
36929 else
36930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36931 for as_dir in $PATH
36932 do
36933   IFS=$as_save_IFS
36934   test -z "$as_dir" && as_dir=.
36935   for ac_exec_ext in '' $ac_executable_extensions; do
36936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36937     ac_cv_prog_DEREZ="DeRez"
36938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36939     break 2
36940   fi
36941 done
36942 done
36943 IFS=$as_save_IFS
36944
36945   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
36946 fi
36947 fi
36948 DEREZ=$ac_cv_prog_DEREZ
36949 if test -n "$DEREZ"; then
36950   { echo "$as_me:$LINENO: result: $DEREZ" >&5
36951 echo "${ECHO_T}$DEREZ" >&6; }
36952 else
36953   { echo "$as_me:$LINENO: result: no" >&5
36954 echo "${ECHO_T}no" >&6; }
36955 fi
36956
36957
36958     # Extract the first word of "SetFile", so it can be a program name with args.
36959 set dummy SetFile; ac_word=$2
36960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36962 if test "${ac_cv_prog_SETFILE+set}" = set; then
36963   echo $ECHO_N "(cached) $ECHO_C" >&6
36964 else
36965   if test -n "$SETFILE"; then
36966   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
36967 else
36968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36969 for as_dir in $PATH
36970 do
36971   IFS=$as_save_IFS
36972   test -z "$as_dir" && as_dir=.
36973   for ac_exec_ext in '' $ac_executable_extensions; do
36974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36975     ac_cv_prog_SETFILE="SetFile"
36976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36977     break 2
36978   fi
36979 done
36980 done
36981 IFS=$as_save_IFS
36982
36983   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
36984 fi
36985 fi
36986 SETFILE=$ac_cv_prog_SETFILE
36987 if test -n "$SETFILE"; then
36988   { echo "$as_me:$LINENO: result: $SETFILE" >&5
36989 echo "${ECHO_T}$SETFILE" >&6; }
36990 else
36991   { echo "$as_me:$LINENO: result: no" >&5
36992 echo "${ECHO_T}no" >&6; }
36993 fi
36994
36995
36996
36997     MACSETFILE="\$(SETFILE)"
36998
36999             if test "$wxUSE_MAC" = 1; then
37000         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
37001         RESCOMP="$REZ"
37002         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
37003     else
37004         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
37005         RESCOMP="echo -n \| $REZ"
37006         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
37007     fi
37008
37009 else
37010         MACSETFILE="@true"
37011
37012     if test "$wxUSE_PM" = 1; then
37013         RESCOMP="emxbind"
37014         WXCONFIG_RESFLAGS="-ep"
37015
37016                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
37017     else
37018         POSTLINK_COMMAND="@true"
37019     fi
37020
37021 fi
37022
37023
37024
37025 { echo "$as_me:$LINENO: checking for mode_t" >&5
37026 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
37027 if test "${ac_cv_type_mode_t+set}" = set; then
37028   echo $ECHO_N "(cached) $ECHO_C" >&6
37029 else
37030   cat >conftest.$ac_ext <<_ACEOF
37031 /* confdefs.h.  */
37032 _ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h.  */
37036 $ac_includes_default
37037 typedef mode_t ac__type_new_;
37038 int
37039 main ()
37040 {
37041 if ((ac__type_new_ *) 0)
37042   return 0;
37043 if (sizeof (ac__type_new_))
37044   return 0;
37045   ;
37046   return 0;
37047 }
37048 _ACEOF
37049 rm -f conftest.$ac_objext
37050 if { (ac_try="$ac_compile"
37051 case "(($ac_try" in
37052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37053   *) ac_try_echo=$ac_try;;
37054 esac
37055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37056   (eval "$ac_compile") 2>conftest.er1
37057   ac_status=$?
37058   grep -v '^ *+' conftest.er1 >conftest.err
37059   rm -f conftest.er1
37060   cat conftest.err >&5
37061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37062   (exit $ac_status); } && {
37063          test -z "$ac_c_werror_flag" ||
37064          test ! -s conftest.err
37065        } && test -s conftest.$ac_objext; then
37066   ac_cv_type_mode_t=yes
37067 else
37068   echo "$as_me: failed program was:" >&5
37069 sed 's/^/| /' conftest.$ac_ext >&5
37070
37071         ac_cv_type_mode_t=no
37072 fi
37073
37074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37075 fi
37076 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
37077 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
37078 if test $ac_cv_type_mode_t = yes; then
37079   :
37080 else
37081
37082 cat >>confdefs.h <<_ACEOF
37083 #define mode_t int
37084 _ACEOF
37085
37086 fi
37087
37088 { echo "$as_me:$LINENO: checking for off_t" >&5
37089 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
37090 if test "${ac_cv_type_off_t+set}" = set; then
37091   echo $ECHO_N "(cached) $ECHO_C" >&6
37092 else
37093   cat >conftest.$ac_ext <<_ACEOF
37094 /* confdefs.h.  */
37095 _ACEOF
37096 cat confdefs.h >>conftest.$ac_ext
37097 cat >>conftest.$ac_ext <<_ACEOF
37098 /* end confdefs.h.  */
37099 $ac_includes_default
37100 typedef off_t ac__type_new_;
37101 int
37102 main ()
37103 {
37104 if ((ac__type_new_ *) 0)
37105   return 0;
37106 if (sizeof (ac__type_new_))
37107   return 0;
37108   ;
37109   return 0;
37110 }
37111 _ACEOF
37112 rm -f conftest.$ac_objext
37113 if { (ac_try="$ac_compile"
37114 case "(($ac_try" in
37115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37116   *) ac_try_echo=$ac_try;;
37117 esac
37118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37119   (eval "$ac_compile") 2>conftest.er1
37120   ac_status=$?
37121   grep -v '^ *+' conftest.er1 >conftest.err
37122   rm -f conftest.er1
37123   cat conftest.err >&5
37124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125   (exit $ac_status); } && {
37126          test -z "$ac_c_werror_flag" ||
37127          test ! -s conftest.err
37128        } && test -s conftest.$ac_objext; then
37129   ac_cv_type_off_t=yes
37130 else
37131   echo "$as_me: failed program was:" >&5
37132 sed 's/^/| /' conftest.$ac_ext >&5
37133
37134         ac_cv_type_off_t=no
37135 fi
37136
37137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37138 fi
37139 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37140 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
37141 if test $ac_cv_type_off_t = yes; then
37142   :
37143 else
37144
37145 cat >>confdefs.h <<_ACEOF
37146 #define off_t long int
37147 _ACEOF
37148
37149 fi
37150
37151 { echo "$as_me:$LINENO: checking for pid_t" >&5
37152 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
37153 if test "${ac_cv_type_pid_t+set}" = set; then
37154   echo $ECHO_N "(cached) $ECHO_C" >&6
37155 else
37156   cat >conftest.$ac_ext <<_ACEOF
37157 /* confdefs.h.  */
37158 _ACEOF
37159 cat confdefs.h >>conftest.$ac_ext
37160 cat >>conftest.$ac_ext <<_ACEOF
37161 /* end confdefs.h.  */
37162 $ac_includes_default
37163 typedef pid_t ac__type_new_;
37164 int
37165 main ()
37166 {
37167 if ((ac__type_new_ *) 0)
37168   return 0;
37169 if (sizeof (ac__type_new_))
37170   return 0;
37171   ;
37172   return 0;
37173 }
37174 _ACEOF
37175 rm -f conftest.$ac_objext
37176 if { (ac_try="$ac_compile"
37177 case "(($ac_try" in
37178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37179   *) ac_try_echo=$ac_try;;
37180 esac
37181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37182   (eval "$ac_compile") 2>conftest.er1
37183   ac_status=$?
37184   grep -v '^ *+' conftest.er1 >conftest.err
37185   rm -f conftest.er1
37186   cat conftest.err >&5
37187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37188   (exit $ac_status); } && {
37189          test -z "$ac_c_werror_flag" ||
37190          test ! -s conftest.err
37191        } && test -s conftest.$ac_objext; then
37192   ac_cv_type_pid_t=yes
37193 else
37194   echo "$as_me: failed program was:" >&5
37195 sed 's/^/| /' conftest.$ac_ext >&5
37196
37197         ac_cv_type_pid_t=no
37198 fi
37199
37200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37201 fi
37202 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37203 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
37204 if test $ac_cv_type_pid_t = yes; then
37205   :
37206 else
37207
37208 cat >>confdefs.h <<_ACEOF
37209 #define pid_t int
37210 _ACEOF
37211
37212 fi
37213
37214 { echo "$as_me:$LINENO: checking for size_t" >&5
37215 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
37216 if test "${ac_cv_type_size_t+set}" = set; then
37217   echo $ECHO_N "(cached) $ECHO_C" >&6
37218 else
37219   cat >conftest.$ac_ext <<_ACEOF
37220 /* confdefs.h.  */
37221 _ACEOF
37222 cat confdefs.h >>conftest.$ac_ext
37223 cat >>conftest.$ac_ext <<_ACEOF
37224 /* end confdefs.h.  */
37225 $ac_includes_default
37226 typedef size_t ac__type_new_;
37227 int
37228 main ()
37229 {
37230 if ((ac__type_new_ *) 0)
37231   return 0;
37232 if (sizeof (ac__type_new_))
37233   return 0;
37234   ;
37235   return 0;
37236 }
37237 _ACEOF
37238 rm -f conftest.$ac_objext
37239 if { (ac_try="$ac_compile"
37240 case "(($ac_try" in
37241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37242   *) ac_try_echo=$ac_try;;
37243 esac
37244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37245   (eval "$ac_compile") 2>conftest.er1
37246   ac_status=$?
37247   grep -v '^ *+' conftest.er1 >conftest.err
37248   rm -f conftest.er1
37249   cat conftest.err >&5
37250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251   (exit $ac_status); } && {
37252          test -z "$ac_c_werror_flag" ||
37253          test ! -s conftest.err
37254        } && test -s conftest.$ac_objext; then
37255   ac_cv_type_size_t=yes
37256 else
37257   echo "$as_me: failed program was:" >&5
37258 sed 's/^/| /' conftest.$ac_ext >&5
37259
37260         ac_cv_type_size_t=no
37261 fi
37262
37263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37264 fi
37265 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37266 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
37267 if test $ac_cv_type_size_t = yes; then
37268   :
37269 else
37270
37271 cat >>confdefs.h <<_ACEOF
37272 #define size_t unsigned int
37273 _ACEOF
37274
37275 fi
37276
37277 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37278 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
37279 if test "${ac_cv_type_uid_t+set}" = set; then
37280   echo $ECHO_N "(cached) $ECHO_C" >&6
37281 else
37282   cat >conftest.$ac_ext <<_ACEOF
37283 /* confdefs.h.  */
37284 _ACEOF
37285 cat confdefs.h >>conftest.$ac_ext
37286 cat >>conftest.$ac_ext <<_ACEOF
37287 /* end confdefs.h.  */
37288 #include <sys/types.h>
37289
37290 _ACEOF
37291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37292   $EGREP "uid_t" >/dev/null 2>&1; then
37293   ac_cv_type_uid_t=yes
37294 else
37295   ac_cv_type_uid_t=no
37296 fi
37297 rm -f conftest*
37298
37299 fi
37300 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37301 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
37302 if test $ac_cv_type_uid_t = no; then
37303
37304 cat >>confdefs.h <<\_ACEOF
37305 #define uid_t int
37306 _ACEOF
37307
37308
37309 cat >>confdefs.h <<\_ACEOF
37310 #define gid_t int
37311 _ACEOF
37312
37313 fi
37314
37315
37316 { echo "$as_me:$LINENO: checking for ssize_t" >&5
37317 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
37318 if test "${ac_cv_type_ssize_t+set}" = set; then
37319   echo $ECHO_N "(cached) $ECHO_C" >&6
37320 else
37321   cat >conftest.$ac_ext <<_ACEOF
37322 /* confdefs.h.  */
37323 _ACEOF
37324 cat confdefs.h >>conftest.$ac_ext
37325 cat >>conftest.$ac_ext <<_ACEOF
37326 /* end confdefs.h.  */
37327 $ac_includes_default
37328 typedef ssize_t ac__type_new_;
37329 int
37330 main ()
37331 {
37332 if ((ac__type_new_ *) 0)
37333   return 0;
37334 if (sizeof (ac__type_new_))
37335   return 0;
37336   ;
37337   return 0;
37338 }
37339 _ACEOF
37340 rm -f conftest.$ac_objext
37341 if { (ac_try="$ac_compile"
37342 case "(($ac_try" in
37343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37344   *) ac_try_echo=$ac_try;;
37345 esac
37346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37347   (eval "$ac_compile") 2>conftest.er1
37348   ac_status=$?
37349   grep -v '^ *+' conftest.er1 >conftest.err
37350   rm -f conftest.er1
37351   cat conftest.err >&5
37352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353   (exit $ac_status); } && {
37354          test -z "$ac_c_werror_flag" ||
37355          test ! -s conftest.err
37356        } && test -s conftest.$ac_objext; then
37357   ac_cv_type_ssize_t=yes
37358 else
37359   echo "$as_me: failed program was:" >&5
37360 sed 's/^/| /' conftest.$ac_ext >&5
37361
37362         ac_cv_type_ssize_t=no
37363 fi
37364
37365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37366 fi
37367 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37368 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
37369 if test $ac_cv_type_ssize_t = yes; then
37370
37371 cat >>confdefs.h <<_ACEOF
37372 #define HAVE_SSIZE_T 1
37373 _ACEOF
37374
37375
37376 fi
37377
37378
37379 ac_ext=cpp
37380 ac_cpp='$CXXCPP $CPPFLAGS'
37381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37384  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
37385 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
37386 if test "${wx_cv_size_t_is_uint+set}" = set; then
37387   echo $ECHO_N "(cached) $ECHO_C" >&6
37388 else
37389
37390                             cat >conftest.$ac_ext <<_ACEOF
37391 /* confdefs.h.  */
37392 _ACEOF
37393 cat confdefs.h >>conftest.$ac_ext
37394 cat >>conftest.$ac_ext <<_ACEOF
37395 /* end confdefs.h.  */
37396 #include <stddef.h>
37397 int
37398 main ()
37399 {
37400
37401             return 0; }
37402
37403             struct Foo { void foo(size_t); void foo(unsigned int); };
37404
37405             int bar() {
37406
37407   ;
37408   return 0;
37409 }
37410 _ACEOF
37411 rm -f conftest.$ac_objext
37412 if { (ac_try="$ac_compile"
37413 case "(($ac_try" in
37414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37415   *) ac_try_echo=$ac_try;;
37416 esac
37417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37418   (eval "$ac_compile") 2>conftest.er1
37419   ac_status=$?
37420   grep -v '^ *+' conftest.er1 >conftest.err
37421   rm -f conftest.er1
37422   cat conftest.err >&5
37423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424   (exit $ac_status); } && {
37425          test -z "$ac_cxx_werror_flag" ||
37426          test ! -s conftest.err
37427        } && test -s conftest.$ac_objext; then
37428   wx_cv_size_t_is_uint=no
37429 else
37430   echo "$as_me: failed program was:" >&5
37431 sed 's/^/| /' conftest.$ac_ext >&5
37432
37433         wx_cv_size_t_is_uint=yes
37434
37435 fi
37436
37437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37438
37439
37440 fi
37441 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
37442 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
37443
37444 if test "$wx_cv_size_t_is_uint" = "yes"; then
37445     cat >>confdefs.h <<\_ACEOF
37446 #define wxSIZE_T_IS_UINT 1
37447 _ACEOF
37448
37449 else
37450     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
37451 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
37452 if test "${wx_cv_size_t_is_ulong+set}" = set; then
37453   echo $ECHO_N "(cached) $ECHO_C" >&6
37454 else
37455   cat >conftest.$ac_ext <<_ACEOF
37456 /* confdefs.h.  */
37457 _ACEOF
37458 cat confdefs.h >>conftest.$ac_ext
37459 cat >>conftest.$ac_ext <<_ACEOF
37460 /* end confdefs.h.  */
37461 #include <stddef.h>
37462 int
37463 main ()
37464 {
37465
37466                 return 0; }
37467
37468                 struct Foo { void foo(size_t); void foo(unsigned long); };
37469
37470                 int bar() {
37471
37472   ;
37473   return 0;
37474 }
37475 _ACEOF
37476 rm -f conftest.$ac_objext
37477 if { (ac_try="$ac_compile"
37478 case "(($ac_try" in
37479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37480   *) ac_try_echo=$ac_try;;
37481 esac
37482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37483   (eval "$ac_compile") 2>conftest.er1
37484   ac_status=$?
37485   grep -v '^ *+' conftest.er1 >conftest.err
37486   rm -f conftest.er1
37487   cat conftest.err >&5
37488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489   (exit $ac_status); } && {
37490          test -z "$ac_cxx_werror_flag" ||
37491          test ! -s conftest.err
37492        } && test -s conftest.$ac_objext; then
37493   wx_cv_size_t_is_ulong=no
37494 else
37495   echo "$as_me: failed program was:" >&5
37496 sed 's/^/| /' conftest.$ac_ext >&5
37497
37498         wx_cv_size_t_is_ulong=yes
37499
37500 fi
37501
37502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37503
37504 fi
37505 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
37506 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
37507
37508     if test "$wx_cv_size_t_is_ulong" = "yes"; then
37509         cat >>confdefs.h <<\_ACEOF
37510 #define wxSIZE_T_IS_ULONG 1
37511 _ACEOF
37512
37513     fi
37514 fi
37515
37516 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
37517 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
37518 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
37519   echo $ECHO_N "(cached) $ECHO_C" >&6
37520 else
37521   cat >conftest.$ac_ext <<_ACEOF
37522 /* confdefs.h.  */
37523 _ACEOF
37524 cat confdefs.h >>conftest.$ac_ext
37525 cat >>conftest.$ac_ext <<_ACEOF
37526 /* end confdefs.h.  */
37527 #include <wchar.h>
37528 int
37529 main ()
37530 {
37531
37532             return 0; }
37533
37534             struct Foo { void foo(wchar_t);
37535                          void foo(unsigned short);
37536                          void foo(unsigned int);
37537                          void foo(unsigned long); };
37538
37539             int bar() {
37540
37541   ;
37542   return 0;
37543 }
37544 _ACEOF
37545 rm -f conftest.$ac_objext
37546 if { (ac_try="$ac_compile"
37547 case "(($ac_try" in
37548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37549   *) ac_try_echo=$ac_try;;
37550 esac
37551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37552   (eval "$ac_compile") 2>conftest.er1
37553   ac_status=$?
37554   grep -v '^ *+' conftest.er1 >conftest.err
37555   rm -f conftest.er1
37556   cat conftest.err >&5
37557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558   (exit $ac_status); } && {
37559          test -z "$ac_cxx_werror_flag" ||
37560          test ! -s conftest.err
37561        } && test -s conftest.$ac_objext; then
37562   wx_cv_wchar_t_is_separate_type=yes
37563 else
37564   echo "$as_me: failed program was:" >&5
37565 sed 's/^/| /' conftest.$ac_ext >&5
37566
37567         wx_cv_wchar_t_is_separate_type=no
37568
37569 fi
37570
37571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37572
37573 fi
37574 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
37575 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
37576
37577 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
37578     cat >>confdefs.h <<\_ACEOF
37579 #define wxWCHAR_T_IS_REAL_TYPE 1
37580 _ACEOF
37581
37582 else
37583     cat >>confdefs.h <<\_ACEOF
37584 #define wxWCHAR_T_IS_REAL_TYPE 0
37585 _ACEOF
37586
37587 fi
37588
37589 ac_ext=c
37590 ac_cpp='$CPP $CPPFLAGS'
37591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37594
37595
37596 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
37597 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
37598 if test "${wx_cv_struct_pw_gecos+set}" = set; then
37599   echo $ECHO_N "(cached) $ECHO_C" >&6
37600 else
37601
37602         cat >conftest.$ac_ext <<_ACEOF
37603 /* confdefs.h.  */
37604 _ACEOF
37605 cat confdefs.h >>conftest.$ac_ext
37606 cat >>conftest.$ac_ext <<_ACEOF
37607 /* end confdefs.h.  */
37608 #include <pwd.h>
37609 int
37610 main ()
37611 {
37612
37613                 char *p;
37614                 struct passwd *pw;
37615                 p = pw->pw_gecos;
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
37639                 wx_cv_struct_pw_gecos=yes
37640
37641 else
37642   echo "$as_me: failed program was:" >&5
37643 sed 's/^/| /' conftest.$ac_ext >&5
37644
37645
37646                 wx_cv_struct_pw_gecos=no
37647
37648
37649 fi
37650
37651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37652
37653
37654 fi
37655 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
37656 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
37657
37658 if test "$wx_cv_struct_pw_gecos" = "yes"; then
37659     cat >>confdefs.h <<\_ACEOF
37660 #define HAVE_PW_GECOS 1
37661 _ACEOF
37662
37663 fi
37664
37665
37666 if test "$wxUSE_WCHAR_T" = "yes"; then
37667     cat >>confdefs.h <<\_ACEOF
37668 #define wxUSE_WCHAR_T 1
37669 _ACEOF
37670
37671
37672         WCSLEN_FOUND=0
37673     WCHAR_LINK=
37674
37675 for ac_func in wcslen
37676 do
37677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37681   echo $ECHO_N "(cached) $ECHO_C" >&6
37682 else
37683   cat >conftest.$ac_ext <<_ACEOF
37684 /* confdefs.h.  */
37685 _ACEOF
37686 cat confdefs.h >>conftest.$ac_ext
37687 cat >>conftest.$ac_ext <<_ACEOF
37688 /* end confdefs.h.  */
37689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37691 #define $ac_func innocuous_$ac_func
37692
37693 /* System header to define __stub macros and hopefully few prototypes,
37694     which can conflict with char $ac_func (); below.
37695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37696     <limits.h> exists even on freestanding compilers.  */
37697
37698 #ifdef __STDC__
37699 # include <limits.h>
37700 #else
37701 # include <assert.h>
37702 #endif
37703
37704 #undef $ac_func
37705
37706 /* Override any GCC internal prototype to avoid an error.
37707    Use char because int might match the return type of a GCC
37708    builtin and then its argument prototype would still apply.  */
37709 #ifdef __cplusplus
37710 extern "C"
37711 #endif
37712 char $ac_func ();
37713 /* The GNU C library defines this for functions which it implements
37714     to always fail with ENOSYS.  Some functions are actually named
37715     something starting with __ and the normal name is an alias.  */
37716 #if defined __stub_$ac_func || defined __stub___$ac_func
37717 choke me
37718 #endif
37719
37720 int
37721 main ()
37722 {
37723 return $ac_func ();
37724   ;
37725   return 0;
37726 }
37727 _ACEOF
37728 rm -f conftest.$ac_objext conftest$ac_exeext
37729 if { (ac_try="$ac_link"
37730 case "(($ac_try" in
37731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37732   *) ac_try_echo=$ac_try;;
37733 esac
37734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37735   (eval "$ac_link") 2>conftest.er1
37736   ac_status=$?
37737   grep -v '^ *+' conftest.er1 >conftest.err
37738   rm -f conftest.er1
37739   cat conftest.err >&5
37740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741   (exit $ac_status); } && {
37742          test -z "$ac_c_werror_flag" ||
37743          test ! -s conftest.err
37744        } && test -s conftest$ac_exeext &&
37745        $as_test_x conftest$ac_exeext; then
37746   eval "$as_ac_var=yes"
37747 else
37748   echo "$as_me: failed program was:" >&5
37749 sed 's/^/| /' conftest.$ac_ext >&5
37750
37751         eval "$as_ac_var=no"
37752 fi
37753
37754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37755       conftest$ac_exeext conftest.$ac_ext
37756 fi
37757 ac_res=`eval echo '${'$as_ac_var'}'`
37758                { echo "$as_me:$LINENO: result: $ac_res" >&5
37759 echo "${ECHO_T}$ac_res" >&6; }
37760 if test `eval echo '${'$as_ac_var'}'` = yes; then
37761   cat >>confdefs.h <<_ACEOF
37762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37763 _ACEOF
37764  WCSLEN_FOUND=1
37765 fi
37766 done
37767
37768
37769     if test "$WCSLEN_FOUND" = 0; then
37770         if test "$TOOLKIT" = "MSW"; then
37771             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
37772 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
37773 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
37774   echo $ECHO_N "(cached) $ECHO_C" >&6
37775 else
37776   ac_check_lib_save_LIBS=$LIBS
37777 LIBS="-lmsvcrt  $LIBS"
37778 cat >conftest.$ac_ext <<_ACEOF
37779 /* confdefs.h.  */
37780 _ACEOF
37781 cat confdefs.h >>conftest.$ac_ext
37782 cat >>conftest.$ac_ext <<_ACEOF
37783 /* end confdefs.h.  */
37784
37785 /* Override any GCC internal prototype to avoid an error.
37786    Use char because int might match the return type of a GCC
37787    builtin and then its argument prototype would still apply.  */
37788 #ifdef __cplusplus
37789 extern "C"
37790 #endif
37791 char wcslen ();
37792 int
37793 main ()
37794 {
37795 return wcslen ();
37796   ;
37797   return 0;
37798 }
37799 _ACEOF
37800 rm -f conftest.$ac_objext conftest$ac_exeext
37801 if { (ac_try="$ac_link"
37802 case "(($ac_try" in
37803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37804   *) ac_try_echo=$ac_try;;
37805 esac
37806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37807   (eval "$ac_link") 2>conftest.er1
37808   ac_status=$?
37809   grep -v '^ *+' conftest.er1 >conftest.err
37810   rm -f conftest.er1
37811   cat conftest.err >&5
37812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37813   (exit $ac_status); } && {
37814          test -z "$ac_c_werror_flag" ||
37815          test ! -s conftest.err
37816        } && test -s conftest$ac_exeext &&
37817        $as_test_x conftest$ac_exeext; then
37818   ac_cv_lib_msvcrt_wcslen=yes
37819 else
37820   echo "$as_me: failed program was:" >&5
37821 sed 's/^/| /' conftest.$ac_ext >&5
37822
37823         ac_cv_lib_msvcrt_wcslen=no
37824 fi
37825
37826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37827       conftest$ac_exeext conftest.$ac_ext
37828 LIBS=$ac_check_lib_save_LIBS
37829 fi
37830 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
37831 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
37832 if test $ac_cv_lib_msvcrt_wcslen = yes; then
37833   WCHAR_OK=1
37834 fi
37835
37836         else
37837             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
37838 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
37839 if test "${ac_cv_lib_w_wcslen+set}" = set; then
37840   echo $ECHO_N "(cached) $ECHO_C" >&6
37841 else
37842   ac_check_lib_save_LIBS=$LIBS
37843 LIBS="-lw  $LIBS"
37844 cat >conftest.$ac_ext <<_ACEOF
37845 /* confdefs.h.  */
37846 _ACEOF
37847 cat confdefs.h >>conftest.$ac_ext
37848 cat >>conftest.$ac_ext <<_ACEOF
37849 /* end confdefs.h.  */
37850
37851 /* Override any GCC internal prototype to avoid an error.
37852    Use char because int might match the return type of a GCC
37853    builtin and then its argument prototype would still apply.  */
37854 #ifdef __cplusplus
37855 extern "C"
37856 #endif
37857 char wcslen ();
37858 int
37859 main ()
37860 {
37861 return wcslen ();
37862   ;
37863   return 0;
37864 }
37865 _ACEOF
37866 rm -f conftest.$ac_objext conftest$ac_exeext
37867 if { (ac_try="$ac_link"
37868 case "(($ac_try" in
37869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37870   *) ac_try_echo=$ac_try;;
37871 esac
37872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37873   (eval "$ac_link") 2>conftest.er1
37874   ac_status=$?
37875   grep -v '^ *+' conftest.er1 >conftest.err
37876   rm -f conftest.er1
37877   cat conftest.err >&5
37878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37879   (exit $ac_status); } && {
37880          test -z "$ac_c_werror_flag" ||
37881          test ! -s conftest.err
37882        } && test -s conftest$ac_exeext &&
37883        $as_test_x conftest$ac_exeext; then
37884   ac_cv_lib_w_wcslen=yes
37885 else
37886   echo "$as_me: failed program was:" >&5
37887 sed 's/^/| /' conftest.$ac_ext >&5
37888
37889         ac_cv_lib_w_wcslen=no
37890 fi
37891
37892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37893       conftest$ac_exeext conftest.$ac_ext
37894 LIBS=$ac_check_lib_save_LIBS
37895 fi
37896 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
37897 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
37898 if test $ac_cv_lib_w_wcslen = yes; then
37899
37900                             WCHAR_LINK=" -lw"
37901                             WCSLEN_FOUND=1
37902
37903 fi
37904
37905         fi
37906     fi
37907
37908     if test "$WCSLEN_FOUND" = 1; then
37909         cat >>confdefs.h <<\_ACEOF
37910 #define HAVE_WCSLEN 1
37911 _ACEOF
37912
37913     fi
37914
37915
37916 for ac_func in wcsdup
37917 do
37918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37922   echo $ECHO_N "(cached) $ECHO_C" >&6
37923 else
37924   cat >conftest.$ac_ext <<_ACEOF
37925 /* confdefs.h.  */
37926 _ACEOF
37927 cat confdefs.h >>conftest.$ac_ext
37928 cat >>conftest.$ac_ext <<_ACEOF
37929 /* end confdefs.h.  */
37930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37932 #define $ac_func innocuous_$ac_func
37933
37934 /* System header to define __stub macros and hopefully few prototypes,
37935     which can conflict with char $ac_func (); below.
37936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37937     <limits.h> exists even on freestanding compilers.  */
37938
37939 #ifdef __STDC__
37940 # include <limits.h>
37941 #else
37942 # include <assert.h>
37943 #endif
37944
37945 #undef $ac_func
37946
37947 /* Override any GCC internal prototype to avoid an error.
37948    Use char because int might match the return type of a GCC
37949    builtin and then its argument prototype would still apply.  */
37950 #ifdef __cplusplus
37951 extern "C"
37952 #endif
37953 char $ac_func ();
37954 /* The GNU C library defines this for functions which it implements
37955     to always fail with ENOSYS.  Some functions are actually named
37956     something starting with __ and the normal name is an alias.  */
37957 #if defined __stub_$ac_func || defined __stub___$ac_func
37958 choke me
37959 #endif
37960
37961 int
37962 main ()
37963 {
37964 return $ac_func ();
37965   ;
37966   return 0;
37967 }
37968 _ACEOF
37969 rm -f conftest.$ac_objext conftest$ac_exeext
37970 if { (ac_try="$ac_link"
37971 case "(($ac_try" in
37972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37973   *) ac_try_echo=$ac_try;;
37974 esac
37975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37976   (eval "$ac_link") 2>conftest.er1
37977   ac_status=$?
37978   grep -v '^ *+' conftest.er1 >conftest.err
37979   rm -f conftest.er1
37980   cat conftest.err >&5
37981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37982   (exit $ac_status); } && {
37983          test -z "$ac_c_werror_flag" ||
37984          test ! -s conftest.err
37985        } && test -s conftest$ac_exeext &&
37986        $as_test_x conftest$ac_exeext; then
37987   eval "$as_ac_var=yes"
37988 else
37989   echo "$as_me: failed program was:" >&5
37990 sed 's/^/| /' conftest.$ac_ext >&5
37991
37992         eval "$as_ac_var=no"
37993 fi
37994
37995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37996       conftest$ac_exeext conftest.$ac_ext
37997 fi
37998 ac_res=`eval echo '${'$as_ac_var'}'`
37999                { echo "$as_me:$LINENO: result: $ac_res" >&5
38000 echo "${ECHO_T}$ac_res" >&6; }
38001 if test `eval echo '${'$as_ac_var'}'` = yes; then
38002   cat >>confdefs.h <<_ACEOF
38003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38004 _ACEOF
38005
38006 fi
38007 done
38008
38009
38010                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
38011         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
38012     fi
38013
38014                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
38015 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
38016 if test "${ac_cv_type_mbstate_t+set}" = set; then
38017   echo $ECHO_N "(cached) $ECHO_C" >&6
38018 else
38019   cat >conftest.$ac_ext <<_ACEOF
38020 /* confdefs.h.  */
38021 _ACEOF
38022 cat confdefs.h >>conftest.$ac_ext
38023 cat >>conftest.$ac_ext <<_ACEOF
38024 /* end confdefs.h.  */
38025 #include <wchar.h>
38026
38027 typedef mbstate_t ac__type_new_;
38028 int
38029 main ()
38030 {
38031 if ((ac__type_new_ *) 0)
38032   return 0;
38033 if (sizeof (ac__type_new_))
38034   return 0;
38035   ;
38036   return 0;
38037 }
38038 _ACEOF
38039 rm -f conftest.$ac_objext
38040 if { (ac_try="$ac_compile"
38041 case "(($ac_try" in
38042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38043   *) ac_try_echo=$ac_try;;
38044 esac
38045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38046   (eval "$ac_compile") 2>conftest.er1
38047   ac_status=$?
38048   grep -v '^ *+' conftest.er1 >conftest.err
38049   rm -f conftest.er1
38050   cat conftest.err >&5
38051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38052   (exit $ac_status); } && {
38053          test -z "$ac_c_werror_flag" ||
38054          test ! -s conftest.err
38055        } && test -s conftest.$ac_objext; then
38056   ac_cv_type_mbstate_t=yes
38057 else
38058   echo "$as_me: failed program was:" >&5
38059 sed 's/^/| /' conftest.$ac_ext >&5
38060
38061         ac_cv_type_mbstate_t=no
38062 fi
38063
38064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38065 fi
38066 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
38067 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
38068 if test $ac_cv_type_mbstate_t = yes; then
38069
38070 cat >>confdefs.h <<_ACEOF
38071 #define HAVE_MBSTATE_T 1
38072 _ACEOF
38073
38074
38075 for ac_func in wcsrtombs
38076 do
38077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38081   echo $ECHO_N "(cached) $ECHO_C" >&6
38082 else
38083   cat >conftest.$ac_ext <<_ACEOF
38084 /* confdefs.h.  */
38085 _ACEOF
38086 cat confdefs.h >>conftest.$ac_ext
38087 cat >>conftest.$ac_ext <<_ACEOF
38088 /* end confdefs.h.  */
38089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38091 #define $ac_func innocuous_$ac_func
38092
38093 /* System header to define __stub macros and hopefully few prototypes,
38094     which can conflict with char $ac_func (); below.
38095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38096     <limits.h> exists even on freestanding compilers.  */
38097
38098 #ifdef __STDC__
38099 # include <limits.h>
38100 #else
38101 # include <assert.h>
38102 #endif
38103
38104 #undef $ac_func
38105
38106 /* Override any GCC internal prototype to avoid an error.
38107    Use char because int might match the return type of a GCC
38108    builtin and then its argument prototype would still apply.  */
38109 #ifdef __cplusplus
38110 extern "C"
38111 #endif
38112 char $ac_func ();
38113 /* The GNU C library defines this for functions which it implements
38114     to always fail with ENOSYS.  Some functions are actually named
38115     something starting with __ and the normal name is an alias.  */
38116 #if defined __stub_$ac_func || defined __stub___$ac_func
38117 choke me
38118 #endif
38119
38120 int
38121 main ()
38122 {
38123 return $ac_func ();
38124   ;
38125   return 0;
38126 }
38127 _ACEOF
38128 rm -f conftest.$ac_objext conftest$ac_exeext
38129 if { (ac_try="$ac_link"
38130 case "(($ac_try" in
38131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38132   *) ac_try_echo=$ac_try;;
38133 esac
38134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38135   (eval "$ac_link") 2>conftest.er1
38136   ac_status=$?
38137   grep -v '^ *+' conftest.er1 >conftest.err
38138   rm -f conftest.er1
38139   cat conftest.err >&5
38140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141   (exit $ac_status); } && {
38142          test -z "$ac_c_werror_flag" ||
38143          test ! -s conftest.err
38144        } && test -s conftest$ac_exeext &&
38145        $as_test_x conftest$ac_exeext; then
38146   eval "$as_ac_var=yes"
38147 else
38148   echo "$as_me: failed program was:" >&5
38149 sed 's/^/| /' conftest.$ac_ext >&5
38150
38151         eval "$as_ac_var=no"
38152 fi
38153
38154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38155       conftest$ac_exeext conftest.$ac_ext
38156 fi
38157 ac_res=`eval echo '${'$as_ac_var'}'`
38158                { echo "$as_me:$LINENO: result: $ac_res" >&5
38159 echo "${ECHO_T}$ac_res" >&6; }
38160 if test `eval echo '${'$as_ac_var'}'` = yes; then
38161   cat >>confdefs.h <<_ACEOF
38162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38163 _ACEOF
38164
38165 fi
38166 done
38167
38168 fi
38169
38170 else
38171     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
38172 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
38173 fi
38174
38175
38176
38177 for ac_func in snprintf vsnprintf
38178 do
38179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38183   echo $ECHO_N "(cached) $ECHO_C" >&6
38184 else
38185   cat >conftest.$ac_ext <<_ACEOF
38186 /* confdefs.h.  */
38187 _ACEOF
38188 cat confdefs.h >>conftest.$ac_ext
38189 cat >>conftest.$ac_ext <<_ACEOF
38190 /* end confdefs.h.  */
38191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38193 #define $ac_func innocuous_$ac_func
38194
38195 /* System header to define __stub macros and hopefully few prototypes,
38196     which can conflict with char $ac_func (); below.
38197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38198     <limits.h> exists even on freestanding compilers.  */
38199
38200 #ifdef __STDC__
38201 # include <limits.h>
38202 #else
38203 # include <assert.h>
38204 #endif
38205
38206 #undef $ac_func
38207
38208 /* Override any GCC internal prototype to avoid an error.
38209    Use char because int might match the return type of a GCC
38210    builtin and then its argument prototype would still apply.  */
38211 #ifdef __cplusplus
38212 extern "C"
38213 #endif
38214 char $ac_func ();
38215 /* The GNU C library defines this for functions which it implements
38216     to always fail with ENOSYS.  Some functions are actually named
38217     something starting with __ and the normal name is an alias.  */
38218 #if defined __stub_$ac_func || defined __stub___$ac_func
38219 choke me
38220 #endif
38221
38222 int
38223 main ()
38224 {
38225 return $ac_func ();
38226   ;
38227   return 0;
38228 }
38229 _ACEOF
38230 rm -f conftest.$ac_objext conftest$ac_exeext
38231 if { (ac_try="$ac_link"
38232 case "(($ac_try" in
38233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38234   *) ac_try_echo=$ac_try;;
38235 esac
38236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38237   (eval "$ac_link") 2>conftest.er1
38238   ac_status=$?
38239   grep -v '^ *+' conftest.er1 >conftest.err
38240   rm -f conftest.er1
38241   cat conftest.err >&5
38242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38243   (exit $ac_status); } && {
38244          test -z "$ac_c_werror_flag" ||
38245          test ! -s conftest.err
38246        } && test -s conftest$ac_exeext &&
38247        $as_test_x conftest$ac_exeext; then
38248   eval "$as_ac_var=yes"
38249 else
38250   echo "$as_me: failed program was:" >&5
38251 sed 's/^/| /' conftest.$ac_ext >&5
38252
38253         eval "$as_ac_var=no"
38254 fi
38255
38256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38257       conftest$ac_exeext conftest.$ac_ext
38258 fi
38259 ac_res=`eval echo '${'$as_ac_var'}'`
38260                { echo "$as_me:$LINENO: result: $ac_res" >&5
38261 echo "${ECHO_T}$ac_res" >&6; }
38262 if test `eval echo '${'$as_ac_var'}'` = yes; then
38263   cat >>confdefs.h <<_ACEOF
38264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38265 _ACEOF
38266
38267 fi
38268 done
38269
38270
38271 if test "$ac_cv_func_vsnprintf" = "yes"; then
38272         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
38273 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
38274 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
38275   echo $ECHO_N "(cached) $ECHO_C" >&6
38276 else
38277
38278                                                             cat >conftest.$ac_ext <<_ACEOF
38279 /* confdefs.h.  */
38280 _ACEOF
38281 cat confdefs.h >>conftest.$ac_ext
38282 cat >>conftest.$ac_ext <<_ACEOF
38283 /* end confdefs.h.  */
38284
38285                     #include <stdio.h>
38286                     #include <stdarg.h>
38287                     #ifdef __MSL__
38288                     #if __MSL__ >= 0x6000
38289                     namespace std {}
38290                     using namespace std;
38291                     #endif
38292                     #endif
38293
38294 int
38295 main ()
38296 {
38297
38298                     char *buf;
38299                     va_list ap;
38300                     vsnprintf(buf, 10u, "%s", ap);
38301
38302   ;
38303   return 0;
38304 }
38305 _ACEOF
38306 rm -f conftest.$ac_objext
38307 if { (ac_try="$ac_compile"
38308 case "(($ac_try" in
38309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38310   *) ac_try_echo=$ac_try;;
38311 esac
38312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38313   (eval "$ac_compile") 2>conftest.er1
38314   ac_status=$?
38315   grep -v '^ *+' conftest.er1 >conftest.err
38316   rm -f conftest.er1
38317   cat conftest.err >&5
38318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319   (exit $ac_status); } && {
38320          test -z "$ac_c_werror_flag" ||
38321          test ! -s conftest.err
38322        } && test -s conftest.$ac_objext; then
38323   wx_cv_func_vsnprintf_decl=yes
38324 else
38325   echo "$as_me: failed program was:" >&5
38326 sed 's/^/| /' conftest.$ac_ext >&5
38327
38328         wx_cv_func_vsnprintf_decl=no
38329
38330 fi
38331
38332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38333
38334
38335 fi
38336 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
38337 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
38338
38339     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
38340         cat >>confdefs.h <<\_ACEOF
38341 #define HAVE_VSNPRINTF_DECL 1
38342 _ACEOF
38343
38344
38345                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
38346 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
38347 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
38348   echo $ECHO_N "(cached) $ECHO_C" >&6
38349 else
38350
38351                 cat >conftest.$ac_ext <<_ACEOF
38352 /* confdefs.h.  */
38353 _ACEOF
38354 cat confdefs.h >>conftest.$ac_ext
38355 cat >>conftest.$ac_ext <<_ACEOF
38356 /* end confdefs.h.  */
38357
38358                         #include <stdio.h>
38359                         #include <stdarg.h>
38360                         #ifdef __MSL__
38361                         #if __MSL__ >= 0x6000
38362                         namespace std {}
38363                         using namespace std;
38364                         #endif
38365                         #endif
38366
38367 int
38368 main ()
38369 {
38370
38371                         char *buf;
38372                         va_list ap;
38373                         const char *fmt = "%s";
38374                         vsnprintf(buf, 10u, fmt, ap);
38375
38376   ;
38377   return 0;
38378 }
38379 _ACEOF
38380 rm -f conftest.$ac_objext
38381 if { (ac_try="$ac_compile"
38382 case "(($ac_try" in
38383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38384   *) ac_try_echo=$ac_try;;
38385 esac
38386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38387   (eval "$ac_compile") 2>conftest.er1
38388   ac_status=$?
38389   grep -v '^ *+' conftest.er1 >conftest.err
38390   rm -f conftest.er1
38391   cat conftest.err >&5
38392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393   (exit $ac_status); } && {
38394          test -z "$ac_c_werror_flag" ||
38395          test ! -s conftest.err
38396        } && test -s conftest.$ac_objext; then
38397   wx_cv_func_broken_vsnprintf_decl=no
38398 else
38399   echo "$as_me: failed program was:" >&5
38400 sed 's/^/| /' conftest.$ac_ext >&5
38401
38402         wx_cv_func_broken_vsnprintf_decl=yes
38403
38404 fi
38405
38406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38407
38408
38409 fi
38410 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
38411 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
38412
38413         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
38414             cat >>confdefs.h <<\_ACEOF
38415 #define HAVE_BROKEN_VSNPRINTF_DECL 1
38416 _ACEOF
38417
38418         fi
38419     fi
38420 fi
38421
38422 if test "$ac_cv_func_snprintf" = "yes"; then
38423     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
38424 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
38425 if test "${wx_cv_func_snprintf_decl+set}" = set; then
38426   echo $ECHO_N "(cached) $ECHO_C" >&6
38427 else
38428
38429             cat >conftest.$ac_ext <<_ACEOF
38430 /* confdefs.h.  */
38431 _ACEOF
38432 cat confdefs.h >>conftest.$ac_ext
38433 cat >>conftest.$ac_ext <<_ACEOF
38434 /* end confdefs.h.  */
38435
38436                     #include <stdio.h>
38437                     #include <stdarg.h>
38438                     #ifdef __MSL__
38439                     #if __MSL__ >= 0x6000
38440                     namespace std {}
38441                     using namespace std;
38442                     #endif
38443                     #endif
38444
38445 int
38446 main ()
38447 {
38448
38449                     char *buf;
38450                     snprintf(buf, 10u, "%s", "wx");
38451
38452   ;
38453   return 0;
38454 }
38455 _ACEOF
38456 rm -f conftest.$ac_objext
38457 if { (ac_try="$ac_compile"
38458 case "(($ac_try" in
38459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38460   *) ac_try_echo=$ac_try;;
38461 esac
38462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38463   (eval "$ac_compile") 2>conftest.er1
38464   ac_status=$?
38465   grep -v '^ *+' conftest.er1 >conftest.err
38466   rm -f conftest.er1
38467   cat conftest.err >&5
38468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38469   (exit $ac_status); } && {
38470          test -z "$ac_c_werror_flag" ||
38471          test ! -s conftest.err
38472        } && test -s conftest.$ac_objext; then
38473   wx_cv_func_snprintf_decl=yes
38474 else
38475   echo "$as_me: failed program was:" >&5
38476 sed 's/^/| /' conftest.$ac_ext >&5
38477
38478         wx_cv_func_snprintf_decl=no
38479
38480 fi
38481
38482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38483
38484
38485 fi
38486 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
38487 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
38488
38489     if test "$wx_cv_func_snprintf_decl" = "yes"; then
38490         cat >>confdefs.h <<\_ACEOF
38491 #define HAVE_SNPRINTF_DECL 1
38492 _ACEOF
38493
38494
38495                         { echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
38496 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6; }
38497 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
38498   echo $ECHO_N "(cached) $ECHO_C" >&6
38499 else
38500
38501                 cat >conftest.$ac_ext <<_ACEOF
38502 /* confdefs.h.  */
38503 _ACEOF
38504 cat confdefs.h >>conftest.$ac_ext
38505 cat >>conftest.$ac_ext <<_ACEOF
38506 /* end confdefs.h.  */
38507
38508                         #include <stdio.h>
38509                         #include <stdarg.h>
38510                         #ifdef __MSL__
38511                         #if __MSL__ >= 0x6000
38512                         namespace std {}
38513                         using namespace std;
38514                         #endif
38515                         #endif
38516
38517 int
38518 main ()
38519 {
38520
38521                         char *buf;
38522                         const char *fmt = "%s";
38523                         snprintf(buf, 10u, fmt, "wx");
38524
38525   ;
38526   return 0;
38527 }
38528 _ACEOF
38529 rm -f conftest.$ac_objext
38530 if { (ac_try="$ac_compile"
38531 case "(($ac_try" in
38532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38533   *) ac_try_echo=$ac_try;;
38534 esac
38535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38536   (eval "$ac_compile") 2>conftest.er1
38537   ac_status=$?
38538   grep -v '^ *+' conftest.er1 >conftest.err
38539   rm -f conftest.er1
38540   cat conftest.err >&5
38541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38542   (exit $ac_status); } && {
38543          test -z "$ac_c_werror_flag" ||
38544          test ! -s conftest.err
38545        } && test -s conftest.$ac_objext; then
38546   wx_cv_func_broken_snprintf_decl=no
38547 else
38548   echo "$as_me: failed program was:" >&5
38549 sed 's/^/| /' conftest.$ac_ext >&5
38550
38551         wx_cv_func_broken_snprintf_decl=yes
38552
38553 fi
38554
38555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38556
38557
38558 fi
38559 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
38560 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6; }
38561
38562         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
38563             cat >>confdefs.h <<\_ACEOF
38564 #define HAVE_BROKEN_SNPRINTF_DECL 1
38565 _ACEOF
38566
38567         fi
38568     fi
38569
38570     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
38571
38572                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
38573 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
38574 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
38575   echo $ECHO_N "(cached) $ECHO_C" >&6
38576 else
38577
38578                 if test "$cross_compiling" = yes; then
38579
38580                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
38581 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
38582 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
38583 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
38584                         wx_cv_func_snprintf_pos_params=no
38585
38586
38587 else
38588   cat >conftest.$ac_ext <<_ACEOF
38589 /* confdefs.h.  */
38590 _ACEOF
38591 cat confdefs.h >>conftest.$ac_ext
38592 cat >>conftest.$ac_ext <<_ACEOF
38593 /* end confdefs.h.  */
38594
38595                         #include <stdio.h>
38596
38597                         int main (void)
38598                         {
38599                             char buffer[128];
38600                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
38601                             if (strcmp ("2 3 1", buffer) == 0)
38602                                 exit (0);
38603                             exit (1);
38604                         }
38605
38606 _ACEOF
38607 rm -f conftest$ac_exeext
38608 if { (ac_try="$ac_link"
38609 case "(($ac_try" in
38610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38611   *) ac_try_echo=$ac_try;;
38612 esac
38613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38614   (eval "$ac_link") 2>&5
38615   ac_status=$?
38616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38618   { (case "(($ac_try" in
38619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38620   *) ac_try_echo=$ac_try;;
38621 esac
38622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38623   (eval "$ac_try") 2>&5
38624   ac_status=$?
38625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38626   (exit $ac_status); }; }; then
38627   wx_cv_func_snprintf_pos_params=no
38628 else
38629   echo "$as_me: program exited with status $ac_status" >&5
38630 echo "$as_me: failed program was:" >&5
38631 sed 's/^/| /' conftest.$ac_ext >&5
38632
38633 ( exit $ac_status )
38634 wx_cv_func_snprintf_pos_params=yes
38635 fi
38636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38637 fi
38638
38639
38640
38641
38642 fi
38643 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
38644 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
38645
38646         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
38647             cat >>confdefs.h <<\_ACEOF
38648 #define HAVE_UNIX98_PRINTF 1
38649 _ACEOF
38650
38651         fi
38652     fi
38653 fi
38654
38655 if test "$wxUSE_UNICODE" = yes; then
38656
38657
38658 for ac_func in swprintf
38659 do
38660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38664   echo $ECHO_N "(cached) $ECHO_C" >&6
38665 else
38666   cat >conftest.$ac_ext <<_ACEOF
38667 /* confdefs.h.  */
38668 _ACEOF
38669 cat confdefs.h >>conftest.$ac_ext
38670 cat >>conftest.$ac_ext <<_ACEOF
38671 /* end confdefs.h.  */
38672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38674 #define $ac_func innocuous_$ac_func
38675
38676 /* System header to define __stub macros and hopefully few prototypes,
38677     which can conflict with char $ac_func (); below.
38678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38679     <limits.h> exists even on freestanding compilers.  */
38680
38681 #ifdef __STDC__
38682 # include <limits.h>
38683 #else
38684 # include <assert.h>
38685 #endif
38686
38687 #undef $ac_func
38688
38689 /* Override any GCC internal prototype to avoid an error.
38690    Use char because int might match the return type of a GCC
38691    builtin and then its argument prototype would still apply.  */
38692 #ifdef __cplusplus
38693 extern "C"
38694 #endif
38695 char $ac_func ();
38696 /* The GNU C library defines this for functions which it implements
38697     to always fail with ENOSYS.  Some functions are actually named
38698     something starting with __ and the normal name is an alias.  */
38699 #if defined __stub_$ac_func || defined __stub___$ac_func
38700 choke me
38701 #endif
38702
38703 int
38704 main ()
38705 {
38706 return $ac_func ();
38707   ;
38708   return 0;
38709 }
38710 _ACEOF
38711 rm -f conftest.$ac_objext conftest$ac_exeext
38712 if { (ac_try="$ac_link"
38713 case "(($ac_try" in
38714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38715   *) ac_try_echo=$ac_try;;
38716 esac
38717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38718   (eval "$ac_link") 2>conftest.er1
38719   ac_status=$?
38720   grep -v '^ *+' conftest.er1 >conftest.err
38721   rm -f conftest.er1
38722   cat conftest.err >&5
38723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38724   (exit $ac_status); } && {
38725          test -z "$ac_c_werror_flag" ||
38726          test ! -s conftest.err
38727        } && test -s conftest$ac_exeext &&
38728        $as_test_x conftest$ac_exeext; then
38729   eval "$as_ac_var=yes"
38730 else
38731   echo "$as_me: failed program was:" >&5
38732 sed 's/^/| /' conftest.$ac_ext >&5
38733
38734         eval "$as_ac_var=no"
38735 fi
38736
38737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38738       conftest$ac_exeext conftest.$ac_ext
38739 fi
38740 ac_res=`eval echo '${'$as_ac_var'}'`
38741                { echo "$as_me:$LINENO: result: $ac_res" >&5
38742 echo "${ECHO_T}$ac_res" >&6; }
38743 if test `eval echo '${'$as_ac_var'}'` = yes; then
38744   cat >>confdefs.h <<_ACEOF
38745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38746 _ACEOF
38747
38748 fi
38749 done
38750
38751
38752     if test "$ac_cv_func_swprintf" = "yes"; then
38753         { echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
38754 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6; }
38755 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
38756   echo $ECHO_N "(cached) $ECHO_C" >&6
38757 else
38758
38759                 cat >conftest.$ac_ext <<_ACEOF
38760 /* confdefs.h.  */
38761 _ACEOF
38762 cat confdefs.h >>conftest.$ac_ext
38763 cat >>conftest.$ac_ext <<_ACEOF
38764 /* end confdefs.h.  */
38765
38766                         #include <stdio.h>
38767                         #include <stdarg.h>
38768                         #include <wchar.h>
38769
38770 int
38771 main ()
38772 {
38773
38774                         wchar_t *buf;
38775                         const wchar_t *fmt = L"test";
38776                         swprintf(buf, 10u, fmt);
38777
38778   ;
38779   return 0;
38780 }
38781 _ACEOF
38782 rm -f conftest.$ac_objext
38783 if { (ac_try="$ac_compile"
38784 case "(($ac_try" in
38785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38786   *) ac_try_echo=$ac_try;;
38787 esac
38788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38789   (eval "$ac_compile") 2>conftest.er1
38790   ac_status=$?
38791   grep -v '^ *+' conftest.er1 >conftest.err
38792   rm -f conftest.er1
38793   cat conftest.err >&5
38794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38795   (exit $ac_status); } && {
38796          test -z "$ac_c_werror_flag" ||
38797          test ! -s conftest.err
38798        } && test -s conftest.$ac_objext; then
38799   wx_cv_func_broken_swprintf_decl=no
38800 else
38801   echo "$as_me: failed program was:" >&5
38802 sed 's/^/| /' conftest.$ac_ext >&5
38803
38804         wx_cv_func_broken_swprintf_decl=yes
38805
38806 fi
38807
38808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38809
38810
38811 fi
38812 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
38813 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6; }
38814
38815         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
38816             cat >>confdefs.h <<\_ACEOF
38817 #define HAVE_BROKEN_SWPRINTF_DECL 1
38818 _ACEOF
38819
38820         fi
38821     fi
38822
38823             wchar_headers="#include <stdio.h>
38824 #include <wchar.h>"
38825     case "${host}" in
38826         *-*-solaris2* )
38827
38828 for ac_header in widec.h
38829 do
38830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38834   echo $ECHO_N "(cached) $ECHO_C" >&6
38835 else
38836   cat >conftest.$ac_ext <<_ACEOF
38837 /* confdefs.h.  */
38838 _ACEOF
38839 cat confdefs.h >>conftest.$ac_ext
38840 cat >>conftest.$ac_ext <<_ACEOF
38841 /* end confdefs.h.  */
38842 $ac_includes_default
38843
38844 #include <$ac_header>
38845 _ACEOF
38846 rm -f conftest.$ac_objext
38847 if { (ac_try="$ac_compile"
38848 case "(($ac_try" in
38849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38850   *) ac_try_echo=$ac_try;;
38851 esac
38852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38853   (eval "$ac_compile") 2>conftest.er1
38854   ac_status=$?
38855   grep -v '^ *+' conftest.er1 >conftest.err
38856   rm -f conftest.er1
38857   cat conftest.err >&5
38858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38859   (exit $ac_status); } && {
38860          test -z "$ac_c_werror_flag" ||
38861          test ! -s conftest.err
38862        } && test -s conftest.$ac_objext; then
38863   eval "$as_ac_Header=yes"
38864 else
38865   echo "$as_me: failed program was:" >&5
38866 sed 's/^/| /' conftest.$ac_ext >&5
38867
38868         eval "$as_ac_Header=no"
38869 fi
38870
38871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38872 fi
38873 ac_res=`eval echo '${'$as_ac_Header'}'`
38874                { echo "$as_me:$LINENO: result: $ac_res" >&5
38875 echo "${ECHO_T}$ac_res" >&6; }
38876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38877   cat >>confdefs.h <<_ACEOF
38878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38879 _ACEOF
38880
38881 fi
38882
38883 done
38884
38885             if test "$ac_cv_header_widec_h" = "yes"; then
38886                 wchar_headers="$wchar_headers
38887 #include <widec.h>"
38888             fi
38889     esac
38890
38891
38892   for wx_func in wputc wputchar putws fputws wprintf vswprintf
38893   do
38894     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38895 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38896 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38897   echo $ECHO_N "(cached) $ECHO_C" >&6
38898 else
38899
38900         cat >conftest.$ac_ext <<_ACEOF
38901
38902             /* confdefs.h.  */
38903 _ACEOF
38904 cat confdefs.h >>conftest.$ac_ext
38905 cat >>conftest.$ac_ext <<_ACEOF
38906 /* end confdefs.h.  */
38907
38908                 $wchar_headers
38909                 $ac_includes_default
38910
38911 int
38912 main ()
38913 {
38914
38915                 #ifndef $wx_func
38916                   &$wx_func;
38917                 #endif
38918
38919
38920   ;
38921   return 0;
38922 }
38923
38924 _ACEOF
38925 rm -f conftest.$ac_objext conftest$ac_exeext
38926 if { (ac_try="$ac_link"
38927 case "(($ac_try" in
38928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38929   *) ac_try_echo=$ac_try;;
38930 esac
38931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38932   (eval "$ac_link") 2>conftest.er1
38933   ac_status=$?
38934   grep -v '^ *+' conftest.er1 >conftest.err
38935   rm -f conftest.er1
38936   cat conftest.err >&5
38937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38938   (exit $ac_status); } && {
38939          test -z "$ac_c_werror_flag" ||
38940          test ! -s conftest.err
38941        } && test -s conftest$ac_exeext &&
38942        $as_test_x conftest$ac_exeext; then
38943   eval wx_cv_func_$wx_func=yes
38944 else
38945   echo "$as_me: failed program was:" >&5
38946 sed 's/^/| /' conftest.$ac_ext >&5
38947
38948         eval wx_cv_func_$wx_func=no
38949 fi
38950
38951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38952       conftest$ac_exeext conftest.$ac_ext
38953
38954 fi
38955 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38956                { echo "$as_me:$LINENO: result: $ac_res" >&5
38957 echo "${ECHO_T}$ac_res" >&6; }
38958
38959     if eval test \$wx_cv_func_$wx_func = yes
38960     then
38961       cat >>confdefs.h <<_ACEOF
38962 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
38963 _ACEOF
38964
38965
38966     else
38967       :
38968
38969     fi
38970   done
38971
38972
38973                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
38974 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
38975     cat >conftest.$ac_ext <<_ACEOF
38976 /* confdefs.h.  */
38977 _ACEOF
38978 cat confdefs.h >>conftest.$ac_ext
38979 cat >>conftest.$ac_ext <<_ACEOF
38980 /* end confdefs.h.  */
38981 #include <wchar.h>
38982 int
38983 main ()
38984 {
38985 &_vsnwprintf;
38986   ;
38987   return 0;
38988 }
38989 _ACEOF
38990 rm -f conftest.$ac_objext
38991 if { (ac_try="$ac_compile"
38992 case "(($ac_try" in
38993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38994   *) ac_try_echo=$ac_try;;
38995 esac
38996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38997   (eval "$ac_compile") 2>conftest.er1
38998   ac_status=$?
38999   grep -v '^ *+' conftest.er1 >conftest.err
39000   rm -f conftest.er1
39001   cat conftest.err >&5
39002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39003   (exit $ac_status); } && {
39004          test -z "$ac_c_werror_flag" ||
39005          test ! -s conftest.err
39006        } && test -s conftest.$ac_objext; then
39007   { echo "$as_me:$LINENO: result: yes" >&5
39008 echo "${ECHO_T}yes" >&6; }
39009                     cat >>confdefs.h <<\_ACEOF
39010 #define HAVE__VSNWPRINTF 1
39011 _ACEOF
39012
39013 else
39014   echo "$as_me: failed program was:" >&5
39015 sed 's/^/| /' conftest.$ac_ext >&5
39016
39017         { echo "$as_me:$LINENO: result: no" >&5
39018 echo "${ECHO_T}no" >&6; }
39019 fi
39020
39021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
39022 fi
39023
39024 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
39025
39026   for wx_func in fnmatch
39027   do
39028     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39029 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39030 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39031   echo $ECHO_N "(cached) $ECHO_C" >&6
39032 else
39033
39034         cat >conftest.$ac_ext <<_ACEOF
39035
39036             /* confdefs.h.  */
39037 _ACEOF
39038 cat confdefs.h >>conftest.$ac_ext
39039 cat >>conftest.$ac_ext <<_ACEOF
39040 /* end confdefs.h.  */
39041
39042                 #include <fnmatch.h>
39043                 $ac_includes_default
39044
39045 int
39046 main ()
39047 {
39048
39049                 #ifndef $wx_func
39050                   &$wx_func;
39051                 #endif
39052
39053
39054   ;
39055   return 0;
39056 }
39057
39058 _ACEOF
39059 rm -f conftest.$ac_objext conftest$ac_exeext
39060 if { (ac_try="$ac_link"
39061 case "(($ac_try" in
39062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39063   *) ac_try_echo=$ac_try;;
39064 esac
39065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39066   (eval "$ac_link") 2>conftest.er1
39067   ac_status=$?
39068   grep -v '^ *+' conftest.er1 >conftest.err
39069   rm -f conftest.er1
39070   cat conftest.err >&5
39071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072   (exit $ac_status); } && {
39073          test -z "$ac_c_werror_flag" ||
39074          test ! -s conftest.err
39075        } && test -s conftest$ac_exeext &&
39076        $as_test_x conftest$ac_exeext; then
39077   eval wx_cv_func_$wx_func=yes
39078 else
39079   echo "$as_me: failed program was:" >&5
39080 sed 's/^/| /' conftest.$ac_ext >&5
39081
39082         eval wx_cv_func_$wx_func=no
39083 fi
39084
39085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39086       conftest$ac_exeext conftest.$ac_ext
39087
39088 fi
39089 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39090                { echo "$as_me:$LINENO: result: $ac_res" >&5
39091 echo "${ECHO_T}$ac_res" >&6; }
39092
39093     if eval test \$wx_cv_func_$wx_func = yes
39094     then
39095       cat >>confdefs.h <<_ACEOF
39096 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39097 _ACEOF
39098
39099
39100     else
39101       :
39102
39103     fi
39104   done
39105
39106 fi
39107
39108 if test "$wxUSE_FILE" = "yes"; then
39109
39110   for wx_func in fsync
39111   do
39112     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39113 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39114 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39115   echo $ECHO_N "(cached) $ECHO_C" >&6
39116 else
39117
39118         cat >conftest.$ac_ext <<_ACEOF
39119
39120             /* confdefs.h.  */
39121 _ACEOF
39122 cat confdefs.h >>conftest.$ac_ext
39123 cat >>conftest.$ac_ext <<_ACEOF
39124 /* end confdefs.h.  */
39125
39126
39127                 $ac_includes_default
39128
39129 int
39130 main ()
39131 {
39132
39133                 #ifndef $wx_func
39134                   &$wx_func;
39135                 #endif
39136
39137
39138   ;
39139   return 0;
39140 }
39141
39142 _ACEOF
39143 rm -f conftest.$ac_objext conftest$ac_exeext
39144 if { (ac_try="$ac_link"
39145 case "(($ac_try" in
39146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39147   *) ac_try_echo=$ac_try;;
39148 esac
39149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39150   (eval "$ac_link") 2>conftest.er1
39151   ac_status=$?
39152   grep -v '^ *+' conftest.er1 >conftest.err
39153   rm -f conftest.er1
39154   cat conftest.err >&5
39155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156   (exit $ac_status); } && {
39157          test -z "$ac_c_werror_flag" ||
39158          test ! -s conftest.err
39159        } && test -s conftest$ac_exeext &&
39160        $as_test_x conftest$ac_exeext; then
39161   eval wx_cv_func_$wx_func=yes
39162 else
39163   echo "$as_me: failed program was:" >&5
39164 sed 's/^/| /' conftest.$ac_ext >&5
39165
39166         eval wx_cv_func_$wx_func=no
39167 fi
39168
39169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39170       conftest$ac_exeext conftest.$ac_ext
39171
39172 fi
39173 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39174                { echo "$as_me:$LINENO: result: $ac_res" >&5
39175 echo "${ECHO_T}$ac_res" >&6; }
39176
39177     if eval test \$wx_cv_func_$wx_func = yes
39178     then
39179       cat >>confdefs.h <<_ACEOF
39180 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39181 _ACEOF
39182
39183
39184     else
39185       :
39186
39187     fi
39188   done
39189
39190 fi
39191
39192 ac_ext=cpp
39193 ac_cpp='$CXXCPP $CPPFLAGS'
39194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39197
39198
39199   for wx_func in round
39200   do
39201     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39202 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39203 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39204   echo $ECHO_N "(cached) $ECHO_C" >&6
39205 else
39206
39207         cat >conftest.$ac_ext <<_ACEOF
39208
39209             /* confdefs.h.  */
39210 _ACEOF
39211 cat confdefs.h >>conftest.$ac_ext
39212 cat >>conftest.$ac_ext <<_ACEOF
39213 /* end confdefs.h.  */
39214
39215                 #include <math.h>
39216                 $ac_includes_default
39217
39218 int
39219 main ()
39220 {
39221
39222                 #ifndef $wx_func
39223                   &$wx_func;
39224                 #endif
39225
39226
39227   ;
39228   return 0;
39229 }
39230
39231 _ACEOF
39232 rm -f conftest.$ac_objext conftest$ac_exeext
39233 if { (ac_try="$ac_link"
39234 case "(($ac_try" in
39235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39236   *) ac_try_echo=$ac_try;;
39237 esac
39238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39239   (eval "$ac_link") 2>conftest.er1
39240   ac_status=$?
39241   grep -v '^ *+' conftest.er1 >conftest.err
39242   rm -f conftest.er1
39243   cat conftest.err >&5
39244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245   (exit $ac_status); } && {
39246          test -z "$ac_cxx_werror_flag" ||
39247          test ! -s conftest.err
39248        } && test -s conftest$ac_exeext &&
39249        $as_test_x conftest$ac_exeext; then
39250   eval wx_cv_func_$wx_func=yes
39251 else
39252   echo "$as_me: failed program was:" >&5
39253 sed 's/^/| /' conftest.$ac_ext >&5
39254
39255         eval wx_cv_func_$wx_func=no
39256 fi
39257
39258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39259       conftest$ac_exeext conftest.$ac_ext
39260
39261 fi
39262 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39263                { echo "$as_me:$LINENO: result: $ac_res" >&5
39264 echo "${ECHO_T}$ac_res" >&6; }
39265
39266     if eval test \$wx_cv_func_$wx_func = yes
39267     then
39268       cat >>confdefs.h <<_ACEOF
39269 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39270 _ACEOF
39271
39272
39273     else
39274       :
39275
39276     fi
39277   done
39278
39279 ac_ext=c
39280 ac_cpp='$CPP $CPPFLAGS'
39281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39284
39285
39286 if test "$TOOLKIT" != "MSW"; then
39287
39288
39289
39290
39291
39292 # Check whether --with-libiconv-prefix was given.
39293 if test "${with_libiconv_prefix+set}" = set; then
39294   withval=$with_libiconv_prefix;
39295     for dir in `echo "$withval" | tr : ' '`; do
39296       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
39297       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
39298     done
39299
39300 fi
39301
39302
39303   { echo "$as_me:$LINENO: checking for iconv" >&5
39304 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
39305 if test "${am_cv_func_iconv+set}" = set; then
39306   echo $ECHO_N "(cached) $ECHO_C" >&6
39307 else
39308
39309     am_cv_func_iconv="no, consider installing GNU libiconv"
39310     am_cv_lib_iconv=no
39311     cat >conftest.$ac_ext <<_ACEOF
39312 /* confdefs.h.  */
39313 _ACEOF
39314 cat confdefs.h >>conftest.$ac_ext
39315 cat >>conftest.$ac_ext <<_ACEOF
39316 /* end confdefs.h.  */
39317 #include <stdlib.h>
39318 #include <iconv.h>
39319 int
39320 main ()
39321 {
39322 iconv_t cd = iconv_open("","");
39323        iconv(cd,NULL,NULL,NULL,NULL);
39324        iconv_close(cd);
39325   ;
39326   return 0;
39327 }
39328 _ACEOF
39329 rm -f conftest.$ac_objext conftest$ac_exeext
39330 if { (ac_try="$ac_link"
39331 case "(($ac_try" in
39332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39333   *) ac_try_echo=$ac_try;;
39334 esac
39335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39336   (eval "$ac_link") 2>conftest.er1
39337   ac_status=$?
39338   grep -v '^ *+' conftest.er1 >conftest.err
39339   rm -f conftest.er1
39340   cat conftest.err >&5
39341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39342   (exit $ac_status); } && {
39343          test -z "$ac_c_werror_flag" ||
39344          test ! -s conftest.err
39345        } && test -s conftest$ac_exeext &&
39346        $as_test_x conftest$ac_exeext; then
39347   am_cv_func_iconv=yes
39348 else
39349   echo "$as_me: failed program was:" >&5
39350 sed 's/^/| /' conftest.$ac_ext >&5
39351
39352
39353 fi
39354
39355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39356       conftest$ac_exeext conftest.$ac_ext
39357     if test "$am_cv_func_iconv" != yes; then
39358       am_save_LIBS="$LIBS"
39359       LIBS="$LIBS -liconv"
39360       cat >conftest.$ac_ext <<_ACEOF
39361 /* confdefs.h.  */
39362 _ACEOF
39363 cat confdefs.h >>conftest.$ac_ext
39364 cat >>conftest.$ac_ext <<_ACEOF
39365 /* end confdefs.h.  */
39366 #include <stdlib.h>
39367 #include <iconv.h>
39368 int
39369 main ()
39370 {
39371 iconv_t cd = iconv_open("","");
39372          iconv(cd,NULL,NULL,NULL,NULL);
39373          iconv_close(cd);
39374   ;
39375   return 0;
39376 }
39377 _ACEOF
39378 rm -f conftest.$ac_objext conftest$ac_exeext
39379 if { (ac_try="$ac_link"
39380 case "(($ac_try" in
39381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39382   *) ac_try_echo=$ac_try;;
39383 esac
39384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39385   (eval "$ac_link") 2>conftest.er1
39386   ac_status=$?
39387   grep -v '^ *+' conftest.er1 >conftest.err
39388   rm -f conftest.er1
39389   cat conftest.err >&5
39390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39391   (exit $ac_status); } && {
39392          test -z "$ac_c_werror_flag" ||
39393          test ! -s conftest.err
39394        } && test -s conftest$ac_exeext &&
39395        $as_test_x conftest$ac_exeext; then
39396   am_cv_lib_iconv=yes
39397         am_cv_func_iconv=yes
39398 else
39399   echo "$as_me: failed program was:" >&5
39400 sed 's/^/| /' conftest.$ac_ext >&5
39401
39402
39403 fi
39404
39405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39406       conftest$ac_exeext conftest.$ac_ext
39407       LIBS="$am_save_LIBS"
39408     fi
39409
39410 fi
39411 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
39412 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
39413   if test "$am_cv_func_iconv" = yes; then
39414
39415 cat >>confdefs.h <<\_ACEOF
39416 #define HAVE_ICONV 1
39417 _ACEOF
39418
39419     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
39420 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
39421 if test "${wx_cv_func_iconv_const+set}" = set; then
39422   echo $ECHO_N "(cached) $ECHO_C" >&6
39423 else
39424   cat >conftest.$ac_ext <<_ACEOF
39425 /* confdefs.h.  */
39426 _ACEOF
39427 cat confdefs.h >>conftest.$ac_ext
39428 cat >>conftest.$ac_ext <<_ACEOF
39429 /* end confdefs.h.  */
39430
39431 #include <stdlib.h>
39432 #include <iconv.h>
39433 extern
39434 #ifdef __cplusplus
39435 "C"
39436 #endif
39437 #if defined(__STDC__) || defined(__cplusplus)
39438 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
39439 #else
39440 size_t iconv();
39441 #endif
39442
39443 int
39444 main ()
39445 {
39446
39447   ;
39448   return 0;
39449 }
39450 _ACEOF
39451 rm -f conftest.$ac_objext
39452 if { (ac_try="$ac_compile"
39453 case "(($ac_try" in
39454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39455   *) ac_try_echo=$ac_try;;
39456 esac
39457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39458   (eval "$ac_compile") 2>conftest.er1
39459   ac_status=$?
39460   grep -v '^ *+' conftest.er1 >conftest.err
39461   rm -f conftest.er1
39462   cat conftest.err >&5
39463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39464   (exit $ac_status); } && {
39465          test -z "$ac_c_werror_flag" ||
39466          test ! -s conftest.err
39467        } && test -s conftest.$ac_objext; then
39468   wx_cv_func_iconv_const="no"
39469 else
39470   echo "$as_me: failed program was:" >&5
39471 sed 's/^/| /' conftest.$ac_ext >&5
39472
39473         wx_cv_func_iconv_const="yes"
39474
39475 fi
39476
39477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39478
39479 fi
39480 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
39481 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
39482
39483     iconv_const=
39484     if test "x$wx_cv_func_iconv_const" = "xyes"; then
39485         iconv_const="const"
39486     fi
39487
39488
39489 cat >>confdefs.h <<_ACEOF
39490 #define ICONV_CONST $iconv_const
39491 _ACEOF
39492
39493   fi
39494   LIBICONV=
39495   if test "$am_cv_lib_iconv" = yes; then
39496     LIBICONV="-liconv"
39497   fi
39498
39499
39500 LIBS="$LIBICONV $LIBS"
39501
39502 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39503
39504 for ac_func in sigaction
39505 do
39506 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39507 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39509 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39510   echo $ECHO_N "(cached) $ECHO_C" >&6
39511 else
39512   cat >conftest.$ac_ext <<_ACEOF
39513 /* confdefs.h.  */
39514 _ACEOF
39515 cat confdefs.h >>conftest.$ac_ext
39516 cat >>conftest.$ac_ext <<_ACEOF
39517 /* end confdefs.h.  */
39518 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39520 #define $ac_func innocuous_$ac_func
39521
39522 /* System header to define __stub macros and hopefully few prototypes,
39523     which can conflict with char $ac_func (); below.
39524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39525     <limits.h> exists even on freestanding compilers.  */
39526
39527 #ifdef __STDC__
39528 # include <limits.h>
39529 #else
39530 # include <assert.h>
39531 #endif
39532
39533 #undef $ac_func
39534
39535 /* Override any GCC internal prototype to avoid an error.
39536    Use char because int might match the return type of a GCC
39537    builtin and then its argument prototype would still apply.  */
39538 #ifdef __cplusplus
39539 extern "C"
39540 #endif
39541 char $ac_func ();
39542 /* The GNU C library defines this for functions which it implements
39543     to always fail with ENOSYS.  Some functions are actually named
39544     something starting with __ and the normal name is an alias.  */
39545 #if defined __stub_$ac_func || defined __stub___$ac_func
39546 choke me
39547 #endif
39548
39549 int
39550 main ()
39551 {
39552 return $ac_func ();
39553   ;
39554   return 0;
39555 }
39556 _ACEOF
39557 rm -f conftest.$ac_objext conftest$ac_exeext
39558 if { (ac_try="$ac_link"
39559 case "(($ac_try" in
39560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39561   *) ac_try_echo=$ac_try;;
39562 esac
39563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39564   (eval "$ac_link") 2>conftest.er1
39565   ac_status=$?
39566   grep -v '^ *+' conftest.er1 >conftest.err
39567   rm -f conftest.er1
39568   cat conftest.err >&5
39569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39570   (exit $ac_status); } && {
39571          test -z "$ac_c_werror_flag" ||
39572          test ! -s conftest.err
39573        } && test -s conftest$ac_exeext &&
39574        $as_test_x conftest$ac_exeext; then
39575   eval "$as_ac_var=yes"
39576 else
39577   echo "$as_me: failed program was:" >&5
39578 sed 's/^/| /' conftest.$ac_ext >&5
39579
39580         eval "$as_ac_var=no"
39581 fi
39582
39583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39584       conftest$ac_exeext conftest.$ac_ext
39585 fi
39586 ac_res=`eval echo '${'$as_ac_var'}'`
39587                { echo "$as_me:$LINENO: result: $ac_res" >&5
39588 echo "${ECHO_T}$ac_res" >&6; }
39589 if test `eval echo '${'$as_ac_var'}'` = yes; then
39590   cat >>confdefs.h <<_ACEOF
39591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39592 _ACEOF
39593
39594 fi
39595 done
39596
39597
39598     if test "$ac_cv_func_sigaction" = "no"; then
39599         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
39600 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
39601         wxUSE_ON_FATAL_EXCEPTION=no
39602     fi
39603
39604     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39605       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
39606 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
39607 if test "${wx_cv_type_sa_handler+set}" = set; then
39608   echo $ECHO_N "(cached) $ECHO_C" >&6
39609 else
39610
39611                 ac_ext=cpp
39612 ac_cpp='$CXXCPP $CPPFLAGS'
39613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39616
39617         cat >conftest.$ac_ext <<_ACEOF
39618 /* confdefs.h.  */
39619 _ACEOF
39620 cat confdefs.h >>conftest.$ac_ext
39621 cat >>conftest.$ac_ext <<_ACEOF
39622 /* end confdefs.h.  */
39623 #include <signal.h>
39624 int
39625 main ()
39626 {
39627
39628                         extern void testSigHandler(int);
39629
39630                         struct sigaction sa;
39631                         sa.sa_handler = testSigHandler;
39632
39633   ;
39634   return 0;
39635 }
39636 _ACEOF
39637 rm -f conftest.$ac_objext
39638 if { (ac_try="$ac_compile"
39639 case "(($ac_try" in
39640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39641   *) ac_try_echo=$ac_try;;
39642 esac
39643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39644   (eval "$ac_compile") 2>conftest.er1
39645   ac_status=$?
39646   grep -v '^ *+' conftest.er1 >conftest.err
39647   rm -f conftest.er1
39648   cat conftest.err >&5
39649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39650   (exit $ac_status); } && {
39651          test -z "$ac_cxx_werror_flag" ||
39652          test ! -s conftest.err
39653        } && test -s conftest.$ac_objext; then
39654
39655                         wx_cv_type_sa_handler=int
39656
39657 else
39658   echo "$as_me: failed program was:" >&5
39659 sed 's/^/| /' conftest.$ac_ext >&5
39660
39661
39662                         wx_cv_type_sa_handler=void
39663
39664 fi
39665
39666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39667         ac_ext=c
39668 ac_cpp='$CPP $CPPFLAGS'
39669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39672
39673
39674 fi
39675 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
39676 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
39677
39678       cat >>confdefs.h <<_ACEOF
39679 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
39680 _ACEOF
39681
39682     fi
39683 fi
39684
39685 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39686     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
39687 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
39688 if test "${wx_cv_func_backtrace+set}" = set; then
39689   echo $ECHO_N "(cached) $ECHO_C" >&6
39690 else
39691
39692             ac_ext=cpp
39693 ac_cpp='$CXXCPP $CPPFLAGS'
39694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39697
39698             cat >conftest.$ac_ext <<_ACEOF
39699 /* confdefs.h.  */
39700 _ACEOF
39701 cat confdefs.h >>conftest.$ac_ext
39702 cat >>conftest.$ac_ext <<_ACEOF
39703 /* end confdefs.h.  */
39704 #include <execinfo.h>
39705 int
39706 main ()
39707 {
39708
39709                     void *trace[1];
39710                     char **messages;
39711
39712                     backtrace(trace, 1);
39713                     messages = backtrace_symbols(trace, 1);
39714
39715   ;
39716   return 0;
39717 }
39718 _ACEOF
39719 rm -f conftest.$ac_objext
39720 if { (ac_try="$ac_compile"
39721 case "(($ac_try" in
39722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39723   *) ac_try_echo=$ac_try;;
39724 esac
39725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39726   (eval "$ac_compile") 2>conftest.er1
39727   ac_status=$?
39728   grep -v '^ *+' conftest.er1 >conftest.err
39729   rm -f conftest.er1
39730   cat conftest.err >&5
39731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39732   (exit $ac_status); } && {
39733          test -z "$ac_cxx_werror_flag" ||
39734          test ! -s conftest.err
39735        } && test -s conftest.$ac_objext; then
39736   wx_cv_func_backtrace=yes
39737 else
39738   echo "$as_me: failed program was:" >&5
39739 sed 's/^/| /' conftest.$ac_ext >&5
39740
39741         wx_cv_func_backtrace=no
39742
39743 fi
39744
39745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39746             ac_ext=c
39747 ac_cpp='$CPP $CPPFLAGS'
39748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39751
39752
39753
39754 fi
39755 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
39756 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
39757
39758
39759     if test "$wx_cv_func_backtrace" = "no"; then
39760         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
39761 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
39762         wxUSE_STACKWALKER=no
39763     else
39764         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
39765 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
39766 if test "${wx_cv_func_cxa_demangle+set}" = set; then
39767   echo $ECHO_N "(cached) $ECHO_C" >&6
39768 else
39769
39770                 ac_ext=cpp
39771 ac_cpp='$CXXCPP $CPPFLAGS'
39772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39775
39776                 cat >conftest.$ac_ext <<_ACEOF
39777 /* confdefs.h.  */
39778 _ACEOF
39779 cat confdefs.h >>conftest.$ac_ext
39780 cat >>conftest.$ac_ext <<_ACEOF
39781 /* end confdefs.h.  */
39782 #include <cxxabi.h>
39783 int
39784 main ()
39785 {
39786
39787                         int rc;
39788                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
39789
39790   ;
39791   return 0;
39792 }
39793 _ACEOF
39794 rm -f conftest.$ac_objext conftest$ac_exeext
39795 if { (ac_try="$ac_link"
39796 case "(($ac_try" in
39797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39798   *) ac_try_echo=$ac_try;;
39799 esac
39800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39801   (eval "$ac_link") 2>conftest.er1
39802   ac_status=$?
39803   grep -v '^ *+' conftest.er1 >conftest.err
39804   rm -f conftest.er1
39805   cat conftest.err >&5
39806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39807   (exit $ac_status); } && {
39808          test -z "$ac_cxx_werror_flag" ||
39809          test ! -s conftest.err
39810        } && test -s conftest$ac_exeext &&
39811        $as_test_x conftest$ac_exeext; then
39812   wx_cv_func_cxa_demangle=yes
39813 else
39814   echo "$as_me: failed program was:" >&5
39815 sed 's/^/| /' conftest.$ac_ext >&5
39816
39817         wx_cv_func_cxa_demangle=no
39818
39819 fi
39820
39821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39822       conftest$ac_exeext conftest.$ac_ext
39823                 ac_ext=c
39824 ac_cpp='$CPP $CPPFLAGS'
39825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39828
39829
39830
39831 fi
39832 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
39833 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
39834
39835         if test "$wx_cv_func_cxa_demangle" = "yes"; then
39836             cat >>confdefs.h <<\_ACEOF
39837 #define HAVE_CXA_DEMANGLE 1
39838 _ACEOF
39839
39840         fi
39841     fi
39842 fi
39843
39844 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
39845     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
39846 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
39847     wxUSE_STACKWALKER=no
39848 fi
39849
39850
39851
39852
39853 for ac_func in mkstemp mktemp
39854 do
39855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39859   echo $ECHO_N "(cached) $ECHO_C" >&6
39860 else
39861   cat >conftest.$ac_ext <<_ACEOF
39862 /* confdefs.h.  */
39863 _ACEOF
39864 cat confdefs.h >>conftest.$ac_ext
39865 cat >>conftest.$ac_ext <<_ACEOF
39866 /* end confdefs.h.  */
39867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39869 #define $ac_func innocuous_$ac_func
39870
39871 /* System header to define __stub macros and hopefully few prototypes,
39872     which can conflict with char $ac_func (); below.
39873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39874     <limits.h> exists even on freestanding compilers.  */
39875
39876 #ifdef __STDC__
39877 # include <limits.h>
39878 #else
39879 # include <assert.h>
39880 #endif
39881
39882 #undef $ac_func
39883
39884 /* Override any GCC internal prototype to avoid an error.
39885    Use char because int might match the return type of a GCC
39886    builtin and then its argument prototype would still apply.  */
39887 #ifdef __cplusplus
39888 extern "C"
39889 #endif
39890 char $ac_func ();
39891 /* The GNU C library defines this for functions which it implements
39892     to always fail with ENOSYS.  Some functions are actually named
39893     something starting with __ and the normal name is an alias.  */
39894 #if defined __stub_$ac_func || defined __stub___$ac_func
39895 choke me
39896 #endif
39897
39898 int
39899 main ()
39900 {
39901 return $ac_func ();
39902   ;
39903   return 0;
39904 }
39905 _ACEOF
39906 rm -f conftest.$ac_objext conftest$ac_exeext
39907 if { (ac_try="$ac_link"
39908 case "(($ac_try" in
39909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39910   *) ac_try_echo=$ac_try;;
39911 esac
39912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39913   (eval "$ac_link") 2>conftest.er1
39914   ac_status=$?
39915   grep -v '^ *+' conftest.er1 >conftest.err
39916   rm -f conftest.er1
39917   cat conftest.err >&5
39918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39919   (exit $ac_status); } && {
39920          test -z "$ac_c_werror_flag" ||
39921          test ! -s conftest.err
39922        } && test -s conftest$ac_exeext &&
39923        $as_test_x conftest$ac_exeext; then
39924   eval "$as_ac_var=yes"
39925 else
39926   echo "$as_me: failed program was:" >&5
39927 sed 's/^/| /' conftest.$ac_ext >&5
39928
39929         eval "$as_ac_var=no"
39930 fi
39931
39932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39933       conftest$ac_exeext conftest.$ac_ext
39934 fi
39935 ac_res=`eval echo '${'$as_ac_var'}'`
39936                { echo "$as_me:$LINENO: result: $ac_res" >&5
39937 echo "${ECHO_T}$ac_res" >&6; }
39938 if test `eval echo '${'$as_ac_var'}'` = yes; then
39939   cat >>confdefs.h <<_ACEOF
39940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39941 _ACEOF
39942  break
39943 fi
39944 done
39945
39946
39947 { echo "$as_me:$LINENO: checking for statfs" >&5
39948 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
39949 if test "${wx_cv_func_statfs+set}" = set; then
39950   echo $ECHO_N "(cached) $ECHO_C" >&6
39951 else
39952   cat >conftest.$ac_ext <<_ACEOF
39953 /* confdefs.h.  */
39954 _ACEOF
39955 cat confdefs.h >>conftest.$ac_ext
39956 cat >>conftest.$ac_ext <<_ACEOF
39957 /* end confdefs.h.  */
39958
39959              #if defined(__BSD__)
39960              #include <sys/param.h>
39961              #include <sys/mount.h>
39962              #else
39963              #include <sys/vfs.h>
39964              #endif
39965
39966 int
39967 main ()
39968 {
39969
39970              long l;
39971              struct statfs fs;
39972              statfs("/", &fs);
39973              l = fs.f_bsize;
39974              l += fs.f_blocks;
39975              l += fs.f_bavail;
39976
39977   ;
39978   return 0;
39979 }
39980 _ACEOF
39981 rm -f conftest.$ac_objext
39982 if { (ac_try="$ac_compile"
39983 case "(($ac_try" in
39984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39985   *) ac_try_echo=$ac_try;;
39986 esac
39987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39988   (eval "$ac_compile") 2>conftest.er1
39989   ac_status=$?
39990   grep -v '^ *+' conftest.er1 >conftest.err
39991   rm -f conftest.er1
39992   cat conftest.err >&5
39993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39994   (exit $ac_status); } && {
39995          test -z "$ac_c_werror_flag" ||
39996          test ! -s conftest.err
39997        } && test -s conftest.$ac_objext; then
39998   wx_cv_func_statfs=yes
39999 else
40000   echo "$as_me: failed program was:" >&5
40001 sed 's/^/| /' conftest.$ac_ext >&5
40002
40003         wx_cv_func_statfs=no
40004
40005 fi
40006
40007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40008
40009 fi
40010 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
40011 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
40012
40013 if test "$wx_cv_func_statfs" = "yes"; then
40014         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
40015 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
40016 if test "${wx_cv_func_statfs_decl+set}" = set; then
40017   echo $ECHO_N "(cached) $ECHO_C" >&6
40018 else
40019   ac_ext=cpp
40020 ac_cpp='$CXXCPP $CPPFLAGS'
40021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40024
40025         cat >conftest.$ac_ext <<_ACEOF
40026 /* confdefs.h.  */
40027 _ACEOF
40028 cat confdefs.h >>conftest.$ac_ext
40029 cat >>conftest.$ac_ext <<_ACEOF
40030 /* end confdefs.h.  */
40031
40032                  #if defined(__BSD__)
40033                  #include <sys/param.h>
40034                  #include <sys/mount.h>
40035                  #else
40036                  #include <sys/vfs.h>
40037                  #endif
40038
40039 int
40040 main ()
40041 {
40042
40043                 struct statfs fs;
40044                 statfs("", &fs);
40045
40046   ;
40047   return 0;
40048 }
40049 _ACEOF
40050 rm -f conftest.$ac_objext
40051 if { (ac_try="$ac_compile"
40052 case "(($ac_try" in
40053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40054   *) ac_try_echo=$ac_try;;
40055 esac
40056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40057   (eval "$ac_compile") 2>conftest.er1
40058   ac_status=$?
40059   grep -v '^ *+' conftest.er1 >conftest.err
40060   rm -f conftest.er1
40061   cat conftest.err >&5
40062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40063   (exit $ac_status); } && {
40064          test -z "$ac_cxx_werror_flag" ||
40065          test ! -s conftest.err
40066        } && test -s conftest.$ac_objext; then
40067   wx_cv_func_statfs_decl=yes
40068 else
40069   echo "$as_me: failed program was:" >&5
40070 sed 's/^/| /' conftest.$ac_ext >&5
40071
40072         wx_cv_func_statfs_decl=no
40073
40074 fi
40075
40076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40077         ac_ext=c
40078 ac_cpp='$CPP $CPPFLAGS'
40079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40082
40083
40084 fi
40085 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
40086 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
40087
40088     if test "$wx_cv_func_statfs_decl" = "yes"; then
40089         cat >>confdefs.h <<\_ACEOF
40090 #define HAVE_STATFS_DECL 1
40091 _ACEOF
40092
40093     fi
40094
40095     wx_cv_type_statvfs_t="struct statfs"
40096     cat >>confdefs.h <<\_ACEOF
40097 #define HAVE_STATFS 1
40098 _ACEOF
40099
40100 else
40101     { echo "$as_me:$LINENO: checking for statvfs" >&5
40102 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
40103 if test "${wx_cv_func_statvfs+set}" = set; then
40104   echo $ECHO_N "(cached) $ECHO_C" >&6
40105 else
40106   cat >conftest.$ac_ext <<_ACEOF
40107 /* confdefs.h.  */
40108 _ACEOF
40109 cat confdefs.h >>conftest.$ac_ext
40110 cat >>conftest.$ac_ext <<_ACEOF
40111 /* end confdefs.h.  */
40112
40113                 #include <stddef.h>
40114                 #include <sys/statvfs.h>
40115
40116 int
40117 main ()
40118 {
40119
40120                 statvfs("/", NULL);
40121
40122   ;
40123   return 0;
40124 }
40125 _ACEOF
40126 rm -f conftest.$ac_objext
40127 if { (ac_try="$ac_compile"
40128 case "(($ac_try" in
40129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40130   *) ac_try_echo=$ac_try;;
40131 esac
40132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40133   (eval "$ac_compile") 2>conftest.er1
40134   ac_status=$?
40135   grep -v '^ *+' conftest.er1 >conftest.err
40136   rm -f conftest.er1
40137   cat conftest.err >&5
40138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40139   (exit $ac_status); } && {
40140          test -z "$ac_c_werror_flag" ||
40141          test ! -s conftest.err
40142        } && test -s conftest.$ac_objext; then
40143   wx_cv_func_statvfs=yes
40144 else
40145   echo "$as_me: failed program was:" >&5
40146 sed 's/^/| /' conftest.$ac_ext >&5
40147
40148         wx_cv_func_statvfs=no
40149
40150 fi
40151
40152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40153
40154 fi
40155 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
40156 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
40157
40158     if test "$wx_cv_func_statvfs" = "yes"; then
40159                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
40160 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
40161 if test "${wx_cv_type_statvfs_t+set}" = set; then
40162   echo $ECHO_N "(cached) $ECHO_C" >&6
40163 else
40164   ac_ext=cpp
40165 ac_cpp='$CXXCPP $CPPFLAGS'
40166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40169
40170             cat >conftest.$ac_ext <<_ACEOF
40171 /* confdefs.h.  */
40172 _ACEOF
40173 cat confdefs.h >>conftest.$ac_ext
40174 cat >>conftest.$ac_ext <<_ACEOF
40175 /* end confdefs.h.  */
40176
40177                     #include <sys/statvfs.h>
40178
40179 int
40180 main ()
40181 {
40182
40183                     long l;
40184                     statvfs_t fs;
40185                     statvfs("/", &fs);
40186                     l = fs.f_bsize;
40187                     l += fs.f_blocks;
40188                     l += fs.f_bavail;
40189
40190   ;
40191   return 0;
40192 }
40193 _ACEOF
40194 rm -f conftest.$ac_objext
40195 if { (ac_try="$ac_compile"
40196 case "(($ac_try" in
40197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40198   *) ac_try_echo=$ac_try;;
40199 esac
40200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40201   (eval "$ac_compile") 2>conftest.er1
40202   ac_status=$?
40203   grep -v '^ *+' conftest.er1 >conftest.err
40204   rm -f conftest.er1
40205   cat conftest.err >&5
40206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40207   (exit $ac_status); } && {
40208          test -z "$ac_cxx_werror_flag" ||
40209          test ! -s conftest.err
40210        } && test -s conftest.$ac_objext; then
40211   wx_cv_type_statvfs_t=statvfs_t
40212 else
40213   echo "$as_me: failed program was:" >&5
40214 sed 's/^/| /' conftest.$ac_ext >&5
40215
40216
40217                     cat >conftest.$ac_ext <<_ACEOF
40218 /* confdefs.h.  */
40219 _ACEOF
40220 cat confdefs.h >>conftest.$ac_ext
40221 cat >>conftest.$ac_ext <<_ACEOF
40222 /* end confdefs.h.  */
40223
40224                             #include <sys/statvfs.h>
40225
40226 int
40227 main ()
40228 {
40229
40230                             long l;
40231                             struct statvfs fs;
40232                             statvfs("/", &fs);
40233                             l = fs.f_bsize;
40234                             l += fs.f_blocks;
40235                             l += fs.f_bavail;
40236
40237   ;
40238   return 0;
40239 }
40240 _ACEOF
40241 rm -f conftest.$ac_objext
40242 if { (ac_try="$ac_compile"
40243 case "(($ac_try" in
40244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40245   *) ac_try_echo=$ac_try;;
40246 esac
40247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40248   (eval "$ac_compile") 2>conftest.er1
40249   ac_status=$?
40250   grep -v '^ *+' conftest.er1 >conftest.err
40251   rm -f conftest.er1
40252   cat conftest.err >&5
40253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254   (exit $ac_status); } && {
40255          test -z "$ac_cxx_werror_flag" ||
40256          test ! -s conftest.err
40257        } && test -s conftest.$ac_objext; then
40258   wx_cv_type_statvfs_t="struct statvfs"
40259 else
40260   echo "$as_me: failed program was:" >&5
40261 sed 's/^/| /' conftest.$ac_ext >&5
40262
40263         wx_cv_type_statvfs_t="unknown"
40264
40265 fi
40266
40267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40268
40269
40270 fi
40271
40272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40273             ac_ext=c
40274 ac_cpp='$CPP $CPPFLAGS'
40275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40278
40279
40280 fi
40281 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
40282 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
40283
40284         if test "$wx_cv_type_statvfs_t" != "unknown"; then
40285             cat >>confdefs.h <<\_ACEOF
40286 #define HAVE_STATVFS 1
40287 _ACEOF
40288
40289         fi
40290     else
40291                 wx_cv_type_statvfs_t="unknown"
40292     fi
40293 fi
40294
40295 if test "$wx_cv_type_statvfs_t" != "unknown"; then
40296     cat >>confdefs.h <<_ACEOF
40297 #define WX_STATFS_T $wx_cv_type_statvfs_t
40298 _ACEOF
40299
40300 else
40301     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
40302 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
40303 fi
40304
40305 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
40306
40307
40308 for ac_func in fcntl flock
40309 do
40310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40311 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40314   echo $ECHO_N "(cached) $ECHO_C" >&6
40315 else
40316   cat >conftest.$ac_ext <<_ACEOF
40317 /* confdefs.h.  */
40318 _ACEOF
40319 cat confdefs.h >>conftest.$ac_ext
40320 cat >>conftest.$ac_ext <<_ACEOF
40321 /* end confdefs.h.  */
40322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40324 #define $ac_func innocuous_$ac_func
40325
40326 /* System header to define __stub macros and hopefully few prototypes,
40327     which can conflict with char $ac_func (); below.
40328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40329     <limits.h> exists even on freestanding compilers.  */
40330
40331 #ifdef __STDC__
40332 # include <limits.h>
40333 #else
40334 # include <assert.h>
40335 #endif
40336
40337 #undef $ac_func
40338
40339 /* Override any GCC internal prototype to avoid an error.
40340    Use char because int might match the return type of a GCC
40341    builtin and then its argument prototype would still apply.  */
40342 #ifdef __cplusplus
40343 extern "C"
40344 #endif
40345 char $ac_func ();
40346 /* The GNU C library defines this for functions which it implements
40347     to always fail with ENOSYS.  Some functions are actually named
40348     something starting with __ and the normal name is an alias.  */
40349 #if defined __stub_$ac_func || defined __stub___$ac_func
40350 choke me
40351 #endif
40352
40353 int
40354 main ()
40355 {
40356 return $ac_func ();
40357   ;
40358   return 0;
40359 }
40360 _ACEOF
40361 rm -f conftest.$ac_objext conftest$ac_exeext
40362 if { (ac_try="$ac_link"
40363 case "(($ac_try" in
40364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40365   *) ac_try_echo=$ac_try;;
40366 esac
40367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40368   (eval "$ac_link") 2>conftest.er1
40369   ac_status=$?
40370   grep -v '^ *+' conftest.er1 >conftest.err
40371   rm -f conftest.er1
40372   cat conftest.err >&5
40373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40374   (exit $ac_status); } && {
40375          test -z "$ac_c_werror_flag" ||
40376          test ! -s conftest.err
40377        } && test -s conftest$ac_exeext &&
40378        $as_test_x conftest$ac_exeext; then
40379   eval "$as_ac_var=yes"
40380 else
40381   echo "$as_me: failed program was:" >&5
40382 sed 's/^/| /' conftest.$ac_ext >&5
40383
40384         eval "$as_ac_var=no"
40385 fi
40386
40387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40388       conftest$ac_exeext conftest.$ac_ext
40389 fi
40390 ac_res=`eval echo '${'$as_ac_var'}'`
40391                { echo "$as_me:$LINENO: result: $ac_res" >&5
40392 echo "${ECHO_T}$ac_res" >&6; }
40393 if test `eval echo '${'$as_ac_var'}'` = yes; then
40394   cat >>confdefs.h <<_ACEOF
40395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40396 _ACEOF
40397  break
40398 fi
40399 done
40400
40401
40402     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
40403         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
40404 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
40405         wxUSE_SNGLINST_CHECKER=no
40406     fi
40407 fi
40408
40409
40410 for ac_func in timegm
40411 do
40412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40416   echo $ECHO_N "(cached) $ECHO_C" >&6
40417 else
40418   cat >conftest.$ac_ext <<_ACEOF
40419 /* confdefs.h.  */
40420 _ACEOF
40421 cat confdefs.h >>conftest.$ac_ext
40422 cat >>conftest.$ac_ext <<_ACEOF
40423 /* end confdefs.h.  */
40424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40425    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40426 #define $ac_func innocuous_$ac_func
40427
40428 /* System header to define __stub macros and hopefully few prototypes,
40429     which can conflict with char $ac_func (); below.
40430     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40431     <limits.h> exists even on freestanding compilers.  */
40432
40433 #ifdef __STDC__
40434 # include <limits.h>
40435 #else
40436 # include <assert.h>
40437 #endif
40438
40439 #undef $ac_func
40440
40441 /* Override any GCC internal prototype to avoid an error.
40442    Use char because int might match the return type of a GCC
40443    builtin and then its argument prototype would still apply.  */
40444 #ifdef __cplusplus
40445 extern "C"
40446 #endif
40447 char $ac_func ();
40448 /* The GNU C library defines this for functions which it implements
40449     to always fail with ENOSYS.  Some functions are actually named
40450     something starting with __ and the normal name is an alias.  */
40451 #if defined __stub_$ac_func || defined __stub___$ac_func
40452 choke me
40453 #endif
40454
40455 int
40456 main ()
40457 {
40458 return $ac_func ();
40459   ;
40460   return 0;
40461 }
40462 _ACEOF
40463 rm -f conftest.$ac_objext conftest$ac_exeext
40464 if { (ac_try="$ac_link"
40465 case "(($ac_try" in
40466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40467   *) ac_try_echo=$ac_try;;
40468 esac
40469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40470   (eval "$ac_link") 2>conftest.er1
40471   ac_status=$?
40472   grep -v '^ *+' conftest.er1 >conftest.err
40473   rm -f conftest.er1
40474   cat conftest.err >&5
40475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40476   (exit $ac_status); } && {
40477          test -z "$ac_c_werror_flag" ||
40478          test ! -s conftest.err
40479        } && test -s conftest$ac_exeext &&
40480        $as_test_x conftest$ac_exeext; then
40481   eval "$as_ac_var=yes"
40482 else
40483   echo "$as_me: failed program was:" >&5
40484 sed 's/^/| /' conftest.$ac_ext >&5
40485
40486         eval "$as_ac_var=no"
40487 fi
40488
40489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40490       conftest$ac_exeext conftest.$ac_ext
40491 fi
40492 ac_res=`eval echo '${'$as_ac_var'}'`
40493                { echo "$as_me:$LINENO: result: $ac_res" >&5
40494 echo "${ECHO_T}$ac_res" >&6; }
40495 if test `eval echo '${'$as_ac_var'}'` = yes; then
40496   cat >>confdefs.h <<_ACEOF
40497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40498 _ACEOF
40499
40500 fi
40501 done
40502
40503
40504
40505
40506 for ac_func in setenv putenv
40507 do
40508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40512   echo $ECHO_N "(cached) $ECHO_C" >&6
40513 else
40514   cat >conftest.$ac_ext <<_ACEOF
40515 /* confdefs.h.  */
40516 _ACEOF
40517 cat confdefs.h >>conftest.$ac_ext
40518 cat >>conftest.$ac_ext <<_ACEOF
40519 /* end confdefs.h.  */
40520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40522 #define $ac_func innocuous_$ac_func
40523
40524 /* System header to define __stub macros and hopefully few prototypes,
40525     which can conflict with char $ac_func (); below.
40526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40527     <limits.h> exists even on freestanding compilers.  */
40528
40529 #ifdef __STDC__
40530 # include <limits.h>
40531 #else
40532 # include <assert.h>
40533 #endif
40534
40535 #undef $ac_func
40536
40537 /* Override any GCC internal prototype to avoid an error.
40538    Use char because int might match the return type of a GCC
40539    builtin and then its argument prototype would still apply.  */
40540 #ifdef __cplusplus
40541 extern "C"
40542 #endif
40543 char $ac_func ();
40544 /* The GNU C library defines this for functions which it implements
40545     to always fail with ENOSYS.  Some functions are actually named
40546     something starting with __ and the normal name is an alias.  */
40547 #if defined __stub_$ac_func || defined __stub___$ac_func
40548 choke me
40549 #endif
40550
40551 int
40552 main ()
40553 {
40554 return $ac_func ();
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   eval "$as_ac_var=yes"
40578 else
40579   echo "$as_me: failed program was:" >&5
40580 sed 's/^/| /' conftest.$ac_ext >&5
40581
40582         eval "$as_ac_var=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 fi
40588 ac_res=`eval echo '${'$as_ac_var'}'`
40589                { echo "$as_me:$LINENO: result: $ac_res" >&5
40590 echo "${ECHO_T}$ac_res" >&6; }
40591 if test `eval echo '${'$as_ac_var'}'` = yes; then
40592   cat >>confdefs.h <<_ACEOF
40593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40594 _ACEOF
40595  break
40596 fi
40597 done
40598
40599
40600 HAVE_SOME_SLEEP_FUNC=0
40601 if test "$USE_BEOS" = 1; then
40602             cat >>confdefs.h <<\_ACEOF
40603 #define HAVE_SLEEP 1
40604 _ACEOF
40605
40606     HAVE_SOME_SLEEP_FUNC=1
40607 fi
40608
40609 if test "$USE_DARWIN" = 1; then
40610             cat >>confdefs.h <<\_ACEOF
40611 #define HAVE_USLEEP 1
40612 _ACEOF
40613
40614     HAVE_SOME_SLEEP_FUNC=1
40615 fi
40616
40617 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
40618         POSIX4_LINK=
40619
40620 for ac_func in nanosleep
40621 do
40622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40626   echo $ECHO_N "(cached) $ECHO_C" >&6
40627 else
40628   cat >conftest.$ac_ext <<_ACEOF
40629 /* confdefs.h.  */
40630 _ACEOF
40631 cat confdefs.h >>conftest.$ac_ext
40632 cat >>conftest.$ac_ext <<_ACEOF
40633 /* end confdefs.h.  */
40634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40635    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40636 #define $ac_func innocuous_$ac_func
40637
40638 /* System header to define __stub macros and hopefully few prototypes,
40639     which can conflict with char $ac_func (); below.
40640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40641     <limits.h> exists even on freestanding compilers.  */
40642
40643 #ifdef __STDC__
40644 # include <limits.h>
40645 #else
40646 # include <assert.h>
40647 #endif
40648
40649 #undef $ac_func
40650
40651 /* Override any GCC internal prototype to avoid an error.
40652    Use char because int might match the return type of a GCC
40653    builtin and then its argument prototype would still apply.  */
40654 #ifdef __cplusplus
40655 extern "C"
40656 #endif
40657 char $ac_func ();
40658 /* The GNU C library defines this for functions which it implements
40659     to always fail with ENOSYS.  Some functions are actually named
40660     something starting with __ and the normal name is an alias.  */
40661 #if defined __stub_$ac_func || defined __stub___$ac_func
40662 choke me
40663 #endif
40664
40665 int
40666 main ()
40667 {
40668 return $ac_func ();
40669   ;
40670   return 0;
40671 }
40672 _ACEOF
40673 rm -f conftest.$ac_objext conftest$ac_exeext
40674 if { (ac_try="$ac_link"
40675 case "(($ac_try" in
40676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40677   *) ac_try_echo=$ac_try;;
40678 esac
40679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40680   (eval "$ac_link") 2>conftest.er1
40681   ac_status=$?
40682   grep -v '^ *+' conftest.er1 >conftest.err
40683   rm -f conftest.er1
40684   cat conftest.err >&5
40685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40686   (exit $ac_status); } && {
40687          test -z "$ac_c_werror_flag" ||
40688          test ! -s conftest.err
40689        } && test -s conftest$ac_exeext &&
40690        $as_test_x conftest$ac_exeext; then
40691   eval "$as_ac_var=yes"
40692 else
40693   echo "$as_me: failed program was:" >&5
40694 sed 's/^/| /' conftest.$ac_ext >&5
40695
40696         eval "$as_ac_var=no"
40697 fi
40698
40699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40700       conftest$ac_exeext conftest.$ac_ext
40701 fi
40702 ac_res=`eval echo '${'$as_ac_var'}'`
40703                { echo "$as_me:$LINENO: result: $ac_res" >&5
40704 echo "${ECHO_T}$ac_res" >&6; }
40705 if test `eval echo '${'$as_ac_var'}'` = yes; then
40706   cat >>confdefs.h <<_ACEOF
40707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40708 _ACEOF
40709  cat >>confdefs.h <<\_ACEOF
40710 #define HAVE_NANOSLEEP 1
40711 _ACEOF
40712
40713 else
40714
40715             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
40716 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
40717 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
40718   echo $ECHO_N "(cached) $ECHO_C" >&6
40719 else
40720   ac_check_lib_save_LIBS=$LIBS
40721 LIBS="-lposix4  $LIBS"
40722 cat >conftest.$ac_ext <<_ACEOF
40723 /* confdefs.h.  */
40724 _ACEOF
40725 cat confdefs.h >>conftest.$ac_ext
40726 cat >>conftest.$ac_ext <<_ACEOF
40727 /* end confdefs.h.  */
40728
40729 /* Override any GCC internal prototype to avoid an error.
40730    Use char because int might match the return type of a GCC
40731    builtin and then its argument prototype would still apply.  */
40732 #ifdef __cplusplus
40733 extern "C"
40734 #endif
40735 char nanosleep ();
40736 int
40737 main ()
40738 {
40739 return nanosleep ();
40740   ;
40741   return 0;
40742 }
40743 _ACEOF
40744 rm -f conftest.$ac_objext conftest$ac_exeext
40745 if { (ac_try="$ac_link"
40746 case "(($ac_try" in
40747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40748   *) ac_try_echo=$ac_try;;
40749 esac
40750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40751   (eval "$ac_link") 2>conftest.er1
40752   ac_status=$?
40753   grep -v '^ *+' conftest.er1 >conftest.err
40754   rm -f conftest.er1
40755   cat conftest.err >&5
40756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40757   (exit $ac_status); } && {
40758          test -z "$ac_c_werror_flag" ||
40759          test ! -s conftest.err
40760        } && test -s conftest$ac_exeext &&
40761        $as_test_x conftest$ac_exeext; then
40762   ac_cv_lib_posix4_nanosleep=yes
40763 else
40764   echo "$as_me: failed program was:" >&5
40765 sed 's/^/| /' conftest.$ac_ext >&5
40766
40767         ac_cv_lib_posix4_nanosleep=no
40768 fi
40769
40770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40771       conftest$ac_exeext conftest.$ac_ext
40772 LIBS=$ac_check_lib_save_LIBS
40773 fi
40774 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
40775 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
40776 if test $ac_cv_lib_posix4_nanosleep = yes; then
40777
40778                     cat >>confdefs.h <<\_ACEOF
40779 #define HAVE_NANOSLEEP 1
40780 _ACEOF
40781
40782                     POSIX4_LINK=" -lposix4"
40783
40784 else
40785
40786
40787   for wx_func in usleep
40788   do
40789     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40790 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40791 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40792   echo $ECHO_N "(cached) $ECHO_C" >&6
40793 else
40794
40795         cat >conftest.$ac_ext <<_ACEOF
40796
40797             /* confdefs.h.  */
40798 _ACEOF
40799 cat confdefs.h >>conftest.$ac_ext
40800 cat >>conftest.$ac_ext <<_ACEOF
40801 /* end confdefs.h.  */
40802
40803
40804                 $ac_includes_default
40805
40806 int
40807 main ()
40808 {
40809
40810                 #ifndef $wx_func
40811                   &$wx_func;
40812                 #endif
40813
40814
40815   ;
40816   return 0;
40817 }
40818
40819 _ACEOF
40820 rm -f conftest.$ac_objext conftest$ac_exeext
40821 if { (ac_try="$ac_link"
40822 case "(($ac_try" in
40823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40824   *) ac_try_echo=$ac_try;;
40825 esac
40826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40827   (eval "$ac_link") 2>conftest.er1
40828   ac_status=$?
40829   grep -v '^ *+' conftest.er1 >conftest.err
40830   rm -f conftest.er1
40831   cat conftest.err >&5
40832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40833   (exit $ac_status); } && {
40834          test -z "$ac_c_werror_flag" ||
40835          test ! -s conftest.err
40836        } && test -s conftest$ac_exeext &&
40837        $as_test_x conftest$ac_exeext; then
40838   eval wx_cv_func_$wx_func=yes
40839 else
40840   echo "$as_me: failed program was:" >&5
40841 sed 's/^/| /' conftest.$ac_ext >&5
40842
40843         eval wx_cv_func_$wx_func=no
40844 fi
40845
40846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40847       conftest$ac_exeext conftest.$ac_ext
40848
40849 fi
40850 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40851                { echo "$as_me:$LINENO: result: $ac_res" >&5
40852 echo "${ECHO_T}$ac_res" >&6; }
40853
40854     if eval test \$wx_cv_func_$wx_func = yes
40855     then
40856       cat >>confdefs.h <<_ACEOF
40857 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40858 _ACEOF
40859
40860
40861     else
40862       :
40863       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
40864 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
40865
40866     fi
40867   done
40868
40869
40870
40871 fi
40872
40873
40874
40875 fi
40876 done
40877
40878 fi
40879
40880
40881   for wx_func in uname
40882   do
40883     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40884 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40885 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40886   echo $ECHO_N "(cached) $ECHO_C" >&6
40887 else
40888
40889         cat >conftest.$ac_ext <<_ACEOF
40890
40891             /* confdefs.h.  */
40892 _ACEOF
40893 cat confdefs.h >>conftest.$ac_ext
40894 cat >>conftest.$ac_ext <<_ACEOF
40895 /* end confdefs.h.  */
40896
40897                 #include <sys/utsname.h>
40898                 $ac_includes_default
40899
40900 int
40901 main ()
40902 {
40903
40904                 #ifndef $wx_func
40905                   &$wx_func;
40906                 #endif
40907
40908
40909   ;
40910   return 0;
40911 }
40912
40913 _ACEOF
40914 rm -f conftest.$ac_objext conftest$ac_exeext
40915 if { (ac_try="$ac_link"
40916 case "(($ac_try" in
40917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40918   *) ac_try_echo=$ac_try;;
40919 esac
40920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40921   (eval "$ac_link") 2>conftest.er1
40922   ac_status=$?
40923   grep -v '^ *+' conftest.er1 >conftest.err
40924   rm -f conftest.er1
40925   cat conftest.err >&5
40926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40927   (exit $ac_status); } && {
40928          test -z "$ac_c_werror_flag" ||
40929          test ! -s conftest.err
40930        } && test -s conftest$ac_exeext &&
40931        $as_test_x conftest$ac_exeext; then
40932   eval wx_cv_func_$wx_func=yes
40933 else
40934   echo "$as_me: failed program was:" >&5
40935 sed 's/^/| /' conftest.$ac_ext >&5
40936
40937         eval wx_cv_func_$wx_func=no
40938 fi
40939
40940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40941       conftest$ac_exeext conftest.$ac_ext
40942
40943 fi
40944 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40945                { echo "$as_me:$LINENO: result: $ac_res" >&5
40946 echo "${ECHO_T}$ac_res" >&6; }
40947
40948     if eval test \$wx_cv_func_$wx_func = yes
40949     then
40950       cat >>confdefs.h <<_ACEOF
40951 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40952 _ACEOF
40953
40954
40955     else
40956       :
40957
40958     fi
40959   done
40960
40961 if test "$wx_cv_func_uname" != yes; then
40962
40963   for wx_func in gethostname
40964   do
40965     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40966 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40967 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40968   echo $ECHO_N "(cached) $ECHO_C" >&6
40969 else
40970
40971         cat >conftest.$ac_ext <<_ACEOF
40972
40973             /* confdefs.h.  */
40974 _ACEOF
40975 cat confdefs.h >>conftest.$ac_ext
40976 cat >>conftest.$ac_ext <<_ACEOF
40977 /* end confdefs.h.  */
40978
40979
40980                 $ac_includes_default
40981
40982 int
40983 main ()
40984 {
40985
40986                 #ifndef $wx_func
40987                   &$wx_func;
40988                 #endif
40989
40990
40991   ;
40992   return 0;
40993 }
40994
40995 _ACEOF
40996 rm -f conftest.$ac_objext conftest$ac_exeext
40997 if { (ac_try="$ac_link"
40998 case "(($ac_try" in
40999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41000   *) ac_try_echo=$ac_try;;
41001 esac
41002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41003   (eval "$ac_link") 2>conftest.er1
41004   ac_status=$?
41005   grep -v '^ *+' conftest.er1 >conftest.err
41006   rm -f conftest.er1
41007   cat conftest.err >&5
41008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41009   (exit $ac_status); } && {
41010          test -z "$ac_c_werror_flag" ||
41011          test ! -s conftest.err
41012        } && test -s conftest$ac_exeext &&
41013        $as_test_x conftest$ac_exeext; then
41014   eval wx_cv_func_$wx_func=yes
41015 else
41016   echo "$as_me: failed program was:" >&5
41017 sed 's/^/| /' conftest.$ac_ext >&5
41018
41019         eval wx_cv_func_$wx_func=no
41020 fi
41021
41022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41023       conftest$ac_exeext conftest.$ac_ext
41024
41025 fi
41026 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41027                { echo "$as_me:$LINENO: result: $ac_res" >&5
41028 echo "${ECHO_T}$ac_res" >&6; }
41029
41030     if eval test \$wx_cv_func_$wx_func = yes
41031     then
41032       cat >>confdefs.h <<_ACEOF
41033 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41034 _ACEOF
41035
41036
41037     else
41038       :
41039
41040     fi
41041   done
41042
41043 fi
41044
41045
41046   for wx_func in strtok_r
41047   do
41048     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41049 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41050 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41051   echo $ECHO_N "(cached) $ECHO_C" >&6
41052 else
41053
41054         cat >conftest.$ac_ext <<_ACEOF
41055
41056             /* confdefs.h.  */
41057 _ACEOF
41058 cat confdefs.h >>conftest.$ac_ext
41059 cat >>conftest.$ac_ext <<_ACEOF
41060 /* end confdefs.h.  */
41061
41062                 #define _REENTRANT
41063                 $ac_includes_default
41064
41065 int
41066 main ()
41067 {
41068
41069                 #ifndef $wx_func
41070                   &$wx_func;
41071                 #endif
41072
41073
41074   ;
41075   return 0;
41076 }
41077
41078 _ACEOF
41079 rm -f conftest.$ac_objext conftest$ac_exeext
41080 if { (ac_try="$ac_link"
41081 case "(($ac_try" in
41082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41083   *) ac_try_echo=$ac_try;;
41084 esac
41085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41086   (eval "$ac_link") 2>conftest.er1
41087   ac_status=$?
41088   grep -v '^ *+' conftest.er1 >conftest.err
41089   rm -f conftest.er1
41090   cat conftest.err >&5
41091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41092   (exit $ac_status); } && {
41093          test -z "$ac_c_werror_flag" ||
41094          test ! -s conftest.err
41095        } && test -s conftest$ac_exeext &&
41096        $as_test_x conftest$ac_exeext; then
41097   eval wx_cv_func_$wx_func=yes
41098 else
41099   echo "$as_me: failed program was:" >&5
41100 sed 's/^/| /' conftest.$ac_ext >&5
41101
41102         eval wx_cv_func_$wx_func=no
41103 fi
41104
41105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41106       conftest$ac_exeext conftest.$ac_ext
41107
41108 fi
41109 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41110                { echo "$as_me:$LINENO: result: $ac_res" >&5
41111 echo "${ECHO_T}$ac_res" >&6; }
41112
41113     if eval test \$wx_cv_func_$wx_func = yes
41114     then
41115       cat >>confdefs.h <<_ACEOF
41116 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41117 _ACEOF
41118
41119
41120     else
41121       :
41122
41123     fi
41124   done
41125
41126
41127 INET_LINK=
41128
41129 for ac_func in inet_addr
41130 do
41131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41135   echo $ECHO_N "(cached) $ECHO_C" >&6
41136 else
41137   cat >conftest.$ac_ext <<_ACEOF
41138 /* confdefs.h.  */
41139 _ACEOF
41140 cat confdefs.h >>conftest.$ac_ext
41141 cat >>conftest.$ac_ext <<_ACEOF
41142 /* end confdefs.h.  */
41143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41145 #define $ac_func innocuous_$ac_func
41146
41147 /* System header to define __stub macros and hopefully few prototypes,
41148     which can conflict with char $ac_func (); below.
41149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41150     <limits.h> exists even on freestanding compilers.  */
41151
41152 #ifdef __STDC__
41153 # include <limits.h>
41154 #else
41155 # include <assert.h>
41156 #endif
41157
41158 #undef $ac_func
41159
41160 /* Override any GCC internal prototype to avoid an error.
41161    Use char because int might match the return type of a GCC
41162    builtin and then its argument prototype would still apply.  */
41163 #ifdef __cplusplus
41164 extern "C"
41165 #endif
41166 char $ac_func ();
41167 /* The GNU C library defines this for functions which it implements
41168     to always fail with ENOSYS.  Some functions are actually named
41169     something starting with __ and the normal name is an alias.  */
41170 #if defined __stub_$ac_func || defined __stub___$ac_func
41171 choke me
41172 #endif
41173
41174 int
41175 main ()
41176 {
41177 return $ac_func ();
41178   ;
41179   return 0;
41180 }
41181 _ACEOF
41182 rm -f conftest.$ac_objext conftest$ac_exeext
41183 if { (ac_try="$ac_link"
41184 case "(($ac_try" in
41185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41186   *) ac_try_echo=$ac_try;;
41187 esac
41188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41189   (eval "$ac_link") 2>conftest.er1
41190   ac_status=$?
41191   grep -v '^ *+' conftest.er1 >conftest.err
41192   rm -f conftest.er1
41193   cat conftest.err >&5
41194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41195   (exit $ac_status); } && {
41196          test -z "$ac_c_werror_flag" ||
41197          test ! -s conftest.err
41198        } && test -s conftest$ac_exeext &&
41199        $as_test_x conftest$ac_exeext; then
41200   eval "$as_ac_var=yes"
41201 else
41202   echo "$as_me: failed program was:" >&5
41203 sed 's/^/| /' conftest.$ac_ext >&5
41204
41205         eval "$as_ac_var=no"
41206 fi
41207
41208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41209       conftest$ac_exeext conftest.$ac_ext
41210 fi
41211 ac_res=`eval echo '${'$as_ac_var'}'`
41212                { echo "$as_me:$LINENO: result: $ac_res" >&5
41213 echo "${ECHO_T}$ac_res" >&6; }
41214 if test `eval echo '${'$as_ac_var'}'` = yes; then
41215   cat >>confdefs.h <<_ACEOF
41216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41217 _ACEOF
41218  cat >>confdefs.h <<\_ACEOF
41219 #define HAVE_INET_ADDR 1
41220 _ACEOF
41221
41222 else
41223
41224         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
41225 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
41226 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
41227   echo $ECHO_N "(cached) $ECHO_C" >&6
41228 else
41229   ac_check_lib_save_LIBS=$LIBS
41230 LIBS="-lnsl  $LIBS"
41231 cat >conftest.$ac_ext <<_ACEOF
41232 /* confdefs.h.  */
41233 _ACEOF
41234 cat confdefs.h >>conftest.$ac_ext
41235 cat >>conftest.$ac_ext <<_ACEOF
41236 /* end confdefs.h.  */
41237
41238 /* Override any GCC internal prototype to avoid an error.
41239    Use char because int might match the return type of a GCC
41240    builtin and then its argument prototype would still apply.  */
41241 #ifdef __cplusplus
41242 extern "C"
41243 #endif
41244 char inet_addr ();
41245 int
41246 main ()
41247 {
41248 return inet_addr ();
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   ac_cv_lib_nsl_inet_addr=yes
41272 else
41273   echo "$as_me: failed program was:" >&5
41274 sed 's/^/| /' conftest.$ac_ext >&5
41275
41276         ac_cv_lib_nsl_inet_addr=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 LIBS=$ac_check_lib_save_LIBS
41282 fi
41283 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
41284 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
41285 if test $ac_cv_lib_nsl_inet_addr = yes; then
41286   INET_LINK="nsl"
41287 else
41288
41289                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
41290 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
41291 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
41292   echo $ECHO_N "(cached) $ECHO_C" >&6
41293 else
41294   ac_check_lib_save_LIBS=$LIBS
41295 LIBS="-lresolv  $LIBS"
41296 cat >conftest.$ac_ext <<_ACEOF
41297 /* confdefs.h.  */
41298 _ACEOF
41299 cat confdefs.h >>conftest.$ac_ext
41300 cat >>conftest.$ac_ext <<_ACEOF
41301 /* end confdefs.h.  */
41302
41303 /* Override any GCC internal prototype to avoid an error.
41304    Use char because int might match the return type of a GCC
41305    builtin and then its argument prototype would still apply.  */
41306 #ifdef __cplusplus
41307 extern "C"
41308 #endif
41309 char inet_addr ();
41310 int
41311 main ()
41312 {
41313 return inet_addr ();
41314   ;
41315   return 0;
41316 }
41317 _ACEOF
41318 rm -f conftest.$ac_objext conftest$ac_exeext
41319 if { (ac_try="$ac_link"
41320 case "(($ac_try" in
41321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41322   *) ac_try_echo=$ac_try;;
41323 esac
41324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41325   (eval "$ac_link") 2>conftest.er1
41326   ac_status=$?
41327   grep -v '^ *+' conftest.er1 >conftest.err
41328   rm -f conftest.er1
41329   cat conftest.err >&5
41330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41331   (exit $ac_status); } && {
41332          test -z "$ac_c_werror_flag" ||
41333          test ! -s conftest.err
41334        } && test -s conftest$ac_exeext &&
41335        $as_test_x conftest$ac_exeext; then
41336   ac_cv_lib_resolv_inet_addr=yes
41337 else
41338   echo "$as_me: failed program was:" >&5
41339 sed 's/^/| /' conftest.$ac_ext >&5
41340
41341         ac_cv_lib_resolv_inet_addr=no
41342 fi
41343
41344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41345       conftest$ac_exeext conftest.$ac_ext
41346 LIBS=$ac_check_lib_save_LIBS
41347 fi
41348 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
41349 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
41350 if test $ac_cv_lib_resolv_inet_addr = yes; then
41351   INET_LINK="resolv"
41352 else
41353
41354                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
41355 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
41356 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
41357   echo $ECHO_N "(cached) $ECHO_C" >&6
41358 else
41359   ac_check_lib_save_LIBS=$LIBS
41360 LIBS="-lsocket  $LIBS"
41361 cat >conftest.$ac_ext <<_ACEOF
41362 /* confdefs.h.  */
41363 _ACEOF
41364 cat confdefs.h >>conftest.$ac_ext
41365 cat >>conftest.$ac_ext <<_ACEOF
41366 /* end confdefs.h.  */
41367
41368 /* Override any GCC internal prototype to avoid an error.
41369    Use char because int might match the return type of a GCC
41370    builtin and then its argument prototype would still apply.  */
41371 #ifdef __cplusplus
41372 extern "C"
41373 #endif
41374 char inet_addr ();
41375 int
41376 main ()
41377 {
41378 return inet_addr ();
41379   ;
41380   return 0;
41381 }
41382 _ACEOF
41383 rm -f conftest.$ac_objext conftest$ac_exeext
41384 if { (ac_try="$ac_link"
41385 case "(($ac_try" in
41386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41387   *) ac_try_echo=$ac_try;;
41388 esac
41389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41390   (eval "$ac_link") 2>conftest.er1
41391   ac_status=$?
41392   grep -v '^ *+' conftest.er1 >conftest.err
41393   rm -f conftest.er1
41394   cat conftest.err >&5
41395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41396   (exit $ac_status); } && {
41397          test -z "$ac_c_werror_flag" ||
41398          test ! -s conftest.err
41399        } && test -s conftest$ac_exeext &&
41400        $as_test_x conftest$ac_exeext; then
41401   ac_cv_lib_socket_inet_addr=yes
41402 else
41403   echo "$as_me: failed program was:" >&5
41404 sed 's/^/| /' conftest.$ac_ext >&5
41405
41406         ac_cv_lib_socket_inet_addr=no
41407 fi
41408
41409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41410       conftest$ac_exeext conftest.$ac_ext
41411 LIBS=$ac_check_lib_save_LIBS
41412 fi
41413 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
41414 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
41415 if test $ac_cv_lib_socket_inet_addr = yes; then
41416   INET_LINK="socket"
41417
41418 fi
41419
41420
41421
41422 fi
41423
41424
41425
41426 fi
41427
41428
41429
41430 fi
41431 done
41432
41433
41434
41435 for ac_func in inet_aton
41436 do
41437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41441   echo $ECHO_N "(cached) $ECHO_C" >&6
41442 else
41443   cat >conftest.$ac_ext <<_ACEOF
41444 /* confdefs.h.  */
41445 _ACEOF
41446 cat confdefs.h >>conftest.$ac_ext
41447 cat >>conftest.$ac_ext <<_ACEOF
41448 /* end confdefs.h.  */
41449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41451 #define $ac_func innocuous_$ac_func
41452
41453 /* System header to define __stub macros and hopefully few prototypes,
41454     which can conflict with char $ac_func (); below.
41455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41456     <limits.h> exists even on freestanding compilers.  */
41457
41458 #ifdef __STDC__
41459 # include <limits.h>
41460 #else
41461 # include <assert.h>
41462 #endif
41463
41464 #undef $ac_func
41465
41466 /* Override any GCC internal prototype to avoid an error.
41467    Use char because int might match the return type of a GCC
41468    builtin and then its argument prototype would still apply.  */
41469 #ifdef __cplusplus
41470 extern "C"
41471 #endif
41472 char $ac_func ();
41473 /* The GNU C library defines this for functions which it implements
41474     to always fail with ENOSYS.  Some functions are actually named
41475     something starting with __ and the normal name is an alias.  */
41476 #if defined __stub_$ac_func || defined __stub___$ac_func
41477 choke me
41478 #endif
41479
41480 int
41481 main ()
41482 {
41483 return $ac_func ();
41484   ;
41485   return 0;
41486 }
41487 _ACEOF
41488 rm -f conftest.$ac_objext conftest$ac_exeext
41489 if { (ac_try="$ac_link"
41490 case "(($ac_try" in
41491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41492   *) ac_try_echo=$ac_try;;
41493 esac
41494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41495   (eval "$ac_link") 2>conftest.er1
41496   ac_status=$?
41497   grep -v '^ *+' conftest.er1 >conftest.err
41498   rm -f conftest.er1
41499   cat conftest.err >&5
41500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41501   (exit $ac_status); } && {
41502          test -z "$ac_c_werror_flag" ||
41503          test ! -s conftest.err
41504        } && test -s conftest$ac_exeext &&
41505        $as_test_x conftest$ac_exeext; then
41506   eval "$as_ac_var=yes"
41507 else
41508   echo "$as_me: failed program was:" >&5
41509 sed 's/^/| /' conftest.$ac_ext >&5
41510
41511         eval "$as_ac_var=no"
41512 fi
41513
41514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41515       conftest$ac_exeext conftest.$ac_ext
41516 fi
41517 ac_res=`eval echo '${'$as_ac_var'}'`
41518                { echo "$as_me:$LINENO: result: $ac_res" >&5
41519 echo "${ECHO_T}$ac_res" >&6; }
41520 if test `eval echo '${'$as_ac_var'}'` = yes; then
41521   cat >>confdefs.h <<_ACEOF
41522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41523 _ACEOF
41524  cat >>confdefs.h <<\_ACEOF
41525 #define HAVE_INET_ATON 1
41526 _ACEOF
41527
41528 else
41529
41530                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
41531 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
41532 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
41533 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41534   echo $ECHO_N "(cached) $ECHO_C" >&6
41535 else
41536   ac_check_lib_save_LIBS=$LIBS
41537 LIBS="-l$INET_LINK  $LIBS"
41538 cat >conftest.$ac_ext <<_ACEOF
41539 /* confdefs.h.  */
41540 _ACEOF
41541 cat confdefs.h >>conftest.$ac_ext
41542 cat >>conftest.$ac_ext <<_ACEOF
41543 /* end confdefs.h.  */
41544
41545 /* Override any GCC internal prototype to avoid an error.
41546    Use char because int might match the return type of a GCC
41547    builtin and then its argument prototype would still apply.  */
41548 #ifdef __cplusplus
41549 extern "C"
41550 #endif
41551 char inet_aton ();
41552 int
41553 main ()
41554 {
41555 return inet_aton ();
41556   ;
41557   return 0;
41558 }
41559 _ACEOF
41560 rm -f conftest.$ac_objext conftest$ac_exeext
41561 if { (ac_try="$ac_link"
41562 case "(($ac_try" in
41563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41564   *) ac_try_echo=$ac_try;;
41565 esac
41566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41567   (eval "$ac_link") 2>conftest.er1
41568   ac_status=$?
41569   grep -v '^ *+' conftest.er1 >conftest.err
41570   rm -f conftest.er1
41571   cat conftest.err >&5
41572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41573   (exit $ac_status); } && {
41574          test -z "$ac_c_werror_flag" ||
41575          test ! -s conftest.err
41576        } && test -s conftest$ac_exeext &&
41577        $as_test_x conftest$ac_exeext; then
41578   eval "$as_ac_Lib=yes"
41579 else
41580   echo "$as_me: failed program was:" >&5
41581 sed 's/^/| /' conftest.$ac_ext >&5
41582
41583         eval "$as_ac_Lib=no"
41584 fi
41585
41586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41587       conftest$ac_exeext conftest.$ac_ext
41588 LIBS=$ac_check_lib_save_LIBS
41589 fi
41590 ac_res=`eval echo '${'$as_ac_Lib'}'`
41591                { echo "$as_me:$LINENO: result: $ac_res" >&5
41592 echo "${ECHO_T}$ac_res" >&6; }
41593 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41594   cat >>confdefs.h <<\_ACEOF
41595 #define HAVE_INET_ATON 1
41596 _ACEOF
41597
41598 fi
41599
41600
41601 fi
41602 done
41603
41604
41605 if test "x$INET_LINK" != "x"; then
41606     cat >>confdefs.h <<\_ACEOF
41607 #define HAVE_INET_ADDR 1
41608 _ACEOF
41609
41610     INET_LINK=" -l$INET_LINK"
41611 fi
41612
41613
41614   for wx_func in fdopen
41615   do
41616     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41617 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41618 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41619   echo $ECHO_N "(cached) $ECHO_C" >&6
41620 else
41621
41622         cat >conftest.$ac_ext <<_ACEOF
41623
41624             /* confdefs.h.  */
41625 _ACEOF
41626 cat confdefs.h >>conftest.$ac_ext
41627 cat >>conftest.$ac_ext <<_ACEOF
41628 /* end confdefs.h.  */
41629
41630
41631                 $ac_includes_default
41632
41633 int
41634 main ()
41635 {
41636
41637                 #ifndef $wx_func
41638                   &$wx_func;
41639                 #endif
41640
41641
41642   ;
41643   return 0;
41644 }
41645
41646 _ACEOF
41647 rm -f conftest.$ac_objext conftest$ac_exeext
41648 if { (ac_try="$ac_link"
41649 case "(($ac_try" in
41650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41651   *) ac_try_echo=$ac_try;;
41652 esac
41653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41654   (eval "$ac_link") 2>conftest.er1
41655   ac_status=$?
41656   grep -v '^ *+' conftest.er1 >conftest.err
41657   rm -f conftest.er1
41658   cat conftest.err >&5
41659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41660   (exit $ac_status); } && {
41661          test -z "$ac_c_werror_flag" ||
41662          test ! -s conftest.err
41663        } && test -s conftest$ac_exeext &&
41664        $as_test_x conftest$ac_exeext; then
41665   eval wx_cv_func_$wx_func=yes
41666 else
41667   echo "$as_me: failed program was:" >&5
41668 sed 's/^/| /' conftest.$ac_ext >&5
41669
41670         eval wx_cv_func_$wx_func=no
41671 fi
41672
41673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41674       conftest$ac_exeext conftest.$ac_ext
41675
41676 fi
41677 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41678                { echo "$as_me:$LINENO: result: $ac_res" >&5
41679 echo "${ECHO_T}$ac_res" >&6; }
41680
41681     if eval test \$wx_cv_func_$wx_func = yes
41682     then
41683       cat >>confdefs.h <<_ACEOF
41684 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41685 _ACEOF
41686
41687
41688     else
41689       :
41690
41691     fi
41692   done
41693
41694
41695 fi
41696
41697
41698
41699 cat >confcache <<\_ACEOF
41700 # This file is a shell script that caches the results of configure
41701 # tests run on this system so they can be shared between configure
41702 # scripts and configure runs, see configure's option --config-cache.
41703 # It is not useful on other systems.  If it contains results you don't
41704 # want to keep, you may remove or edit it.
41705 #
41706 # config.status only pays attention to the cache file if you give it
41707 # the --recheck option to rerun configure.
41708 #
41709 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41710 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41711 # following values.
41712
41713 _ACEOF
41714
41715 # The following way of writing the cache mishandles newlines in values,
41716 # but we know of no workaround that is simple, portable, and efficient.
41717 # So, we kill variables containing newlines.
41718 # Ultrix sh set writes to stderr and can't be redirected directly,
41719 # and sets the high bit in the cache file unless we assign to the vars.
41720 (
41721   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41722     eval ac_val=\$$ac_var
41723     case $ac_val in #(
41724     *${as_nl}*)
41725       case $ac_var in #(
41726       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41728       esac
41729       case $ac_var in #(
41730       _ | IFS | as_nl) ;; #(
41731       *) $as_unset $ac_var ;;
41732       esac ;;
41733     esac
41734   done
41735
41736   (set) 2>&1 |
41737     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41738     *${as_nl}ac_space=\ *)
41739       # `set' does not quote correctly, so add quotes (double-quote
41740       # substitution turns \\\\ into \\, and sed turns \\ into \).
41741       sed -n \
41742         "s/'/'\\\\''/g;
41743           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41744       ;; #(
41745     *)
41746       # `set' quotes correctly as required by POSIX, so do not add quotes.
41747       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41748       ;;
41749     esac |
41750     sort
41751 ) |
41752   sed '
41753      /^ac_cv_env_/b end
41754      t clear
41755      :clear
41756      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41757      t end
41758      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41759      :end' >>confcache
41760 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41761   if test -w "$cache_file"; then
41762     test "x$cache_file" != "x/dev/null" &&
41763       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41764 echo "$as_me: updating cache $cache_file" >&6;}
41765     cat confcache >$cache_file
41766   else
41767     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41768 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41769   fi
41770 fi
41771 rm -f confcache
41772
41773
41774 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41775
41776
41777     THREADS_LINK=
41778     THREADS_CFLAGS=
41779
41780     if test "$wxUSE_THREADS" = "yes" ; then
41781         if test "$USE_BEOS" = 1; then
41782             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
41783 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
41784             wxUSE_THREADS="no"
41785         fi
41786     fi
41787
41788     if test "$wxUSE_THREADS" = "yes" ; then
41789
41790
41791                                 THREAD_OPTS="-pthread"
41792         if test "x$SUNCXX" = xyes; then
41793             THREAD_OPTS="-mt lthread $THREAD_OPTS"
41794         fi
41795
41796         case "${host}" in
41797           *-*-solaris2* | *-*-sunos4* )
41798                 if test "x$GCC" = "xyes"; then
41799                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
41800                 fi
41801                 ;;
41802           *-*-freebsd*)
41803                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
41804                 ;;
41805           *-*-darwin* | *-*-cygwin* )
41806                                                 THREAD_OPTS=""
41807                 ;;
41808           *-*-aix*)
41809                                 THREAD_OPTS="pthreads"
41810                 ;;
41811           *-hp-hpux* )
41812                 if test "x$GCC" = "xyes"; then
41813                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
41814                         THREAD_OPTS=""
41815                 else
41816                                                             THREAD_OPTS="-mt"
41817                 fi
41818                 ;;
41819
41820           *-*-irix* )
41821                                                                 if test "x$GCC" = "xyes"; then
41822                     THREAD_OPTS=""
41823                 fi
41824                 ;;
41825
41826           *-*-*UnixWare*)
41827                                 if test "x$GCC" != "xyes"; then
41828                     THREAD_OPTS="-Ethread"
41829                 fi
41830                 ;;
41831         esac
41832
41833                                 THREAD_OPTS="$THREAD_OPTS pthread none"
41834
41835                 THREADS_OK=no
41836         for flag in $THREAD_OPTS; do
41837             case $flag in
41838                 none)
41839                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
41840 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
41841                     ;;
41842
41843                 -*)
41844                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
41845 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
41846                     THREADS_CFLAGS="$flag"
41847                     ;;
41848
41849                 *)
41850                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
41851 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
41852                     THREADS_LINK="-l$flag"
41853                     ;;
41854               esac
41855
41856               save_LIBS="$LIBS"
41857               save_CFLAGS="$CFLAGS"
41858               LIBS="$THREADS_LINK $LIBS"
41859               CFLAGS="$THREADS_CFLAGS $CFLAGS"
41860
41861               cat >conftest.$ac_ext <<_ACEOF
41862 /* confdefs.h.  */
41863 _ACEOF
41864 cat confdefs.h >>conftest.$ac_ext
41865 cat >>conftest.$ac_ext <<_ACEOF
41866 /* end confdefs.h.  */
41867 #include <pthread.h>
41868 int
41869 main ()
41870 {
41871 pthread_create(0,0,0,0);
41872   ;
41873   return 0;
41874 }
41875 _ACEOF
41876 rm -f conftest.$ac_objext conftest$ac_exeext
41877 if { (ac_try="$ac_link"
41878 case "(($ac_try" in
41879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41880   *) ac_try_echo=$ac_try;;
41881 esac
41882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41883   (eval "$ac_link") 2>conftest.er1
41884   ac_status=$?
41885   grep -v '^ *+' conftest.er1 >conftest.err
41886   rm -f conftest.er1
41887   cat conftest.err >&5
41888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889   (exit $ac_status); } && {
41890          test -z "$ac_c_werror_flag" ||
41891          test ! -s conftest.err
41892        } && test -s conftest$ac_exeext &&
41893        $as_test_x conftest$ac_exeext; then
41894   THREADS_OK=yes
41895 else
41896   echo "$as_me: failed program was:" >&5
41897 sed 's/^/| /' conftest.$ac_ext >&5
41898
41899
41900 fi
41901
41902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41903       conftest$ac_exeext conftest.$ac_ext
41904
41905               LIBS="$save_LIBS"
41906               CFLAGS="$save_CFLAGS"
41907
41908               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
41909 echo "${ECHO_T}$THREADS_OK" >&6; }
41910               if test "x$THREADS_OK" = "xyes"; then
41911                       break;
41912               fi
41913
41914               THREADS_LINK=""
41915               THREADS_CFLAGS=""
41916       done
41917
41918       if test "x$THREADS_OK" != "xyes"; then
41919           wxUSE_THREADS=no
41920           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
41921 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
41922       else
41923                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
41924           LIBS="$THREADS_LINK $LIBS"
41925
41926           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
41927 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
41928           flag=no
41929           case "${host}" in
41930             *-aix*)
41931                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
41932                 flag="-D_THREAD_SAFE"
41933                 ;;
41934             *-freebsd*)
41935                 flag="-D_THREAD_SAFE"
41936                 ;;
41937             *-hp-hpux* )
41938                 flag="-D_REENTRANT"
41939                 if test "x$GCC" != "xyes"; then
41940                                         flag="$flag -D_RWSTD_MULTI_THREAD"
41941                 fi
41942                 ;;
41943             *solaris* | alpha*-osf*)
41944                 flag="-D_REENTRANT"
41945                 ;;
41946           esac
41947           { echo "$as_me:$LINENO: result: ${flag}" >&5
41948 echo "${ECHO_T}${flag}" >&6; }
41949           if test "x$flag" != xno; then
41950               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
41951           fi
41952
41953                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
41954       fi
41955     fi
41956
41957         if test "$wxUSE_THREADS" = "yes" ; then
41958
41959 for ac_func in thr_setconcurrency
41960 do
41961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41965   echo $ECHO_N "(cached) $ECHO_C" >&6
41966 else
41967   cat >conftest.$ac_ext <<_ACEOF
41968 /* confdefs.h.  */
41969 _ACEOF
41970 cat confdefs.h >>conftest.$ac_ext
41971 cat >>conftest.$ac_ext <<_ACEOF
41972 /* end confdefs.h.  */
41973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41975 #define $ac_func innocuous_$ac_func
41976
41977 /* System header to define __stub macros and hopefully few prototypes,
41978     which can conflict with char $ac_func (); below.
41979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41980     <limits.h> exists even on freestanding compilers.  */
41981
41982 #ifdef __STDC__
41983 # include <limits.h>
41984 #else
41985 # include <assert.h>
41986 #endif
41987
41988 #undef $ac_func
41989
41990 /* Override any GCC internal prototype to avoid an error.
41991    Use char because int might match the return type of a GCC
41992    builtin and then its argument prototype would still apply.  */
41993 #ifdef __cplusplus
41994 extern "C"
41995 #endif
41996 char $ac_func ();
41997 /* The GNU C library defines this for functions which it implements
41998     to always fail with ENOSYS.  Some functions are actually named
41999     something starting with __ and the normal name is an alias.  */
42000 #if defined __stub_$ac_func || defined __stub___$ac_func
42001 choke me
42002 #endif
42003
42004 int
42005 main ()
42006 {
42007 return $ac_func ();
42008   ;
42009   return 0;
42010 }
42011 _ACEOF
42012 rm -f conftest.$ac_objext conftest$ac_exeext
42013 if { (ac_try="$ac_link"
42014 case "(($ac_try" in
42015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42016   *) ac_try_echo=$ac_try;;
42017 esac
42018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42019   (eval "$ac_link") 2>conftest.er1
42020   ac_status=$?
42021   grep -v '^ *+' conftest.er1 >conftest.err
42022   rm -f conftest.er1
42023   cat conftest.err >&5
42024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42025   (exit $ac_status); } && {
42026          test -z "$ac_c_werror_flag" ||
42027          test ! -s conftest.err
42028        } && test -s conftest$ac_exeext &&
42029        $as_test_x conftest$ac_exeext; then
42030   eval "$as_ac_var=yes"
42031 else
42032   echo "$as_me: failed program was:" >&5
42033 sed 's/^/| /' conftest.$ac_ext >&5
42034
42035         eval "$as_ac_var=no"
42036 fi
42037
42038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42039       conftest$ac_exeext conftest.$ac_ext
42040 fi
42041 ac_res=`eval echo '${'$as_ac_var'}'`
42042                { echo "$as_me:$LINENO: result: $ac_res" >&5
42043 echo "${ECHO_T}$ac_res" >&6; }
42044 if test `eval echo '${'$as_ac_var'}'` = yes; then
42045   cat >>confdefs.h <<_ACEOF
42046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42047 _ACEOF
42048
42049 fi
42050 done
42051
42052
42053                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
42054 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
42055 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
42056   echo $ECHO_N "(cached) $ECHO_C" >&6
42057 else
42058
42059                                 ac_ext=cpp
42060 ac_cpp='$CXXCPP $CPPFLAGS'
42061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42064
42065         cat >conftest.$ac_ext <<_ACEOF
42066 /* confdefs.h.  */
42067 _ACEOF
42068 cat confdefs.h >>conftest.$ac_ext
42069 cat >>conftest.$ac_ext <<_ACEOF
42070 /* end confdefs.h.  */
42071 #include <pthread.h>
42072                void ThreadCleanupFunc(void *p);
42073
42074 int
42075 main ()
42076 {
42077
42078                 void *p;
42079                 pthread_cleanup_push(ThreadCleanupFunc, p);
42080                 pthread_cleanup_pop(0);
42081
42082   ;
42083   return 0;
42084 }
42085 _ACEOF
42086 rm -f conftest.$ac_objext
42087 if { (ac_try="$ac_compile"
42088 case "(($ac_try" in
42089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42090   *) ac_try_echo=$ac_try;;
42091 esac
42092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42093   (eval "$ac_compile") 2>conftest.er1
42094   ac_status=$?
42095   grep -v '^ *+' conftest.er1 >conftest.err
42096   rm -f conftest.er1
42097   cat conftest.err >&5
42098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42099   (exit $ac_status); } && {
42100          test -z "$ac_cxx_werror_flag" ||
42101          test ! -s conftest.err
42102        } && test -s conftest.$ac_objext; then
42103
42104                wx_cv_func_pthread_cleanup=yes
42105
42106 else
42107   echo "$as_me: failed program was:" >&5
42108 sed 's/^/| /' conftest.$ac_ext >&5
42109
42110
42111                wx_cv_func_pthread_cleanup=no
42112
42113
42114 fi
42115
42116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42117         ac_ext=c
42118 ac_cpp='$CPP $CPPFLAGS'
42119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42122
42123
42124 fi
42125 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
42126 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
42127       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
42128         cat >>confdefs.h <<\_ACEOF
42129 #define wxHAVE_PTHREAD_CLEANUP 1
42130 _ACEOF
42131
42132       fi
42133
42134
42135 for ac_header in sched.h
42136 do
42137 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42141   echo $ECHO_N "(cached) $ECHO_C" >&6
42142 else
42143   cat >conftest.$ac_ext <<_ACEOF
42144 /* confdefs.h.  */
42145 _ACEOF
42146 cat confdefs.h >>conftest.$ac_ext
42147 cat >>conftest.$ac_ext <<_ACEOF
42148 /* end confdefs.h.  */
42149 $ac_includes_default
42150
42151 #include <$ac_header>
42152 _ACEOF
42153 rm -f conftest.$ac_objext
42154 if { (ac_try="$ac_compile"
42155 case "(($ac_try" in
42156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42157   *) ac_try_echo=$ac_try;;
42158 esac
42159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42160   (eval "$ac_compile") 2>conftest.er1
42161   ac_status=$?
42162   grep -v '^ *+' conftest.er1 >conftest.err
42163   rm -f conftest.er1
42164   cat conftest.err >&5
42165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42166   (exit $ac_status); } && {
42167          test -z "$ac_c_werror_flag" ||
42168          test ! -s conftest.err
42169        } && test -s conftest.$ac_objext; then
42170   eval "$as_ac_Header=yes"
42171 else
42172   echo "$as_me: failed program was:" >&5
42173 sed 's/^/| /' conftest.$ac_ext >&5
42174
42175         eval "$as_ac_Header=no"
42176 fi
42177
42178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42179 fi
42180 ac_res=`eval echo '${'$as_ac_Header'}'`
42181                { echo "$as_me:$LINENO: result: $ac_res" >&5
42182 echo "${ECHO_T}$ac_res" >&6; }
42183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42184   cat >>confdefs.h <<_ACEOF
42185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42186 _ACEOF
42187
42188 fi
42189
42190 done
42191
42192       if test "$ac_cv_header_sched_h" = "yes"; then
42193           { echo "$as_me:$LINENO: checking for sched_yield" >&5
42194 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
42195 if test "${ac_cv_func_sched_yield+set}" = set; then
42196   echo $ECHO_N "(cached) $ECHO_C" >&6
42197 else
42198   cat >conftest.$ac_ext <<_ACEOF
42199 /* confdefs.h.  */
42200 _ACEOF
42201 cat confdefs.h >>conftest.$ac_ext
42202 cat >>conftest.$ac_ext <<_ACEOF
42203 /* end confdefs.h.  */
42204 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
42205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42206 #define sched_yield innocuous_sched_yield
42207
42208 /* System header to define __stub macros and hopefully few prototypes,
42209     which can conflict with char sched_yield (); below.
42210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42211     <limits.h> exists even on freestanding compilers.  */
42212
42213 #ifdef __STDC__
42214 # include <limits.h>
42215 #else
42216 # include <assert.h>
42217 #endif
42218
42219 #undef sched_yield
42220
42221 /* Override any GCC internal prototype to avoid an error.
42222    Use char because int might match the return type of a GCC
42223    builtin and then its argument prototype would still apply.  */
42224 #ifdef __cplusplus
42225 extern "C"
42226 #endif
42227 char sched_yield ();
42228 /* The GNU C library defines this for functions which it implements
42229     to always fail with ENOSYS.  Some functions are actually named
42230     something starting with __ and the normal name is an alias.  */
42231 #if defined __stub_sched_yield || defined __stub___sched_yield
42232 choke me
42233 #endif
42234
42235 int
42236 main ()
42237 {
42238 return sched_yield ();
42239   ;
42240   return 0;
42241 }
42242 _ACEOF
42243 rm -f conftest.$ac_objext conftest$ac_exeext
42244 if { (ac_try="$ac_link"
42245 case "(($ac_try" in
42246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42247   *) ac_try_echo=$ac_try;;
42248 esac
42249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42250   (eval "$ac_link") 2>conftest.er1
42251   ac_status=$?
42252   grep -v '^ *+' conftest.er1 >conftest.err
42253   rm -f conftest.er1
42254   cat conftest.err >&5
42255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42256   (exit $ac_status); } && {
42257          test -z "$ac_c_werror_flag" ||
42258          test ! -s conftest.err
42259        } && test -s conftest$ac_exeext &&
42260        $as_test_x conftest$ac_exeext; then
42261   ac_cv_func_sched_yield=yes
42262 else
42263   echo "$as_me: failed program was:" >&5
42264 sed 's/^/| /' conftest.$ac_ext >&5
42265
42266         ac_cv_func_sched_yield=no
42267 fi
42268
42269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42270       conftest$ac_exeext conftest.$ac_ext
42271 fi
42272 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
42273 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
42274 if test $ac_cv_func_sched_yield = yes; then
42275   cat >>confdefs.h <<\_ACEOF
42276 #define HAVE_SCHED_YIELD 1
42277 _ACEOF
42278
42279 else
42280
42281                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
42282 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
42283 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
42284   echo $ECHO_N "(cached) $ECHO_C" >&6
42285 else
42286   ac_check_lib_save_LIBS=$LIBS
42287 LIBS="-lposix4  $LIBS"
42288 cat >conftest.$ac_ext <<_ACEOF
42289 /* confdefs.h.  */
42290 _ACEOF
42291 cat confdefs.h >>conftest.$ac_ext
42292 cat >>conftest.$ac_ext <<_ACEOF
42293 /* end confdefs.h.  */
42294
42295 /* Override any GCC internal prototype to avoid an error.
42296    Use char because int might match the return type of a GCC
42297    builtin and then its argument prototype would still apply.  */
42298 #ifdef __cplusplus
42299 extern "C"
42300 #endif
42301 char sched_yield ();
42302 int
42303 main ()
42304 {
42305 return sched_yield ();
42306   ;
42307   return 0;
42308 }
42309 _ACEOF
42310 rm -f conftest.$ac_objext conftest$ac_exeext
42311 if { (ac_try="$ac_link"
42312 case "(($ac_try" in
42313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42314   *) ac_try_echo=$ac_try;;
42315 esac
42316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42317   (eval "$ac_link") 2>conftest.er1
42318   ac_status=$?
42319   grep -v '^ *+' conftest.er1 >conftest.err
42320   rm -f conftest.er1
42321   cat conftest.err >&5
42322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42323   (exit $ac_status); } && {
42324          test -z "$ac_c_werror_flag" ||
42325          test ! -s conftest.err
42326        } && test -s conftest$ac_exeext &&
42327        $as_test_x conftest$ac_exeext; then
42328   ac_cv_lib_posix4_sched_yield=yes
42329 else
42330   echo "$as_me: failed program was:" >&5
42331 sed 's/^/| /' conftest.$ac_ext >&5
42332
42333         ac_cv_lib_posix4_sched_yield=no
42334 fi
42335
42336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42337       conftest$ac_exeext conftest.$ac_ext
42338 LIBS=$ac_check_lib_save_LIBS
42339 fi
42340 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
42341 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
42342 if test $ac_cv_lib_posix4_sched_yield = yes; then
42343   cat >>confdefs.h <<\_ACEOF
42344 #define HAVE_SCHED_YIELD 1
42345 _ACEOF
42346  POSIX4_LINK=" -lposix4"
42347 else
42348   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
42349 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
42350
42351 fi
42352
42353
42354
42355 fi
42356
42357       fi
42358
42359                                           HAVE_PRIOR_FUNCS=0
42360       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
42361 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
42362 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
42363   echo $ECHO_N "(cached) $ECHO_C" >&6
42364 else
42365   cat >conftest.$ac_ext <<_ACEOF
42366 /* confdefs.h.  */
42367 _ACEOF
42368 cat confdefs.h >>conftest.$ac_ext
42369 cat >>conftest.$ac_ext <<_ACEOF
42370 /* end confdefs.h.  */
42371 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
42372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42373 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
42374
42375 /* System header to define __stub macros and hopefully few prototypes,
42376     which can conflict with char pthread_attr_getschedpolicy (); below.
42377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42378     <limits.h> exists even on freestanding compilers.  */
42379
42380 #ifdef __STDC__
42381 # include <limits.h>
42382 #else
42383 # include <assert.h>
42384 #endif
42385
42386 #undef pthread_attr_getschedpolicy
42387
42388 /* Override any GCC internal prototype to avoid an error.
42389    Use char because int might match the return type of a GCC
42390    builtin and then its argument prototype would still apply.  */
42391 #ifdef __cplusplus
42392 extern "C"
42393 #endif
42394 char pthread_attr_getschedpolicy ();
42395 /* The GNU C library defines this for functions which it implements
42396     to always fail with ENOSYS.  Some functions are actually named
42397     something starting with __ and the normal name is an alias.  */
42398 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
42399 choke me
42400 #endif
42401
42402 int
42403 main ()
42404 {
42405 return pthread_attr_getschedpolicy ();
42406   ;
42407   return 0;
42408 }
42409 _ACEOF
42410 rm -f conftest.$ac_objext conftest$ac_exeext
42411 if { (ac_try="$ac_link"
42412 case "(($ac_try" in
42413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42414   *) ac_try_echo=$ac_try;;
42415 esac
42416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42417   (eval "$ac_link") 2>conftest.er1
42418   ac_status=$?
42419   grep -v '^ *+' conftest.er1 >conftest.err
42420   rm -f conftest.er1
42421   cat conftest.err >&5
42422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42423   (exit $ac_status); } && {
42424          test -z "$ac_c_werror_flag" ||
42425          test ! -s conftest.err
42426        } && test -s conftest$ac_exeext &&
42427        $as_test_x conftest$ac_exeext; then
42428   ac_cv_func_pthread_attr_getschedpolicy=yes
42429 else
42430   echo "$as_me: failed program was:" >&5
42431 sed 's/^/| /' conftest.$ac_ext >&5
42432
42433         ac_cv_func_pthread_attr_getschedpolicy=no
42434 fi
42435
42436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42437       conftest$ac_exeext conftest.$ac_ext
42438 fi
42439 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
42440 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
42441 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
42442   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
42443 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
42444 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
42445   echo $ECHO_N "(cached) $ECHO_C" >&6
42446 else
42447   cat >conftest.$ac_ext <<_ACEOF
42448 /* confdefs.h.  */
42449 _ACEOF
42450 cat confdefs.h >>conftest.$ac_ext
42451 cat >>conftest.$ac_ext <<_ACEOF
42452 /* end confdefs.h.  */
42453 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
42454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42455 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
42456
42457 /* System header to define __stub macros and hopefully few prototypes,
42458     which can conflict with char pthread_attr_setschedparam (); below.
42459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42460     <limits.h> exists even on freestanding compilers.  */
42461
42462 #ifdef __STDC__
42463 # include <limits.h>
42464 #else
42465 # include <assert.h>
42466 #endif
42467
42468 #undef pthread_attr_setschedparam
42469
42470 /* Override any GCC internal prototype to avoid an error.
42471    Use char because int might match the return type of a GCC
42472    builtin and then its argument prototype would still apply.  */
42473 #ifdef __cplusplus
42474 extern "C"
42475 #endif
42476 char pthread_attr_setschedparam ();
42477 /* The GNU C library defines this for functions which it implements
42478     to always fail with ENOSYS.  Some functions are actually named
42479     something starting with __ and the normal name is an alias.  */
42480 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
42481 choke me
42482 #endif
42483
42484 int
42485 main ()
42486 {
42487 return pthread_attr_setschedparam ();
42488   ;
42489   return 0;
42490 }
42491 _ACEOF
42492 rm -f conftest.$ac_objext conftest$ac_exeext
42493 if { (ac_try="$ac_link"
42494 case "(($ac_try" in
42495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42496   *) ac_try_echo=$ac_try;;
42497 esac
42498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42499   (eval "$ac_link") 2>conftest.er1
42500   ac_status=$?
42501   grep -v '^ *+' conftest.er1 >conftest.err
42502   rm -f conftest.er1
42503   cat conftest.err >&5
42504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42505   (exit $ac_status); } && {
42506          test -z "$ac_c_werror_flag" ||
42507          test ! -s conftest.err
42508        } && test -s conftest$ac_exeext &&
42509        $as_test_x conftest$ac_exeext; then
42510   ac_cv_func_pthread_attr_setschedparam=yes
42511 else
42512   echo "$as_me: failed program was:" >&5
42513 sed 's/^/| /' conftest.$ac_ext >&5
42514
42515         ac_cv_func_pthread_attr_setschedparam=no
42516 fi
42517
42518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42519       conftest$ac_exeext conftest.$ac_ext
42520 fi
42521 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
42522 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
42523 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
42524   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
42525 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
42526 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
42527   echo $ECHO_N "(cached) $ECHO_C" >&6
42528 else
42529   cat >conftest.$ac_ext <<_ACEOF
42530 /* confdefs.h.  */
42531 _ACEOF
42532 cat confdefs.h >>conftest.$ac_ext
42533 cat >>conftest.$ac_ext <<_ACEOF
42534 /* end confdefs.h.  */
42535 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
42536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42537 #define sched_get_priority_max innocuous_sched_get_priority_max
42538
42539 /* System header to define __stub macros and hopefully few prototypes,
42540     which can conflict with char sched_get_priority_max (); below.
42541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42542     <limits.h> exists even on freestanding compilers.  */
42543
42544 #ifdef __STDC__
42545 # include <limits.h>
42546 #else
42547 # include <assert.h>
42548 #endif
42549
42550 #undef sched_get_priority_max
42551
42552 /* Override any GCC internal prototype to avoid an error.
42553    Use char because int might match the return type of a GCC
42554    builtin and then its argument prototype would still apply.  */
42555 #ifdef __cplusplus
42556 extern "C"
42557 #endif
42558 char sched_get_priority_max ();
42559 /* The GNU C library defines this for functions which it implements
42560     to always fail with ENOSYS.  Some functions are actually named
42561     something starting with __ and the normal name is an alias.  */
42562 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
42563 choke me
42564 #endif
42565
42566 int
42567 main ()
42568 {
42569 return sched_get_priority_max ();
42570   ;
42571   return 0;
42572 }
42573 _ACEOF
42574 rm -f conftest.$ac_objext conftest$ac_exeext
42575 if { (ac_try="$ac_link"
42576 case "(($ac_try" in
42577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42578   *) ac_try_echo=$ac_try;;
42579 esac
42580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42581   (eval "$ac_link") 2>conftest.er1
42582   ac_status=$?
42583   grep -v '^ *+' conftest.er1 >conftest.err
42584   rm -f conftest.er1
42585   cat conftest.err >&5
42586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42587   (exit $ac_status); } && {
42588          test -z "$ac_c_werror_flag" ||
42589          test ! -s conftest.err
42590        } && test -s conftest$ac_exeext &&
42591        $as_test_x conftest$ac_exeext; then
42592   ac_cv_func_sched_get_priority_max=yes
42593 else
42594   echo "$as_me: failed program was:" >&5
42595 sed 's/^/| /' conftest.$ac_ext >&5
42596
42597         ac_cv_func_sched_get_priority_max=no
42598 fi
42599
42600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42601       conftest$ac_exeext conftest.$ac_ext
42602 fi
42603 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
42604 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
42605 if test $ac_cv_func_sched_get_priority_max = yes; then
42606   HAVE_PRIOR_FUNCS=1
42607 else
42608   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
42609 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
42610 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
42611   echo $ECHO_N "(cached) $ECHO_C" >&6
42612 else
42613   ac_check_lib_save_LIBS=$LIBS
42614 LIBS="-lposix4  $LIBS"
42615 cat >conftest.$ac_ext <<_ACEOF
42616 /* confdefs.h.  */
42617 _ACEOF
42618 cat confdefs.h >>conftest.$ac_ext
42619 cat >>conftest.$ac_ext <<_ACEOF
42620 /* end confdefs.h.  */
42621
42622 /* Override any GCC internal prototype to avoid an error.
42623    Use char because int might match the return type of a GCC
42624    builtin and then its argument prototype would still apply.  */
42625 #ifdef __cplusplus
42626 extern "C"
42627 #endif
42628 char sched_get_priority_max ();
42629 int
42630 main ()
42631 {
42632 return sched_get_priority_max ();
42633   ;
42634   return 0;
42635 }
42636 _ACEOF
42637 rm -f conftest.$ac_objext conftest$ac_exeext
42638 if { (ac_try="$ac_link"
42639 case "(($ac_try" in
42640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42641   *) ac_try_echo=$ac_try;;
42642 esac
42643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42644   (eval "$ac_link") 2>conftest.er1
42645   ac_status=$?
42646   grep -v '^ *+' conftest.er1 >conftest.err
42647   rm -f conftest.er1
42648   cat conftest.err >&5
42649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42650   (exit $ac_status); } && {
42651          test -z "$ac_c_werror_flag" ||
42652          test ! -s conftest.err
42653        } && test -s conftest$ac_exeext &&
42654        $as_test_x conftest$ac_exeext; then
42655   ac_cv_lib_posix4_sched_get_priority_max=yes
42656 else
42657   echo "$as_me: failed program was:" >&5
42658 sed 's/^/| /' conftest.$ac_ext >&5
42659
42660         ac_cv_lib_posix4_sched_get_priority_max=no
42661 fi
42662
42663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42664       conftest$ac_exeext conftest.$ac_ext
42665 LIBS=$ac_check_lib_save_LIBS
42666 fi
42667 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
42668 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
42669 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
42670
42671                                 HAVE_PRIOR_FUNCS=1
42672                                 POSIX4_LINK=" -lposix4"
42673
42674 fi
42675
42676
42677 fi
42678
42679
42680 fi
42681
42682
42683 fi
42684
42685
42686       if test "$HAVE_PRIOR_FUNCS" = 1; then
42687         cat >>confdefs.h <<\_ACEOF
42688 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
42689 _ACEOF
42690
42691       else
42692         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
42693 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
42694       fi
42695
42696       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
42697 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
42698 if test "${ac_cv_func_pthread_cancel+set}" = set; then
42699   echo $ECHO_N "(cached) $ECHO_C" >&6
42700 else
42701   cat >conftest.$ac_ext <<_ACEOF
42702 /* confdefs.h.  */
42703 _ACEOF
42704 cat confdefs.h >>conftest.$ac_ext
42705 cat >>conftest.$ac_ext <<_ACEOF
42706 /* end confdefs.h.  */
42707 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
42708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42709 #define pthread_cancel innocuous_pthread_cancel
42710
42711 /* System header to define __stub macros and hopefully few prototypes,
42712     which can conflict with char pthread_cancel (); below.
42713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42714     <limits.h> exists even on freestanding compilers.  */
42715
42716 #ifdef __STDC__
42717 # include <limits.h>
42718 #else
42719 # include <assert.h>
42720 #endif
42721
42722 #undef pthread_cancel
42723
42724 /* Override any GCC internal prototype to avoid an error.
42725    Use char because int might match the return type of a GCC
42726    builtin and then its argument prototype would still apply.  */
42727 #ifdef __cplusplus
42728 extern "C"
42729 #endif
42730 char pthread_cancel ();
42731 /* The GNU C library defines this for functions which it implements
42732     to always fail with ENOSYS.  Some functions are actually named
42733     something starting with __ and the normal name is an alias.  */
42734 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
42735 choke me
42736 #endif
42737
42738 int
42739 main ()
42740 {
42741 return pthread_cancel ();
42742   ;
42743   return 0;
42744 }
42745 _ACEOF
42746 rm -f conftest.$ac_objext conftest$ac_exeext
42747 if { (ac_try="$ac_link"
42748 case "(($ac_try" in
42749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42750   *) ac_try_echo=$ac_try;;
42751 esac
42752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42753   (eval "$ac_link") 2>conftest.er1
42754   ac_status=$?
42755   grep -v '^ *+' conftest.er1 >conftest.err
42756   rm -f conftest.er1
42757   cat conftest.err >&5
42758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42759   (exit $ac_status); } && {
42760          test -z "$ac_c_werror_flag" ||
42761          test ! -s conftest.err
42762        } && test -s conftest$ac_exeext &&
42763        $as_test_x conftest$ac_exeext; then
42764   ac_cv_func_pthread_cancel=yes
42765 else
42766   echo "$as_me: failed program was:" >&5
42767 sed 's/^/| /' conftest.$ac_ext >&5
42768
42769         ac_cv_func_pthread_cancel=no
42770 fi
42771
42772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42773       conftest$ac_exeext conftest.$ac_ext
42774 fi
42775 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
42776 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
42777 if test $ac_cv_func_pthread_cancel = yes; then
42778   cat >>confdefs.h <<\_ACEOF
42779 #define HAVE_PTHREAD_CANCEL 1
42780 _ACEOF
42781
42782 else
42783   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
42784 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
42785 fi
42786
42787
42788       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
42789 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
42790 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
42791   echo $ECHO_N "(cached) $ECHO_C" >&6
42792 else
42793   cat >conftest.$ac_ext <<_ACEOF
42794 /* confdefs.h.  */
42795 _ACEOF
42796 cat confdefs.h >>conftest.$ac_ext
42797 cat >>conftest.$ac_ext <<_ACEOF
42798 /* end confdefs.h.  */
42799 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
42800    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42801 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
42802
42803 /* System header to define __stub macros and hopefully few prototypes,
42804     which can conflict with char pthread_mutex_timedlock (); below.
42805     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42806     <limits.h> exists even on freestanding compilers.  */
42807
42808 #ifdef __STDC__
42809 # include <limits.h>
42810 #else
42811 # include <assert.h>
42812 #endif
42813
42814 #undef pthread_mutex_timedlock
42815
42816 /* Override any GCC internal prototype to avoid an error.
42817    Use char because int might match the return type of a GCC
42818    builtin and then its argument prototype would still apply.  */
42819 #ifdef __cplusplus
42820 extern "C"
42821 #endif
42822 char pthread_mutex_timedlock ();
42823 /* The GNU C library defines this for functions which it implements
42824     to always fail with ENOSYS.  Some functions are actually named
42825     something starting with __ and the normal name is an alias.  */
42826 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
42827 choke me
42828 #endif
42829
42830 int
42831 main ()
42832 {
42833 return pthread_mutex_timedlock ();
42834   ;
42835   return 0;
42836 }
42837 _ACEOF
42838 rm -f conftest.$ac_objext conftest$ac_exeext
42839 if { (ac_try="$ac_link"
42840 case "(($ac_try" in
42841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42842   *) ac_try_echo=$ac_try;;
42843 esac
42844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42845   (eval "$ac_link") 2>conftest.er1
42846   ac_status=$?
42847   grep -v '^ *+' conftest.er1 >conftest.err
42848   rm -f conftest.er1
42849   cat conftest.err >&5
42850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42851   (exit $ac_status); } && {
42852          test -z "$ac_c_werror_flag" ||
42853          test ! -s conftest.err
42854        } && test -s conftest$ac_exeext &&
42855        $as_test_x conftest$ac_exeext; then
42856   ac_cv_func_pthread_mutex_timedlock=yes
42857 else
42858   echo "$as_me: failed program was:" >&5
42859 sed 's/^/| /' conftest.$ac_ext >&5
42860
42861         ac_cv_func_pthread_mutex_timedlock=no
42862 fi
42863
42864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42865       conftest$ac_exeext conftest.$ac_ext
42866 fi
42867 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
42868 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
42869 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
42870   cat >>confdefs.h <<\_ACEOF
42871 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
42872 _ACEOF
42873
42874 else
42875   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
42876 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
42877 fi
42878
42879
42880       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
42881 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
42882 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
42883   echo $ECHO_N "(cached) $ECHO_C" >&6
42884 else
42885   cat >conftest.$ac_ext <<_ACEOF
42886 /* confdefs.h.  */
42887 _ACEOF
42888 cat confdefs.h >>conftest.$ac_ext
42889 cat >>conftest.$ac_ext <<_ACEOF
42890 /* end confdefs.h.  */
42891 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
42892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42893 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
42894
42895 /* System header to define __stub macros and hopefully few prototypes,
42896     which can conflict with char pthread_attr_setstacksize (); below.
42897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42898     <limits.h> exists even on freestanding compilers.  */
42899
42900 #ifdef __STDC__
42901 # include <limits.h>
42902 #else
42903 # include <assert.h>
42904 #endif
42905
42906 #undef pthread_attr_setstacksize
42907
42908 /* Override any GCC internal prototype to avoid an error.
42909    Use char because int might match the return type of a GCC
42910    builtin and then its argument prototype would still apply.  */
42911 #ifdef __cplusplus
42912 extern "C"
42913 #endif
42914 char pthread_attr_setstacksize ();
42915 /* The GNU C library defines this for functions which it implements
42916     to always fail with ENOSYS.  Some functions are actually named
42917     something starting with __ and the normal name is an alias.  */
42918 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
42919 choke me
42920 #endif
42921
42922 int
42923 main ()
42924 {
42925 return pthread_attr_setstacksize ();
42926   ;
42927   return 0;
42928 }
42929 _ACEOF
42930 rm -f conftest.$ac_objext conftest$ac_exeext
42931 if { (ac_try="$ac_link"
42932 case "(($ac_try" in
42933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42934   *) ac_try_echo=$ac_try;;
42935 esac
42936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42937   (eval "$ac_link") 2>conftest.er1
42938   ac_status=$?
42939   grep -v '^ *+' conftest.er1 >conftest.err
42940   rm -f conftest.er1
42941   cat conftest.err >&5
42942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42943   (exit $ac_status); } && {
42944          test -z "$ac_c_werror_flag" ||
42945          test ! -s conftest.err
42946        } && test -s conftest$ac_exeext &&
42947        $as_test_x conftest$ac_exeext; then
42948   ac_cv_func_pthread_attr_setstacksize=yes
42949 else
42950   echo "$as_me: failed program was:" >&5
42951 sed 's/^/| /' conftest.$ac_ext >&5
42952
42953         ac_cv_func_pthread_attr_setstacksize=no
42954 fi
42955
42956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42957       conftest$ac_exeext conftest.$ac_ext
42958 fi
42959 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
42960 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
42961 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
42962   cat >>confdefs.h <<\_ACEOF
42963 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
42964 _ACEOF
42965
42966 fi
42967
42968
42969
42970       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
42971 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
42972 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
42973   echo $ECHO_N "(cached) $ECHO_C" >&6
42974 else
42975
42976         cat >conftest.$ac_ext <<_ACEOF
42977 /* confdefs.h.  */
42978 _ACEOF
42979 cat confdefs.h >>conftest.$ac_ext
42980 cat >>conftest.$ac_ext <<_ACEOF
42981 /* end confdefs.h.  */
42982 #include <pthread.h>
42983 int
42984 main ()
42985 {
42986
42987                pthread_mutexattr_t attr;
42988                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42989
42990   ;
42991   return 0;
42992 }
42993 _ACEOF
42994 rm -f conftest.$ac_objext
42995 if { (ac_try="$ac_compile"
42996 case "(($ac_try" in
42997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42998   *) ac_try_echo=$ac_try;;
42999 esac
43000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43001   (eval "$ac_compile") 2>conftest.er1
43002   ac_status=$?
43003   grep -v '^ *+' conftest.er1 >conftest.err
43004   rm -f conftest.er1
43005   cat conftest.err >&5
43006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43007   (exit $ac_status); } && {
43008          test -z "$ac_c_werror_flag" ||
43009          test ! -s conftest.err
43010        } && test -s conftest.$ac_objext; then
43011   wx_cv_type_pthread_mutexattr_t=yes
43012 else
43013   echo "$as_me: failed program was:" >&5
43014 sed 's/^/| /' conftest.$ac_ext >&5
43015
43016         wx_cv_type_pthread_mutexattr_t=no
43017
43018 fi
43019
43020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43021
43022 fi
43023 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
43024 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
43025
43026       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
43027         cat >>confdefs.h <<\_ACEOF
43028 #define HAVE_PTHREAD_MUTEXATTR_T 1
43029 _ACEOF
43030
43031
43032                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
43033 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
43034 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
43035   echo $ECHO_N "(cached) $ECHO_C" >&6
43036 else
43037
43038                        cat >conftest.$ac_ext <<_ACEOF
43039 /* confdefs.h.  */
43040 _ACEOF
43041 cat confdefs.h >>conftest.$ac_ext
43042 cat >>conftest.$ac_ext <<_ACEOF
43043 /* end confdefs.h.  */
43044 #include <pthread.h>
43045 int
43046 main ()
43047 {
43048
43049                                pthread_mutexattr_t attr;
43050                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
43051
43052   ;
43053   return 0;
43054 }
43055 _ACEOF
43056 rm -f conftest.$ac_objext
43057 if { (ac_try="$ac_compile"
43058 case "(($ac_try" in
43059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43060   *) ac_try_echo=$ac_try;;
43061 esac
43062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43063   (eval "$ac_compile") 2>conftest.er1
43064   ac_status=$?
43065   grep -v '^ *+' conftest.er1 >conftest.err
43066   rm -f conftest.er1
43067   cat conftest.err >&5
43068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43069   (exit $ac_status); } && {
43070          test -z "$ac_c_werror_flag" ||
43071          test ! -s conftest.err
43072        } && test -s conftest.$ac_objext; then
43073   wx_cv_func_pthread_mutexattr_settype_decl=yes
43074 else
43075   echo "$as_me: failed program was:" >&5
43076 sed 's/^/| /' conftest.$ac_ext >&5
43077
43078         wx_cv_func_pthread_mutexattr_settype_decl=no
43079
43080 fi
43081
43082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43083
43084 fi
43085 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
43086 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
43087         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
43088             cat >>confdefs.h <<\_ACEOF
43089 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
43090 _ACEOF
43091
43092         fi
43093       else
43094                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
43095 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
43096 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
43097   echo $ECHO_N "(cached) $ECHO_C" >&6
43098 else
43099
43100             cat >conftest.$ac_ext <<_ACEOF
43101 /* confdefs.h.  */
43102 _ACEOF
43103 cat confdefs.h >>conftest.$ac_ext
43104 cat >>conftest.$ac_ext <<_ACEOF
43105 /* end confdefs.h.  */
43106 #include <pthread.h>
43107 int
43108 main ()
43109 {
43110
43111                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
43112
43113   ;
43114   return 0;
43115 }
43116 _ACEOF
43117 rm -f conftest.$ac_objext
43118 if { (ac_try="$ac_compile"
43119 case "(($ac_try" in
43120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43121   *) ac_try_echo=$ac_try;;
43122 esac
43123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43124   (eval "$ac_compile") 2>conftest.er1
43125   ac_status=$?
43126   grep -v '^ *+' conftest.er1 >conftest.err
43127   rm -f conftest.er1
43128   cat conftest.err >&5
43129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43130   (exit $ac_status); } && {
43131          test -z "$ac_c_werror_flag" ||
43132          test ! -s conftest.err
43133        } && test -s conftest.$ac_objext; then
43134
43135                     wx_cv_type_pthread_rec_mutex_init=yes
43136
43137 else
43138   echo "$as_me: failed program was:" >&5
43139 sed 's/^/| /' conftest.$ac_ext >&5
43140
43141
43142                     wx_cv_type_pthread_rec_mutex_init=no
43143
43144
43145 fi
43146
43147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43148
43149 fi
43150 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
43151 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
43152         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
43153           cat >>confdefs.h <<\_ACEOF
43154 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
43155 _ACEOF
43156
43157         else
43158                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
43159 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
43160         fi
43161       fi
43162     fi
43163
43164 else
43165     if test "$wxUSE_THREADS" = "yes" ; then
43166       case "${host}" in
43167         *-*-mingw32* )
43168                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
43169 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
43170 if test "${wx_cv_cflags_mthread+set}" = set; then
43171   echo $ECHO_N "(cached) $ECHO_C" >&6
43172 else
43173
43174                     CFLAGS_OLD="$CFLAGS"
43175                     CFLAGS="-mthreads $CFLAGS"
43176                     cat >conftest.$ac_ext <<_ACEOF
43177 /* confdefs.h.  */
43178 _ACEOF
43179 cat confdefs.h >>conftest.$ac_ext
43180 cat >>conftest.$ac_ext <<_ACEOF
43181 /* end confdefs.h.  */
43182
43183 int
43184 main ()
43185 {
43186
43187   ;
43188   return 0;
43189 }
43190 _ACEOF
43191 rm -f conftest.$ac_objext
43192 if { (ac_try="$ac_compile"
43193 case "(($ac_try" in
43194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43195   *) ac_try_echo=$ac_try;;
43196 esac
43197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43198   (eval "$ac_compile") 2>conftest.er1
43199   ac_status=$?
43200   grep -v '^ *+' conftest.er1 >conftest.err
43201   rm -f conftest.er1
43202   cat conftest.err >&5
43203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43204   (exit $ac_status); } && {
43205          test -z "$ac_c_werror_flag" ||
43206          test ! -s conftest.err
43207        } && test -s conftest.$ac_objext; then
43208   wx_cv_cflags_mthread=yes
43209 else
43210   echo "$as_me: failed program was:" >&5
43211 sed 's/^/| /' conftest.$ac_ext >&5
43212
43213         wx_cv_cflags_mthread=no
43214
43215 fi
43216
43217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43218
43219
43220 fi
43221 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
43222 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
43223
43224             if test "$wx_cv_cflags_mthread" = "yes"; then
43225                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
43226                 LDFLAGS="$LDFLAGS -mthreads"
43227             else
43228                                 CFLAGS="$CFLAGS_OLD"
43229             fi
43230         ;;
43231         *-pc-os2*emx )
43232             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
43233             LDFLAGS="$LDFLAGS -Zmt"
43234         ;;
43235       esac
43236     fi
43237 fi
43238
43239 { echo "$as_me:$LINENO: checking for localtime_r" >&5
43240 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
43241 if test "${ac_cv_func_localtime_r+set}" = set; then
43242   echo $ECHO_N "(cached) $ECHO_C" >&6
43243 else
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 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
43251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43252 #define localtime_r innocuous_localtime_r
43253
43254 /* System header to define __stub macros and hopefully few prototypes,
43255     which can conflict with char localtime_r (); below.
43256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43257     <limits.h> exists even on freestanding compilers.  */
43258
43259 #ifdef __STDC__
43260 # include <limits.h>
43261 #else
43262 # include <assert.h>
43263 #endif
43264
43265 #undef localtime_r
43266
43267 /* Override any GCC internal prototype to avoid an error.
43268    Use char because int might match the return type of a GCC
43269    builtin and then its argument prototype would still apply.  */
43270 #ifdef __cplusplus
43271 extern "C"
43272 #endif
43273 char localtime_r ();
43274 /* The GNU C library defines this for functions which it implements
43275     to always fail with ENOSYS.  Some functions are actually named
43276     something starting with __ and the normal name is an alias.  */
43277 #if defined __stub_localtime_r || defined __stub___localtime_r
43278 choke me
43279 #endif
43280
43281 int
43282 main ()
43283 {
43284 return localtime_r ();
43285   ;
43286   return 0;
43287 }
43288 _ACEOF
43289 rm -f conftest.$ac_objext conftest$ac_exeext
43290 if { (ac_try="$ac_link"
43291 case "(($ac_try" in
43292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43293   *) ac_try_echo=$ac_try;;
43294 esac
43295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43296   (eval "$ac_link") 2>conftest.er1
43297   ac_status=$?
43298   grep -v '^ *+' conftest.er1 >conftest.err
43299   rm -f conftest.er1
43300   cat conftest.err >&5
43301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43302   (exit $ac_status); } && {
43303          test -z "$ac_c_werror_flag" ||
43304          test ! -s conftest.err
43305        } && test -s conftest$ac_exeext &&
43306        $as_test_x conftest$ac_exeext; then
43307   ac_cv_func_localtime_r=yes
43308 else
43309   echo "$as_me: failed program was:" >&5
43310 sed 's/^/| /' conftest.$ac_ext >&5
43311
43312         ac_cv_func_localtime_r=no
43313 fi
43314
43315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43316       conftest$ac_exeext conftest.$ac_ext
43317 fi
43318 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
43319 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
43320 if test $ac_cv_func_localtime_r = yes; then
43321    cat >>confdefs.h <<\_ACEOF
43322 #define HAVE_LOCALTIME_R 1
43323 _ACEOF
43324
43325 fi
43326
43327 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
43328 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
43329 if test "${ac_cv_func_gmtime_r+set}" = set; then
43330   echo $ECHO_N "(cached) $ECHO_C" >&6
43331 else
43332   cat >conftest.$ac_ext <<_ACEOF
43333 /* confdefs.h.  */
43334 _ACEOF
43335 cat confdefs.h >>conftest.$ac_ext
43336 cat >>conftest.$ac_ext <<_ACEOF
43337 /* end confdefs.h.  */
43338 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
43339    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43340 #define gmtime_r innocuous_gmtime_r
43341
43342 /* System header to define __stub macros and hopefully few prototypes,
43343     which can conflict with char gmtime_r (); below.
43344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43345     <limits.h> exists even on freestanding compilers.  */
43346
43347 #ifdef __STDC__
43348 # include <limits.h>
43349 #else
43350 # include <assert.h>
43351 #endif
43352
43353 #undef gmtime_r
43354
43355 /* Override any GCC internal prototype to avoid an error.
43356    Use char because int might match the return type of a GCC
43357    builtin and then its argument prototype would still apply.  */
43358 #ifdef __cplusplus
43359 extern "C"
43360 #endif
43361 char gmtime_r ();
43362 /* The GNU C library defines this for functions which it implements
43363     to always fail with ENOSYS.  Some functions are actually named
43364     something starting with __ and the normal name is an alias.  */
43365 #if defined __stub_gmtime_r || defined __stub___gmtime_r
43366 choke me
43367 #endif
43368
43369 int
43370 main ()
43371 {
43372 return gmtime_r ();
43373   ;
43374   return 0;
43375 }
43376 _ACEOF
43377 rm -f conftest.$ac_objext conftest$ac_exeext
43378 if { (ac_try="$ac_link"
43379 case "(($ac_try" in
43380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43381   *) ac_try_echo=$ac_try;;
43382 esac
43383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43384   (eval "$ac_link") 2>conftest.er1
43385   ac_status=$?
43386   grep -v '^ *+' conftest.er1 >conftest.err
43387   rm -f conftest.er1
43388   cat conftest.err >&5
43389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43390   (exit $ac_status); } && {
43391          test -z "$ac_c_werror_flag" ||
43392          test ! -s conftest.err
43393        } && test -s conftest$ac_exeext &&
43394        $as_test_x conftest$ac_exeext; then
43395   ac_cv_func_gmtime_r=yes
43396 else
43397   echo "$as_me: failed program was:" >&5
43398 sed 's/^/| /' conftest.$ac_ext >&5
43399
43400         ac_cv_func_gmtime_r=no
43401 fi
43402
43403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43404       conftest$ac_exeext conftest.$ac_ext
43405 fi
43406 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
43407 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
43408 if test $ac_cv_func_gmtime_r = yes; then
43409    cat >>confdefs.h <<\_ACEOF
43410 #define HAVE_GMTIME_R 1
43411 _ACEOF
43412
43413 fi
43414
43415 { echo "$as_me:$LINENO: checking for readdir_r" >&5
43416 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
43417 if test "${ac_cv_func_readdir_r+set}" = set; then
43418   echo $ECHO_N "(cached) $ECHO_C" >&6
43419 else
43420   cat >conftest.$ac_ext <<_ACEOF
43421 /* confdefs.h.  */
43422 _ACEOF
43423 cat confdefs.h >>conftest.$ac_ext
43424 cat >>conftest.$ac_ext <<_ACEOF
43425 /* end confdefs.h.  */
43426 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
43427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43428 #define readdir_r innocuous_readdir_r
43429
43430 /* System header to define __stub macros and hopefully few prototypes,
43431     which can conflict with char readdir_r (); below.
43432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43433     <limits.h> exists even on freestanding compilers.  */
43434
43435 #ifdef __STDC__
43436 # include <limits.h>
43437 #else
43438 # include <assert.h>
43439 #endif
43440
43441 #undef readdir_r
43442
43443 /* Override any GCC internal prototype to avoid an error.
43444    Use char because int might match the return type of a GCC
43445    builtin and then its argument prototype would still apply.  */
43446 #ifdef __cplusplus
43447 extern "C"
43448 #endif
43449 char readdir_r ();
43450 /* The GNU C library defines this for functions which it implements
43451     to always fail with ENOSYS.  Some functions are actually named
43452     something starting with __ and the normal name is an alias.  */
43453 #if defined __stub_readdir_r || defined __stub___readdir_r
43454 choke me
43455 #endif
43456
43457 int
43458 main ()
43459 {
43460 return readdir_r ();
43461   ;
43462   return 0;
43463 }
43464 _ACEOF
43465 rm -f conftest.$ac_objext conftest$ac_exeext
43466 if { (ac_try="$ac_link"
43467 case "(($ac_try" in
43468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43469   *) ac_try_echo=$ac_try;;
43470 esac
43471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43472   (eval "$ac_link") 2>conftest.er1
43473   ac_status=$?
43474   grep -v '^ *+' conftest.er1 >conftest.err
43475   rm -f conftest.er1
43476   cat conftest.err >&5
43477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43478   (exit $ac_status); } && {
43479          test -z "$ac_c_werror_flag" ||
43480          test ! -s conftest.err
43481        } && test -s conftest$ac_exeext &&
43482        $as_test_x conftest$ac_exeext; then
43483   ac_cv_func_readdir_r=yes
43484 else
43485   echo "$as_me: failed program was:" >&5
43486 sed 's/^/| /' conftest.$ac_ext >&5
43487
43488         ac_cv_func_readdir_r=no
43489 fi
43490
43491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43492       conftest$ac_exeext conftest.$ac_ext
43493 fi
43494 { echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
43495 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6; }
43496 if test $ac_cv_func_readdir_r = yes; then
43497    cat >>confdefs.h <<\_ACEOF
43498 #define HAVE_READDIR_R 1
43499 _ACEOF
43500
43501 fi
43502
43503
43504
43505
43506     ac_ext=c
43507 ac_cpp='$CPP $CPPFLAGS'
43508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43511
43512     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
43513 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
43514
43515     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
43516   echo $ECHO_N "(cached) $ECHO_C" >&6
43517 else
43518
43519
43520 ################################################################
43521
43522 ac_cv_func_which_gethostbyname_r=unknown
43523
43524 #
43525 # ONE ARGUMENT (sanity check)
43526 #
43527
43528 # This should fail, as there is no variant of gethostbyname_r() that takes
43529 # a single argument. If it actually compiles, then we can assume that
43530 # netdb.h is not declaring the function, and the compiler is thereby
43531 # assuming an implicit prototype. In which case, we're out of luck.
43532 #
43533 cat >conftest.$ac_ext <<_ACEOF
43534 /* confdefs.h.  */
43535 _ACEOF
43536 cat confdefs.h >>conftest.$ac_ext
43537 cat >>conftest.$ac_ext <<_ACEOF
43538 /* end confdefs.h.  */
43539 #include <netdb.h>
43540 int
43541 main ()
43542 {
43543
43544             char *name = "www.gnu.org";
43545             (void)gethostbyname_r(name) /* ; */
43546
43547   ;
43548   return 0;
43549 }
43550 _ACEOF
43551 rm -f conftest.$ac_objext
43552 if { (ac_try="$ac_compile"
43553 case "(($ac_try" in
43554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43555   *) ac_try_echo=$ac_try;;
43556 esac
43557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43558   (eval "$ac_compile") 2>conftest.er1
43559   ac_status=$?
43560   grep -v '^ *+' conftest.er1 >conftest.err
43561   rm -f conftest.er1
43562   cat conftest.err >&5
43563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43564   (exit $ac_status); } && {
43565          test -z "$ac_c_werror_flag" ||
43566          test ! -s conftest.err
43567        } && test -s conftest.$ac_objext; then
43568   ac_cv_func_which_gethostbyname_r=no
43569 else
43570   echo "$as_me: failed program was:" >&5
43571 sed 's/^/| /' conftest.$ac_ext >&5
43572
43573
43574 fi
43575
43576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43577
43578 #
43579 # SIX ARGUMENTS
43580 # (e.g. Linux)
43581 #
43582
43583 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43584
43585 cat >conftest.$ac_ext <<_ACEOF
43586 /* confdefs.h.  */
43587 _ACEOF
43588 cat confdefs.h >>conftest.$ac_ext
43589 cat >>conftest.$ac_ext <<_ACEOF
43590 /* end confdefs.h.  */
43591 #include <netdb.h>
43592 int
43593 main ()
43594 {
43595
43596             char *name = "www.gnu.org";
43597             struct hostent ret, *retp;
43598             char buf[1024];
43599             int buflen = 1024;
43600             int my_h_errno;
43601             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
43602
43603   ;
43604   return 0;
43605 }
43606 _ACEOF
43607 rm -f conftest.$ac_objext
43608 if { (ac_try="$ac_compile"
43609 case "(($ac_try" in
43610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43611   *) ac_try_echo=$ac_try;;
43612 esac
43613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43614   (eval "$ac_compile") 2>conftest.er1
43615   ac_status=$?
43616   grep -v '^ *+' conftest.er1 >conftest.err
43617   rm -f conftest.er1
43618   cat conftest.err >&5
43619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43620   (exit $ac_status); } && {
43621          test -z "$ac_c_werror_flag" ||
43622          test ! -s conftest.err
43623        } && test -s conftest.$ac_objext; then
43624   ac_cv_func_which_gethostbyname_r=six
43625 else
43626   echo "$as_me: failed program was:" >&5
43627 sed 's/^/| /' conftest.$ac_ext >&5
43628
43629
43630 fi
43631
43632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43633
43634 fi
43635
43636 #
43637 # FIVE ARGUMENTS
43638 # (e.g. Solaris)
43639 #
43640
43641 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43642
43643 cat >conftest.$ac_ext <<_ACEOF
43644 /* confdefs.h.  */
43645 _ACEOF
43646 cat confdefs.h >>conftest.$ac_ext
43647 cat >>conftest.$ac_ext <<_ACEOF
43648 /* end confdefs.h.  */
43649 #include <netdb.h>
43650 int
43651 main ()
43652 {
43653
43654             char *name = "www.gnu.org";
43655             struct hostent ret;
43656             char buf[1024];
43657             int buflen = 1024;
43658             int my_h_errno;
43659             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
43660
43661   ;
43662   return 0;
43663 }
43664 _ACEOF
43665 rm -f conftest.$ac_objext
43666 if { (ac_try="$ac_compile"
43667 case "(($ac_try" in
43668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43669   *) ac_try_echo=$ac_try;;
43670 esac
43671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43672   (eval "$ac_compile") 2>conftest.er1
43673   ac_status=$?
43674   grep -v '^ *+' conftest.er1 >conftest.err
43675   rm -f conftest.er1
43676   cat conftest.err >&5
43677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43678   (exit $ac_status); } && {
43679          test -z "$ac_c_werror_flag" ||
43680          test ! -s conftest.err
43681        } && test -s conftest.$ac_objext; then
43682   ac_cv_func_which_gethostbyname_r=five
43683 else
43684   echo "$as_me: failed program was:" >&5
43685 sed 's/^/| /' conftest.$ac_ext >&5
43686
43687
43688 fi
43689
43690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43691
43692 fi
43693
43694 #
43695 # THREE ARGUMENTS
43696 # (e.g. AIX, HP-UX, Tru64)
43697 #
43698
43699 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43700
43701 cat >conftest.$ac_ext <<_ACEOF
43702 /* confdefs.h.  */
43703 _ACEOF
43704 cat confdefs.h >>conftest.$ac_ext
43705 cat >>conftest.$ac_ext <<_ACEOF
43706 /* end confdefs.h.  */
43707 #include <netdb.h>
43708 int
43709 main ()
43710 {
43711
43712             char *name = "www.gnu.org";
43713             struct hostent ret;
43714             struct hostent_data data;
43715             (void)gethostbyname_r(name, &ret, &data) /* ; */
43716
43717   ;
43718   return 0;
43719 }
43720 _ACEOF
43721 rm -f conftest.$ac_objext
43722 if { (ac_try="$ac_compile"
43723 case "(($ac_try" in
43724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43725   *) ac_try_echo=$ac_try;;
43726 esac
43727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43728   (eval "$ac_compile") 2>conftest.er1
43729   ac_status=$?
43730   grep -v '^ *+' conftest.er1 >conftest.err
43731   rm -f conftest.er1
43732   cat conftest.err >&5
43733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43734   (exit $ac_status); } && {
43735          test -z "$ac_c_werror_flag" ||
43736          test ! -s conftest.err
43737        } && test -s conftest.$ac_objext; then
43738   ac_cv_func_which_gethostbyname_r=three
43739 else
43740   echo "$as_me: failed program was:" >&5
43741 sed 's/^/| /' conftest.$ac_ext >&5
43742
43743
43744 fi
43745
43746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43747
43748 fi
43749
43750 ################################################################
43751
43752
43753 fi
43754
43755 case "$ac_cv_func_which_gethostbyname_r" in
43756     three)
43757     { echo "$as_me:$LINENO: result: three" >&5
43758 echo "${ECHO_T}three" >&6; }
43759     cat >>confdefs.h <<\_ACEOF
43760 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
43761 _ACEOF
43762
43763     ;;
43764
43765     five)
43766     { echo "$as_me:$LINENO: result: five" >&5
43767 echo "${ECHO_T}five" >&6; }
43768     cat >>confdefs.h <<\_ACEOF
43769 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
43770 _ACEOF
43771
43772     ;;
43773
43774     six)
43775     { echo "$as_me:$LINENO: result: six" >&5
43776 echo "${ECHO_T}six" >&6; }
43777     cat >>confdefs.h <<\_ACEOF
43778 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
43779 _ACEOF
43780
43781     ;;
43782
43783     no)
43784     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
43785 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
43786     ;;
43787
43788     unknown)
43789     { echo "$as_me:$LINENO: result: can't tell" >&5
43790 echo "${ECHO_T}can't tell" >&6; }
43791     ;;
43792
43793     *)
43794     { { echo "$as_me:$LINENO: error: internal error" >&5
43795 echo "$as_me: error: internal error" >&2;}
43796    { (exit 1); exit 1; }; }
43797     ;;
43798 esac
43799
43800 ac_ext=c
43801 ac_cpp='$CPP $CPPFLAGS'
43802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43805
43806
43807
43808       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
43809               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
43810           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
43811 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
43812 if test "${ac_cv_func_gethostbyname+set}" = set; then
43813   echo $ECHO_N "(cached) $ECHO_C" >&6
43814 else
43815   cat >conftest.$ac_ext <<_ACEOF
43816 /* confdefs.h.  */
43817 _ACEOF
43818 cat confdefs.h >>conftest.$ac_ext
43819 cat >>conftest.$ac_ext <<_ACEOF
43820 /* end confdefs.h.  */
43821 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
43822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43823 #define gethostbyname innocuous_gethostbyname
43824
43825 /* System header to define __stub macros and hopefully few prototypes,
43826     which can conflict with char gethostbyname (); below.
43827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43828     <limits.h> exists even on freestanding compilers.  */
43829
43830 #ifdef __STDC__
43831 # include <limits.h>
43832 #else
43833 # include <assert.h>
43834 #endif
43835
43836 #undef gethostbyname
43837
43838 /* Override any GCC internal prototype to avoid an error.
43839    Use char because int might match the return type of a GCC
43840    builtin and then its argument prototype would still apply.  */
43841 #ifdef __cplusplus
43842 extern "C"
43843 #endif
43844 char gethostbyname ();
43845 /* The GNU C library defines this for functions which it implements
43846     to always fail with ENOSYS.  Some functions are actually named
43847     something starting with __ and the normal name is an alias.  */
43848 #if defined __stub_gethostbyname || defined __stub___gethostbyname
43849 choke me
43850 #endif
43851
43852 int
43853 main ()
43854 {
43855 return gethostbyname ();
43856   ;
43857   return 0;
43858 }
43859 _ACEOF
43860 rm -f conftest.$ac_objext conftest$ac_exeext
43861 if { (ac_try="$ac_link"
43862 case "(($ac_try" in
43863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43864   *) ac_try_echo=$ac_try;;
43865 esac
43866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43867   (eval "$ac_link") 2>conftest.er1
43868   ac_status=$?
43869   grep -v '^ *+' conftest.er1 >conftest.err
43870   rm -f conftest.er1
43871   cat conftest.err >&5
43872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43873   (exit $ac_status); } && {
43874          test -z "$ac_c_werror_flag" ||
43875          test ! -s conftest.err
43876        } && test -s conftest$ac_exeext &&
43877        $as_test_x conftest$ac_exeext; then
43878   ac_cv_func_gethostbyname=yes
43879 else
43880   echo "$as_me: failed program was:" >&5
43881 sed 's/^/| /' conftest.$ac_ext >&5
43882
43883         ac_cv_func_gethostbyname=no
43884 fi
43885
43886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43887       conftest$ac_exeext conftest.$ac_ext
43888 fi
43889 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
43890 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
43891 if test $ac_cv_func_gethostbyname = yes; then
43892    cat >>confdefs.h <<\_ACEOF
43893 #define HAVE_GETHOSTBYNAME 1
43894 _ACEOF
43895
43896 fi
43897
43898       fi
43899
43900 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
43901 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
43902 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
43903   echo $ECHO_N "(cached) $ECHO_C" >&6
43904 else
43905
43906                 ac_ext=cpp
43907 ac_cpp='$CXXCPP $CPPFLAGS'
43908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43911
43912
43913         cat >conftest.$ac_ext <<_ACEOF
43914 /* confdefs.h.  */
43915 _ACEOF
43916 cat confdefs.h >>conftest.$ac_ext
43917 cat >>conftest.$ac_ext <<_ACEOF
43918 /* end confdefs.h.  */
43919 #include <netdb.h>
43920 int
43921 main ()
43922 {
43923
43924                 char *name;
43925                 char *proto;
43926                 struct servent *se, *res;
43927                 char buffer[2048];
43928                 int buflen = 2048;
43929                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
43930
43931   ;
43932   return 0;
43933 }
43934 _ACEOF
43935 rm -f conftest.$ac_objext
43936 if { (ac_try="$ac_compile"
43937 case "(($ac_try" in
43938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43939   *) ac_try_echo=$ac_try;;
43940 esac
43941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43942   (eval "$ac_compile") 2>conftest.er1
43943   ac_status=$?
43944   grep -v '^ *+' conftest.er1 >conftest.err
43945   rm -f conftest.er1
43946   cat conftest.err >&5
43947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43948   (exit $ac_status); } && {
43949          test -z "$ac_cxx_werror_flag" ||
43950          test ! -s conftest.err
43951        } && test -s conftest.$ac_objext; then
43952   ac_cv_func_which_getservbyname_r=six
43953 else
43954   echo "$as_me: failed program was:" >&5
43955 sed 's/^/| /' conftest.$ac_ext >&5
43956
43957
43958                 cat >conftest.$ac_ext <<_ACEOF
43959 /* confdefs.h.  */
43960 _ACEOF
43961 cat confdefs.h >>conftest.$ac_ext
43962 cat >>conftest.$ac_ext <<_ACEOF
43963 /* end confdefs.h.  */
43964 #include <netdb.h>
43965 int
43966 main ()
43967 {
43968
43969                         char *name;
43970                         char *proto;
43971                         struct servent *se;
43972                         char buffer[2048];
43973                         int buflen = 2048;
43974                         (void) getservbyname_r(name, proto, se, buffer, buflen)
43975
43976   ;
43977   return 0;
43978 }
43979 _ACEOF
43980 rm -f conftest.$ac_objext
43981 if { (ac_try="$ac_compile"
43982 case "(($ac_try" in
43983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43984   *) ac_try_echo=$ac_try;;
43985 esac
43986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43987   (eval "$ac_compile") 2>conftest.er1
43988   ac_status=$?
43989   grep -v '^ *+' conftest.er1 >conftest.err
43990   rm -f conftest.er1
43991   cat conftest.err >&5
43992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43993   (exit $ac_status); } && {
43994          test -z "$ac_cxx_werror_flag" ||
43995          test ! -s conftest.err
43996        } && test -s conftest.$ac_objext; then
43997   ac_cv_func_which_getservbyname_r=five
43998 else
43999   echo "$as_me: failed program was:" >&5
44000 sed 's/^/| /' conftest.$ac_ext >&5
44001
44002
44003                         cat >conftest.$ac_ext <<_ACEOF
44004 /* confdefs.h.  */
44005 _ACEOF
44006 cat confdefs.h >>conftest.$ac_ext
44007 cat >>conftest.$ac_ext <<_ACEOF
44008 /* end confdefs.h.  */
44009 #include <netdb.h>
44010 int
44011 main ()
44012 {
44013
44014                                 char *name;
44015                                 char *proto;
44016                                 struct servent *se;
44017                                 struct servent_data data;
44018                                 (void) getservbyname_r(name, proto, se, &data);
44019
44020   ;
44021   return 0;
44022 }
44023 _ACEOF
44024 rm -f conftest.$ac_objext
44025 if { (ac_try="$ac_compile"
44026 case "(($ac_try" in
44027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44028   *) ac_try_echo=$ac_try;;
44029 esac
44030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44031   (eval "$ac_compile") 2>conftest.er1
44032   ac_status=$?
44033   grep -v '^ *+' conftest.er1 >conftest.err
44034   rm -f conftest.er1
44035   cat conftest.err >&5
44036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44037   (exit $ac_status); } && {
44038          test -z "$ac_cxx_werror_flag" ||
44039          test ! -s conftest.err
44040        } && test -s conftest.$ac_objext; then
44041   ac_cv_func_which_getservbyname_r=four
44042 else
44043   echo "$as_me: failed program was:" >&5
44044 sed 's/^/| /' conftest.$ac_ext >&5
44045
44046         ac_cv_func_which_getservbyname_r=no
44047
44048 fi
44049
44050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44051
44052
44053 fi
44054
44055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44056
44057
44058 fi
44059
44060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44061         ac_ext=c
44062 ac_cpp='$CPP $CPPFLAGS'
44063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44066
44067
44068
44069 fi
44070 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
44071 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
44072
44073 if test $ac_cv_func_which_getservbyname_r = six; then
44074   cat >>confdefs.h <<\_ACEOF
44075 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
44076 _ACEOF
44077
44078 elif test $ac_cv_func_which_getservbyname_r = five; then
44079   cat >>confdefs.h <<\_ACEOF
44080 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
44081 _ACEOF
44082
44083 elif test $ac_cv_func_which_getservbyname_r = four; then
44084   cat >>confdefs.h <<\_ACEOF
44085 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
44086 _ACEOF
44087
44088 fi
44089
44090
44091       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
44092               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
44093
44094 for ac_func in getservbyname
44095 do
44096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44100   echo $ECHO_N "(cached) $ECHO_C" >&6
44101 else
44102   cat >conftest.$ac_ext <<_ACEOF
44103 /* confdefs.h.  */
44104 _ACEOF
44105 cat confdefs.h >>conftest.$ac_ext
44106 cat >>conftest.$ac_ext <<_ACEOF
44107 /* end confdefs.h.  */
44108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44110 #define $ac_func innocuous_$ac_func
44111
44112 /* System header to define __stub macros and hopefully few prototypes,
44113     which can conflict with char $ac_func (); below.
44114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44115     <limits.h> exists even on freestanding compilers.  */
44116
44117 #ifdef __STDC__
44118 # include <limits.h>
44119 #else
44120 # include <assert.h>
44121 #endif
44122
44123 #undef $ac_func
44124
44125 /* Override any GCC internal prototype to avoid an error.
44126    Use char because int might match the return type of a GCC
44127    builtin and then its argument prototype would still apply.  */
44128 #ifdef __cplusplus
44129 extern "C"
44130 #endif
44131 char $ac_func ();
44132 /* The GNU C library defines this for functions which it implements
44133     to always fail with ENOSYS.  Some functions are actually named
44134     something starting with __ and the normal name is an alias.  */
44135 #if defined __stub_$ac_func || defined __stub___$ac_func
44136 choke me
44137 #endif
44138
44139 int
44140 main ()
44141 {
44142 return $ac_func ();
44143   ;
44144   return 0;
44145 }
44146 _ACEOF
44147 rm -f conftest.$ac_objext conftest$ac_exeext
44148 if { (ac_try="$ac_link"
44149 case "(($ac_try" in
44150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44151   *) ac_try_echo=$ac_try;;
44152 esac
44153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44154   (eval "$ac_link") 2>conftest.er1
44155   ac_status=$?
44156   grep -v '^ *+' conftest.er1 >conftest.err
44157   rm -f conftest.er1
44158   cat conftest.err >&5
44159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44160   (exit $ac_status); } && {
44161          test -z "$ac_c_werror_flag" ||
44162          test ! -s conftest.err
44163        } && test -s conftest$ac_exeext &&
44164        $as_test_x conftest$ac_exeext; then
44165   eval "$as_ac_var=yes"
44166 else
44167   echo "$as_me: failed program was:" >&5
44168 sed 's/^/| /' conftest.$ac_ext >&5
44169
44170         eval "$as_ac_var=no"
44171 fi
44172
44173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44174       conftest$ac_exeext conftest.$ac_ext
44175 fi
44176 ac_res=`eval echo '${'$as_ac_var'}'`
44177                { echo "$as_me:$LINENO: result: $ac_res" >&5
44178 echo "${ECHO_T}$ac_res" >&6; }
44179 if test `eval echo '${'$as_ac_var'}'` = yes; then
44180   cat >>confdefs.h <<_ACEOF
44181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44182 _ACEOF
44183   cat >>confdefs.h <<\_ACEOF
44184 #define HAVE_GETSERVBYNAME 1
44185 _ACEOF
44186
44187 fi
44188 done
44189
44190       fi
44191
44192 if test "$wxUSE_THREADS" = "yes"; then
44193   cat >>confdefs.h <<\_ACEOF
44194 #define wxUSE_THREADS 1
44195 _ACEOF
44196
44197
44198   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
44199 else
44200       if test "$wx_cv_func_strtok_r" = "yes"; then
44201     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
44202 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
44203     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
44204         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
44205         { echo "$as_me:$LINENO: result: yes" >&5
44206 echo "${ECHO_T}yes" >&6; }
44207     else
44208         { echo "$as_me:$LINENO: result: no" >&5
44209 echo "${ECHO_T}no" >&6; }
44210     fi
44211   fi
44212 fi
44213
44214 if test "$WXGTK20" = 1 ; then
44215   cat >>confdefs.h <<_ACEOF
44216 #define __WXGTK20__ $WXGTK20
44217 _ACEOF
44218
44219   WXGTK12=1
44220 fi
44221
44222 if test "$WXGTK12" = 1 ; then
44223   cat >>confdefs.h <<_ACEOF
44224 #define __WXGTK12__ $WXGTK12
44225 _ACEOF
44226
44227 fi
44228
44229 if test "$WXGTK127" = 1 ; then
44230   cat >>confdefs.h <<_ACEOF
44231 #define __WXGTK127__ $WXGTK127
44232 _ACEOF
44233
44234 fi
44235
44236 if test "$WXGPE" = 1 ; then
44237   cat >>confdefs.h <<_ACEOF
44238 #define __WXGPE__ $WXGPE
44239 _ACEOF
44240
44241 fi
44242
44243 DEBUG_CFLAGS=
44244 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
44245     DEBUG_CFLAGS="-g"
44246     wxUSE_OPTIMISE=no
44247 fi
44248
44249 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
44250     wxUSE_DEBUG_INFO=yes
44251     if test "$GCC" = yes; then
44252         DEBUG_CFLAGS="-ggdb"
44253     fi
44254 fi
44255
44256 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
44257     cat >>confdefs.h <<\_ACEOF
44258 #define WXDEBUG 1
44259 _ACEOF
44260
44261     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
44262 else
44263     if test "$wxUSE_GTK" = 1 ; then
44264         if test "x$wxGTK_VERSION" = "x1" ; then
44265             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
44266         fi
44267     fi
44268 fi
44269
44270 if test "$wxUSE_MEM_TRACING" = "yes" ; then
44271     cat >>confdefs.h <<\_ACEOF
44272 #define wxUSE_MEMORY_TRACING 1
44273 _ACEOF
44274
44275     cat >>confdefs.h <<\_ACEOF
44276 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
44277 _ACEOF
44278
44279     cat >>confdefs.h <<\_ACEOF
44280 #define wxUSE_DEBUG_NEW_ALWAYS 1
44281 _ACEOF
44282
44283     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
44284 fi
44285
44286 if test "$wxUSE_DMALLOC" = "yes" ; then
44287     DMALLOC_LIBS="-ldmallocthcxx"
44288 fi
44289
44290 PROFILE_FLAGS=
44291 if test "$wxUSE_PROFILE" = "yes" ; then
44292     PROFILE_FLAGS=" -pg"
44293 fi
44294
44295 if test "$GCC" = "yes" ; then
44296     if test "$wxUSE_NO_RTTI" = "yes" ; then
44297         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
44298     fi
44299     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44300         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
44301     fi
44302     if test "$wxUSE_PERMISSIVE" = "yes" ; then
44303         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
44304     fi
44305
44306                                                 case "${host}" in
44307       powerpc*-*-aix* )
44308         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
44309         ;;
44310       *-hppa* )
44311         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
44312         ;;
44313     esac
44314 fi
44315
44316 OPTIMISE_CFLAGS=
44317 if test "$wxUSE_OPTIMISE" = "no" ; then
44318     if test "$GCC" = yes ; then
44319                         OPTIMISE_CFLAGS="-O0"
44320     fi
44321 else
44322     if test "$GCC" = yes ; then
44323         case "${host}" in
44324             *-pc-os2_emx | *-pc-os2-emx )
44325                                                 OPTIMISE_CFLAGS="-O2"
44326             ;;
44327             *)
44328                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
44329             ;;
44330         esac
44331     else
44332         OPTIMISE_CFLAGS="-O"
44333     fi
44334 fi
44335
44336
44337 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
44338     cat >>confdefs.h <<\_ACEOF
44339 #define WXWIN_COMPATIBILITY_2_6 1
44340 _ACEOF
44341
44342
44343     WXWIN_COMPATIBILITY_2_8="yes"
44344 fi
44345
44346 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
44347     cat >>confdefs.h <<\_ACEOF
44348 #define WXWIN_COMPATIBILITY_2_8 1
44349 _ACEOF
44350
44351 fi
44352
44353
44354 if test "$wxUSE_GUI" = "yes"; then
44355     cat >>confdefs.h <<\_ACEOF
44356 #define wxUSE_GUI 1
44357 _ACEOF
44358
44359
44360                                             fi
44361
44362
44363 if test "$wxUSE_UNIX" = "yes"; then
44364   cat >>confdefs.h <<\_ACEOF
44365 #define wxUSE_UNIX 1
44366 _ACEOF
44367
44368 fi
44369
44370
44371 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
44372
44373     HAVE_DL_FUNCS=0
44374     HAVE_SHL_FUNCS=0
44375     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44376         if test "$USE_DARWIN" = 1; then
44377                         HAVE_DL_FUNCS=1
44378         elif test "$USE_DOS" = 1; then
44379             HAVE_DL_FUNCS=0
44380         else
44381
44382 for ac_func in dlopen
44383 do
44384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44388   echo $ECHO_N "(cached) $ECHO_C" >&6
44389 else
44390   cat >conftest.$ac_ext <<_ACEOF
44391 /* confdefs.h.  */
44392 _ACEOF
44393 cat confdefs.h >>conftest.$ac_ext
44394 cat >>conftest.$ac_ext <<_ACEOF
44395 /* end confdefs.h.  */
44396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44398 #define $ac_func innocuous_$ac_func
44399
44400 /* System header to define __stub macros and hopefully few prototypes,
44401     which can conflict with char $ac_func (); below.
44402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44403     <limits.h> exists even on freestanding compilers.  */
44404
44405 #ifdef __STDC__
44406 # include <limits.h>
44407 #else
44408 # include <assert.h>
44409 #endif
44410
44411 #undef $ac_func
44412
44413 /* Override any GCC internal prototype to avoid an error.
44414    Use char because int might match the return type of a GCC
44415    builtin and then its argument prototype would still apply.  */
44416 #ifdef __cplusplus
44417 extern "C"
44418 #endif
44419 char $ac_func ();
44420 /* The GNU C library defines this for functions which it implements
44421     to always fail with ENOSYS.  Some functions are actually named
44422     something starting with __ and the normal name is an alias.  */
44423 #if defined __stub_$ac_func || defined __stub___$ac_func
44424 choke me
44425 #endif
44426
44427 int
44428 main ()
44429 {
44430 return $ac_func ();
44431   ;
44432   return 0;
44433 }
44434 _ACEOF
44435 rm -f conftest.$ac_objext conftest$ac_exeext
44436 if { (ac_try="$ac_link"
44437 case "(($ac_try" in
44438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44439   *) ac_try_echo=$ac_try;;
44440 esac
44441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44442   (eval "$ac_link") 2>conftest.er1
44443   ac_status=$?
44444   grep -v '^ *+' conftest.er1 >conftest.err
44445   rm -f conftest.er1
44446   cat conftest.err >&5
44447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44448   (exit $ac_status); } && {
44449          test -z "$ac_c_werror_flag" ||
44450          test ! -s conftest.err
44451        } && test -s conftest$ac_exeext &&
44452        $as_test_x conftest$ac_exeext; then
44453   eval "$as_ac_var=yes"
44454 else
44455   echo "$as_me: failed program was:" >&5
44456 sed 's/^/| /' conftest.$ac_ext >&5
44457
44458         eval "$as_ac_var=no"
44459 fi
44460
44461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44462       conftest$ac_exeext conftest.$ac_ext
44463 fi
44464 ac_res=`eval echo '${'$as_ac_var'}'`
44465                { echo "$as_me:$LINENO: result: $ac_res" >&5
44466 echo "${ECHO_T}$ac_res" >&6; }
44467 if test `eval echo '${'$as_ac_var'}'` = yes; then
44468   cat >>confdefs.h <<_ACEOF
44469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44470 _ACEOF
44471
44472                 cat >>confdefs.h <<\_ACEOF
44473 #define HAVE_DLOPEN 1
44474 _ACEOF
44475
44476                 HAVE_DL_FUNCS=1
44477
44478 else
44479
44480                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
44481 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
44482 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
44483   echo $ECHO_N "(cached) $ECHO_C" >&6
44484 else
44485   ac_check_lib_save_LIBS=$LIBS
44486 LIBS="-ldl  $LIBS"
44487 cat >conftest.$ac_ext <<_ACEOF
44488 /* confdefs.h.  */
44489 _ACEOF
44490 cat confdefs.h >>conftest.$ac_ext
44491 cat >>conftest.$ac_ext <<_ACEOF
44492 /* end confdefs.h.  */
44493
44494 /* Override any GCC internal prototype to avoid an error.
44495    Use char because int might match the return type of a GCC
44496    builtin and then its argument prototype would still apply.  */
44497 #ifdef __cplusplus
44498 extern "C"
44499 #endif
44500 char dlopen ();
44501 int
44502 main ()
44503 {
44504 return dlopen ();
44505   ;
44506   return 0;
44507 }
44508 _ACEOF
44509 rm -f conftest.$ac_objext conftest$ac_exeext
44510 if { (ac_try="$ac_link"
44511 case "(($ac_try" in
44512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44513   *) ac_try_echo=$ac_try;;
44514 esac
44515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44516   (eval "$ac_link") 2>conftest.er1
44517   ac_status=$?
44518   grep -v '^ *+' conftest.er1 >conftest.err
44519   rm -f conftest.er1
44520   cat conftest.err >&5
44521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44522   (exit $ac_status); } && {
44523          test -z "$ac_c_werror_flag" ||
44524          test ! -s conftest.err
44525        } && test -s conftest$ac_exeext &&
44526        $as_test_x conftest$ac_exeext; then
44527   ac_cv_lib_dl_dlopen=yes
44528 else
44529   echo "$as_me: failed program was:" >&5
44530 sed 's/^/| /' conftest.$ac_ext >&5
44531
44532         ac_cv_lib_dl_dlopen=no
44533 fi
44534
44535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44536       conftest$ac_exeext conftest.$ac_ext
44537 LIBS=$ac_check_lib_save_LIBS
44538 fi
44539 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
44540 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
44541 if test $ac_cv_lib_dl_dlopen = yes; then
44542
44543                                 cat >>confdefs.h <<\_ACEOF
44544 #define HAVE_DLOPEN 1
44545 _ACEOF
44546
44547                                 HAVE_DL_FUNCS=1
44548                                 DL_LINK=" -ldl$DL_LINK"
44549
44550 else
44551
44552
44553 for ac_func in shl_load
44554 do
44555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44559   echo $ECHO_N "(cached) $ECHO_C" >&6
44560 else
44561   cat >conftest.$ac_ext <<_ACEOF
44562 /* confdefs.h.  */
44563 _ACEOF
44564 cat confdefs.h >>conftest.$ac_ext
44565 cat >>conftest.$ac_ext <<_ACEOF
44566 /* end confdefs.h.  */
44567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44569 #define $ac_func innocuous_$ac_func
44570
44571 /* System header to define __stub macros and hopefully few prototypes,
44572     which can conflict with char $ac_func (); below.
44573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44574     <limits.h> exists even on freestanding compilers.  */
44575
44576 #ifdef __STDC__
44577 # include <limits.h>
44578 #else
44579 # include <assert.h>
44580 #endif
44581
44582 #undef $ac_func
44583
44584 /* Override any GCC internal prototype to avoid an error.
44585    Use char because int might match the return type of a GCC
44586    builtin and then its argument prototype would still apply.  */
44587 #ifdef __cplusplus
44588 extern "C"
44589 #endif
44590 char $ac_func ();
44591 /* The GNU C library defines this for functions which it implements
44592     to always fail with ENOSYS.  Some functions are actually named
44593     something starting with __ and the normal name is an alias.  */
44594 #if defined __stub_$ac_func || defined __stub___$ac_func
44595 choke me
44596 #endif
44597
44598 int
44599 main ()
44600 {
44601 return $ac_func ();
44602   ;
44603   return 0;
44604 }
44605 _ACEOF
44606 rm -f conftest.$ac_objext conftest$ac_exeext
44607 if { (ac_try="$ac_link"
44608 case "(($ac_try" in
44609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44610   *) ac_try_echo=$ac_try;;
44611 esac
44612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44613   (eval "$ac_link") 2>conftest.er1
44614   ac_status=$?
44615   grep -v '^ *+' conftest.er1 >conftest.err
44616   rm -f conftest.er1
44617   cat conftest.err >&5
44618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44619   (exit $ac_status); } && {
44620          test -z "$ac_c_werror_flag" ||
44621          test ! -s conftest.err
44622        } && test -s conftest$ac_exeext &&
44623        $as_test_x conftest$ac_exeext; then
44624   eval "$as_ac_var=yes"
44625 else
44626   echo "$as_me: failed program was:" >&5
44627 sed 's/^/| /' conftest.$ac_ext >&5
44628
44629         eval "$as_ac_var=no"
44630 fi
44631
44632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44633       conftest$ac_exeext conftest.$ac_ext
44634 fi
44635 ac_res=`eval echo '${'$as_ac_var'}'`
44636                { echo "$as_me:$LINENO: result: $ac_res" >&5
44637 echo "${ECHO_T}$ac_res" >&6; }
44638 if test `eval echo '${'$as_ac_var'}'` = yes; then
44639   cat >>confdefs.h <<_ACEOF
44640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44641 _ACEOF
44642
44643                                                 cat >>confdefs.h <<\_ACEOF
44644 #define HAVE_SHL_LOAD 1
44645 _ACEOF
44646
44647                                                 HAVE_SHL_FUNCS=1
44648
44649 else
44650
44651                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
44652 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
44653 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
44654   echo $ECHO_N "(cached) $ECHO_C" >&6
44655 else
44656   ac_check_lib_save_LIBS=$LIBS
44657 LIBS="-lshl_load  $LIBS"
44658 cat >conftest.$ac_ext <<_ACEOF
44659 /* confdefs.h.  */
44660 _ACEOF
44661 cat confdefs.h >>conftest.$ac_ext
44662 cat >>conftest.$ac_ext <<_ACEOF
44663 /* end confdefs.h.  */
44664
44665 /* Override any GCC internal prototype to avoid an error.
44666    Use char because int might match the return type of a GCC
44667    builtin and then its argument prototype would still apply.  */
44668 #ifdef __cplusplus
44669 extern "C"
44670 #endif
44671 char dld ();
44672 int
44673 main ()
44674 {
44675 return dld ();
44676   ;
44677   return 0;
44678 }
44679 _ACEOF
44680 rm -f conftest.$ac_objext conftest$ac_exeext
44681 if { (ac_try="$ac_link"
44682 case "(($ac_try" in
44683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44684   *) ac_try_echo=$ac_try;;
44685 esac
44686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44687   (eval "$ac_link") 2>conftest.er1
44688   ac_status=$?
44689   grep -v '^ *+' conftest.er1 >conftest.err
44690   rm -f conftest.er1
44691   cat conftest.err >&5
44692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44693   (exit $ac_status); } && {
44694          test -z "$ac_c_werror_flag" ||
44695          test ! -s conftest.err
44696        } && test -s conftest$ac_exeext &&
44697        $as_test_x conftest$ac_exeext; then
44698   ac_cv_lib_shl_load_dld=yes
44699 else
44700   echo "$as_me: failed program was:" >&5
44701 sed 's/^/| /' conftest.$ac_ext >&5
44702
44703         ac_cv_lib_shl_load_dld=no
44704 fi
44705
44706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44707       conftest$ac_exeext conftest.$ac_ext
44708 LIBS=$ac_check_lib_save_LIBS
44709 fi
44710 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
44711 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
44712 if test $ac_cv_lib_shl_load_dld = yes; then
44713
44714                                                                 HAVE_SHL_FUNCS=1
44715                                                                 DL_LINK=" -ldld$DL_LINK"
44716
44717 fi
44718
44719
44720 fi
44721 done
44722
44723
44724 fi
44725
44726
44727 fi
44728 done
44729
44730
44731                 if test "$HAVE_DL_FUNCS" = 1; then
44732
44733 for ac_func in dlerror
44734 do
44735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44739   echo $ECHO_N "(cached) $ECHO_C" >&6
44740 else
44741   cat >conftest.$ac_ext <<_ACEOF
44742 /* confdefs.h.  */
44743 _ACEOF
44744 cat confdefs.h >>conftest.$ac_ext
44745 cat >>conftest.$ac_ext <<_ACEOF
44746 /* end confdefs.h.  */
44747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44749 #define $ac_func innocuous_$ac_func
44750
44751 /* System header to define __stub macros and hopefully few prototypes,
44752     which can conflict with char $ac_func (); below.
44753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44754     <limits.h> exists even on freestanding compilers.  */
44755
44756 #ifdef __STDC__
44757 # include <limits.h>
44758 #else
44759 # include <assert.h>
44760 #endif
44761
44762 #undef $ac_func
44763
44764 /* Override any GCC internal prototype to avoid an error.
44765    Use char because int might match the return type of a GCC
44766    builtin and then its argument prototype would still apply.  */
44767 #ifdef __cplusplus
44768 extern "C"
44769 #endif
44770 char $ac_func ();
44771 /* The GNU C library defines this for functions which it implements
44772     to always fail with ENOSYS.  Some functions are actually named
44773     something starting with __ and the normal name is an alias.  */
44774 #if defined __stub_$ac_func || defined __stub___$ac_func
44775 choke me
44776 #endif
44777
44778 int
44779 main ()
44780 {
44781 return $ac_func ();
44782   ;
44783   return 0;
44784 }
44785 _ACEOF
44786 rm -f conftest.$ac_objext conftest$ac_exeext
44787 if { (ac_try="$ac_link"
44788 case "(($ac_try" in
44789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44790   *) ac_try_echo=$ac_try;;
44791 esac
44792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44793   (eval "$ac_link") 2>conftest.er1
44794   ac_status=$?
44795   grep -v '^ *+' conftest.er1 >conftest.err
44796   rm -f conftest.er1
44797   cat conftest.err >&5
44798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44799   (exit $ac_status); } && {
44800          test -z "$ac_c_werror_flag" ||
44801          test ! -s conftest.err
44802        } && test -s conftest$ac_exeext &&
44803        $as_test_x conftest$ac_exeext; then
44804   eval "$as_ac_var=yes"
44805 else
44806   echo "$as_me: failed program was:" >&5
44807 sed 's/^/| /' conftest.$ac_ext >&5
44808
44809         eval "$as_ac_var=no"
44810 fi
44811
44812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44813       conftest$ac_exeext conftest.$ac_ext
44814 fi
44815 ac_res=`eval echo '${'$as_ac_var'}'`
44816                { echo "$as_me:$LINENO: result: $ac_res" >&5
44817 echo "${ECHO_T}$ac_res" >&6; }
44818 if test `eval echo '${'$as_ac_var'}'` = yes; then
44819   cat >>confdefs.h <<_ACEOF
44820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44821 _ACEOF
44822  cat >>confdefs.h <<\_ACEOF
44823 #define HAVE_DLERROR 1
44824 _ACEOF
44825
44826 else
44827
44828                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
44829 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
44830 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
44831   echo $ECHO_N "(cached) $ECHO_C" >&6
44832 else
44833   ac_check_lib_save_LIBS=$LIBS
44834 LIBS="-ldl  $LIBS"
44835 cat >conftest.$ac_ext <<_ACEOF
44836 /* confdefs.h.  */
44837 _ACEOF
44838 cat confdefs.h >>conftest.$ac_ext
44839 cat >>conftest.$ac_ext <<_ACEOF
44840 /* end confdefs.h.  */
44841
44842 /* Override any GCC internal prototype to avoid an error.
44843    Use char because int might match the return type of a GCC
44844    builtin and then its argument prototype would still apply.  */
44845 #ifdef __cplusplus
44846 extern "C"
44847 #endif
44848 char dlerror ();
44849 int
44850 main ()
44851 {
44852 return dlerror ();
44853   ;
44854   return 0;
44855 }
44856 _ACEOF
44857 rm -f conftest.$ac_objext conftest$ac_exeext
44858 if { (ac_try="$ac_link"
44859 case "(($ac_try" in
44860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44861   *) ac_try_echo=$ac_try;;
44862 esac
44863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44864   (eval "$ac_link") 2>conftest.er1
44865   ac_status=$?
44866   grep -v '^ *+' conftest.er1 >conftest.err
44867   rm -f conftest.er1
44868   cat conftest.err >&5
44869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44870   (exit $ac_status); } && {
44871          test -z "$ac_c_werror_flag" ||
44872          test ! -s conftest.err
44873        } && test -s conftest$ac_exeext &&
44874        $as_test_x conftest$ac_exeext; then
44875   ac_cv_lib_dl_dlerror=yes
44876 else
44877   echo "$as_me: failed program was:" >&5
44878 sed 's/^/| /' conftest.$ac_ext >&5
44879
44880         ac_cv_lib_dl_dlerror=no
44881 fi
44882
44883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44884       conftest$ac_exeext conftest.$ac_ext
44885 LIBS=$ac_check_lib_save_LIBS
44886 fi
44887 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
44888 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
44889 if test $ac_cv_lib_dl_dlerror = yes; then
44890   cat >>confdefs.h <<\_ACEOF
44891 #define HAVE_DLERROR 1
44892 _ACEOF
44893
44894 fi
44895
44896
44897
44898 fi
44899 done
44900
44901         fi
44902         fi
44903
44904         if test "$HAVE_DL_FUNCS" = 0; then
44905             if test "$HAVE_SHL_FUNCS" = 0; then
44906               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
44907                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
44908 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
44909                   wxUSE_DYNAMIC_LOADER=no
44910                   wxUSE_DYNLIB_CLASS=no
44911               else
44912                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
44913 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
44914               fi
44915             fi
44916         fi
44917     fi
44918 fi
44919
44920 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
44921     cat >>confdefs.h <<\_ACEOF
44922 #define wxUSE_DYNAMIC_LOADER 1
44923 _ACEOF
44924
44925 fi
44926 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44927     cat >>confdefs.h <<\_ACEOF
44928 #define wxUSE_DYNLIB_CLASS 1
44929 _ACEOF
44930
44931 fi
44932
44933
44934
44935 if test "$wxUSE_PLUGINS" = "yes" ; then
44936     if test "$wxUSE_SHARED" = "no" ; then
44937         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
44938 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
44939         wxUSE_PLUGINS=no
44940     fi
44941     if test "$wxUSE_MONOLITHIC" = "yes" ; then
44942         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
44943 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
44944         wxUSE_PLUGINS=no
44945     fi
44946     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
44947         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
44948 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
44949         wxUSE_PLUGINS=no
44950     fi
44951     if test "$wxUSE_PLUGINS" = "yes" ; then
44952         cat >>confdefs.h <<\_ACEOF
44953 #define wxUSE_PLUGINS 1
44954 _ACEOF
44955
44956     fi
44957 fi
44958
44959
44960 if test "$wxUSE_STL" = "yes"; then
44961   cat >>confdefs.h <<\_ACEOF
44962 #define wxUSE_STL 1
44963 _ACEOF
44964
44965 fi
44966
44967 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44968   cat >>confdefs.h <<\_ACEOF
44969 #define wxUSE_EXTENDED_RTTI 1
44970 _ACEOF
44971
44972 fi
44973
44974 if test "$wxUSE_APPLE_IEEE" = "yes"; then
44975   cat >>confdefs.h <<\_ACEOF
44976 #define wxUSE_APPLE_IEEE 1
44977 _ACEOF
44978
44979 fi
44980
44981 if test "$wxUSE_TIMER" = "yes"; then
44982   cat >>confdefs.h <<\_ACEOF
44983 #define wxUSE_TIMER 1
44984 _ACEOF
44985
44986 fi
44987
44988 if test "$USE_UNIX" = "1" ; then
44989         if test "$wxUSE_MGL" != 1; then
44990                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44991 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
44992 if test "${ac_cv_header_sys_soundcard+set}" = set; then
44993   echo $ECHO_N "(cached) $ECHO_C" >&6
44994 else
44995
44996             cat >conftest.$ac_ext <<_ACEOF
44997 /* confdefs.h.  */
44998 _ACEOF
44999 cat confdefs.h >>conftest.$ac_ext
45000 cat >>conftest.$ac_ext <<_ACEOF
45001 /* end confdefs.h.  */
45002
45003                     #include <sys/ioctl.h>
45004                     #include <sys/soundcard.h>
45005
45006 int
45007 main ()
45008 {
45009
45010                     ioctl(0, SNDCTL_DSP_SPEED, 0);
45011
45012   ;
45013   return 0;
45014 }
45015 _ACEOF
45016 rm -f conftest.$ac_objext conftest$ac_exeext
45017 if { (ac_try="$ac_link"
45018 case "(($ac_try" in
45019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45020   *) ac_try_echo=$ac_try;;
45021 esac
45022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45023   (eval "$ac_link") 2>conftest.er1
45024   ac_status=$?
45025   grep -v '^ *+' conftest.er1 >conftest.err
45026   rm -f conftest.er1
45027   cat conftest.err >&5
45028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45029   (exit $ac_status); } && {
45030          test -z "$ac_c_werror_flag" ||
45031          test ! -s conftest.err
45032        } && test -s conftest$ac_exeext &&
45033        $as_test_x conftest$ac_exeext; then
45034   ac_cv_header_sys_soundcard=yes
45035 else
45036   echo "$as_me: failed program was:" >&5
45037 sed 's/^/| /' conftest.$ac_ext >&5
45038
45039
45040                     saveLibs="$LIBS"
45041                     LIBS="$saveLibs -lossaudio"
45042                     cat >conftest.$ac_ext <<_ACEOF
45043 /* confdefs.h.  */
45044 _ACEOF
45045 cat confdefs.h >>conftest.$ac_ext
45046 cat >>conftest.$ac_ext <<_ACEOF
45047 /* end confdefs.h.  */
45048
45049                             #include <sys/ioctl.h>
45050                             #include <sys/soundcard.h>
45051
45052 int
45053 main ()
45054 {
45055
45056                             ioctl(0, SNDCTL_DSP_SPEED, 0);
45057
45058   ;
45059   return 0;
45060 }
45061 _ACEOF
45062 rm -f conftest.$ac_objext conftest$ac_exeext
45063 if { (ac_try="$ac_link"
45064 case "(($ac_try" in
45065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45066   *) ac_try_echo=$ac_try;;
45067 esac
45068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45069   (eval "$ac_link") 2>conftest.er1
45070   ac_status=$?
45071   grep -v '^ *+' conftest.er1 >conftest.err
45072   rm -f conftest.er1
45073   cat conftest.err >&5
45074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45075   (exit $ac_status); } && {
45076          test -z "$ac_c_werror_flag" ||
45077          test ! -s conftest.err
45078        } && test -s conftest$ac_exeext &&
45079        $as_test_x conftest$ac_exeext; then
45080   ac_cv_header_sys_soundcard=yes
45081 else
45082   echo "$as_me: failed program was:" >&5
45083 sed 's/^/| /' conftest.$ac_ext >&5
45084
45085
45086                             LIBS="$saveLibs"
45087                             ac_cv_header_sys_soundcard=no
45088
45089
45090 fi
45091
45092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45093       conftest$ac_exeext conftest.$ac_ext
45094
45095
45096 fi
45097
45098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45099       conftest$ac_exeext conftest.$ac_ext
45100
45101 fi
45102 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
45103 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
45104     fi
45105
45106     if test "$ac_cv_header_sys_soundcard" = "yes"; then
45107         cat >>confdefs.h <<\_ACEOF
45108 #define HAVE_SYS_SOUNDCARD_H 1
45109 _ACEOF
45110
45111     fi
45112 fi
45113
45114 WITH_PLUGIN_SDL=0
45115 if test "$wxUSE_SOUND" = "yes"; then
45116   if test "$USE_UNIX" = "1" ; then
45117     if test "$wxUSE_LIBSDL" != "no"; then
45118
45119 # Check whether --with-sdl-prefix was given.
45120 if test "${with_sdl_prefix+set}" = set; then
45121   withval=$with_sdl_prefix; sdl_prefix="$withval"
45122 else
45123   sdl_prefix=""
45124 fi
45125
45126
45127 # Check whether --with-sdl-exec-prefix was given.
45128 if test "${with_sdl_exec_prefix+set}" = set; then
45129   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
45130 else
45131   sdl_exec_prefix=""
45132 fi
45133
45134 # Check whether --enable-sdltest was given.
45135 if test "${enable_sdltest+set}" = set; then
45136   enableval=$enable_sdltest;
45137 else
45138   enable_sdltest=yes
45139 fi
45140
45141
45142   if test x$sdl_exec_prefix != x ; then
45143     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
45144     if test x${SDL_CONFIG+set} != xset ; then
45145       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
45146     fi
45147   fi
45148   if test x$sdl_prefix != x ; then
45149     sdl_args="$sdl_args --prefix=$sdl_prefix"
45150     if test x${SDL_CONFIG+set} != xset ; then
45151       SDL_CONFIG=$sdl_prefix/bin/sdl-config
45152     fi
45153   fi
45154
45155   if test "x$prefix" != xNONE; then
45156     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
45157   fi
45158   # Extract the first word of "sdl-config", so it can be a program name with args.
45159 set dummy sdl-config; ac_word=$2
45160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45162 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
45163   echo $ECHO_N "(cached) $ECHO_C" >&6
45164 else
45165   case $SDL_CONFIG in
45166   [\\/]* | ?:[\\/]*)
45167   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
45168   ;;
45169   *)
45170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45171 for as_dir in $PATH
45172 do
45173   IFS=$as_save_IFS
45174   test -z "$as_dir" && as_dir=.
45175   for ac_exec_ext in '' $ac_executable_extensions; do
45176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45177     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45179     break 2
45180   fi
45181 done
45182 done
45183 IFS=$as_save_IFS
45184
45185   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
45186   ;;
45187 esac
45188 fi
45189 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
45190 if test -n "$SDL_CONFIG"; then
45191   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
45192 echo "${ECHO_T}$SDL_CONFIG" >&6; }
45193 else
45194   { echo "$as_me:$LINENO: result: no" >&5
45195 echo "${ECHO_T}no" >&6; }
45196 fi
45197
45198
45199   min_sdl_version=1.2.0
45200   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
45201 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
45202   no_sdl=""
45203   if test "$SDL_CONFIG" = "no" ; then
45204     no_sdl=yes
45205   else
45206     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
45207     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
45208
45209     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
45210            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45211     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
45212            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45213     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
45214            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45215     if test "x$enable_sdltest" = "xyes" ; then
45216       ac_save_CFLAGS="$CFLAGS"
45217       ac_save_CXXFLAGS="$CXXFLAGS"
45218       ac_save_LIBS="$LIBS"
45219       CFLAGS="$CFLAGS $SDL_CFLAGS"
45220       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
45221       LIBS="$LIBS $SDL_LIBS"
45222       rm -f conf.sdltest
45223       if test "$cross_compiling" = yes; then
45224   echo $ac_n "cross compiling; assumed OK... $ac_c"
45225 else
45226   cat >conftest.$ac_ext <<_ACEOF
45227 /* confdefs.h.  */
45228 _ACEOF
45229 cat confdefs.h >>conftest.$ac_ext
45230 cat >>conftest.$ac_ext <<_ACEOF
45231 /* end confdefs.h.  */
45232
45233 #include <stdio.h>
45234 #include <stdlib.h>
45235 #include <string.h>
45236 #include "SDL.h"
45237
45238 char*
45239 my_strdup (char *str)
45240 {
45241   char *new_str;
45242
45243   if (str)
45244     {
45245       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
45246       strcpy (new_str, str);
45247     }
45248   else
45249     new_str = NULL;
45250
45251   return new_str;
45252 }
45253
45254 int main (int argc, char *argv[])
45255 {
45256   int major, minor, micro;
45257   char *tmp_version;
45258
45259   /* This hangs on some systems (?)
45260   system ("touch conf.sdltest");
45261   */
45262   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
45263
45264   /* HP/UX 9 (%@#!) writes to sscanf strings */
45265   tmp_version = my_strdup("$min_sdl_version");
45266   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
45267      printf("%s, bad version string\n", "$min_sdl_version");
45268      exit(1);
45269    }
45270
45271    if (($sdl_major_version > major) ||
45272       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
45273       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
45274     {
45275       return 0;
45276     }
45277   else
45278     {
45279       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
45280       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
45281       printf("*** best to upgrade to the required version.\n");
45282       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
45283       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
45284       printf("*** config.cache before re-running configure\n");
45285       return 1;
45286     }
45287 }
45288
45289
45290 _ACEOF
45291 rm -f conftest$ac_exeext
45292 if { (ac_try="$ac_link"
45293 case "(($ac_try" in
45294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45295   *) ac_try_echo=$ac_try;;
45296 esac
45297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45298   (eval "$ac_link") 2>&5
45299   ac_status=$?
45300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45302   { (case "(($ac_try" in
45303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45304   *) ac_try_echo=$ac_try;;
45305 esac
45306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45307   (eval "$ac_try") 2>&5
45308   ac_status=$?
45309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45310   (exit $ac_status); }; }; then
45311   :
45312 else
45313   echo "$as_me: program exited with status $ac_status" >&5
45314 echo "$as_me: failed program was:" >&5
45315 sed 's/^/| /' conftest.$ac_ext >&5
45316
45317 ( exit $ac_status )
45318 no_sdl=yes
45319 fi
45320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45321 fi
45322
45323
45324        CFLAGS="$ac_save_CFLAGS"
45325        CXXFLAGS="$ac_save_CXXFLAGS"
45326        LIBS="$ac_save_LIBS"
45327      fi
45328   fi
45329   if test "x$no_sdl" = x ; then
45330      { echo "$as_me:$LINENO: result: yes" >&5
45331 echo "${ECHO_T}yes" >&6; }
45332
45333                     EXTRALIBS_SDL="$SDL_LIBS"
45334                     CFLAGS="$SDL_CFLAGS $CFLAGS"
45335                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
45336                     cat >>confdefs.h <<\_ACEOF
45337 #define wxUSE_LIBSDL 1
45338 _ACEOF
45339
45340
45341   else
45342      { echo "$as_me:$LINENO: result: no" >&5
45343 echo "${ECHO_T}no" >&6; }
45344      if test "$SDL_CONFIG" = "no" ; then
45345        echo "*** The sdl-config script installed by SDL could not be found"
45346        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
45347        echo "*** your path, or set the SDL_CONFIG environment variable to the"
45348        echo "*** full path to sdl-config."
45349      else
45350        if test -f conf.sdltest ; then
45351         :
45352        else
45353           echo "*** Could not run SDL test program, checking why..."
45354           CFLAGS="$CFLAGS $SDL_CFLAGS"
45355           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
45356           LIBS="$LIBS $SDL_LIBS"
45357           cat >conftest.$ac_ext <<_ACEOF
45358 /* confdefs.h.  */
45359 _ACEOF
45360 cat confdefs.h >>conftest.$ac_ext
45361 cat >>conftest.$ac_ext <<_ACEOF
45362 /* end confdefs.h.  */
45363
45364 #include <stdio.h>
45365 #include "SDL.h"
45366
45367 int main(int argc, char *argv[])
45368 { return 0; }
45369 #undef  main
45370 #define main K_and_R_C_main
45371
45372 int
45373 main ()
45374 {
45375  return 0;
45376   ;
45377   return 0;
45378 }
45379 _ACEOF
45380 rm -f conftest.$ac_objext conftest$ac_exeext
45381 if { (ac_try="$ac_link"
45382 case "(($ac_try" in
45383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45384   *) ac_try_echo=$ac_try;;
45385 esac
45386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45387   (eval "$ac_link") 2>conftest.er1
45388   ac_status=$?
45389   grep -v '^ *+' conftest.er1 >conftest.err
45390   rm -f conftest.er1
45391   cat conftest.err >&5
45392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45393   (exit $ac_status); } && {
45394          test -z "$ac_c_werror_flag" ||
45395          test ! -s conftest.err
45396        } && test -s conftest$ac_exeext &&
45397        $as_test_x conftest$ac_exeext; then
45398    echo "*** The test program compiled, but did not run. This usually means"
45399           echo "*** that the run-time linker is not finding SDL or finding the wrong"
45400           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
45401           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
45402           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
45403           echo "*** is required on your system"
45404           echo "***"
45405           echo "*** If you have an old version installed, it is best to remove it, although"
45406           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
45407 else
45408   echo "$as_me: failed program was:" >&5
45409 sed 's/^/| /' conftest.$ac_ext >&5
45410
45411          echo "*** The test program failed to compile or link. See the file config.log for the"
45412           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
45413           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
45414           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
45415 fi
45416
45417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45418       conftest$ac_exeext conftest.$ac_ext
45419           CFLAGS="$ac_save_CFLAGS"
45420           CXXFLAGS="$ac_save_CXXFLAGS"
45421           LIBS="$ac_save_LIBS"
45422        fi
45423      fi
45424      SDL_CFLAGS=""
45425      SDL_LIBS=""
45426      wxUSE_LIBSDL="no"
45427   fi
45428
45429
45430   rm -f conf.sdltest
45431
45432       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
45433         WITH_PLUGIN_SDL=1
45434       fi
45435     fi
45436   else
45437         if test "$wxUSE_MGL" = 1; then
45438         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
45439 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
45440         wxUSE_SOUND="no"
45441     fi
45442   fi
45443 fi
45444
45445 if test "$wxUSE_SOUND" = "yes"; then
45446   cat >>confdefs.h <<\_ACEOF
45447 #define wxUSE_SOUND 1
45448 _ACEOF
45449
45450   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
45451 fi
45452
45453 if test "$WXGTK20" = 1; then
45454
45455
45456 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
45457         if test -n "$ac_tool_prefix"; then
45458   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
45459 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
45460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45462 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
45463   echo $ECHO_N "(cached) $ECHO_C" >&6
45464 else
45465   case $PKG_CONFIG in
45466   [\\/]* | ?:[\\/]*)
45467   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45468   ;;
45469   *)
45470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45471 for as_dir in $PATH
45472 do
45473   IFS=$as_save_IFS
45474   test -z "$as_dir" && as_dir=.
45475   for ac_exec_ext in '' $ac_executable_extensions; do
45476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45477     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45479     break 2
45480   fi
45481 done
45482 done
45483 IFS=$as_save_IFS
45484
45485   ;;
45486 esac
45487 fi
45488 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45489 if test -n "$PKG_CONFIG"; then
45490   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45491 echo "${ECHO_T}$PKG_CONFIG" >&6; }
45492 else
45493   { echo "$as_me:$LINENO: result: no" >&5
45494 echo "${ECHO_T}no" >&6; }
45495 fi
45496
45497
45498 fi
45499 if test -z "$ac_cv_path_PKG_CONFIG"; then
45500   ac_pt_PKG_CONFIG=$PKG_CONFIG
45501   # Extract the first word of "pkg-config", so it can be a program name with args.
45502 set dummy pkg-config; ac_word=$2
45503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45505 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
45506   echo $ECHO_N "(cached) $ECHO_C" >&6
45507 else
45508   case $ac_pt_PKG_CONFIG in
45509   [\\/]* | ?:[\\/]*)
45510   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
45511   ;;
45512   *)
45513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45514 for as_dir in $PATH
45515 do
45516   IFS=$as_save_IFS
45517   test -z "$as_dir" && as_dir=.
45518   for ac_exec_ext in '' $ac_executable_extensions; do
45519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45520     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45522     break 2
45523   fi
45524 done
45525 done
45526 IFS=$as_save_IFS
45527
45528   ;;
45529 esac
45530 fi
45531 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
45532 if test -n "$ac_pt_PKG_CONFIG"; then
45533   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
45534 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
45535 else
45536   { echo "$as_me:$LINENO: result: no" >&5
45537 echo "${ECHO_T}no" >&6; }
45538 fi
45539
45540   if test "x$ac_pt_PKG_CONFIG" = x; then
45541     PKG_CONFIG=""
45542   else
45543     case $cross_compiling:$ac_tool_warned in
45544 yes:)
45545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
45546 whose name does not start with the host triplet.  If you think this
45547 configuration is useful to you, please write to autoconf@gnu.org." >&5
45548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
45549 whose name does not start with the host triplet.  If you think this
45550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
45551 ac_tool_warned=yes ;;
45552 esac
45553     PKG_CONFIG=$ac_pt_PKG_CONFIG
45554   fi
45555 else
45556   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
45557 fi
45558
45559 fi
45560 if test -n "$PKG_CONFIG"; then
45561         _pkg_min_version=0.9.0
45562         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
45563 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
45564         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
45565                 { echo "$as_me:$LINENO: result: yes" >&5
45566 echo "${ECHO_T}yes" >&6; }
45567         else
45568                 { echo "$as_me:$LINENO: result: no" >&5
45569 echo "${ECHO_T}no" >&6; }
45570                 PKG_CONFIG=""
45571         fi
45572
45573 fi
45574
45575     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45576         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45577
45578
45579 pkg_failed=no
45580 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
45581 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
45582
45583 if test -n "$PKG_CONFIG"; then
45584     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
45585         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
45586     else
45587         if test -n "$PKG_CONFIG" && \
45588     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45589   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45590   ac_status=$?
45591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45592   (exit $ac_status); }; then
45593   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45594 else
45595   pkg_failed=yes
45596 fi
45597     fi
45598 else
45599         pkg_failed=untried
45600 fi
45601 if test -n "$PKG_CONFIG"; then
45602     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
45603         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
45604     else
45605         if test -n "$PKG_CONFIG" && \
45606     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45607   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45608   ac_status=$?
45609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45610   (exit $ac_status); }; then
45611   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45612 else
45613   pkg_failed=yes
45614 fi
45615     fi
45616 else
45617         pkg_failed=untried
45618 fi
45619
45620
45621
45622 if test $pkg_failed = yes; then
45623
45624 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45625         _pkg_short_errors_supported=yes
45626 else
45627         _pkg_short_errors_supported=no
45628 fi
45629         if test $_pkg_short_errors_supported = yes; then
45630                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45631         else
45632                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45633         fi
45634         # Put the nasty error message in config.log where it belongs
45635         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
45636
45637
45638                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45639 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45640                         wxUSE_LIBGNOMEPRINT="no"
45641
45642
45643 elif test $pkg_failed = untried; then
45644
45645                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45646 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45647                         wxUSE_LIBGNOMEPRINT="no"
45648
45649
45650 else
45651         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
45652         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
45653         { echo "$as_me:$LINENO: result: yes" >&5
45654 echo "${ECHO_T}yes" >&6; }
45655
45656                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
45657                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
45658                         cat >>confdefs.h <<\_ACEOF
45659 #define wxUSE_LIBGNOMEPRINT 1
45660 _ACEOF
45661
45662
45663 fi
45664         fi
45665     fi
45666
45667     if test "$wxUSE_MIMETYPE" = "yes" ; then
45668         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45669
45670
45671 pkg_failed=no
45672 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
45673 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
45674
45675 if test -n "$PKG_CONFIG"; then
45676     if test -n "$GNOMEVFS_CFLAGS"; then
45677         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
45678     else
45679         if test -n "$PKG_CONFIG" && \
45680     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45681   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45682   ac_status=$?
45683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45684   (exit $ac_status); }; then
45685   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45686 else
45687   pkg_failed=yes
45688 fi
45689     fi
45690 else
45691         pkg_failed=untried
45692 fi
45693 if test -n "$PKG_CONFIG"; then
45694     if test -n "$GNOMEVFS_LIBS"; then
45695         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
45696     else
45697         if test -n "$PKG_CONFIG" && \
45698     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45699   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45700   ac_status=$?
45701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45702   (exit $ac_status); }; then
45703   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45704 else
45705   pkg_failed=yes
45706 fi
45707     fi
45708 else
45709         pkg_failed=untried
45710 fi
45711
45712
45713
45714 if test $pkg_failed = yes; then
45715
45716 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45717         _pkg_short_errors_supported=yes
45718 else
45719         _pkg_short_errors_supported=no
45720 fi
45721         if test $_pkg_short_errors_supported = yes; then
45722                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45723         else
45724                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45725         fi
45726         # Put the nasty error message in config.log where it belongs
45727         echo "$GNOMEVFS_PKG_ERRORS" >&5
45728
45729
45730                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45731 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45732                         wxUSE_LIBGNOMEVFS="no"
45733
45734
45735 elif test $pkg_failed = untried; then
45736
45737                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45738 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45739                         wxUSE_LIBGNOMEVFS="no"
45740
45741
45742 else
45743         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
45744         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
45745         { echo "$as_me:$LINENO: result: yes" >&5
45746 echo "${ECHO_T}yes" >&6; }
45747
45748                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
45749                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
45750                         cat >>confdefs.h <<\_ACEOF
45751 #define wxUSE_LIBGNOMEVFS 1
45752 _ACEOF
45753
45754
45755 fi
45756         fi
45757     fi
45758
45759     if test "$wxUSE_LIBHILDON" = "yes" ; then
45760
45761 pkg_failed=no
45762 { echo "$as_me:$LINENO: checking for HILDON" >&5
45763 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
45764
45765 if test -n "$PKG_CONFIG"; then
45766     if test -n "$HILDON_CFLAGS"; then
45767         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
45768     else
45769         if test -n "$PKG_CONFIG" && \
45770     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45771   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45772   ac_status=$?
45773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45774   (exit $ac_status); }; then
45775   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
45776 else
45777   pkg_failed=yes
45778 fi
45779     fi
45780 else
45781         pkg_failed=untried
45782 fi
45783 if test -n "$PKG_CONFIG"; then
45784     if test -n "$HILDON_LIBS"; then
45785         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
45786     else
45787         if test -n "$PKG_CONFIG" && \
45788     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45789   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45790   ac_status=$?
45791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45792   (exit $ac_status); }; then
45793   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
45794 else
45795   pkg_failed=yes
45796 fi
45797     fi
45798 else
45799         pkg_failed=untried
45800 fi
45801
45802
45803
45804 if test $pkg_failed = yes; then
45805
45806 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45807         _pkg_short_errors_supported=yes
45808 else
45809         _pkg_short_errors_supported=no
45810 fi
45811         if test $_pkg_short_errors_supported = yes; then
45812                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45813         else
45814                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45815         fi
45816         # Put the nasty error message in config.log where it belongs
45817         echo "$HILDON_PKG_ERRORS" >&5
45818
45819
45820                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45821 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45822                         wxUSE_LIBHILDON="no"
45823
45824
45825 elif test $pkg_failed = untried; then
45826
45827                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45828 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45829                         wxUSE_LIBHILDON="no"
45830
45831
45832 else
45833         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45834         HILDON_LIBS=$pkg_cv_HILDON_LIBS
45835         { echo "$as_me:$LINENO: result: yes" >&5
45836 echo "${ECHO_T}yes" >&6; }
45837
45838                 EXTRALIBS_HILDON="$HILDON_LIBS"
45839                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
45840                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45841                 cat >>confdefs.h <<\_ACEOF
45842 #define wxUSE_LIBHILDON 1
45843 _ACEOF
45844
45845
45846 fi
45847     fi
45848 fi
45849
45850 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45851   cat >>confdefs.h <<\_ACEOF
45852 #define wxUSE_CMDLINE_PARSER 1
45853 _ACEOF
45854
45855 fi
45856
45857 if test "$wxUSE_STOPWATCH" = "yes"; then
45858   cat >>confdefs.h <<\_ACEOF
45859 #define wxUSE_STOPWATCH 1
45860 _ACEOF
45861
45862 fi
45863
45864 if test "$wxUSE_DATETIME" = "yes"; then
45865   cat >>confdefs.h <<\_ACEOF
45866 #define wxUSE_DATETIME 1
45867 _ACEOF
45868
45869 fi
45870
45871 if test "$wxUSE_FILE" = "yes"; then
45872   cat >>confdefs.h <<\_ACEOF
45873 #define wxUSE_FILE 1
45874 _ACEOF
45875
45876 fi
45877
45878 if test "$wxUSE_FFILE" = "yes"; then
45879   cat >>confdefs.h <<\_ACEOF
45880 #define wxUSE_FFILE 1
45881 _ACEOF
45882
45883 fi
45884
45885 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45886   if test "$wxUSE_STREAMS" != yes; then
45887     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45888 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45889     wxUSE_ARCHIVE_STREAMS=no
45890   else
45891     cat >>confdefs.h <<\_ACEOF
45892 #define wxUSE_ARCHIVE_STREAMS 1
45893 _ACEOF
45894
45895   fi
45896 fi
45897
45898 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45899   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45900     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45901 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45902   elif test "$wxUSE_ZLIB" = "no"; then
45903     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45904 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45905   else
45906     cat >>confdefs.h <<\_ACEOF
45907 #define wxUSE_ZIPSTREAM 1
45908 _ACEOF
45909
45910   fi
45911 fi
45912
45913 if test "$wxUSE_TARSTREAM" = "yes"; then
45914   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45915     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45916 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45917   else
45918     cat >>confdefs.h <<\_ACEOF
45919 #define wxUSE_TARSTREAM 1
45920 _ACEOF
45921
45922   fi
45923 fi
45924
45925 if test "$wxUSE_FILESYSTEM" = "yes"; then
45926   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45927     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45928 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45929     wxUSE_FILESYSTEM=no
45930   else
45931     cat >>confdefs.h <<\_ACEOF
45932 #define wxUSE_FILESYSTEM 1
45933 _ACEOF
45934
45935   fi
45936 fi
45937
45938 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45939   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45940     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45941 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45942   else
45943     cat >>confdefs.h <<\_ACEOF
45944 #define wxUSE_FS_ARCHIVE 1
45945 _ACEOF
45946
45947   fi
45948 fi
45949
45950 if test "$wxUSE_FS_ZIP" = "yes"; then
45951   if test "$wxUSE_FS_ARCHIVE" != yes; then
45952     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45953 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45954   else
45955     cat >>confdefs.h <<\_ACEOF
45956 #define wxUSE_FS_ZIP 1
45957 _ACEOF
45958
45959   fi
45960 fi
45961
45962 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45963   if test "$USE_UNIX" != 1; then
45964     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45965 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45966     wxUSE_ON_FATAL_EXCEPTION=no
45967   else
45968     cat >>confdefs.h <<\_ACEOF
45969 #define wxUSE_ON_FATAL_EXCEPTION 1
45970 _ACEOF
45971
45972   fi
45973 fi
45974
45975 if test "$wxUSE_STACKWALKER" = "yes"; then
45976     cat >>confdefs.h <<\_ACEOF
45977 #define wxUSE_STACKWALKER 1
45978 _ACEOF
45979
45980 fi
45981
45982 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45983     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
45984         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45985 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45986         wxUSE_DEBUGREPORT=no
45987     else
45988         cat >>confdefs.h <<\_ACEOF
45989 #define wxUSE_DEBUGREPORT 1
45990 _ACEOF
45991
45992         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45993             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45994         fi
45995     fi
45996 fi
45997
45998 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45999   cat >>confdefs.h <<\_ACEOF
46000 #define wxUSE_SNGLINST_CHECKER 1
46001 _ACEOF
46002
46003 fi
46004
46005 if test "$wxUSE_BUSYINFO" = "yes"; then
46006   cat >>confdefs.h <<\_ACEOF
46007 #define wxUSE_BUSYINFO 1
46008 _ACEOF
46009
46010 fi
46011
46012 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
46013   cat >>confdefs.h <<\_ACEOF
46014 #define wxUSE_STD_IOSTREAM 1
46015 _ACEOF
46016
46017 fi
46018
46019 if test "$wxUSE_STD_STRING" = "yes"; then
46020   cat >>confdefs.h <<\_ACEOF
46021 #define wxUSE_STD_STRING 1
46022 _ACEOF
46023
46024 fi
46025
46026 if test "$wxUSE_STDPATHS" = "yes"; then
46027   cat >>confdefs.h <<\_ACEOF
46028 #define wxUSE_STDPATHS 1
46029 _ACEOF
46030
46031 fi
46032
46033 if test "$wxUSE_TEXTBUFFER" = "yes"; then
46034     cat >>confdefs.h <<\_ACEOF
46035 #define wxUSE_TEXTBUFFER 1
46036 _ACEOF
46037
46038 fi
46039
46040 if test "$wxUSE_TEXTFILE" = "yes"; then
46041   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
46042     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
46043 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
46044   else
46045     cat >>confdefs.h <<\_ACEOF
46046 #define wxUSE_TEXTFILE 1
46047 _ACEOF
46048
46049   fi
46050 fi
46051
46052 if test "$wxUSE_CONFIG" = "yes" ; then
46053   if test "$wxUSE_TEXTFILE" != "yes"; then
46054     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
46055 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
46056   else
46057     cat >>confdefs.h <<\_ACEOF
46058 #define wxUSE_CONFIG 1
46059 _ACEOF
46060
46061     cat >>confdefs.h <<\_ACEOF
46062 #define wxUSE_CONFIG_NATIVE 1
46063 _ACEOF
46064
46065     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
46066   fi
46067 fi
46068
46069 if test "$wxUSE_INTL" = "yes" ; then
46070   if test "$wxUSE_FILE" != "yes"; then
46071     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
46072 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
46073   else
46074     cat >>confdefs.h <<\_ACEOF
46075 #define wxUSE_INTL 1
46076 _ACEOF
46077
46078     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
46079     GUIDIST="$GUIDIST INTL_DIST"
46080   fi
46081 fi
46082
46083 if test "$wxUSE_LOG" = "yes"; then
46084   cat >>confdefs.h <<\_ACEOF
46085 #define wxUSE_LOG 1
46086 _ACEOF
46087
46088
46089     if test "$wxUSE_LOGGUI" = "yes"; then
46090       cat >>confdefs.h <<\_ACEOF
46091 #define wxUSE_LOGGUI 1
46092 _ACEOF
46093
46094     fi
46095
46096     if test "$wxUSE_LOGWINDOW" = "yes"; then
46097       cat >>confdefs.h <<\_ACEOF
46098 #define wxUSE_LOGWINDOW 1
46099 _ACEOF
46100
46101     fi
46102
46103     if test "$wxUSE_LOGDIALOG" = "yes"; then
46104       cat >>confdefs.h <<\_ACEOF
46105 #define wxUSE_LOG_DIALOG 1
46106 _ACEOF
46107
46108     fi
46109
46110         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
46111 fi
46112
46113 if test "$wxUSE_LONGLONG" = "yes"; then
46114   cat >>confdefs.h <<\_ACEOF
46115 #define wxUSE_LONGLONG 1
46116 _ACEOF
46117
46118 fi
46119
46120 if test "$wxUSE_GEOMETRY" = "yes"; then
46121   cat >>confdefs.h <<\_ACEOF
46122 #define wxUSE_GEOMETRY 1
46123 _ACEOF
46124
46125 fi
46126
46127 if test "$wxUSE_BASE64" = "yes"; then
46128   cat >>confdefs.h <<\_ACEOF
46129 #define wxUSE_BASE64 1
46130 _ACEOF
46131
46132 fi
46133
46134 if test "$wxUSE_STREAMS" = "yes" ; then
46135   cat >>confdefs.h <<\_ACEOF
46136 #define wxUSE_STREAMS 1
46137 _ACEOF
46138
46139 fi
46140
46141 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
46142   cat >>confdefs.h <<\_ACEOF
46143 #define wxUSE_PRINTF_POS_PARAMS 1
46144 _ACEOF
46145
46146 fi
46147
46148 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
46149   cat >>confdefs.h <<\_ACEOF
46150 #define wxUSE_OBJC_UNIQUIFYING 1
46151 _ACEOF
46152
46153 fi
46154
46155
46156 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
46157     cat >>confdefs.h <<\_ACEOF
46158 #define wxUSE_CONSOLE_EVENTLOOP 1
46159 _ACEOF
46160
46161
46162     if test "$wxUSE_UNIX" = "yes"; then
46163         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
46164             cat >>confdefs.h <<\_ACEOF
46165 #define wxUSE_SELECT_DISPATCHER 1
46166 _ACEOF
46167
46168         fi
46169
46170         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
46171
46172 for ac_header in sys/epoll.h
46173 do
46174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46176   { echo "$as_me:$LINENO: checking for $ac_header" >&5
46177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46179   echo $ECHO_N "(cached) $ECHO_C" >&6
46180 fi
46181 ac_res=`eval echo '${'$as_ac_Header'}'`
46182                { echo "$as_me:$LINENO: result: $ac_res" >&5
46183 echo "${ECHO_T}$ac_res" >&6; }
46184 else
46185   # Is the header compilable?
46186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
46187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
46188 cat >conftest.$ac_ext <<_ACEOF
46189 /* confdefs.h.  */
46190 _ACEOF
46191 cat confdefs.h >>conftest.$ac_ext
46192 cat >>conftest.$ac_ext <<_ACEOF
46193 /* end confdefs.h.  */
46194 $ac_includes_default
46195 #include <$ac_header>
46196 _ACEOF
46197 rm -f conftest.$ac_objext
46198 if { (ac_try="$ac_compile"
46199 case "(($ac_try" in
46200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46201   *) ac_try_echo=$ac_try;;
46202 esac
46203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46204   (eval "$ac_compile") 2>conftest.er1
46205   ac_status=$?
46206   grep -v '^ *+' conftest.er1 >conftest.err
46207   rm -f conftest.er1
46208   cat conftest.err >&5
46209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46210   (exit $ac_status); } && {
46211          test -z "$ac_c_werror_flag" ||
46212          test ! -s conftest.err
46213        } && test -s conftest.$ac_objext; then
46214   ac_header_compiler=yes
46215 else
46216   echo "$as_me: failed program was:" >&5
46217 sed 's/^/| /' conftest.$ac_ext >&5
46218
46219         ac_header_compiler=no
46220 fi
46221
46222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46224 echo "${ECHO_T}$ac_header_compiler" >&6; }
46225
46226 # Is the header present?
46227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
46228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
46229 cat >conftest.$ac_ext <<_ACEOF
46230 /* confdefs.h.  */
46231 _ACEOF
46232 cat confdefs.h >>conftest.$ac_ext
46233 cat >>conftest.$ac_ext <<_ACEOF
46234 /* end confdefs.h.  */
46235 #include <$ac_header>
46236 _ACEOF
46237 if { (ac_try="$ac_cpp conftest.$ac_ext"
46238 case "(($ac_try" in
46239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46240   *) ac_try_echo=$ac_try;;
46241 esac
46242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46243   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46244   ac_status=$?
46245   grep -v '^ *+' conftest.er1 >conftest.err
46246   rm -f conftest.er1
46247   cat conftest.err >&5
46248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46249   (exit $ac_status); } >/dev/null && {
46250          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46251          test ! -s conftest.err
46252        }; then
46253   ac_header_preproc=yes
46254 else
46255   echo "$as_me: failed program was:" >&5
46256 sed 's/^/| /' conftest.$ac_ext >&5
46257
46258   ac_header_preproc=no
46259 fi
46260
46261 rm -f conftest.err conftest.$ac_ext
46262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46263 echo "${ECHO_T}$ac_header_preproc" >&6; }
46264
46265 # So?  What about this header?
46266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46267   yes:no: )
46268     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46270     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46272     ac_header_preproc=yes
46273     ;;
46274   no:yes:* )
46275     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46277     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46278 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46279     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46281     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46282 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46283     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46285     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46287     ( cat <<\_ASBOX
46288 ## ----------------------------------------- ##
46289 ## Report this to wx-dev@lists.wxwidgets.org ##
46290 ## ----------------------------------------- ##
46291 _ASBOX
46292      ) | sed "s/^/$as_me: WARNING:     /" >&2
46293     ;;
46294 esac
46295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46298   echo $ECHO_N "(cached) $ECHO_C" >&6
46299 else
46300   eval "$as_ac_Header=\$ac_header_preproc"
46301 fi
46302 ac_res=`eval echo '${'$as_ac_Header'}'`
46303                { echo "$as_me:$LINENO: result: $ac_res" >&5
46304 echo "${ECHO_T}$ac_res" >&6; }
46305
46306 fi
46307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46308   cat >>confdefs.h <<_ACEOF
46309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46310 _ACEOF
46311
46312 fi
46313
46314 done
46315
46316             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
46317                 cat >>confdefs.h <<\_ACEOF
46318 #define wxUSE_EPOLL_DISPATCHER 1
46319 _ACEOF
46320
46321             else
46322                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
46323 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
46324             fi
46325         fi
46326     fi
46327 fi
46328
46329
46330
46331
46332 for ac_func in gettimeofday ftime
46333 do
46334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46338   echo $ECHO_N "(cached) $ECHO_C" >&6
46339 else
46340   cat >conftest.$ac_ext <<_ACEOF
46341 /* confdefs.h.  */
46342 _ACEOF
46343 cat confdefs.h >>conftest.$ac_ext
46344 cat >>conftest.$ac_ext <<_ACEOF
46345 /* end confdefs.h.  */
46346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46348 #define $ac_func innocuous_$ac_func
46349
46350 /* System header to define __stub macros and hopefully few prototypes,
46351     which can conflict with char $ac_func (); below.
46352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46353     <limits.h> exists even on freestanding compilers.  */
46354
46355 #ifdef __STDC__
46356 # include <limits.h>
46357 #else
46358 # include <assert.h>
46359 #endif
46360
46361 #undef $ac_func
46362
46363 /* Override any GCC internal prototype to avoid an error.
46364    Use char because int might match the return type of a GCC
46365    builtin and then its argument prototype would still apply.  */
46366 #ifdef __cplusplus
46367 extern "C"
46368 #endif
46369 char $ac_func ();
46370 /* The GNU C library defines this for functions which it implements
46371     to always fail with ENOSYS.  Some functions are actually named
46372     something starting with __ and the normal name is an alias.  */
46373 #if defined __stub_$ac_func || defined __stub___$ac_func
46374 choke me
46375 #endif
46376
46377 int
46378 main ()
46379 {
46380 return $ac_func ();
46381   ;
46382   return 0;
46383 }
46384 _ACEOF
46385 rm -f conftest.$ac_objext conftest$ac_exeext
46386 if { (ac_try="$ac_link"
46387 case "(($ac_try" in
46388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46389   *) ac_try_echo=$ac_try;;
46390 esac
46391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46392   (eval "$ac_link") 2>conftest.er1
46393   ac_status=$?
46394   grep -v '^ *+' conftest.er1 >conftest.err
46395   rm -f conftest.er1
46396   cat conftest.err >&5
46397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46398   (exit $ac_status); } && {
46399          test -z "$ac_c_werror_flag" ||
46400          test ! -s conftest.err
46401        } && test -s conftest$ac_exeext &&
46402        $as_test_x conftest$ac_exeext; then
46403   eval "$as_ac_var=yes"
46404 else
46405   echo "$as_me: failed program was:" >&5
46406 sed 's/^/| /' conftest.$ac_ext >&5
46407
46408         eval "$as_ac_var=no"
46409 fi
46410
46411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46412       conftest$ac_exeext conftest.$ac_ext
46413 fi
46414 ac_res=`eval echo '${'$as_ac_var'}'`
46415                { echo "$as_me:$LINENO: result: $ac_res" >&5
46416 echo "${ECHO_T}$ac_res" >&6; }
46417 if test `eval echo '${'$as_ac_var'}'` = yes; then
46418   cat >>confdefs.h <<_ACEOF
46419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46420 _ACEOF
46421  break
46422 fi
46423 done
46424
46425
46426 if test "$ac_cv_func_gettimeofday" = "yes"; then
46427     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
46428 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
46429 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
46430   echo $ECHO_N "(cached) $ECHO_C" >&6
46431 else
46432
46433                 cat >conftest.$ac_ext <<_ACEOF
46434 /* confdefs.h.  */
46435 _ACEOF
46436 cat confdefs.h >>conftest.$ac_ext
46437 cat >>conftest.$ac_ext <<_ACEOF
46438 /* end confdefs.h.  */
46439
46440                 #include <sys/time.h>
46441                 #include <unistd.h>
46442
46443 int
46444 main ()
46445 {
46446
46447                 struct timeval tv;
46448                 gettimeofday(&tv, NULL);
46449
46450   ;
46451   return 0;
46452 }
46453 _ACEOF
46454 rm -f conftest.$ac_objext
46455 if { (ac_try="$ac_compile"
46456 case "(($ac_try" in
46457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46458   *) ac_try_echo=$ac_try;;
46459 esac
46460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46461   (eval "$ac_compile") 2>conftest.er1
46462   ac_status=$?
46463   grep -v '^ *+' conftest.er1 >conftest.err
46464   rm -f conftest.er1
46465   cat conftest.err >&5
46466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46467   (exit $ac_status); } && {
46468          test -z "$ac_c_werror_flag" ||
46469          test ! -s conftest.err
46470        } && test -s conftest.$ac_objext; then
46471   wx_cv_func_gettimeofday_has_2_args=yes
46472 else
46473   echo "$as_me: failed program was:" >&5
46474 sed 's/^/| /' conftest.$ac_ext >&5
46475
46476         cat >conftest.$ac_ext <<_ACEOF
46477 /* confdefs.h.  */
46478 _ACEOF
46479 cat confdefs.h >>conftest.$ac_ext
46480 cat >>conftest.$ac_ext <<_ACEOF
46481 /* end confdefs.h.  */
46482
46483                     #include <sys/time.h>
46484                     #include <unistd.h>
46485
46486 int
46487 main ()
46488 {
46489
46490                     struct timeval tv;
46491                     gettimeofday(&tv);
46492
46493   ;
46494   return 0;
46495 }
46496 _ACEOF
46497 rm -f conftest.$ac_objext
46498 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
46514   wx_cv_func_gettimeofday_has_2_args=no
46515 else
46516   echo "$as_me: failed program was:" >&5
46517 sed 's/^/| /' conftest.$ac_ext >&5
46518
46519
46520                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
46521 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
46522                     wx_cv_func_gettimeofday_has_2_args=unknown
46523
46524
46525 fi
46526
46527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46528
46529 fi
46530
46531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46532
46533 fi
46534 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
46535 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
46536
46537     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
46538         cat >>confdefs.h <<\_ACEOF
46539 #define WX_GETTIMEOFDAY_NO_TZ 1
46540 _ACEOF
46541
46542     fi
46543 fi
46544
46545 if test "$wxUSE_DATETIME" = "yes"; then
46546         { echo "$as_me:$LINENO: checking for strptime" >&5
46547 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
46548 if test "${ac_cv_func_strptime+set}" = set; then
46549   echo $ECHO_N "(cached) $ECHO_C" >&6
46550 else
46551   cat >conftest.$ac_ext <<_ACEOF
46552 /* confdefs.h.  */
46553 _ACEOF
46554 cat confdefs.h >>conftest.$ac_ext
46555 cat >>conftest.$ac_ext <<_ACEOF
46556 /* end confdefs.h.  */
46557 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
46558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46559 #define strptime innocuous_strptime
46560
46561 /* System header to define __stub macros and hopefully few prototypes,
46562     which can conflict with char strptime (); below.
46563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46564     <limits.h> exists even on freestanding compilers.  */
46565
46566 #ifdef __STDC__
46567 # include <limits.h>
46568 #else
46569 # include <assert.h>
46570 #endif
46571
46572 #undef strptime
46573
46574 /* Override any GCC internal prototype to avoid an error.
46575    Use char because int might match the return type of a GCC
46576    builtin and then its argument prototype would still apply.  */
46577 #ifdef __cplusplus
46578 extern "C"
46579 #endif
46580 char strptime ();
46581 /* The GNU C library defines this for functions which it implements
46582     to always fail with ENOSYS.  Some functions are actually named
46583     something starting with __ and the normal name is an alias.  */
46584 #if defined __stub_strptime || defined __stub___strptime
46585 choke me
46586 #endif
46587
46588 int
46589 main ()
46590 {
46591 return strptime ();
46592   ;
46593   return 0;
46594 }
46595 _ACEOF
46596 rm -f conftest.$ac_objext conftest$ac_exeext
46597 if { (ac_try="$ac_link"
46598 case "(($ac_try" in
46599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46600   *) ac_try_echo=$ac_try;;
46601 esac
46602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46603   (eval "$ac_link") 2>conftest.er1
46604   ac_status=$?
46605   grep -v '^ *+' conftest.er1 >conftest.err
46606   rm -f conftest.er1
46607   cat conftest.err >&5
46608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46609   (exit $ac_status); } && {
46610          test -z "$ac_c_werror_flag" ||
46611          test ! -s conftest.err
46612        } && test -s conftest$ac_exeext &&
46613        $as_test_x conftest$ac_exeext; then
46614   ac_cv_func_strptime=yes
46615 else
46616   echo "$as_me: failed program was:" >&5
46617 sed 's/^/| /' conftest.$ac_ext >&5
46618
46619         ac_cv_func_strptime=no
46620 fi
46621
46622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46623       conftest$ac_exeext conftest.$ac_ext
46624 fi
46625 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
46626 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
46627
46628     if test "$ac_cv_func_strptime" = "yes"; then
46629         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
46630 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
46631 if test "${wx_cv_func_strptime_decl+set}" = set; then
46632   echo $ECHO_N "(cached) $ECHO_C" >&6
46633 else
46634
46635                 ac_ext=cpp
46636 ac_cpp='$CXXCPP $CPPFLAGS'
46637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46640
46641                 cat >conftest.$ac_ext <<_ACEOF
46642 /* confdefs.h.  */
46643 _ACEOF
46644 cat confdefs.h >>conftest.$ac_ext
46645 cat >>conftest.$ac_ext <<_ACEOF
46646 /* end confdefs.h.  */
46647
46648                         #include <time.h>
46649
46650 int
46651 main ()
46652 {
46653
46654                         struct tm t;
46655                         strptime("foo", "bar", &t);
46656
46657   ;
46658   return 0;
46659 }
46660 _ACEOF
46661 rm -f conftest.$ac_objext
46662 if { (ac_try="$ac_compile"
46663 case "(($ac_try" in
46664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46665   *) ac_try_echo=$ac_try;;
46666 esac
46667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46668   (eval "$ac_compile") 2>conftest.er1
46669   ac_status=$?
46670   grep -v '^ *+' conftest.er1 >conftest.err
46671   rm -f conftest.er1
46672   cat conftest.err >&5
46673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46674   (exit $ac_status); } && {
46675          test -z "$ac_cxx_werror_flag" ||
46676          test ! -s conftest.err
46677        } && test -s conftest.$ac_objext; then
46678   wx_cv_func_strptime_decl=yes
46679 else
46680   echo "$as_me: failed program was:" >&5
46681 sed 's/^/| /' conftest.$ac_ext >&5
46682
46683         wx_cv_func_strptime_decl=no
46684
46685 fi
46686
46687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46688                 ac_ext=c
46689 ac_cpp='$CPP $CPPFLAGS'
46690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46693
46694
46695
46696 fi
46697 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
46698 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
46699     fi
46700     if test "$wx_cv_func_strptime_decl" = "yes"; then
46701         cat >>confdefs.h <<\_ACEOF
46702 #define HAVE_STRPTIME_DECL 1
46703 _ACEOF
46704
46705     else
46706         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
46707     fi
46708     if test "$ac_cv_func_strptime" = "yes"; then
46709                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
46710 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
46711 if test "${wx_cv_func_strptime_ok+set}" = set; then
46712   echo $ECHO_N "(cached) $ECHO_C" >&6
46713 else
46714   if test "$cross_compiling" = yes; then
46715                   wx_cv_func_strptime_ok=no
46716
46717 else
46718   cat >conftest.$ac_ext <<_ACEOF
46719
46720                     #include <stdlib.h>
46721                     #include <time.h>
46722                     #include "confdefs.h"
46723
46724                     $wx_strptime_decl
46725
46726                     int main()
46727                     {
46728                         struct tm t;
46729                         return !!strptime("", "%x", &t);
46730                     }
46731
46732 _ACEOF
46733 rm -f conftest$ac_exeext
46734 if { (ac_try="$ac_link"
46735 case "(($ac_try" in
46736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46737   *) ac_try_echo=$ac_try;;
46738 esac
46739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46740   (eval "$ac_link") 2>&5
46741   ac_status=$?
46742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46743   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46744   { (case "(($ac_try" in
46745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46746   *) ac_try_echo=$ac_try;;
46747 esac
46748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46749   (eval "$ac_try") 2>&5
46750   ac_status=$?
46751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46752   (exit $ac_status); }; }; then
46753   wx_cv_func_strptime_ok=yes
46754 else
46755   echo "$as_me: program exited with status $ac_status" >&5
46756 echo "$as_me: failed program was:" >&5
46757 sed 's/^/| /' conftest.$ac_ext >&5
46758
46759 ( exit $ac_status )
46760 wx_cv_func_strptime_ok=no
46761 fi
46762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46763 fi
46764
46765
46766
46767 fi
46768 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
46769 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
46770
46771         if test "$wx_cv_func_strptime_ok" = "yes"; then
46772             cat >>confdefs.h <<\_ACEOF
46773 #define HAVE_STRPTIME 1
46774 _ACEOF
46775
46776         fi
46777     fi
46778
46779             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
46780 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
46781 if test "${wx_cv_var_timezone+set}" = set; then
46782   echo $ECHO_N "(cached) $ECHO_C" >&6
46783 else
46784
46785                         ac_ext=cpp
46786 ac_cpp='$CXXCPP $CPPFLAGS'
46787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
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 <time.h>
46799
46800 int
46801 main ()
46802 {
46803
46804                                 int tz;
46805                                 tz = timezone;
46806
46807   ;
46808   return 0;
46809 }
46810 _ACEOF
46811 rm -f conftest.$ac_objext
46812 if { (ac_try="$ac_compile"
46813 case "(($ac_try" in
46814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46815   *) ac_try_echo=$ac_try;;
46816 esac
46817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46818   (eval "$ac_compile") 2>conftest.er1
46819   ac_status=$?
46820   grep -v '^ *+' conftest.er1 >conftest.err
46821   rm -f conftest.er1
46822   cat conftest.err >&5
46823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46824   (exit $ac_status); } && {
46825          test -z "$ac_cxx_werror_flag" ||
46826          test ! -s conftest.err
46827        } && test -s conftest.$ac_objext; then
46828
46829                                 wx_cv_var_timezone=timezone
46830
46831 else
46832   echo "$as_me: failed program was:" >&5
46833 sed 's/^/| /' conftest.$ac_ext >&5
46834
46835
46836                                 cat >conftest.$ac_ext <<_ACEOF
46837 /* confdefs.h.  */
46838 _ACEOF
46839 cat confdefs.h >>conftest.$ac_ext
46840 cat >>conftest.$ac_ext <<_ACEOF
46841 /* end confdefs.h.  */
46842
46843                                         #include <time.h>
46844
46845 int
46846 main ()
46847 {
46848
46849                                         int tz;
46850                                         tz = _timezone;
46851
46852   ;
46853   return 0;
46854 }
46855 _ACEOF
46856 rm -f conftest.$ac_objext
46857 if { (ac_try="$ac_compile"
46858 case "(($ac_try" in
46859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46860   *) ac_try_echo=$ac_try;;
46861 esac
46862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46863   (eval "$ac_compile") 2>conftest.er1
46864   ac_status=$?
46865   grep -v '^ *+' conftest.er1 >conftest.err
46866   rm -f conftest.er1
46867   cat conftest.err >&5
46868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46869   (exit $ac_status); } && {
46870          test -z "$ac_cxx_werror_flag" ||
46871          test ! -s conftest.err
46872        } && test -s conftest.$ac_objext; then
46873
46874                                         wx_cv_var_timezone=_timezone
46875
46876 else
46877   echo "$as_me: failed program was:" >&5
46878 sed 's/^/| /' conftest.$ac_ext >&5
46879
46880
46881                                         cat >conftest.$ac_ext <<_ACEOF
46882 /* confdefs.h.  */
46883 _ACEOF
46884 cat confdefs.h >>conftest.$ac_ext
46885 cat >>conftest.$ac_ext <<_ACEOF
46886 /* end confdefs.h.  */
46887
46888                                                 #include <time.h>
46889
46890 int
46891 main ()
46892 {
46893
46894                                                 int tz;
46895                                                 tz = __timezone;
46896
46897   ;
46898   return 0;
46899 }
46900 _ACEOF
46901 rm -f conftest.$ac_objext
46902 if { (ac_try="$ac_compile"
46903 case "(($ac_try" in
46904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46905   *) ac_try_echo=$ac_try;;
46906 esac
46907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46908   (eval "$ac_compile") 2>conftest.er1
46909   ac_status=$?
46910   grep -v '^ *+' conftest.er1 >conftest.err
46911   rm -f conftest.er1
46912   cat conftest.err >&5
46913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46914   (exit $ac_status); } && {
46915          test -z "$ac_cxx_werror_flag" ||
46916          test ! -s conftest.err
46917        } && test -s conftest.$ac_objext; then
46918
46919                                                 wx_cv_var_timezone=__timezone
46920
46921 else
46922   echo "$as_me: failed program was:" >&5
46923 sed 's/^/| /' conftest.$ac_ext >&5
46924
46925
46926                                                 if test "$USE_DOS" = 0 ; then
46927                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46928 echo "$as_me: WARNING: no timezone variable" >&2;}
46929                                                 fi
46930
46931
46932 fi
46933
46934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46935
46936
46937 fi
46938
46939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46940
46941
46942 fi
46943
46944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46945                         ac_ext=c
46946 ac_cpp='$CPP $CPPFLAGS'
46947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46950
46951
46952
46953 fi
46954 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
46955 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
46956
46957         if test "x$wx_cv_var_timezone" != x ; then
46958         cat >>confdefs.h <<_ACEOF
46959 #define WX_TIMEZONE $wx_cv_var_timezone
46960 _ACEOF
46961
46962     fi
46963
46964
46965 for ac_func in localtime
46966 do
46967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46968 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46971   echo $ECHO_N "(cached) $ECHO_C" >&6
46972 else
46973   cat >conftest.$ac_ext <<_ACEOF
46974 /* confdefs.h.  */
46975 _ACEOF
46976 cat confdefs.h >>conftest.$ac_ext
46977 cat >>conftest.$ac_ext <<_ACEOF
46978 /* end confdefs.h.  */
46979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46981 #define $ac_func innocuous_$ac_func
46982
46983 /* System header to define __stub macros and hopefully few prototypes,
46984     which can conflict with char $ac_func (); below.
46985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46986     <limits.h> exists even on freestanding compilers.  */
46987
46988 #ifdef __STDC__
46989 # include <limits.h>
46990 #else
46991 # include <assert.h>
46992 #endif
46993
46994 #undef $ac_func
46995
46996 /* Override any GCC internal prototype to avoid an error.
46997    Use char because int might match the return type of a GCC
46998    builtin and then its argument prototype would still apply.  */
46999 #ifdef __cplusplus
47000 extern "C"
47001 #endif
47002 char $ac_func ();
47003 /* The GNU C library defines this for functions which it implements
47004     to always fail with ENOSYS.  Some functions are actually named
47005     something starting with __ and the normal name is an alias.  */
47006 #if defined __stub_$ac_func || defined __stub___$ac_func
47007 choke me
47008 #endif
47009
47010 int
47011 main ()
47012 {
47013 return $ac_func ();
47014   ;
47015   return 0;
47016 }
47017 _ACEOF
47018 rm -f conftest.$ac_objext conftest$ac_exeext
47019 if { (ac_try="$ac_link"
47020 case "(($ac_try" in
47021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47022   *) ac_try_echo=$ac_try;;
47023 esac
47024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47025   (eval "$ac_link") 2>conftest.er1
47026   ac_status=$?
47027   grep -v '^ *+' conftest.er1 >conftest.err
47028   rm -f conftest.er1
47029   cat conftest.err >&5
47030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47031   (exit $ac_status); } && {
47032          test -z "$ac_c_werror_flag" ||
47033          test ! -s conftest.err
47034        } && test -s conftest$ac_exeext &&
47035        $as_test_x conftest$ac_exeext; then
47036   eval "$as_ac_var=yes"
47037 else
47038   echo "$as_me: failed program was:" >&5
47039 sed 's/^/| /' conftest.$ac_ext >&5
47040
47041         eval "$as_ac_var=no"
47042 fi
47043
47044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47045       conftest$ac_exeext conftest.$ac_ext
47046 fi
47047 ac_res=`eval echo '${'$as_ac_var'}'`
47048                { echo "$as_me:$LINENO: result: $ac_res" >&5
47049 echo "${ECHO_T}$ac_res" >&6; }
47050 if test `eval echo '${'$as_ac_var'}'` = yes; then
47051   cat >>confdefs.h <<_ACEOF
47052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47053 _ACEOF
47054
47055 fi
47056 done
47057
47058
47059     if test "$ac_cv_func_localtime" = "yes"; then
47060         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
47061 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
47062 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
47063   echo $ECHO_N "(cached) $ECHO_C" >&6
47064 else
47065
47066             cat >conftest.$ac_ext <<_ACEOF
47067 /* confdefs.h.  */
47068 _ACEOF
47069 cat confdefs.h >>conftest.$ac_ext
47070 cat >>conftest.$ac_ext <<_ACEOF
47071 /* end confdefs.h.  */
47072
47073                     #include <time.h>
47074
47075 int
47076 main ()
47077 {
47078
47079                     struct tm tm;
47080                     tm.tm_gmtoff++;
47081
47082   ;
47083   return 0;
47084 }
47085 _ACEOF
47086 rm -f conftest.$ac_objext
47087 if { (ac_try="$ac_compile"
47088 case "(($ac_try" in
47089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47090   *) ac_try_echo=$ac_try;;
47091 esac
47092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47093   (eval "$ac_compile") 2>conftest.er1
47094   ac_status=$?
47095   grep -v '^ *+' conftest.er1 >conftest.err
47096   rm -f conftest.er1
47097   cat conftest.err >&5
47098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47099   (exit $ac_status); } && {
47100          test -z "$ac_c_werror_flag" ||
47101          test ! -s conftest.err
47102        } && test -s conftest.$ac_objext; then
47103
47104                     wx_cv_struct_tm_has_gmtoff=yes
47105
47106 else
47107   echo "$as_me: failed program was:" >&5
47108 sed 's/^/| /' conftest.$ac_ext >&5
47109
47110         wx_cv_struct_tm_has_gmtoff=no
47111
47112 fi
47113
47114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47115
47116 fi
47117 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
47118 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
47119     fi
47120
47121     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
47122         cat >>confdefs.h <<\_ACEOF
47123 #define WX_GMTOFF_IN_TM 1
47124 _ACEOF
47125
47126     fi
47127
47128     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
47129 fi
47130
47131
47132 if test "$wxUSE_SOCKETS" = "yes"; then
47133     if test "$wxUSE_MGL" = "1"; then
47134         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
47135 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
47136         wxUSE_SOCKETS="no"
47137     fi
47138 fi
47139
47140 if test "$wxUSE_SOCKETS" = "yes"; then
47141         if test "$TOOLKIT" != "MSW"; then
47142                 { echo "$as_me:$LINENO: checking for socket" >&5
47143 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
47144 if test "${ac_cv_func_socket+set}" = set; then
47145   echo $ECHO_N "(cached) $ECHO_C" >&6
47146 else
47147   cat >conftest.$ac_ext <<_ACEOF
47148 /* confdefs.h.  */
47149 _ACEOF
47150 cat confdefs.h >>conftest.$ac_ext
47151 cat >>conftest.$ac_ext <<_ACEOF
47152 /* end confdefs.h.  */
47153 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
47154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47155 #define socket innocuous_socket
47156
47157 /* System header to define __stub macros and hopefully few prototypes,
47158     which can conflict with char socket (); below.
47159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47160     <limits.h> exists even on freestanding compilers.  */
47161
47162 #ifdef __STDC__
47163 # include <limits.h>
47164 #else
47165 # include <assert.h>
47166 #endif
47167
47168 #undef socket
47169
47170 /* Override any GCC internal prototype to avoid an error.
47171    Use char because int might match the return type of a GCC
47172    builtin and then its argument prototype would still apply.  */
47173 #ifdef __cplusplus
47174 extern "C"
47175 #endif
47176 char socket ();
47177 /* The GNU C library defines this for functions which it implements
47178     to always fail with ENOSYS.  Some functions are actually named
47179     something starting with __ and the normal name is an alias.  */
47180 #if defined __stub_socket || defined __stub___socket
47181 choke me
47182 #endif
47183
47184 int
47185 main ()
47186 {
47187 return socket ();
47188   ;
47189   return 0;
47190 }
47191 _ACEOF
47192 rm -f conftest.$ac_objext conftest$ac_exeext
47193 if { (ac_try="$ac_link"
47194 case "(($ac_try" in
47195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47196   *) ac_try_echo=$ac_try;;
47197 esac
47198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47199   (eval "$ac_link") 2>conftest.er1
47200   ac_status=$?
47201   grep -v '^ *+' conftest.er1 >conftest.err
47202   rm -f conftest.er1
47203   cat conftest.err >&5
47204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47205   (exit $ac_status); } && {
47206          test -z "$ac_c_werror_flag" ||
47207          test ! -s conftest.err
47208        } && test -s conftest$ac_exeext &&
47209        $as_test_x conftest$ac_exeext; then
47210   ac_cv_func_socket=yes
47211 else
47212   echo "$as_me: failed program was:" >&5
47213 sed 's/^/| /' conftest.$ac_ext >&5
47214
47215         ac_cv_func_socket=no
47216 fi
47217
47218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47219       conftest$ac_exeext conftest.$ac_ext
47220 fi
47221 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
47222 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
47223 if test $ac_cv_func_socket = yes; then
47224   :
47225 else
47226
47227                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
47228 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
47229 if test "${ac_cv_lib_socket_socket+set}" = set; then
47230   echo $ECHO_N "(cached) $ECHO_C" >&6
47231 else
47232   ac_check_lib_save_LIBS=$LIBS
47233 LIBS="-lsocket  $LIBS"
47234 cat >conftest.$ac_ext <<_ACEOF
47235 /* confdefs.h.  */
47236 _ACEOF
47237 cat confdefs.h >>conftest.$ac_ext
47238 cat >>conftest.$ac_ext <<_ACEOF
47239 /* end confdefs.h.  */
47240
47241 /* Override any GCC internal prototype to avoid an error.
47242    Use char because int might match the return type of a GCC
47243    builtin and then its argument prototype would still apply.  */
47244 #ifdef __cplusplus
47245 extern "C"
47246 #endif
47247 char socket ();
47248 int
47249 main ()
47250 {
47251 return socket ();
47252   ;
47253   return 0;
47254 }
47255 _ACEOF
47256 rm -f conftest.$ac_objext conftest$ac_exeext
47257 if { (ac_try="$ac_link"
47258 case "(($ac_try" in
47259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47260   *) ac_try_echo=$ac_try;;
47261 esac
47262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47263   (eval "$ac_link") 2>conftest.er1
47264   ac_status=$?
47265   grep -v '^ *+' conftest.er1 >conftest.err
47266   rm -f conftest.er1
47267   cat conftest.err >&5
47268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47269   (exit $ac_status); } && {
47270          test -z "$ac_c_werror_flag" ||
47271          test ! -s conftest.err
47272        } && test -s conftest$ac_exeext &&
47273        $as_test_x conftest$ac_exeext; then
47274   ac_cv_lib_socket_socket=yes
47275 else
47276   echo "$as_me: failed program was:" >&5
47277 sed 's/^/| /' conftest.$ac_ext >&5
47278
47279         ac_cv_lib_socket_socket=no
47280 fi
47281
47282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47283       conftest$ac_exeext conftest.$ac_ext
47284 LIBS=$ac_check_lib_save_LIBS
47285 fi
47286 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
47287 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
47288 if test $ac_cv_lib_socket_socket = yes; then
47289   if test "$INET_LINK" != " -lsocket"; then
47290                         INET_LINK="$INET_LINK -lsocket"
47291                     fi
47292 else
47293
47294                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
47295 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
47296                         wxUSE_SOCKETS=no
47297
47298
47299 fi
47300
47301
47302
47303 fi
47304
47305     fi
47306 fi
47307
47308 if test "$wxUSE_SOCKETS" = "yes" ; then
47309                 if test "$TOOLKIT" != "MSW"; then
47310                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
47311 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
47312 if test "${wx_cv_type_getsockname3+set}" = set; then
47313   echo $ECHO_N "(cached) $ECHO_C" >&6
47314 else
47315
47316                 ac_ext=cpp
47317 ac_cpp='$CXXCPP $CPPFLAGS'
47318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47321
47322                 cat >conftest.$ac_ext <<_ACEOF
47323 /* confdefs.h.  */
47324 _ACEOF
47325 cat confdefs.h >>conftest.$ac_ext
47326 cat >>conftest.$ac_ext <<_ACEOF
47327 /* end confdefs.h.  */
47328
47329                         #include <sys/types.h>
47330                         #include <sys/socket.h>
47331
47332 int
47333 main ()
47334 {
47335
47336                         socklen_t len;
47337                         getsockname(0, 0, &len);
47338
47339   ;
47340   return 0;
47341 }
47342 _ACEOF
47343 rm -f conftest.$ac_objext
47344 if { (ac_try="$ac_compile"
47345 case "(($ac_try" in
47346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47347   *) ac_try_echo=$ac_try;;
47348 esac
47349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47350   (eval "$ac_compile") 2>conftest.er1
47351   ac_status=$?
47352   grep -v '^ *+' conftest.er1 >conftest.err
47353   rm -f conftest.er1
47354   cat conftest.err >&5
47355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47356   (exit $ac_status); } && {
47357          test -z "$ac_cxx_werror_flag" ||
47358          test ! -s conftest.err
47359        } && test -s conftest.$ac_objext; then
47360   wx_cv_type_getsockname3=socklen_t
47361 else
47362   echo "$as_me: failed program was:" >&5
47363 sed 's/^/| /' conftest.$ac_ext >&5
47364
47365
47366                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
47367                         if test "$GCC" = yes ; then
47368                             CFLAGS="-Werror $CFLAGS"
47369                         fi
47370
47371                         cat >conftest.$ac_ext <<_ACEOF
47372 /* confdefs.h.  */
47373 _ACEOF
47374 cat confdefs.h >>conftest.$ac_ext
47375 cat >>conftest.$ac_ext <<_ACEOF
47376 /* end confdefs.h.  */
47377
47378                                 #include <sys/types.h>
47379                                 #include <sys/socket.h>
47380
47381 int
47382 main ()
47383 {
47384
47385                                 size_t len;
47386                                 getsockname(0, 0, &len);
47387
47388   ;
47389   return 0;
47390 }
47391 _ACEOF
47392 rm -f conftest.$ac_objext
47393 if { (ac_try="$ac_compile"
47394 case "(($ac_try" in
47395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47396   *) ac_try_echo=$ac_try;;
47397 esac
47398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47399   (eval "$ac_compile") 2>conftest.er1
47400   ac_status=$?
47401   grep -v '^ *+' conftest.er1 >conftest.err
47402   rm -f conftest.er1
47403   cat conftest.err >&5
47404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47405   (exit $ac_status); } && {
47406          test -z "$ac_cxx_werror_flag" ||
47407          test ! -s conftest.err
47408        } && test -s conftest.$ac_objext; then
47409   wx_cv_type_getsockname3=size_t
47410 else
47411   echo "$as_me: failed program was:" >&5
47412 sed 's/^/| /' conftest.$ac_ext >&5
47413
47414         cat >conftest.$ac_ext <<_ACEOF
47415 /* confdefs.h.  */
47416 _ACEOF
47417 cat confdefs.h >>conftest.$ac_ext
47418 cat >>conftest.$ac_ext <<_ACEOF
47419 /* end confdefs.h.  */
47420
47421                                     #include <sys/types.h>
47422                                     #include <sys/socket.h>
47423
47424 int
47425 main ()
47426 {
47427
47428                                     int len;
47429                                     getsockname(0, 0, &len);
47430
47431   ;
47432   return 0;
47433 }
47434 _ACEOF
47435 rm -f conftest.$ac_objext
47436 if { (ac_try="$ac_compile"
47437 case "(($ac_try" in
47438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47439   *) ac_try_echo=$ac_try;;
47440 esac
47441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47442   (eval "$ac_compile") 2>conftest.er1
47443   ac_status=$?
47444   grep -v '^ *+' conftest.er1 >conftest.err
47445   rm -f conftest.er1
47446   cat conftest.err >&5
47447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47448   (exit $ac_status); } && {
47449          test -z "$ac_cxx_werror_flag" ||
47450          test ! -s conftest.err
47451        } && test -s conftest.$ac_objext; then
47452   wx_cv_type_getsockname3=int
47453 else
47454   echo "$as_me: failed program was:" >&5
47455 sed 's/^/| /' conftest.$ac_ext >&5
47456
47457         wx_cv_type_getsockname3=unknown
47458
47459 fi
47460
47461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47462
47463 fi
47464
47465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47466
47467                         CFLAGS="$CFLAGS_OLD"
47468
47469
47470 fi
47471
47472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47473                 ac_ext=c
47474 ac_cpp='$CPP $CPPFLAGS'
47475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47478
47479
47480 fi
47481 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
47482 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
47483
47484         if test "$wx_cv_type_getsockname3" = "unknown"; then
47485             wxUSE_SOCKETS=no
47486             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47487 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47488         else
47489             cat >>confdefs.h <<_ACEOF
47490 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
47491 _ACEOF
47492
47493         fi
47494                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
47495 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
47496 if test "${wx_cv_type_getsockopt5+set}" = set; then
47497   echo $ECHO_N "(cached) $ECHO_C" >&6
47498 else
47499
47500                                                                                                 ac_ext=cpp
47501 ac_cpp='$CXXCPP $CPPFLAGS'
47502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47505
47506                 cat >conftest.$ac_ext <<_ACEOF
47507 /* confdefs.h.  */
47508 _ACEOF
47509 cat confdefs.h >>conftest.$ac_ext
47510 cat >>conftest.$ac_ext <<_ACEOF
47511 /* end confdefs.h.  */
47512
47513                         #include <sys/types.h>
47514                         #include <sys/socket.h>
47515
47516 int
47517 main ()
47518 {
47519
47520                         socklen_t len;
47521                         getsockopt(0, 0, 0, 0, &len);
47522
47523   ;
47524   return 0;
47525 }
47526 _ACEOF
47527 rm -f conftest.$ac_objext
47528 if { (ac_try="$ac_compile"
47529 case "(($ac_try" in
47530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47531   *) ac_try_echo=$ac_try;;
47532 esac
47533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47534   (eval "$ac_compile") 2>conftest.er1
47535   ac_status=$?
47536   grep -v '^ *+' conftest.er1 >conftest.err
47537   rm -f conftest.er1
47538   cat conftest.err >&5
47539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47540   (exit $ac_status); } && {
47541          test -z "$ac_cxx_werror_flag" ||
47542          test ! -s conftest.err
47543        } && test -s conftest.$ac_objext; then
47544   wx_cv_type_getsockopt5=socklen_t
47545 else
47546   echo "$as_me: failed program was:" >&5
47547 sed 's/^/| /' conftest.$ac_ext >&5
47548
47549
47550                         cat >conftest.$ac_ext <<_ACEOF
47551 /* confdefs.h.  */
47552 _ACEOF
47553 cat confdefs.h >>conftest.$ac_ext
47554 cat >>conftest.$ac_ext <<_ACEOF
47555 /* end confdefs.h.  */
47556
47557                                 #include <sys/types.h>
47558                                 #include <sys/socket.h>
47559
47560 int
47561 main ()
47562 {
47563
47564                                 size_t len;
47565                                 getsockopt(0, 0, 0, 0, &len);
47566
47567   ;
47568   return 0;
47569 }
47570 _ACEOF
47571 rm -f conftest.$ac_objext
47572 if { (ac_try="$ac_compile"
47573 case "(($ac_try" in
47574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47575   *) ac_try_echo=$ac_try;;
47576 esac
47577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47578   (eval "$ac_compile") 2>conftest.er1
47579   ac_status=$?
47580   grep -v '^ *+' conftest.er1 >conftest.err
47581   rm -f conftest.er1
47582   cat conftest.err >&5
47583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47584   (exit $ac_status); } && {
47585          test -z "$ac_cxx_werror_flag" ||
47586          test ! -s conftest.err
47587        } && test -s conftest.$ac_objext; then
47588   wx_cv_type_getsockopt5=size_t
47589 else
47590   echo "$as_me: failed program was:" >&5
47591 sed 's/^/| /' conftest.$ac_ext >&5
47592
47593         cat >conftest.$ac_ext <<_ACEOF
47594 /* confdefs.h.  */
47595 _ACEOF
47596 cat confdefs.h >>conftest.$ac_ext
47597 cat >>conftest.$ac_ext <<_ACEOF
47598 /* end confdefs.h.  */
47599
47600                                     #include <sys/types.h>
47601                                     #include <sys/socket.h>
47602
47603 int
47604 main ()
47605 {
47606
47607                                     int len;
47608                                     getsockopt(0, 0, 0, 0, &len);
47609
47610   ;
47611   return 0;
47612 }
47613 _ACEOF
47614 rm -f conftest.$ac_objext
47615 if { (ac_try="$ac_compile"
47616 case "(($ac_try" in
47617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47618   *) ac_try_echo=$ac_try;;
47619 esac
47620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47621   (eval "$ac_compile") 2>conftest.er1
47622   ac_status=$?
47623   grep -v '^ *+' conftest.er1 >conftest.err
47624   rm -f conftest.er1
47625   cat conftest.err >&5
47626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47627   (exit $ac_status); } && {
47628          test -z "$ac_cxx_werror_flag" ||
47629          test ! -s conftest.err
47630        } && test -s conftest.$ac_objext; then
47631   wx_cv_type_getsockopt5=int
47632 else
47633   echo "$as_me: failed program was:" >&5
47634 sed 's/^/| /' conftest.$ac_ext >&5
47635
47636         wx_cv_type_getsockopt5=unknown
47637
47638 fi
47639
47640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47641
47642 fi
47643
47644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47645
47646
47647 fi
47648
47649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47650                 ac_ext=c
47651 ac_cpp='$CPP $CPPFLAGS'
47652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47655
47656
47657 fi
47658 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
47659 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
47660
47661         if test "$wx_cv_type_getsockopt5" = "unknown"; then
47662             wxUSE_SOCKETS=no
47663             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47664 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47665         else
47666             cat >>confdefs.h <<_ACEOF
47667 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
47668 _ACEOF
47669
47670         fi
47671     fi
47672 fi
47673
47674 if test "$wxUSE_SOCKETS" = "yes" ; then
47675     cat >>confdefs.h <<\_ACEOF
47676 #define wxUSE_SOCKETS 1
47677 _ACEOF
47678
47679     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47680 fi
47681
47682 if test "$wxUSE_PROTOCOL" = "yes"; then
47683     if test "$wxUSE_SOCKETS" != "yes"; then
47684         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
47685 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
47686         wxUSE_PROTOCOL=no
47687     fi
47688 fi
47689
47690 if test "$wxUSE_PROTOCOL" = "yes"; then
47691     cat >>confdefs.h <<\_ACEOF
47692 #define wxUSE_PROTOCOL 1
47693 _ACEOF
47694
47695
47696     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
47697         cat >>confdefs.h <<\_ACEOF
47698 #define wxUSE_PROTOCOL_HTTP 1
47699 _ACEOF
47700
47701     fi
47702     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
47703         cat >>confdefs.h <<\_ACEOF
47704 #define wxUSE_PROTOCOL_FTP 1
47705 _ACEOF
47706
47707     fi
47708     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
47709         cat >>confdefs.h <<\_ACEOF
47710 #define wxUSE_PROTOCOL_FILE 1
47711 _ACEOF
47712
47713     fi
47714 else
47715     if test "$wxUSE_FS_INET" = "yes"; then
47716         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
47717 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
47718         wxUSE_FS_INET="no"
47719     fi
47720 fi
47721
47722 if test "$wxUSE_URL" = "yes"; then
47723     if test "$wxUSE_PROTOCOL" != "yes"; then
47724         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
47725 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
47726         wxUSE_URL=no
47727     fi
47728     if test "$wxUSE_URL" = "yes"; then
47729         cat >>confdefs.h <<\_ACEOF
47730 #define wxUSE_URL 1
47731 _ACEOF
47732
47733     fi
47734 fi
47735
47736 if test "$wxUSE_VARIANT" = "yes"; then
47737     cat >>confdefs.h <<\_ACEOF
47738 #define wxUSE_VARIANT 1
47739 _ACEOF
47740
47741 fi
47742
47743 if test "$wxUSE_FS_INET" = "yes"; then
47744   cat >>confdefs.h <<\_ACEOF
47745 #define wxUSE_FS_INET 1
47746 _ACEOF
47747
47748 fi
47749
47750
47751 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
47752     wxUSE_JOYSTICK=no
47753
47754         if test "$TOOLKIT" = "MSW"; then
47755         wxUSE_JOYSTICK=yes
47756
47757         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
47758         if test "$USE_DARWIN" = 1; then
47759                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
47760 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
47761             ac_ext=cpp
47762 ac_cpp='$CXXCPP $CPPFLAGS'
47763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47766
47767             cat >conftest.$ac_ext <<_ACEOF
47768 /* confdefs.h.  */
47769 _ACEOF
47770 cat confdefs.h >>conftest.$ac_ext
47771 cat >>conftest.$ac_ext <<_ACEOF
47772 /* end confdefs.h.  */
47773  #include <IOKit/hid/IOHIDLib.h>
47774 int
47775 main ()
47776 {
47777  IOHIDQueueInterface *qi = NULL;
47778                               IOHIDCallbackFunction cb = NULL;
47779                               qi->setEventCallout(NULL, cb, NULL, NULL);
47780   ;
47781   return 0;
47782 }
47783 _ACEOF
47784 rm -f conftest.$ac_objext
47785 if { (ac_try="$ac_compile"
47786 case "(($ac_try" in
47787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47788   *) ac_try_echo=$ac_try;;
47789 esac
47790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47791   (eval "$ac_compile") 2>conftest.er1
47792   ac_status=$?
47793   grep -v '^ *+' conftest.er1 >conftest.err
47794   rm -f conftest.er1
47795   cat conftest.err >&5
47796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47797   (exit $ac_status); } && {
47798          test -z "$ac_cxx_werror_flag" ||
47799          test ! -s conftest.err
47800        } && test -s conftest.$ac_objext; then
47801    wxUSE_JOYSTICK=yes
47802
47803 else
47804   echo "$as_me: failed program was:" >&5
47805 sed 's/^/| /' conftest.$ac_ext >&5
47806
47807
47808 fi
47809
47810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47811             ac_ext=c
47812 ac_cpp='$CPP $CPPFLAGS'
47813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47816
47817             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
47818 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
47819         fi
47820
47821         else
47822                 if test "$wxUSE_MGL" != "1"; then
47823
47824 for ac_header in linux/joystick.h
47825 do
47826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47830   echo $ECHO_N "(cached) $ECHO_C" >&6
47831 else
47832   cat >conftest.$ac_ext <<_ACEOF
47833 /* confdefs.h.  */
47834 _ACEOF
47835 cat confdefs.h >>conftest.$ac_ext
47836 cat >>conftest.$ac_ext <<_ACEOF
47837 /* end confdefs.h.  */
47838 $ac_includes_default
47839
47840 #include <$ac_header>
47841 _ACEOF
47842 rm -f conftest.$ac_objext
47843 if { (ac_try="$ac_compile"
47844 case "(($ac_try" in
47845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47846   *) ac_try_echo=$ac_try;;
47847 esac
47848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47849   (eval "$ac_compile") 2>conftest.er1
47850   ac_status=$?
47851   grep -v '^ *+' conftest.er1 >conftest.err
47852   rm -f conftest.er1
47853   cat conftest.err >&5
47854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47855   (exit $ac_status); } && {
47856          test -z "$ac_c_werror_flag" ||
47857          test ! -s conftest.err
47858        } && test -s conftest.$ac_objext; then
47859   eval "$as_ac_Header=yes"
47860 else
47861   echo "$as_me: failed program was:" >&5
47862 sed 's/^/| /' conftest.$ac_ext >&5
47863
47864         eval "$as_ac_Header=no"
47865 fi
47866
47867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47868 fi
47869 ac_res=`eval echo '${'$as_ac_Header'}'`
47870                { echo "$as_me:$LINENO: result: $ac_res" >&5
47871 echo "${ECHO_T}$ac_res" >&6; }
47872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47873   cat >>confdefs.h <<_ACEOF
47874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47875 _ACEOF
47876  wxUSE_JOYSTICK=yes
47877 fi
47878
47879 done
47880
47881         fi
47882     fi
47883
47884     if test "$wxUSE_JOYSTICK" = "yes"; then
47885         cat >>confdefs.h <<\_ACEOF
47886 #define wxUSE_JOYSTICK 1
47887 _ACEOF
47888
47889         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47890     else
47891         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47892 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
47893     fi
47894 fi
47895
47896
47897
47898 if test "$wxUSE_FONTENUM" = "yes" ; then
47899   cat >>confdefs.h <<\_ACEOF
47900 #define wxUSE_FONTENUM 1
47901 _ACEOF
47902
47903 fi
47904
47905 if test "$wxUSE_FONTMAP" = "yes" ; then
47906   cat >>confdefs.h <<\_ACEOF
47907 #define wxUSE_FONTMAP 1
47908 _ACEOF
47909
47910 fi
47911
47912 if test "$wxUSE_UNICODE" = "yes" ; then
47913   cat >>confdefs.h <<\_ACEOF
47914 #define wxUSE_UNICODE 1
47915 _ACEOF
47916
47917
47918   if test "$USE_WIN32" != 1; then
47919       wxUSE_UNICODE_MSLU=no
47920   fi
47921
47922   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47923         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47924 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47925 if test "${ac_cv_lib_unicows_main+set}" = set; then
47926   echo $ECHO_N "(cached) $ECHO_C" >&6
47927 else
47928   ac_check_lib_save_LIBS=$LIBS
47929 LIBS="-lunicows  $LIBS"
47930 cat >conftest.$ac_ext <<_ACEOF
47931 /* confdefs.h.  */
47932 _ACEOF
47933 cat confdefs.h >>conftest.$ac_ext
47934 cat >>conftest.$ac_ext <<_ACEOF
47935 /* end confdefs.h.  */
47936
47937
47938 int
47939 main ()
47940 {
47941 return main ();
47942   ;
47943   return 0;
47944 }
47945 _ACEOF
47946 rm -f conftest.$ac_objext conftest$ac_exeext
47947 if { (ac_try="$ac_link"
47948 case "(($ac_try" in
47949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47950   *) ac_try_echo=$ac_try;;
47951 esac
47952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47953   (eval "$ac_link") 2>conftest.er1
47954   ac_status=$?
47955   grep -v '^ *+' conftest.er1 >conftest.err
47956   rm -f conftest.er1
47957   cat conftest.err >&5
47958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47959   (exit $ac_status); } && {
47960          test -z "$ac_c_werror_flag" ||
47961          test ! -s conftest.err
47962        } && test -s conftest$ac_exeext &&
47963        $as_test_x conftest$ac_exeext; then
47964   ac_cv_lib_unicows_main=yes
47965 else
47966   echo "$as_me: failed program was:" >&5
47967 sed 's/^/| /' conftest.$ac_ext >&5
47968
47969         ac_cv_lib_unicows_main=no
47970 fi
47971
47972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47973       conftest$ac_exeext conftest.$ac_ext
47974 LIBS=$ac_check_lib_save_LIBS
47975 fi
47976 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47977 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
47978 if test $ac_cv_lib_unicows_main = yes; then
47979
47980                 cat >>confdefs.h <<\_ACEOF
47981 #define wxUSE_UNICODE_MSLU 1
47982 _ACEOF
47983
47984
47985 else
47986
47987                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47988                              Applications will only run on Windows NT/2000/XP!" >&5
47989 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47990                              Applications will only run on Windows NT/2000/XP!" >&2;}
47991                 wxUSE_UNICODE_MSLU=no
47992
47993 fi
47994
47995     fi
47996 fi
47997
47998 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47999     cat >>confdefs.h <<\_ACEOF
48000 #define wxUSE_UNICODE_UTF8 1
48001 _ACEOF
48002
48003
48004     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
48005         cat >>confdefs.h <<\_ACEOF
48006 #define wxUSE_UTF8_LOCALE_ONLY 1
48007 _ACEOF
48008
48009     fi
48010 fi
48011
48012 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
48013   cat >>confdefs.h <<\_ACEOF
48014 #define wxUSE_EXPERIMENTAL_PRINTF 1
48015 _ACEOF
48016
48017 fi
48018
48019
48020 if test "$wxUSE_CONSTRAINTS" = "yes"; then
48021     cat >>confdefs.h <<\_ACEOF
48022 #define wxUSE_CONSTRAINTS 1
48023 _ACEOF
48024
48025     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
48026 fi
48027
48028 if test "$wxUSE_MDI" = "yes"; then
48029     cat >>confdefs.h <<\_ACEOF
48030 #define wxUSE_MDI 1
48031 _ACEOF
48032
48033
48034     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
48035         cat >>confdefs.h <<\_ACEOF
48036 #define wxUSE_MDI_ARCHITECTURE 1
48037 _ACEOF
48038
48039         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
48040     fi
48041 fi
48042
48043 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
48044     cat >>confdefs.h <<\_ACEOF
48045 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
48046 _ACEOF
48047
48048     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
48049     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
48050         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
48051     fi
48052 fi
48053
48054 if test "$wxUSE_HELP" = "yes"; then
48055     cat >>confdefs.h <<\_ACEOF
48056 #define wxUSE_HELP 1
48057 _ACEOF
48058
48059     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
48060
48061     if test "$wxUSE_MSW" = 1; then
48062       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
48063         cat >>confdefs.h <<\_ACEOF
48064 #define wxUSE_MS_HTML_HELP 1
48065 _ACEOF
48066
48067       fi
48068     fi
48069
48070     if test "$wxUSE_WXHTML_HELP" = "yes"; then
48071       if test "$wxUSE_HTML" = "yes"; then
48072         cat >>confdefs.h <<\_ACEOF
48073 #define wxUSE_WXHTML_HELP 1
48074 _ACEOF
48075
48076       else
48077         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
48078 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
48079         wxUSE_WXHTML_HELP=no
48080       fi
48081     fi
48082 fi
48083
48084 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
48085     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48086         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
48087 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
48088     else
48089         cat >>confdefs.h <<\_ACEOF
48090 #define wxUSE_PRINTING_ARCHITECTURE 1
48091 _ACEOF
48092
48093     fi
48094     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
48095 fi
48096
48097 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
48098   cat >>confdefs.h <<\_ACEOF
48099 #define wxUSE_POSTSCRIPT 1
48100 _ACEOF
48101
48102 fi
48103
48104 cat >>confdefs.h <<\_ACEOF
48105 #define wxUSE_AFM_FOR_POSTSCRIPT 1
48106 _ACEOF
48107
48108
48109 cat >>confdefs.h <<\_ACEOF
48110 #define wxUSE_NORMALIZED_PS_FONTS 1
48111 _ACEOF
48112
48113
48114 if test "$wxUSE_SVG" = "yes"; then
48115     cat >>confdefs.h <<\_ACEOF
48116 #define wxUSE_SVG 1
48117 _ACEOF
48118
48119 fi
48120
48121
48122 if test "$wxUSE_METAFILE" = "yes"; then
48123     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
48124         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
48125 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
48126         wxUSE_METAFILE=no
48127     fi
48128 fi
48129
48130
48131 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
48132                           -o "$wxUSE_CLIPBOARD"     = "yes" \
48133                           -o "$wxUSE_OLE"     = "yes" \
48134                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
48135     { echo "$as_me:$LINENO: checking for ole2.h" >&5
48136 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
48137 if test "${ac_cv_header_ole2_h+set}" = set; then
48138   echo $ECHO_N "(cached) $ECHO_C" >&6
48139 else
48140   cat >conftest.$ac_ext <<_ACEOF
48141 /* confdefs.h.  */
48142 _ACEOF
48143 cat confdefs.h >>conftest.$ac_ext
48144 cat >>conftest.$ac_ext <<_ACEOF
48145 /* end confdefs.h.  */
48146
48147
48148 #include <ole2.h>
48149 _ACEOF
48150 rm -f conftest.$ac_objext
48151 if { (ac_try="$ac_compile"
48152 case "(($ac_try" in
48153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48154   *) ac_try_echo=$ac_try;;
48155 esac
48156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48157   (eval "$ac_compile") 2>conftest.er1
48158   ac_status=$?
48159   grep -v '^ *+' conftest.er1 >conftest.err
48160   rm -f conftest.er1
48161   cat conftest.err >&5
48162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48163   (exit $ac_status); } && {
48164          test -z "$ac_c_werror_flag" ||
48165          test ! -s conftest.err
48166        } && test -s conftest.$ac_objext; then
48167   ac_cv_header_ole2_h=yes
48168 else
48169   echo "$as_me: failed program was:" >&5
48170 sed 's/^/| /' conftest.$ac_ext >&5
48171
48172         ac_cv_header_ole2_h=no
48173 fi
48174
48175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48176 fi
48177 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
48178 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
48179
48180
48181
48182     if test "$ac_cv_header_ole2_h" = "yes" ; then
48183         if test "$GCC" = yes ; then
48184             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
48185 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
48186             cat >conftest.$ac_ext <<_ACEOF
48187 /* confdefs.h.  */
48188 _ACEOF
48189 cat confdefs.h >>conftest.$ac_ext
48190 cat >>conftest.$ac_ext <<_ACEOF
48191 /* end confdefs.h.  */
48192 #include <windows.h>
48193                             #include <ole2.h>
48194 int
48195 main ()
48196 {
48197
48198   ;
48199   return 0;
48200 }
48201 _ACEOF
48202 rm -f conftest.$ac_objext
48203 if { (ac_try="$ac_compile"
48204 case "(($ac_try" in
48205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48206   *) ac_try_echo=$ac_try;;
48207 esac
48208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48209   (eval "$ac_compile") 2>conftest.er1
48210   ac_status=$?
48211   grep -v '^ *+' conftest.er1 >conftest.err
48212   rm -f conftest.er1
48213   cat conftest.err >&5
48214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48215   (exit $ac_status); } && {
48216          test -z "$ac_c_werror_flag" ||
48217          test ! -s conftest.err
48218        } && test -s conftest.$ac_objext; then
48219   { echo "$as_me:$LINENO: result: no" >&5
48220 echo "${ECHO_T}no" >&6; }
48221 else
48222   echo "$as_me: failed program was:" >&5
48223 sed 's/^/| /' conftest.$ac_ext >&5
48224
48225         { echo "$as_me:$LINENO: result: yes" >&5
48226 echo "${ECHO_T}yes" >&6; }
48227                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
48228 fi
48229
48230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48231             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
48232             if test "$wxUSE_OLE" = "yes" ; then
48233                 cat >>confdefs.h <<\_ACEOF
48234 #define wxUSE_OLE 1
48235 _ACEOF
48236
48237                 cat >>confdefs.h <<\_ACEOF
48238 #define wxUSE_OLE_AUTOMATION 1
48239 _ACEOF
48240
48241                 cat >>confdefs.h <<\_ACEOF
48242 #define wxUSE_ACTIVEX 1
48243 _ACEOF
48244
48245                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
48246             fi
48247         fi
48248
48249                 if test "$wxUSE_DATAOBJ" = "yes" ; then
48250             cat >>confdefs.h <<\_ACEOF
48251 #define wxUSE_DATAOBJ 1
48252 _ACEOF
48253
48254         fi
48255     else
48256         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
48257 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
48258
48259         wxUSE_CLIPBOARD=no
48260         wxUSE_DRAG_AND_DROP=no
48261         wxUSE_DATAOBJ=no
48262         wxUSE_OLE=no
48263     fi
48264
48265     if test "$wxUSE_METAFILE" = "yes"; then
48266         cat >>confdefs.h <<\_ACEOF
48267 #define wxUSE_METAFILE 1
48268 _ACEOF
48269
48270
48271                 cat >>confdefs.h <<\_ACEOF
48272 #define wxUSE_ENH_METAFILE 1
48273 _ACEOF
48274
48275     fi
48276 fi
48277
48278 if test "$wxUSE_IPC" = "yes"; then
48279     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
48280         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
48281 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
48282         wxUSE_IPC=no
48283     fi
48284
48285     if test "$wxUSE_IPC" = "yes"; then
48286         cat >>confdefs.h <<\_ACEOF
48287 #define wxUSE_IPC 1
48288 _ACEOF
48289
48290         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
48291     fi
48292 fi
48293
48294 if test "$wxUSE_DATAOBJ" = "yes"; then
48295     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
48296         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
48297 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
48298         wxUSE_DATAOBJ=no
48299     else
48300         cat >>confdefs.h <<\_ACEOF
48301 #define wxUSE_DATAOBJ 1
48302 _ACEOF
48303
48304     fi
48305 else
48306     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
48307 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
48308     wxUSE_CLIPBOARD=no
48309     wxUSE_DRAG_AND_DROP=no
48310 fi
48311
48312 if test "$wxUSE_CLIPBOARD" = "yes"; then
48313     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
48314         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
48315 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
48316         wxUSE_CLIPBOARD=no
48317     fi
48318
48319     if test "$wxUSE_CLIPBOARD" = "yes"; then
48320         cat >>confdefs.h <<\_ACEOF
48321 #define wxUSE_CLIPBOARD 1
48322 _ACEOF
48323
48324     fi
48325 fi
48326
48327 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
48328     if test "$wxUSE_GTK" = 1; then
48329         if test "$WXGTK12" != 1; then
48330             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
48331 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
48332             wxUSE_DRAG_AND_DROP=no
48333         fi
48334     fi
48335
48336     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
48337             "$wxUSE_DFB" = 1; then
48338         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
48339 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
48340         wxUSE_DRAG_AND_DROP=no
48341     fi
48342
48343     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
48344         cat >>confdefs.h <<\_ACEOF
48345 #define wxUSE_DRAG_AND_DROP 1
48346 _ACEOF
48347
48348     fi
48349
48350 fi
48351
48352 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
48353     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
48354 fi
48355
48356 if test "$wxUSE_SPLINES" = "yes" ; then
48357   cat >>confdefs.h <<\_ACEOF
48358 #define wxUSE_SPLINES 1
48359 _ACEOF
48360
48361 fi
48362
48363 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
48364   cat >>confdefs.h <<\_ACEOF
48365 #define wxUSE_MOUSEWHEEL 1
48366 _ACEOF
48367
48368 fi
48369
48370
48371 USES_CONTROLS=0
48372 if test "$wxUSE_CONTROLS" = "yes"; then
48373   USES_CONTROLS=1
48374 fi
48375
48376 if test "$wxUSE_ACCEL" = "yes"; then
48377   cat >>confdefs.h <<\_ACEOF
48378 #define wxUSE_ACCEL 1
48379 _ACEOF
48380
48381   USES_CONTROLS=1
48382 fi
48383
48384 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
48385   cat >>confdefs.h <<\_ACEOF
48386 #define wxUSE_ANIMATIONCTRL 1
48387 _ACEOF
48388
48389   USES_CONTROLS=1
48390   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
48391 fi
48392
48393 if test "$wxUSE_BUTTON" = "yes"; then
48394   cat >>confdefs.h <<\_ACEOF
48395 #define wxUSE_BUTTON 1
48396 _ACEOF
48397
48398   USES_CONTROLS=1
48399 fi
48400
48401 if test "$wxUSE_BMPBUTTON" = "yes"; then
48402   cat >>confdefs.h <<\_ACEOF
48403 #define wxUSE_BMPBUTTON 1
48404 _ACEOF
48405
48406   USES_CONTROLS=1
48407 fi
48408
48409 if test "$wxUSE_CALCTRL" = "yes"; then
48410   cat >>confdefs.h <<\_ACEOF
48411 #define wxUSE_CALENDARCTRL 1
48412 _ACEOF
48413
48414   USES_CONTROLS=1
48415   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
48416 fi
48417
48418 if test "$wxUSE_CARET" = "yes"; then
48419   cat >>confdefs.h <<\_ACEOF
48420 #define wxUSE_CARET 1
48421 _ACEOF
48422
48423   USES_CONTROLS=1
48424   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
48425 fi
48426
48427 if test "$wxUSE_COLLPANE" = "yes"; then
48428     cat >>confdefs.h <<\_ACEOF
48429 #define wxUSE_COLLPANE 1
48430 _ACEOF
48431
48432     USES_CONTROLS=1
48433     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
48434 fi
48435
48436 if test "$wxUSE_COMBOBOX" = "yes"; then
48437   cat >>confdefs.h <<\_ACEOF
48438 #define wxUSE_COMBOBOX 1
48439 _ACEOF
48440
48441   USES_CONTROLS=1
48442 fi
48443
48444 if test "$wxUSE_COMBOCTRL" = "yes"; then
48445   cat >>confdefs.h <<\_ACEOF
48446 #define wxUSE_COMBOCTRL 1
48447 _ACEOF
48448
48449   USES_CONTROLS=1
48450 fi
48451
48452 if test "$wxUSE_CHOICE" = "yes"; then
48453   cat >>confdefs.h <<\_ACEOF
48454 #define wxUSE_CHOICE 1
48455 _ACEOF
48456
48457   USES_CONTROLS=1
48458 fi
48459
48460 if test "$wxUSE_CHOICEBOOK" = "yes"; then
48461     cat >>confdefs.h <<\_ACEOF
48462 #define wxUSE_CHOICEBOOK 1
48463 _ACEOF
48464
48465     USES_CONTROLS=1
48466 fi
48467
48468 if test "$wxUSE_CHECKBOX" = "yes"; then
48469   cat >>confdefs.h <<\_ACEOF
48470 #define wxUSE_CHECKBOX 1
48471 _ACEOF
48472
48473   USES_CONTROLS=1
48474 fi
48475
48476 if test "$wxUSE_CHECKLST" = "yes"; then
48477   cat >>confdefs.h <<\_ACEOF
48478 #define wxUSE_CHECKLISTBOX 1
48479 _ACEOF
48480
48481   USES_CONTROLS=1
48482   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
48483 fi
48484
48485 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
48486   cat >>confdefs.h <<\_ACEOF
48487 #define wxUSE_COLOURPICKERCTRL 1
48488 _ACEOF
48489
48490   USES_CONTROLS=1
48491 fi
48492
48493 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
48494   cat >>confdefs.h <<\_ACEOF
48495 #define wxUSE_DATEPICKCTRL 1
48496 _ACEOF
48497
48498   USES_CONTROLS=1
48499 fi
48500
48501 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
48502   cat >>confdefs.h <<\_ACEOF
48503 #define wxUSE_DIRPICKERCTRL 1
48504 _ACEOF
48505
48506   USES_CONTROLS=1
48507 fi
48508
48509 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
48510   cat >>confdefs.h <<\_ACEOF
48511 #define wxUSE_FILEPICKERCTRL 1
48512 _ACEOF
48513
48514   USES_CONTROLS=1
48515 fi
48516
48517 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
48518   cat >>confdefs.h <<\_ACEOF
48519 #define wxUSE_FONTPICKERCTRL 1
48520 _ACEOF
48521
48522   USES_CONTROLS=1
48523 fi
48524
48525 if test "$wxUSE_DISPLAY" = "yes"; then
48526     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
48527         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
48528 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
48529         wxUSE_DISPLAY=no
48530     else
48531         cat >>confdefs.h <<\_ACEOF
48532 #define wxUSE_DISPLAY 1
48533 _ACEOF
48534
48535         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
48536     fi
48537 fi
48538
48539 if test "$wxUSE_DETECT_SM" = "yes"; then
48540     cat >>confdefs.h <<\_ACEOF
48541 #define wxUSE_DETECT_SM 1
48542 _ACEOF
48543
48544 fi
48545
48546 if test "$wxUSE_GAUGE" = "yes"; then
48547   cat >>confdefs.h <<\_ACEOF
48548 #define wxUSE_GAUGE 1
48549 _ACEOF
48550
48551   USES_CONTROLS=1
48552 fi
48553
48554 if test "$wxUSE_GRID" = "yes"; then
48555   cat >>confdefs.h <<\_ACEOF
48556 #define wxUSE_GRID 1
48557 _ACEOF
48558
48559   USES_CONTROLS=1
48560   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
48561 fi
48562
48563 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
48564   cat >>confdefs.h <<\_ACEOF
48565 #define wxUSE_HYPERLINKCTRL 1
48566 _ACEOF
48567
48568   USES_CONTROLS=1
48569 fi
48570
48571 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
48572   cat >>confdefs.h <<\_ACEOF
48573 #define wxUSE_BITMAPCOMBOBOX 1
48574 _ACEOF
48575
48576   USES_CONTROLS=1
48577 fi
48578
48579 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
48580   cat >>confdefs.h <<\_ACEOF
48581 #define wxUSE_DATAVIEWCTRL 1
48582 _ACEOF
48583
48584   USES_CONTROLS=1
48585   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
48586 fi
48587
48588 if test "$wxUSE_IMAGLIST" = "yes"; then
48589     cat >>confdefs.h <<\_ACEOF
48590 #define wxUSE_IMAGLIST 1
48591 _ACEOF
48592
48593 fi
48594
48595 if test "$wxUSE_LISTBOOK" = "yes"; then
48596     cat >>confdefs.h <<\_ACEOF
48597 #define wxUSE_LISTBOOK 1
48598 _ACEOF
48599
48600     USES_CONTROLS=1
48601 fi
48602
48603 if test "$wxUSE_LISTBOX" = "yes"; then
48604     cat >>confdefs.h <<\_ACEOF
48605 #define wxUSE_LISTBOX 1
48606 _ACEOF
48607
48608     USES_CONTROLS=1
48609     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
48610 fi
48611
48612 if test "$wxUSE_LISTCTRL" = "yes"; then
48613     if test "$wxUSE_IMAGLIST" = "yes"; then
48614         cat >>confdefs.h <<\_ACEOF
48615 #define wxUSE_LISTCTRL 1
48616 _ACEOF
48617
48618         USES_CONTROLS=1
48619         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
48620     else
48621         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
48622 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
48623     fi
48624 fi
48625
48626 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
48627     cat >>confdefs.h <<\_ACEOF
48628 #define wxUSE_EDITABLELISTBOX 1
48629 _ACEOF
48630
48631     USES_CONTROLS=1
48632     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
48633 fi
48634
48635 if test "$wxUSE_NOTEBOOK" = "yes"; then
48636     cat >>confdefs.h <<\_ACEOF
48637 #define wxUSE_NOTEBOOK 1
48638 _ACEOF
48639
48640     USES_CONTROLS=1
48641     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
48642 fi
48643
48644 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
48645   cat >>confdefs.h <<\_ACEOF
48646 #define wxUSE_ODCOMBOBOX 1
48647 _ACEOF
48648
48649   USES_CONTROLS=1
48650   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
48651 fi
48652
48653
48654 if test "$wxUSE_RADIOBOX" = "yes"; then
48655     cat >>confdefs.h <<\_ACEOF
48656 #define wxUSE_RADIOBOX 1
48657 _ACEOF
48658
48659     USES_CONTROLS=1
48660 fi
48661
48662 if test "$wxUSE_RADIOBTN" = "yes"; then
48663     cat >>confdefs.h <<\_ACEOF
48664 #define wxUSE_RADIOBTN 1
48665 _ACEOF
48666
48667     USES_CONTROLS=1
48668 fi
48669
48670 if test "$wxUSE_SASH" = "yes"; then
48671     cat >>confdefs.h <<\_ACEOF
48672 #define wxUSE_SASH 1
48673 _ACEOF
48674
48675     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
48676 fi
48677
48678 if test "$wxUSE_SCROLLBAR" = "yes"; then
48679     cat >>confdefs.h <<\_ACEOF
48680 #define wxUSE_SCROLLBAR 1
48681 _ACEOF
48682
48683     USES_CONTROLS=1
48684     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
48685 fi
48686
48687 if test "$wxUSE_SEARCHCTRL" = "yes"; then
48688     cat >>confdefs.h <<\_ACEOF
48689 #define wxUSE_SEARCHCTRL 1
48690 _ACEOF
48691
48692     USES_CONTROLS=1
48693 fi
48694
48695 if test "$wxUSE_SLIDER" = "yes"; then
48696     cat >>confdefs.h <<\_ACEOF
48697 #define wxUSE_SLIDER 1
48698 _ACEOF
48699
48700     USES_CONTROLS=1
48701 fi
48702
48703 if test "$wxUSE_SPINBTN" = "yes"; then
48704     cat >>confdefs.h <<\_ACEOF
48705 #define wxUSE_SPINBTN 1
48706 _ACEOF
48707
48708     USES_CONTROLS=1
48709 fi
48710
48711 if test "$wxUSE_SPINCTRL" = "yes"; then
48712     cat >>confdefs.h <<\_ACEOF
48713 #define wxUSE_SPINCTRL 1
48714 _ACEOF
48715
48716     USES_CONTROLS=1
48717 fi
48718
48719 if test "$wxUSE_SPLITTER" = "yes"; then
48720     cat >>confdefs.h <<\_ACEOF
48721 #define wxUSE_SPLITTER 1
48722 _ACEOF
48723
48724     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
48725 fi
48726
48727 if test "$wxUSE_STATBMP" = "yes"; then
48728     cat >>confdefs.h <<\_ACEOF
48729 #define wxUSE_STATBMP 1
48730 _ACEOF
48731
48732     USES_CONTROLS=1
48733 fi
48734
48735 if test "$wxUSE_STATBOX" = "yes"; then
48736     cat >>confdefs.h <<\_ACEOF
48737 #define wxUSE_STATBOX 1
48738 _ACEOF
48739
48740     USES_CONTROLS=1
48741 fi
48742
48743 if test "$wxUSE_STATTEXT" = "yes"; then
48744     cat >>confdefs.h <<\_ACEOF
48745 #define wxUSE_STATTEXT 1
48746 _ACEOF
48747
48748     USES_CONTROLS=1
48749 fi
48750
48751 if test "$wxUSE_STATLINE" = "yes"; then
48752     cat >>confdefs.h <<\_ACEOF
48753 #define wxUSE_STATLINE 1
48754 _ACEOF
48755
48756     USES_CONTROLS=1
48757 fi
48758
48759 if test "$wxUSE_STATUSBAR" = "yes"; then
48760         cat >>confdefs.h <<\_ACEOF
48761 #define wxUSE_NATIVE_STATUSBAR 1
48762 _ACEOF
48763
48764     cat >>confdefs.h <<\_ACEOF
48765 #define wxUSE_STATUSBAR 1
48766 _ACEOF
48767
48768     USES_CONTROLS=1
48769
48770     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
48771 fi
48772
48773 if test "$wxUSE_TAB_DIALOG" = "yes"; then
48774     cat >>confdefs.h <<\_ACEOF
48775 #define wxUSE_TAB_DIALOG 1
48776 _ACEOF
48777
48778 fi
48779
48780 if test "$wxUSE_TEXTCTRL" = "yes"; then
48781     cat >>confdefs.h <<\_ACEOF
48782 #define wxUSE_TEXTCTRL 1
48783 _ACEOF
48784
48785     USES_CONTROLS=1
48786     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
48787 fi
48788
48789 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48790     if test "$wxUSE_COCOA" = 1 ; then
48791         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48792 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48793         wxUSE_TOGGLEBTN=no
48794     fi
48795
48796     if test "$wxUSE_TOGGLEBTN" = "yes"; then
48797         cat >>confdefs.h <<\_ACEOF
48798 #define wxUSE_TOGGLEBTN 1
48799 _ACEOF
48800
48801         USES_CONTROLS=1
48802     fi
48803 fi
48804
48805 if test "$wxUSE_TOOLBAR" = "yes"; then
48806     cat >>confdefs.h <<\_ACEOF
48807 #define wxUSE_TOOLBAR 1
48808 _ACEOF
48809
48810     USES_CONTROLS=1
48811
48812     if test "$wxUSE_UNIVERSAL" = "yes"; then
48813         wxUSE_TOOLBAR_NATIVE="no"
48814     else
48815         wxUSE_TOOLBAR_NATIVE="yes"
48816         cat >>confdefs.h <<\_ACEOF
48817 #define wxUSE_TOOLBAR_NATIVE 1
48818 _ACEOF
48819
48820     fi
48821
48822     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48823 fi
48824
48825 if test "$wxUSE_TOOLTIPS" = "yes"; then
48826     if test "$wxUSE_MOTIF" = 1; then
48827         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48828 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48829     else
48830         if test "$wxUSE_UNIVERSAL" = "yes"; then
48831             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48832 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48833         else
48834             cat >>confdefs.h <<\_ACEOF
48835 #define wxUSE_TOOLTIPS 1
48836 _ACEOF
48837
48838         fi
48839     fi
48840 fi
48841
48842 if test "$wxUSE_TREEBOOK" = "yes"; then
48843     cat >>confdefs.h <<\_ACEOF
48844 #define wxUSE_TREEBOOK 1
48845 _ACEOF
48846
48847     USES_CONTROLS=1
48848 fi
48849
48850 if test "$wxUSE_TOOLBOOK" = "yes"; then
48851     cat >>confdefs.h <<\_ACEOF
48852 #define wxUSE_TOOLBOOK 1
48853 _ACEOF
48854
48855     USES_CONTROLS=1
48856 fi
48857
48858 if test "$wxUSE_TREECTRL" = "yes"; then
48859     if test "$wxUSE_IMAGLIST" = "yes"; then
48860         cat >>confdefs.h <<\_ACEOF
48861 #define wxUSE_TREECTRL 1
48862 _ACEOF
48863
48864         USES_CONTROLS=1
48865         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48866     else
48867         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48868 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48869     fi
48870 fi
48871
48872 if test "$wxUSE_POPUPWIN" = "yes"; then
48873     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
48874         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48875 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48876     else
48877         if test "$wxUSE_PM" = 1; then
48878             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48879 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48880         else
48881             cat >>confdefs.h <<\_ACEOF
48882 #define wxUSE_POPUPWIN 1
48883 _ACEOF
48884
48885             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48886
48887             USES_CONTROLS=1
48888         fi
48889     fi
48890 fi
48891
48892 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48893     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48894         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48895 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48896     else
48897         cat >>confdefs.h <<\_ACEOF
48898 #define wxUSE_DIALUP_MANAGER 1
48899 _ACEOF
48900
48901         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48902     fi
48903 fi
48904
48905 if test "$wxUSE_TIPWINDOW" = "yes"; then
48906     if test "$wxUSE_PM" = 1; then
48907         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48908 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48909     else
48910         cat >>confdefs.h <<\_ACEOF
48911 #define wxUSE_TIPWINDOW 1
48912 _ACEOF
48913
48914     fi
48915 fi
48916
48917 if test "$USES_CONTROLS" = 1; then
48918     cat >>confdefs.h <<\_ACEOF
48919 #define wxUSE_CONTROLS 1
48920 _ACEOF
48921
48922 fi
48923
48924
48925 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48926     cat >>confdefs.h <<\_ACEOF
48927 #define wxUSE_ACCESSIBILITY 1
48928 _ACEOF
48929
48930     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48931 fi
48932
48933 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48934     cat >>confdefs.h <<\_ACEOF
48935 #define wxUSE_DRAGIMAGE 1
48936 _ACEOF
48937
48938     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48939 fi
48940
48941 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48942     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48943         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48944 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48945     else
48946         cat >>confdefs.h <<\_ACEOF
48947 #define wxUSE_EXCEPTIONS 1
48948 _ACEOF
48949
48950         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48951     fi
48952 fi
48953
48954 USE_HTML=0
48955 if test "$wxUSE_HTML" = "yes"; then
48956     cat >>confdefs.h <<\_ACEOF
48957 #define wxUSE_HTML 1
48958 _ACEOF
48959
48960     USE_HTML=1
48961     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48962     if test "$wxUSE_MAC" = 1; then
48963         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48964     fi
48965 fi
48966 if test "$wxUSE_WEBKIT" = "yes"; then
48967     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48968         old_CPPFLAGS="$CPPFLAGS"
48969         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48970         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48971 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48972 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48973   echo $ECHO_N "(cached) $ECHO_C" >&6
48974 else
48975   cat >conftest.$ac_ext <<_ACEOF
48976 /* confdefs.h.  */
48977 _ACEOF
48978 cat confdefs.h >>conftest.$ac_ext
48979 cat >>conftest.$ac_ext <<_ACEOF
48980 /* end confdefs.h.  */
48981
48982                            #include <Carbon/Carbon.h>
48983                            #include <WebKit/WebKit.h>
48984
48985
48986 #include <WebKit/HIWebView.h>
48987 _ACEOF
48988 rm -f conftest.$ac_objext
48989 if { (ac_try="$ac_compile"
48990 case "(($ac_try" in
48991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48992   *) ac_try_echo=$ac_try;;
48993 esac
48994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48995   (eval "$ac_compile") 2>conftest.er1
48996   ac_status=$?
48997   grep -v '^ *+' conftest.er1 >conftest.err
48998   rm -f conftest.er1
48999   cat conftest.err >&5
49000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49001   (exit $ac_status); } && {
49002          test -z "$ac_c_werror_flag" ||
49003          test ! -s conftest.err
49004        } && test -s conftest.$ac_objext; then
49005   ac_cv_header_WebKit_HIWebView_h=yes
49006 else
49007   echo "$as_me: failed program was:" >&5
49008 sed 's/^/| /' conftest.$ac_ext >&5
49009
49010         ac_cv_header_WebKit_HIWebView_h=no
49011 fi
49012
49013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49014 fi
49015 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
49016 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
49017 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
49018
49019                            cat >>confdefs.h <<\_ACEOF
49020 #define wxUSE_WEBKIT 1
49021 _ACEOF
49022
49023                            WEBKIT_LINK="-framework WebKit"
49024
49025 else
49026
49027                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
49028 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
49029                            wxUSE_WEBKIT=no
49030
49031 fi
49032
49033
49034         CPPFLAGS="$old_CPPFLAGS"
49035     elif test "$wxUSE_COCOA" = 1; then
49036         cat >>confdefs.h <<\_ACEOF
49037 #define wxUSE_WEBKIT 1
49038 _ACEOF
49039
49040     else
49041         wxUSE_WEBKIT=no
49042     fi
49043 fi
49044
49045 USE_XRC=0
49046 if test "$wxUSE_XRC" = "yes"; then
49047     if test "$wxUSE_XML" != "yes"; then
49048         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
49049 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
49050         wxUSE_XRC=no
49051     else
49052         cat >>confdefs.h <<\_ACEOF
49053 #define wxUSE_XRC 1
49054 _ACEOF
49055
49056         USE_XRC=1
49057         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
49058     fi
49059 fi
49060
49061 USE_AUI=0
49062 if test "$wxUSE_AUI" = "yes"; then
49063    cat >>confdefs.h <<\_ACEOF
49064 #define wxUSE_AUI 1
49065 _ACEOF
49066
49067    USE_AUI=1
49068    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
49069 fi
49070
49071 USE_STC=0
49072 if test "$wxUSE_STC" = "yes"; then
49073    cat >>confdefs.h <<\_ACEOF
49074 #define wxUSE_STC 1
49075 _ACEOF
49076
49077    USE_STC=1
49078    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
49079 fi
49080
49081 if test "$wxUSE_MENUS" = "yes"; then
49082     cat >>confdefs.h <<\_ACEOF
49083 #define wxUSE_MENUS 1
49084 _ACEOF
49085
49086     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
49087 fi
49088
49089 if test "$wxUSE_METAFILE" = "yes"; then
49090     cat >>confdefs.h <<\_ACEOF
49091 #define wxUSE_METAFILE 1
49092 _ACEOF
49093
49094 fi
49095
49096 if test "$wxUSE_MIMETYPE" = "yes"; then
49097     cat >>confdefs.h <<\_ACEOF
49098 #define wxUSE_MIMETYPE 1
49099 _ACEOF
49100
49101 fi
49102
49103 if test "$wxUSE_MINIFRAME" = "yes"; then
49104     cat >>confdefs.h <<\_ACEOF
49105 #define wxUSE_MINIFRAME 1
49106 _ACEOF
49107
49108     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
49109 fi
49110
49111 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
49112     cat >>confdefs.h <<\_ACEOF
49113 #define wxUSE_SYSTEM_OPTIONS 1
49114 _ACEOF
49115
49116 fi
49117
49118 if test "$wxUSE_TASKBARICON" = "yes"; then
49119     cat >>confdefs.h <<\_ACEOF
49120 #define wxUSE_TASKBARICON 1
49121 _ACEOF
49122
49123     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
49124 fi
49125
49126
49127 if test "$wxUSE_VALIDATORS" = "yes"; then
49128     cat >>confdefs.h <<\_ACEOF
49129 #define wxUSE_VALIDATORS 1
49130 _ACEOF
49131
49132     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
49133 fi
49134
49135 if test "$wxUSE_PALETTE" = "yes" ; then
49136     if test "$wxUSE_DFB" = 1; then
49137         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
49138 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
49139         wxUSE_PALETTE=no
49140     else
49141         cat >>confdefs.h <<\_ACEOF
49142 #define wxUSE_PALETTE 1
49143 _ACEOF
49144
49145     fi
49146 fi
49147
49148 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
49149     LIBS=" -lunicows $LIBS"
49150 fi
49151
49152 USE_RICHTEXT=0
49153 if test "$wxUSE_RICHTEXT" = "yes"; then
49154     cat >>confdefs.h <<\_ACEOF
49155 #define wxUSE_RICHTEXT 1
49156 _ACEOF
49157
49158     USE_RICHTEXT=1
49159     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
49160 fi
49161
49162
49163 if test "$wxUSE_IMAGE" = "yes" ; then
49164     cat >>confdefs.h <<\_ACEOF
49165 #define wxUSE_IMAGE 1
49166 _ACEOF
49167
49168
49169     if test "$wxUSE_GIF" = "yes" ; then
49170       cat >>confdefs.h <<\_ACEOF
49171 #define wxUSE_GIF 1
49172 _ACEOF
49173
49174     fi
49175
49176     if test "$wxUSE_PCX" = "yes" ; then
49177       cat >>confdefs.h <<\_ACEOF
49178 #define wxUSE_PCX 1
49179 _ACEOF
49180
49181     fi
49182
49183     if test "$wxUSE_TGA" = "yes" ; then
49184       cat >>confdefs.h <<\_ACEOF
49185 #define wxUSE_TGA 1
49186 _ACEOF
49187
49188     fi
49189
49190     if test "$wxUSE_IFF" = "yes" ; then
49191       cat >>confdefs.h <<\_ACEOF
49192 #define wxUSE_IFF 1
49193 _ACEOF
49194
49195     fi
49196
49197     if test "$wxUSE_PNM" = "yes" ; then
49198       cat >>confdefs.h <<\_ACEOF
49199 #define wxUSE_PNM 1
49200 _ACEOF
49201
49202     fi
49203
49204     if test "$wxUSE_XPM" = "yes" ; then
49205       cat >>confdefs.h <<\_ACEOF
49206 #define wxUSE_XPM 1
49207 _ACEOF
49208
49209     fi
49210
49211     if test "$wxUSE_ICO_CUR" = "yes" ; then
49212       cat >>confdefs.h <<\_ACEOF
49213 #define wxUSE_ICO_CUR 1
49214 _ACEOF
49215
49216     fi
49217 fi
49218
49219
49220 if test "$wxUSE_ABOUTDLG" = "yes"; then
49221     cat >>confdefs.h <<\_ACEOF
49222 #define wxUSE_ABOUTDLG 1
49223 _ACEOF
49224
49225 fi
49226
49227 if test "$wxUSE_CHOICEDLG" = "yes"; then
49228     cat >>confdefs.h <<\_ACEOF
49229 #define wxUSE_CHOICEDLG 1
49230 _ACEOF
49231
49232 fi
49233
49234 if test "$wxUSE_COLOURDLG" = "yes"; then
49235     cat >>confdefs.h <<\_ACEOF
49236 #define wxUSE_COLOURDLG 1
49237 _ACEOF
49238
49239 fi
49240
49241 if test "$wxUSE_FILEDLG" = "yes"; then
49242     cat >>confdefs.h <<\_ACEOF
49243 #define wxUSE_FILEDLG 1
49244 _ACEOF
49245
49246 fi
49247
49248 if test "$wxUSE_FINDREPLDLG" = "yes"; then
49249     cat >>confdefs.h <<\_ACEOF
49250 #define wxUSE_FINDREPLDLG 1
49251 _ACEOF
49252
49253 fi
49254
49255 if test "$wxUSE_FONTDLG" = "yes"; then
49256     cat >>confdefs.h <<\_ACEOF
49257 #define wxUSE_FONTDLG 1
49258 _ACEOF
49259
49260 fi
49261
49262 if test "$wxUSE_DIRDLG" = "yes"; then
49263     if test "$wxUSE_TREECTRL" != "yes"; then
49264         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
49265 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
49266     else
49267         cat >>confdefs.h <<\_ACEOF
49268 #define wxUSE_DIRDLG 1
49269 _ACEOF
49270
49271     fi
49272 fi
49273
49274 if test "$wxUSE_MSGDLG" = "yes"; then
49275     cat >>confdefs.h <<\_ACEOF
49276 #define wxUSE_MSGDLG 1
49277 _ACEOF
49278
49279 fi
49280
49281 if test "$wxUSE_NUMBERDLG" = "yes"; then
49282     cat >>confdefs.h <<\_ACEOF
49283 #define wxUSE_NUMBERDLG 1
49284 _ACEOF
49285
49286 fi
49287
49288 if test "$wxUSE_PROGRESSDLG" = "yes"; then
49289     if test "$wxUSE_CONSTRAINTS" != "yes"; then
49290        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
49291 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
49292     else
49293         cat >>confdefs.h <<\_ACEOF
49294 #define wxUSE_PROGRESSDLG 1
49295 _ACEOF
49296
49297     fi
49298 fi
49299
49300 if test "$wxUSE_SPLASH" = "yes"; then
49301     cat >>confdefs.h <<\_ACEOF
49302 #define wxUSE_SPLASH 1
49303 _ACEOF
49304
49305     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
49306 fi
49307
49308 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
49309     if test "$wxUSE_CONSTRAINTS" != "yes"; then
49310        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
49311 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
49312     else
49313         cat >>confdefs.h <<\_ACEOF
49314 #define wxUSE_STARTUP_TIPS 1
49315 _ACEOF
49316
49317     fi
49318 fi
49319
49320 if test "$wxUSE_TEXTDLG" = "yes"; then
49321     cat >>confdefs.h <<\_ACEOF
49322 #define wxUSE_TEXTDLG 1
49323 _ACEOF
49324
49325 fi
49326
49327 if test "$wxUSE_WIZARDDLG" = "yes"; then
49328     cat >>confdefs.h <<\_ACEOF
49329 #define wxUSE_WIZARDDLG 1
49330 _ACEOF
49331
49332     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
49333 fi
49334
49335
49336 if test "$wxUSE_MSW" = 1 ; then
49337
49338 if test "$wxUSE_DC_CACHEING" = "yes"; then
49339     cat >>confdefs.h <<\_ACEOF
49340 #define wxUSE_DC_CACHEING 1
49341 _ACEOF
49342
49343 fi
49344
49345 if test "$wxUSE_DIB" = "yes"; then
49346     cat >>confdefs.h <<\_ACEOF
49347 #define wxUSE_WXDIB 1
49348 _ACEOF
49349
49350 fi
49351
49352 if test "$wxUSE_OWNER_DRAWN" = "yes"; then
49353     cat >>confdefs.h <<\_ACEOF
49354 #define wxUSE_OWNER_DRAWN 1
49355 _ACEOF
49356
49357 fi
49358
49359 if test "$wxUSE_REGKEY" = "yes"; then
49360     cat >>confdefs.h <<\_ACEOF
49361 #define wxUSE_REGKEY 1
49362 _ACEOF
49363
49364 fi
49365
49366 if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
49367     cat >>confdefs.h <<\_ACEOF
49368 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
49369 _ACEOF
49370
49371 fi
49372
49373 if test "$wxUSE_UXTHEME" = "yes"; then
49374     cat >>confdefs.h <<\_ACEOF
49375 #define wxUSE_UXTHEME 1
49376 _ACEOF
49377
49378 fi
49379
49380 fi
49381
49382
49383 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
49384    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
49385       cat >>confdefs.h <<\_ACEOF
49386 #define wxUSE_GRAPHICS_CONTEXT 1
49387 _ACEOF
49388
49389    elif test "$wxUSE_GTK" != 1; then
49390             cat >>confdefs.h <<\_ACEOF
49391 #define wxUSE_GRAPHICS_CONTEXT 1
49392 _ACEOF
49393
49394    else
49395
49396 pkg_failed=no
49397 { echo "$as_me:$LINENO: checking for CAIRO" >&5
49398 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
49399
49400 if test -n "$PKG_CONFIG"; then
49401     if test -n "$CAIRO_CFLAGS"; then
49402         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
49403     else
49404         if test -n "$PKG_CONFIG" && \
49405     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49406   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49407   ac_status=$?
49408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49409   (exit $ac_status); }; then
49410   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
49411 else
49412   pkg_failed=yes
49413 fi
49414     fi
49415 else
49416         pkg_failed=untried
49417 fi
49418 if test -n "$PKG_CONFIG"; then
49419     if test -n "$CAIRO_LIBS"; then
49420         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
49421     else
49422         if test -n "$PKG_CONFIG" && \
49423     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49424   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49425   ac_status=$?
49426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49427   (exit $ac_status); }; then
49428   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
49429 else
49430   pkg_failed=yes
49431 fi
49432     fi
49433 else
49434         pkg_failed=untried
49435 fi
49436
49437
49438
49439 if test $pkg_failed = yes; then
49440
49441 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49442         _pkg_short_errors_supported=yes
49443 else
49444         _pkg_short_errors_supported=no
49445 fi
49446         if test $_pkg_short_errors_supported = yes; then
49447                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
49448         else
49449                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
49450         fi
49451         # Put the nasty error message in config.log where it belongs
49452         echo "$CAIRO_PKG_ERRORS" >&5
49453
49454         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
49455 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
49456
49457 elif test $pkg_failed = untried; then
49458         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
49459 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
49460
49461 else
49462         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
49463         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
49464         { echo "$as_me:$LINENO: result: yes" >&5
49465 echo "${ECHO_T}yes" >&6; }
49466         cat >>confdefs.h <<\_ACEOF
49467 #define wxUSE_GRAPHICS_CONTEXT 1
49468 _ACEOF
49469
49470 fi
49471    fi
49472 fi
49473
49474
49475 USE_MEDIA=0
49476
49477 if test "$wxUSE_MEDIACTRL" = "yes"; then
49478     USE_MEDIA=1
49479
49480                 if test "$wxUSE_GTK" = 1; then
49481         wxUSE_GSTREAMER="no"
49482
49483                                                                 GST_VERSION_MAJOR=0
49484         GST_VERSION_MINOR=10
49485         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49486
49487         if test "$wxUSE_GSTREAMER8" = "no"; then
49488
49489 pkg_failed=no
49490 { echo "$as_me:$LINENO: checking for GST" >&5
49491 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49492
49493 if test -n "$PKG_CONFIG"; then
49494     if test -n "$GST_CFLAGS"; then
49495         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49496     else
49497         if test -n "$PKG_CONFIG" && \
49498     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49499   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49500   ac_status=$?
49501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49502   (exit $ac_status); }; then
49503   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49504 else
49505   pkg_failed=yes
49506 fi
49507     fi
49508 else
49509         pkg_failed=untried
49510 fi
49511 if test -n "$PKG_CONFIG"; then
49512     if test -n "$GST_LIBS"; then
49513         pkg_cv_GST_LIBS="$GST_LIBS"
49514     else
49515         if test -n "$PKG_CONFIG" && \
49516     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49517   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49518   ac_status=$?
49519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49520   (exit $ac_status); }; then
49521   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49522 else
49523   pkg_failed=yes
49524 fi
49525     fi
49526 else
49527         pkg_failed=untried
49528 fi
49529
49530
49531
49532 if test $pkg_failed = yes; then
49533
49534 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49535         _pkg_short_errors_supported=yes
49536 else
49537         _pkg_short_errors_supported=no
49538 fi
49539         if test $_pkg_short_errors_supported = yes; then
49540                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49541         else
49542                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49543         fi
49544         # Put the nasty error message in config.log where it belongs
49545         echo "$GST_PKG_ERRORS" >&5
49546
49547
49548                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49549 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49550                     GST_VERSION_MINOR=8
49551
49552
49553 elif test $pkg_failed = untried; then
49554
49555                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49556 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49557                     GST_VERSION_MINOR=8
49558
49559
49560 else
49561         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49562         GST_LIBS=$pkg_cv_GST_LIBS
49563         { echo "$as_me:$LINENO: result: yes" >&5
49564 echo "${ECHO_T}yes" >&6; }
49565
49566                     wxUSE_GSTREAMER="yes"
49567                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
49568
49569 fi
49570         else
49571                         GST_VERSION_MINOR=8
49572         fi
49573
49574         if test $GST_VERSION_MINOR = "8"; then
49575             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49576
49577 pkg_failed=no
49578 { echo "$as_me:$LINENO: checking for GST" >&5
49579 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49580
49581 if test -n "$PKG_CONFIG"; then
49582     if test -n "$GST_CFLAGS"; then
49583         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49584     else
49585         if test -n "$PKG_CONFIG" && \
49586     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49587   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49588   ac_status=$?
49589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49590   (exit $ac_status); }; then
49591   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49592 else
49593   pkg_failed=yes
49594 fi
49595     fi
49596 else
49597         pkg_failed=untried
49598 fi
49599 if test -n "$PKG_CONFIG"; then
49600     if test -n "$GST_LIBS"; then
49601         pkg_cv_GST_LIBS="$GST_LIBS"
49602     else
49603         if test -n "$PKG_CONFIG" && \
49604     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49605   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49606   ac_status=$?
49607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49608   (exit $ac_status); }; then
49609   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49610 else
49611   pkg_failed=yes
49612 fi
49613     fi
49614 else
49615         pkg_failed=untried
49616 fi
49617
49618
49619
49620 if test $pkg_failed = yes; then
49621
49622 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49623         _pkg_short_errors_supported=yes
49624 else
49625         _pkg_short_errors_supported=no
49626 fi
49627         if test $_pkg_short_errors_supported = yes; then
49628                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49629         else
49630                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49631         fi
49632         # Put the nasty error message in config.log where it belongs
49633         echo "$GST_PKG_ERRORS" >&5
49634
49635
49636                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49637 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49638
49639 elif test $pkg_failed = untried; then
49640
49641                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49642 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49643
49644 else
49645         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49646         GST_LIBS=$pkg_cv_GST_LIBS
49647         { echo "$as_me:$LINENO: result: yes" >&5
49648 echo "${ECHO_T}yes" >&6; }
49649         wxUSE_GSTREAMER="yes"
49650 fi
49651         fi
49652
49653
49654         if test "$wxUSE_GSTREAMER" = "yes"; then
49655             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49656             LIBS="$GST_LIBS $LIBS"
49657
49658             cat >>confdefs.h <<\_ACEOF
49659 #define wxUSE_GSTREAMER 1
49660 _ACEOF
49661
49662         else
49663             USE_MEDIA=0
49664         fi
49665     fi
49666
49667     if test $USE_MEDIA = 1; then
49668         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
49669         cat >>confdefs.h <<\_ACEOF
49670 #define wxUSE_MEDIACTRL 1
49671 _ACEOF
49672
49673     fi
49674 fi
49675
49676
49677 if test "$cross_compiling" = "yes"; then
49678         OSINFO="\"$host\""
49679 else
49680         OSINFO=`uname -s -r -m`
49681     OSINFO="\"$OSINFO\""
49682 fi
49683
49684 cat >>confdefs.h <<_ACEOF
49685 #define WXWIN_OS_DESCRIPTION $OSINFO
49686 _ACEOF
49687
49688
49689
49690 if test "x$prefix" != "xNONE"; then
49691     wxPREFIX=$prefix
49692 else
49693     wxPREFIX=$ac_default_prefix
49694 fi
49695
49696 cat >>confdefs.h <<_ACEOF
49697 #define wxINSTALL_PREFIX "$wxPREFIX"
49698 _ACEOF
49699
49700
49701
49702
49703 STD_BASE_LIBS="base"
49704 STD_GUI_LIBS=""
49705 BUILT_WX_LIBS="base"
49706 ALL_WX_LIBS="xrc stc gl media dbgrid qa html adv core odbc xml net base"
49707
49708 if test "$wxUSE_SOCKETS" = "yes" ; then
49709     STD_BASE_LIBS="net $STD_BASE_LIBS"
49710     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49711 fi
49712 if test "$wxUSE_ODBC" != "no" ; then
49713     BUILT_WX_LIBS="odbc $BUILT_WX_LIBS"
49714 fi
49715 if test "$wxUSE_XML" = "yes" ; then
49716     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49717     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49718 fi
49719
49720 if test "$wxUSE_GUI" = "yes"; then
49721     STD_GUI_LIBS="adv core"
49722     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49723
49724     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49725         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49726         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49727     fi
49728     if test "$wxUSE_ODBC" != "no" ; then
49729         BUILT_WX_LIBS="dbgrid $BUILT_WX_LIBS"
49730     fi
49731     if test "$wxUSE_HTML" = "yes" ; then
49732         STD_GUI_LIBS="html $STD_GUI_LIBS"
49733         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49734     fi
49735     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49736         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49737     fi
49738     if test "$wxUSE_OPENGL" = "yes" ; then
49739         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49740     fi
49741     if test "$wxUSE_AUI" = "yes" ; then
49742         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49743     fi
49744     if test "$wxUSE_STC" = "yes" ; then
49745         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49746     fi
49747     if test "$wxUSE_XRC" = "yes" ; then
49748         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49749         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49750     fi
49751 fi
49752
49753
49754
49755
49756
49757
49758
49759
49760 if test "$wxUSE_MAC" = 1 ; then
49761     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
49762         if test "$USE_DARWIN" = 1; then
49763             LDFLAGS="$LDFLAGS -framework QuickTime"
49764         else
49765             LDFLAGS="$LDFLAGS -lQuickTimeLib"
49766         fi
49767     fi
49768     if test "$USE_DARWIN" = 1; then
49769         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
49770     else
49771         LDFLAGS="$LDFLAGS -lCarbonLib"
49772     fi
49773 fi
49774 if test "$wxUSE_COCOA" = 1 ; then
49775     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
49776     if test "$wxUSE_MEDIACTRL" = "yes"; then
49777         LDFLAGS="$LDFLAGS -framework QuickTime"
49778     fi
49779 fi
49780 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
49781     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49782 fi
49783
49784 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49785
49786 if test "$wxUSE_GUI" = "yes"; then
49787
49788
49789         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49790                      dynamic erase event exec font image minimal mobile \
49791                      mobile/wxedit mobile/styles propsize render \
49792                      rotate shaped svg taborder vscroll widgets"
49793
49794     if test "$wxUSE_MONOLITHIC" != "yes"; then
49795         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49796     fi
49797     if test "$TOOLKIT" = "MSW"; then
49798         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49799         if test "$wxUSE_UNIVERSAL" != "yes"; then
49800             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
49801         fi
49802     fi
49803     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49804         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49805     fi
49806 else
49807     SAMPLES_SUBDIRS="console"
49808 fi
49809
49810
49811 if test "x$INTELCC" = "xyes" ; then
49812                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
49813 elif test "$GCC" = yes ; then
49814     CWARNINGS="-Wall -Wundef"
49815 fi
49816
49817 if test "x$INTELCXX" = "xyes" ; then
49818                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
49819 elif test "$GXX" = yes ; then
49820         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
49821 fi
49822
49823
49824 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49825 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49826
49827
49828 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49829  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49830  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49831  $CPPFLAGS `
49832
49833 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49834 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49835 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49836
49837 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49838
49839
49840 if test "x$MWCC" = "xyes"; then
49841
49842             CC="$CC -cwd source -I-"
49843     CXX="$CXX -cwd source -I-"
49844 fi
49845
49846
49847 LIBS=`echo $LIBS`
49848 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49849 EXTRALIBS_XML="$EXPAT_LINK"
49850 EXTRALIBS_HTML="$MSPACK_LINK"
49851 EXTRALIBS_ODBC="$ODBC_LINK"
49852 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49853 if test "$wxUSE_GUI" = "yes"; then
49854     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49855 fi
49856 if test "$wxUSE_OPENGL" = "yes"; then
49857     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49858 fi
49859
49860 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49861
49862 WXCONFIG_LIBS="$LIBS"
49863
49864 if test "$wxUSE_REGEX" = "builtin" ; then
49865     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49866 fi
49867 if test "$wxUSE_EXPAT" = "builtin" ; then
49868     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49869 fi
49870 if test "$wxUSE_ODBC" = "builtin" ; then
49871     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
49872 fi
49873 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49874     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49875 fi
49876 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49877     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49878 fi
49879 if test "$wxUSE_LIBPNG" = "builtin" ; then
49880     wxconfig_3rdparty="png $wxconfig_3rdparty"
49881 fi
49882 if test "$wxUSE_ZLIB" = "builtin" ; then
49883     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49884 fi
49885
49886 for i in $wxconfig_3rdparty ; do
49887     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49888 done
49889
49890
49891 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49892     WXUNIV=1
49893
49894     case "$wxUNIV_THEMES" in
49895         ''|all)
49896             cat >>confdefs.h <<\_ACEOF
49897 #define wxUSE_ALL_THEMES 1
49898 _ACEOF
49899
49900             ;;
49901
49902         *)
49903             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
49904                 cat >>confdefs.h <<_ACEOF
49905 #define wxUSE_THEME_$t 1
49906 _ACEOF
49907
49908             done
49909     esac
49910 else
49911     WXUNIV=0
49912 fi
49913
49914
49915
49916
49917
49918
49919
49920
49921
49922 if test $wxUSE_MONOLITHIC = "yes" ; then
49923     MONOLITHIC=1
49924 else
49925     MONOLITHIC=0
49926 fi
49927
49928 if test $wxUSE_PLUGINS = "yes" ; then
49929     USE_PLUGINS=1
49930 else
49931     USE_PLUGINS=0
49932 fi
49933
49934 if test $wxUSE_ODBC != "no" ; then
49935     USE_ODBC=1
49936 else
49937     USE_ODBC=0
49938 fi
49939
49940 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49941     USE_QA=1
49942 else
49943     USE_QA=0
49944 fi
49945
49946 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49947     OFFICIAL_BUILD=1
49948 else
49949     OFFICIAL_BUILD=0
49950 fi
49951
49952
49953
49954
49955
49956
49957
49958
49959
49960
49961
49962
49963
49964
49965
49966
49967
49968
49969
49970
49971
49972
49973
49974
49975
49976
49977 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
49978
49979
49980
49981
49982
49983
49984
49985
49986 case "$TOOLKIT" in
49987     GTK)
49988         TOOLKIT_DESC="GTK+"
49989         if test "$WXGTK20" = 1; then
49990             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49991             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49992                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49993             fi
49994             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49995                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49996             fi
49997             if test "$wxUSE_LIBHILDON" = "yes"; then
49998                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49999             fi
50000
50001             if test "$TOOLKIT_EXTRA" != ""; then
50002                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
50003             fi
50004         fi
50005         ;;
50006
50007     ?*)
50008         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
50009         ;;
50010
50011     *)
50012         TOOLKIT_DESC="base only"
50013         ;;
50014 esac
50015
50016 if test "$wxUSE_WINE" = "yes"; then
50017     BAKEFILE_FORCE_PLATFORM=win32
50018 fi
50019
50020 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
50021 then
50022     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
50023 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
50024 if test "${wx_cv_gcc_pch_bug+set}" = set; then
50025   echo $ECHO_N "(cached) $ECHO_C" >&6
50026 else
50027
50028             echo '#include <stdio.h>
50029                   const wchar_t test_var[] = L"awidetest";' > conftest.h
50030
50031             echo '#include "conftest.h"
50032                   int main()
50033                   {
50034                      printf("%ls", test_var);
50035                      return 0;
50036                   }' > conftest.cpp
50037
50038             wx_cv_gcc_pch_bug="pch not supported"
50039
50040             if $CXX conftest.h >/dev/null 2>&1
50041             then
50042                 wx_cv_gcc_pch_bug=
50043
50044                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
50045                 then
50046                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
50047                         grep awidetest >/dev/null
50048                     then
50049                         wx_cv_gcc_pch_bug=no
50050                     else
50051                         wx_cv_gcc_pch_bug=yes
50052                     fi
50053                 fi
50054             fi
50055
50056             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
50057
50058 fi
50059 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
50060 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
50061
50062     if test "$wx_cv_gcc_pch_bug" = yes; then
50063                         bk_use_pch=no
50064     fi
50065 fi
50066
50067
50068
50069
50070     if test "x$BAKEFILE_HOST" = "x"; then
50071                if test "x${host}" = "x" ; then
50072                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
50073 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
50074    { (exit 1); exit 1; }; }
50075                fi
50076
50077         BAKEFILE_HOST="${host}"
50078     fi
50079
50080     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
50081
50082     if test -n "$ac_tool_prefix"; then
50083   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
50084 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
50085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50087 if test "${ac_cv_prog_RANLIB+set}" = set; then
50088   echo $ECHO_N "(cached) $ECHO_C" >&6
50089 else
50090   if test -n "$RANLIB"; then
50091   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
50092 else
50093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50094 for as_dir in $PATH
50095 do
50096   IFS=$as_save_IFS
50097   test -z "$as_dir" && as_dir=.
50098   for ac_exec_ext in '' $ac_executable_extensions; do
50099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50100     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
50101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50102     break 2
50103   fi
50104 done
50105 done
50106 IFS=$as_save_IFS
50107
50108 fi
50109 fi
50110 RANLIB=$ac_cv_prog_RANLIB
50111 if test -n "$RANLIB"; then
50112   { echo "$as_me:$LINENO: result: $RANLIB" >&5
50113 echo "${ECHO_T}$RANLIB" >&6; }
50114 else
50115   { echo "$as_me:$LINENO: result: no" >&5
50116 echo "${ECHO_T}no" >&6; }
50117 fi
50118
50119
50120 fi
50121 if test -z "$ac_cv_prog_RANLIB"; then
50122   ac_ct_RANLIB=$RANLIB
50123   # Extract the first word of "ranlib", so it can be a program name with args.
50124 set dummy ranlib; ac_word=$2
50125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50127 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
50128   echo $ECHO_N "(cached) $ECHO_C" >&6
50129 else
50130   if test -n "$ac_ct_RANLIB"; then
50131   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
50132 else
50133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50134 for as_dir in $PATH
50135 do
50136   IFS=$as_save_IFS
50137   test -z "$as_dir" && as_dir=.
50138   for ac_exec_ext in '' $ac_executable_extensions; do
50139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50140     ac_cv_prog_ac_ct_RANLIB="ranlib"
50141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50142     break 2
50143   fi
50144 done
50145 done
50146 IFS=$as_save_IFS
50147
50148 fi
50149 fi
50150 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
50151 if test -n "$ac_ct_RANLIB"; then
50152   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
50153 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
50154 else
50155   { echo "$as_me:$LINENO: result: no" >&5
50156 echo "${ECHO_T}no" >&6; }
50157 fi
50158
50159   if test "x$ac_ct_RANLIB" = x; then
50160     RANLIB=":"
50161   else
50162     case $cross_compiling:$ac_tool_warned in
50163 yes:)
50164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50165 whose name does not start with the host triplet.  If you think this
50166 configuration is useful to you, please write to autoconf@gnu.org." >&5
50167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50168 whose name does not start with the host triplet.  If you think this
50169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50170 ac_tool_warned=yes ;;
50171 esac
50172     RANLIB=$ac_ct_RANLIB
50173   fi
50174 else
50175   RANLIB="$ac_cv_prog_RANLIB"
50176 fi
50177
50178     # Find a good install program.  We prefer a C program (faster),
50179 # so one script is as good as another.  But avoid the broken or
50180 # incompatible versions:
50181 # SysV /etc/install, /usr/sbin/install
50182 # SunOS /usr/etc/install
50183 # IRIX /sbin/install
50184 # AIX /bin/install
50185 # AmigaOS /C/install, which installs bootblocks on floppy discs
50186 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
50187 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
50188 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
50189 # OS/2's system install, which has a completely different semantic
50190 # ./install, which can be erroneously created by make from ./install.sh.
50191 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
50192 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
50193 if test -z "$INSTALL"; then
50194 if test "${ac_cv_path_install+set}" = set; then
50195   echo $ECHO_N "(cached) $ECHO_C" >&6
50196 else
50197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50198 for as_dir in $PATH
50199 do
50200   IFS=$as_save_IFS
50201   test -z "$as_dir" && as_dir=.
50202   # Account for people who put trailing slashes in PATH elements.
50203 case $as_dir/ in
50204   ./ | .// | /cC/* | \
50205   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
50206   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
50207   /usr/ucb/* ) ;;
50208   *)
50209     # OSF1 and SCO ODT 3.0 have their own names for install.
50210     # Don't use installbsd from OSF since it installs stuff as root
50211     # by default.
50212     for ac_prog in ginstall scoinst install; do
50213       for ac_exec_ext in '' $ac_executable_extensions; do
50214         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
50215           if test $ac_prog = install &&
50216             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50217             # AIX install.  It has an incompatible calling convention.
50218             :
50219           elif test $ac_prog = install &&
50220             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50221             # program-specific install script used by HP pwplus--don't use.
50222             :
50223           else
50224             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
50225             break 3
50226           fi
50227         fi
50228       done
50229     done
50230     ;;
50231 esac
50232 done
50233 IFS=$as_save_IFS
50234
50235
50236 fi
50237   if test "${ac_cv_path_install+set}" = set; then
50238     INSTALL=$ac_cv_path_install
50239   else
50240     # As a last resort, use the slow shell script.  Don't cache a
50241     # value for INSTALL within a source directory, because that will
50242     # break other packages using the cache if that directory is
50243     # removed, or if the value is a relative name.
50244     INSTALL=$ac_install_sh
50245   fi
50246 fi
50247 { echo "$as_me:$LINENO: result: $INSTALL" >&5
50248 echo "${ECHO_T}$INSTALL" >&6; }
50249
50250 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
50251 # It thinks the first close brace ends the variable substitution.
50252 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
50253
50254 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
50255
50256 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
50257
50258     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
50259 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
50260 LN_S=$as_ln_s
50261 if test "$LN_S" = "ln -s"; then
50262   { echo "$as_me:$LINENO: result: yes" >&5
50263 echo "${ECHO_T}yes" >&6; }
50264 else
50265   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
50266 echo "${ECHO_T}no, using $LN_S" >&6; }
50267 fi
50268
50269
50270     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50271 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50272 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50273 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50274   echo $ECHO_N "(cached) $ECHO_C" >&6
50275 else
50276   cat >conftest.make <<\_ACEOF
50277 SHELL = /bin/sh
50278 all:
50279         @echo '@@@%%%=$(MAKE)=@@@%%%'
50280 _ACEOF
50281 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50282 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50283   *@@@%%%=?*=@@@%%%*)
50284     eval ac_cv_prog_make_${ac_make}_set=yes;;
50285   *)
50286     eval ac_cv_prog_make_${ac_make}_set=no;;
50287 esac
50288 rm -f conftest.make
50289 fi
50290 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50291   { echo "$as_me:$LINENO: result: yes" >&5
50292 echo "${ECHO_T}yes" >&6; }
50293   SET_MAKE=
50294 else
50295   { echo "$as_me:$LINENO: result: no" >&5
50296 echo "${ECHO_T}no" >&6; }
50297   SET_MAKE="MAKE=${MAKE-make}"
50298 fi
50299
50300
50301
50302     if test "x$SUNCXX" = "xyes"; then
50303                                 AR=$CXX
50304         AROPTIONS="-xar -o"
50305
50306     elif test "x$SGICC" = "xyes"; then
50307                 AR=$CXX
50308         AROPTIONS="-ar -o"
50309
50310     else
50311         if test -n "$ac_tool_prefix"; then
50312   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
50313 set dummy ${ac_tool_prefix}ar; ac_word=$2
50314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50316 if test "${ac_cv_prog_AR+set}" = set; then
50317   echo $ECHO_N "(cached) $ECHO_C" >&6
50318 else
50319   if test -n "$AR"; then
50320   ac_cv_prog_AR="$AR" # Let the user override the test.
50321 else
50322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50323 for as_dir in $PATH
50324 do
50325   IFS=$as_save_IFS
50326   test -z "$as_dir" && as_dir=.
50327   for ac_exec_ext in '' $ac_executable_extensions; do
50328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50329     ac_cv_prog_AR="${ac_tool_prefix}ar"
50330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50331     break 2
50332   fi
50333 done
50334 done
50335 IFS=$as_save_IFS
50336
50337 fi
50338 fi
50339 AR=$ac_cv_prog_AR
50340 if test -n "$AR"; then
50341   { echo "$as_me:$LINENO: result: $AR" >&5
50342 echo "${ECHO_T}$AR" >&6; }
50343 else
50344   { echo "$as_me:$LINENO: result: no" >&5
50345 echo "${ECHO_T}no" >&6; }
50346 fi
50347
50348
50349 fi
50350 if test -z "$ac_cv_prog_AR"; then
50351   ac_ct_AR=$AR
50352   # Extract the first word of "ar", so it can be a program name with args.
50353 set dummy ar; ac_word=$2
50354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50356 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
50357   echo $ECHO_N "(cached) $ECHO_C" >&6
50358 else
50359   if test -n "$ac_ct_AR"; then
50360   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
50361 else
50362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50363 for as_dir in $PATH
50364 do
50365   IFS=$as_save_IFS
50366   test -z "$as_dir" && as_dir=.
50367   for ac_exec_ext in '' $ac_executable_extensions; do
50368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50369     ac_cv_prog_ac_ct_AR="ar"
50370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50371     break 2
50372   fi
50373 done
50374 done
50375 IFS=$as_save_IFS
50376
50377 fi
50378 fi
50379 ac_ct_AR=$ac_cv_prog_ac_ct_AR
50380 if test -n "$ac_ct_AR"; then
50381   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
50382 echo "${ECHO_T}$ac_ct_AR" >&6; }
50383 else
50384   { echo "$as_me:$LINENO: result: no" >&5
50385 echo "${ECHO_T}no" >&6; }
50386 fi
50387
50388   if test "x$ac_ct_AR" = x; then
50389     AR="ar"
50390   else
50391     case $cross_compiling:$ac_tool_warned in
50392 yes:)
50393 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50394 whose name does not start with the host triplet.  If you think this
50395 configuration is useful to you, please write to autoconf@gnu.org." >&5
50396 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50397 whose name does not start with the host triplet.  If you think this
50398 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50399 ac_tool_warned=yes ;;
50400 esac
50401     AR=$ac_ct_AR
50402   fi
50403 else
50404   AR="$ac_cv_prog_AR"
50405 fi
50406
50407         AROPTIONS=rcu
50408     fi
50409
50410
50411     if test -n "$ac_tool_prefix"; then
50412   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
50413 set dummy ${ac_tool_prefix}strip; ac_word=$2
50414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50416 if test "${ac_cv_prog_STRIP+set}" = set; then
50417   echo $ECHO_N "(cached) $ECHO_C" >&6
50418 else
50419   if test -n "$STRIP"; then
50420   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
50421 else
50422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50423 for as_dir in $PATH
50424 do
50425   IFS=$as_save_IFS
50426   test -z "$as_dir" && as_dir=.
50427   for ac_exec_ext in '' $ac_executable_extensions; do
50428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50429     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
50430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50431     break 2
50432   fi
50433 done
50434 done
50435 IFS=$as_save_IFS
50436
50437 fi
50438 fi
50439 STRIP=$ac_cv_prog_STRIP
50440 if test -n "$STRIP"; then
50441   { echo "$as_me:$LINENO: result: $STRIP" >&5
50442 echo "${ECHO_T}$STRIP" >&6; }
50443 else
50444   { echo "$as_me:$LINENO: result: no" >&5
50445 echo "${ECHO_T}no" >&6; }
50446 fi
50447
50448
50449 fi
50450 if test -z "$ac_cv_prog_STRIP"; then
50451   ac_ct_STRIP=$STRIP
50452   # Extract the first word of "strip", so it can be a program name with args.
50453 set dummy strip; ac_word=$2
50454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50456 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
50457   echo $ECHO_N "(cached) $ECHO_C" >&6
50458 else
50459   if test -n "$ac_ct_STRIP"; then
50460   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
50461 else
50462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50463 for as_dir in $PATH
50464 do
50465   IFS=$as_save_IFS
50466   test -z "$as_dir" && as_dir=.
50467   for ac_exec_ext in '' $ac_executable_extensions; do
50468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50469     ac_cv_prog_ac_ct_STRIP="strip"
50470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50471     break 2
50472   fi
50473 done
50474 done
50475 IFS=$as_save_IFS
50476
50477 fi
50478 fi
50479 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
50480 if test -n "$ac_ct_STRIP"; then
50481   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
50482 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
50483 else
50484   { echo "$as_me:$LINENO: result: no" >&5
50485 echo "${ECHO_T}no" >&6; }
50486 fi
50487
50488   if test "x$ac_ct_STRIP" = x; then
50489     STRIP=":"
50490   else
50491     case $cross_compiling:$ac_tool_warned in
50492 yes:)
50493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50494 whose name does not start with the host triplet.  If you think this
50495 configuration is useful to you, please write to autoconf@gnu.org." >&5
50496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50497 whose name does not start with the host triplet.  If you think this
50498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50499 ac_tool_warned=yes ;;
50500 esac
50501     STRIP=$ac_ct_STRIP
50502   fi
50503 else
50504   STRIP="$ac_cv_prog_STRIP"
50505 fi
50506
50507     if test -n "$ac_tool_prefix"; then
50508   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
50509 set dummy ${ac_tool_prefix}nm; ac_word=$2
50510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50512 if test "${ac_cv_prog_NM+set}" = set; then
50513   echo $ECHO_N "(cached) $ECHO_C" >&6
50514 else
50515   if test -n "$NM"; then
50516   ac_cv_prog_NM="$NM" # Let the user override the test.
50517 else
50518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50519 for as_dir in $PATH
50520 do
50521   IFS=$as_save_IFS
50522   test -z "$as_dir" && as_dir=.
50523   for ac_exec_ext in '' $ac_executable_extensions; do
50524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50525     ac_cv_prog_NM="${ac_tool_prefix}nm"
50526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50527     break 2
50528   fi
50529 done
50530 done
50531 IFS=$as_save_IFS
50532
50533 fi
50534 fi
50535 NM=$ac_cv_prog_NM
50536 if test -n "$NM"; then
50537   { echo "$as_me:$LINENO: result: $NM" >&5
50538 echo "${ECHO_T}$NM" >&6; }
50539 else
50540   { echo "$as_me:$LINENO: result: no" >&5
50541 echo "${ECHO_T}no" >&6; }
50542 fi
50543
50544
50545 fi
50546 if test -z "$ac_cv_prog_NM"; then
50547   ac_ct_NM=$NM
50548   # Extract the first word of "nm", so it can be a program name with args.
50549 set dummy nm; ac_word=$2
50550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50552 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
50553   echo $ECHO_N "(cached) $ECHO_C" >&6
50554 else
50555   if test -n "$ac_ct_NM"; then
50556   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
50557 else
50558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50559 for as_dir in $PATH
50560 do
50561   IFS=$as_save_IFS
50562   test -z "$as_dir" && as_dir=.
50563   for ac_exec_ext in '' $ac_executable_extensions; do
50564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50565     ac_cv_prog_ac_ct_NM="nm"
50566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50567     break 2
50568   fi
50569 done
50570 done
50571 IFS=$as_save_IFS
50572
50573 fi
50574 fi
50575 ac_ct_NM=$ac_cv_prog_ac_ct_NM
50576 if test -n "$ac_ct_NM"; then
50577   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
50578 echo "${ECHO_T}$ac_ct_NM" >&6; }
50579 else
50580   { echo "$as_me:$LINENO: result: no" >&5
50581 echo "${ECHO_T}no" >&6; }
50582 fi
50583
50584   if test "x$ac_ct_NM" = x; then
50585     NM=":"
50586   else
50587     case $cross_compiling:$ac_tool_warned in
50588 yes:)
50589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50590 whose name does not start with the host triplet.  If you think this
50591 configuration is useful to you, please write to autoconf@gnu.org." >&5
50592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50593 whose name does not start with the host triplet.  If you think this
50594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50595 ac_tool_warned=yes ;;
50596 esac
50597     NM=$ac_ct_NM
50598   fi
50599 else
50600   NM="$ac_cv_prog_NM"
50601 fi
50602
50603
50604     case ${BAKEFILE_HOST} in
50605         *-hp-hpux* )
50606                                     INSTALL_DIR="mkdir -p"
50607             ;;
50608         * )
50609                                     INSTALL_DIR='$(INSTALL) -d'
50610             ;;
50611     esac
50612
50613
50614     LDFLAGS_GUI=
50615     case ${BAKEFILE_HOST} in
50616         *-*-cygwin* | *-*-mingw32* )
50617         LDFLAGS_GUI="-mwindows"
50618     esac
50619
50620
50621     fi
50622
50623         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50624 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
50625 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50626   echo $ECHO_N "(cached) $ECHO_C" >&6
50627 else
50628
50629         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50630                 egrep -s GNU > /dev/null); then
50631             bakefile_cv_prog_makeisgnu="yes"
50632         else
50633             bakefile_cv_prog_makeisgnu="no"
50634         fi
50635
50636 fi
50637 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50638 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50639
50640     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50641         IF_GNU_MAKE=""
50642     else
50643         IF_GNU_MAKE="#"
50644     fi
50645
50646
50647
50648     PLATFORM_UNIX=0
50649     PLATFORM_WIN32=0
50650     PLATFORM_MSDOS=0
50651     PLATFORM_MAC=0
50652     PLATFORM_MACOS=0
50653     PLATFORM_MACOSX=0
50654     PLATFORM_OS2=0
50655     PLATFORM_BEOS=0
50656
50657     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50658         case "${BAKEFILE_HOST}" in
50659             *-*-mingw32* )
50660                 PLATFORM_WIN32=1
50661             ;;
50662             *-pc-msdosdjgpp )
50663                 PLATFORM_MSDOS=1
50664             ;;
50665             *-pc-os2_emx | *-pc-os2-emx )
50666                 PLATFORM_OS2=1
50667             ;;
50668             *-*-darwin* )
50669                 PLATFORM_MAC=1
50670                 PLATFORM_MACOSX=1
50671             ;;
50672             *-*-beos* )
50673                 PLATFORM_BEOS=1
50674             ;;
50675             powerpc-apple-macos* )
50676                 PLATFORM_MAC=1
50677                 PLATFORM_MACOS=1
50678             ;;
50679             * )
50680                 PLATFORM_UNIX=1
50681             ;;
50682         esac
50683     else
50684         case "$BAKEFILE_FORCE_PLATFORM" in
50685             win32 )
50686                 PLATFORM_WIN32=1
50687             ;;
50688             msdos )
50689                 PLATFORM_MSDOS=1
50690             ;;
50691             os2 )
50692                 PLATFORM_OS2=1
50693             ;;
50694             darwin )
50695                 PLATFORM_MAC=1
50696                 PLATFORM_MACOSX=1
50697             ;;
50698             unix )
50699                 PLATFORM_UNIX=1
50700             ;;
50701             beos )
50702                 PLATFORM_BEOS=1
50703             ;;
50704             * )
50705                                             ;;
50706         esac
50707     fi
50708
50709
50710
50711
50712
50713
50714
50715
50716
50717
50718
50719     # Check whether --enable-omf was given.
50720 if test "${enable_omf+set}" = set; then
50721   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50722 fi
50723
50724
50725     case "${BAKEFILE_HOST}" in
50726       *-*-darwin* )
50727                         if test "x$GCC" = "xyes"; then
50728             CFLAGS="$CFLAGS -fno-common"
50729             CXXFLAGS="$CXXFLAGS -fno-common"
50730         fi
50731         if test "x$XLCC" = "xyes"; then
50732             CFLAGS="$CFLAGS -qnocommon"
50733             CXXFLAGS="$CXXFLAGS -qnocommon"
50734         fi
50735         ;;
50736
50737       *-pc-os2_emx | *-pc-os2-emx )
50738         if test "x$bk_os2_use_omf" = "xyes" ; then
50739             AR=emxomfar
50740             RANLIB=:
50741             LDFLAGS="-Zomf $LDFLAGS"
50742             CFLAGS="-Zomf $CFLAGS"
50743             CXXFLAGS="-Zomf $CXXFLAGS"
50744             OS2_LIBEXT="lib"
50745         else
50746             OS2_LIBEXT="a"
50747         fi
50748         ;;
50749
50750       i*86-*-beos* )
50751         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50752         ;;
50753     esac
50754
50755
50756     SO_SUFFIX="so"
50757     SO_SUFFIX_MODULE="so"
50758     EXEEXT=""
50759     LIBPREFIX="lib"
50760     LIBEXT=".a"
50761     DLLPREFIX="lib"
50762     DLLPREFIX_MODULE=""
50763     DLLIMP_SUFFIX=""
50764     dlldir="$libdir"
50765
50766     case "${BAKEFILE_HOST}" in
50767         *-hp-hpux* )
50768             SO_SUFFIX="sl"
50769             SO_SUFFIX_MODULE="sl"
50770         ;;
50771         *-*-aix* )
50772                                                                         SO_SUFFIX="a"
50773             SO_SUFFIX_MODULE="a"
50774         ;;
50775         *-*-cygwin* )
50776             SO_SUFFIX="dll"
50777             SO_SUFFIX_MODULE="dll"
50778             DLLIMP_SUFFIX="dll.a"
50779             EXEEXT=".exe"
50780             DLLPREFIX="cyg"
50781             dlldir="$bindir"
50782         ;;
50783         *-*-mingw32* )
50784             SO_SUFFIX="dll"
50785             SO_SUFFIX_MODULE="dll"
50786             DLLIMP_SUFFIX="dll.a"
50787             EXEEXT=".exe"
50788             DLLPREFIX=""
50789             dlldir="$bindir"
50790         ;;
50791         *-pc-msdosdjgpp )
50792             EXEEXT=".exe"
50793             DLLPREFIX=""
50794             dlldir="$bindir"
50795         ;;
50796         *-pc-os2_emx | *-pc-os2-emx )
50797             SO_SUFFIX="dll"
50798             SO_SUFFIX_MODULE="dll"
50799             DLLIMP_SUFFIX=$OS2_LIBEXT
50800             EXEEXT=".exe"
50801             DLLPREFIX=""
50802             LIBPREFIX=""
50803             LIBEXT=".$OS2_LIBEXT"
50804             dlldir="$bindir"
50805         ;;
50806         *-*-darwin* )
50807             SO_SUFFIX="dylib"
50808             SO_SUFFIX_MODULE="bundle"
50809         ;;
50810     esac
50811
50812     if test "x$DLLIMP_SUFFIX" = "x" ; then
50813         DLLIMP_SUFFIX="$SO_SUFFIX"
50814     fi
50815
50816
50817
50818
50819
50820
50821
50822
50823
50824
50825
50826
50827         PIC_FLAG=""
50828     if test "x$GCC" = "xyes"; then
50829                 PIC_FLAG="-fPIC"
50830     fi
50831
50832         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50833     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50834     WINDOWS_IMPLIB=0
50835
50836     case "${BAKEFILE_HOST}" in
50837       *-hp-hpux* )
50838                 if test "x$GCC" != "xyes"; then
50839                         LDFLAGS="$LDFLAGS -L/usr/lib"
50840
50841             SHARED_LD_CC="${CC} -b -o"
50842             SHARED_LD_CXX="${CXX} -b -o"
50843             PIC_FLAG="+Z"
50844         fi
50845       ;;
50846
50847       *-*-linux* )
50848         if test "$INTELCC" = "yes"; then
50849             PIC_FLAG="-KPIC"
50850         elif test "x$SUNCXX" = "xyes"; then
50851             SHARED_LD_CC="${CC} -G -o"
50852             SHARED_LD_CXX="${CXX} -G -o"
50853             PIC_FLAG="-KPIC"
50854         fi
50855       ;;
50856
50857       *-*-solaris2* )
50858         if test "x$SUNCXX" = xyes ; then
50859             SHARED_LD_CC="${CC} -G -o"
50860             SHARED_LD_CXX="${CXX} -G -o"
50861             PIC_FLAG="-KPIC"
50862         fi
50863       ;;
50864
50865       *-*-darwin* )
50866
50867 D='$'
50868 cat <<EOF >shared-ld-sh
50869 #!/bin/sh
50870 #-----------------------------------------------------------------------------
50871 #-- Name:        distrib/mac/shared-ld-sh
50872 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50873 #-- Author:      Gilles Depeyrot
50874 #-- Copyright:   (c) 2002 Gilles Depeyrot
50875 #-- Licence:     any use permitted
50876 #-----------------------------------------------------------------------------
50877
50878 verbose=0
50879 args=""
50880 objects=""
50881 linking_flag="-dynamiclib"
50882 ldargs="-r -keep_private_externs -nostdlib"
50883
50884 while test ${D}# -gt 0; do
50885     case ${D}1 in
50886
50887        -v)
50888         verbose=1
50889         ;;
50890
50891        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50892         # collect these options and values
50893         args="${D}{args} ${D}1 ${D}2"
50894         shift
50895         ;;
50896
50897        -s|-Wl,*)
50898         # collect these load args
50899         ldargs="${D}{ldargs} ${D}1"
50900         ;;
50901
50902        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50903         # collect these options
50904         args="${D}{args} ${D}1"
50905         ;;
50906
50907        -dynamiclib|-bundle)
50908         linking_flag="${D}1"
50909         ;;
50910
50911        -*)
50912         echo "shared-ld: unhandled option '${D}1'"
50913         exit 1
50914         ;;
50915
50916         *.o | *.a | *.dylib)
50917         # collect object files
50918         objects="${D}{objects} ${D}1"
50919         ;;
50920
50921         *)
50922         echo "shared-ld: unhandled argument '${D}1'"
50923         exit 1
50924         ;;
50925
50926     esac
50927     shift
50928 done
50929
50930 status=0
50931
50932 #
50933 # Link one module containing all the others
50934 #
50935 if test ${D}{verbose} = 1; then
50936     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50937 fi
50938 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50939 status=${D}?
50940
50941 #
50942 # Link the shared library from the single module created, but only if the
50943 # previous command didn't fail:
50944 #
50945 if test ${D}{status} = 0; then
50946     if test ${D}{verbose} = 1; then
50947         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50948     fi
50949     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50950     status=${D}?
50951 fi
50952
50953 #
50954 # Remove intermediate module
50955 #
50956 rm -f master.${D}${D}.o
50957
50958 exit ${D}status
50959 EOF
50960
50961         chmod +x shared-ld-sh
50962
50963         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50964         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
50965
50966
50967                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50968 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50969 if test "${bakefile_cv_gcc31+set}" = set; then
50970   echo $ECHO_N "(cached) $ECHO_C" >&6
50971 else
50972
50973            cat >conftest.$ac_ext <<_ACEOF
50974 /* confdefs.h.  */
50975 _ACEOF
50976 cat confdefs.h >>conftest.$ac_ext
50977 cat >>conftest.$ac_ext <<_ACEOF
50978 /* end confdefs.h.  */
50979
50980 int
50981 main ()
50982 {
50983
50984                    #if (__GNUC__ < 3) || \
50985                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50986                        This is old gcc
50987                    #endif
50988
50989   ;
50990   return 0;
50991 }
50992 _ACEOF
50993 rm -f conftest.$ac_objext
50994 if { (ac_try="$ac_compile"
50995 case "(($ac_try" in
50996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50997   *) ac_try_echo=$ac_try;;
50998 esac
50999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51000   (eval "$ac_compile") 2>conftest.er1
51001   ac_status=$?
51002   grep -v '^ *+' conftest.er1 >conftest.err
51003   rm -f conftest.er1
51004   cat conftest.err >&5
51005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51006   (exit $ac_status); } && {
51007          test -z "$ac_c_werror_flag" ||
51008          test ! -s conftest.err
51009        } && test -s conftest.$ac_objext; then
51010
51011                    bakefile_cv_gcc31=yes
51012
51013 else
51014   echo "$as_me: failed program was:" >&5
51015 sed 's/^/| /' conftest.$ac_ext >&5
51016
51017
51018                    bakefile_cv_gcc31=no
51019
51020
51021 fi
51022
51023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51024
51025 fi
51026 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
51027 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
51028         if test "$bakefile_cv_gcc31" = "no"; then
51029                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
51030             SHARED_LD_CXX="$SHARED_LD_CC"
51031         else
51032                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
51033             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
51034         fi
51035
51036         if test "x$GCC" == "xyes"; then
51037             PIC_FLAG="-dynamic -fPIC"
51038         fi
51039         if test "x$XLCC" = "xyes"; then
51040             PIC_FLAG="-dynamic -DPIC"
51041         fi
51042       ;;
51043
51044       *-*-aix* )
51045         if test "x$GCC" = "xyes"; then
51046                                                             PIC_FLAG=""
51047
51048                                                                                     case "${BAKEFILE_HOST}" in
51049                 *-*-aix5* )
51050                     LD_EXPFULL="-Wl,-bexpfull"
51051                     ;;
51052             esac
51053
51054             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
51055             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
51056         else
51057                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
51058 set dummy makeC++SharedLib; ac_word=$2
51059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51061 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
51062   echo $ECHO_N "(cached) $ECHO_C" >&6
51063 else
51064   if test -n "$AIX_CXX_LD"; then
51065   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
51066 else
51067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51068 for as_dir in $PATH
51069 do
51070   IFS=$as_save_IFS
51071   test -z "$as_dir" && as_dir=.
51072   for ac_exec_ext in '' $ac_executable_extensions; do
51073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51074     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
51075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51076     break 2
51077   fi
51078 done
51079 done
51080 IFS=$as_save_IFS
51081
51082   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
51083 fi
51084 fi
51085 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
51086 if test -n "$AIX_CXX_LD"; then
51087   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
51088 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
51089 else
51090   { echo "$as_me:$LINENO: result: no" >&5
51091 echo "${ECHO_T}no" >&6; }
51092 fi
51093
51094
51095             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
51096             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
51097         fi
51098       ;;
51099
51100       *-*-beos* )
51101                         SHARED_LD_CC="${LD} -nostart -o"
51102         SHARED_LD_CXX="${LD} -nostart -o"
51103       ;;
51104
51105       *-*-irix* )
51106                 if test "x$GCC" != "xyes"; then
51107             PIC_FLAG="-KPIC"
51108         fi
51109       ;;
51110
51111       *-*-cygwin* | *-*-mingw32* )
51112         PIC_FLAG=""
51113         SHARED_LD_CC="\$(CC) -shared -o"
51114         SHARED_LD_CXX="\$(CXX) -shared -o"
51115         WINDOWS_IMPLIB=1
51116       ;;
51117
51118       *-pc-os2_emx | *-pc-os2-emx )
51119         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51120         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51121         PIC_FLAG=""
51122
51123 D='$'
51124 cat <<EOF >dllar.sh
51125 #!/bin/sh
51126 #
51127 # dllar - a tool to build both a .dll and an .a file
51128 # from a set of object (.o) files for EMX/OS2.
51129 #
51130 #  Written by Andrew Zabolotny, bit@freya.etu.ru
51131 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
51132 #
51133 #  This script will accept a set of files on the command line.
51134 #  All the public symbols from the .o files will be exported into
51135 #  a .DEF file, then linker will be run (through gcc) against them to
51136 #  build a shared library consisting of all given .o files. All libraries
51137 #  (.a) will be first decompressed into component .o files then act as
51138 #  described above. You can optionally give a description (-d "description")
51139 #  which will be put into .DLL. To see the list of accepted options (as well
51140 #  as command-line format) simply run this program without options. The .DLL
51141 #  is built to be imported by name (there is no guarantee that new versions
51142 #  of the library you build will have same ordinals for same symbols).
51143 #
51144 #  dllar is free software; you can redistribute it and/or modify
51145 #  it under the terms of the GNU General Public License as published by
51146 #  the Free Software Foundation; either version 2, or (at your option)
51147 #  any later version.
51148 #
51149 #  dllar is distributed in the hope that it will be useful,
51150 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
51151 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
51152 #  GNU General Public License for more details.
51153 #
51154 #  You should have received a copy of the GNU General Public License
51155 #  along with dllar; see the file COPYING.  If not, write to the Free
51156 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
51157 #  02111-1307, USA.
51158
51159 # To successfuly run this program you will need:
51160 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
51161 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
51162 #  - gcc
51163 #    (used to build the .dll)
51164 #  - emxexp
51165 #    (used to create .def file from .o files)
51166 #  - emximp
51167 #    (used to create .a file from .def file)
51168 #  - GNU text utilites (cat, sort, uniq)
51169 #    used to process emxexp output
51170 #  - GNU file utilities (mv, rm)
51171 #  - GNU sed
51172 #  - lxlite (optional, see flag below)
51173 #    (used for general .dll cleanup)
51174 #
51175
51176 flag_USE_LXLITE=1;
51177
51178 #
51179 # helper functions
51180 # basnam, variant of basename, which does _not_ remove the path, _iff_
51181 #                              second argument (suffix to remove) is given
51182 basnam(){
51183     case ${D}# in
51184     1)
51185         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
51186         ;;
51187     2)
51188         echo ${D}1 | sed 's/'${D}2'${D}//'
51189         ;;
51190     *)
51191         echo "error in basnam ${D}*"
51192         exit 8
51193         ;;
51194     esac
51195 }
51196
51197 # Cleanup temporary files and output
51198 CleanUp() {
51199     cd ${D}curDir
51200     for i in ${D}inputFiles ; do
51201         case ${D}i in
51202         *!)
51203             rm -rf \`basnam ${D}i !\`
51204             ;;
51205         *)
51206             ;;
51207         esac
51208     done
51209
51210     # Kill result in case of failure as there is just to many stupid make/nmake
51211     # things out there which doesn't do this.
51212     if [ ${D}# -eq 0 ]; then
51213         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
51214     fi
51215 }
51216
51217 # Print usage and exit script with rc=1.
51218 PrintHelp() {
51219  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
51220  echo '       [-name-mangler-script script.sh]'
51221  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
51222  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
51223  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
51224  echo '       [*.o] [*.a]'
51225  echo '*> "output_file" should have no extension.'
51226  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
51227  echo '   The import library name is derived from this and is set to "name".a,'
51228  echo '   unless overridden by -import'
51229  echo '*> "importlib_name" should have no extension.'
51230  echo '   If it has the .o, or .a extension, it is automatically removed.'
51231  echo '   This name is used as the import library name and may be longer and'
51232  echo '   more descriptive than the DLL name which has to follow the old '
51233  echo '   8.3 convention of FAT.'
51234  echo '*> "script.sh may be given to override the output_file name by a'
51235  echo '   different name. It is mainly useful if the regular make process'
51236  echo '   of some package does not take into account OS/2 restriction of'
51237  echo '   DLL name lengths. It takes the importlib name as input and is'
51238  echo '   supposed to procude a shorter name as output. The script should'
51239  echo '   expect to get importlib_name without extension and should produce'
51240  echo '   a (max.) 8 letter name without extension.'
51241  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
51242  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
51243  echo '   These flags will be put at the start of GCC command line.'
51244  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
51245  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
51246  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
51247  echo '   If the last character of a symbol is "*", all symbols beginning'
51248  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
51249  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
51250  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
51251  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
51252  echo '   C runtime DLLs.'
51253  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
51254  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
51255  echo '   unchanged to GCC at the end of command line.'
51256  echo '*> If you create a DLL from a library and you do not specify -o,'
51257  echo '   the basename for DLL and import library will be set to library name,'
51258  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
51259  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
51260  echo '   library will be renamed into gcc_s.a.'
51261  echo '--------'
51262  echo 'Example:'
51263  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
51264  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
51265  CleanUp
51266  exit 1
51267 }
51268
51269 # Execute a command.
51270 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
51271 # @Uses    Whatever CleanUp() uses.
51272 doCommand() {
51273     echo "${D}*"
51274     eval ${D}*
51275     rcCmd=${D}?
51276
51277     if [ ${D}rcCmd -ne 0 ]; then
51278         echo "command failed, exit code="${D}rcCmd
51279         CleanUp
51280         exit ${D}rcCmd
51281     fi
51282 }
51283
51284 # main routine
51285 # setup globals
51286 cmdLine=${D}*
51287 outFile=""
51288 outimpFile=""
51289 inputFiles=""
51290 renameScript=""
51291 description=""
51292 CC=gcc.exe
51293 CFLAGS="-s -Zcrtdll"
51294 EXTRA_CFLAGS=""
51295 EXPORT_BY_ORDINALS=0
51296 exclude_symbols=""
51297 library_flags=""
51298 curDir=\`pwd\`
51299 curDirS=curDir
51300 case ${D}curDirS in
51301 */)
51302   ;;
51303 *)
51304   curDirS=${D}{curDirS}"/"
51305   ;;
51306 esac
51307 # Parse commandline
51308 libsToLink=0
51309 omfLinking=0
51310 while [ ${D}1 ]; do
51311     case ${D}1 in
51312     -ord*)
51313         EXPORT_BY_ORDINALS=1;
51314         ;;
51315     -o*)
51316         shift
51317         outFile=${D}1
51318         ;;
51319     -i*)
51320         shift
51321         outimpFile=${D}1
51322         ;;
51323     -name-mangler-script)
51324         shift
51325         renameScript=${D}1
51326         ;;
51327     -d*)
51328         shift
51329         description=${D}1
51330         ;;
51331     -f*)
51332         shift
51333         CFLAGS=${D}1
51334         ;;
51335     -c*)
51336         shift
51337         CC=${D}1
51338         ;;
51339     -h*)
51340         PrintHelp
51341         ;;
51342     -ex*)
51343         shift
51344         exclude_symbols=${D}{exclude_symbols}${D}1" "
51345         ;;
51346     -libf*)
51347         shift
51348         library_flags=${D}{library_flags}${D}1" "
51349         ;;
51350     -nocrt*)
51351         CFLAGS="-s"
51352         ;;
51353     -nolxl*)
51354         flag_USE_LXLITE=0
51355         ;;
51356     -* | /*)
51357         case ${D}1 in
51358         -L* | -l*)
51359             libsToLink=1
51360             ;;
51361         -Zomf)
51362             omfLinking=1
51363             ;;
51364         *)
51365             ;;
51366         esac
51367         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51368         ;;
51369     *.dll)
51370         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
51371         if [ ${D}omfLinking -eq 1 ]; then
51372             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
51373         else
51374             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
51375         fi
51376         ;;
51377     *)
51378         found=0;
51379         if [ ${D}libsToLink -ne 0 ]; then
51380             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51381         else
51382             for file in ${D}1 ; do
51383                 if [ -f ${D}file ]; then
51384                     inputFiles="${D}{inputFiles} ${D}file"
51385                     found=1
51386                 fi
51387             done
51388             if [ ${D}found -eq 0 ]; then
51389                 echo "ERROR: No file(s) found: "${D}1
51390                 exit 8
51391             fi
51392         fi
51393       ;;
51394     esac
51395     shift
51396 done # iterate cmdline words
51397
51398 #
51399 if [ -z "${D}inputFiles" ]; then
51400     echo "dllar: no input files"
51401     PrintHelp
51402 fi
51403
51404 # Now extract all .o files from .a files
51405 newInputFiles=""
51406 for file in ${D}inputFiles ; do
51407     case ${D}file in
51408     *.a | *.lib)
51409         case ${D}file in
51410         *.a)
51411             suffix=".a"
51412             AR="ar"
51413             ;;
51414         *.lib)
51415             suffix=".lib"
51416             AR="emxomfar"
51417             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
51418             ;;
51419         *)
51420             ;;
51421         esac
51422         dirname=\`basnam ${D}file ${D}suffix\`"_%"
51423         mkdir ${D}dirname
51424         if [ ${D}? -ne 0 ]; then
51425             echo "Failed to create subdirectory ./${D}dirname"
51426             CleanUp
51427             exit 8;
51428         fi
51429         # Append '!' to indicate archive
51430         newInputFiles="${D}newInputFiles ${D}{dirname}!"
51431         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
51432         cd ${D}curDir
51433         found=0;
51434         for subfile in ${D}dirname/*.o* ; do
51435             if [ -f ${D}subfile ]; then
51436                 found=1
51437                 if [ -s ${D}subfile ]; then
51438                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
51439                     newInputFiles="${D}newInputFiles ${D}subfile"
51440                 fi
51441             fi
51442         done
51443         if [ ${D}found -eq 0 ]; then
51444             echo "WARNING: there are no files in archive \\'${D}file\\'"
51445         fi
51446         ;;
51447     *)
51448         newInputFiles="${D}{newInputFiles} ${D}file"
51449         ;;
51450     esac
51451 done
51452 inputFiles="${D}newInputFiles"
51453
51454 # Output filename(s).
51455 do_backup=0;
51456 if [ -z ${D}outFile ]; then
51457     do_backup=1;
51458     set outFile ${D}inputFiles; outFile=${D}2
51459 fi
51460
51461 # If it is an archive, remove the '!' and the '_%' suffixes
51462 case ${D}outFile in
51463 *_%!)
51464     outFile=\`basnam ${D}outFile _%!\`
51465     ;;
51466 *)
51467     ;;
51468 esac
51469 case ${D}outFile in
51470 *.dll)
51471     outFile=\`basnam ${D}outFile .dll\`
51472     ;;
51473 *.DLL)
51474     outFile=\`basnam ${D}outFile .DLL\`
51475     ;;
51476 *.o)
51477     outFile=\`basnam ${D}outFile .o\`
51478     ;;
51479 *.obj)
51480     outFile=\`basnam ${D}outFile .obj\`
51481     ;;
51482 *.a)
51483     outFile=\`basnam ${D}outFile .a\`
51484     ;;
51485 *.lib)
51486     outFile=\`basnam ${D}outFile .lib\`
51487     ;;
51488 *)
51489     ;;
51490 esac
51491 case ${D}outimpFile in
51492 *.a)
51493     outimpFile=\`basnam ${D}outimpFile .a\`
51494     ;;
51495 *.lib)
51496     outimpFile=\`basnam ${D}outimpFile .lib\`
51497     ;;
51498 *)
51499     ;;
51500 esac
51501 if [ -z ${D}outimpFile ]; then
51502     outimpFile=${D}outFile
51503 fi
51504 defFile="${D}{outFile}.def"
51505 arcFile="${D}{outimpFile}.a"
51506 arcFile2="${D}{outimpFile}.lib"
51507
51508 #create ${D}dllFile as something matching 8.3 restrictions,
51509 if [ -z ${D}renameScript ] ; then
51510     dllFile="${D}outFile"
51511 else
51512     dllFile=\`${D}renameScript ${D}outimpFile\`
51513 fi
51514
51515 if [ ${D}do_backup -ne 0 ] ; then
51516     if [ -f ${D}arcFile ] ; then
51517         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
51518     fi
51519     if [ -f ${D}arcFile2 ] ; then
51520         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
51521     fi
51522 fi
51523
51524 # Extract public symbols from all the object files.
51525 tmpdefFile=${D}{defFile}_%
51526 rm -f ${D}tmpdefFile
51527 for file in ${D}inputFiles ; do
51528     case ${D}file in
51529     *!)
51530         ;;
51531     *)
51532         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
51533         ;;
51534     esac
51535 done
51536
51537 # Create the def file.
51538 rm -f ${D}defFile
51539 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
51540 dllFile="${D}{dllFile}.dll"
51541 if [ ! -z ${D}description ]; then
51542     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
51543 fi
51544 echo "EXPORTS" >> ${D}defFile
51545
51546 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
51547 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
51548
51549 # Checks if the export is ok or not.
51550 for word in ${D}exclude_symbols; do
51551     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
51552     mv ${D}{tmpdefFile}% ${D}tmpdefFile
51553 done
51554
51555
51556 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51557     sed "=" < ${D}tmpdefFile | \\
51558     sed '
51559       N
51560       : loop
51561       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
51562       t loop
51563     ' > ${D}{tmpdefFile}%
51564     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
51565 else
51566     rm -f ${D}{tmpdefFile}%
51567 fi
51568 cat ${D}tmpdefFile >> ${D}defFile
51569 rm -f ${D}tmpdefFile
51570
51571 # Do linking, create implib, and apply lxlite.
51572 gccCmdl="";
51573 for file in ${D}inputFiles ; do
51574     case ${D}file in
51575     *!)
51576         ;;
51577     *)
51578         gccCmdl="${D}gccCmdl ${D}file"
51579         ;;
51580     esac
51581 done
51582 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
51583 touch "${D}{outFile}.dll"
51584
51585 doCommand "emximp -o ${D}arcFile ${D}defFile"
51586 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
51587     add_flags="";
51588     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51589         add_flags="-ynd"
51590     fi
51591     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
51592 fi
51593 doCommand "emxomf -s -l ${D}arcFile"
51594
51595 # Successful exit.
51596 CleanUp 1
51597 exit 0
51598 EOF
51599
51600         chmod +x dllar.sh
51601       ;;
51602
51603       powerpc-apple-macos* | \
51604       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
51605       *-*-mirbsd* | \
51606       *-*-sunos4* | \
51607       *-*-osf* | \
51608       *-*-dgux5* | \
51609       *-*-sysv5* | \
51610       *-pc-msdosdjgpp )
51611               ;;
51612
51613       *)
51614         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51615 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51616    { (exit 1); exit 1; }; }
51617     esac
51618
51619     if test "x$PIC_FLAG" != "x" ; then
51620         PIC_FLAG="$PIC_FLAG -DPIC"
51621     fi
51622
51623     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51624         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51625     fi
51626     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51627         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51628     fi
51629
51630
51631
51632
51633
51634
51635
51636
51637
51638     USE_SOVERSION=0
51639     USE_SOVERLINUX=0
51640     USE_SOVERSOLARIS=0
51641     USE_SOVERCYGWIN=0
51642     USE_SOSYMLINKS=0
51643     USE_MACVERSION=0
51644     SONAME_FLAG=
51645
51646     case "${BAKEFILE_HOST}" in
51647       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
51648         if test "x$SUNCXX" = "xyes"; then
51649             SONAME_FLAG="-h "
51650         else
51651             SONAME_FLAG="-Wl,-soname,"
51652         fi
51653         USE_SOVERSION=1
51654         USE_SOVERLINUX=1
51655         USE_SOSYMLINKS=1
51656       ;;
51657
51658       *-*-solaris2* )
51659         SONAME_FLAG="-h "
51660         USE_SOVERSION=1
51661         USE_SOVERSOLARIS=1
51662         USE_SOSYMLINKS=1
51663       ;;
51664
51665       *-*-darwin* )
51666         USE_MACVERSION=1
51667         USE_SOVERSION=1
51668         USE_SOSYMLINKS=1
51669       ;;
51670
51671       *-*-cygwin* )
51672         USE_SOVERSION=1
51673         USE_SOVERCYGWIN=1
51674       ;;
51675     esac
51676
51677
51678
51679
51680
51681
51682
51683
51684
51685
51686     # Check whether --enable-dependency-tracking was given.
51687 if test "${enable_dependency_tracking+set}" = set; then
51688   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51689 fi
51690
51691
51692     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51693 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51694
51695     BK_DEPS=""
51696     if test "x$bk_use_trackdeps" = "xno" ; then
51697         DEPS_TRACKING=0
51698         { echo "$as_me:$LINENO: result: disabled" >&5
51699 echo "${ECHO_T}disabled" >&6; }
51700     else
51701         DEPS_TRACKING=1
51702
51703         if test "x$GCC" = "xyes"; then
51704             DEPSMODE=gcc
51705             case "${BAKEFILE_HOST}" in
51706                 *-*-darwin* )
51707                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51708                 ;;
51709                 * )
51710                     DEPSFLAG="-MMD"
51711                 ;;
51712             esac
51713             { echo "$as_me:$LINENO: result: gcc" >&5
51714 echo "${ECHO_T}gcc" >&6; }
51715         elif test "x$MWCC" = "xyes"; then
51716             DEPSMODE=mwcc
51717             DEPSFLAG="-MM"
51718             { echo "$as_me:$LINENO: result: mwcc" >&5
51719 echo "${ECHO_T}mwcc" >&6; }
51720         elif test "x$SUNCC" = "xyes"; then
51721             DEPSMODE=unixcc
51722             DEPSFLAG="-xM1"
51723             { echo "$as_me:$LINENO: result: Sun cc" >&5
51724 echo "${ECHO_T}Sun cc" >&6; }
51725         elif test "x$SGICC" = "xyes"; then
51726             DEPSMODE=unixcc
51727             DEPSFLAG="-M"
51728             { echo "$as_me:$LINENO: result: SGI cc" >&5
51729 echo "${ECHO_T}SGI cc" >&6; }
51730         elif test "x$HPCC" = "xyes"; then
51731             DEPSMODE=unixcc
51732             DEPSFLAG="+make"
51733             { echo "$as_me:$LINENO: result: HP cc" >&5
51734 echo "${ECHO_T}HP cc" >&6; }
51735         elif test "x$COMPAQCC" = "xyes"; then
51736             DEPSMODE=gcc
51737             DEPSFLAG="-MD"
51738             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51739 echo "${ECHO_T}Compaq cc" >&6; }
51740         else
51741             DEPS_TRACKING=0
51742             { echo "$as_me:$LINENO: result: none" >&5
51743 echo "${ECHO_T}none" >&6; }
51744         fi
51745
51746         if test $DEPS_TRACKING = 1 ; then
51747
51748 D='$'
51749 cat <<EOF >bk-deps
51750 #!/bin/sh
51751
51752 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51753 # script. It is used to track C/C++ files dependencies in portable way.
51754 #
51755 # Permission is given to use this file in any way.
51756
51757 DEPSMODE=${DEPSMODE}
51758 DEPSDIR=.deps
51759 DEPSFLAG="${DEPSFLAG}"
51760
51761 mkdir -p ${D}DEPSDIR
51762
51763 if test ${D}DEPSMODE = gcc ; then
51764     ${D}* ${D}{DEPSFLAG}
51765     status=${D}?
51766     if test ${D}{status} != 0 ; then
51767         exit ${D}{status}
51768     fi
51769     # move created file to the location we want it in:
51770     while test ${D}# -gt 0; do
51771         case "${D}1" in
51772             -o )
51773                 shift
51774                 objfile=${D}1
51775             ;;
51776             -* )
51777             ;;
51778             * )
51779                 srcfile=${D}1
51780             ;;
51781         esac
51782         shift
51783     done
51784     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51785     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51786     if test -f ${D}depfile ; then
51787         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51788         rm -f ${D}depfile
51789     else
51790         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51791         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
51792         if test ! -f ${D}depfile ; then
51793             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51794             depfile="${D}objfile.d"
51795         fi
51796         if test -f ${D}depfile ; then
51797             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51798             rm -f ${D}depfile
51799         fi
51800     fi
51801     exit 0
51802 elif test ${D}DEPSMODE = mwcc ; then
51803     ${D}* || exit ${D}?
51804     # Run mwcc again with -MM and redirect into the dep file we want
51805     # NOTE: We can't use shift here because we need ${D}* to be valid
51806     prevarg=
51807     for arg in ${D}* ; do
51808         if test "${D}prevarg" = "-o"; then
51809             objfile=${D}arg
51810         else
51811             case "${D}arg" in
51812                 -* )
51813                 ;;
51814                 * )
51815                     srcfile=${D}arg
51816                 ;;
51817             esac
51818         fi
51819         prevarg="${D}arg"
51820     done
51821     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
51822     exit 0
51823 elif test ${D}DEPSMODE = unixcc; then
51824     ${D}* || exit ${D}?
51825     # Run compiler again with deps flag and redirect into the dep file.
51826     # It doesn't work if the '-o FILE' option is used, but without it the
51827     # dependency file will contain the wrong name for the object. So it is
51828     # removed from the command line, and the dep file is fixed with sed.
51829     cmd=""
51830     while test ${D}# -gt 0; do
51831         case "${D}1" in
51832             -o )
51833                 shift
51834                 objfile=${D}1
51835             ;;
51836             * )
51837                 eval arg${D}#=\\${D}1
51838                 cmd="${D}cmd \\${D}arg${D}#"
51839             ;;
51840         esac
51841         shift
51842     done
51843     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
51844     exit 0
51845 else
51846     ${D}*
51847     exit ${D}?
51848 fi
51849 EOF
51850
51851             chmod +x bk-deps
51852                                     BK_DEPS="`pwd`/bk-deps"
51853         fi
51854     fi
51855
51856
51857
51858
51859
51860     case ${BAKEFILE_HOST} in
51861         *-*-cygwin* | *-*-mingw32* )
51862                         if test -n "$ac_tool_prefix"; then
51863   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51864 set dummy ${ac_tool_prefix}windres; ac_word=$2
51865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51867 if test "${ac_cv_prog_WINDRES+set}" = set; then
51868   echo $ECHO_N "(cached) $ECHO_C" >&6
51869 else
51870   if test -n "$WINDRES"; then
51871   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51872 else
51873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51874 for as_dir in $PATH
51875 do
51876   IFS=$as_save_IFS
51877   test -z "$as_dir" && as_dir=.
51878   for ac_exec_ext in '' $ac_executable_extensions; do
51879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51880     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51882     break 2
51883   fi
51884 done
51885 done
51886 IFS=$as_save_IFS
51887
51888 fi
51889 fi
51890 WINDRES=$ac_cv_prog_WINDRES
51891 if test -n "$WINDRES"; then
51892   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51893 echo "${ECHO_T}$WINDRES" >&6; }
51894 else
51895   { echo "$as_me:$LINENO: result: no" >&5
51896 echo "${ECHO_T}no" >&6; }
51897 fi
51898
51899
51900 fi
51901 if test -z "$ac_cv_prog_WINDRES"; then
51902   ac_ct_WINDRES=$WINDRES
51903   # Extract the first word of "windres", so it can be a program name with args.
51904 set dummy windres; ac_word=$2
51905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51907 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51908   echo $ECHO_N "(cached) $ECHO_C" >&6
51909 else
51910   if test -n "$ac_ct_WINDRES"; then
51911   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51912 else
51913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51914 for as_dir in $PATH
51915 do
51916   IFS=$as_save_IFS
51917   test -z "$as_dir" && as_dir=.
51918   for ac_exec_ext in '' $ac_executable_extensions; do
51919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51920     ac_cv_prog_ac_ct_WINDRES="windres"
51921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51922     break 2
51923   fi
51924 done
51925 done
51926 IFS=$as_save_IFS
51927
51928 fi
51929 fi
51930 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51931 if test -n "$ac_ct_WINDRES"; then
51932   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51933 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51934 else
51935   { echo "$as_me:$LINENO: result: no" >&5
51936 echo "${ECHO_T}no" >&6; }
51937 fi
51938
51939   if test "x$ac_ct_WINDRES" = x; then
51940     WINDRES=""
51941   else
51942     case $cross_compiling:$ac_tool_warned in
51943 yes:)
51944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51945 whose name does not start with the host triplet.  If you think this
51946 configuration is useful to you, please write to autoconf@gnu.org." >&5
51947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51948 whose name does not start with the host triplet.  If you think this
51949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51950 ac_tool_warned=yes ;;
51951 esac
51952     WINDRES=$ac_ct_WINDRES
51953   fi
51954 else
51955   WINDRES="$ac_cv_prog_WINDRES"
51956 fi
51957
51958          ;;
51959
51960       *-*-darwin* | powerpc-apple-macos* )
51961             # Extract the first word of "Rez", so it can be a program name with args.
51962 set dummy Rez; ac_word=$2
51963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51965 if test "${ac_cv_prog_REZ+set}" = set; then
51966   echo $ECHO_N "(cached) $ECHO_C" >&6
51967 else
51968   if test -n "$REZ"; then
51969   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51970 else
51971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51972 for as_dir in $PATH
51973 do
51974   IFS=$as_save_IFS
51975   test -z "$as_dir" && as_dir=.
51976   for ac_exec_ext in '' $ac_executable_extensions; do
51977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51978     ac_cv_prog_REZ="Rez"
51979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51980     break 2
51981   fi
51982 done
51983 done
51984 IFS=$as_save_IFS
51985
51986   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51987 fi
51988 fi
51989 REZ=$ac_cv_prog_REZ
51990 if test -n "$REZ"; then
51991   { echo "$as_me:$LINENO: result: $REZ" >&5
51992 echo "${ECHO_T}$REZ" >&6; }
51993 else
51994   { echo "$as_me:$LINENO: result: no" >&5
51995 echo "${ECHO_T}no" >&6; }
51996 fi
51997
51998
51999             # Extract the first word of "SetFile", so it can be a program name with args.
52000 set dummy SetFile; ac_word=$2
52001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52003 if test "${ac_cv_prog_SETFILE+set}" = set; then
52004   echo $ECHO_N "(cached) $ECHO_C" >&6
52005 else
52006   if test -n "$SETFILE"; then
52007   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
52008 else
52009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52010 for as_dir in $PATH
52011 do
52012   IFS=$as_save_IFS
52013   test -z "$as_dir" && as_dir=.
52014   for ac_exec_ext in '' $ac_executable_extensions; do
52015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52016     ac_cv_prog_SETFILE="SetFile"
52017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52018     break 2
52019   fi
52020 done
52021 done
52022 IFS=$as_save_IFS
52023
52024   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
52025 fi
52026 fi
52027 SETFILE=$ac_cv_prog_SETFILE
52028 if test -n "$SETFILE"; then
52029   { echo "$as_me:$LINENO: result: $SETFILE" >&5
52030 echo "${ECHO_T}$SETFILE" >&6; }
52031 else
52032   { echo "$as_me:$LINENO: result: no" >&5
52033 echo "${ECHO_T}no" >&6; }
52034 fi
52035
52036
52037         ;;
52038     esac
52039
52040
52041
52042
52043
52044
52045     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
52046
52047
52048 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
52049
52050
52051
52052     # Check whether --enable-precomp-headers was given.
52053 if test "${enable_precomp_headers+set}" = set; then
52054   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
52055 fi
52056
52057
52058     GCC_PCH=0
52059     ICC_PCH=0
52060     USE_PCH=0
52061     BK_MAKE_PCH=""
52062
52063     case ${BAKEFILE_HOST} in
52064         *-*-cygwin* )
52065                                                 bk_use_pch="no"
52066             ;;
52067     esac
52068
52069     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
52070         if test "x$GCC" = "xyes"; then
52071                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
52072 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
52073             cat >conftest.$ac_ext <<_ACEOF
52074 /* confdefs.h.  */
52075 _ACEOF
52076 cat confdefs.h >>conftest.$ac_ext
52077 cat >>conftest.$ac_ext <<_ACEOF
52078 /* end confdefs.h.  */
52079
52080 int
52081 main ()
52082 {
52083
52084                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
52085                         There is no PCH support
52086                     #endif
52087                     #if (__GNUC__ < 3)
52088                         There is no PCH support
52089                     #endif
52090                     #if (__GNUC__ == 3) && \
52091                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
52092                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
52093                        ( defined(__INTEL_COMPILER) )
52094                         There is no PCH support
52095                     #endif
52096
52097   ;
52098   return 0;
52099 }
52100 _ACEOF
52101 rm -f conftest.$ac_objext
52102 if { (ac_try="$ac_compile"
52103 case "(($ac_try" in
52104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52105   *) ac_try_echo=$ac_try;;
52106 esac
52107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52108   (eval "$ac_compile") 2>conftest.er1
52109   ac_status=$?
52110   grep -v '^ *+' conftest.er1 >conftest.err
52111   rm -f conftest.er1
52112   cat conftest.err >&5
52113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52114   (exit $ac_status); } && {
52115          test -z "$ac_c_werror_flag" ||
52116          test ! -s conftest.err
52117        } && test -s conftest.$ac_objext; then
52118
52119                     { echo "$as_me:$LINENO: result: yes" >&5
52120 echo "${ECHO_T}yes" >&6; }
52121                     GCC_PCH=1
52122
52123 else
52124   echo "$as_me: failed program was:" >&5
52125 sed 's/^/| /' conftest.$ac_ext >&5
52126
52127
52128                     cat >conftest.$ac_ext <<_ACEOF
52129 /* confdefs.h.  */
52130 _ACEOF
52131 cat confdefs.h >>conftest.$ac_ext
52132 cat >>conftest.$ac_ext <<_ACEOF
52133 /* end confdefs.h.  */
52134
52135 int
52136 main ()
52137 {
52138
52139                             #if !defined(__INTEL_COMPILER) || \
52140                                 (__INTEL_COMPILER < 800)
52141                                 There is no PCH support
52142                             #endif
52143
52144   ;
52145   return 0;
52146 }
52147 _ACEOF
52148 rm -f conftest.$ac_objext
52149 if { (ac_try="$ac_compile"
52150 case "(($ac_try" in
52151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52152   *) ac_try_echo=$ac_try;;
52153 esac
52154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52155   (eval "$ac_compile") 2>conftest.er1
52156   ac_status=$?
52157   grep -v '^ *+' conftest.er1 >conftest.err
52158   rm -f conftest.er1
52159   cat conftest.err >&5
52160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52161   (exit $ac_status); } && {
52162          test -z "$ac_c_werror_flag" ||
52163          test ! -s conftest.err
52164        } && test -s conftest.$ac_objext; then
52165
52166                             { echo "$as_me:$LINENO: result: yes" >&5
52167 echo "${ECHO_T}yes" >&6; }
52168                             ICC_PCH=1
52169
52170 else
52171   echo "$as_me: failed program was:" >&5
52172 sed 's/^/| /' conftest.$ac_ext >&5
52173
52174
52175                             { echo "$as_me:$LINENO: result: no" >&5
52176 echo "${ECHO_T}no" >&6; }
52177
52178 fi
52179
52180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52181
52182 fi
52183
52184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52185             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
52186                 USE_PCH=1
52187
52188 D='$'
52189 cat <<EOF >bk-make-pch
52190 #!/bin/sh
52191
52192 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
52193 # script. It is used to generated precompiled headers.
52194 #
52195 # Permission is given to use this file in any way.
52196
52197 outfile="${D}{1}"
52198 header="${D}{2}"
52199 shift
52200 shift
52201
52202 compiler=""
52203 headerfile=""
52204
52205 while test ${D}{#} -gt 0; do
52206     add_to_cmdline=1
52207     case "${D}{1}" in
52208         -I* )
52209             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
52210             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
52211                 headerfile="${D}{incdir}/${D}{header}"
52212             fi
52213         ;;
52214         -use-pch|-use_pch )
52215             shift
52216             add_to_cmdline=0
52217         ;;
52218     esac
52219     if test ${D}add_to_cmdline = 1 ; then
52220         compiler="${D}{compiler} ${D}{1}"
52221     fi
52222     shift
52223 done
52224
52225 if test "x${D}{headerfile}" = "x" ; then
52226     echo "error: can't find header ${D}{header} in include paths" >&2
52227 else
52228     if test -f ${D}{outfile} ; then
52229         rm -f ${D}{outfile}
52230     else
52231         mkdir -p \`dirname ${D}{outfile}\`
52232     fi
52233     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
52234     mkdir -p .deps
52235     if test "x${GCC_PCH}" = "x1" ; then
52236         # can do this because gcc is >= 3.4:
52237         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
52238     elif test "x${ICC_PCH}" = "x1" ; then
52239         filename=pch_gen-${D}${D}
52240         file=${D}{filename}.c
52241         dfile=${D}{filename}.d
52242         cat > ${D}file <<EOT
52243 #include "${D}header"
52244 EOT
52245         # using -MF icc complains about differing command lines in creation/use
52246         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
52247           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
52248           rm -f ${D}file ${D}dfile ${D}{filename}.o
52249     fi
52250     exit ${D}{?}
52251 fi
52252 EOF
52253
52254                 chmod +x bk-make-pch
52255                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
52256             fi
52257         fi
52258     fi
52259
52260
52261
52262
52263
52264     COND_BUILD_DEBUG="#"
52265     if test "x$BUILD" = "xdebug" ; then
52266         COND_BUILD_DEBUG=""
52267     fi
52268
52269     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
52270     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
52271         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
52272     fi
52273
52274     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
52275     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
52276         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
52277     fi
52278
52279     COND_BUILD_DEBUG_UNICODE_0="#"
52280     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
52281         COND_BUILD_DEBUG_UNICODE_0=""
52282     fi
52283
52284     COND_BUILD_DEBUG_UNICODE_1="#"
52285     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52286         COND_BUILD_DEBUG_UNICODE_1=""
52287     fi
52288
52289     COND_BUILD_RELEASE="#"
52290     if test "x$BUILD" = "xrelease" ; then
52291         COND_BUILD_RELEASE=""
52292     fi
52293
52294     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
52295     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52296         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
52297     fi
52298
52299     COND_BUILD_RELEASE_UNICODE_0="#"
52300     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52301         COND_BUILD_RELEASE_UNICODE_0=""
52302     fi
52303
52304     COND_BUILD_RELEASE_UNICODE_1="#"
52305     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52306         COND_BUILD_RELEASE_UNICODE_1=""
52307     fi
52308
52309     COND_DEBUG_FLAG_1="#"
52310     if test "x$DEBUG_FLAG" = "x1" ; then
52311         COND_DEBUG_FLAG_1=""
52312     fi
52313
52314     COND_DEBUG_INFO_0="#"
52315     if test "x$DEBUG_INFO" = "x0" ; then
52316         COND_DEBUG_INFO_0=""
52317     fi
52318
52319     COND_DEBUG_INFO_1="#"
52320     if test "x$DEBUG_INFO" = "x1" ; then
52321         COND_DEBUG_INFO_1=""
52322     fi
52323
52324     COND_DEPS_TRACKING_0="#"
52325     if test "x$DEPS_TRACKING" = "x0" ; then
52326         COND_DEPS_TRACKING_0=""
52327     fi
52328
52329     COND_DEPS_TRACKING_1="#"
52330     if test "x$DEPS_TRACKING" = "x1" ; then
52331         COND_DEPS_TRACKING_1=""
52332     fi
52333
52334     COND_GCC_PCH_1="#"
52335     if test "x$GCC_PCH" = "x1" ; then
52336         COND_GCC_PCH_1=""
52337     fi
52338
52339     COND_ICC_PCH_1="#"
52340     if test "x$ICC_PCH" = "x1" ; then
52341         COND_ICC_PCH_1=""
52342     fi
52343
52344     COND_MONOLITHIC_0="#"
52345     if test "x$MONOLITHIC" = "x0" ; then
52346         COND_MONOLITHIC_0=""
52347     fi
52348
52349     COND_MONOLITHIC_0_SHARED_0="#"
52350     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
52351         COND_MONOLITHIC_0_SHARED_0=""
52352     fi
52353
52354     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
52355     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
52356         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
52357     fi
52358
52359     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
52360     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
52361         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
52362     fi
52363
52364     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
52365     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52366         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
52367     fi
52368
52369     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
52370     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52371         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
52372     fi
52373
52374     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
52375     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52376         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
52377     fi
52378
52379     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
52380     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52381         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
52382     fi
52383
52384     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
52385     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
52386         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
52387     fi
52388
52389     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
52390     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52391         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
52392     fi
52393
52394     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
52395     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52396         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
52397     fi
52398
52399     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
52400     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52401         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
52402     fi
52403
52404     COND_MONOLITHIC_0_SHARED_1="#"
52405     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
52406         COND_MONOLITHIC_0_SHARED_1=""
52407     fi
52408
52409     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
52410     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
52411         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
52412     fi
52413
52414     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
52415     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
52416         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
52417     fi
52418
52419     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
52420     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52421         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
52422     fi
52423
52424     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
52425     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52426         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
52427     fi
52428
52429     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
52430     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52431         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
52432     fi
52433
52434     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
52435     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52436         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
52437     fi
52438
52439     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
52440     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
52441         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
52442     fi
52443
52444     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
52445     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
52446         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
52447     fi
52448
52449     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
52450     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
52451         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
52452     fi
52453
52454     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
52455     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52456         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
52457     fi
52458
52459     COND_MONOLITHIC_0_USE_AUI_1="#"
52460     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
52461         COND_MONOLITHIC_0_USE_AUI_1=""
52462     fi
52463
52464     COND_MONOLITHIC_0_USE_GUI_1="#"
52465     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
52466         COND_MONOLITHIC_0_USE_GUI_1=""
52467     fi
52468
52469     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
52470     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52471         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
52472     fi
52473
52474     COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1="#"
52475     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52476         COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1=""
52477     fi
52478
52479     COND_MONOLITHIC_0_USE_HTML_1="#"
52480     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
52481         COND_MONOLITHIC_0_USE_HTML_1=""
52482     fi
52483
52484     COND_MONOLITHIC_0_USE_MEDIA_1="#"
52485     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
52486         COND_MONOLITHIC_0_USE_MEDIA_1=""
52487     fi
52488
52489     COND_MONOLITHIC_0_USE_ODBC_1="#"
52490     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
52491         COND_MONOLITHIC_0_USE_ODBC_1=""
52492     fi
52493
52494     COND_MONOLITHIC_0_USE_QA_1="#"
52495     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
52496         COND_MONOLITHIC_0_USE_QA_1=""
52497     fi
52498
52499     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
52500     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52501         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
52502     fi
52503
52504     COND_MONOLITHIC_0_USE_STC_1="#"
52505     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
52506         COND_MONOLITHIC_0_USE_STC_1=""
52507     fi
52508
52509     COND_MONOLITHIC_0_USE_XRC_1="#"
52510     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
52511         COND_MONOLITHIC_0_USE_XRC_1=""
52512     fi
52513
52514     COND_MONOLITHIC_1="#"
52515     if test "x$MONOLITHIC" = "x1" ; then
52516         COND_MONOLITHIC_1=""
52517     fi
52518
52519     COND_MONOLITHIC_1_SHARED_0="#"
52520     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
52521         COND_MONOLITHIC_1_SHARED_0=""
52522     fi
52523
52524     COND_MONOLITHIC_1_SHARED_1="#"
52525     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
52526         COND_MONOLITHIC_1_SHARED_1=""
52527     fi
52528
52529     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
52530     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
52531         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
52532     fi
52533
52534     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
52535     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
52536         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
52537     fi
52538
52539     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
52540     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52541         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
52542     fi
52543
52544     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
52545     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52546         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
52547     fi
52548
52549     COND_PLATFORM_MACOSX_1="#"
52550     if test "x$PLATFORM_MACOSX" = "x1" ; then
52551         COND_PLATFORM_MACOSX_1=""
52552     fi
52553
52554     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
52555     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
52556         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
52557     fi
52558
52559     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
52560     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
52561         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
52562     fi
52563
52564     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
52565     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
52566         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
52567     fi
52568
52569     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
52570     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
52571         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
52572     fi
52573
52574     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
52575     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52576         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
52577     fi
52578
52579     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
52580     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
52581         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
52582     fi
52583
52584     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
52585     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
52586         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
52587     fi
52588
52589     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
52590     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
52591         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
52592     fi
52593
52594     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
52595     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52596         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
52597     fi
52598
52599     COND_PLATFORM_MACOS_1="#"
52600     if test "x$PLATFORM_MACOS" = "x1" ; then
52601         COND_PLATFORM_MACOS_1=""
52602     fi
52603
52604     COND_PLATFORM_MAC_1="#"
52605     if test "x$PLATFORM_MAC" = "x1" ; then
52606         COND_PLATFORM_MAC_1=""
52607     fi
52608
52609     COND_PLATFORM_MSDOS_0="#"
52610     if test "x$PLATFORM_MSDOS" = "x0" ; then
52611         COND_PLATFORM_MSDOS_0=""
52612     fi
52613
52614     COND_PLATFORM_MSDOS_1="#"
52615     if test "x$PLATFORM_MSDOS" = "x1" ; then
52616         COND_PLATFORM_MSDOS_1=""
52617     fi
52618
52619     COND_PLATFORM_OS2_1="#"
52620     if test "x$PLATFORM_OS2" = "x1" ; then
52621         COND_PLATFORM_OS2_1=""
52622     fi
52623
52624     COND_PLATFORM_UNIX_0="#"
52625     if test "x$PLATFORM_UNIX" = "x0" ; then
52626         COND_PLATFORM_UNIX_0=""
52627     fi
52628
52629     COND_PLATFORM_UNIX_1="#"
52630     if test "x$PLATFORM_UNIX" = "x1" ; then
52631         COND_PLATFORM_UNIX_1=""
52632     fi
52633
52634     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52635     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52636         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52637     fi
52638
52639     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52640     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52641         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52642     fi
52643
52644     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52645     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52646         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52647     fi
52648
52649     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52650     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52651         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52652     fi
52653
52654     COND_PLATFORM_WIN32_0="#"
52655     if test "x$PLATFORM_WIN32" = "x0" ; then
52656         COND_PLATFORM_WIN32_0=""
52657     fi
52658
52659     COND_PLATFORM_WIN32_1="#"
52660     if test "x$PLATFORM_WIN32" = "x1" ; then
52661         COND_PLATFORM_WIN32_1=""
52662     fi
52663
52664     COND_SHARED_0="#"
52665     if test "x$SHARED" = "x0" ; then
52666         COND_SHARED_0=""
52667     fi
52668
52669     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52670     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52671         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52672     fi
52673
52674     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52675     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52676         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52677     fi
52678
52679     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52680     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52681         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52682     fi
52683
52684     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52685     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52686         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52687     fi
52688
52689     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52690     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52691         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52692     fi
52693
52694     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52695     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52696         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52697     fi
52698
52699     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52700     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52701         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52702     fi
52703
52704     COND_SHARED_0_USE_STC_1="#"
52705     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52706         COND_SHARED_0_USE_STC_1=""
52707     fi
52708
52709     COND_SHARED_0_USE_XRC_1="#"
52710     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52711         COND_SHARED_0_USE_XRC_1=""
52712     fi
52713
52714     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
52715     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52716         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
52717     fi
52718
52719     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
52720     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
52721         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
52722     fi
52723
52724     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
52725     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52726         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
52727     fi
52728
52729     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
52730     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52731         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
52732     fi
52733
52734     COND_SHARED_1="#"
52735     if test "x$SHARED" = "x1" ; then
52736         COND_SHARED_1=""
52737     fi
52738
52739     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52740     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52741         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52742     fi
52743
52744     COND_SHARED_1_USE_XRC_1="#"
52745     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52746         COND_SHARED_1_USE_XRC_1=""
52747     fi
52748
52749     COND_TOOLKIT_="#"
52750     if test "x$TOOLKIT" = "x" ; then
52751         COND_TOOLKIT_=""
52752     fi
52753
52754     COND_TOOLKIT_COCOA="#"
52755     if test "x$TOOLKIT" = "xCOCOA" ; then
52756         COND_TOOLKIT_COCOA=""
52757     fi
52758
52759     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52760     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52761         COND_TOOLKIT_COCOA_USE_GUI_1=""
52762     fi
52763
52764     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52765     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52766         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52767     fi
52768
52769     COND_TOOLKIT_DFB="#"
52770     if test "x$TOOLKIT" = "xDFB" ; then
52771         COND_TOOLKIT_DFB=""
52772     fi
52773
52774     COND_TOOLKIT_DFB_USE_GUI_1="#"
52775     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52776         COND_TOOLKIT_DFB_USE_GUI_1=""
52777     fi
52778
52779     COND_TOOLKIT_GTK="#"
52780     if test "x$TOOLKIT" = "xGTK" ; then
52781         COND_TOOLKIT_GTK=""
52782     fi
52783
52784     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52785     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52786         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52787     fi
52788
52789     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52790     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52791         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52792     fi
52793
52794     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52795     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52796         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52797     fi
52798
52799     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52800     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52801         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52802     fi
52803
52804     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52805     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52806         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52807     fi
52808
52809     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52810     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52811         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52812     fi
52813
52814     COND_TOOLKIT_GTK_USE_GUI_1="#"
52815     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52816         COND_TOOLKIT_GTK_USE_GUI_1=""
52817     fi
52818
52819     COND_TOOLKIT_MAC="#"
52820     if test "x$TOOLKIT" = "xMAC" ; then
52821         COND_TOOLKIT_MAC=""
52822     fi
52823
52824     COND_TOOLKIT_MAC_USE_GUI_1="#"
52825     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52826         COND_TOOLKIT_MAC_USE_GUI_1=""
52827     fi
52828
52829     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
52830     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52831         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
52832     fi
52833
52834     COND_TOOLKIT_MGL="#"
52835     if test "x$TOOLKIT" = "xMGL" ; then
52836         COND_TOOLKIT_MGL=""
52837     fi
52838
52839     COND_TOOLKIT_MGL_USE_GUI_1="#"
52840     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52841         COND_TOOLKIT_MGL_USE_GUI_1=""
52842     fi
52843
52844     COND_TOOLKIT_MOTIF="#"
52845     if test "x$TOOLKIT" = "xMOTIF" ; then
52846         COND_TOOLKIT_MOTIF=""
52847     fi
52848
52849     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52850     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52851         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52852     fi
52853
52854     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52855     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52856         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52857     fi
52858
52859     COND_TOOLKIT_MSW="#"
52860     if test "x$TOOLKIT" = "xMSW" ; then
52861         COND_TOOLKIT_MSW=""
52862     fi
52863
52864     COND_TOOLKIT_MSW_USE_GUI_1="#"
52865     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52866         COND_TOOLKIT_MSW_USE_GUI_1=""
52867     fi
52868
52869     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52870     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52871         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52872     fi
52873
52874     COND_TOOLKIT_MSW_WXUNIV_0="#"
52875     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52876         COND_TOOLKIT_MSW_WXUNIV_0=""
52877     fi
52878
52879     COND_TOOLKIT_PM="#"
52880     if test "x$TOOLKIT" = "xPM" ; then
52881         COND_TOOLKIT_PM=""
52882     fi
52883
52884     COND_TOOLKIT_PM_USE_GUI_1="#"
52885     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52886         COND_TOOLKIT_PM_USE_GUI_1=""
52887     fi
52888
52889     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52890     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52891         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52892     fi
52893
52894     COND_TOOLKIT_WINCE="#"
52895     if test "x$TOOLKIT" = "xWINCE" ; then
52896         COND_TOOLKIT_WINCE=""
52897     fi
52898
52899     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52900     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52901         COND_TOOLKIT_WINCE_USE_GUI_1=""
52902     fi
52903
52904     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52905     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52906         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52907     fi
52908
52909     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52910     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52911         COND_TOOLKIT_WINCE_WXUNIV_0=""
52912     fi
52913
52914     COND_TOOLKIT_X11="#"
52915     if test "x$TOOLKIT" = "xX11" ; then
52916         COND_TOOLKIT_X11=""
52917     fi
52918
52919     COND_TOOLKIT_X11_USE_GUI_1="#"
52920     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52921         COND_TOOLKIT_X11_USE_GUI_1=""
52922     fi
52923
52924     COND_UNICODE_1="#"
52925     if test "x$UNICODE" = "x1" ; then
52926         COND_UNICODE_1=""
52927     fi
52928
52929     COND_USE_EXCEPTIONS_0="#"
52930     if test "x$USE_EXCEPTIONS" = "x0" ; then
52931         COND_USE_EXCEPTIONS_0=""
52932     fi
52933
52934     COND_USE_EXCEPTIONS_1="#"
52935     if test "x$USE_EXCEPTIONS" = "x1" ; then
52936         COND_USE_EXCEPTIONS_1=""
52937     fi
52938
52939     COND_USE_GUI_0="#"
52940     if test "x$USE_GUI" = "x0" ; then
52941         COND_USE_GUI_0=""
52942     fi
52943
52944     COND_USE_GUI_1="#"
52945     if test "x$USE_GUI" = "x1" ; then
52946         COND_USE_GUI_1=""
52947     fi
52948
52949     COND_USE_GUI_1_USE_OPENGL_1="#"
52950     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52951         COND_USE_GUI_1_USE_OPENGL_1=""
52952     fi
52953
52954     COND_USE_GUI_1_WXUNIV_0="#"
52955     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52956         COND_USE_GUI_1_WXUNIV_0=""
52957     fi
52958
52959     COND_USE_GUI_1_WXUNIV_1="#"
52960     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52961         COND_USE_GUI_1_WXUNIV_1=""
52962     fi
52963
52964     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52965     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52966         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52967     fi
52968
52969     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52970     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52971         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52972     fi
52973
52974     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52975     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52976         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52977     fi
52978
52979     COND_USE_ODBC_1="#"
52980     if test "x$USE_ODBC" = "x1" ; then
52981         COND_USE_ODBC_1=""
52982     fi
52983
52984     COND_USE_OPENGL_1="#"
52985     if test "x$USE_OPENGL" = "x1" ; then
52986         COND_USE_OPENGL_1=""
52987     fi
52988
52989     COND_USE_PCH_1="#"
52990     if test "x$USE_PCH" = "x1" ; then
52991         COND_USE_PCH_1=""
52992     fi
52993
52994     COND_USE_PLUGINS_0="#"
52995     if test "x$USE_PLUGINS" = "x0" ; then
52996         COND_USE_PLUGINS_0=""
52997     fi
52998
52999     COND_USE_RTTI_0="#"
53000     if test "x$USE_RTTI" = "x0" ; then
53001         COND_USE_RTTI_0=""
53002     fi
53003
53004     COND_USE_RTTI_1="#"
53005     if test "x$USE_RTTI" = "x1" ; then
53006         COND_USE_RTTI_1=""
53007     fi
53008
53009     COND_USE_SOSYMLINKS_1="#"
53010     if test "x$USE_SOSYMLINKS" = "x1" ; then
53011         COND_USE_SOSYMLINKS_1=""
53012     fi
53013
53014     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
53015     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
53016         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
53017     fi
53018
53019     COND_USE_SOVERLINUX_1="#"
53020     if test "x$USE_SOVERLINUX" = "x1" ; then
53021         COND_USE_SOVERLINUX_1=""
53022     fi
53023
53024     COND_USE_SOVERSION_0="#"
53025     if test "x$USE_SOVERSION" = "x0" ; then
53026         COND_USE_SOVERSION_0=""
53027     fi
53028
53029     COND_USE_SOVERSOLARIS_1="#"
53030     if test "x$USE_SOVERSOLARIS" = "x1" ; then
53031         COND_USE_SOVERSOLARIS_1=""
53032     fi
53033
53034     COND_USE_STC_1="#"
53035     if test "x$USE_STC" = "x1" ; then
53036         COND_USE_STC_1=""
53037     fi
53038
53039     COND_USE_THREADS_0="#"
53040     if test "x$USE_THREADS" = "x0" ; then
53041         COND_USE_THREADS_0=""
53042     fi
53043
53044     COND_USE_THREADS_1="#"
53045     if test "x$USE_THREADS" = "x1" ; then
53046         COND_USE_THREADS_1=""
53047     fi
53048
53049     COND_USE_XRC_1="#"
53050     if test "x$USE_XRC" = "x1" ; then
53051         COND_USE_XRC_1=""
53052     fi
53053
53054     COND_WINDOWS_IMPLIB_1="#"
53055     if test "x$WINDOWS_IMPLIB" = "x1" ; then
53056         COND_WINDOWS_IMPLIB_1=""
53057     fi
53058
53059     COND_WITH_PLUGIN_SDL_1="#"
53060     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
53061         COND_WITH_PLUGIN_SDL_1=""
53062     fi
53063
53064     COND_WXUNIV_0="#"
53065     if test "x$WXUNIV" = "x0" ; then
53066         COND_WXUNIV_0=""
53067     fi
53068
53069     COND_WXUNIV_1="#"
53070     if test "x$WXUNIV" = "x1" ; then
53071         COND_WXUNIV_1=""
53072     fi
53073
53074     COND_WXUSE_EXPAT_BUILTIN="#"
53075     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
53076         COND_WXUSE_EXPAT_BUILTIN=""
53077     fi
53078
53079     COND_WXUSE_LIBJPEG_BUILTIN="#"
53080     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
53081         COND_WXUSE_LIBJPEG_BUILTIN=""
53082     fi
53083
53084     COND_WXUSE_LIBPNG_BUILTIN="#"
53085     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53086         COND_WXUSE_LIBPNG_BUILTIN=""
53087     fi
53088
53089     COND_WXUSE_LIBTIFF_BUILTIN="#"
53090     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53091         COND_WXUSE_LIBTIFF_BUILTIN=""
53092     fi
53093
53094     COND_WXUSE_ODBC_BUILTIN="#"
53095     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
53096         COND_WXUSE_ODBC_BUILTIN=""
53097     fi
53098
53099     COND_WXUSE_REGEX_BUILTIN="#"
53100     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
53101         COND_WXUSE_REGEX_BUILTIN=""
53102     fi
53103
53104     COND_WXUSE_ZLIB_BUILTIN="#"
53105     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
53106         COND_WXUSE_ZLIB_BUILTIN=""
53107     fi
53108
53109
53110
53111     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
53112         { { 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
53113 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;}
53114    { (exit 1); exit 1; }; }
53115     fi
53116
53117     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
53118         { { 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
53119 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;}
53120    { (exit 1); exit 1; }; }
53121     fi
53122
53123
53124 if test $GCC_PCH = 1
53125 then
53126     if test "$wx_cv_gcc_pch_bug" = yes; then
53127         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
53128 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
53129         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
53130 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
53131         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
53132 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
53133     fi
53134
53135     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
53136 fi
53137
53138
53139 if test "$wxUSE_MAC" = 1 ; then
53140     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
53141         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
53142         mv temp bk-deps
53143         chmod +x bk-deps
53144     fi
53145 fi
53146
53147 if test "$wxUSE_SHARED" = "yes"; then
53148
53149                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
53150     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
53151
53152                 case "${host}" in
53153       *-pc-os2_emx | *-pc-os2-emx )
53154         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53155         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53156         cp -p ${srcdir}/src/os2/dllnames.sh .
53157         cp -p ${srcdir}/src/os2/dllar.sh .
53158       ;;
53159     esac
53160 else
53161
53162         EXE_LINKER="$CXX -o"
53163
53164 fi
53165 if test "$wxUSE_OMF" = "yes"; then
53166     case "${host}" in
53167       *-pc-os2_emx | *-pc-os2-emx )
53168         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
53169         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53170         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53171       ;;
53172     esac
53173 fi
53174
53175 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
53176
53177
53178 case "${host}" in
53179     *-*-solaris2* )
53180                         if "$GCC" = yes; then
53181             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
53182             LIBS=`echo $LIBS | sed 's/-mt//'`
53183             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
53184         fi
53185         ;;
53186
53187     *-*-linux* )
53188                         if test "x$SUNCXX" = xyes; then
53189             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
53190             LIBS=`echo $LIBS | sed 's/-pthread//'`
53191             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
53192         fi
53193         ;;
53194 esac
53195
53196 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
53197 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
53198
53199 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
53200
53201
53202
53203
53204
53205
53206
53207
53208
53209
53210
53211
53212
53213
53214
53215
53216
53217
53218
53219
53220
53221
53222
53223
53224
53225
53226
53227
53228
53229
53230
53231
53232
53233
53234
53235
53236
53237
53238
53239
53240
53241
53242
53243
53244
53245
53246
53247
53248
53249
53250
53251
53252
53253
53254
53255
53256
53257
53258
53259
53260
53261 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
53262 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
53263 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
53264 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
53265   echo $ECHO_N "(cached) $ECHO_C" >&6
53266 else
53267   cat >conftest.make <<\_ACEOF
53268 SHELL = /bin/sh
53269 all:
53270         @echo '@@@%%%=$(MAKE)=@@@%%%'
53271 _ACEOF
53272 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
53273 case `${MAKE-make} -f conftest.make 2>/dev/null` in
53274   *@@@%%%=?*=@@@%%%*)
53275     eval ac_cv_prog_make_${ac_make}_set=yes;;
53276   *)
53277     eval ac_cv_prog_make_${ac_make}_set=no;;
53278 esac
53279 rm -f conftest.make
53280 fi
53281 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
53282   { echo "$as_me:$LINENO: result: yes" >&5
53283 echo "${ECHO_T}yes" >&6; }
53284   SET_MAKE=
53285 else
53286   { echo "$as_me:$LINENO: result: no" >&5
53287 echo "${ECHO_T}no" >&6; }
53288   SET_MAKE="MAKE=${MAKE-make}"
53289 fi
53290
53291
53292
53293 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
53294
53295
53296 if test "$USE_WIN32" = 1; then
53297     ac_config_commands="$ac_config_commands
53298             rcdefs.h
53299         "
53300
53301 fi
53302
53303 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
53304
53305
53306 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
53307
53308
53309 if test "$wx_cv_version_script" = "yes"; then
53310     ac_config_files="$ac_config_files version-script"
53311
53312 fi
53313 ac_config_files="$ac_config_files Makefile"
53314
53315
53316 ac_config_commands="$ac_config_commands wx-config"
53317
53318
53319
53320 if test "$wxWITH_SUBDIRS" != "no"; then
53321 if test "$wxUSE_GUI" = "yes"; then
53322     SUBDIRS="samples demos utils"
53323 else         SUBDIRS="samples utils"
53324 fi
53325
53326
53327
53328 # Check whether --with-cppunit-prefix was given.
53329 if test "${with_cppunit_prefix+set}" = set; then
53330   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
53331 else
53332   cppunit_config_prefix=""
53333 fi
53334
53335
53336 # Check whether --with-cppunit-exec-prefix was given.
53337 if test "${with_cppunit_exec_prefix+set}" = set; then
53338   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
53339 else
53340   cppunit_config_exec_prefix=""
53341 fi
53342
53343
53344   if test x$cppunit_config_exec_prefix != x ; then
53345      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
53346      if test x${CPPUNIT_CONFIG+set} != xset ; then
53347         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
53348      fi
53349   fi
53350   if test x$cppunit_config_prefix != x ; then
53351      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
53352      if test x${CPPUNIT_CONFIG+set} != xset ; then
53353         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
53354      fi
53355   fi
53356
53357   # Extract the first word of "cppunit-config", so it can be a program name with args.
53358 set dummy cppunit-config; ac_word=$2
53359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53361 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
53362   echo $ECHO_N "(cached) $ECHO_C" >&6
53363 else
53364   case $CPPUNIT_CONFIG in
53365   [\\/]* | ?:[\\/]*)
53366   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
53367   ;;
53368   *)
53369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53370 for as_dir in $PATH
53371 do
53372   IFS=$as_save_IFS
53373   test -z "$as_dir" && as_dir=.
53374   for ac_exec_ext in '' $ac_executable_extensions; do
53375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53376     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53378     break 2
53379   fi
53380 done
53381 done
53382 IFS=$as_save_IFS
53383
53384   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
53385   ;;
53386 esac
53387 fi
53388 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
53389 if test -n "$CPPUNIT_CONFIG"; then
53390   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
53391 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
53392 else
53393   { echo "$as_me:$LINENO: result: no" >&5
53394 echo "${ECHO_T}no" >&6; }
53395 fi
53396
53397
53398   cppunit_version_min=1.8.0
53399
53400   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
53401 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
53402   no_cppunit=""
53403   if test "$CPPUNIT_CONFIG" = "no" ; then
53404     { echo "$as_me:$LINENO: result: no" >&5
53405 echo "${ECHO_T}no" >&6; }
53406     no_cppunit=yes
53407   else
53408     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
53409     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
53410     cppunit_version=`$CPPUNIT_CONFIG --version`
53411
53412     cppunit_major_version=`echo $cppunit_version | \
53413            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53414     cppunit_minor_version=`echo $cppunit_version | \
53415            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53416     cppunit_micro_version=`echo $cppunit_version | \
53417            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53418
53419     cppunit_major_min=`echo $cppunit_version_min | \
53420            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53421     cppunit_minor_min=`echo $cppunit_version_min | \
53422            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53423     cppunit_micro_min=`echo $cppunit_version_min | \
53424            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53425
53426     cppunit_version_proper=`expr \
53427         $cppunit_major_version \> $cppunit_major_min \| \
53428         $cppunit_major_version \= $cppunit_major_min \& \
53429         $cppunit_minor_version \> $cppunit_minor_min \| \
53430         $cppunit_major_version \= $cppunit_major_min \& \
53431         $cppunit_minor_version \= $cppunit_minor_min \& \
53432         $cppunit_micro_version \>= $cppunit_micro_min `
53433
53434     if test "$cppunit_version_proper" = "1" ; then
53435       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
53436 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
53437     else
53438       { echo "$as_me:$LINENO: result: no" >&5
53439 echo "${ECHO_T}no" >&6; }
53440       no_cppunit=yes
53441     fi
53442   fi
53443
53444   if test "x$no_cppunit" = x ; then
53445      SUBDIRS="$SUBDIRS tests"
53446   else
53447      CPPUNIT_CFLAGS=""
53448      CPPUNIT_LIBS=""
53449      :
53450   fi
53451
53452
53453
53454
53455
53456 for subdir in `echo $SUBDIRS`; do
53457     if test -d ${srcdir}/${subdir} ; then
53458         if test "$wxUSE_GUI" = "yes"; then
53459             if test ${subdir} = "samples"; then
53460                                                 makefiles="samples/Makefile.in $makefiles"
53461                 for sample in `echo $SAMPLES_SUBDIRS`; do
53462                     if test -d $srcdir/samples/$sample; then
53463                         makefiles="samples/$sample/Makefile.in $makefiles"
53464                     fi
53465                 done
53466             else
53467                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
53468                 eval "disabled=\$$disabled_var"
53469                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
53470                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
53471             fi
53472         else                                     if test ${subdir} = "samples"; then
53473                 makefiles="samples/Makefile.in samples/console/Makefile.in"
53474             elif test ${subdir} = "utils"; then
53475                 makefiles=""
53476                 for util in HelpGen tex2rtf ; do
53477                     if test -d $srcdir/utils/$util ; then
53478                         makefiles="utils/$util/Makefile.in \
53479                                    utils/$util/src/Makefile.in \
53480                                    $makefiles"
53481                     fi
53482                 done
53483             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53484             fi
53485         fi
53486
53487         for mkin in $makefiles ; do
53488             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
53489             ac_config_files="$ac_config_files $mk"
53490
53491         done
53492     fi
53493 done
53494 fi
53495 cat >confcache <<\_ACEOF
53496 # This file is a shell script that caches the results of configure
53497 # tests run on this system so they can be shared between configure
53498 # scripts and configure runs, see configure's option --config-cache.
53499 # It is not useful on other systems.  If it contains results you don't
53500 # want to keep, you may remove or edit it.
53501 #
53502 # config.status only pays attention to the cache file if you give it
53503 # the --recheck option to rerun configure.
53504 #
53505 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53506 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53507 # following values.
53508
53509 _ACEOF
53510
53511 # The following way of writing the cache mishandles newlines in values,
53512 # but we know of no workaround that is simple, portable, and efficient.
53513 # So, we kill variables containing newlines.
53514 # Ultrix sh set writes to stderr and can't be redirected directly,
53515 # and sets the high bit in the cache file unless we assign to the vars.
53516 (
53517   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53518     eval ac_val=\$$ac_var
53519     case $ac_val in #(
53520     *${as_nl}*)
53521       case $ac_var in #(
53522       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53523 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53524       esac
53525       case $ac_var in #(
53526       _ | IFS | as_nl) ;; #(
53527       *) $as_unset $ac_var ;;
53528       esac ;;
53529     esac
53530   done
53531
53532   (set) 2>&1 |
53533     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53534     *${as_nl}ac_space=\ *)
53535       # `set' does not quote correctly, so add quotes (double-quote
53536       # substitution turns \\\\ into \\, and sed turns \\ into \).
53537       sed -n \
53538         "s/'/'\\\\''/g;
53539           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53540       ;; #(
53541     *)
53542       # `set' quotes correctly as required by POSIX, so do not add quotes.
53543       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53544       ;;
53545     esac |
53546     sort
53547 ) |
53548   sed '
53549      /^ac_cv_env_/b end
53550      t clear
53551      :clear
53552      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53553      t end
53554      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53555      :end' >>confcache
53556 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53557   if test -w "$cache_file"; then
53558     test "x$cache_file" != "x/dev/null" &&
53559       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53560 echo "$as_me: updating cache $cache_file" >&6;}
53561     cat confcache >$cache_file
53562   else
53563     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53564 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53565   fi
53566 fi
53567 rm -f confcache
53568
53569 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53570 # Let make expand exec_prefix.
53571 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53572
53573 DEFS=-DHAVE_CONFIG_H
53574
53575 ac_libobjs=
53576 ac_ltlibobjs=
53577 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53578   # 1. Remove the extension, and $U if already installed.
53579   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53580   ac_i=`echo "$ac_i" | sed "$ac_script"`
53581   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53582   #    will be set to the directory where LIBOBJS objects are built.
53583   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53584   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53585 done
53586 LIBOBJS=$ac_libobjs
53587
53588 LTLIBOBJS=$ac_ltlibobjs
53589
53590
53591
53592 : ${CONFIG_STATUS=./config.status}
53593 ac_clean_files_save=$ac_clean_files
53594 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53595 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53596 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53597 cat >$CONFIG_STATUS <<_ACEOF
53598 #! $SHELL
53599 # Generated by $as_me.
53600 # Run this file to recreate the current configuration.
53601 # Compiler output produced by configure, useful for debugging
53602 # configure, is in config.log if it exists.
53603
53604 debug=false
53605 ac_cs_recheck=false
53606 ac_cs_silent=false
53607 SHELL=\${CONFIG_SHELL-$SHELL}
53608 _ACEOF
53609
53610 cat >>$CONFIG_STATUS <<\_ACEOF
53611 ## --------------------- ##
53612 ## M4sh Initialization.  ##
53613 ## --------------------- ##
53614
53615 # Be more Bourne compatible
53616 DUALCASE=1; export DUALCASE # for MKS sh
53617 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53618   emulate sh
53619   NULLCMD=:
53620   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53621   # is contrary to our usage.  Disable this feature.
53622   alias -g '${1+"$@"}'='"$@"'
53623   setopt NO_GLOB_SUBST
53624 else
53625   case `(set -o) 2>/dev/null` in
53626   *posix*) set -o posix ;;
53627 esac
53628
53629 fi
53630
53631
53632
53633
53634 # PATH needs CR
53635 # Avoid depending upon Character Ranges.
53636 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53637 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53638 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53639 as_cr_digits='0123456789'
53640 as_cr_alnum=$as_cr_Letters$as_cr_digits
53641
53642 # The user is always right.
53643 if test "${PATH_SEPARATOR+set}" != set; then
53644   echo "#! /bin/sh" >conf$$.sh
53645   echo  "exit 0"   >>conf$$.sh
53646   chmod +x conf$$.sh
53647   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53648     PATH_SEPARATOR=';'
53649   else
53650     PATH_SEPARATOR=:
53651   fi
53652   rm -f conf$$.sh
53653 fi
53654
53655 # Support unset when possible.
53656 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53657   as_unset=unset
53658 else
53659   as_unset=false
53660 fi
53661
53662
53663 # IFS
53664 # We need space, tab and new line, in precisely that order.  Quoting is
53665 # there to prevent editors from complaining about space-tab.
53666 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53667 # splitting by setting IFS to empty value.)
53668 as_nl='
53669 '
53670 IFS=" ""        $as_nl"
53671
53672 # Find who we are.  Look in the path if we contain no directory separator.
53673 case $0 in
53674   *[\\/]* ) as_myself=$0 ;;
53675   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53676 for as_dir in $PATH
53677 do
53678   IFS=$as_save_IFS
53679   test -z "$as_dir" && as_dir=.
53680   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53681 done
53682 IFS=$as_save_IFS
53683
53684      ;;
53685 esac
53686 # We did not find ourselves, most probably we were run as `sh COMMAND'
53687 # in which case we are not to be found in the path.
53688 if test "x$as_myself" = x; then
53689   as_myself=$0
53690 fi
53691 if test ! -f "$as_myself"; then
53692   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53693   { (exit 1); exit 1; }
53694 fi
53695
53696 # Work around bugs in pre-3.0 UWIN ksh.
53697 for as_var in ENV MAIL MAILPATH
53698 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53699 done
53700 PS1='$ '
53701 PS2='> '
53702 PS4='+ '
53703
53704 # NLS nuisances.
53705 for as_var in \
53706   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53707   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53708   LC_TELEPHONE LC_TIME
53709 do
53710   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53711     eval $as_var=C; export $as_var
53712   else
53713     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53714   fi
53715 done
53716
53717 # Required to use basename.
53718 if expr a : '\(a\)' >/dev/null 2>&1 &&
53719    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53720   as_expr=expr
53721 else
53722   as_expr=false
53723 fi
53724
53725 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53726   as_basename=basename
53727 else
53728   as_basename=false
53729 fi
53730
53731
53732 # Name of the executable.
53733 as_me=`$as_basename -- "$0" ||
53734 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53735          X"$0" : 'X\(//\)$' \| \
53736          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53737 echo X/"$0" |
53738     sed '/^.*\/\([^/][^/]*\)\/*$/{
53739             s//\1/
53740             q
53741           }
53742           /^X\/\(\/\/\)$/{
53743             s//\1/
53744             q
53745           }
53746           /^X\/\(\/\).*/{
53747             s//\1/
53748             q
53749           }
53750           s/.*/./; q'`
53751
53752 # CDPATH.
53753 $as_unset CDPATH
53754
53755
53756
53757   as_lineno_1=$LINENO
53758   as_lineno_2=$LINENO
53759   test "x$as_lineno_1" != "x$as_lineno_2" &&
53760   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53761
53762   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53763   # uniformly replaced by the line number.  The first 'sed' inserts a
53764   # line-number line after each line using $LINENO; the second 'sed'
53765   # does the real work.  The second script uses 'N' to pair each
53766   # line-number line with the line containing $LINENO, and appends
53767   # trailing '-' during substitution so that $LINENO is not a special
53768   # case at line end.
53769   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53770   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53771   # E. McMahon (1931-1989) for sed's syntax.  :-)
53772   sed -n '
53773     p
53774     /[$]LINENO/=
53775   ' <$as_myself |
53776     sed '
53777       s/[$]LINENO.*/&-/
53778       t lineno
53779       b
53780       :lineno
53781       N
53782       :loop
53783       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53784       t loop
53785       s/-\n.*//
53786     ' >$as_me.lineno &&
53787   chmod +x "$as_me.lineno" ||
53788     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53789    { (exit 1); exit 1; }; }
53790
53791   # Don't try to exec as it changes $[0], causing all sort of problems
53792   # (the dirname of $[0] is not the place where we might find the
53793   # original and so on.  Autoconf is especially sensitive to this).
53794   . "./$as_me.lineno"
53795   # Exit status is that of the last command.
53796   exit
53797 }
53798
53799
53800 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53801   as_dirname=dirname
53802 else
53803   as_dirname=false
53804 fi
53805
53806 ECHO_C= ECHO_N= ECHO_T=
53807 case `echo -n x` in
53808 -n*)
53809   case `echo 'x\c'` in
53810   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53811   *)   ECHO_C='\c';;
53812   esac;;
53813 *)
53814   ECHO_N='-n';;
53815 esac
53816
53817 if expr a : '\(a\)' >/dev/null 2>&1 &&
53818    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53819   as_expr=expr
53820 else
53821   as_expr=false
53822 fi
53823
53824 rm -f conf$$ conf$$.exe conf$$.file
53825 if test -d conf$$.dir; then
53826   rm -f conf$$.dir/conf$$.file
53827 else
53828   rm -f conf$$.dir
53829   mkdir conf$$.dir
53830 fi
53831 echo >conf$$.file
53832 if ln -s conf$$.file conf$$ 2>/dev/null; then
53833   as_ln_s='ln -s'
53834   # ... but there are two gotchas:
53835   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53836   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53837   # In both cases, we have to default to `cp -p'.
53838   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53839     as_ln_s='cp -p'
53840 elif ln conf$$.file conf$$ 2>/dev/null; then
53841   as_ln_s=ln
53842 else
53843   as_ln_s='cp -p'
53844 fi
53845 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53846 rmdir conf$$.dir 2>/dev/null
53847
53848 if mkdir -p . 2>/dev/null; then
53849   as_mkdir_p=:
53850 else
53851   test -d ./-p && rmdir ./-p
53852   as_mkdir_p=false
53853 fi
53854
53855 if test -x / >/dev/null 2>&1; then
53856   as_test_x='test -x'
53857 else
53858   if ls -dL / >/dev/null 2>&1; then
53859     as_ls_L_option=L
53860   else
53861     as_ls_L_option=
53862   fi
53863   as_test_x='
53864     eval sh -c '\''
53865       if test -d "$1"; then
53866         test -d "$1/.";
53867       else
53868         case $1 in
53869         -*)set "./$1";;
53870         esac;
53871         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53872         ???[sx]*):;;*)false;;esac;fi
53873     '\'' sh
53874   '
53875 fi
53876 as_executable_p=$as_test_x
53877
53878 # Sed expression to map a string onto a valid CPP name.
53879 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53880
53881 # Sed expression to map a string onto a valid variable name.
53882 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53883
53884
53885 exec 6>&1
53886
53887 # Save the log message, to keep $[0] and so on meaningful, and to
53888 # report actual input values of CONFIG_FILES etc. instead of their
53889 # values after options handling.
53890 ac_log="
53891 This file was extended by wxWidgets $as_me 2.9.0, which was
53892 generated by GNU Autoconf 2.61.  Invocation command line was
53893
53894   CONFIG_FILES    = $CONFIG_FILES
53895   CONFIG_HEADERS  = $CONFIG_HEADERS
53896   CONFIG_LINKS    = $CONFIG_LINKS
53897   CONFIG_COMMANDS = $CONFIG_COMMANDS
53898   $ $0 $@
53899
53900 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53901 "
53902
53903 _ACEOF
53904
53905 cat >>$CONFIG_STATUS <<_ACEOF
53906 # Files that config.status was made for.
53907 config_files="$ac_config_files"
53908 config_headers="$ac_config_headers"
53909 config_commands="$ac_config_commands"
53910
53911 _ACEOF
53912
53913 cat >>$CONFIG_STATUS <<\_ACEOF
53914 ac_cs_usage="\
53915 \`$as_me' instantiates files from templates according to the
53916 current configuration.
53917
53918 Usage: $0 [OPTIONS] [FILE]...
53919
53920   -h, --help       print this help, then exit
53921   -V, --version    print version number and configuration settings, then exit
53922   -q, --quiet      do not print progress messages
53923   -d, --debug      don't remove temporary files
53924       --recheck    update $as_me by reconfiguring in the same conditions
53925   --file=FILE[:TEMPLATE]
53926                    instantiate the configuration file FILE
53927   --header=FILE[:TEMPLATE]
53928                    instantiate the configuration header FILE
53929
53930 Configuration files:
53931 $config_files
53932
53933 Configuration headers:
53934 $config_headers
53935
53936 Configuration commands:
53937 $config_commands
53938
53939 Report bugs to <bug-autoconf@gnu.org>."
53940
53941 _ACEOF
53942 cat >>$CONFIG_STATUS <<_ACEOF
53943 ac_cs_version="\\
53944 wxWidgets config.status 2.9.0
53945 configured by $0, generated by GNU Autoconf 2.61,
53946   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53947
53948 Copyright (C) 2006 Free Software Foundation, Inc.
53949 This config.status script is free software; the Free Software Foundation
53950 gives unlimited permission to copy, distribute and modify it."
53951
53952 ac_pwd='$ac_pwd'
53953 srcdir='$srcdir'
53954 INSTALL='$INSTALL'
53955 _ACEOF
53956
53957 cat >>$CONFIG_STATUS <<\_ACEOF
53958 # If no file are specified by the user, then we need to provide default
53959 # value.  By we need to know if files were specified by the user.
53960 ac_need_defaults=:
53961 while test $# != 0
53962 do
53963   case $1 in
53964   --*=*)
53965     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53966     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53967     ac_shift=:
53968     ;;
53969   *)
53970     ac_option=$1
53971     ac_optarg=$2
53972     ac_shift=shift
53973     ;;
53974   esac
53975
53976   case $ac_option in
53977   # Handling of the options.
53978   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53979     ac_cs_recheck=: ;;
53980   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53981     echo "$ac_cs_version"; exit ;;
53982   --debug | --debu | --deb | --de | --d | -d )
53983     debug=: ;;
53984   --file | --fil | --fi | --f )
53985     $ac_shift
53986     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53987     ac_need_defaults=false;;
53988   --header | --heade | --head | --hea )
53989     $ac_shift
53990     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53991     ac_need_defaults=false;;
53992   --he | --h)
53993     # Conflict between --help and --header
53994     { echo "$as_me: error: ambiguous option: $1
53995 Try \`$0 --help' for more information." >&2
53996    { (exit 1); exit 1; }; };;
53997   --help | --hel | -h )
53998     echo "$ac_cs_usage"; exit ;;
53999   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
54000   | -silent | --silent | --silen | --sile | --sil | --si | --s)
54001     ac_cs_silent=: ;;
54002
54003   # This is an error.
54004   -*) { echo "$as_me: error: unrecognized option: $1
54005 Try \`$0 --help' for more information." >&2
54006    { (exit 1); exit 1; }; } ;;
54007
54008   *) ac_config_targets="$ac_config_targets $1"
54009      ac_need_defaults=false ;;
54010
54011   esac
54012   shift
54013 done
54014
54015 ac_configure_extra_args=
54016
54017 if $ac_cs_silent; then
54018   exec 6>/dev/null
54019   ac_configure_extra_args="$ac_configure_extra_args --silent"
54020 fi
54021
54022 _ACEOF
54023 cat >>$CONFIG_STATUS <<_ACEOF
54024 if \$ac_cs_recheck; then
54025   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
54026   CONFIG_SHELL=$SHELL
54027   export CONFIG_SHELL
54028   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
54029 fi
54030
54031 _ACEOF
54032 cat >>$CONFIG_STATUS <<\_ACEOF
54033 exec 5>>config.log
54034 {
54035   echo
54036   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
54037 ## Running $as_me. ##
54038 _ASBOX
54039   echo "$ac_log"
54040 } >&5
54041
54042 _ACEOF
54043 cat >>$CONFIG_STATUS <<_ACEOF
54044 #
54045 # INIT-COMMANDS
54046 #
54047
54048             CPP="$CPP"
54049             infile="$srcdir/include/wx/msw/genrcdefs.h"
54050             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
54051
54052
54053  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54054  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54055  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54056                      LN_S="${LN_S}"
54057
54058
54059 _ACEOF
54060
54061 cat >>$CONFIG_STATUS <<\_ACEOF
54062
54063 # Handling of arguments.
54064 for ac_config_target in $ac_config_targets
54065 do
54066   case $ac_config_target in
54067     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
54068     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
54069     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
54070     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
54071     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
54072     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
54073     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
54074     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
54075
54076   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
54077 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
54078    { (exit 1); exit 1; }; };;
54079   esac
54080 done
54081
54082
54083 # If the user did not use the arguments to specify the items to instantiate,
54084 # then the envvar interface is used.  Set only those that are not.
54085 # We use the long form for the default assignment because of an extremely
54086 # bizarre bug on SunOS 4.1.3.
54087 if $ac_need_defaults; then
54088   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54089   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54090   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
54091 fi
54092
54093 # Have a temporary directory for convenience.  Make it in the build tree
54094 # simply because there is no reason against having it here, and in addition,
54095 # creating and moving files from /tmp can sometimes cause problems.
54096 # Hook for its removal unless debugging.
54097 # Note that there is a small window in which the directory will not be cleaned:
54098 # after its creation but before its name has been assigned to `$tmp'.
54099 $debug ||
54100 {
54101   tmp=
54102   trap 'exit_status=$?
54103   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
54104 ' 0
54105   trap '{ (exit 1); exit 1; }' 1 2 13 15
54106 }
54107 # Create a (secure) tmp directory for tmp files.
54108
54109 {
54110   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
54111   test -n "$tmp" && test -d "$tmp"
54112 }  ||
54113 {
54114   tmp=./conf$$-$RANDOM
54115   (umask 077 && mkdir "$tmp")
54116 } ||
54117 {
54118    echo "$me: cannot create a temporary directory in ." >&2
54119    { (exit 1); exit 1; }
54120 }
54121
54122 #
54123 # Set up the sed scripts for CONFIG_FILES section.
54124 #
54125
54126 # No need to generate the scripts if there are no CONFIG_FILES.
54127 # This happens for instance when ./config.status config.h
54128 if test -n "$CONFIG_FILES"; then
54129
54130 _ACEOF
54131
54132
54133
54134 ac_delim='%!_!# '
54135 for ac_last_try in false false false false false :; do
54136   cat >conf$$subs.sed <<_ACEOF
54137 SHELL!$SHELL$ac_delim
54138 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
54139 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
54140 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
54141 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
54142 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
54143 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
54144 exec_prefix!$exec_prefix$ac_delim
54145 prefix!$prefix$ac_delim
54146 program_transform_name!$program_transform_name$ac_delim
54147 bindir!$bindir$ac_delim
54148 sbindir!$sbindir$ac_delim
54149 libexecdir!$libexecdir$ac_delim
54150 datarootdir!$datarootdir$ac_delim
54151 datadir!$datadir$ac_delim
54152 sysconfdir!$sysconfdir$ac_delim
54153 sharedstatedir!$sharedstatedir$ac_delim
54154 localstatedir!$localstatedir$ac_delim
54155 includedir!$includedir$ac_delim
54156 oldincludedir!$oldincludedir$ac_delim
54157 docdir!$docdir$ac_delim
54158 infodir!$infodir$ac_delim
54159 htmldir!$htmldir$ac_delim
54160 dvidir!$dvidir$ac_delim
54161 pdfdir!$pdfdir$ac_delim
54162 psdir!$psdir$ac_delim
54163 libdir!$libdir$ac_delim
54164 localedir!$localedir$ac_delim
54165 mandir!$mandir$ac_delim
54166 DEFS!$DEFS$ac_delim
54167 ECHO_C!$ECHO_C$ac_delim
54168 ECHO_N!$ECHO_N$ac_delim
54169 ECHO_T!$ECHO_T$ac_delim
54170 LIBS!$LIBS$ac_delim
54171 build_alias!$build_alias$ac_delim
54172 host_alias!$host_alias$ac_delim
54173 target_alias!$target_alias$ac_delim
54174 build!$build$ac_delim
54175 build_cpu!$build_cpu$ac_delim
54176 build_vendor!$build_vendor$ac_delim
54177 build_os!$build_os$ac_delim
54178 host!$host$ac_delim
54179 host_cpu!$host_cpu$ac_delim
54180 host_vendor!$host_vendor$ac_delim
54181 host_os!$host_os$ac_delim
54182 target!$target$ac_delim
54183 target_cpu!$target_cpu$ac_delim
54184 target_vendor!$target_vendor$ac_delim
54185 target_os!$target_os$ac_delim
54186 wx_top_builddir!$wx_top_builddir$ac_delim
54187 CC!$CC$ac_delim
54188 CFLAGS!$CFLAGS$ac_delim
54189 LDFLAGS!$LDFLAGS$ac_delim
54190 CPPFLAGS!$CPPFLAGS$ac_delim
54191 ac_ct_CC!$ac_ct_CC$ac_delim
54192 EXEEXT!$EXEEXT$ac_delim
54193 OBJEXT!$OBJEXT$ac_delim
54194 CPP!$CPP$ac_delim
54195 GREP!$GREP$ac_delim
54196 EGREP!$EGREP$ac_delim
54197 CXX!$CXX$ac_delim
54198 CXXFLAGS!$CXXFLAGS$ac_delim
54199 ac_ct_CXX!$ac_ct_CXX$ac_delim
54200 RANLIB!$RANLIB$ac_delim
54201 AR!$AR$ac_delim
54202 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
54203 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
54204 INSTALL_DATA!$INSTALL_DATA$ac_delim
54205 STRIP!$STRIP$ac_delim
54206 WINDRES!$WINDRES$ac_delim
54207 DLLTOOL!$DLLTOOL$ac_delim
54208 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
54209 LN_S!$LN_S$ac_delim
54210 subdirs!$subdirs$ac_delim
54211 PKG_CONFIG!$PKG_CONFIG$ac_delim
54212 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
54213 GTK_LIBS!$GTK_LIBS$ac_delim
54214 GTK_CONFIG!$GTK_CONFIG$ac_delim
54215 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
54216 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
54217 XMKMF!$XMKMF$ac_delim
54218 X_CFLAGS!$X_CFLAGS$ac_delim
54219 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
54220 X_LIBS!$X_LIBS$ac_delim
54221 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
54222 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
54223 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
54224 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
54225 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
54226 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
54227 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
54228 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
54229 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
54230 REZ!$REZ$ac_delim
54231 DEREZ!$DEREZ$ac_delim
54232 SETFILE!$SETFILE$ac_delim
54233 LIBICONV!$LIBICONV$ac_delim
54234 _ACEOF
54235
54236   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54237     break
54238   elif $ac_last_try; then
54239     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54240 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54241    { (exit 1); exit 1; }; }
54242   else
54243     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54244   fi
54245 done
54246
54247 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54248 if test -n "$ac_eof"; then
54249   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54250   ac_eof=`expr $ac_eof + 1`
54251 fi
54252
54253 cat >>$CONFIG_STATUS <<_ACEOF
54254 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
54255 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54256 _ACEOF
54257 sed '
54258 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54259 s/^/s,@/; s/!/@,|#_!!_#|/
54260 :n
54261 t n
54262 s/'"$ac_delim"'$/,g/; t
54263 s/$/\\/; p
54264 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54265 ' >>$CONFIG_STATUS <conf$$subs.sed
54266 rm -f conf$$subs.sed
54267 cat >>$CONFIG_STATUS <<_ACEOF
54268 CEOF$ac_eof
54269 _ACEOF
54270
54271
54272 ac_delim='%!_!# '
54273 for ac_last_try in false false false false false :; do
54274   cat >conf$$subs.sed <<_ACEOF
54275 SDL_CONFIG!$SDL_CONFIG$ac_delim
54276 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
54277 SDL_LIBS!$SDL_LIBS$ac_delim
54278 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
54279 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
54280 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
54281 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
54282 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
54283 HILDON_LIBS!$HILDON_LIBS$ac_delim
54284 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
54285 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
54286 GST_CFLAGS!$GST_CFLAGS$ac_delim
54287 GST_LIBS!$GST_LIBS$ac_delim
54288 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
54289 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
54290 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
54291 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
54292 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
54293 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
54294 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
54295 wxUSE_ODBC!$wxUSE_ODBC$ac_delim
54296 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
54297 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
54298 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
54299 VENDOR!$VENDOR$ac_delim
54300 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
54301 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
54302 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
54303 WXUNIV!$WXUNIV$ac_delim
54304 MONOLITHIC!$MONOLITHIC$ac_delim
54305 USE_PLUGINS!$USE_PLUGINS$ac_delim
54306 CXXWARNINGS!$CXXWARNINGS$ac_delim
54307 EXTRALIBS!$EXTRALIBS$ac_delim
54308 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
54309 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
54310 EXTRALIBS_ODBC!$EXTRALIBS_ODBC$ac_delim
54311 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
54312 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
54313 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
54314 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
54315 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
54316 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
54317 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
54318 UNICODE!$UNICODE$ac_delim
54319 BUILD!$BUILD$ac_delim
54320 DEBUG_INFO!$DEBUG_INFO$ac_delim
54321 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
54322 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
54323 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
54324 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
54325 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
54326 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
54327 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
54328 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
54329 SET_MAKE!$SET_MAKE$ac_delim
54330 MAKE_SET!$MAKE_SET$ac_delim
54331 AROPTIONS!$AROPTIONS$ac_delim
54332 NM!$NM$ac_delim
54333 INSTALL_DIR!$INSTALL_DIR$ac_delim
54334 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
54335 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
54336 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
54337 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
54338 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
54339 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
54340 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
54341 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
54342 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
54343 SO_SUFFIX!$SO_SUFFIX$ac_delim
54344 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
54345 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
54346 LIBPREFIX!$LIBPREFIX$ac_delim
54347 LIBEXT!$LIBEXT$ac_delim
54348 DLLPREFIX!$DLLPREFIX$ac_delim
54349 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
54350 dlldir!$dlldir$ac_delim
54351 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
54352 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
54353 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
54354 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
54355 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
54356 PIC_FLAG!$PIC_FLAG$ac_delim
54357 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
54358 USE_SOVERSION!$USE_SOVERSION$ac_delim
54359 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
54360 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
54361 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
54362 USE_MACVERSION!$USE_MACVERSION$ac_delim
54363 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
54364 SONAME_FLAG!$SONAME_FLAG$ac_delim
54365 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
54366 BK_DEPS!$BK_DEPS$ac_delim
54367 GCC_PCH!$GCC_PCH$ac_delim
54368 ICC_PCH!$ICC_PCH$ac_delim
54369 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
54370 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
54371 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
54372 _ACEOF
54373
54374   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54375     break
54376   elif $ac_last_try; then
54377     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54378 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54379    { (exit 1); exit 1; }; }
54380   else
54381     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54382   fi
54383 done
54384
54385 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54386 if test -n "$ac_eof"; then
54387   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54388   ac_eof=`expr $ac_eof + 1`
54389 fi
54390
54391 cat >>$CONFIG_STATUS <<_ACEOF
54392 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
54393 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54394 _ACEOF
54395 sed '
54396 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54397 s/^/s,@/; s/!/@,|#_!!_#|/
54398 :n
54399 t n
54400 s/'"$ac_delim"'$/,g/; t
54401 s/$/\\/; p
54402 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54403 ' >>$CONFIG_STATUS <conf$$subs.sed
54404 rm -f conf$$subs.sed
54405 cat >>$CONFIG_STATUS <<_ACEOF
54406 CEOF$ac_eof
54407 _ACEOF
54408
54409
54410 ac_delim='%!_!# '
54411 for ac_last_try in false false false false false :; do
54412   cat >conf$$subs.sed <<_ACEOF
54413 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
54414 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
54415 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
54416 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
54417 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
54418 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
54419 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
54420 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
54421 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
54422 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
54423 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
54424 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
54425 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
54426 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
54427 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
54428 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
54429 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
54430 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
54431 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
54432 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54433 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1$ac_delim
54434 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
54435 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1$ac_delim
54436 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
54437 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
54438 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
54439 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
54440 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
54441 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
54442 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
54443 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
54444 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1$ac_delim
54445 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
54446 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1$ac_delim
54447 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
54448 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54449 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54450 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54451 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54452 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54453 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1$ac_delim
54454 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54455 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54456 COND_MONOLITHIC_0_USE_ODBC_1!$COND_MONOLITHIC_0_USE_ODBC_1$ac_delim
54457 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54458 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54459 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54460 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54461 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54462 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54463 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54464 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54465 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54466 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54467 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54468 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54469 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
54470 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
54471 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
54472 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
54473 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
54474 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
54475 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
54476 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54477 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54478 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54479 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54480 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54481 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54482 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54483 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54484 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54485 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54486 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54487 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54488 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54489 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54490 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54491 COND_SHARED_0!$COND_SHARED_0$ac_delim
54492 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54493 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54494 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54495 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54496 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54497 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54498 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54499 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54500 COND_SHARED_0_USE_XRC_1!$COND_SHARED_0_USE_XRC_1$ac_delim
54501 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
54502 COND_SHARED_0_WXUSE_ODBC_BUILTIN!$COND_SHARED_0_WXUSE_ODBC_BUILTIN$ac_delim
54503 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
54504 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
54505 COND_SHARED_1!$COND_SHARED_1$ac_delim
54506 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54507 COND_SHARED_1_USE_XRC_1!$COND_SHARED_1_USE_XRC_1$ac_delim
54508 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54509 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54510 _ACEOF
54511
54512   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54513     break
54514   elif $ac_last_try; then
54515     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54516 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54517    { (exit 1); exit 1; }; }
54518   else
54519     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54520   fi
54521 done
54522
54523 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54524 if test -n "$ac_eof"; then
54525   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54526   ac_eof=`expr $ac_eof + 1`
54527 fi
54528
54529 cat >>$CONFIG_STATUS <<_ACEOF
54530 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54531 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54532 _ACEOF
54533 sed '
54534 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54535 s/^/s,@/; s/!/@,|#_!!_#|/
54536 :n
54537 t n
54538 s/'"$ac_delim"'$/,g/; t
54539 s/$/\\/; p
54540 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54541 ' >>$CONFIG_STATUS <conf$$subs.sed
54542 rm -f conf$$subs.sed
54543 cat >>$CONFIG_STATUS <<_ACEOF
54544 CEOF$ac_eof
54545 _ACEOF
54546
54547
54548 ac_delim='%!_!# '
54549 for ac_last_try in false false false false false :; do
54550   cat >conf$$subs.sed <<_ACEOF
54551 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54552 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54553 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54554 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54555 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54556 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54557 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54558 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54559 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54560 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54561 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54562 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54563 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54564 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
54565 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
54566 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54567 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54568 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54569 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54570 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54571 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54572 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54573 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54574 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54575 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54576 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54577 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54578 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54579 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54580 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54581 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54582 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54583 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54584 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54585 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54586 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54587 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54588 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54589 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54590 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54591 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54592 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54593 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54594 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54595 COND_USE_ODBC_1!$COND_USE_ODBC_1$ac_delim
54596 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54597 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54598 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54599 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54600 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54601 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
54602 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54603 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54604 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54605 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54606 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54607 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54608 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54609 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54610 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54611 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54612 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54613 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54614 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54615 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54616 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54617 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54618 COND_WXUSE_ODBC_BUILTIN!$COND_WXUSE_ODBC_BUILTIN$ac_delim
54619 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54620 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54621 SHARED!$SHARED$ac_delim
54622 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54623 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54624 USE_GUI!$USE_GUI$ac_delim
54625 AFMINSTALL!$AFMINSTALL$ac_delim
54626 WIN32INSTALL!$WIN32INSTALL$ac_delim
54627 TOOLKIT!$TOOLKIT$ac_delim
54628 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54629 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54630 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54631 cross_compiling!$cross_compiling$ac_delim
54632 WIDGET_SET!$WIDGET_SET$ac_delim
54633 WX_RELEASE!$WX_RELEASE$ac_delim
54634 WX_VERSION!$WX_VERSION$ac_delim
54635 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54636 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54637 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
54638 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54639 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54640 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54641 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54642 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54643 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54644 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54645 EXE_LINKER!$EXE_LINKER$ac_delim
54646 GUIDIST!$GUIDIST$ac_delim
54647 DISTDIR!$DISTDIR$ac_delim
54648 _ACEOF
54649
54650   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54651     break
54652   elif $ac_last_try; then
54653     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54654 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54655    { (exit 1); exit 1; }; }
54656   else
54657     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54658   fi
54659 done
54660
54661 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54662 if test -n "$ac_eof"; then
54663   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54664   ac_eof=`expr $ac_eof + 1`
54665 fi
54666
54667 cat >>$CONFIG_STATUS <<_ACEOF
54668 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54670 _ACEOF
54671 sed '
54672 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54673 s/^/s,@/; s/!/@,|#_!!_#|/
54674 :n
54675 t n
54676 s/'"$ac_delim"'$/,g/; t
54677 s/$/\\/; p
54678 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54679 ' >>$CONFIG_STATUS <conf$$subs.sed
54680 rm -f conf$$subs.sed
54681 cat >>$CONFIG_STATUS <<_ACEOF
54682 CEOF$ac_eof
54683 _ACEOF
54684
54685
54686 ac_delim='%!_!# '
54687 for ac_last_try in false false false false false :; do
54688   cat >conf$$subs.sed <<_ACEOF
54689 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54690 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54691 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54692 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54693 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54694 RESCOMP!$RESCOMP$ac_delim
54695 RESFLAGS!$RESFLAGS$ac_delim
54696 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54697 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54698 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54699 LIBWXMACRES!$LIBWXMACRES$ac_delim
54700 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54701 MACSETFILE!$MACSETFILE$ac_delim
54702 GCC!$GCC$ac_delim
54703 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54704 LIBOBJS!$LIBOBJS$ac_delim
54705 LTLIBOBJS!$LTLIBOBJS$ac_delim
54706 _ACEOF
54707
54708   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
54709     break
54710   elif $ac_last_try; then
54711     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54712 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54713    { (exit 1); exit 1; }; }
54714   else
54715     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54716   fi
54717 done
54718
54719 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54720 if test -n "$ac_eof"; then
54721   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54722   ac_eof=`expr $ac_eof + 1`
54723 fi
54724
54725 cat >>$CONFIG_STATUS <<_ACEOF
54726 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54728 _ACEOF
54729 sed '
54730 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54731 s/^/s,@/; s/!/@,|#_!!_#|/
54732 :n
54733 t n
54734 s/'"$ac_delim"'$/,g/; t
54735 s/$/\\/; p
54736 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54737 ' >>$CONFIG_STATUS <conf$$subs.sed
54738 rm -f conf$$subs.sed
54739 cat >>$CONFIG_STATUS <<_ACEOF
54740 :end
54741 s/|#_!!_#|//g
54742 CEOF$ac_eof
54743 _ACEOF
54744
54745
54746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54748 # trailing colons and then remove the whole line if VPATH becomes empty
54749 # (actually we leave an empty line to preserve line numbers).
54750 if test "x$srcdir" = x.; then
54751   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54752 s/:*\$(srcdir):*/:/
54753 s/:*\${srcdir}:*/:/
54754 s/:*@srcdir@:*/:/
54755 s/^\([^=]*=[     ]*\):*/\1/
54756 s/:*$//
54757 s/^[^=]*=[       ]*$//
54758 }'
54759 fi
54760
54761 cat >>$CONFIG_STATUS <<\_ACEOF
54762 fi # test -n "$CONFIG_FILES"
54763
54764
54765 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54766 do
54767   case $ac_tag in
54768   :[FHLC]) ac_mode=$ac_tag; continue;;
54769   esac
54770   case $ac_mode$ac_tag in
54771   :[FHL]*:*);;
54772   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54773 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54774    { (exit 1); exit 1; }; };;
54775   :[FH]-) ac_tag=-:-;;
54776   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54777   esac
54778   ac_save_IFS=$IFS
54779   IFS=:
54780   set x $ac_tag
54781   IFS=$ac_save_IFS
54782   shift
54783   ac_file=$1
54784   shift
54785
54786   case $ac_mode in
54787   :L) ac_source=$1;;
54788   :[FH])
54789     ac_file_inputs=
54790     for ac_f
54791     do
54792       case $ac_f in
54793       -) ac_f="$tmp/stdin";;
54794       *) # Look for the file first in the build tree, then in the source tree
54795          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54796          # because $ac_f cannot contain `:'.
54797          test -f "$ac_f" ||
54798            case $ac_f in
54799            [\\/$]*) false;;
54800            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54801            esac ||
54802            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54803 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54804    { (exit 1); exit 1; }; };;
54805       esac
54806       ac_file_inputs="$ac_file_inputs $ac_f"
54807     done
54808
54809     # Let's still pretend it is `configure' which instantiates (i.e., don't
54810     # use $as_me), people would be surprised to read:
54811     #    /* config.h.  Generated by config.status.  */
54812     configure_input="Generated from "`IFS=:
54813           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54814     if test x"$ac_file" != x-; then
54815       configure_input="$ac_file.  $configure_input"
54816       { echo "$as_me:$LINENO: creating $ac_file" >&5
54817 echo "$as_me: creating $ac_file" >&6;}
54818     fi
54819
54820     case $ac_tag in
54821     *:-:* | *:-) cat >"$tmp/stdin";;
54822     esac
54823     ;;
54824   esac
54825
54826   ac_dir=`$as_dirname -- "$ac_file" ||
54827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54828          X"$ac_file" : 'X\(//\)[^/]' \| \
54829          X"$ac_file" : 'X\(//\)$' \| \
54830          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54831 echo X"$ac_file" |
54832     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54833             s//\1/
54834             q
54835           }
54836           /^X\(\/\/\)[^/].*/{
54837             s//\1/
54838             q
54839           }
54840           /^X\(\/\/\)$/{
54841             s//\1/
54842             q
54843           }
54844           /^X\(\/\).*/{
54845             s//\1/
54846             q
54847           }
54848           s/.*/./; q'`
54849   { as_dir="$ac_dir"
54850   case $as_dir in #(
54851   -*) as_dir=./$as_dir;;
54852   esac
54853   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54854     as_dirs=
54855     while :; do
54856       case $as_dir in #(
54857       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54858       *) as_qdir=$as_dir;;
54859       esac
54860       as_dirs="'$as_qdir' $as_dirs"
54861       as_dir=`$as_dirname -- "$as_dir" ||
54862 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54863          X"$as_dir" : 'X\(//\)[^/]' \| \
54864          X"$as_dir" : 'X\(//\)$' \| \
54865          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54866 echo X"$as_dir" |
54867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54868             s//\1/
54869             q
54870           }
54871           /^X\(\/\/\)[^/].*/{
54872             s//\1/
54873             q
54874           }
54875           /^X\(\/\/\)$/{
54876             s//\1/
54877             q
54878           }
54879           /^X\(\/\).*/{
54880             s//\1/
54881             q
54882           }
54883           s/.*/./; q'`
54884       test -d "$as_dir" && break
54885     done
54886     test -z "$as_dirs" || eval "mkdir $as_dirs"
54887   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54888 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54889    { (exit 1); exit 1; }; }; }
54890   ac_builddir=.
54891
54892 case "$ac_dir" in
54893 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54894 *)
54895   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54896   # A ".." for each directory in $ac_dir_suffix.
54897   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54898   case $ac_top_builddir_sub in
54899   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54900   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54901   esac ;;
54902 esac
54903 ac_abs_top_builddir=$ac_pwd
54904 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54905 # for backward compatibility:
54906 ac_top_builddir=$ac_top_build_prefix
54907
54908 case $srcdir in
54909   .)  # We are building in place.
54910     ac_srcdir=.
54911     ac_top_srcdir=$ac_top_builddir_sub
54912     ac_abs_top_srcdir=$ac_pwd ;;
54913   [\\/]* | ?:[\\/]* )  # Absolute name.
54914     ac_srcdir=$srcdir$ac_dir_suffix;
54915     ac_top_srcdir=$srcdir
54916     ac_abs_top_srcdir=$srcdir ;;
54917   *) # Relative name.
54918     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54919     ac_top_srcdir=$ac_top_build_prefix$srcdir
54920     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54921 esac
54922 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54923
54924
54925   case $ac_mode in
54926   :F)
54927   #
54928   # CONFIG_FILE
54929   #
54930
54931   case $INSTALL in
54932   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54933   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54934   esac
54935 _ACEOF
54936
54937 cat >>$CONFIG_STATUS <<\_ACEOF
54938 # If the template does not know about datarootdir, expand it.
54939 # FIXME: This hack should be removed a few years after 2.60.
54940 ac_datarootdir_hack=; ac_datarootdir_seen=
54941
54942 case `sed -n '/datarootdir/ {
54943   p
54944   q
54945 }
54946 /@datadir@/p
54947 /@docdir@/p
54948 /@infodir@/p
54949 /@localedir@/p
54950 /@mandir@/p
54951 ' $ac_file_inputs` in
54952 *datarootdir*) ac_datarootdir_seen=yes;;
54953 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54954   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54955 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54956 _ACEOF
54957 cat >>$CONFIG_STATUS <<_ACEOF
54958   ac_datarootdir_hack='
54959   s&@datadir@&$datadir&g
54960   s&@docdir@&$docdir&g
54961   s&@infodir@&$infodir&g
54962   s&@localedir@&$localedir&g
54963   s&@mandir@&$mandir&g
54964     s&\\\${datarootdir}&$datarootdir&g' ;;
54965 esac
54966 _ACEOF
54967
54968 # Neutralize VPATH when `$srcdir' = `.'.
54969 # Shell code in configure.ac might set extrasub.
54970 # FIXME: do we really want to maintain this feature?
54971 cat >>$CONFIG_STATUS <<_ACEOF
54972   sed "$ac_vpsub
54973 $extrasub
54974 _ACEOF
54975 cat >>$CONFIG_STATUS <<\_ACEOF
54976 :t
54977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54978 s&@configure_input@&$configure_input&;t t
54979 s&@top_builddir@&$ac_top_builddir_sub&;t t
54980 s&@srcdir@&$ac_srcdir&;t t
54981 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54982 s&@top_srcdir@&$ac_top_srcdir&;t t
54983 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54984 s&@builddir@&$ac_builddir&;t t
54985 s&@abs_builddir@&$ac_abs_builddir&;t t
54986 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54987 s&@INSTALL@&$ac_INSTALL&;t t
54988 $ac_datarootdir_hack
54989 " $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
54990
54991 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54992   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54993   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54994   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54995 which seems to be undefined.  Please make sure it is defined." >&5
54996 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54997 which seems to be undefined.  Please make sure it is defined." >&2;}
54998
54999   rm -f "$tmp/stdin"
55000   case $ac_file in
55001   -) cat "$tmp/out"; rm -f "$tmp/out";;
55002   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
55003   esac
55004  ;;
55005   :H)
55006   #
55007   # CONFIG_HEADER
55008   #
55009 _ACEOF
55010
55011 # Transform confdefs.h into a sed script `conftest.defines', that
55012 # substitutes the proper values into config.h.in to produce config.h.
55013 rm -f conftest.defines conftest.tail
55014 # First, append a space to every undef/define line, to ease matching.
55015 echo 's/$/ /' >conftest.defines
55016 # Then, protect against being on the right side of a sed subst, or in
55017 # an unquoted here document, in config.status.  If some macros were
55018 # called several times there might be several #defines for the same
55019 # symbol, which is useless.  But do not sort them, since the last
55020 # AC_DEFINE must be honored.
55021 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
55022 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
55023 # NAME is the cpp macro being defined, VALUE is the value it is being given.
55024 # PARAMS is the parameter list in the macro definition--in most cases, it's
55025 # just an empty string.
55026 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
55027 ac_dB='\\)[      (].*,\\1define\\2'
55028 ac_dC=' '
55029 ac_dD=' ,'
55030
55031 uniq confdefs.h |
55032   sed -n '
55033         t rset
55034         :rset
55035         s/^[     ]*#[    ]*define[       ][      ]*//
55036         t ok
55037         d
55038         :ok
55039         s/[\\&,]/\\&/g
55040         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
55041         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
55042   ' >>conftest.defines
55043
55044 # Remove the space that was appended to ease matching.
55045 # Then replace #undef with comments.  This is necessary, for
55046 # example, in the case of _POSIX_SOURCE, which is predefined and required
55047 # on some systems where configure will not decide to define it.
55048 # (The regexp can be short, since the line contains either #define or #undef.)
55049 echo 's/ $//
55050 s,^[     #]*u.*,/* & */,' >>conftest.defines
55051
55052 # Break up conftest.defines:
55053 ac_max_sed_lines=50
55054
55055 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
55056 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
55057 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
55058 # et cetera.
55059 ac_in='$ac_file_inputs'
55060 ac_out='"$tmp/out1"'
55061 ac_nxt='"$tmp/out2"'
55062
55063 while :
55064 do
55065   # Write a here document:
55066     cat >>$CONFIG_STATUS <<_ACEOF
55067     # First, check the format of the line:
55068     cat >"\$tmp/defines.sed" <<\\CEOF
55069 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
55070 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
55071 b
55072 :def
55073 _ACEOF
55074   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
55075   echo 'CEOF
55076     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
55077   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
55078   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
55079   grep . conftest.tail >/dev/null || break
55080   rm -f conftest.defines
55081   mv conftest.tail conftest.defines
55082 done
55083 rm -f conftest.defines conftest.tail
55084
55085 echo "ac_result=$ac_in" >>$CONFIG_STATUS
55086 cat >>$CONFIG_STATUS <<\_ACEOF
55087   if test x"$ac_file" != x-; then
55088     echo "/* $configure_input  */" >"$tmp/config.h"
55089     cat "$ac_result" >>"$tmp/config.h"
55090     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
55091       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
55092 echo "$as_me: $ac_file is unchanged" >&6;}
55093     else
55094       rm -f $ac_file
55095       mv "$tmp/config.h" $ac_file
55096     fi
55097   else
55098     echo "/* $configure_input  */"
55099     cat "$ac_result"
55100   fi
55101   rm -f "$tmp/out12"
55102  ;;
55103
55104   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
55105 echo "$as_me: executing $ac_file commands" >&6;}
55106  ;;
55107   esac
55108
55109
55110   case $ac_file$ac_mode in
55111     "rcdefs.h":C)
55112             mkdir -p $outdir &&
55113             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
55114          ;;
55115     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
55116     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
55117     "wx-config":C)  rm -f wx-config
55118                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
55119                     ;;
55120
55121   esac
55122 done # for ac_tag
55123
55124
55125 { (exit 0); exit 0; }
55126 _ACEOF
55127 chmod +x $CONFIG_STATUS
55128 ac_clean_files=$ac_clean_files_save
55129
55130
55131 # configure is writing to config.log, and then calls config.status.
55132 # config.status does its own redirection, appending to config.log.
55133 # Unfortunately, on DOS this fails, as config.log is still kept open
55134 # by configure, so config.status won't be able to write to it; its
55135 # output is simply discarded.  So we exec the FD to /dev/null,
55136 # effectively closing config.log, so it can be properly (re)opened and
55137 # appended to by config.status.  When coming back to configure, we
55138 # need to make the FD available again.
55139 if test "$no_create" != yes; then
55140   ac_cs_success=:
55141   ac_config_status_args=
55142   test "$silent" = yes &&
55143     ac_config_status_args="$ac_config_status_args --quiet"
55144   exec 5>/dev/null
55145   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
55146   exec 5>>config.log
55147   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
55148   # would make configure fail if this is the last instruction.
55149   $ac_cs_success || { (exit 1); exit 1; }
55150 fi
55151
55152 #
55153 # CONFIG_SUBDIRS section.
55154 #
55155 if test "$no_recursion" != yes; then
55156
55157   # Remove --cache-file and --srcdir arguments so they do not pile up.
55158   ac_sub_configure_args=
55159   ac_prev=
55160   eval "set x $ac_configure_args"
55161   shift
55162   for ac_arg
55163   do
55164     if test -n "$ac_prev"; then
55165       ac_prev=
55166       continue
55167     fi
55168     case $ac_arg in
55169     -cache-file | --cache-file | --cache-fil | --cache-fi \
55170     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
55171       ac_prev=cache_file ;;
55172     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
55173     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
55174     | --c=*)
55175       ;;
55176     --config-cache | -C)
55177       ;;
55178     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
55179       ac_prev=srcdir ;;
55180     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
55181       ;;
55182     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
55183       ac_prev=prefix ;;
55184     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
55185       ;;
55186     *)
55187       case $ac_arg in
55188       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55189       esac
55190       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
55191     esac
55192   done
55193
55194   # Always prepend --prefix to ensure using the same prefix
55195   # in subdir configurations.
55196   ac_arg="--prefix=$prefix"
55197   case $ac_arg in
55198   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55199   esac
55200   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
55201
55202   # Pass --silent
55203   if test "$silent" = yes; then
55204     ac_sub_configure_args="--silent $ac_sub_configure_args"
55205   fi
55206
55207   ac_popdir=`pwd`
55208   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
55209
55210     # Do not complain, so a configure script can configure whichever
55211     # parts of a large source tree are present.
55212     test -d "$srcdir/$ac_dir" || continue
55213
55214     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
55215     echo "$as_me:$LINENO: $ac_msg" >&5
55216     echo "$ac_msg" >&6
55217     { as_dir="$ac_dir"
55218   case $as_dir in #(
55219   -*) as_dir=./$as_dir;;
55220   esac
55221   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55222     as_dirs=
55223     while :; do
55224       case $as_dir in #(
55225       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55226       *) as_qdir=$as_dir;;
55227       esac
55228       as_dirs="'$as_qdir' $as_dirs"
55229       as_dir=`$as_dirname -- "$as_dir" ||
55230 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55231          X"$as_dir" : 'X\(//\)[^/]' \| \
55232          X"$as_dir" : 'X\(//\)$' \| \
55233          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55234 echo X"$as_dir" |
55235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55236             s//\1/
55237             q
55238           }
55239           /^X\(\/\/\)[^/].*/{
55240             s//\1/
55241             q
55242           }
55243           /^X\(\/\/\)$/{
55244             s//\1/
55245             q
55246           }
55247           /^X\(\/\).*/{
55248             s//\1/
55249             q
55250           }
55251           s/.*/./; q'`
55252       test -d "$as_dir" && break
55253     done
55254     test -z "$as_dirs" || eval "mkdir $as_dirs"
55255   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55256 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55257    { (exit 1); exit 1; }; }; }
55258     ac_builddir=.
55259
55260 case "$ac_dir" in
55261 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55262 *)
55263   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55264   # A ".." for each directory in $ac_dir_suffix.
55265   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55266   case $ac_top_builddir_sub in
55267   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55268   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55269   esac ;;
55270 esac
55271 ac_abs_top_builddir=$ac_pwd
55272 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55273 # for backward compatibility:
55274 ac_top_builddir=$ac_top_build_prefix
55275
55276 case $srcdir in
55277   .)  # We are building in place.
55278     ac_srcdir=.
55279     ac_top_srcdir=$ac_top_builddir_sub
55280     ac_abs_top_srcdir=$ac_pwd ;;
55281   [\\/]* | ?:[\\/]* )  # Absolute name.
55282     ac_srcdir=$srcdir$ac_dir_suffix;
55283     ac_top_srcdir=$srcdir
55284     ac_abs_top_srcdir=$srcdir ;;
55285   *) # Relative name.
55286     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55287     ac_top_srcdir=$ac_top_build_prefix$srcdir
55288     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55289 esac
55290 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55291
55292
55293     cd "$ac_dir"
55294
55295     # Check for guested configure; otherwise get Cygnus style configure.
55296     if test -f "$ac_srcdir/configure.gnu"; then
55297       ac_sub_configure=$ac_srcdir/configure.gnu
55298     elif test -f "$ac_srcdir/configure"; then
55299       ac_sub_configure=$ac_srcdir/configure
55300     elif test -f "$ac_srcdir/configure.in"; then
55301       # This should be Cygnus configure.
55302       ac_sub_configure=$ac_aux_dir/configure
55303     else
55304       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
55305 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
55306       ac_sub_configure=
55307     fi
55308
55309     # The recursion is here.
55310     if test -n "$ac_sub_configure"; then
55311       # Make the cache file name correct relative to the subdirectory.
55312       case $cache_file in
55313       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
55314       *) # Relative name.
55315         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
55316       esac
55317
55318       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
55319 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
55320       # The eval makes quoting arguments work.
55321       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
55322            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
55323         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
55324 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
55325    { (exit 1); exit 1; }; }
55326     fi
55327
55328     cd "$ac_popdir"
55329   done
55330 fi
55331
55332
55333 echo
55334 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
55335 echo ""
55336 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
55337 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
55338
55339 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
55340 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
55341 echo -n "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}"
55342 if test "$wxUSE_UNICODE" = "yes"; then
55343     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
55344         echo " (using UTF-8)"
55345     else
55346         echo " (using wchar_t)"
55347     fi
55348 else
55349     echo
55350 fi
55351
55352 echo "  What level of wxWidgets compatibility should be enabled?"
55353 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
55354 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
55355
55356 echo "  Which libraries should wxWidgets use?"
55357 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
55358 echo "                                       png                ${wxUSE_LIBPNG-none}"
55359 echo "                                       regex              ${wxUSE_REGEX}"
55360 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
55361 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
55362 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
55363 fi
55364 echo "                                       zlib               ${wxUSE_ZLIB}"
55365 echo "                                       odbc               ${wxUSE_ODBC}"
55366 echo "                                       expat              ${wxUSE_EXPAT}"
55367 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
55368 echo "                                       sdl                ${wxUSE_LIBSDL}"
55369
55370 echo ""
55371