extract (and expand and clean up and document) the header window implementation used...
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 56928 2008-11-23 01:53:24Z 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 AR
683 subdirs
684 PKG_CONFIG
685 GTK_CFLAGS
686 GTK_LIBS
687 GTK_CONFIG
688 DIRECTFB_CFLAGS
689 DIRECTFB_LIBS
690 XMKMF
691 X_CFLAGS
692 X_PRE_LIBS
693 X_LIBS
694 X_EXTRA_LIBS
695 PANGOX_CFLAGS
696 PANGOX_LIBS
697 PANGOFT2_CFLAGS
698 PANGOFT2_LIBS
699 PANGOXFT_CFLAGS
700 PANGOXFT_LIBS
701 CFLAGS_VISIBILITY
702 CXXFLAGS_VISIBILITY
703 LIBICONV
704 GXX_VERSION
705 SDL_CONFIG
706 SDL_CFLAGS
707 SDL_LIBS
708 GTKPRINT_CFLAGS
709 GTKPRINT_LIBS
710 LIBGNOMEPRINTUI_CFLAGS
711 LIBGNOMEPRINTUI_LIBS
712 GNOMEVFS_CFLAGS
713 GNOMEVFS_LIBS
714 HILDON_CFLAGS
715 HILDON_LIBS
716 CAIRO_CFLAGS
717 CAIRO_LIBS
718 GST_CFLAGS
719 GST_LIBS
720 ALL_WX_LIBS
721 BUILT_WX_LIBS
722 STD_BASE_LIBS
723 STD_GUI_LIBS
724 wxUSE_ZLIB
725 wxUSE_REGEX
726 wxUSE_EXPAT
727 wxUSE_LIBJPEG
728 wxUSE_LIBPNG
729 wxUSE_LIBTIFF
730 VENDOR
731 OFFICIAL_BUILD
732 WX_FLAVOUR
733 WX_LIB_FLAVOUR
734 WXUNIV
735 MONOLITHIC
736 USE_PLUGINS
737 CXXWARNINGS
738 EXTRALIBS
739 EXTRALIBS_XML
740 EXTRALIBS_HTML
741 EXTRALIBS_MEDIA
742 EXTRALIBS_GUI
743 EXTRALIBS_OPENGL
744 EXTRALIBS_SDL
745 EXTRALIBS_STC
746 WITH_PLUGIN_SDL
747 EXTRALIBS_GTKPRINT
748 EXTRALIBS_GNOMEPRINT
749 EXTRALIBS_GNOMEVFS
750 EXTRALIBS_HILDON
751 UNICODE
752 BUILD
753 DEBUG_INFO
754 DEBUG_FLAG
755 TOOLKIT_LOWERCASE
756 TOOLKIT_VERSION
757 SAMPLES_RPATH_FLAG
758 SAMPLES_RPATH_POSTLINK
759 HOST_SUFFIX
760 CPPUNIT_CFLAGS
761 CPPUNIT_LIBS
762 RANLIB
763 INSTALL_PROGRAM
764 INSTALL_SCRIPT
765 INSTALL_DATA
766 LN_S
767 SET_MAKE
768 MAKE_SET
769 AROPTIONS
770 STRIP
771 NM
772 INSTALL_DIR
773 LDFLAGS_GUI
774 IF_GNU_MAKE
775 PLATFORM_UNIX
776 PLATFORM_WIN32
777 PLATFORM_MSDOS
778 PLATFORM_MAC
779 PLATFORM_MACOS
780 PLATFORM_MACOSX
781 PLATFORM_OS2
782 PLATFORM_BEOS
783 SO_SUFFIX
784 SO_SUFFIX_MODULE
785 DLLIMP_SUFFIX
786 LIBPREFIX
787 LIBEXT
788 DLLPREFIX
789 DLLPREFIX_MODULE
790 dlldir
791 AIX_CXX_LD
792 SHARED_LD_CC
793 SHARED_LD_CXX
794 SHARED_LD_MODULE_CC
795 SHARED_LD_MODULE_CXX
796 PIC_FLAG
797 WINDOWS_IMPLIB
798 USE_SOVERSION
799 USE_SOVERLINUX
800 USE_SOVERSOLARIS
801 USE_SOVERCYGWIN
802 USE_MACVERSION
803 USE_SOSYMLINKS
804 SONAME_FLAG
805 DEPS_TRACKING
806 BK_DEPS
807 WINDRES
808 REZ
809 SETFILE
810 OBJCXXFLAGS
811 GCC_PCH
812 ICC_PCH
813 ICC_PCH_CREATE_SWITCH
814 ICC_PCH_USE_SWITCH
815 BK_MAKE_PCH
816 COND_BUILD_DEBUG
817 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
818 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
819 COND_BUILD_DEBUG_UNICODE_0
820 COND_BUILD_DEBUG_UNICODE_1
821 COND_BUILD_RELEASE
822 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
823 COND_BUILD_RELEASE_UNICODE_0
824 COND_BUILD_RELEASE_UNICODE_1
825 COND_BUILD_debug
826 COND_BUILD_debug_DEBUG_FLAG_default
827 COND_BUILD_debug_DEBUG_INFO_default
828 COND_BUILD_debug_UNICODE_0
829 COND_BUILD_debug_UNICODE_1
830 COND_BUILD_release
831 COND_BUILD_release_DEBUG_INFO_default
832 COND_BUILD_release_UNICODE_0
833 COND_BUILD_release_UNICODE_1
834 COND_DEBUG_FLAG_1
835 COND_DEBUG_INFO_0
836 COND_DEBUG_INFO_1
837 COND_DEPS_TRACKING_0
838 COND_DEPS_TRACKING_1
839 COND_GCC_PCH_1
840 COND_ICC_PCH_1
841 COND_MONOLITHIC_0
842 COND_MONOLITHIC_0_SHARED_0
843 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
844 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
845 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
846 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
847 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
848 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1
849 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
850 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
851 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
852 COND_MONOLITHIC_0_SHARED_1
853 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
854 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
855 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
856 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
857 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
858 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1
859 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
860 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
861 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
862 COND_MONOLITHIC_0_USE_AUI_1
863 COND_MONOLITHIC_0_USE_GUI_1
864 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
865 COND_MONOLITHIC_0_USE_HTML_1
866 COND_MONOLITHIC_0_USE_MEDIA_1
867 COND_MONOLITHIC_0_USE_PROPGRID_1
868 COND_MONOLITHIC_0_USE_QA_1
869 COND_MONOLITHIC_0_USE_RICHTEXT_1
870 COND_MONOLITHIC_0_USE_STC_1
871 COND_MONOLITHIC_0_USE_XRC_1
872 COND_MONOLITHIC_1
873 COND_MONOLITHIC_1_SHARED_0
874 COND_MONOLITHIC_1_SHARED_1
875 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
876 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
877 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
878 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
879 COND_PLATFORM_MACOSX_1
880 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0
881 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1
882 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
883 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1
884 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
885 COND_PLATFORM_MACOSX_1_USE_GUI_1
886 COND_PLATFORM_MACOSX_1_USE_OPENGL_1
887 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
888 COND_PLATFORM_MACOS_1
889 COND_PLATFORM_MAC_0
890 COND_PLATFORM_MAC_1
891 COND_PLATFORM_MSDOS_0
892 COND_PLATFORM_MSDOS_1
893 COND_PLATFORM_OS2_1
894 COND_PLATFORM_UNIX_0
895 COND_PLATFORM_UNIX_1
896 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
897 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
898 COND_PLATFORM_UNIX_1_USE_GUI_1
899 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
900 COND_PLATFORM_WIN32_0
901 COND_PLATFORM_WIN32_1
902 COND_SHARED_0
903 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
904 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
905 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
906 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
907 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin
908 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin
909 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin
910 COND_SHARED_0_USE_STC_1
911 COND_SHARED_0_wxUSE_EXPAT_builtin
912 COND_SHARED_0_wxUSE_REGEX_builtin
913 COND_SHARED_0_wxUSE_ZLIB_builtin
914 COND_SHARED_1
915 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
916 COND_TOOLKIT_
917 COND_TOOLKIT_COCOA
918 COND_TOOLKIT_COCOA_USE_GUI_1
919 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
920 COND_TOOLKIT_DFB
921 COND_TOOLKIT_DFB_USE_GUI_1
922 COND_TOOLKIT_GTK
923 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
924 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
925 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
926 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
927 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
928 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
929 COND_TOOLKIT_GTK_USE_GUI_1
930 COND_TOOLKIT_MAC
931 COND_TOOLKIT_MGL
932 COND_TOOLKIT_MGL_USE_GUI_1
933 COND_TOOLKIT_MOTIF
934 COND_TOOLKIT_MOTIF_USE_GUI_1
935 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
936 COND_TOOLKIT_MSW
937 COND_TOOLKIT_MSW_USE_GUI_1
938 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
939 COND_TOOLKIT_MSW_WXUNIV_0
940 COND_TOOLKIT_OSX_CARBON
941 COND_TOOLKIT_OSX_CARBON_USE_GUI_1
942 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0
943 COND_TOOLKIT_OSX_COCOA
944 COND_TOOLKIT_OSX_COCOA_USE_GUI_1
945 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0
946 COND_TOOLKIT_OSX_IPHONE
947 COND_TOOLKIT_PM
948 COND_TOOLKIT_PM_USE_GUI_1
949 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
950 COND_TOOLKIT_WINCE
951 COND_TOOLKIT_WINCE_USE_GUI_1
952 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
953 COND_TOOLKIT_WINCE_WXUNIV_0
954 COND_TOOLKIT_X11
955 COND_TOOLKIT_X11_USE_GUI_1
956 COND_UNICODE_1
957 COND_USE_EXCEPTIONS_0
958 COND_USE_EXCEPTIONS_1
959 COND_USE_GUI_0
960 COND_USE_GUI_1
961 COND_USE_GUI_1_USE_OPENGL_1
962 COND_USE_GUI_1_WXUNIV_0
963 COND_USE_GUI_1_WXUNIV_1
964 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
965 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
966 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
967 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin
968 COND_USE_GUI_1_wxUSE_LIBPNG_builtin
969 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin
970 COND_USE_OPENGL_1
971 COND_USE_PCH_1
972 COND_USE_PLUGINS_0
973 COND_USE_RTTI_0
974 COND_USE_RTTI_1
975 COND_USE_SOSYMLINKS_1
976 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
977 COND_USE_SOVERLINUX_1
978 COND_USE_SOVERSION_0
979 COND_USE_SOVERSOLARIS_1
980 COND_USE_STC_1
981 COND_USE_THREADS_0
982 COND_USE_THREADS_1
983 COND_USE_XRC_1
984 COND_WINDOWS_IMPLIB_1
985 COND_WITH_PLUGIN_SDL_1
986 COND_WXUNIV_0
987 COND_WXUNIV_1
988 COND_WXUSE_EXPAT_BUILTIN
989 COND_WXUSE_LIBJPEG_BUILTIN
990 COND_WXUSE_LIBPNG_BUILTIN
991 COND_WXUSE_LIBTIFF_BUILTIN
992 COND_WXUSE_REGEX_BUILTIN
993 COND_WXUSE_ZLIB_BUILTIN
994 COND_wxUSE_EXPAT_builtin
995 COND_wxUSE_LIBJPEG_builtin
996 COND_wxUSE_LIBPNG_builtin
997 COND_wxUSE_LIBTIFF_builtin
998 COND_wxUSE_REGEX_builtin
999 COND_wxUSE_ZLIB_builtin
1000 DEREZ
1001 SHARED
1002 WX_LIBRARY_BASENAME_NOGUI
1003 WX_LIBRARY_BASENAME_GUI
1004 USE_GUI
1005 AFMINSTALL
1006 WIN32INSTALL
1007 TOOLKIT
1008 TOOLKIT_DIR
1009 TOOLCHAIN_NAME
1010 TOOLCHAIN_FULLNAME
1011 cross_compiling
1012 WIDGET_SET
1013 WX_RELEASE
1014 WX_VERSION
1015 WX_SUBVERSION
1016 WX_CHARTYPE
1017 WX_DEBUGTYPE
1018 WXCONFIG_CPPFLAGS
1019 WXCONFIG_CFLAGS
1020 WXCONFIG_CXXFLAGS
1021 WXCONFIG_LIBS
1022 WXCONFIG_RPATH
1023 WXCONFIG_LDFLAGS_GUI
1024 WXCONFIG_RESFLAGS
1025 GUIDIST
1026 DISTDIR
1027 SAMPLES_SUBDIRS
1028 LDFLAGS_GL
1029 OPENGL_LIBS
1030 DMALLOC_LIBS
1031 WX_VERSION_TAG
1032 RESCOMP
1033 RESFLAGS
1034 RESPROGRAMOBJ
1035 WX_RESOURCES_MACOSX_ASCII
1036 WX_RESOURCES_MACOSX_DATA
1037 LIBWXMACRES
1038 POSTLINK_COMMAND
1039 MACSETFILE
1040 GCC
1041 DLLTOOL
1042 CPPUNIT_CONFIG
1043 LIBOBJS
1044 LTLIBOBJS'
1045 ac_subst_files=''
1046       ac_precious_vars='build_alias
1047 host_alias
1048 target_alias
1049 CC
1050 CFLAGS
1051 LDFLAGS
1052 LIBS
1053 CPPFLAGS
1054 CPP
1055 CXX
1056 CXXFLAGS
1057 CCC
1058 PKG_CONFIG
1059 DIRECTFB_CFLAGS
1060 DIRECTFB_LIBS
1061 XMKMF
1062 PANGOX_CFLAGS
1063 PANGOX_LIBS
1064 PANGOFT2_CFLAGS
1065 PANGOFT2_LIBS
1066 PANGOXFT_CFLAGS
1067 PANGOXFT_LIBS
1068 GTKPRINT_CFLAGS
1069 GTKPRINT_LIBS
1070 LIBGNOMEPRINTUI_CFLAGS
1071 LIBGNOMEPRINTUI_LIBS
1072 GNOMEVFS_CFLAGS
1073 GNOMEVFS_LIBS
1074 HILDON_CFLAGS
1075 HILDON_LIBS
1076 CAIRO_CFLAGS
1077 CAIRO_LIBS
1078 GST_CFLAGS
1079 GST_LIBS'
1080 ac_subdirs_all='src/tiff
1081 src/expat'
1082
1083 # Initialize some variables set by options.
1084 ac_init_help=
1085 ac_init_version=false
1086 # The variables have the same names as the options, with
1087 # dashes changed to underlines.
1088 cache_file=/dev/null
1089 exec_prefix=NONE
1090 no_create=
1091 no_recursion=
1092 prefix=NONE
1093 program_prefix=NONE
1094 program_suffix=NONE
1095 program_transform_name=s,x,x,
1096 silent=
1097 site=
1098 srcdir=
1099 verbose=
1100 x_includes=NONE
1101 x_libraries=NONE
1102
1103 # Installation directory options.
1104 # These are left unexpanded so users can "make install exec_prefix=/foo"
1105 # and all the variables that are supposed to be based on exec_prefix
1106 # by default will actually change.
1107 # Use braces instead of parens because sh, perl, etc. also accept them.
1108 # (The list follows the same order as the GNU Coding Standards.)
1109 bindir='${exec_prefix}/bin'
1110 sbindir='${exec_prefix}/sbin'
1111 libexecdir='${exec_prefix}/libexec'
1112 datarootdir='${prefix}/share'
1113 datadir='${datarootdir}'
1114 sysconfdir='${prefix}/etc'
1115 sharedstatedir='${prefix}/com'
1116 localstatedir='${prefix}/var'
1117 includedir='${prefix}/include'
1118 oldincludedir='/usr/include'
1119 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1120 infodir='${datarootdir}/info'
1121 htmldir='${docdir}'
1122 dvidir='${docdir}'
1123 pdfdir='${docdir}'
1124 psdir='${docdir}'
1125 libdir='${exec_prefix}/lib'
1126 localedir='${datarootdir}/locale'
1127 mandir='${datarootdir}/man'
1128
1129 ac_prev=
1130 ac_dashdash=
1131 for ac_option
1132 do
1133   # If the previous option needs an argument, assign it.
1134   if test -n "$ac_prev"; then
1135     eval $ac_prev=\$ac_option
1136     ac_prev=
1137     continue
1138   fi
1139
1140   case $ac_option in
1141   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1142   *)    ac_optarg=yes ;;
1143   esac
1144
1145   # Accept the important Cygnus configure options, so we can diagnose typos.
1146
1147   case $ac_dashdash$ac_option in
1148   --)
1149     ac_dashdash=yes ;;
1150
1151   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1152     ac_prev=bindir ;;
1153   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1154     bindir=$ac_optarg ;;
1155
1156   -build | --build | --buil | --bui | --bu)
1157     ac_prev=build_alias ;;
1158   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1159     build_alias=$ac_optarg ;;
1160
1161   -cache-file | --cache-file | --cache-fil | --cache-fi \
1162   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1163     ac_prev=cache_file ;;
1164   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1165   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1166     cache_file=$ac_optarg ;;
1167
1168   --config-cache | -C)
1169     cache_file=config.cache ;;
1170
1171   -datadir | --datadir | --datadi | --datad)
1172     ac_prev=datadir ;;
1173   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1174     datadir=$ac_optarg ;;
1175
1176   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1177   | --dataroo | --dataro | --datar)
1178     ac_prev=datarootdir ;;
1179   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1180   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1181     datarootdir=$ac_optarg ;;
1182
1183   -disable-* | --disable-*)
1184     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1185     # Reject names that are not valid shell variable names.
1186     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1188    { (exit 1); exit 1; }; }
1189     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1190     eval enable_$ac_feature=no ;;
1191
1192   -docdir | --docdir | --docdi | --doc | --do)
1193     ac_prev=docdir ;;
1194   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1195     docdir=$ac_optarg ;;
1196
1197   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1198     ac_prev=dvidir ;;
1199   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1200     dvidir=$ac_optarg ;;
1201
1202   -enable-* | --enable-*)
1203     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1204     # Reject names that are not valid shell variable names.
1205     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1207    { (exit 1); exit 1; }; }
1208     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1209     eval enable_$ac_feature=\$ac_optarg ;;
1210
1211   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1212   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1213   | --exec | --exe | --ex)
1214     ac_prev=exec_prefix ;;
1215   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1216   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1217   | --exec=* | --exe=* | --ex=*)
1218     exec_prefix=$ac_optarg ;;
1219
1220   -gas | --gas | --ga | --g)
1221     # Obsolete; use --with-gas.
1222     with_gas=yes ;;
1223
1224   -help | --help | --hel | --he | -h)
1225     ac_init_help=long ;;
1226   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1227     ac_init_help=recursive ;;
1228   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1229     ac_init_help=short ;;
1230
1231   -host | --host | --hos | --ho)
1232     ac_prev=host_alias ;;
1233   -host=* | --host=* | --hos=* | --ho=*)
1234     host_alias=$ac_optarg ;;
1235
1236   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1237     ac_prev=htmldir ;;
1238   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1239   | --ht=*)
1240     htmldir=$ac_optarg ;;
1241
1242   -includedir | --includedir | --includedi | --included | --include \
1243   | --includ | --inclu | --incl | --inc)
1244     ac_prev=includedir ;;
1245   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1246   | --includ=* | --inclu=* | --incl=* | --inc=*)
1247     includedir=$ac_optarg ;;
1248
1249   -infodir | --infodir | --infodi | --infod | --info | --inf)
1250     ac_prev=infodir ;;
1251   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1252     infodir=$ac_optarg ;;
1253
1254   -libdir | --libdir | --libdi | --libd)
1255     ac_prev=libdir ;;
1256   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1257     libdir=$ac_optarg ;;
1258
1259   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1260   | --libexe | --libex | --libe)
1261     ac_prev=libexecdir ;;
1262   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1263   | --libexe=* | --libex=* | --libe=*)
1264     libexecdir=$ac_optarg ;;
1265
1266   -localedir | --localedir | --localedi | --localed | --locale)
1267     ac_prev=localedir ;;
1268   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1269     localedir=$ac_optarg ;;
1270
1271   -localstatedir | --localstatedir | --localstatedi | --localstated \
1272   | --localstate | --localstat | --localsta | --localst | --locals)
1273     ac_prev=localstatedir ;;
1274   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1275   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1276     localstatedir=$ac_optarg ;;
1277
1278   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1279     ac_prev=mandir ;;
1280   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1281     mandir=$ac_optarg ;;
1282
1283   -nfp | --nfp | --nf)
1284     # Obsolete; use --without-fp.
1285     with_fp=no ;;
1286
1287   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1288   | --no-cr | --no-c | -n)
1289     no_create=yes ;;
1290
1291   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1292   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1293     no_recursion=yes ;;
1294
1295   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1296   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1297   | --oldin | --oldi | --old | --ol | --o)
1298     ac_prev=oldincludedir ;;
1299   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1300   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1301   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1302     oldincludedir=$ac_optarg ;;
1303
1304   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1305     ac_prev=prefix ;;
1306   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1307     prefix=$ac_optarg ;;
1308
1309   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1310   | --program-pre | --program-pr | --program-p)
1311     ac_prev=program_prefix ;;
1312   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1313   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1314     program_prefix=$ac_optarg ;;
1315
1316   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1317   | --program-suf | --program-su | --program-s)
1318     ac_prev=program_suffix ;;
1319   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1320   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1321     program_suffix=$ac_optarg ;;
1322
1323   -program-transform-name | --program-transform-name \
1324   | --program-transform-nam | --program-transform-na \
1325   | --program-transform-n | --program-transform- \
1326   | --program-transform | --program-transfor \
1327   | --program-transfo | --program-transf \
1328   | --program-trans | --program-tran \
1329   | --progr-tra | --program-tr | --program-t)
1330     ac_prev=program_transform_name ;;
1331   -program-transform-name=* | --program-transform-name=* \
1332   | --program-transform-nam=* | --program-transform-na=* \
1333   | --program-transform-n=* | --program-transform-=* \
1334   | --program-transform=* | --program-transfor=* \
1335   | --program-transfo=* | --program-transf=* \
1336   | --program-trans=* | --program-tran=* \
1337   | --progr-tra=* | --program-tr=* | --program-t=*)
1338     program_transform_name=$ac_optarg ;;
1339
1340   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1341     ac_prev=pdfdir ;;
1342   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1343     pdfdir=$ac_optarg ;;
1344
1345   -psdir | --psdir | --psdi | --psd | --ps)
1346     ac_prev=psdir ;;
1347   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1348     psdir=$ac_optarg ;;
1349
1350   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1351   | -silent | --silent | --silen | --sile | --sil)
1352     silent=yes ;;
1353
1354   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1355     ac_prev=sbindir ;;
1356   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1357   | --sbi=* | --sb=*)
1358     sbindir=$ac_optarg ;;
1359
1360   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1361   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1362   | --sharedst | --shareds | --shared | --share | --shar \
1363   | --sha | --sh)
1364     ac_prev=sharedstatedir ;;
1365   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1366   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1367   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1368   | --sha=* | --sh=*)
1369     sharedstatedir=$ac_optarg ;;
1370
1371   -site | --site | --sit)
1372     ac_prev=site ;;
1373   -site=* | --site=* | --sit=*)
1374     site=$ac_optarg ;;
1375
1376   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1377     ac_prev=srcdir ;;
1378   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1379     srcdir=$ac_optarg ;;
1380
1381   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1382   | --syscon | --sysco | --sysc | --sys | --sy)
1383     ac_prev=sysconfdir ;;
1384   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1385   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1386     sysconfdir=$ac_optarg ;;
1387
1388   -target | --target | --targe | --targ | --tar | --ta | --t)
1389     ac_prev=target_alias ;;
1390   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1391     target_alias=$ac_optarg ;;
1392
1393   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1394     verbose=yes ;;
1395
1396   -version | --version | --versio | --versi | --vers | -V)
1397     ac_init_version=: ;;
1398
1399   -with-* | --with-*)
1400     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1401     # Reject names that are not valid shell variable names.
1402     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403       { echo "$as_me: error: invalid package name: $ac_package" >&2
1404    { (exit 1); exit 1; }; }
1405     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1406     eval with_$ac_package=\$ac_optarg ;;
1407
1408   -without-* | --without-*)
1409     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1410     # Reject names that are not valid shell variable names.
1411     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1412       { echo "$as_me: error: invalid package name: $ac_package" >&2
1413    { (exit 1); exit 1; }; }
1414     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1415     eval with_$ac_package=no ;;
1416
1417   --x)
1418     # Obsolete; use --with-x.
1419     with_x=yes ;;
1420
1421   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1422   | --x-incl | --x-inc | --x-in | --x-i)
1423     ac_prev=x_includes ;;
1424   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1425   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1426     x_includes=$ac_optarg ;;
1427
1428   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1429   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1430     ac_prev=x_libraries ;;
1431   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1432   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1433     x_libraries=$ac_optarg ;;
1434
1435   -*) { echo "$as_me: error: unrecognized option: $ac_option
1436 Try \`$0 --help' for more information." >&2
1437    { (exit 1); exit 1; }; }
1438     ;;
1439
1440   *=*)
1441     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1442     # Reject names that are not valid shell variable names.
1443     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1444       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1445    { (exit 1); exit 1; }; }
1446     eval $ac_envvar=\$ac_optarg
1447     export $ac_envvar ;;
1448
1449   *)
1450     # FIXME: should be removed in autoconf 3.0.
1451     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1452     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1453       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1454     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1455     ;;
1456
1457   esac
1458 done
1459
1460 if test -n "$ac_prev"; then
1461   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1462   { echo "$as_me: error: missing argument to $ac_option" >&2
1463    { (exit 1); exit 1; }; }
1464 fi
1465
1466 # Be sure to have absolute directory names.
1467 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1468                 datadir sysconfdir sharedstatedir localstatedir includedir \
1469                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1470                 libdir localedir mandir
1471 do
1472   eval ac_val=\$$ac_var
1473   case $ac_val in
1474     [\\/$]* | ?:[\\/]* )  continue;;
1475     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1476   esac
1477   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1478    { (exit 1); exit 1; }; }
1479 done
1480
1481 # There might be people who depend on the old broken behavior: `$host'
1482 # used to hold the argument of --host etc.
1483 # FIXME: To remove some day.
1484 build=$build_alias
1485 host=$host_alias
1486 target=$target_alias
1487
1488 # FIXME: To remove some day.
1489 if test "x$host_alias" != x; then
1490   if test "x$build_alias" = x; then
1491     cross_compiling=maybe
1492     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1493     If a cross compiler is detected then cross compile mode will be used." >&2
1494   elif test "x$build_alias" != "x$host_alias"; then
1495     cross_compiling=yes
1496   fi
1497 fi
1498
1499 ac_tool_prefix=
1500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1501
1502 test "$silent" = yes && exec 6>/dev/null
1503
1504
1505 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1506 ac_ls_di=`ls -di .` &&
1507 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1508   { echo "$as_me: error: Working directory cannot be determined" >&2
1509    { (exit 1); exit 1; }; }
1510 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1511   { echo "$as_me: error: pwd does not report name of working directory" >&2
1512    { (exit 1); exit 1; }; }
1513
1514
1515 # Find the source files, if location was not specified.
1516 if test -z "$srcdir"; then
1517   ac_srcdir_defaulted=yes
1518   # Try the directory containing this script, then the parent directory.
1519   ac_confdir=`$as_dirname -- "$0" ||
1520 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1521          X"$0" : 'X\(//\)[^/]' \| \
1522          X"$0" : 'X\(//\)$' \| \
1523          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1524 echo X"$0" |
1525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1526             s//\1/
1527             q
1528           }
1529           /^X\(\/\/\)[^/].*/{
1530             s//\1/
1531             q
1532           }
1533           /^X\(\/\/\)$/{
1534             s//\1/
1535             q
1536           }
1537           /^X\(\/\).*/{
1538             s//\1/
1539             q
1540           }
1541           s/.*/./; q'`
1542   srcdir=$ac_confdir
1543   if test ! -r "$srcdir/$ac_unique_file"; then
1544     srcdir=..
1545   fi
1546 else
1547   ac_srcdir_defaulted=no
1548 fi
1549 if test ! -r "$srcdir/$ac_unique_file"; then
1550   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1551   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1552    { (exit 1); exit 1; }; }
1553 fi
1554 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1555 ac_abs_confdir=`(
1556         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1557    { (exit 1); exit 1; }; }
1558         pwd)`
1559 # When building in place, set srcdir=.
1560 if test "$ac_abs_confdir" = "$ac_pwd"; then
1561   srcdir=.
1562 fi
1563 # Remove unnecessary trailing slashes from srcdir.
1564 # Double slashes in file names in object file debugging info
1565 # mess up M-x gdb in Emacs.
1566 case $srcdir in
1567 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1568 esac
1569 for ac_var in $ac_precious_vars; do
1570   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1571   eval ac_env_${ac_var}_value=\$${ac_var}
1572   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1573   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1574 done
1575
1576 #
1577 # Report the --help message.
1578 #
1579 if test "$ac_init_help" = "long"; then
1580   # Omit some internal or obsolete options to make the list less imposing.
1581   # This message is too long to be a string in the A/UX 3.1 sh.
1582   cat <<_ACEOF
1583 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1584
1585 Usage: $0 [OPTION]... [VAR=VALUE]...
1586
1587 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1588 VAR=VALUE.  See below for descriptions of some of the useful variables.
1589
1590 Defaults for the options are specified in brackets.
1591
1592 Configuration:
1593   -h, --help              display this help and exit
1594       --help=short        display options specific to this package
1595       --help=recursive    display the short help of all the included packages
1596   -V, --version           display version information and exit
1597   -q, --quiet, --silent   do not print \`checking...' messages
1598       --cache-file=FILE   cache test results in FILE [disabled]
1599   -C, --config-cache      alias for \`--cache-file=config.cache'
1600   -n, --no-create         do not create output files
1601       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1602
1603 Installation directories:
1604   --prefix=PREFIX         install architecture-independent files in PREFIX
1605                           [$ac_default_prefix]
1606   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1607                           [PREFIX]
1608
1609 By default, \`make install' will install all the files in
1610 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1611 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1612 for instance \`--prefix=\$HOME'.
1613
1614 For better control, use the options below.
1615
1616 Fine tuning of the installation directories:
1617   --bindir=DIR           user executables [EPREFIX/bin]
1618   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1619   --libexecdir=DIR       program executables [EPREFIX/libexec]
1620   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1621   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1622   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1623   --libdir=DIR           object code libraries [EPREFIX/lib]
1624   --includedir=DIR       C header files [PREFIX/include]
1625   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1626   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1627   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1628   --infodir=DIR          info documentation [DATAROOTDIR/info]
1629   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1630   --mandir=DIR           man documentation [DATAROOTDIR/man]
1631   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1632   --htmldir=DIR          html documentation [DOCDIR]
1633   --dvidir=DIR           dvi documentation [DOCDIR]
1634   --pdfdir=DIR           pdf documentation [DOCDIR]
1635   --psdir=DIR            ps documentation [DOCDIR]
1636 _ACEOF
1637
1638   cat <<\_ACEOF
1639
1640 X features:
1641   --x-includes=DIR    X include files are in DIR
1642   --x-libraries=DIR   X library files are in DIR
1643
1644 System types:
1645   --build=BUILD     configure for building on BUILD [guessed]
1646   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1647   --target=TARGET   configure for building compilers for TARGET [HOST]
1648 _ACEOF
1649 fi
1650
1651 if test -n "$ac_init_help"; then
1652   case $ac_init_help in
1653      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1654    esac
1655   cat <<\_ACEOF
1656
1657 Optional Features:
1658   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1659   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1660   --disable-gui           don't build GUI parts of the library
1661   --enable-monolithic     build wxWidgets as single library
1662   --enable-plugins        build parts of wxWidgets as loadable components
1663   --enable-official_build official build of wxWidgets (win32 DLL only)
1664   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1665   --disable-all-features  disable all optional features to build minimal library
1666   --enable-universal      use wxWidgets GUI controls instead of native ones
1667   --enable-nanox          use NanoX
1668   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1669   --enable-gpe            use GNOME PDA Environment features if possible
1670   --disable-shared        create static library instead of shared
1671   --enable-debug          same as debug_flag and debug_info
1672   --enable-stl            use STL for containers
1673   --enable-std_iostreams  use standard C++ stream classes
1674   --enable-std_string     use standard C++ string classes
1675   --disable-unicode       compile without Unicode support
1676   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1677   --enable-utf8           use UTF-8 representation for strings (Unix only)
1678   --enable-utf8only       only support UTF-8 locales in UTF-8 build (Unix only)
1679   --enable-extended_rtti  use extended RTTI (XTI)
1680   --enable-omf            use OMF object format
1681   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1682   --enable-debug_info     create code with debugging information
1683   --disable-optimise      compile without optimisations
1684   --enable-debug_gdb      create code with extra GDB debugging information
1685   --enable-debug_cntxt    use wxDebugContext
1686   --enable-mem_tracing    create code with memory tracing
1687   --enable-profile        create code with profiling information
1688   --enable-no_rtti        create code without RTTI information
1689   --enable-no_exceptions  create code without C++ exceptions handling
1690   --enable-permissive     compile code disregarding strict ANSI
1691   --enable-no_deps        create code without dependency information
1692   --disable-vararg_macros don't use vararg macros, even if they are supported
1693   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1694   --enable-compat26       enable wxWidgets 2.6 compatibility
1695   --disable-compat28      disable wxWidgets 2.8 compatibility
1696   --disable-rpath         disable use of rpath for uninstalled builds
1697   --enable-objc_uniquifying enable Objective-C class name uniquifying
1698   --disable-visibility    disable use of ELF symbols visibility even if supported
1699   --enable-intl           use internationalization system
1700   --enable-xlocale        use x-locale support (requires wxLocale)
1701   --enable-config         use wxConfig (and derived) classes
1702   --enable-protocols      use wxProtocol and derived classes
1703   --enable-ftp            use wxFTP (requires wxProtocol
1704   --enable-http           use wxHTTP (requires wxProtocol
1705   --enable-fileproto      use wxFileProto class (requires wxProtocol
1706   --enable-sockets        use socket/network classes
1707   --enable-ipv6           enable IPv6 support in wxSocket
1708   --enable-ole            use OLE classes (Win32 only)
1709   --enable-dataobj        use data object classes
1710   --enable-ipc            use interprocess communication (wxSocket etc.)
1711   --enable-baseevtloop    use event loop in console programs too
1712   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1713   --enable-selectloop     use wxSelectDispatcher class
1714   --enable-apple_ieee     use the Apple IEEE codec
1715   --enable-arcstream      use wxArchive streams
1716   --enable-base64         use base64 encoding/decoding functions
1717   --enable-backtrace      use wxStackWalker class for getting backtraces
1718   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1719   --enable-cmdline        use wxCmdLineParser class
1720   --enable-datetime       use wxDateTime class
1721   --enable-debugreport    use wxDebugReport class
1722   --enable-dialupman      use dialup network classes
1723   --enable-dynlib         use wxLibrary class for DLL loading
1724   --enable-dynamicloader  use (new) wxDynamicLibrary class
1725   --enable-exceptions     build exception-safe library
1726   --enable-ffile          use wxFFile class
1727   --enable-file           use wxFile class
1728   --enable-filesystem     use virtual file systems classes
1729   --enable-fontenum       use wxFontEnumerator class
1730   --enable-fontmap        use font encodings conversion classes
1731   --enable-fs_archive     use virtual archive filesystems
1732   --enable-fs_inet        use virtual HTTP/FTP filesystems
1733   --enable-fs_zip         now replaced by fs_archive
1734   --enable-geometry       use geometry class
1735   --enable-log            use logging system
1736   --enable-longlong       use wxLongLong class
1737   --enable-mimetype       use wxMimeTypesManager
1738   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1739   --enable-snglinst       use wxSingleInstanceChecker class
1740   --enable-sound          use wxSound class
1741   --enable-stdpaths       use wxStandardPaths class
1742   --enable-stopwatch      use wxStopWatch class
1743   --enable-streams        use wxStream etc classes
1744   --enable-sysoptions     use wxSystemOptions
1745   --enable-tarstream      use wxTar streams
1746   --enable-textbuf        use wxTextBuffer class
1747   --enable-textfile       use wxTextFile class
1748   --enable-timer          use wxTimer class
1749   --enable-variant        use wxVariant class
1750   --enable-zipstream      use wxZip streams
1751   --enable-url            use wxURL class
1752   --enable-protocol       use wxProtocol class
1753   --enable-protocol-http  HTTP support in wxProtocol
1754   --enable-protocol-ftp   FTP support in wxProtocol
1755   --enable-protocol-file  FILE support in wxProtocol
1756   --enable-threads        use threads
1757   --enable-iniconf        use wxIniConfig (Win32 only)
1758   --enable-regkey         use wxRegKey class (Win32 only)
1759   --enable-docview        use document view architecture
1760   --enable-help           use help subsystem
1761   --enable-mshtmlhelp     use MS HTML Help (win32)
1762   --enable-html           use wxHTML sub-library
1763   --enable-htmlhelp       use wxHTML-based help
1764   --enable-xrc            use XRC resources sub-library
1765   --enable-aui            use AUI docking library
1766   --enable-propgrid       use wxPropertyGrid library
1767   --enable-stc            use wxStyledTextCtrl library
1768   --enable-constraints    use layout-constraints system
1769   --enable-loggui         use standard GUI logger
1770   --enable-logwin         use wxLogWindow
1771   --enable-logdialog      use wxLogDialog
1772   --enable-mdi            use multiple document interface architecture
1773   --enable-mdidoc         use docview architecture with MDI
1774   --enable-mediactrl      use wxMediaCtrl class
1775   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1776   --enable-webkit         use wxWebKitCtrl (Mac)
1777   --enable-richtext       use wxRichTextCtrl
1778   --enable-graphics_ctx   use graphics context 2D drawing API
1779   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1780   --enable-printarch      use printing architecture
1781   --enable-svg            use wxSVGFileDC device context
1782   --enable-clipboard      use wxClipboard class
1783   --enable-dnd            use Drag'n'Drop classes
1784   --enable-metafile       use win32 metafiles
1785   --disable-controls      disable compilation of all standard controls
1786   --enable-accel          use accelerators
1787   --enable-animatectrl    use wxAnimationCtrl class
1788   --enable-button         use wxButton class
1789   --enable-bmpbutton      use wxBitmapButton class
1790   --enable-bmpcombobox    use wxBitmapComboBox class
1791   --enable-calendar       use wxCalendarCtrl class
1792   --enable-caret          use wxCaret class
1793   --enable-checkbox       use wxCheckBox class
1794   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1795   --enable-choice         use wxChoice class
1796   --enable-choicebook     use wxChoicebook class
1797   --enable-collpane       use wxCollapsiblePane class
1798   --enable-colourpicker   use wxColourPickerCtrl class
1799   --enable-combobox       use wxComboBox class
1800   --enable-comboctrl      use wxComboCtrl class
1801   --enable-datepick       use wxDatePickerCtrl class
1802   --enable-dirpicker      use wxDirPickerCtrl class
1803   --enable-display        use wxDisplay class
1804   --enable-detect_sm      use code to detect X11 session manager
1805   --enable-editablebox    use wxEditableListBox class
1806   --enable-filepicker     use wxFilePickerCtrl class
1807   --enable-filectrl       use wxFileCtrl class
1808   --enable-fontpicker     use wxFontPickerCtrl class
1809   --enable-gauge          use wxGauge class
1810   --enable-grid           use wxGrid class
1811   --enable-dataviewctrl   use wxDataViewCtrl class
1812   --enable-hyperlink      use wxHyperlinkCtrl class
1813   --enable-imaglist       use wxImageList class
1814   --enable-listbook       use wxListbook class
1815   --enable-listbox        use wxListBox class
1816   --enable-listctrl       use wxListCtrl class
1817   --enable-notebook       use wxNotebook class
1818   --enable-notifmsg       use wxNotificationMessage class
1819   --enable-odcombobox     use wxOwnerDrawnComboBox class
1820   --enable-radiobox       use wxRadioBox class
1821   --enable-radiobtn       use wxRadioButton class
1822   --enable-sash           use wxSashWindow class
1823   --enable-scrollbar      use wxScrollBar class and scrollable windows
1824   --enable-searchctrl     use wxSearchCtrl class
1825   --enable-slider         use wxSlider class
1826   --enable-spinbtn        use wxSpinButton class
1827   --enable-spinctrl       use wxSpinCtrl class
1828   --enable-splitter       use wxSplitterWindow class
1829   --enable-statbmp        use wxStaticBitmap class
1830   --enable-statbox        use wxStaticBox class
1831   --enable-statline       use wxStaticLine class
1832   --enable-stattext       use wxStaticText class
1833   --enable-statusbar      use wxStatusBar class
1834   --enable-tabdialog      use wxTabControl class
1835   --enable-taskbaricon    use wxTaskBarIcon class
1836   --enable-textctrl       use wxTextCtrl class
1837   --enable-togglebtn      use wxToggleButton class
1838   --enable-toolbar        use wxToolBar class
1839   --enable-tbarnative     use native wxToolBar class
1840   --enable-treebook       use wxTreebook class
1841   --enable-toolbook       use wxToolbook class
1842   --enable-treectrl       use wxTreeCtrl class
1843   --enable-tipwindow      use wxTipWindow class
1844   --enable-popupwin       use wxPopUpWindow class
1845   --enable-commondlg      use all common dialogs
1846   --enable-aboutdlg       use wxAboutBox
1847   --enable-choicedlg      use wxChoiceDialog
1848   --enable-coldlg         use wxColourDialog
1849   --enable-filedlg        use wxFileDialog
1850   --enable-finddlg        use wxFindReplaceDialog
1851   --enable-fontdlg        use wxFontDialog
1852   --enable-dirdlg         use wxDirDialog
1853   --enable-msgdlg         use wxMessageDialog
1854   --enable-numberdlg      use wxNumberEntryDialog
1855   --enable-splash         use wxSplashScreen
1856   --enable-textdlg        use wxTextDialog
1857   --enable-tipdlg         use startup tips
1858   --enable-progressdlg    use wxProgressDialog
1859   --enable-wizarddlg      use wxWizard
1860   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1861   --enable-miniframe      use wxMiniFrame class
1862   --enable-tooltips       use wxToolTip class
1863   --enable-splines        use spline drawing code
1864   --enable-mousewheel     use mousewheel
1865   --enable-validators     use wxValidator and derived classes
1866   --enable-busyinfo       use wxBusyInfo
1867   --enable-joystick       use wxJoystick
1868   --enable-metafiles      use wxMetaFile (Win32 only)
1869   --enable-dragimage      use wxDragImage
1870   --enable-accessibility  enable accessibility support
1871   --enable-palette        use wxPalette class
1872   --enable-image          use wxImage class
1873   --enable-gif            use gif images (GIF file format)
1874   --enable-pcx            use pcx images (PCX file format)
1875   --enable-tga            use tga images (TGA file format)
1876   --enable-iff            use iff images (IFF file format)
1877   --enable-pnm            use pnm images (PNM file format)
1878   --enable-xpm            use xpm images (XPM file format)
1879   --enable-ico_cur        use Windows ICO and CUR formats
1880   --enable-dccache        cache temporary wxDC objects (Win32 only)
1881   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1882   --enable-ownerdrawn     use owner drawn controls (Win32 and OS/2 only)
1883   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1884   --enable-wxdib          use wxDIB class (Win32 only)
1885   --enable-autoidman      use automatic ids management
1886   --disable-largefile     omit support for large files
1887   --disable-gtktest       do not try to compile and run a test GTK+ program
1888   --disable-gtktest       Do not try to compile and run a test GTK program
1889   --disable-sdltest       Do not try to compile and run a test SDL program
1890   --enable-omf            use OMF object format (OS/2)
1891   --disable-dependency-tracking
1892                           don't use dependency tracking even if the compiler
1893                           can
1894   --disable-precomp-headers
1895                           don't use precompiled headers even if compiler can
1896
1897 Optional Packages:
1898   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1899   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1900   --without-subdirs       don't generate makefiles for samples/demos/...
1901   --with-flavour=NAME     specify a name to identify this build
1902   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1903   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1904   --with-motif            use Motif/Lesstif
1905   --with-osx_carbon       use Mac OS X (Carbon)
1906   --with-osx_cocoa        use Mac OS X (Cocoa)
1907   --with-mac              use Mac OS X (Default)
1908   --with-cocoa            use Cocoa
1909   --with-wine             use Wine
1910   --with-msw              use MS-Windows
1911   --with-pm               use OS/2 Presentation Manager
1912   --with-mgl              use SciTech MGL
1913   --with-directfb         use DirectFB
1914   --with-microwin         use MicroWindows
1915   --with-x11              use X11
1916   --with-libpng           use libpng (PNG image format)
1917   --with-libjpeg          use libjpeg (JPEG file format)
1918   --with-libtiff          use libtiff (TIFF file format)
1919   --with-libxpm           use libxpm (XPM file format)
1920   --with-libiconv         use libiconv (character conversion)
1921   --with-libmspack        use libmspack (CHM help files loading)
1922   --without-gtkprint      don't use GTK printing support
1923   --without-gnomeprint    don't use GNOME printing libraries
1924   --with-gnomevfs         use GNOME VFS for associating MIME types
1925   --with-hildon           use Hildon framework for Nokia 770
1926   --with-opengl           use OpenGL (or Mesa)
1927   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1928   --with-sdl              use SDL for audio on Unix
1929   --with-regex            enable support for wxRegEx class
1930   --with-zlib             use zlib for LZW compression
1931   --with-expat            enable XML support using expat parser
1932   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1933   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1934   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1935   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1936   --with-x                use the X Window System
1937   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1938   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1939   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1940   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1941   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1942
1943 Some influential environment variables:
1944   CC          C compiler command
1945   CFLAGS      C compiler flags
1946   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1947               nonstandard directory <lib dir>
1948   LIBS        libraries to pass to the linker, e.g. -l<library>
1949   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1950               you have headers in a nonstandard directory <include dir>
1951   CPP         C preprocessor
1952   CXX         C++ compiler command
1953   CXXFLAGS    C++ compiler flags
1954   PKG_CONFIG  path to pkg-config utility
1955   DIRECTFB_CFLAGS
1956               C compiler flags for DIRECTFB, overriding pkg-config
1957   DIRECTFB_LIBS
1958               linker flags for DIRECTFB, overriding pkg-config
1959   XMKMF       Path to xmkmf, Makefile generator for X Window System
1960   PANGOX_CFLAGS
1961               C compiler flags for PANGOX, overriding pkg-config
1962   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1963   PANGOFT2_CFLAGS
1964               C compiler flags for PANGOFT2, overriding pkg-config
1965   PANGOFT2_LIBS
1966               linker flags for PANGOFT2, overriding pkg-config
1967   PANGOXFT_CFLAGS
1968               C compiler flags for PANGOXFT, overriding pkg-config
1969   PANGOXFT_LIBS
1970               linker flags for PANGOXFT, overriding pkg-config
1971   GTKPRINT_CFLAGS
1972               C compiler flags for GTKPRINT, overriding pkg-config
1973   GTKPRINT_LIBS
1974               linker flags for GTKPRINT, overriding pkg-config
1975   LIBGNOMEPRINTUI_CFLAGS
1976               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1977   LIBGNOMEPRINTUI_LIBS
1978               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1979   GNOMEVFS_CFLAGS
1980               C compiler flags for GNOMEVFS, overriding pkg-config
1981   GNOMEVFS_LIBS
1982               linker flags for GNOMEVFS, overriding pkg-config
1983   HILDON_CFLAGS
1984               C compiler flags for HILDON, overriding pkg-config
1985   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1986   CAIRO_CFLAGS
1987               C compiler flags for CAIRO, overriding pkg-config
1988   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1989   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1990   GST_LIBS    linker flags for GST, overriding pkg-config
1991
1992 Use these variables to override the choices made by `configure' or to help
1993 it to find libraries and programs with nonstandard names/locations.
1994
1995 Report bugs to <wx-dev@lists.wxwidgets.org>.
1996 _ACEOF
1997 ac_status=$?
1998 fi
1999
2000 if test "$ac_init_help" = "recursive"; then
2001   # If there are subdirs, report their specific --help.
2002   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2003     test -d "$ac_dir" || continue
2004     ac_builddir=.
2005
2006 case "$ac_dir" in
2007 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2008 *)
2009   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2010   # A ".." for each directory in $ac_dir_suffix.
2011   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
2012   case $ac_top_builddir_sub in
2013   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2014   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2015   esac ;;
2016 esac
2017 ac_abs_top_builddir=$ac_pwd
2018 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2019 # for backward compatibility:
2020 ac_top_builddir=$ac_top_build_prefix
2021
2022 case $srcdir in
2023   .)  # We are building in place.
2024     ac_srcdir=.
2025     ac_top_srcdir=$ac_top_builddir_sub
2026     ac_abs_top_srcdir=$ac_pwd ;;
2027   [\\/]* | ?:[\\/]* )  # Absolute name.
2028     ac_srcdir=$srcdir$ac_dir_suffix;
2029     ac_top_srcdir=$srcdir
2030     ac_abs_top_srcdir=$srcdir ;;
2031   *) # Relative name.
2032     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2033     ac_top_srcdir=$ac_top_build_prefix$srcdir
2034     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2035 esac
2036 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2037
2038     cd "$ac_dir" || { ac_status=$?; continue; }
2039     # Check for guested configure.
2040     if test -f "$ac_srcdir/configure.gnu"; then
2041       echo &&
2042       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2043     elif test -f "$ac_srcdir/configure"; then
2044       echo &&
2045       $SHELL "$ac_srcdir/configure" --help=recursive
2046     else
2047       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2048     fi || ac_status=$?
2049     cd "$ac_pwd" || { ac_status=$?; break; }
2050   done
2051 fi
2052
2053 test -n "$ac_init_help" && exit $ac_status
2054 if $ac_init_version; then
2055   cat <<\_ACEOF
2056 wxWidgets configure 2.9.0
2057 generated by GNU Autoconf 2.61
2058
2059 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2060 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2061 This configure script is free software; the Free Software Foundation
2062 gives unlimited permission to copy, distribute and modify it.
2063 _ACEOF
2064   exit
2065 fi
2066 cat >config.log <<_ACEOF
2067 This file contains any messages produced by compilers while
2068 running configure, to aid debugging if configure makes a mistake.
2069
2070 It was created by wxWidgets $as_me 2.9.0, which was
2071 generated by GNU Autoconf 2.61.  Invocation command line was
2072
2073   $ $0 $@
2074
2075 _ACEOF
2076 exec 5>>config.log
2077 {
2078 cat <<_ASUNAME
2079 ## --------- ##
2080 ## Platform. ##
2081 ## --------- ##
2082
2083 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2084 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2085 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2086 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2087 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2088
2089 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2090 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2091
2092 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2093 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2094 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2095 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2096 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2097 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2098 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2099
2100 _ASUNAME
2101
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   echo "PATH: $as_dir"
2108 done
2109 IFS=$as_save_IFS
2110
2111 } >&5
2112
2113 cat >&5 <<_ACEOF
2114
2115
2116 ## ----------- ##
2117 ## Core tests. ##
2118 ## ----------- ##
2119
2120 _ACEOF
2121
2122
2123 # Keep a trace of the command line.
2124 # Strip out --no-create and --no-recursion so they do not pile up.
2125 # Strip out --silent because we don't want to record it for future runs.
2126 # Also quote any args containing shell meta-characters.
2127 # Make two passes to allow for proper duplicate-argument suppression.
2128 ac_configure_args=
2129 ac_configure_args0=
2130 ac_configure_args1=
2131 ac_must_keep_next=false
2132 for ac_pass in 1 2
2133 do
2134   for ac_arg
2135   do
2136     case $ac_arg in
2137     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2138     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2139     | -silent | --silent | --silen | --sile | --sil)
2140       continue ;;
2141     *\'*)
2142       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2143     esac
2144     case $ac_pass in
2145     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2146     2)
2147       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2148       if test $ac_must_keep_next = true; then
2149         ac_must_keep_next=false # Got value, back to normal.
2150       else
2151         case $ac_arg in
2152           *=* | --config-cache | -C | -disable-* | --disable-* \
2153           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2154           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2155           | -with-* | --with-* | -without-* | --without-* | --x)
2156             case "$ac_configure_args0 " in
2157               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2158             esac
2159             ;;
2160           -* ) ac_must_keep_next=true ;;
2161         esac
2162       fi
2163       ac_configure_args="$ac_configure_args '$ac_arg'"
2164       ;;
2165     esac
2166   done
2167 done
2168 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2169 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2170
2171 # When interrupted or exit'd, cleanup temporary files, and complete
2172 # config.log.  We remove comments because anyway the quotes in there
2173 # would cause problems or look ugly.
2174 # WARNING: Use '\'' to represent an apostrophe within the trap.
2175 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2176 trap 'exit_status=$?
2177   # Save into config.log some information that might help in debugging.
2178   {
2179     echo
2180
2181     cat <<\_ASBOX
2182 ## ---------------- ##
2183 ## Cache variables. ##
2184 ## ---------------- ##
2185 _ASBOX
2186     echo
2187     # The following way of writing the cache mishandles newlines in values,
2188 (
2189   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2190     eval ac_val=\$$ac_var
2191     case $ac_val in #(
2192     *${as_nl}*)
2193       case $ac_var in #(
2194       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2195 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2196       esac
2197       case $ac_var in #(
2198       _ | IFS | as_nl) ;; #(
2199       *) $as_unset $ac_var ;;
2200       esac ;;
2201     esac
2202   done
2203   (set) 2>&1 |
2204     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2205     *${as_nl}ac_space=\ *)
2206       sed -n \
2207         "s/'\''/'\''\\\\'\'''\''/g;
2208           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2209       ;; #(
2210     *)
2211       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2212       ;;
2213     esac |
2214     sort
2215 )
2216     echo
2217
2218     cat <<\_ASBOX
2219 ## ----------------- ##
2220 ## Output variables. ##
2221 ## ----------------- ##
2222 _ASBOX
2223     echo
2224     for ac_var in $ac_subst_vars
2225     do
2226       eval ac_val=\$$ac_var
2227       case $ac_val in
2228       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2229       esac
2230       echo "$ac_var='\''$ac_val'\''"
2231     done | sort
2232     echo
2233
2234     if test -n "$ac_subst_files"; then
2235       cat <<\_ASBOX
2236 ## ------------------- ##
2237 ## File substitutions. ##
2238 ## ------------------- ##
2239 _ASBOX
2240       echo
2241       for ac_var in $ac_subst_files
2242       do
2243         eval ac_val=\$$ac_var
2244         case $ac_val in
2245         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2246         esac
2247         echo "$ac_var='\''$ac_val'\''"
2248       done | sort
2249       echo
2250     fi
2251
2252     if test -s confdefs.h; then
2253       cat <<\_ASBOX
2254 ## ----------- ##
2255 ## confdefs.h. ##
2256 ## ----------- ##
2257 _ASBOX
2258       echo
2259       cat confdefs.h
2260       echo
2261     fi
2262     test "$ac_signal" != 0 &&
2263       echo "$as_me: caught signal $ac_signal"
2264     echo "$as_me: exit $exit_status"
2265   } >&5
2266   rm -f core *.core core.conftest.* &&
2267     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2268     exit $exit_status
2269 ' 0
2270 for ac_signal in 1 2 13 15; do
2271   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2272 done
2273 ac_signal=0
2274
2275 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2276 rm -f -r conftest* confdefs.h
2277
2278 # Predefined preprocessor variables.
2279
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_NAME "$PACKAGE_NAME"
2282 _ACEOF
2283
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2287 _ACEOF
2288
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2292 _ACEOF
2293
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_STRING "$PACKAGE_STRING"
2297 _ACEOF
2298
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2302 _ACEOF
2303
2304
2305 # Let the site file select an alternate cache file if it wants to.
2306 # Prefer explicitly selected file to automatically selected ones.
2307 if test -n "$CONFIG_SITE"; then
2308   set x "$CONFIG_SITE"
2309 elif test "x$prefix" != xNONE; then
2310   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2311 else
2312   set x "$ac_default_prefix/share/config.site" \
2313         "$ac_default_prefix/etc/config.site"
2314 fi
2315 shift
2316 for ac_site_file
2317 do
2318   if test -r "$ac_site_file"; then
2319     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2320 echo "$as_me: loading site script $ac_site_file" >&6;}
2321     sed 's/^/| /' "$ac_site_file" >&5
2322     . "$ac_site_file"
2323   fi
2324 done
2325
2326 if test -r "$cache_file"; then
2327   # Some versions of bash will fail to source /dev/null (special
2328   # files actually), so we avoid doing that.
2329   if test -f "$cache_file"; then
2330     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2331 echo "$as_me: loading cache $cache_file" >&6;}
2332     case $cache_file in
2333       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334       *)                      . "./$cache_file";;
2335     esac
2336   fi
2337 else
2338   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2339 echo "$as_me: creating cache $cache_file" >&6;}
2340   >$cache_file
2341 fi
2342
2343 # Check that the precious variables saved in the cache have kept the same
2344 # value.
2345 ac_cache_corrupted=false
2346 for ac_var in $ac_precious_vars; do
2347   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2348   eval ac_new_set=\$ac_env_${ac_var}_set
2349   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2350   eval ac_new_val=\$ac_env_${ac_var}_value
2351   case $ac_old_set,$ac_new_set in
2352     set,)
2353       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2354 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2355       ac_cache_corrupted=: ;;
2356     ,set)
2357       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2358 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2359       ac_cache_corrupted=: ;;
2360     ,);;
2361     *)
2362       if test "x$ac_old_val" != "x$ac_new_val"; then
2363         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2364 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2365         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2366 echo "$as_me:   former value:  $ac_old_val" >&2;}
2367         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2368 echo "$as_me:   current value: $ac_new_val" >&2;}
2369         ac_cache_corrupted=:
2370       fi;;
2371   esac
2372   # Pass precious variables to config.status.
2373   if test "$ac_new_set" = set; then
2374     case $ac_new_val in
2375     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2376     *) ac_arg=$ac_var=$ac_new_val ;;
2377     esac
2378     case " $ac_configure_args " in
2379       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2380       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2381     esac
2382   fi
2383 done
2384 if $ac_cache_corrupted; then
2385   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2386 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2387   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2388 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2389    { (exit 1); exit 1; }; }
2390 fi
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416 ac_ext=c
2417 ac_cpp='$CPP $CPPFLAGS'
2418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421
2422
2423
2424
2425
2426 ac_aux_dir=
2427 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2428   if test -f "$ac_dir/install-sh"; then
2429     ac_aux_dir=$ac_dir
2430     ac_install_sh="$ac_aux_dir/install-sh -c"
2431     break
2432   elif test -f "$ac_dir/install.sh"; then
2433     ac_aux_dir=$ac_dir
2434     ac_install_sh="$ac_aux_dir/install.sh -c"
2435     break
2436   elif test -f "$ac_dir/shtool"; then
2437     ac_aux_dir=$ac_dir
2438     ac_install_sh="$ac_aux_dir/shtool install -c"
2439     break
2440   fi
2441 done
2442 if test -z "$ac_aux_dir"; then
2443   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2444 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2445    { (exit 1); exit 1; }; }
2446 fi
2447
2448 # These three variables are undocumented and unsupported,
2449 # and are intended to be withdrawn in a future Autoconf release.
2450 # They can cause serious problems if a builder's source tree is in a directory
2451 # whose full name contains unusual characters.
2452 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2453 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2454 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2455
2456
2457 # Make sure we can run config.sub.
2458 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2459   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2460 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2461    { (exit 1); exit 1; }; }
2462
2463 { echo "$as_me:$LINENO: checking build system type" >&5
2464 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2465 if test "${ac_cv_build+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   ac_build_alias=$build_alias
2469 test "x$ac_build_alias" = x &&
2470   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2471 test "x$ac_build_alias" = x &&
2472   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2473 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2474    { (exit 1); exit 1; }; }
2475 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2476   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2477 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2478    { (exit 1); exit 1; }; }
2479
2480 fi
2481 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2482 echo "${ECHO_T}$ac_cv_build" >&6; }
2483 case $ac_cv_build in
2484 *-*-*) ;;
2485 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2486 echo "$as_me: error: invalid value of canonical build" >&2;}
2487    { (exit 1); exit 1; }; };;
2488 esac
2489 build=$ac_cv_build
2490 ac_save_IFS=$IFS; IFS='-'
2491 set x $ac_cv_build
2492 shift
2493 build_cpu=$1
2494 build_vendor=$2
2495 shift; shift
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2498 build_os=$*
2499 IFS=$ac_save_IFS
2500 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2501
2502
2503 { echo "$as_me:$LINENO: checking host system type" >&5
2504 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2505 if test "${ac_cv_host+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   if test "x$host_alias" = x; then
2509   ac_cv_host=$ac_cv_build
2510 else
2511   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2512     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2513 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2514    { (exit 1); exit 1; }; }
2515 fi
2516
2517 fi
2518 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2519 echo "${ECHO_T}$ac_cv_host" >&6; }
2520 case $ac_cv_host in
2521 *-*-*) ;;
2522 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2523 echo "$as_me: error: invalid value of canonical host" >&2;}
2524    { (exit 1); exit 1; }; };;
2525 esac
2526 host=$ac_cv_host
2527 ac_save_IFS=$IFS; IFS='-'
2528 set x $ac_cv_host
2529 shift
2530 host_cpu=$1
2531 host_vendor=$2
2532 shift; shift
2533 # Remember, the first character of IFS is used to create $*,
2534 # except with old shells:
2535 host_os=$*
2536 IFS=$ac_save_IFS
2537 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2538
2539
2540 { echo "$as_me:$LINENO: checking target system type" >&5
2541 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2542 if test "${ac_cv_target+set}" = set; then
2543   echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545   if test "x$target_alias" = x; then
2546   ac_cv_target=$ac_cv_host
2547 else
2548   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2549     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2550 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2551    { (exit 1); exit 1; }; }
2552 fi
2553
2554 fi
2555 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2556 echo "${ECHO_T}$ac_cv_target" >&6; }
2557 case $ac_cv_target in
2558 *-*-*) ;;
2559 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2560 echo "$as_me: error: invalid value of canonical target" >&2;}
2561    { (exit 1); exit 1; }; };;
2562 esac
2563 target=$ac_cv_target
2564 ac_save_IFS=$IFS; IFS='-'
2565 set x $ac_cv_target
2566 shift
2567 target_cpu=$1
2568 target_vendor=$2
2569 shift; shift
2570 # Remember, the first character of IFS is used to create $*,
2571 # except with old shells:
2572 target_os=$*
2573 IFS=$ac_save_IFS
2574 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2575
2576
2577 # The aliases save the names the user supplied, while $host etc.
2578 # will get canonicalized.
2579 test -n "$target_alias" &&
2580   test "$program_prefix$program_suffix$program_transform_name" = \
2581     NONENONEs,x,x, &&
2582   program_prefix=${target_alias}-
2583
2584
2585
2586 wx_major_version_number=2
2587 wx_minor_version_number=9
2588 wx_release_number=0
2589 wx_subrelease_number=0
2590
2591 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2592 WX_VERSION=$WX_RELEASE.$wx_release_number
2593 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2594
2595 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2596
2597
2598 wx_top_builddir="`pwd`"
2599
2600
2601
2602
2603 USE_UNIX=1
2604 USE_OS2=0
2605 USE_WIN32=0
2606 USE_DOS=0
2607 USE_BEOS=0
2608 USE_MAC=0
2609
2610 USE_AIX=
2611 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2612 USE_GNU=                            USE_HPUX=
2613 USE_LINUX=
2614 USE_NETBSD=
2615 USE_OPENBSD=
2616 USE_OSF=                            USE_SGI=
2617 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2618 USE_ULTRIX=
2619 USE_UNIXWARE=
2620
2621 USE_ALPHA=
2622
2623 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2624
2625 ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA MGL MICROWIN MOTIF MSW PM X11 DFB"
2626
2627 DEFAULT_wxUSE_COCOA=0
2628 DEFAULT_wxUSE_GTK=0
2629 DEFAULT_wxUSE_OSX_CARBON=0
2630 DEFAULT_wxUSE_OSX_COCOA=0
2631 DEFAULT_wxUSE_MGL=0
2632 DEFAULT_wxUSE_MICROWIN=0
2633 DEFAULT_wxUSE_MOTIF=0
2634 DEFAULT_wxUSE_MSW=0
2635 DEFAULT_wxUSE_PM=0
2636 DEFAULT_wxUSE_X11=0
2637 DEFAULT_wxUSE_DFB=0
2638
2639 DEFAULT_DEFAULT_wxUSE_COCOA=0
2640 DEFAULT_DEFAULT_wxUSE_GTK=0
2641 DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0
2642 DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0
2643 DEFAULT_DEFAULT_wxUSE_MGL=0
2644 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2645 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2646 DEFAULT_DEFAULT_wxUSE_MSW=0
2647 DEFAULT_DEFAULT_wxUSE_PM=0
2648 DEFAULT_DEFAULT_wxUSE_X11=0
2649 DEFAULT_DEFAULT_wxUSE_DFB=0
2650
2651 PROGRAM_EXT=
2652 SAMPLES_RPATH_FLAG=
2653 SAMPLES_RPATH_POSTLINK=
2654
2655 DEFAULT_STD_FLAG=yes
2656
2657 case "${host}" in
2658   *-hp-hpux* )
2659     USE_HPUX=1
2660     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2661     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2662     cat >>confdefs.h <<\_ACEOF
2663 #define __HPUX__ 1
2664 _ACEOF
2665
2666
2667             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2668   ;;
2669   *-*-linux* )
2670     USE_LINUX=1
2671     cat >>confdefs.h <<\_ACEOF
2672 #define __LINUX__ 1
2673 _ACEOF
2674
2675     TMP=`uname -m`
2676     if test "x$TMP" = "xalpha"; then
2677       USE_ALPHA=1
2678       cat >>confdefs.h <<\_ACEOF
2679 #define __ALPHA__ 1
2680 _ACEOF
2681
2682     fi
2683     DEFAULT_DEFAULT_wxUSE_GTK=1
2684   ;;
2685   *-*-gnu* | *-*-k*bsd*-gnu )
2686     USE_GNU=1
2687     TMP=`uname -m`
2688     if test "x$TMP" = "xalpha"; then
2689       USE_ALPHA=1
2690       cat >>confdefs.h <<\_ACEOF
2691 #define __ALPHA__ 1
2692 _ACEOF
2693
2694     fi
2695     DEFAULT_DEFAULT_wxUSE_GTK=1
2696   ;;
2697   *-*-irix5* | *-*-irix6* )
2698     USE_SGI=1
2699     USE_SVR4=1
2700     cat >>confdefs.h <<\_ACEOF
2701 #define __SGI__ 1
2702 _ACEOF
2703
2704     cat >>confdefs.h <<\_ACEOF
2705 #define __SVR4__ 1
2706 _ACEOF
2707
2708     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2709   ;;
2710   *-*-solaris2* )
2711     USE_SUN=1
2712     USE_SOLARIS=1
2713     USE_SVR4=1
2714     cat >>confdefs.h <<\_ACEOF
2715 #define __SUN__ 1
2716 _ACEOF
2717
2718     cat >>confdefs.h <<\_ACEOF
2719 #define __SOLARIS__ 1
2720 _ACEOF
2721
2722     cat >>confdefs.h <<\_ACEOF
2723 #define __SVR4__ 1
2724 _ACEOF
2725
2726     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2727     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2728   ;;
2729   *-*-sunos4* )
2730     USE_SUN=1
2731     USE_SUNOS=1
2732     USE_BSD=1
2733     cat >>confdefs.h <<\_ACEOF
2734 #define __SUN__ 1
2735 _ACEOF
2736
2737     cat >>confdefs.h <<\_ACEOF
2738 #define __SUNOS__ 1
2739 _ACEOF
2740
2741     cat >>confdefs.h <<\_ACEOF
2742 #define __BSD__ 1
2743 _ACEOF
2744
2745     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2746   ;;
2747   *-*-freebsd*)
2748     USE_BSD=1
2749     USE_FREEBSD=1
2750     cat >>confdefs.h <<\_ACEOF
2751 #define __FREEBSD__ 1
2752 _ACEOF
2753
2754     cat >>confdefs.h <<\_ACEOF
2755 #define __BSD__ 1
2756 _ACEOF
2757
2758     DEFAULT_DEFAULT_wxUSE_GTK=1
2759   ;;
2760   *-*-openbsd*|*-*-mirbsd*)
2761     USE_BSD=1
2762     USE_OPENBSD=1
2763     cat >>confdefs.h <<\_ACEOF
2764 #define __OPENBSD__ 1
2765 _ACEOF
2766
2767     cat >>confdefs.h <<\_ACEOF
2768 #define __BSD__ 1
2769 _ACEOF
2770
2771     DEFAULT_DEFAULT_wxUSE_GTK=1
2772   ;;
2773   *-*-netbsd*)
2774     USE_BSD=1
2775     USE_NETBSD=1
2776     cat >>confdefs.h <<\_ACEOF
2777 #define __NETBSD__ 1
2778 _ACEOF
2779
2780     cat >>confdefs.h <<\_ACEOF
2781 #define __BSD__ 1
2782 _ACEOF
2783
2784     DEFAULT_DEFAULT_wxUSE_GTK=1
2785     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2786
2787             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2788   ;;
2789   *-*-osf* )
2790     USE_ALPHA=1
2791     USE_OSF=1
2792     cat >>confdefs.h <<\_ACEOF
2793 #define __ALPHA__ 1
2794 _ACEOF
2795
2796     cat >>confdefs.h <<\_ACEOF
2797 #define __OSF__ 1
2798 _ACEOF
2799
2800     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2801     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2802   ;;
2803   *-*-dgux5* )
2804     USE_ALPHA=1
2805     USE_SVR4=1
2806     cat >>confdefs.h <<\_ACEOF
2807 #define __ALPHA__ 1
2808 _ACEOF
2809
2810     cat >>confdefs.h <<\_ACEOF
2811 #define __SVR4__ 1
2812 _ACEOF
2813
2814     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2815   ;;
2816   *-*-sysv5* )
2817     USE_SYSV=1
2818     USE_SVR4=1
2819     cat >>confdefs.h <<\_ACEOF
2820 #define __SYSV__ 1
2821 _ACEOF
2822
2823     cat >>confdefs.h <<\_ACEOF
2824 #define __SVR4__ 1
2825 _ACEOF
2826
2827     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2828   ;;
2829   *-*-aix* )
2830     USE_AIX=1
2831     USE_SYSV=1
2832     USE_SVR4=1
2833     cat >>confdefs.h <<\_ACEOF
2834 #define __AIX__ 1
2835 _ACEOF
2836
2837     cat >>confdefs.h <<\_ACEOF
2838 #define __SYSV__ 1
2839 _ACEOF
2840
2841     cat >>confdefs.h <<\_ACEOF
2842 #define __SVR4__ 1
2843 _ACEOF
2844
2845     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2846   ;;
2847
2848   *-*-*UnixWare*)
2849     USE_SYSV=1
2850     USE_SVR4=1
2851     USE_UNIXWARE=1
2852     cat >>confdefs.h <<\_ACEOF
2853 #define __UNIXWARE__ 1
2854 _ACEOF
2855
2856   ;;
2857
2858   *-*-cygwin* | *-*-mingw32* )
2859                 PROGRAM_EXT=".exe"
2860     DEFAULT_DEFAULT_wxUSE_MSW=1
2861   ;;
2862
2863   *-pc-msdosdjgpp )
2864     USE_UNIX=0
2865     USE_DOS=1
2866     cat >>confdefs.h <<\_ACEOF
2867 #define __DOS__ 1
2868 _ACEOF
2869
2870     PROGRAM_EXT=".exe"
2871     DEFAULT_DEFAULT_wxUSE_MGL=1
2872   ;;
2873
2874   *-pc-os2_emx | *-pc-os2-emx )
2875     cat >>confdefs.h <<\_ACEOF
2876 #define __EMX__ 1
2877 _ACEOF
2878
2879     USE_OS2=1
2880     cat >>confdefs.h <<\_ACEOF
2881 #define __OS2__ 1
2882 _ACEOF
2883
2884     PROGRAM_EXT=".exe"
2885     DEFAULT_DEFAULT_wxUSE_PM=1
2886         CXX=gcc
2887     LDFLAGS="$LDFLAGS -Zcrtdll"
2888                         ac_executable_extensions=".exe"
2889     export ac_executable_extensions
2890             ac_save_IFS="$IFS"
2891     IFS='\\'
2892     ac_TEMP_PATH=
2893     for ac_dir in $PATH; do
2894       IFS=$ac_save_IFS
2895       if test -z "$ac_TEMP_PATH"; then
2896         ac_TEMP_PATH="$ac_dir"
2897       else
2898         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2899       fi
2900     done
2901     export PATH="$ac_TEMP_PATH"
2902     unset ac_TEMP_PATH
2903     DEFAULT_STD_FLAG=no
2904   ;;
2905
2906   *-*-darwin* )
2907         USE_BSD=1
2908     USE_DARWIN=1
2909     cat >>confdefs.h <<\_ACEOF
2910 #define __BSD__ 1
2911 _ACEOF
2912
2913     cat >>confdefs.h <<\_ACEOF
2914 #define __DARWIN__ 1
2915 _ACEOF
2916
2917     cat >>confdefs.h <<\_ACEOF
2918 #define TARGET_CARBON 1
2919 _ACEOF
2920
2921     DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2922     DEFAULT_STD_FLAG=no
2923   ;;
2924   powerpc-apple-macos* )
2925         USE_UNIX=0
2926             ac_cv_c_bigendian=yes
2927             DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1
2928     DEFAULT_STD_FLAG=no
2929   ;;
2930
2931   *-*-beos* )
2932         USE_BEOS=1
2933     cat >>confdefs.h <<\_ACEOF
2934 #define __BEOS__ 1
2935 _ACEOF
2936
2937   ;;
2938
2939   *)
2940     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2941 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2942     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2943 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2944
2945     DEFAULT_DEFAULT_wxUSE_X11=1
2946     DEFAULT_wxUSE_SHARED=no
2947 esac
2948
2949
2950
2951 DEFAULT_wxUSE_ALL_FEATURES=yes
2952
2953 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2954 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2955
2956 DEFAULT_wxUSE_DMALLOC=no
2957 DEFAULT_wxUSE_LIBGNOMEVFS=no
2958 DEFAULT_wxUSE_LIBHILDON=no
2959 DEFAULT_wxUSE_LIBMSPACK=no
2960 DEFAULT_wxUSE_LIBSDL=no
2961 DEFAULT_wxUSE_OPENGL=no
2962
2963 DEFAULT_wxUSE_ACCESSIBILITY=no
2964 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2965 DEFAULT_wxUSE_IPV6=no
2966 DEFAULT_wxUSE_MEDIACTRL=no
2967 DEFAULT_wxUSE_TAB_DIALOG=no
2968 DEFAULT_wxUSE_GSTREAMER8=no
2969
2970 DEFAULT_wxUSE_UNICODE_UTF8=auto
2971 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2972
2973 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2974
2975 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2976
2977 DEFAULT_wxUSE_GTK2=yes
2978
2979 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2980
2981
2982
2983
2984
2985           enablestring=disable
2986           defaultval=
2987           if test -z "$defaultval"; then
2988               if test x"$enablestring" = xdisable; then
2989                   defaultval=yes
2990               else
2991                   defaultval=no
2992               fi
2993           fi
2994
2995           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2996 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2997           # Check whether --enable-gui was given.
2998 if test "${enable_gui+set}" = set; then
2999   enableval=$enable_gui;
3000                           if test "$enableval" = yes; then
3001                             wx_cv_use_gui='wxUSE_GUI=yes'
3002                           else
3003                             wx_cv_use_gui='wxUSE_GUI=no'
3004                           fi
3005
3006 else
3007
3008                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3009
3010 fi
3011
3012
3013           eval "$wx_cv_use_gui"
3014
3015           if test x"$enablestring" = xdisable; then
3016             if test $wxUSE_GUI = yes; then
3017               result=no
3018             else
3019               result=yes
3020             fi
3021           else
3022             result=$wxUSE_GUI
3023           fi
3024
3025           { echo "$as_me:$LINENO: result: $result" >&5
3026 echo "${ECHO_T}$result" >&6; }
3027
3028
3029           enablestring=
3030           defaultval=
3031           if test -z "$defaultval"; then
3032               if test x"$enablestring" = xdisable; then
3033                   defaultval=yes
3034               else
3035                   defaultval=no
3036               fi
3037           fi
3038
3039           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3040 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3041           # Check whether --enable-monolithic was given.
3042 if test "${enable_monolithic+set}" = set; then
3043   enableval=$enable_monolithic;
3044                           if test "$enableval" = yes; then
3045                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3046                           else
3047                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3048                           fi
3049
3050 else
3051
3052                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3053
3054 fi
3055
3056
3057           eval "$wx_cv_use_monolithic"
3058
3059           if test x"$enablestring" = xdisable; then
3060             if test $wxUSE_MONOLITHIC = yes; then
3061               result=no
3062             else
3063               result=yes
3064             fi
3065           else
3066             result=$wxUSE_MONOLITHIC
3067           fi
3068
3069           { echo "$as_me:$LINENO: result: $result" >&5
3070 echo "${ECHO_T}$result" >&6; }
3071
3072
3073           enablestring=
3074           defaultval=
3075           if test -z "$defaultval"; then
3076               if test x"$enablestring" = xdisable; then
3077                   defaultval=yes
3078               else
3079                   defaultval=no
3080               fi
3081           fi
3082
3083           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3084 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3085           # Check whether --enable-plugins was given.
3086 if test "${enable_plugins+set}" = set; then
3087   enableval=$enable_plugins;
3088                           if test "$enableval" = yes; then
3089                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3090                           else
3091                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3092                           fi
3093
3094 else
3095
3096                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3097
3098 fi
3099
3100
3101           eval "$wx_cv_use_plugins"
3102
3103           if test x"$enablestring" = xdisable; then
3104             if test $wxUSE_PLUGINS = yes; then
3105               result=no
3106             else
3107               result=yes
3108             fi
3109           else
3110             result=$wxUSE_PLUGINS
3111           fi
3112
3113           { echo "$as_me:$LINENO: result: $result" >&5
3114 echo "${ECHO_T}$result" >&6; }
3115
3116
3117           withstring=without
3118           defaultval=$wxUSE_ALL_FEATURES
3119           if test -z "$defaultval"; then
3120               if test x"$withstring" = xwithout; then
3121                   defaultval=yes
3122               else
3123                   defaultval=no
3124               fi
3125           fi
3126           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3127 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3128
3129 # Check whether --with-subdirs was given.
3130 if test "${with_subdirs+set}" = set; then
3131   withval=$with_subdirs;
3132                         if test "$withval" = yes; then
3133                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3134                         else
3135                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3136                         fi
3137
3138 else
3139
3140                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3141
3142 fi
3143
3144
3145           eval "$wx_cv_use_subdirs"
3146
3147           if test x"$withstring" = xwithout; then
3148             if test $wxWITH_SUBDIRS = yes; then
3149               result=no
3150             else
3151               result=yes
3152             fi
3153           else
3154             result=$wxWITH_SUBDIRS
3155           fi
3156
3157           { echo "$as_me:$LINENO: result: $result" >&5
3158 echo "${ECHO_T}$result" >&6; }
3159
3160
3161 # Check whether --with-flavour was given.
3162 if test "${with_flavour+set}" = set; then
3163   withval=$with_flavour; WX_FLAVOUR="$withval"
3164 fi
3165
3166
3167           enablestring=
3168           defaultval=
3169           if test -z "$defaultval"; then
3170               if test x"$enablestring" = xdisable; then
3171                   defaultval=yes
3172               else
3173                   defaultval=no
3174               fi
3175           fi
3176
3177           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3178 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3179           # Check whether --enable-official_build was given.
3180 if test "${enable_official_build+set}" = set; then
3181   enableval=$enable_official_build;
3182                           if test "$enableval" = yes; then
3183                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3184                           else
3185                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3186                           fi
3187
3188 else
3189
3190                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3191
3192 fi
3193
3194
3195           eval "$wx_cv_use_official_build"
3196
3197           if test x"$enablestring" = xdisable; then
3198             if test $wxUSE_OFFICIAL_BUILD = yes; then
3199               result=no
3200             else
3201               result=yes
3202             fi
3203           else
3204             result=$wxUSE_OFFICIAL_BUILD
3205           fi
3206
3207           { echo "$as_me:$LINENO: result: $result" >&5
3208 echo "${ECHO_T}$result" >&6; }
3209
3210 # Check whether --enable-vendor was given.
3211 if test "${enable_vendor+set}" = set; then
3212   enableval=$enable_vendor; VENDOR="$enableval"
3213 fi
3214
3215 if test "x$VENDOR" = "x"; then
3216     VENDOR="custom"
3217 fi
3218
3219
3220           enablestring=disable
3221           defaultval=
3222           if test -z "$defaultval"; then
3223               if test x"$enablestring" = xdisable; then
3224                   defaultval=yes
3225               else
3226                   defaultval=no
3227               fi
3228           fi
3229
3230           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3231 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3232           # Check whether --enable-all-features was given.
3233 if test "${enable_all_features+set}" = set; then
3234   enableval=$enable_all_features;
3235                           if test "$enableval" = yes; then
3236                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3237                           else
3238                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3239                           fi
3240
3241 else
3242
3243                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3244
3245 fi
3246
3247
3248           eval "$wx_cv_use_all_features"
3249
3250           if test x"$enablestring" = xdisable; then
3251             if test $wxUSE_ALL_FEATURES = yes; then
3252               result=no
3253             else
3254               result=yes
3255             fi
3256           else
3257             result=$wxUSE_ALL_FEATURES
3258           fi
3259
3260           { echo "$as_me:$LINENO: result: $result" >&5
3261 echo "${ECHO_T}$result" >&6; }
3262
3263
3264
3265 if test "$wxUSE_GUI" = "yes"; then
3266
3267
3268           enablestring=
3269           defaultval=
3270           if test -z "$defaultval"; then
3271               if test x"$enablestring" = xdisable; then
3272                   defaultval=yes
3273               else
3274                   defaultval=no
3275               fi
3276           fi
3277
3278           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3279 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3280           # Check whether --enable-universal was given.
3281 if test "${enable_universal+set}" = set; then
3282   enableval=$enable_universal;
3283                           if test "$enableval" = yes; then
3284                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3285                           else
3286                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3287                           fi
3288
3289 else
3290
3291                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3292
3293 fi
3294
3295
3296           eval "$wx_cv_use_universal"
3297
3298           if test x"$enablestring" = xdisable; then
3299             if test $wxUSE_UNIVERSAL = yes; then
3300               result=no
3301             else
3302               result=yes
3303             fi
3304           else
3305             result=$wxUSE_UNIVERSAL
3306           fi
3307
3308           { echo "$as_me:$LINENO: result: $result" >&5
3309 echo "${ECHO_T}$result" >&6; }
3310
3311 if test "$wxUSE_UNIVERSAL" = "yes"; then
3312
3313 # Check whether --with-themes was given.
3314 if test "${with_themes+set}" = set; then
3315   withval=$with_themes; wxUNIV_THEMES="$withval"
3316 fi
3317
3318 fi
3319
3320
3321 # Check whether --with-gtk was given.
3322 if test "${with_gtk+set}" = set; then
3323   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3324 fi
3325
3326
3327 # Check whether --with-motif was given.
3328 if test "${with_motif+set}" = set; then
3329   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3330 fi
3331
3332
3333 # Check whether --with-osx_carbon was given.
3334 if test "${with_osx_carbon+set}" = set; then
3335   withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3336 fi
3337
3338
3339 # Check whether --with-osx_cocoa was given.
3340 if test "${with_osx_cocoa+set}" = set; then
3341   withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1
3342 fi
3343
3344
3345 # Check whether --with-mac was given.
3346 if test "${with_mac+set}" = set; then
3347   withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1
3348 fi
3349
3350
3351 # Check whether --with-cocoa was given.
3352 if test "${with_cocoa+set}" = set; then
3353   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3354 fi
3355
3356
3357 # Check whether --with-wine was given.
3358 if test "${with_wine+set}" = set; then
3359   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3360 fi
3361
3362
3363 # Check whether --with-msw was given.
3364 if test "${with_msw+set}" = set; then
3365   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3366 fi
3367
3368
3369 # Check whether --with-pm was given.
3370 if test "${with_pm+set}" = set; then
3371   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3372 fi
3373
3374
3375 # Check whether --with-mgl was given.
3376 if test "${with_mgl+set}" = set; then
3377   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3378 fi
3379
3380
3381 # Check whether --with-directfb was given.
3382 if test "${with_directfb+set}" = set; then
3383   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3384 fi
3385
3386
3387 # Check whether --with-microwin was given.
3388 if test "${with_microwin+set}" = set; then
3389   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3390 fi
3391
3392
3393 # Check whether --with-x11 was given.
3394 if test "${with_x11+set}" = set; then
3395   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3396 fi
3397
3398
3399           enablestring=
3400           defaultval=
3401           if test -z "$defaultval"; then
3402               if test x"$enablestring" = xdisable; then
3403                   defaultval=yes
3404               else
3405                   defaultval=no
3406               fi
3407           fi
3408
3409           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3410 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3411           # Check whether --enable-nanox was given.
3412 if test "${enable_nanox+set}" = set; then
3413   enableval=$enable_nanox;
3414                           if test "$enableval" = yes; then
3415                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3416                           else
3417                             wx_cv_use_nanox='wxUSE_NANOX=no'
3418                           fi
3419
3420 else
3421
3422                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3423
3424 fi
3425
3426
3427           eval "$wx_cv_use_nanox"
3428
3429           if test x"$enablestring" = xdisable; then
3430             if test $wxUSE_NANOX = yes; then
3431               result=no
3432             else
3433               result=yes
3434             fi
3435           else
3436             result=$wxUSE_NANOX
3437           fi
3438
3439           { echo "$as_me:$LINENO: result: $result" >&5
3440 echo "${ECHO_T}$result" >&6; }
3441
3442
3443 # Check whether --enable-gtk2 was given.
3444 if test "${enable_gtk2+set}" = set; then
3445   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3446 fi
3447
3448
3449           enablestring=
3450           defaultval=
3451           if test -z "$defaultval"; then
3452               if test x"$enablestring" = xdisable; then
3453                   defaultval=yes
3454               else
3455                   defaultval=no
3456               fi
3457           fi
3458
3459           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3460 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3461           # Check whether --enable-gpe was given.
3462 if test "${enable_gpe+set}" = set; then
3463   enableval=$enable_gpe;
3464                           if test "$enableval" = yes; then
3465                             wx_cv_use_gpe='wxUSE_GPE=yes'
3466                           else
3467                             wx_cv_use_gpe='wxUSE_GPE=no'
3468                           fi
3469
3470 else
3471
3472                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3473
3474 fi
3475
3476
3477           eval "$wx_cv_use_gpe"
3478
3479           if test x"$enablestring" = xdisable; then
3480             if test $wxUSE_GPE = yes; then
3481               result=no
3482             else
3483               result=yes
3484             fi
3485           else
3486             result=$wxUSE_GPE
3487           fi
3488
3489           { echo "$as_me:$LINENO: result: $result" >&5
3490 echo "${ECHO_T}$result" >&6; }
3491
3492
3493
3494 { echo "$as_me:$LINENO: checking for toolkit" >&5
3495 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
3496
3497
3498
3499 # In Wine, we need to default to MSW, not GTK or MOTIF
3500 if test "$wxUSE_WINE" = "yes"; then
3501     DEFAULT_DEFAULT_wxUSE_GTK=0
3502     DEFAULT_DEFAULT_wxUSE_MOTIF=0
3503     DEFAULT_DEFAULT_wxUSE_MSW=1
3504     wxUSE_SHARED=no
3505     CC=${CC:-winegcc}
3506     CXX=${CXX:-wineg++}
3507 fi
3508
3509
3510 if test "$wxUSE_GUI" = "yes"; then
3511
3512     if test "$USE_BEOS" = 1; then
3513         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
3514 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
3515    { (exit 1); exit 1; }; }
3516     fi
3517
3518     if test "$TOOLKIT_GIVEN" = 1; then
3519             for toolkit in $ALL_TOOLKITS; do
3520         var=wxUSE_$toolkit
3521         eval "value=\$${var}"
3522         if test "x$value" = "xno"; then
3523           eval "$var=0"
3524         elif test "x$value" != "x"; then
3525           eval "$var=1"
3526         fi
3527
3528         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
3529           eval "wx${toolkit}_VERSION=$value"
3530         fi
3531       done
3532     else
3533             for toolkit in $ALL_TOOLKITS; do
3534         var=DEFAULT_DEFAULT_wxUSE_$toolkit
3535         eval "wxUSE_$toolkit=\$${var}"
3536       done
3537     fi
3538
3539             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \
3540                   + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} \
3541                   + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
3542
3543         case "${host}" in
3544       *-pc-os2_emx | *-pc-os2-emx )
3545         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3546     esac
3547
3548     case "$NUM_TOOLKITS" in
3549       1)
3550       ;;
3551       0)
3552         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
3553 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
3554    { (exit 1); exit 1; }; }
3555       ;;
3556       *)
3557         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit" >&5
3558 echo "$as_me: error: Please specify at most one toolkit" >&2;}
3559    { (exit 1); exit 1; }; }
3560     esac
3561
3562     # to be removed when --disable-gtk2 isn't needed
3563     if test "x$wxUSE_GTK2" = "xyes"; then
3564         wxGTK_VERSION=2
3565     elif test "x$wxUSE_GTK2" = "xno"; then
3566         wxGTK_VERSION=1
3567     fi
3568
3569     for toolkit in $ALL_TOOLKITS; do
3570         var=wxUSE_$toolkit
3571         eval "value=\$${var}"
3572         if test "$value" = 1; then
3573           toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'`
3574           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
3575 echo "${ECHO_T}$toolkit_echo" >&6; }
3576         fi
3577     done
3578 else
3579     if test "x$host_alias" != "x"; then
3580         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
3581 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
3582     else
3583         { echo "$as_me:$LINENO: result: base only" >&5
3584 echo "${ECHO_T}base only" >&6; }
3585     fi
3586 fi
3587
3588 wxUSE_MAC=0
3589 if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1; then
3590     wxUSE_MAC=1
3591 fi
3592
3593
3594
3595           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3596 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3597
3598 # Check whether --with-libpng was given.
3599 if test "${with_libpng+set}" = set; then
3600   withval=$with_libpng;
3601                         if test "$withval" = yes; then
3602                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3603                         elif test "$withval" = no; then
3604                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3605                         elif test "$withval" = sys; then
3606                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3607                         elif test "$withval" = builtin; then
3608                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3609                         else
3610                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3611 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3612    { (exit 1); exit 1; }; }
3613                         fi
3614
3615 else
3616
3617                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3618
3619 fi
3620
3621
3622           eval "$wx_cv_use_libpng"
3623
3624           if test "$wxUSE_LIBPNG" = yes; then
3625             { echo "$as_me:$LINENO: result: yes" >&5
3626 echo "${ECHO_T}yes" >&6; }
3627           elif test "$wxUSE_LIBPNG" = no; then
3628             { echo "$as_me:$LINENO: result: no" >&5
3629 echo "${ECHO_T}no" >&6; }
3630           elif test "$wxUSE_LIBPNG" = sys; then
3631             { echo "$as_me:$LINENO: result: system version" >&5
3632 echo "${ECHO_T}system version" >&6; }
3633           elif test "$wxUSE_LIBPNG" = builtin; then
3634             { echo "$as_me:$LINENO: result: builtin version" >&5
3635 echo "${ECHO_T}builtin version" >&6; }
3636           else
3637             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3638 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3639    { (exit 1); exit 1; }; }
3640           fi
3641
3642
3643           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3644 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3645
3646 # Check whether --with-libjpeg was given.
3647 if test "${with_libjpeg+set}" = set; then
3648   withval=$with_libjpeg;
3649                         if test "$withval" = yes; then
3650                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3651                         elif test "$withval" = no; then
3652                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3653                         elif test "$withval" = sys; then
3654                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3655                         elif test "$withval" = builtin; then
3656                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3657                         else
3658                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3659 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3660    { (exit 1); exit 1; }; }
3661                         fi
3662
3663 else
3664
3665                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3666
3667 fi
3668
3669
3670           eval "$wx_cv_use_libjpeg"
3671
3672           if test "$wxUSE_LIBJPEG" = yes; then
3673             { echo "$as_me:$LINENO: result: yes" >&5
3674 echo "${ECHO_T}yes" >&6; }
3675           elif test "$wxUSE_LIBJPEG" = no; then
3676             { echo "$as_me:$LINENO: result: no" >&5
3677 echo "${ECHO_T}no" >&6; }
3678           elif test "$wxUSE_LIBJPEG" = sys; then
3679             { echo "$as_me:$LINENO: result: system version" >&5
3680 echo "${ECHO_T}system version" >&6; }
3681           elif test "$wxUSE_LIBJPEG" = builtin; then
3682             { echo "$as_me:$LINENO: result: builtin version" >&5
3683 echo "${ECHO_T}builtin version" >&6; }
3684           else
3685             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3686 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3687    { (exit 1); exit 1; }; }
3688           fi
3689
3690
3691           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3692 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3693
3694 # Check whether --with-libtiff was given.
3695 if test "${with_libtiff+set}" = set; then
3696   withval=$with_libtiff;
3697                         if test "$withval" = yes; then
3698                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3699                         elif test "$withval" = no; then
3700                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3701                         elif test "$withval" = sys; then
3702                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3703                         elif test "$withval" = builtin; then
3704                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3705                         else
3706                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3707 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3708    { (exit 1); exit 1; }; }
3709                         fi
3710
3711 else
3712
3713                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3714
3715 fi
3716
3717
3718           eval "$wx_cv_use_libtiff"
3719
3720           if test "$wxUSE_LIBTIFF" = yes; then
3721             { echo "$as_me:$LINENO: result: yes" >&5
3722 echo "${ECHO_T}yes" >&6; }
3723           elif test "$wxUSE_LIBTIFF" = no; then
3724             { echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6; }
3726           elif test "$wxUSE_LIBTIFF" = sys; then
3727             { echo "$as_me:$LINENO: result: system version" >&5
3728 echo "${ECHO_T}system version" >&6; }
3729           elif test "$wxUSE_LIBTIFF" = builtin; then
3730             { echo "$as_me:$LINENO: result: builtin version" >&5
3731 echo "${ECHO_T}builtin version" >&6; }
3732           else
3733             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3734 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3735    { (exit 1); exit 1; }; }
3736           fi
3737
3738
3739           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3740 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3741
3742 # Check whether --with-libxpm was given.
3743 if test "${with_libxpm+set}" = set; then
3744   withval=$with_libxpm;
3745                         if test "$withval" = yes; then
3746                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3747                         elif test "$withval" = no; then
3748                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3749                         elif test "$withval" = sys; then
3750                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3751                         elif test "$withval" = builtin; then
3752                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3753                         else
3754                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3755 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3756    { (exit 1); exit 1; }; }
3757                         fi
3758
3759 else
3760
3761                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3762
3763 fi
3764
3765
3766           eval "$wx_cv_use_libxpm"
3767
3768           if test "$wxUSE_LIBXPM" = yes; then
3769             { echo "$as_me:$LINENO: result: yes" >&5
3770 echo "${ECHO_T}yes" >&6; }
3771           elif test "$wxUSE_LIBXPM" = no; then
3772             { echo "$as_me:$LINENO: result: no" >&5
3773 echo "${ECHO_T}no" >&6; }
3774           elif test "$wxUSE_LIBXPM" = sys; then
3775             { echo "$as_me:$LINENO: result: system version" >&5
3776 echo "${ECHO_T}system version" >&6; }
3777           elif test "$wxUSE_LIBXPM" = builtin; then
3778             { echo "$as_me:$LINENO: result: builtin version" >&5
3779 echo "${ECHO_T}builtin version" >&6; }
3780           else
3781             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3782 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3783    { (exit 1); exit 1; }; }
3784           fi
3785
3786
3787           withstring=
3788           defaultval=$wxUSE_ALL_FEATURES
3789           if test -z "$defaultval"; then
3790               if test x"$withstring" = xwithout; then
3791                   defaultval=yes
3792               else
3793                   defaultval=no
3794               fi
3795           fi
3796           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libiconv" >&5
3797 echo $ECHO_N "checking for --${withstring:-with}-libiconv... $ECHO_C" >&6; }
3798
3799 # Check whether --with-libiconv was given.
3800 if test "${with_libiconv+set}" = set; then
3801   withval=$with_libiconv;
3802                         if test "$withval" = yes; then
3803                           wx_cv_use_libiconv='wxUSE_LIBICONV=yes'
3804                         else
3805                           wx_cv_use_libiconv='wxUSE_LIBICONV=no'
3806                         fi
3807
3808 else
3809
3810                         wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}"
3811
3812 fi
3813
3814
3815           eval "$wx_cv_use_libiconv"
3816
3817           if test x"$withstring" = xwithout; then
3818             if test $wxUSE_LIBICONV = yes; then
3819               result=no
3820             else
3821               result=yes
3822             fi
3823           else
3824             result=$wxUSE_LIBICONV
3825           fi
3826
3827           { echo "$as_me:$LINENO: result: $result" >&5
3828 echo "${ECHO_T}$result" >&6; }
3829
3830
3831           withstring=
3832           defaultval=$wxUSE_ALL_FEATURES
3833           if test -z "$defaultval"; then
3834               if test x"$withstring" = xwithout; then
3835                   defaultval=yes
3836               else
3837                   defaultval=no
3838               fi
3839           fi
3840           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3841 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3842
3843 # Check whether --with-libmspack was given.
3844 if test "${with_libmspack+set}" = set; then
3845   withval=$with_libmspack;
3846                         if test "$withval" = yes; then
3847                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3848                         else
3849                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3850                         fi
3851
3852 else
3853
3854                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3855
3856 fi
3857
3858
3859           eval "$wx_cv_use_libmspack"
3860
3861           if test x"$withstring" = xwithout; then
3862             if test $wxUSE_LIBMSPACK = yes; then
3863               result=no
3864             else
3865               result=yes
3866             fi
3867           else
3868             result=$wxUSE_LIBMSPACK
3869           fi
3870
3871           { echo "$as_me:$LINENO: result: $result" >&5
3872 echo "${ECHO_T}$result" >&6; }
3873
3874
3875           withstring=without
3876           defaultval=$wxUSE_ALL_FEATURES
3877           if test -z "$defaultval"; then
3878               if test x"$withstring" = xwithout; then
3879                   defaultval=yes
3880               else
3881                   defaultval=no
3882               fi
3883           fi
3884           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3885 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3886
3887 # Check whether --with-gtkprint was given.
3888 if test "${with_gtkprint+set}" = set; then
3889   withval=$with_gtkprint;
3890                         if test "$withval" = yes; then
3891                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3892                         else
3893                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3894                         fi
3895
3896 else
3897
3898                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3899
3900 fi
3901
3902
3903           eval "$wx_cv_use_gtkprint"
3904
3905           if test x"$withstring" = xwithout; then
3906             if test $wxUSE_GTKPRINT = yes; then
3907               result=no
3908             else
3909               result=yes
3910             fi
3911           else
3912             result=$wxUSE_GTKPRINT
3913           fi
3914
3915           { echo "$as_me:$LINENO: result: $result" >&5
3916 echo "${ECHO_T}$result" >&6; }
3917
3918
3919           withstring=without
3920           defaultval=$wxUSE_ALL_FEATURES
3921           if test -z "$defaultval"; then
3922               if test x"$withstring" = xwithout; then
3923                   defaultval=yes
3924               else
3925                   defaultval=no
3926               fi
3927           fi
3928           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3929 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3930
3931 # Check whether --with-gnomeprint was given.
3932 if test "${with_gnomeprint+set}" = set; then
3933   withval=$with_gnomeprint;
3934                         if test "$withval" = yes; then
3935                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3936                         else
3937                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3938                         fi
3939
3940 else
3941
3942                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3943
3944 fi
3945
3946
3947           eval "$wx_cv_use_gnomeprint"
3948
3949           if test x"$withstring" = xwithout; then
3950             if test $wxUSE_LIBGNOMEPRINT = yes; then
3951               result=no
3952             else
3953               result=yes
3954             fi
3955           else
3956             result=$wxUSE_LIBGNOMEPRINT
3957           fi
3958
3959           { echo "$as_me:$LINENO: result: $result" >&5
3960 echo "${ECHO_T}$result" >&6; }
3961
3962
3963           withstring=
3964           defaultval=$wxUSE_ALL_FEATURES
3965           if test -z "$defaultval"; then
3966               if test x"$withstring" = xwithout; then
3967                   defaultval=yes
3968               else
3969                   defaultval=no
3970               fi
3971           fi
3972           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3973 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3974
3975 # Check whether --with-gnomevfs was given.
3976 if test "${with_gnomevfs+set}" = set; then
3977   withval=$with_gnomevfs;
3978                         if test "$withval" = yes; then
3979                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3980                         else
3981                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3982                         fi
3983
3984 else
3985
3986                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3987
3988 fi
3989
3990
3991           eval "$wx_cv_use_gnomevfs"
3992
3993           if test x"$withstring" = xwithout; then
3994             if test $wxUSE_LIBGNOMEVFS = yes; then
3995               result=no
3996             else
3997               result=yes
3998             fi
3999           else
4000             result=$wxUSE_LIBGNOMEVFS
4001           fi
4002
4003           { echo "$as_me:$LINENO: result: $result" >&5
4004 echo "${ECHO_T}$result" >&6; }
4005
4006
4007           withstring=
4008           defaultval=$wxUSE_ALL_FEATURES
4009           if test -z "$defaultval"; then
4010               if test x"$withstring" = xwithout; then
4011                   defaultval=yes
4012               else
4013                   defaultval=no
4014               fi
4015           fi
4016           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4017 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4018
4019 # Check whether --with-hildon was given.
4020 if test "${with_hildon+set}" = set; then
4021   withval=$with_hildon;
4022                         if test "$withval" = yes; then
4023                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4024                         else
4025                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4026                         fi
4027
4028 else
4029
4030                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4031
4032 fi
4033
4034
4035           eval "$wx_cv_use_hildon"
4036
4037           if test x"$withstring" = xwithout; then
4038             if test $wxUSE_LIBHILDON = yes; then
4039               result=no
4040             else
4041               result=yes
4042             fi
4043           else
4044             result=$wxUSE_LIBHILDON
4045           fi
4046
4047           { echo "$as_me:$LINENO: result: $result" >&5
4048 echo "${ECHO_T}$result" >&6; }
4049
4050
4051           withstring=
4052           defaultval=$wxUSE_ALL_FEATURES
4053           if test -z "$defaultval"; then
4054               if test x"$withstring" = xwithout; then
4055                   defaultval=yes
4056               else
4057                   defaultval=no
4058               fi
4059           fi
4060           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4061 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4062
4063 # Check whether --with-opengl was given.
4064 if test "${with_opengl+set}" = set; then
4065   withval=$with_opengl;
4066                         if test "$withval" = yes; then
4067                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4068                         else
4069                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4070                         fi
4071
4072 else
4073
4074                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4075
4076 fi
4077
4078
4079           eval "$wx_cv_use_opengl"
4080
4081           if test x"$withstring" = xwithout; then
4082             if test $wxUSE_OPENGL = yes; then
4083               result=no
4084             else
4085               result=yes
4086             fi
4087           else
4088             result=$wxUSE_OPENGL
4089           fi
4090
4091           { echo "$as_me:$LINENO: result: $result" >&5
4092 echo "${ECHO_T}$result" >&6; }
4093
4094
4095 fi
4096
4097
4098           withstring=
4099           defaultval=$wxUSE_ALL_FEATURES
4100           if test -z "$defaultval"; then
4101               if test x"$withstring" = xwithout; then
4102                   defaultval=yes
4103               else
4104                   defaultval=no
4105               fi
4106           fi
4107           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4108 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4109
4110 # Check whether --with-dmalloc was given.
4111 if test "${with_dmalloc+set}" = set; then
4112   withval=$with_dmalloc;
4113                         if test "$withval" = yes; then
4114                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4115                         else
4116                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4117                         fi
4118
4119 else
4120
4121                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4122
4123 fi
4124
4125
4126           eval "$wx_cv_use_dmalloc"
4127
4128           if test x"$withstring" = xwithout; then
4129             if test $wxUSE_DMALLOC = yes; then
4130               result=no
4131             else
4132               result=yes
4133             fi
4134           else
4135             result=$wxUSE_DMALLOC
4136           fi
4137
4138           { echo "$as_me:$LINENO: result: $result" >&5
4139 echo "${ECHO_T}$result" >&6; }
4140
4141
4142           withstring=
4143           defaultval=$wxUSE_ALL_FEATURES
4144           if test -z "$defaultval"; then
4145               if test x"$withstring" = xwithout; then
4146                   defaultval=yes
4147               else
4148                   defaultval=no
4149               fi
4150           fi
4151           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4152 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4153
4154 # Check whether --with-sdl was given.
4155 if test "${with_sdl+set}" = set; then
4156   withval=$with_sdl;
4157                         if test "$withval" = yes; then
4158                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4159                         else
4160                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4161                         fi
4162
4163 else
4164
4165                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4166
4167 fi
4168
4169
4170           eval "$wx_cv_use_sdl"
4171
4172           if test x"$withstring" = xwithout; then
4173             if test $wxUSE_LIBSDL = yes; then
4174               result=no
4175             else
4176               result=yes
4177             fi
4178           else
4179             result=$wxUSE_LIBSDL
4180           fi
4181
4182           { echo "$as_me:$LINENO: result: $result" >&5
4183 echo "${ECHO_T}$result" >&6; }
4184
4185
4186           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4187 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4188
4189 # Check whether --with-regex was given.
4190 if test "${with_regex+set}" = set; then
4191   withval=$with_regex;
4192                         if test "$withval" = yes; then
4193                           wx_cv_use_regex='wxUSE_REGEX=yes'
4194                         elif test "$withval" = no; then
4195                           wx_cv_use_regex='wxUSE_REGEX=no'
4196                         elif test "$withval" = sys; then
4197                           wx_cv_use_regex='wxUSE_REGEX=sys'
4198                         elif test "$withval" = builtin; then
4199                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4200                         else
4201                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4202 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4203    { (exit 1); exit 1; }; }
4204                         fi
4205
4206 else
4207
4208                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4209
4210 fi
4211
4212
4213           eval "$wx_cv_use_regex"
4214
4215           if test "$wxUSE_REGEX" = yes; then
4216             { echo "$as_me:$LINENO: result: yes" >&5
4217 echo "${ECHO_T}yes" >&6; }
4218           elif test "$wxUSE_REGEX" = no; then
4219             { echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6; }
4221           elif test "$wxUSE_REGEX" = sys; then
4222             { echo "$as_me:$LINENO: result: system version" >&5
4223 echo "${ECHO_T}system version" >&6; }
4224           elif test "$wxUSE_REGEX" = builtin; then
4225             { echo "$as_me:$LINENO: result: builtin version" >&5
4226 echo "${ECHO_T}builtin version" >&6; }
4227           else
4228             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4229 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4230    { (exit 1); exit 1; }; }
4231           fi
4232
4233
4234           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4235 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4236
4237 # Check whether --with-zlib was given.
4238 if test "${with_zlib+set}" = set; then
4239   withval=$with_zlib;
4240                         if test "$withval" = yes; then
4241                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4242                         elif test "$withval" = no; then
4243                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4244                         elif test "$withval" = sys; then
4245                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4246                         elif test "$withval" = builtin; then
4247                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4248                         else
4249                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4250 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4251    { (exit 1); exit 1; }; }
4252                         fi
4253
4254 else
4255
4256                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4257
4258 fi
4259
4260
4261           eval "$wx_cv_use_zlib"
4262
4263           if test "$wxUSE_ZLIB" = yes; then
4264             { echo "$as_me:$LINENO: result: yes" >&5
4265 echo "${ECHO_T}yes" >&6; }
4266           elif test "$wxUSE_ZLIB" = no; then
4267             { echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6; }
4269           elif test "$wxUSE_ZLIB" = sys; then
4270             { echo "$as_me:$LINENO: result: system version" >&5
4271 echo "${ECHO_T}system version" >&6; }
4272           elif test "$wxUSE_ZLIB" = builtin; then
4273             { echo "$as_me:$LINENO: result: builtin version" >&5
4274 echo "${ECHO_T}builtin version" >&6; }
4275           else
4276             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4277 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4278    { (exit 1); exit 1; }; }
4279           fi
4280
4281
4282           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4283 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4284
4285 # Check whether --with-expat was given.
4286 if test "${with_expat+set}" = set; then
4287   withval=$with_expat;
4288                         if test "$withval" = yes; then
4289                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4290                         elif test "$withval" = no; then
4291                           wx_cv_use_expat='wxUSE_EXPAT=no'
4292                         elif test "$withval" = sys; then
4293                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4294                         elif test "$withval" = builtin; then
4295                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4296                         else
4297                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4298 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4299    { (exit 1); exit 1; }; }
4300                         fi
4301
4302 else
4303
4304                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4305
4306 fi
4307
4308
4309           eval "$wx_cv_use_expat"
4310
4311           if test "$wxUSE_EXPAT" = yes; then
4312             { echo "$as_me:$LINENO: result: yes" >&5
4313 echo "${ECHO_T}yes" >&6; }
4314           elif test "$wxUSE_EXPAT" = no; then
4315             { echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6; }
4317           elif test "$wxUSE_EXPAT" = sys; then
4318             { echo "$as_me:$LINENO: result: system version" >&5
4319 echo "${ECHO_T}system version" >&6; }
4320           elif test "$wxUSE_EXPAT" = builtin; then
4321             { echo "$as_me:$LINENO: result: builtin version" >&5
4322 echo "${ECHO_T}builtin version" >&6; }
4323           else
4324             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4325 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4326    { (exit 1); exit 1; }; }
4327           fi
4328
4329
4330 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4331 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4332
4333 # Check whether --with-macosx-sdk was given.
4334 if test "${with_macosx_sdk+set}" = set; then
4335   withval=$with_macosx_sdk;
4336         wxUSE_MACOSX_SDK=$withval
4337         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4338
4339 fi
4340
4341 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4342 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4343
4344 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4345 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4346
4347 # Check whether --with-macosx-version-min was given.
4348 if test "${with_macosx_version_min+set}" = set; then
4349   withval=$with_macosx_version_min;
4350         wxUSE_MACOSX_VERSION_MIN=$withval
4351         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4352
4353 fi
4354
4355 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4356 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4357
4358
4359
4360           enablestring=disable
4361           defaultval=
4362           if test -z "$defaultval"; then
4363               if test x"$enablestring" = xdisable; then
4364                   defaultval=yes
4365               else
4366                   defaultval=no
4367               fi
4368           fi
4369
4370           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4371 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4372           # Check whether --enable-shared was given.
4373 if test "${enable_shared+set}" = set; then
4374   enableval=$enable_shared;
4375                           if test "$enableval" = yes; then
4376                             wx_cv_use_shared='wxUSE_SHARED=yes'
4377                           else
4378                             wx_cv_use_shared='wxUSE_SHARED=no'
4379                           fi
4380
4381 else
4382
4383                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4384
4385 fi
4386
4387
4388           eval "$wx_cv_use_shared"
4389
4390           if test x"$enablestring" = xdisable; then
4391             if test $wxUSE_SHARED = yes; then
4392               result=no
4393             else
4394               result=yes
4395             fi
4396           else
4397             result=$wxUSE_SHARED
4398           fi
4399
4400           { echo "$as_me:$LINENO: result: $result" >&5
4401 echo "${ECHO_T}$result" >&6; }
4402
4403
4404           enablestring=
4405           defaultval=
4406           if test -z "$defaultval"; then
4407               if test x"$enablestring" = xdisable; then
4408                   defaultval=yes
4409               else
4410                   defaultval=no
4411               fi
4412           fi
4413
4414           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4415 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4416           # Check whether --enable-debug was given.
4417 if test "${enable_debug+set}" = set; then
4418   enableval=$enable_debug;
4419                           if test "$enableval" = yes; then
4420                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4421                           else
4422                             wx_cv_use_debug='wxUSE_DEBUG=no'
4423                           fi
4424
4425 else
4426
4427                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4428
4429 fi
4430
4431
4432           eval "$wx_cv_use_debug"
4433
4434           if test x"$enablestring" = xdisable; then
4435             if test $wxUSE_DEBUG = yes; then
4436               result=no
4437             else
4438               result=yes
4439             fi
4440           else
4441             result=$wxUSE_DEBUG
4442           fi
4443
4444           { echo "$as_me:$LINENO: result: $result" >&5
4445 echo "${ECHO_T}$result" >&6; }
4446
4447
4448           enablestring=
4449           defaultval=
4450           if test -z "$defaultval"; then
4451               if test x"$enablestring" = xdisable; then
4452                   defaultval=yes
4453               else
4454                   defaultval=no
4455               fi
4456           fi
4457
4458           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4459 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4460           # Check whether --enable-stl was given.
4461 if test "${enable_stl+set}" = set; then
4462   enableval=$enable_stl;
4463                           if test "$enableval" = yes; then
4464                             wx_cv_use_stl='wxUSE_STL=yes'
4465                           else
4466                             wx_cv_use_stl='wxUSE_STL=no'
4467                           fi
4468
4469 else
4470
4471                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4472
4473 fi
4474
4475
4476           eval "$wx_cv_use_stl"
4477
4478           if test x"$enablestring" = xdisable; then
4479             if test $wxUSE_STL = yes; then
4480               result=no
4481             else
4482               result=yes
4483             fi
4484           else
4485             result=$wxUSE_STL
4486           fi
4487
4488           { echo "$as_me:$LINENO: result: $result" >&5
4489 echo "${ECHO_T}$result" >&6; }
4490
4491
4492           enablestring=
4493           defaultval=
4494           if test -z "$defaultval"; then
4495               if test x"$enablestring" = xdisable; then
4496                   defaultval=yes
4497               else
4498                   defaultval=no
4499               fi
4500           fi
4501
4502           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4503 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4504           # Check whether --enable-std_iostreams was given.
4505 if test "${enable_std_iostreams+set}" = set; then
4506   enableval=$enable_std_iostreams;
4507                           if test "$enableval" = yes; then
4508                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4509                           else
4510                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4511                           fi
4512
4513 else
4514
4515                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4516
4517 fi
4518
4519
4520           eval "$wx_cv_use_std_iostreams"
4521
4522           if test x"$enablestring" = xdisable; then
4523             if test $wxUSE_STD_IOSTREAM = yes; then
4524               result=no
4525             else
4526               result=yes
4527             fi
4528           else
4529             result=$wxUSE_STD_IOSTREAM
4530           fi
4531
4532           { echo "$as_me:$LINENO: result: $result" >&5
4533 echo "${ECHO_T}$result" >&6; }
4534
4535
4536           enablestring=
4537           defaultval=
4538           if test -z "$defaultval"; then
4539               if test x"$enablestring" = xdisable; then
4540                   defaultval=yes
4541               else
4542                   defaultval=no
4543               fi
4544           fi
4545
4546           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4547 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4548           # Check whether --enable-std_string was given.
4549 if test "${enable_std_string+set}" = set; then
4550   enableval=$enable_std_string;
4551                           if test "$enableval" = yes; then
4552                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4553                           else
4554                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4555                           fi
4556
4557 else
4558
4559                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4560
4561 fi
4562
4563
4564           eval "$wx_cv_use_std_string"
4565
4566           if test x"$enablestring" = xdisable; then
4567             if test $wxUSE_STD_STRING = yes; then
4568               result=no
4569             else
4570               result=yes
4571             fi
4572           else
4573             result=$wxUSE_STD_STRING
4574           fi
4575
4576           { echo "$as_me:$LINENO: result: $result" >&5
4577 echo "${ECHO_T}$result" >&6; }
4578
4579
4580           enablestring=disable
4581           defaultval=
4582           if test -z "$defaultval"; then
4583               if test x"$enablestring" = xdisable; then
4584                   defaultval=yes
4585               else
4586                   defaultval=no
4587               fi
4588           fi
4589
4590           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4591 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4592           # Check whether --enable-unicode was given.
4593 if test "${enable_unicode+set}" = set; then
4594   enableval=$enable_unicode;
4595                           if test "$enableval" = yes; then
4596                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4597                           else
4598                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4599                           fi
4600
4601 else
4602
4603                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4604
4605 fi
4606
4607
4608           eval "$wx_cv_use_unicode"
4609
4610           if test x"$enablestring" = xdisable; then
4611             if test $wxUSE_UNICODE = yes; then
4612               result=no
4613             else
4614               result=yes
4615             fi
4616           else
4617             result=$wxUSE_UNICODE
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}-mslu" >&5
4635 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4636           # Check whether --enable-mslu was given.
4637 if test "${enable_mslu+set}" = set; then
4638   enableval=$enable_mslu;
4639                           if test "$enableval" = yes; then
4640                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4641                           else
4642                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4643                           fi
4644
4645 else
4646
4647                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4648
4649 fi
4650
4651
4652           eval "$wx_cv_use_mslu"
4653
4654           if test x"$enablestring" = xdisable; then
4655             if test $wxUSE_UNICODE_MSLU = yes; then
4656               result=no
4657             else
4658               result=yes
4659             fi
4660           else
4661             result=$wxUSE_UNICODE_MSLU
4662           fi
4663
4664           { echo "$as_me:$LINENO: result: $result" >&5
4665 echo "${ECHO_T}$result" >&6; }
4666
4667
4668           enablestring=
4669           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4670 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4671           # Check whether --enable-utf8 was given.
4672 if test "${enable_utf8+set}" = set; then
4673   enableval=$enable_utf8;
4674                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4675
4676 else
4677
4678                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4679
4680 fi
4681
4682
4683           eval "$wx_cv_use_utf8"
4684
4685           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4686 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4687
4688
4689           enablestring=
4690           defaultval=
4691           if test -z "$defaultval"; then
4692               if test x"$enablestring" = xdisable; then
4693                   defaultval=yes
4694               else
4695                   defaultval=no
4696               fi
4697           fi
4698
4699           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4700 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4701           # Check whether --enable-utf8only was given.
4702 if test "${enable_utf8only+set}" = set; then
4703   enableval=$enable_utf8only;
4704                           if test "$enableval" = yes; then
4705                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4706                           else
4707                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4708                           fi
4709
4710 else
4711
4712                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4713
4714 fi
4715
4716
4717           eval "$wx_cv_use_utf8only"
4718
4719           if test x"$enablestring" = xdisable; then
4720             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4721               result=no
4722             else
4723               result=yes
4724             fi
4725           else
4726             result=$wxUSE_UNICODE_UTF8_LOCALE
4727           fi
4728
4729           { echo "$as_me:$LINENO: result: $result" >&5
4730 echo "${ECHO_T}$result" >&6; }
4731
4732
4733           enablestring=
4734           defaultval=
4735           if test -z "$defaultval"; then
4736               if test x"$enablestring" = xdisable; then
4737                   defaultval=yes
4738               else
4739                   defaultval=no
4740               fi
4741           fi
4742
4743           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4744 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4745           # Check whether --enable-extended_rtti was given.
4746 if test "${enable_extended_rtti+set}" = set; then
4747   enableval=$enable_extended_rtti;
4748                           if test "$enableval" = yes; then
4749                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4750                           else
4751                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4752                           fi
4753
4754 else
4755
4756                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
4757
4758 fi
4759
4760
4761           eval "$wx_cv_use_extended_rtti"
4762
4763           if test x"$enablestring" = xdisable; then
4764             if test $wxUSE_EXTENDED_RTTI = yes; then
4765               result=no
4766             else
4767               result=yes
4768             fi
4769           else
4770             result=$wxUSE_EXTENDED_RTTI
4771           fi
4772
4773           { echo "$as_me:$LINENO: result: $result" >&5
4774 echo "${ECHO_T}$result" >&6; }
4775
4776 if test "$USE_OS2" = 1; then
4777     DEFAULT_wxUSE_OMF=no
4778
4779           enablestring=
4780           defaultval=
4781           if test -z "$defaultval"; then
4782               if test x"$enablestring" = xdisable; then
4783                   defaultval=yes
4784               else
4785                   defaultval=no
4786               fi
4787           fi
4788
4789           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
4790 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
4791           # Check whether --enable-omf was given.
4792 if test "${enable_omf+set}" = set; then
4793   enableval=$enable_omf;
4794                           if test "$enableval" = yes; then
4795                             wx_cv_use_omf='wxUSE_OMF=yes'
4796                           else
4797                             wx_cv_use_omf='wxUSE_OMF=no'
4798                           fi
4799
4800 else
4801
4802                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
4803
4804 fi
4805
4806
4807           eval "$wx_cv_use_omf"
4808
4809           if test x"$enablestring" = xdisable; then
4810             if test $wxUSE_OMF = yes; then
4811               result=no
4812             else
4813               result=yes
4814             fi
4815           else
4816             result=$wxUSE_OMF
4817           fi
4818
4819           { echo "$as_me:$LINENO: result: $result" >&5
4820 echo "${ECHO_T}$result" >&6; }
4821
4822 fi
4823
4824 if test "$wxUSE_DEBUG" = "yes"; then
4825     DEFAULT_wxUSE_DEBUG_FLAG=yes
4826     DEFAULT_wxUSE_DEBUG_INFO=yes
4827     BUILD=debug
4828 elif test "$wxUSE_DEBUG" = "no"; then
4829     DEFAULT_wxUSE_DEBUG_FLAG=no
4830     DEFAULT_wxUSE_DEBUG_INFO=no
4831     BUILD=release
4832 fi
4833
4834
4835           enablestring=
4836           defaultval=
4837           if test -z "$defaultval"; then
4838               if test x"$enablestring" = xdisable; then
4839                   defaultval=yes
4840               else
4841                   defaultval=no
4842               fi
4843           fi
4844
4845           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4846 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
4847           # Check whether --enable-debug_flag was given.
4848 if test "${enable_debug_flag+set}" = set; then
4849   enableval=$enable_debug_flag;
4850                           if test "$enableval" = yes; then
4851                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4852                           else
4853                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4854                           fi
4855
4856 else
4857
4858                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
4859
4860 fi
4861
4862
4863           eval "$wx_cv_use_debug_flag"
4864
4865           if test x"$enablestring" = xdisable; then
4866             if test $wxUSE_DEBUG_FLAG = yes; then
4867               result=no
4868             else
4869               result=yes
4870             fi
4871           else
4872             result=$wxUSE_DEBUG_FLAG
4873           fi
4874
4875           { echo "$as_me:$LINENO: result: $result" >&5
4876 echo "${ECHO_T}$result" >&6; }
4877
4878
4879           enablestring=
4880           defaultval=
4881           if test -z "$defaultval"; then
4882               if test x"$enablestring" = xdisable; then
4883                   defaultval=yes
4884               else
4885                   defaultval=no
4886               fi
4887           fi
4888
4889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4890 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
4891           # Check whether --enable-debug_info was given.
4892 if test "${enable_debug_info+set}" = set; then
4893   enableval=$enable_debug_info;
4894                           if test "$enableval" = yes; then
4895                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4896                           else
4897                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4898                           fi
4899
4900 else
4901
4902                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
4903
4904 fi
4905
4906
4907           eval "$wx_cv_use_debug_info"
4908
4909           if test x"$enablestring" = xdisable; then
4910             if test $wxUSE_DEBUG_INFO = yes; then
4911               result=no
4912             else
4913               result=yes
4914             fi
4915           else
4916             result=$wxUSE_DEBUG_INFO
4917           fi
4918
4919           { echo "$as_me:$LINENO: result: $result" >&5
4920 echo "${ECHO_T}$result" >&6; }
4921
4922
4923 if test "$wxUSE_DEBUG_FLAG" = "yes" -a "$wxUSE_DEBUG_INFO" = "yes"; then
4924     wxUSE_DEBUG=yes
4925     BUILD=debug
4926 fi
4927
4928 if test "$wxUSE_DEBUG" = "yes"; then
4929     DEFAULT_wxUSE_OPTIMISE=no
4930 fi
4931
4932
4933           enablestring=disable
4934           defaultval=
4935           if test -z "$defaultval"; then
4936               if test x"$enablestring" = xdisable; then
4937                   defaultval=yes
4938               else
4939                   defaultval=no
4940               fi
4941           fi
4942
4943           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4944 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4945           # Check whether --enable-optimise was given.
4946 if test "${enable_optimise+set}" = set; then
4947   enableval=$enable_optimise;
4948                           if test "$enableval" = yes; then
4949                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4950                           else
4951                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4952                           fi
4953
4954 else
4955
4956                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4957
4958 fi
4959
4960
4961           eval "$wx_cv_use_optimise"
4962
4963           if test x"$enablestring" = xdisable; then
4964             if test $wxUSE_OPTIMISE = yes; then
4965               result=no
4966             else
4967               result=yes
4968             fi
4969           else
4970             result=$wxUSE_OPTIMISE
4971           fi
4972
4973           { echo "$as_me:$LINENO: result: $result" >&5
4974 echo "${ECHO_T}$result" >&6; }
4975
4976
4977
4978           enablestring=
4979           defaultval=
4980           if test -z "$defaultval"; then
4981               if test x"$enablestring" = xdisable; then
4982                   defaultval=yes
4983               else
4984                   defaultval=no
4985               fi
4986           fi
4987
4988           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4989 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
4990           # Check whether --enable-debug_gdb was given.
4991 if test "${enable_debug_gdb+set}" = set; then
4992   enableval=$enable_debug_gdb;
4993                           if test "$enableval" = yes; then
4994                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4995                           else
4996                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4997                           fi
4998
4999 else
5000
5001                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
5002
5003 fi
5004
5005
5006           eval "$wx_cv_use_debug_gdb"
5007
5008           if test x"$enablestring" = xdisable; then
5009             if test $wxUSE_DEBUG_GDB = yes; then
5010               result=no
5011             else
5012               result=yes
5013             fi
5014           else
5015             result=$wxUSE_DEBUG_GDB
5016           fi
5017
5018           { echo "$as_me:$LINENO: result: $result" >&5
5019 echo "${ECHO_T}$result" >&6; }
5020
5021
5022           enablestring=
5023           defaultval=
5024           if test -z "$defaultval"; then
5025               if test x"$enablestring" = xdisable; then
5026                   defaultval=yes
5027               else
5028                   defaultval=no
5029               fi
5030           fi
5031
5032           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5033 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5034           # Check whether --enable-debug_cntxt was given.
5035 if test "${enable_debug_cntxt+set}" = set; then
5036   enableval=$enable_debug_cntxt;
5037                           if test "$enableval" = yes; then
5038                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5039                           else
5040                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5041                           fi
5042
5043 else
5044
5045                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5046
5047 fi
5048
5049
5050           eval "$wx_cv_use_debug_cntxt"
5051
5052           if test x"$enablestring" = xdisable; then
5053             if test $wxUSE_DEBUG_CONTEXT = yes; then
5054               result=no
5055             else
5056               result=yes
5057             fi
5058           else
5059             result=$wxUSE_DEBUG_CONTEXT
5060           fi
5061
5062           { echo "$as_me:$LINENO: result: $result" >&5
5063 echo "${ECHO_T}$result" >&6; }
5064
5065
5066           enablestring=
5067           defaultval=
5068           if test -z "$defaultval"; then
5069               if test x"$enablestring" = xdisable; then
5070                   defaultval=yes
5071               else
5072                   defaultval=no
5073               fi
5074           fi
5075
5076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5077 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5078           # Check whether --enable-mem_tracing was given.
5079 if test "${enable_mem_tracing+set}" = set; then
5080   enableval=$enable_mem_tracing;
5081                           if test "$enableval" = yes; then
5082                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5083                           else
5084                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5085                           fi
5086
5087 else
5088
5089                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5090
5091 fi
5092
5093
5094           eval "$wx_cv_use_mem_tracing"
5095
5096           if test x"$enablestring" = xdisable; then
5097             if test $wxUSE_MEM_TRACING = yes; then
5098               result=no
5099             else
5100               result=yes
5101             fi
5102           else
5103             result=$wxUSE_MEM_TRACING
5104           fi
5105
5106           { echo "$as_me:$LINENO: result: $result" >&5
5107 echo "${ECHO_T}$result" >&6; }
5108
5109
5110           enablestring=
5111           defaultval=
5112           if test -z "$defaultval"; then
5113               if test x"$enablestring" = xdisable; then
5114                   defaultval=yes
5115               else
5116                   defaultval=no
5117               fi
5118           fi
5119
5120           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5121 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5122           # Check whether --enable-profile was given.
5123 if test "${enable_profile+set}" = set; then
5124   enableval=$enable_profile;
5125                           if test "$enableval" = yes; then
5126                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5127                           else
5128                             wx_cv_use_profile='wxUSE_PROFILE=no'
5129                           fi
5130
5131 else
5132
5133                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5134
5135 fi
5136
5137
5138           eval "$wx_cv_use_profile"
5139
5140           if test x"$enablestring" = xdisable; then
5141             if test $wxUSE_PROFILE = yes; then
5142               result=no
5143             else
5144               result=yes
5145             fi
5146           else
5147             result=$wxUSE_PROFILE
5148           fi
5149
5150           { echo "$as_me:$LINENO: result: $result" >&5
5151 echo "${ECHO_T}$result" >&6; }
5152
5153
5154           enablestring=
5155           defaultval=
5156           if test -z "$defaultval"; then
5157               if test x"$enablestring" = xdisable; then
5158                   defaultval=yes
5159               else
5160                   defaultval=no
5161               fi
5162           fi
5163
5164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5165 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5166           # Check whether --enable-no_rtti was given.
5167 if test "${enable_no_rtti+set}" = set; then
5168   enableval=$enable_no_rtti;
5169                           if test "$enableval" = yes; then
5170                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5171                           else
5172                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5173                           fi
5174
5175 else
5176
5177                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5178
5179 fi
5180
5181
5182           eval "$wx_cv_use_no_rtti"
5183
5184           if test x"$enablestring" = xdisable; then
5185             if test $wxUSE_NO_RTTI = yes; then
5186               result=no
5187             else
5188               result=yes
5189             fi
5190           else
5191             result=$wxUSE_NO_RTTI
5192           fi
5193
5194           { echo "$as_me:$LINENO: result: $result" >&5
5195 echo "${ECHO_T}$result" >&6; }
5196
5197
5198           enablestring=
5199           defaultval=
5200           if test -z "$defaultval"; then
5201               if test x"$enablestring" = xdisable; then
5202                   defaultval=yes
5203               else
5204                   defaultval=no
5205               fi
5206           fi
5207
5208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5209 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5210           # Check whether --enable-no_exceptions was given.
5211 if test "${enable_no_exceptions+set}" = set; then
5212   enableval=$enable_no_exceptions;
5213                           if test "$enableval" = yes; then
5214                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5215                           else
5216                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5217                           fi
5218
5219 else
5220
5221                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5222
5223 fi
5224
5225
5226           eval "$wx_cv_use_no_exceptions"
5227
5228           if test x"$enablestring" = xdisable; then
5229             if test $wxUSE_NO_EXCEPTIONS = yes; then
5230               result=no
5231             else
5232               result=yes
5233             fi
5234           else
5235             result=$wxUSE_NO_EXCEPTIONS
5236           fi
5237
5238           { echo "$as_me:$LINENO: result: $result" >&5
5239 echo "${ECHO_T}$result" >&6; }
5240
5241
5242           enablestring=
5243           defaultval=
5244           if test -z "$defaultval"; then
5245               if test x"$enablestring" = xdisable; then
5246                   defaultval=yes
5247               else
5248                   defaultval=no
5249               fi
5250           fi
5251
5252           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5253 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5254           # Check whether --enable-permissive was given.
5255 if test "${enable_permissive+set}" = set; then
5256   enableval=$enable_permissive;
5257                           if test "$enableval" = yes; then
5258                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5259                           else
5260                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5261                           fi
5262
5263 else
5264
5265                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5266
5267 fi
5268
5269
5270           eval "$wx_cv_use_permissive"
5271
5272           if test x"$enablestring" = xdisable; then
5273             if test $wxUSE_PERMISSIVE = yes; then
5274               result=no
5275             else
5276               result=yes
5277             fi
5278           else
5279             result=$wxUSE_PERMISSIVE
5280           fi
5281
5282           { echo "$as_me:$LINENO: result: $result" >&5
5283 echo "${ECHO_T}$result" >&6; }
5284
5285
5286           enablestring=
5287           defaultval=
5288           if test -z "$defaultval"; then
5289               if test x"$enablestring" = xdisable; then
5290                   defaultval=yes
5291               else
5292                   defaultval=no
5293               fi
5294           fi
5295
5296           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5297 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5298           # Check whether --enable-no_deps was given.
5299 if test "${enable_no_deps+set}" = set; then
5300   enableval=$enable_no_deps;
5301                           if test "$enableval" = yes; then
5302                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5303                           else
5304                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5305                           fi
5306
5307 else
5308
5309                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5310
5311 fi
5312
5313
5314           eval "$wx_cv_use_no_deps"
5315
5316           if test x"$enablestring" = xdisable; then
5317             if test $wxUSE_NO_DEPS = yes; then
5318               result=no
5319             else
5320               result=yes
5321             fi
5322           else
5323             result=$wxUSE_NO_DEPS
5324           fi
5325
5326           { echo "$as_me:$LINENO: result: $result" >&5
5327 echo "${ECHO_T}$result" >&6; }
5328
5329
5330           enablestring=disable
5331           defaultval=
5332           if test -z "$defaultval"; then
5333               if test x"$enablestring" = xdisable; then
5334                   defaultval=yes
5335               else
5336                   defaultval=no
5337               fi
5338           fi
5339
5340           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5341 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5342           # Check whether --enable-vararg_macros was given.
5343 if test "${enable_vararg_macros+set}" = set; then
5344   enableval=$enable_vararg_macros;
5345                           if test "$enableval" = yes; then
5346                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5347                           else
5348                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5349                           fi
5350
5351 else
5352
5353                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5354
5355 fi
5356
5357
5358           eval "$wx_cv_use_vararg_macros"
5359
5360           if test x"$enablestring" = xdisable; then
5361             if test $wxUSE_VARARG_MACROS = yes; then
5362               result=no
5363             else
5364               result=yes
5365             fi
5366           else
5367             result=$wxUSE_VARARG_MACROS
5368           fi
5369
5370           { echo "$as_me:$LINENO: result: $result" >&5
5371 echo "${ECHO_T}$result" >&6; }
5372
5373
5374           enablestring=
5375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5376 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5377           # Check whether --enable-universal_binary was given.
5378 if test "${enable_universal_binary+set}" = set; then
5379   enableval=$enable_universal_binary;
5380                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5381
5382 else
5383
5384                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5385
5386 fi
5387
5388
5389           eval "$wx_cv_use_universal_binary"
5390
5391           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5392 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5393
5394
5395
5396           enablestring=
5397           defaultval=
5398           if test -z "$defaultval"; then
5399               if test x"$enablestring" = xdisable; then
5400                   defaultval=yes
5401               else
5402                   defaultval=no
5403               fi
5404           fi
5405
5406           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5407 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5408           # Check whether --enable-compat26 was given.
5409 if test "${enable_compat26+set}" = set; then
5410   enableval=$enable_compat26;
5411                           if test "$enableval" = yes; then
5412                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5413                           else
5414                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5415                           fi
5416
5417 else
5418
5419                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5420
5421 fi
5422
5423
5424           eval "$wx_cv_use_compat26"
5425
5426           if test x"$enablestring" = xdisable; then
5427             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5428               result=no
5429             else
5430               result=yes
5431             fi
5432           else
5433             result=$WXWIN_COMPATIBILITY_2_6
5434           fi
5435
5436           { echo "$as_me:$LINENO: result: $result" >&5
5437 echo "${ECHO_T}$result" >&6; }
5438
5439
5440           enablestring=disable
5441           defaultval=
5442           if test -z "$defaultval"; then
5443               if test x"$enablestring" = xdisable; then
5444                   defaultval=yes
5445               else
5446                   defaultval=no
5447               fi
5448           fi
5449
5450           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5451 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5452           # Check whether --enable-compat28 was given.
5453 if test "${enable_compat28+set}" = set; then
5454   enableval=$enable_compat28;
5455                           if test "$enableval" = yes; then
5456                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5457                           else
5458                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5459                           fi
5460
5461 else
5462
5463                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5464
5465 fi
5466
5467
5468           eval "$wx_cv_use_compat28"
5469
5470           if test x"$enablestring" = xdisable; then
5471             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5472               result=no
5473             else
5474               result=yes
5475             fi
5476           else
5477             result=$WXWIN_COMPATIBILITY_2_8
5478           fi
5479
5480           { echo "$as_me:$LINENO: result: $result" >&5
5481 echo "${ECHO_T}$result" >&6; }
5482
5483
5484
5485           enablestring=disable
5486           defaultval=
5487           if test -z "$defaultval"; then
5488               if test x"$enablestring" = xdisable; then
5489                   defaultval=yes
5490               else
5491                   defaultval=no
5492               fi
5493           fi
5494
5495           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5496 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5497           # Check whether --enable-rpath was given.
5498 if test "${enable_rpath+set}" = set; then
5499   enableval=$enable_rpath;
5500                           if test "$enableval" = yes; then
5501                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5502                           else
5503                             wx_cv_use_rpath='wxUSE_RPATH=no'
5504                           fi
5505
5506 else
5507
5508                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5509
5510 fi
5511
5512
5513           eval "$wx_cv_use_rpath"
5514
5515           if test x"$enablestring" = xdisable; then
5516             if test $wxUSE_RPATH = yes; then
5517               result=no
5518             else
5519               result=yes
5520             fi
5521           else
5522             result=$wxUSE_RPATH
5523           fi
5524
5525           { echo "$as_me:$LINENO: result: $result" >&5
5526 echo "${ECHO_T}$result" >&6; }
5527
5528
5529
5530           enablestring=
5531           defaultval=
5532           if test -z "$defaultval"; then
5533               if test x"$enablestring" = xdisable; then
5534                   defaultval=yes
5535               else
5536                   defaultval=no
5537               fi
5538           fi
5539
5540           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5541 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5542           # Check whether --enable-objc_uniquifying was given.
5543 if test "${enable_objc_uniquifying+set}" = set; then
5544   enableval=$enable_objc_uniquifying;
5545                           if test "$enableval" = yes; then
5546                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5547                           else
5548                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5549                           fi
5550
5551 else
5552
5553                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5554
5555 fi
5556
5557
5558           eval "$wx_cv_use_objc_uniquifying"
5559
5560           if test x"$enablestring" = xdisable; then
5561             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5562               result=no
5563             else
5564               result=yes
5565             fi
5566           else
5567             result=$wxUSE_OBJC_UNIQUIFYING
5568           fi
5569
5570           { echo "$as_me:$LINENO: result: $result" >&5
5571 echo "${ECHO_T}$result" >&6; }
5572
5573
5574
5575           enablestring=disable
5576           defaultval=
5577           if test -z "$defaultval"; then
5578               if test x"$enablestring" = xdisable; then
5579                   defaultval=yes
5580               else
5581                   defaultval=no
5582               fi
5583           fi
5584
5585           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5586 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5587           # Check whether --enable-visibility was given.
5588 if test "${enable_visibility+set}" = set; then
5589   enableval=$enable_visibility;
5590                           if test "$enableval" = yes; then
5591                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5592                           else
5593                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5594                           fi
5595
5596 else
5597
5598                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5599
5600 fi
5601
5602
5603           eval "$wx_cv_use_visibility"
5604
5605           if test x"$enablestring" = xdisable; then
5606             if test $wxUSE_VISIBILITY = yes; then
5607               result=no
5608             else
5609               result=yes
5610             fi
5611           else
5612             result=$wxUSE_VISIBILITY
5613           fi
5614
5615           { echo "$as_me:$LINENO: result: $result" >&5
5616 echo "${ECHO_T}$result" >&6; }
5617
5618
5619
5620
5621           enablestring=
5622           defaultval=$wxUSE_ALL_FEATURES
5623           if test -z "$defaultval"; then
5624               if test x"$enablestring" = xdisable; then
5625                   defaultval=yes
5626               else
5627                   defaultval=no
5628               fi
5629           fi
5630
5631           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
5632 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
5633           # Check whether --enable-intl was given.
5634 if test "${enable_intl+set}" = set; then
5635   enableval=$enable_intl;
5636                           if test "$enableval" = yes; then
5637                             wx_cv_use_intl='wxUSE_INTL=yes'
5638                           else
5639                             wx_cv_use_intl='wxUSE_INTL=no'
5640                           fi
5641
5642 else
5643
5644                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
5645
5646 fi
5647
5648
5649           eval "$wx_cv_use_intl"
5650
5651           if test x"$enablestring" = xdisable; then
5652             if test $wxUSE_INTL = yes; then
5653               result=no
5654             else
5655               result=yes
5656             fi
5657           else
5658             result=$wxUSE_INTL
5659           fi
5660
5661           { echo "$as_me:$LINENO: result: $result" >&5
5662 echo "${ECHO_T}$result" >&6; }
5663
5664
5665           enablestring=
5666           defaultval=$wxUSE_ALL_FEATURES
5667           if test -z "$defaultval"; then
5668               if test x"$enablestring" = xdisable; then
5669                   defaultval=yes
5670               else
5671                   defaultval=no
5672               fi
5673           fi
5674
5675           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xlocale" >&5
5676 echo $ECHO_N "checking for --${enablestring:-enable}-xlocale... $ECHO_C" >&6; }
5677           # Check whether --enable-xlocale was given.
5678 if test "${enable_xlocale+set}" = set; then
5679   enableval=$enable_xlocale;
5680                           if test "$enableval" = yes; then
5681                             wx_cv_use_xlocale='wxUSE_XLOCALE=yes'
5682                           else
5683                             wx_cv_use_xlocale='wxUSE_XLOCALE=no'
5684                           fi
5685
5686 else
5687
5688                           wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}"
5689
5690 fi
5691
5692
5693           eval "$wx_cv_use_xlocale"
5694
5695           if test x"$enablestring" = xdisable; then
5696             if test $wxUSE_XLOCALE = yes; then
5697               result=no
5698             else
5699               result=yes
5700             fi
5701           else
5702             result=$wxUSE_XLOCALE
5703           fi
5704
5705           { echo "$as_me:$LINENO: result: $result" >&5
5706 echo "${ECHO_T}$result" >&6; }
5707
5708
5709           enablestring=
5710           defaultval=$wxUSE_ALL_FEATURES
5711           if test -z "$defaultval"; then
5712               if test x"$enablestring" = xdisable; then
5713                   defaultval=yes
5714               else
5715                   defaultval=no
5716               fi
5717           fi
5718
5719           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
5720 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
5721           # Check whether --enable-config was given.
5722 if test "${enable_config+set}" = set; then
5723   enableval=$enable_config;
5724                           if test "$enableval" = yes; then
5725                             wx_cv_use_config='wxUSE_CONFIG=yes'
5726                           else
5727                             wx_cv_use_config='wxUSE_CONFIG=no'
5728                           fi
5729
5730 else
5731
5732                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
5733
5734 fi
5735
5736
5737           eval "$wx_cv_use_config"
5738
5739           if test x"$enablestring" = xdisable; then
5740             if test $wxUSE_CONFIG = yes; then
5741               result=no
5742             else
5743               result=yes
5744             fi
5745           else
5746             result=$wxUSE_CONFIG
5747           fi
5748
5749           { echo "$as_me:$LINENO: result: $result" >&5
5750 echo "${ECHO_T}$result" >&6; }
5751
5752
5753
5754           enablestring=
5755           defaultval=$wxUSE_ALL_FEATURES
5756           if test -z "$defaultval"; then
5757               if test x"$enablestring" = xdisable; then
5758                   defaultval=yes
5759               else
5760                   defaultval=no
5761               fi
5762           fi
5763
5764           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
5765 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
5766           # Check whether --enable-protocols was given.
5767 if test "${enable_protocols+set}" = set; then
5768   enableval=$enable_protocols;
5769                           if test "$enableval" = yes; then
5770                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
5771                           else
5772                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
5773                           fi
5774
5775 else
5776
5777                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
5778
5779 fi
5780
5781
5782           eval "$wx_cv_use_protocols"
5783
5784           if test x"$enablestring" = xdisable; then
5785             if test $wxUSE_PROTOCOL = yes; then
5786               result=no
5787             else
5788               result=yes
5789             fi
5790           else
5791             result=$wxUSE_PROTOCOL
5792           fi
5793
5794           { echo "$as_me:$LINENO: result: $result" >&5
5795 echo "${ECHO_T}$result" >&6; }
5796
5797
5798           enablestring=
5799           defaultval=$wxUSE_ALL_FEATURES
5800           if test -z "$defaultval"; then
5801               if test x"$enablestring" = xdisable; then
5802                   defaultval=yes
5803               else
5804                   defaultval=no
5805               fi
5806           fi
5807
5808           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
5809 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
5810           # Check whether --enable-ftp was given.
5811 if test "${enable_ftp+set}" = set; then
5812   enableval=$enable_ftp;
5813                           if test "$enableval" = yes; then
5814                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
5815                           else
5816                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
5817                           fi
5818
5819 else
5820
5821                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
5822
5823 fi
5824
5825
5826           eval "$wx_cv_use_ftp"
5827
5828           if test x"$enablestring" = xdisable; then
5829             if test $wxUSE_PROTOCOL_FTP = yes; then
5830               result=no
5831             else
5832               result=yes
5833             fi
5834           else
5835             result=$wxUSE_PROTOCOL_FTP
5836           fi
5837
5838           { echo "$as_me:$LINENO: result: $result" >&5
5839 echo "${ECHO_T}$result" >&6; }
5840
5841
5842           enablestring=
5843           defaultval=$wxUSE_ALL_FEATURES
5844           if test -z "$defaultval"; then
5845               if test x"$enablestring" = xdisable; then
5846                   defaultval=yes
5847               else
5848                   defaultval=no
5849               fi
5850           fi
5851
5852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
5853 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
5854           # Check whether --enable-http was given.
5855 if test "${enable_http+set}" = set; then
5856   enableval=$enable_http;
5857                           if test "$enableval" = yes; then
5858                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
5859                           else
5860                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
5861                           fi
5862
5863 else
5864
5865                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
5866
5867 fi
5868
5869
5870           eval "$wx_cv_use_http"
5871
5872           if test x"$enablestring" = xdisable; then
5873             if test $wxUSE_PROTOCOL_HTTP = yes; then
5874               result=no
5875             else
5876               result=yes
5877             fi
5878           else
5879             result=$wxUSE_PROTOCOL_HTTP
5880           fi
5881
5882           { echo "$as_me:$LINENO: result: $result" >&5
5883 echo "${ECHO_T}$result" >&6; }
5884
5885
5886           enablestring=
5887           defaultval=$wxUSE_ALL_FEATURES
5888           if test -z "$defaultval"; then
5889               if test x"$enablestring" = xdisable; then
5890                   defaultval=yes
5891               else
5892                   defaultval=no
5893               fi
5894           fi
5895
5896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
5897 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
5898           # Check whether --enable-fileproto was given.
5899 if test "${enable_fileproto+set}" = set; then
5900   enableval=$enable_fileproto;
5901                           if test "$enableval" = yes; then
5902                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
5903                           else
5904                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
5905                           fi
5906
5907 else
5908
5909                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
5910
5911 fi
5912
5913
5914           eval "$wx_cv_use_fileproto"
5915
5916           if test x"$enablestring" = xdisable; then
5917             if test $wxUSE_PROTOCOL_FILE = yes; then
5918               result=no
5919             else
5920               result=yes
5921             fi
5922           else
5923             result=$wxUSE_PROTOCOL_FILE
5924           fi
5925
5926           { echo "$as_me:$LINENO: result: $result" >&5
5927 echo "${ECHO_T}$result" >&6; }
5928
5929
5930           enablestring=
5931           defaultval=$wxUSE_ALL_FEATURES
5932           if test -z "$defaultval"; then
5933               if test x"$enablestring" = xdisable; then
5934                   defaultval=yes
5935               else
5936                   defaultval=no
5937               fi
5938           fi
5939
5940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
5941 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
5942           # Check whether --enable-sockets was given.
5943 if test "${enable_sockets+set}" = set; then
5944   enableval=$enable_sockets;
5945                           if test "$enableval" = yes; then
5946                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
5947                           else
5948                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
5949                           fi
5950
5951 else
5952
5953                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
5954
5955 fi
5956
5957
5958           eval "$wx_cv_use_sockets"
5959
5960           if test x"$enablestring" = xdisable; then
5961             if test $wxUSE_SOCKETS = yes; then
5962               result=no
5963             else
5964               result=yes
5965             fi
5966           else
5967             result=$wxUSE_SOCKETS
5968           fi
5969
5970           { echo "$as_me:$LINENO: result: $result" >&5
5971 echo "${ECHO_T}$result" >&6; }
5972
5973
5974           enablestring=
5975           defaultval=$wxUSE_ALL_FEATURES
5976           if test -z "$defaultval"; then
5977               if test x"$enablestring" = xdisable; then
5978                   defaultval=yes
5979               else
5980                   defaultval=no
5981               fi
5982           fi
5983
5984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipv6" >&5
5985 echo $ECHO_N "checking for --${enablestring:-enable}-ipv6... $ECHO_C" >&6; }
5986           # Check whether --enable-ipv6 was given.
5987 if test "${enable_ipv6+set}" = set; then
5988   enableval=$enable_ipv6;
5989                           if test "$enableval" = yes; then
5990                             wx_cv_use_ipv6='wxUSE_IPV6=yes'
5991                           else
5992                             wx_cv_use_ipv6='wxUSE_IPV6=no'
5993                           fi
5994
5995 else
5996
5997                           wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}"
5998
5999 fi
6000
6001
6002           eval "$wx_cv_use_ipv6"
6003
6004           if test x"$enablestring" = xdisable; then
6005             if test $wxUSE_IPV6 = yes; then
6006               result=no
6007             else
6008               result=yes
6009             fi
6010           else
6011             result=$wxUSE_IPV6
6012           fi
6013
6014           { echo "$as_me:$LINENO: result: $result" >&5
6015 echo "${ECHO_T}$result" >&6; }
6016
6017
6018           enablestring=
6019           defaultval=$wxUSE_ALL_FEATURES
6020           if test -z "$defaultval"; then
6021               if test x"$enablestring" = xdisable; then
6022                   defaultval=yes
6023               else
6024                   defaultval=no
6025               fi
6026           fi
6027
6028           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6029 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6030           # Check whether --enable-ole was given.
6031 if test "${enable_ole+set}" = set; then
6032   enableval=$enable_ole;
6033                           if test "$enableval" = yes; then
6034                             wx_cv_use_ole='wxUSE_OLE=yes'
6035                           else
6036                             wx_cv_use_ole='wxUSE_OLE=no'
6037                           fi
6038
6039 else
6040
6041                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6042
6043 fi
6044
6045
6046           eval "$wx_cv_use_ole"
6047
6048           if test x"$enablestring" = xdisable; then
6049             if test $wxUSE_OLE = yes; then
6050               result=no
6051             else
6052               result=yes
6053             fi
6054           else
6055             result=$wxUSE_OLE
6056           fi
6057
6058           { echo "$as_me:$LINENO: result: $result" >&5
6059 echo "${ECHO_T}$result" >&6; }
6060
6061
6062           enablestring=
6063           defaultval=$wxUSE_ALL_FEATURES
6064           if test -z "$defaultval"; then
6065               if test x"$enablestring" = xdisable; then
6066                   defaultval=yes
6067               else
6068                   defaultval=no
6069               fi
6070           fi
6071
6072           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6073 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6074           # Check whether --enable-dataobj was given.
6075 if test "${enable_dataobj+set}" = set; then
6076   enableval=$enable_dataobj;
6077                           if test "$enableval" = yes; then
6078                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6079                           else
6080                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6081                           fi
6082
6083 else
6084
6085                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6086
6087 fi
6088
6089
6090           eval "$wx_cv_use_dataobj"
6091
6092           if test x"$enablestring" = xdisable; then
6093             if test $wxUSE_DATAOBJ = yes; then
6094               result=no
6095             else
6096               result=yes
6097             fi
6098           else
6099             result=$wxUSE_DATAOBJ
6100           fi
6101
6102           { echo "$as_me:$LINENO: result: $result" >&5
6103 echo "${ECHO_T}$result" >&6; }
6104
6105
6106
6107           enablestring=
6108           defaultval=$wxUSE_ALL_FEATURES
6109           if test -z "$defaultval"; then
6110               if test x"$enablestring" = xdisable; then
6111                   defaultval=yes
6112               else
6113                   defaultval=no
6114               fi
6115           fi
6116
6117           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6118 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6119           # Check whether --enable-ipc was given.
6120 if test "${enable_ipc+set}" = set; then
6121   enableval=$enable_ipc;
6122                           if test "$enableval" = yes; then
6123                             wx_cv_use_ipc='wxUSE_IPC=yes'
6124                           else
6125                             wx_cv_use_ipc='wxUSE_IPC=no'
6126                           fi
6127
6128 else
6129
6130                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6131
6132 fi
6133
6134
6135           eval "$wx_cv_use_ipc"
6136
6137           if test x"$enablestring" = xdisable; then
6138             if test $wxUSE_IPC = yes; then
6139               result=no
6140             else
6141               result=yes
6142             fi
6143           else
6144             result=$wxUSE_IPC
6145           fi
6146
6147           { echo "$as_me:$LINENO: result: $result" >&5
6148 echo "${ECHO_T}$result" >&6; }
6149
6150
6151
6152           enablestring=
6153           defaultval=$wxUSE_ALL_FEATURES
6154           if test -z "$defaultval"; then
6155               if test x"$enablestring" = xdisable; then
6156                   defaultval=yes
6157               else
6158                   defaultval=no
6159               fi
6160           fi
6161
6162           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6163 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6164           # Check whether --enable-baseevtloop was given.
6165 if test "${enable_baseevtloop+set}" = set; then
6166   enableval=$enable_baseevtloop;
6167                           if test "$enableval" = yes; then
6168                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6169                           else
6170                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6171                           fi
6172
6173 else
6174
6175                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6176
6177 fi
6178
6179
6180           eval "$wx_cv_use_baseevtloop"
6181
6182           if test x"$enablestring" = xdisable; then
6183             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6184               result=no
6185             else
6186               result=yes
6187             fi
6188           else
6189             result=$wxUSE_CONSOLE_EVENTLOOP
6190           fi
6191
6192           { echo "$as_me:$LINENO: result: $result" >&5
6193 echo "${ECHO_T}$result" >&6; }
6194
6195
6196           enablestring=
6197           defaultval=$wxUSE_ALL_FEATURES
6198           if test -z "$defaultval"; then
6199               if test x"$enablestring" = xdisable; then
6200                   defaultval=yes
6201               else
6202                   defaultval=no
6203               fi
6204           fi
6205
6206           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6207 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6208           # Check whether --enable-epollloop was given.
6209 if test "${enable_epollloop+set}" = set; then
6210   enableval=$enable_epollloop;
6211                           if test "$enableval" = yes; then
6212                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6213                           else
6214                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6215                           fi
6216
6217 else
6218
6219                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6220
6221 fi
6222
6223
6224           eval "$wx_cv_use_epollloop"
6225
6226           if test x"$enablestring" = xdisable; then
6227             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6228               result=no
6229             else
6230               result=yes
6231             fi
6232           else
6233             result=$wxUSE_EPOLL_DISPATCHER
6234           fi
6235
6236           { echo "$as_me:$LINENO: result: $result" >&5
6237 echo "${ECHO_T}$result" >&6; }
6238
6239
6240           enablestring=
6241           defaultval=$wxUSE_ALL_FEATURES
6242           if test -z "$defaultval"; then
6243               if test x"$enablestring" = xdisable; then
6244                   defaultval=yes
6245               else
6246                   defaultval=no
6247               fi
6248           fi
6249
6250           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6251 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6252           # Check whether --enable-selectloop was given.
6253 if test "${enable_selectloop+set}" = set; then
6254   enableval=$enable_selectloop;
6255                           if test "$enableval" = yes; then
6256                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6257                           else
6258                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6259                           fi
6260
6261 else
6262
6263                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6264
6265 fi
6266
6267
6268           eval "$wx_cv_use_selectloop"
6269
6270           if test x"$enablestring" = xdisable; then
6271             if test $wxUSE_SELECT_DISPATCHER = yes; then
6272               result=no
6273             else
6274               result=yes
6275             fi
6276           else
6277             result=$wxUSE_SELECT_DISPATCHER
6278           fi
6279
6280           { echo "$as_me:$LINENO: result: $result" >&5
6281 echo "${ECHO_T}$result" >&6; }
6282
6283
6284
6285           enablestring=
6286           defaultval=$wxUSE_ALL_FEATURES
6287           if test -z "$defaultval"; then
6288               if test x"$enablestring" = xdisable; then
6289                   defaultval=yes
6290               else
6291                   defaultval=no
6292               fi
6293           fi
6294
6295           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6296 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6297           # Check whether --enable-apple_ieee was given.
6298 if test "${enable_apple_ieee+set}" = set; then
6299   enableval=$enable_apple_ieee;
6300                           if test "$enableval" = yes; then
6301                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6302                           else
6303                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6304                           fi
6305
6306 else
6307
6308                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6309
6310 fi
6311
6312
6313           eval "$wx_cv_use_apple_ieee"
6314
6315           if test x"$enablestring" = xdisable; then
6316             if test $wxUSE_APPLE_IEEE = yes; then
6317               result=no
6318             else
6319               result=yes
6320             fi
6321           else
6322             result=$wxUSE_APPLE_IEEE
6323           fi
6324
6325           { echo "$as_me:$LINENO: result: $result" >&5
6326 echo "${ECHO_T}$result" >&6; }
6327
6328
6329           enablestring=
6330           defaultval=$wxUSE_ALL_FEATURES
6331           if test -z "$defaultval"; then
6332               if test x"$enablestring" = xdisable; then
6333                   defaultval=yes
6334               else
6335                   defaultval=no
6336               fi
6337           fi
6338
6339           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6340 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6341           # Check whether --enable-arcstream was given.
6342 if test "${enable_arcstream+set}" = set; then
6343   enableval=$enable_arcstream;
6344                           if test "$enableval" = yes; then
6345                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6346                           else
6347                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6348                           fi
6349
6350 else
6351
6352                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6353
6354 fi
6355
6356
6357           eval "$wx_cv_use_arcstream"
6358
6359           if test x"$enablestring" = xdisable; then
6360             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6361               result=no
6362             else
6363               result=yes
6364             fi
6365           else
6366             result=$wxUSE_ARCHIVE_STREAMS
6367           fi
6368
6369           { echo "$as_me:$LINENO: result: $result" >&5
6370 echo "${ECHO_T}$result" >&6; }
6371
6372
6373           enablestring=
6374           defaultval=$wxUSE_ALL_FEATURES
6375           if test -z "$defaultval"; then
6376               if test x"$enablestring" = xdisable; then
6377                   defaultval=yes
6378               else
6379                   defaultval=no
6380               fi
6381           fi
6382
6383           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6384 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6385           # Check whether --enable-base64 was given.
6386 if test "${enable_base64+set}" = set; then
6387   enableval=$enable_base64;
6388                           if test "$enableval" = yes; then
6389                             wx_cv_use_base64='wxUSE_BASE64=yes'
6390                           else
6391                             wx_cv_use_base64='wxUSE_BASE64=no'
6392                           fi
6393
6394 else
6395
6396                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6397
6398 fi
6399
6400
6401           eval "$wx_cv_use_base64"
6402
6403           if test x"$enablestring" = xdisable; then
6404             if test $wxUSE_BASE64 = yes; then
6405               result=no
6406             else
6407               result=yes
6408             fi
6409           else
6410             result=$wxUSE_BASE64
6411           fi
6412
6413           { echo "$as_me:$LINENO: result: $result" >&5
6414 echo "${ECHO_T}$result" >&6; }
6415
6416
6417           enablestring=
6418           defaultval=$wxUSE_ALL_FEATURES
6419           if test -z "$defaultval"; then
6420               if test x"$enablestring" = xdisable; then
6421                   defaultval=yes
6422               else
6423                   defaultval=no
6424               fi
6425           fi
6426
6427           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6428 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6429           # Check whether --enable-backtrace was given.
6430 if test "${enable_backtrace+set}" = set; then
6431   enableval=$enable_backtrace;
6432                           if test "$enableval" = yes; then
6433                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6434                           else
6435                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6436                           fi
6437
6438 else
6439
6440                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6441
6442 fi
6443
6444
6445           eval "$wx_cv_use_backtrace"
6446
6447           if test x"$enablestring" = xdisable; then
6448             if test $wxUSE_STACKWALKER = yes; then
6449               result=no
6450             else
6451               result=yes
6452             fi
6453           else
6454             result=$wxUSE_STACKWALKER
6455           fi
6456
6457           { echo "$as_me:$LINENO: result: $result" >&5
6458 echo "${ECHO_T}$result" >&6; }
6459
6460
6461           enablestring=
6462           defaultval=$wxUSE_ALL_FEATURES
6463           if test -z "$defaultval"; then
6464               if test x"$enablestring" = xdisable; then
6465                   defaultval=yes
6466               else
6467                   defaultval=no
6468               fi
6469           fi
6470
6471           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6472 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6473           # Check whether --enable-catch_segvs was given.
6474 if test "${enable_catch_segvs+set}" = set; then
6475   enableval=$enable_catch_segvs;
6476                           if test "$enableval" = yes; then
6477                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6478                           else
6479                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6480                           fi
6481
6482 else
6483
6484                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6485
6486 fi
6487
6488
6489           eval "$wx_cv_use_catch_segvs"
6490
6491           if test x"$enablestring" = xdisable; then
6492             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6493               result=no
6494             else
6495               result=yes
6496             fi
6497           else
6498             result=$wxUSE_ON_FATAL_EXCEPTION
6499           fi
6500
6501           { echo "$as_me:$LINENO: result: $result" >&5
6502 echo "${ECHO_T}$result" >&6; }
6503
6504
6505           enablestring=
6506           defaultval=$wxUSE_ALL_FEATURES
6507           if test -z "$defaultval"; then
6508               if test x"$enablestring" = xdisable; then
6509                   defaultval=yes
6510               else
6511                   defaultval=no
6512               fi
6513           fi
6514
6515           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6516 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6517           # Check whether --enable-cmdline was given.
6518 if test "${enable_cmdline+set}" = set; then
6519   enableval=$enable_cmdline;
6520                           if test "$enableval" = yes; then
6521                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6522                           else
6523                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6524                           fi
6525
6526 else
6527
6528                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
6529
6530 fi
6531
6532
6533           eval "$wx_cv_use_cmdline"
6534
6535           if test x"$enablestring" = xdisable; then
6536             if test $wxUSE_CMDLINE_PARSER = yes; then
6537               result=no
6538             else
6539               result=yes
6540             fi
6541           else
6542             result=$wxUSE_CMDLINE_PARSER
6543           fi
6544
6545           { echo "$as_me:$LINENO: result: $result" >&5
6546 echo "${ECHO_T}$result" >&6; }
6547
6548
6549           enablestring=
6550           defaultval=$wxUSE_ALL_FEATURES
6551           if test -z "$defaultval"; then
6552               if test x"$enablestring" = xdisable; then
6553                   defaultval=yes
6554               else
6555                   defaultval=no
6556               fi
6557           fi
6558
6559           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
6560 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
6561           # Check whether --enable-datetime was given.
6562 if test "${enable_datetime+set}" = set; then
6563   enableval=$enable_datetime;
6564                           if test "$enableval" = yes; then
6565                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
6566                           else
6567                             wx_cv_use_datetime='wxUSE_DATETIME=no'
6568                           fi
6569
6570 else
6571
6572                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
6573
6574 fi
6575
6576
6577           eval "$wx_cv_use_datetime"
6578
6579           if test x"$enablestring" = xdisable; then
6580             if test $wxUSE_DATETIME = yes; then
6581               result=no
6582             else
6583               result=yes
6584             fi
6585           else
6586             result=$wxUSE_DATETIME
6587           fi
6588
6589           { echo "$as_me:$LINENO: result: $result" >&5
6590 echo "${ECHO_T}$result" >&6; }
6591
6592
6593           enablestring=
6594           defaultval=$wxUSE_ALL_FEATURES
6595           if test -z "$defaultval"; then
6596               if test x"$enablestring" = xdisable; then
6597                   defaultval=yes
6598               else
6599                   defaultval=no
6600               fi
6601           fi
6602
6603           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
6604 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
6605           # Check whether --enable-debugreport was given.
6606 if test "${enable_debugreport+set}" = set; then
6607   enableval=$enable_debugreport;
6608                           if test "$enableval" = yes; then
6609                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
6610                           else
6611                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
6612                           fi
6613
6614 else
6615
6616                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
6617
6618 fi
6619
6620
6621           eval "$wx_cv_use_debugreport"
6622
6623           if test x"$enablestring" = xdisable; then
6624             if test $wxUSE_DEBUGREPORT = yes; then
6625               result=no
6626             else
6627               result=yes
6628             fi
6629           else
6630             result=$wxUSE_DEBUGREPORT
6631           fi
6632
6633           { echo "$as_me:$LINENO: result: $result" >&5
6634 echo "${ECHO_T}$result" >&6; }
6635
6636
6637           enablestring=
6638           defaultval=$wxUSE_ALL_FEATURES
6639           if test -z "$defaultval"; then
6640               if test x"$enablestring" = xdisable; then
6641                   defaultval=yes
6642               else
6643                   defaultval=no
6644               fi
6645           fi
6646
6647           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
6648 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
6649           # Check whether --enable-dialupman was given.
6650 if test "${enable_dialupman+set}" = set; then
6651   enableval=$enable_dialupman;
6652                           if test "$enableval" = yes; then
6653                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
6654                           else
6655                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
6656                           fi
6657
6658 else
6659
6660                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
6661
6662 fi
6663
6664
6665           eval "$wx_cv_use_dialupman"
6666
6667           if test x"$enablestring" = xdisable; then
6668             if test $wxUSE_DIALUP_MANAGER = yes; then
6669               result=no
6670             else
6671               result=yes
6672             fi
6673           else
6674             result=$wxUSE_DIALUP_MANAGER
6675           fi
6676
6677           { echo "$as_me:$LINENO: result: $result" >&5
6678 echo "${ECHO_T}$result" >&6; }
6679
6680
6681           enablestring=
6682           defaultval=$wxUSE_ALL_FEATURES
6683           if test -z "$defaultval"; then
6684               if test x"$enablestring" = xdisable; then
6685                   defaultval=yes
6686               else
6687                   defaultval=no
6688               fi
6689           fi
6690
6691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
6692 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
6693           # Check whether --enable-dynlib was given.
6694 if test "${enable_dynlib+set}" = set; then
6695   enableval=$enable_dynlib;
6696                           if test "$enableval" = yes; then
6697                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
6698                           else
6699                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
6700                           fi
6701
6702 else
6703
6704                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
6705
6706 fi
6707
6708
6709           eval "$wx_cv_use_dynlib"
6710
6711           if test x"$enablestring" = xdisable; then
6712             if test $wxUSE_DYNLIB_CLASS = yes; then
6713               result=no
6714             else
6715               result=yes
6716             fi
6717           else
6718             result=$wxUSE_DYNLIB_CLASS
6719           fi
6720
6721           { echo "$as_me:$LINENO: result: $result" >&5
6722 echo "${ECHO_T}$result" >&6; }
6723
6724
6725           enablestring=
6726           defaultval=$wxUSE_ALL_FEATURES
6727           if test -z "$defaultval"; then
6728               if test x"$enablestring" = xdisable; then
6729                   defaultval=yes
6730               else
6731                   defaultval=no
6732               fi
6733           fi
6734
6735           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
6736 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
6737           # Check whether --enable-dynamicloader was given.
6738 if test "${enable_dynamicloader+set}" = set; then
6739   enableval=$enable_dynamicloader;
6740                           if test "$enableval" = yes; then
6741                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
6742                           else
6743                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
6744                           fi
6745
6746 else
6747
6748                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
6749
6750 fi
6751
6752
6753           eval "$wx_cv_use_dynamicloader"
6754
6755           if test x"$enablestring" = xdisable; then
6756             if test $wxUSE_DYNAMIC_LOADER = yes; then
6757               result=no
6758             else
6759               result=yes
6760             fi
6761           else
6762             result=$wxUSE_DYNAMIC_LOADER
6763           fi
6764
6765           { echo "$as_me:$LINENO: result: $result" >&5
6766 echo "${ECHO_T}$result" >&6; }
6767
6768
6769           enablestring=
6770           defaultval=$wxUSE_ALL_FEATURES
6771           if test -z "$defaultval"; then
6772               if test x"$enablestring" = xdisable; then
6773                   defaultval=yes
6774               else
6775                   defaultval=no
6776               fi
6777           fi
6778
6779           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
6780 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
6781           # Check whether --enable-exceptions was given.
6782 if test "${enable_exceptions+set}" = set; then
6783   enableval=$enable_exceptions;
6784                           if test "$enableval" = yes; then
6785                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
6786                           else
6787                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
6788                           fi
6789
6790 else
6791
6792                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
6793
6794 fi
6795
6796
6797           eval "$wx_cv_use_exceptions"
6798
6799           if test x"$enablestring" = xdisable; then
6800             if test $wxUSE_EXCEPTIONS = yes; then
6801               result=no
6802             else
6803               result=yes
6804             fi
6805           else
6806             result=$wxUSE_EXCEPTIONS
6807           fi
6808
6809           { echo "$as_me:$LINENO: result: $result" >&5
6810 echo "${ECHO_T}$result" >&6; }
6811
6812
6813           enablestring=
6814           defaultval=$wxUSE_ALL_FEATURES
6815           if test -z "$defaultval"; then
6816               if test x"$enablestring" = xdisable; then
6817                   defaultval=yes
6818               else
6819                   defaultval=no
6820               fi
6821           fi
6822
6823           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
6824 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
6825           # Check whether --enable-ffile was given.
6826 if test "${enable_ffile+set}" = set; then
6827   enableval=$enable_ffile;
6828                           if test "$enableval" = yes; then
6829                             wx_cv_use_ffile='wxUSE_FFILE=yes'
6830                           else
6831                             wx_cv_use_ffile='wxUSE_FFILE=no'
6832                           fi
6833
6834 else
6835
6836                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
6837
6838 fi
6839
6840
6841           eval "$wx_cv_use_ffile"
6842
6843           if test x"$enablestring" = xdisable; then
6844             if test $wxUSE_FFILE = yes; then
6845               result=no
6846             else
6847               result=yes
6848             fi
6849           else
6850             result=$wxUSE_FFILE
6851           fi
6852
6853           { echo "$as_me:$LINENO: result: $result" >&5
6854 echo "${ECHO_T}$result" >&6; }
6855
6856
6857           enablestring=
6858           defaultval=$wxUSE_ALL_FEATURES
6859           if test -z "$defaultval"; then
6860               if test x"$enablestring" = xdisable; then
6861                   defaultval=yes
6862               else
6863                   defaultval=no
6864               fi
6865           fi
6866
6867           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
6868 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
6869           # Check whether --enable-file was given.
6870 if test "${enable_file+set}" = set; then
6871   enableval=$enable_file;
6872                           if test "$enableval" = yes; then
6873                             wx_cv_use_file='wxUSE_FILE=yes'
6874                           else
6875                             wx_cv_use_file='wxUSE_FILE=no'
6876                           fi
6877
6878 else
6879
6880                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
6881
6882 fi
6883
6884
6885           eval "$wx_cv_use_file"
6886
6887           if test x"$enablestring" = xdisable; then
6888             if test $wxUSE_FILE = yes; then
6889               result=no
6890             else
6891               result=yes
6892             fi
6893           else
6894             result=$wxUSE_FILE
6895           fi
6896
6897           { echo "$as_me:$LINENO: result: $result" >&5
6898 echo "${ECHO_T}$result" >&6; }
6899
6900
6901           enablestring=
6902           defaultval=$wxUSE_ALL_FEATURES
6903           if test -z "$defaultval"; then
6904               if test x"$enablestring" = xdisable; then
6905                   defaultval=yes
6906               else
6907                   defaultval=no
6908               fi
6909           fi
6910
6911           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
6912 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
6913           # Check whether --enable-filesystem was given.
6914 if test "${enable_filesystem+set}" = set; then
6915   enableval=$enable_filesystem;
6916                           if test "$enableval" = yes; then
6917                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
6918                           else
6919                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
6920                           fi
6921
6922 else
6923
6924                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
6925
6926 fi
6927
6928
6929           eval "$wx_cv_use_filesystem"
6930
6931           if test x"$enablestring" = xdisable; then
6932             if test $wxUSE_FILESYSTEM = yes; then
6933               result=no
6934             else
6935               result=yes
6936             fi
6937           else
6938             result=$wxUSE_FILESYSTEM
6939           fi
6940
6941           { echo "$as_me:$LINENO: result: $result" >&5
6942 echo "${ECHO_T}$result" >&6; }
6943
6944
6945           enablestring=
6946           defaultval=$wxUSE_ALL_FEATURES
6947           if test -z "$defaultval"; then
6948               if test x"$enablestring" = xdisable; then
6949                   defaultval=yes
6950               else
6951                   defaultval=no
6952               fi
6953           fi
6954
6955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
6956 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
6957           # Check whether --enable-fontenum was given.
6958 if test "${enable_fontenum+set}" = set; then
6959   enableval=$enable_fontenum;
6960                           if test "$enableval" = yes; then
6961                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
6962                           else
6963                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
6964                           fi
6965
6966 else
6967
6968                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
6969
6970 fi
6971
6972
6973           eval "$wx_cv_use_fontenum"
6974
6975           if test x"$enablestring" = xdisable; then
6976             if test $wxUSE_FONTENUM = yes; then
6977               result=no
6978             else
6979               result=yes
6980             fi
6981           else
6982             result=$wxUSE_FONTENUM
6983           fi
6984
6985           { echo "$as_me:$LINENO: result: $result" >&5
6986 echo "${ECHO_T}$result" >&6; }
6987
6988
6989           enablestring=
6990           defaultval=$wxUSE_ALL_FEATURES
6991           if test -z "$defaultval"; then
6992               if test x"$enablestring" = xdisable; then
6993                   defaultval=yes
6994               else
6995                   defaultval=no
6996               fi
6997           fi
6998
6999           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7000 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7001           # Check whether --enable-fontmap was given.
7002 if test "${enable_fontmap+set}" = set; then
7003   enableval=$enable_fontmap;
7004                           if test "$enableval" = yes; then
7005                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7006                           else
7007                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7008                           fi
7009
7010 else
7011
7012                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7013
7014 fi
7015
7016
7017           eval "$wx_cv_use_fontmap"
7018
7019           if test x"$enablestring" = xdisable; then
7020             if test $wxUSE_FONTMAP = yes; then
7021               result=no
7022             else
7023               result=yes
7024             fi
7025           else
7026             result=$wxUSE_FONTMAP
7027           fi
7028
7029           { echo "$as_me:$LINENO: result: $result" >&5
7030 echo "${ECHO_T}$result" >&6; }
7031
7032
7033           enablestring=
7034           defaultval=$wxUSE_ALL_FEATURES
7035           if test -z "$defaultval"; then
7036               if test x"$enablestring" = xdisable; then
7037                   defaultval=yes
7038               else
7039                   defaultval=no
7040               fi
7041           fi
7042
7043           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7044 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7045           # Check whether --enable-fs_archive was given.
7046 if test "${enable_fs_archive+set}" = set; then
7047   enableval=$enable_fs_archive;
7048                           if test "$enableval" = yes; then
7049                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7050                           else
7051                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7052                           fi
7053
7054 else
7055
7056                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7057
7058 fi
7059
7060
7061           eval "$wx_cv_use_fs_archive"
7062
7063           if test x"$enablestring" = xdisable; then
7064             if test $wxUSE_FS_ARCHIVE = yes; then
7065               result=no
7066             else
7067               result=yes
7068             fi
7069           else
7070             result=$wxUSE_FS_ARCHIVE
7071           fi
7072
7073           { echo "$as_me:$LINENO: result: $result" >&5
7074 echo "${ECHO_T}$result" >&6; }
7075
7076
7077           enablestring=
7078           defaultval=$wxUSE_ALL_FEATURES
7079           if test -z "$defaultval"; then
7080               if test x"$enablestring" = xdisable; then
7081                   defaultval=yes
7082               else
7083                   defaultval=no
7084               fi
7085           fi
7086
7087           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7088 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7089           # Check whether --enable-fs_inet was given.
7090 if test "${enable_fs_inet+set}" = set; then
7091   enableval=$enable_fs_inet;
7092                           if test "$enableval" = yes; then
7093                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7094                           else
7095                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7096                           fi
7097
7098 else
7099
7100                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7101
7102 fi
7103
7104
7105           eval "$wx_cv_use_fs_inet"
7106
7107           if test x"$enablestring" = xdisable; then
7108             if test $wxUSE_FS_INET = yes; then
7109               result=no
7110             else
7111               result=yes
7112             fi
7113           else
7114             result=$wxUSE_FS_INET
7115           fi
7116
7117           { echo "$as_me:$LINENO: result: $result" >&5
7118 echo "${ECHO_T}$result" >&6; }
7119
7120
7121           enablestring=
7122           defaultval=$wxUSE_ALL_FEATURES
7123           if test -z "$defaultval"; then
7124               if test x"$enablestring" = xdisable; then
7125                   defaultval=yes
7126               else
7127                   defaultval=no
7128               fi
7129           fi
7130
7131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7132 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7133           # Check whether --enable-fs_zip was given.
7134 if test "${enable_fs_zip+set}" = set; then
7135   enableval=$enable_fs_zip;
7136                           if test "$enableval" = yes; then
7137                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7138                           else
7139                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7140                           fi
7141
7142 else
7143
7144                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7145
7146 fi
7147
7148
7149           eval "$wx_cv_use_fs_zip"
7150
7151           if test x"$enablestring" = xdisable; then
7152             if test $wxUSE_FS_ZIP = yes; then
7153               result=no
7154             else
7155               result=yes
7156             fi
7157           else
7158             result=$wxUSE_FS_ZIP
7159           fi
7160
7161           { echo "$as_me:$LINENO: result: $result" >&5
7162 echo "${ECHO_T}$result" >&6; }
7163
7164
7165           enablestring=
7166           defaultval=$wxUSE_ALL_FEATURES
7167           if test -z "$defaultval"; then
7168               if test x"$enablestring" = xdisable; then
7169                   defaultval=yes
7170               else
7171                   defaultval=no
7172               fi
7173           fi
7174
7175           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7176 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7177           # Check whether --enable-geometry was given.
7178 if test "${enable_geometry+set}" = set; then
7179   enableval=$enable_geometry;
7180                           if test "$enableval" = yes; then
7181                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7182                           else
7183                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7184                           fi
7185
7186 else
7187
7188                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7189
7190 fi
7191
7192
7193           eval "$wx_cv_use_geometry"
7194
7195           if test x"$enablestring" = xdisable; then
7196             if test $wxUSE_GEOMETRY = yes; then
7197               result=no
7198             else
7199               result=yes
7200             fi
7201           else
7202             result=$wxUSE_GEOMETRY
7203           fi
7204
7205           { echo "$as_me:$LINENO: result: $result" >&5
7206 echo "${ECHO_T}$result" >&6; }
7207
7208
7209           enablestring=
7210           defaultval=$wxUSE_ALL_FEATURES
7211           if test -z "$defaultval"; then
7212               if test x"$enablestring" = xdisable; then
7213                   defaultval=yes
7214               else
7215                   defaultval=no
7216               fi
7217           fi
7218
7219           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7220 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7221           # Check whether --enable-log was given.
7222 if test "${enable_log+set}" = set; then
7223   enableval=$enable_log;
7224                           if test "$enableval" = yes; then
7225                             wx_cv_use_log='wxUSE_LOG=yes'
7226                           else
7227                             wx_cv_use_log='wxUSE_LOG=no'
7228                           fi
7229
7230 else
7231
7232                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7233
7234 fi
7235
7236
7237           eval "$wx_cv_use_log"
7238
7239           if test x"$enablestring" = xdisable; then
7240             if test $wxUSE_LOG = yes; then
7241               result=no
7242             else
7243               result=yes
7244             fi
7245           else
7246             result=$wxUSE_LOG
7247           fi
7248
7249           { echo "$as_me:$LINENO: result: $result" >&5
7250 echo "${ECHO_T}$result" >&6; }
7251
7252
7253           enablestring=
7254           defaultval=$wxUSE_ALL_FEATURES
7255           if test -z "$defaultval"; then
7256               if test x"$enablestring" = xdisable; then
7257                   defaultval=yes
7258               else
7259                   defaultval=no
7260               fi
7261           fi
7262
7263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7264 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7265           # Check whether --enable-longlong was given.
7266 if test "${enable_longlong+set}" = set; then
7267   enableval=$enable_longlong;
7268                           if test "$enableval" = yes; then
7269                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7270                           else
7271                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7272                           fi
7273
7274 else
7275
7276                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7277
7278 fi
7279
7280
7281           eval "$wx_cv_use_longlong"
7282
7283           if test x"$enablestring" = xdisable; then
7284             if test $wxUSE_LONGLONG = yes; then
7285               result=no
7286             else
7287               result=yes
7288             fi
7289           else
7290             result=$wxUSE_LONGLONG
7291           fi
7292
7293           { echo "$as_me:$LINENO: result: $result" >&5
7294 echo "${ECHO_T}$result" >&6; }
7295
7296
7297           enablestring=
7298           defaultval=$wxUSE_ALL_FEATURES
7299           if test -z "$defaultval"; then
7300               if test x"$enablestring" = xdisable; then
7301                   defaultval=yes
7302               else
7303                   defaultval=no
7304               fi
7305           fi
7306
7307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
7308 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7309           # Check whether --enable-mimetype was given.
7310 if test "${enable_mimetype+set}" = set; then
7311   enableval=$enable_mimetype;
7312                           if test "$enableval" = yes; then
7313                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7314                           else
7315                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7316                           fi
7317
7318 else
7319
7320                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7321
7322 fi
7323
7324
7325           eval "$wx_cv_use_mimetype"
7326
7327           if test x"$enablestring" = xdisable; then
7328             if test $wxUSE_MIMETYPE = yes; then
7329               result=no
7330             else
7331               result=yes
7332             fi
7333           else
7334             result=$wxUSE_MIMETYPE
7335           fi
7336
7337           { echo "$as_me:$LINENO: result: $result" >&5
7338 echo "${ECHO_T}$result" >&6; }
7339
7340
7341           enablestring=
7342           defaultval=$wxUSE_ALL_FEATURES
7343           if test -z "$defaultval"; then
7344               if test x"$enablestring" = xdisable; then
7345                   defaultval=yes
7346               else
7347                   defaultval=no
7348               fi
7349           fi
7350
7351           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
7352 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
7353           # Check whether --enable-printfposparam was given.
7354 if test "${enable_printfposparam+set}" = set; then
7355   enableval=$enable_printfposparam;
7356                           if test "$enableval" = yes; then
7357                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
7358                           else
7359                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
7360                           fi
7361
7362 else
7363
7364                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
7365
7366 fi
7367
7368
7369           eval "$wx_cv_use_printfposparam"
7370
7371           if test x"$enablestring" = xdisable; then
7372             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
7373               result=no
7374             else
7375               result=yes
7376             fi
7377           else
7378             result=$wxUSE_PRINTF_POS_PARAMS
7379           fi
7380
7381           { echo "$as_me:$LINENO: result: $result" >&5
7382 echo "${ECHO_T}$result" >&6; }
7383
7384
7385           enablestring=
7386           defaultval=$wxUSE_ALL_FEATURES
7387           if test -z "$defaultval"; then
7388               if test x"$enablestring" = xdisable; then
7389                   defaultval=yes
7390               else
7391                   defaultval=no
7392               fi
7393           fi
7394
7395           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
7396 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
7397           # Check whether --enable-snglinst was given.
7398 if test "${enable_snglinst+set}" = set; then
7399   enableval=$enable_snglinst;
7400                           if test "$enableval" = yes; then
7401                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
7402                           else
7403                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
7404                           fi
7405
7406 else
7407
7408                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
7409
7410 fi
7411
7412
7413           eval "$wx_cv_use_snglinst"
7414
7415           if test x"$enablestring" = xdisable; then
7416             if test $wxUSE_SNGLINST_CHECKER = yes; then
7417               result=no
7418             else
7419               result=yes
7420             fi
7421           else
7422             result=$wxUSE_SNGLINST_CHECKER
7423           fi
7424
7425           { echo "$as_me:$LINENO: result: $result" >&5
7426 echo "${ECHO_T}$result" >&6; }
7427
7428
7429           enablestring=
7430           defaultval=$wxUSE_ALL_FEATURES
7431           if test -z "$defaultval"; then
7432               if test x"$enablestring" = xdisable; then
7433                   defaultval=yes
7434               else
7435                   defaultval=no
7436               fi
7437           fi
7438
7439           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
7440 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
7441           # Check whether --enable-sound was given.
7442 if test "${enable_sound+set}" = set; then
7443   enableval=$enable_sound;
7444                           if test "$enableval" = yes; then
7445                             wx_cv_use_sound='wxUSE_SOUND=yes'
7446                           else
7447                             wx_cv_use_sound='wxUSE_SOUND=no'
7448                           fi
7449
7450 else
7451
7452                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
7453
7454 fi
7455
7456
7457           eval "$wx_cv_use_sound"
7458
7459           if test x"$enablestring" = xdisable; then
7460             if test $wxUSE_SOUND = yes; then
7461               result=no
7462             else
7463               result=yes
7464             fi
7465           else
7466             result=$wxUSE_SOUND
7467           fi
7468
7469           { echo "$as_me:$LINENO: result: $result" >&5
7470 echo "${ECHO_T}$result" >&6; }
7471
7472
7473           enablestring=
7474           defaultval=$wxUSE_ALL_FEATURES
7475           if test -z "$defaultval"; then
7476               if test x"$enablestring" = xdisable; then
7477                   defaultval=yes
7478               else
7479                   defaultval=no
7480               fi
7481           fi
7482
7483           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
7484 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
7485           # Check whether --enable-stdpaths was given.
7486 if test "${enable_stdpaths+set}" = set; then
7487   enableval=$enable_stdpaths;
7488                           if test "$enableval" = yes; then
7489                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
7490                           else
7491                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
7492                           fi
7493
7494 else
7495
7496                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
7497
7498 fi
7499
7500
7501           eval "$wx_cv_use_stdpaths"
7502
7503           if test x"$enablestring" = xdisable; then
7504             if test $wxUSE_STDPATHS = yes; then
7505               result=no
7506             else
7507               result=yes
7508             fi
7509           else
7510             result=$wxUSE_STDPATHS
7511           fi
7512
7513           { echo "$as_me:$LINENO: result: $result" >&5
7514 echo "${ECHO_T}$result" >&6; }
7515
7516
7517           enablestring=
7518           defaultval=$wxUSE_ALL_FEATURES
7519           if test -z "$defaultval"; then
7520               if test x"$enablestring" = xdisable; then
7521                   defaultval=yes
7522               else
7523                   defaultval=no
7524               fi
7525           fi
7526
7527           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
7528 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
7529           # Check whether --enable-stopwatch was given.
7530 if test "${enable_stopwatch+set}" = set; then
7531   enableval=$enable_stopwatch;
7532                           if test "$enableval" = yes; then
7533                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
7534                           else
7535                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
7536                           fi
7537
7538 else
7539
7540                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
7541
7542 fi
7543
7544
7545           eval "$wx_cv_use_stopwatch"
7546
7547           if test x"$enablestring" = xdisable; then
7548             if test $wxUSE_STOPWATCH = yes; then
7549               result=no
7550             else
7551               result=yes
7552             fi
7553           else
7554             result=$wxUSE_STOPWATCH
7555           fi
7556
7557           { echo "$as_me:$LINENO: result: $result" >&5
7558 echo "${ECHO_T}$result" >&6; }
7559
7560
7561           enablestring=
7562           defaultval=$wxUSE_ALL_FEATURES
7563           if test -z "$defaultval"; then
7564               if test x"$enablestring" = xdisable; then
7565                   defaultval=yes
7566               else
7567                   defaultval=no
7568               fi
7569           fi
7570
7571           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
7572 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
7573           # Check whether --enable-streams was given.
7574 if test "${enable_streams+set}" = set; then
7575   enableval=$enable_streams;
7576                           if test "$enableval" = yes; then
7577                             wx_cv_use_streams='wxUSE_STREAMS=yes'
7578                           else
7579                             wx_cv_use_streams='wxUSE_STREAMS=no'
7580                           fi
7581
7582 else
7583
7584                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
7585
7586 fi
7587
7588
7589           eval "$wx_cv_use_streams"
7590
7591           if test x"$enablestring" = xdisable; then
7592             if test $wxUSE_STREAMS = yes; then
7593               result=no
7594             else
7595               result=yes
7596             fi
7597           else
7598             result=$wxUSE_STREAMS
7599           fi
7600
7601           { echo "$as_me:$LINENO: result: $result" >&5
7602 echo "${ECHO_T}$result" >&6; }
7603
7604
7605           enablestring=
7606           defaultval=$wxUSE_ALL_FEATURES
7607           if test -z "$defaultval"; then
7608               if test x"$enablestring" = xdisable; then
7609                   defaultval=yes
7610               else
7611                   defaultval=no
7612               fi
7613           fi
7614
7615           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
7616 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
7617           # Check whether --enable-system_options was given.
7618 if test "${enable_system_options+set}" = set; then
7619   enableval=$enable_system_options;
7620                           if test "$enableval" = yes; then
7621                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
7622                           else
7623                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
7624                           fi
7625
7626 else
7627
7628                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
7629
7630 fi
7631
7632
7633           eval "$wx_cv_use_system_options"
7634
7635           if test x"$enablestring" = xdisable; then
7636             if test $wxUSE_SYSTEM_OPTIONS = yes; then
7637               result=no
7638             else
7639               result=yes
7640             fi
7641           else
7642             result=$wxUSE_SYSTEM_OPTIONS
7643           fi
7644
7645           { echo "$as_me:$LINENO: result: $result" >&5
7646 echo "${ECHO_T}$result" >&6; }
7647
7648
7649           enablestring=
7650           defaultval=$wxUSE_ALL_FEATURES
7651           if test -z "$defaultval"; then
7652               if test x"$enablestring" = xdisable; then
7653                   defaultval=yes
7654               else
7655                   defaultval=no
7656               fi
7657           fi
7658
7659           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
7660 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
7661           # Check whether --enable-tarstream was given.
7662 if test "${enable_tarstream+set}" = set; then
7663   enableval=$enable_tarstream;
7664                           if test "$enableval" = yes; then
7665                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
7666                           else
7667                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
7668                           fi
7669
7670 else
7671
7672                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
7673
7674 fi
7675
7676
7677           eval "$wx_cv_use_tarstream"
7678
7679           if test x"$enablestring" = xdisable; then
7680             if test $wxUSE_TARSTREAM = yes; then
7681               result=no
7682             else
7683               result=yes
7684             fi
7685           else
7686             result=$wxUSE_TARSTREAM
7687           fi
7688
7689           { echo "$as_me:$LINENO: result: $result" >&5
7690 echo "${ECHO_T}$result" >&6; }
7691
7692
7693           enablestring=
7694           defaultval=$wxUSE_ALL_FEATURES
7695           if test -z "$defaultval"; then
7696               if test x"$enablestring" = xdisable; then
7697                   defaultval=yes
7698               else
7699                   defaultval=no
7700               fi
7701           fi
7702
7703           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
7704 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
7705           # Check whether --enable-textbuf was given.
7706 if test "${enable_textbuf+set}" = set; then
7707   enableval=$enable_textbuf;
7708                           if test "$enableval" = yes; then
7709                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
7710                           else
7711                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
7712                           fi
7713
7714 else
7715
7716                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
7717
7718 fi
7719
7720
7721           eval "$wx_cv_use_textbuf"
7722
7723           if test x"$enablestring" = xdisable; then
7724             if test $wxUSE_TEXTBUFFER = yes; then
7725               result=no
7726             else
7727               result=yes
7728             fi
7729           else
7730             result=$wxUSE_TEXTBUFFER
7731           fi
7732
7733           { echo "$as_me:$LINENO: result: $result" >&5
7734 echo "${ECHO_T}$result" >&6; }
7735
7736
7737           enablestring=
7738           defaultval=$wxUSE_ALL_FEATURES
7739           if test -z "$defaultval"; then
7740               if test x"$enablestring" = xdisable; then
7741                   defaultval=yes
7742               else
7743                   defaultval=no
7744               fi
7745           fi
7746
7747           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
7748 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
7749           # Check whether --enable-textfile was given.
7750 if test "${enable_textfile+set}" = set; then
7751   enableval=$enable_textfile;
7752                           if test "$enableval" = yes; then
7753                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
7754                           else
7755                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
7756                           fi
7757
7758 else
7759
7760                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
7761
7762 fi
7763
7764
7765           eval "$wx_cv_use_textfile"
7766
7767           if test x"$enablestring" = xdisable; then
7768             if test $wxUSE_TEXTFILE = yes; then
7769               result=no
7770             else
7771               result=yes
7772             fi
7773           else
7774             result=$wxUSE_TEXTFILE
7775           fi
7776
7777           { echo "$as_me:$LINENO: result: $result" >&5
7778 echo "${ECHO_T}$result" >&6; }
7779
7780
7781           enablestring=
7782           defaultval=$wxUSE_ALL_FEATURES
7783           if test -z "$defaultval"; then
7784               if test x"$enablestring" = xdisable; then
7785                   defaultval=yes
7786               else
7787                   defaultval=no
7788               fi
7789           fi
7790
7791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
7792 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
7793           # Check whether --enable-timer was given.
7794 if test "${enable_timer+set}" = set; then
7795   enableval=$enable_timer;
7796                           if test "$enableval" = yes; then
7797                             wx_cv_use_timer='wxUSE_TIMER=yes'
7798                           else
7799                             wx_cv_use_timer='wxUSE_TIMER=no'
7800                           fi
7801
7802 else
7803
7804                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
7805
7806 fi
7807
7808
7809           eval "$wx_cv_use_timer"
7810
7811           if test x"$enablestring" = xdisable; then
7812             if test $wxUSE_TIMER = yes; then
7813               result=no
7814             else
7815               result=yes
7816             fi
7817           else
7818             result=$wxUSE_TIMER
7819           fi
7820
7821           { echo "$as_me:$LINENO: result: $result" >&5
7822 echo "${ECHO_T}$result" >&6; }
7823
7824
7825           enablestring=
7826           defaultval=$wxUSE_ALL_FEATURES
7827           if test -z "$defaultval"; then
7828               if test x"$enablestring" = xdisable; then
7829                   defaultval=yes
7830               else
7831                   defaultval=no
7832               fi
7833           fi
7834
7835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
7836 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
7837           # Check whether --enable-variant was given.
7838 if test "${enable_variant+set}" = set; then
7839   enableval=$enable_variant;
7840                           if test "$enableval" = yes; then
7841                             wx_cv_use_variant='wxUSE_VARIANT=yes'
7842                           else
7843                             wx_cv_use_variant='wxUSE_VARIANT=no'
7844                           fi
7845
7846 else
7847
7848                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
7849
7850 fi
7851
7852
7853           eval "$wx_cv_use_variant"
7854
7855           if test x"$enablestring" = xdisable; then
7856             if test $wxUSE_VARIANT = yes; then
7857               result=no
7858             else
7859               result=yes
7860             fi
7861           else
7862             result=$wxUSE_VARIANT
7863           fi
7864
7865           { echo "$as_me:$LINENO: result: $result" >&5
7866 echo "${ECHO_T}$result" >&6; }
7867
7868
7869           enablestring=
7870           defaultval=$wxUSE_ALL_FEATURES
7871           if test -z "$defaultval"; then
7872               if test x"$enablestring" = xdisable; then
7873                   defaultval=yes
7874               else
7875                   defaultval=no
7876               fi
7877           fi
7878
7879           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
7880 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
7881           # Check whether --enable-zipstream was given.
7882 if test "${enable_zipstream+set}" = set; then
7883   enableval=$enable_zipstream;
7884                           if test "$enableval" = yes; then
7885                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
7886                           else
7887                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
7888                           fi
7889
7890 else
7891
7892                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
7893
7894 fi
7895
7896
7897           eval "$wx_cv_use_zipstream"
7898
7899           if test x"$enablestring" = xdisable; then
7900             if test $wxUSE_ZIPSTREAM = yes; then
7901               result=no
7902             else
7903               result=yes
7904             fi
7905           else
7906             result=$wxUSE_ZIPSTREAM
7907           fi
7908
7909           { echo "$as_me:$LINENO: result: $result" >&5
7910 echo "${ECHO_T}$result" >&6; }
7911
7912
7913
7914           enablestring=
7915           defaultval=$wxUSE_ALL_FEATURES
7916           if test -z "$defaultval"; then
7917               if test x"$enablestring" = xdisable; then
7918                   defaultval=yes
7919               else
7920                   defaultval=no
7921               fi
7922           fi
7923
7924           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
7925 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
7926           # Check whether --enable-url was given.
7927 if test "${enable_url+set}" = set; then
7928   enableval=$enable_url;
7929                           if test "$enableval" = yes; then
7930                             wx_cv_use_url='wxUSE_URL=yes'
7931                           else
7932                             wx_cv_use_url='wxUSE_URL=no'
7933                           fi
7934
7935 else
7936
7937                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
7938
7939 fi
7940
7941
7942           eval "$wx_cv_use_url"
7943
7944           if test x"$enablestring" = xdisable; then
7945             if test $wxUSE_URL = yes; then
7946               result=no
7947             else
7948               result=yes
7949             fi
7950           else
7951             result=$wxUSE_URL
7952           fi
7953
7954           { echo "$as_me:$LINENO: result: $result" >&5
7955 echo "${ECHO_T}$result" >&6; }
7956
7957
7958           enablestring=
7959           defaultval=$wxUSE_ALL_FEATURES
7960           if test -z "$defaultval"; then
7961               if test x"$enablestring" = xdisable; then
7962                   defaultval=yes
7963               else
7964                   defaultval=no
7965               fi
7966           fi
7967
7968           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
7969 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
7970           # Check whether --enable-protocol was given.
7971 if test "${enable_protocol+set}" = set; then
7972   enableval=$enable_protocol;
7973                           if test "$enableval" = yes; then
7974                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
7975                           else
7976                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
7977                           fi
7978
7979 else
7980
7981                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
7982
7983 fi
7984
7985
7986           eval "$wx_cv_use_protocol"
7987
7988           if test x"$enablestring" = xdisable; then
7989             if test $wxUSE_PROTOCOL = yes; then
7990               result=no
7991             else
7992               result=yes
7993             fi
7994           else
7995             result=$wxUSE_PROTOCOL
7996           fi
7997
7998           { echo "$as_me:$LINENO: result: $result" >&5
7999 echo "${ECHO_T}$result" >&6; }
8000
8001
8002           enablestring=
8003           defaultval=$wxUSE_ALL_FEATURES
8004           if test -z "$defaultval"; then
8005               if test x"$enablestring" = xdisable; then
8006                   defaultval=yes
8007               else
8008                   defaultval=no
8009               fi
8010           fi
8011
8012           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8013 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8014           # Check whether --enable-protocol_http was given.
8015 if test "${enable_protocol_http+set}" = set; then
8016   enableval=$enable_protocol_http;
8017                           if test "$enableval" = yes; then
8018                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8019                           else
8020                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8021                           fi
8022
8023 else
8024
8025                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8026
8027 fi
8028
8029
8030           eval "$wx_cv_use_protocol_http"
8031
8032           if test x"$enablestring" = xdisable; then
8033             if test $wxUSE_PROTOCOL_HTTP = yes; then
8034               result=no
8035             else
8036               result=yes
8037             fi
8038           else
8039             result=$wxUSE_PROTOCOL_HTTP
8040           fi
8041
8042           { echo "$as_me:$LINENO: result: $result" >&5
8043 echo "${ECHO_T}$result" >&6; }
8044
8045
8046           enablestring=
8047           defaultval=$wxUSE_ALL_FEATURES
8048           if test -z "$defaultval"; then
8049               if test x"$enablestring" = xdisable; then
8050                   defaultval=yes
8051               else
8052                   defaultval=no
8053               fi
8054           fi
8055
8056           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8057 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8058           # Check whether --enable-protocol_ftp was given.
8059 if test "${enable_protocol_ftp+set}" = set; then
8060   enableval=$enable_protocol_ftp;
8061                           if test "$enableval" = yes; then
8062                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8063                           else
8064                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8065                           fi
8066
8067 else
8068
8069                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
8070
8071 fi
8072
8073
8074           eval "$wx_cv_use_protocol_ftp"
8075
8076           if test x"$enablestring" = xdisable; then
8077             if test $wxUSE_PROTOCOL_FTP = yes; then
8078               result=no
8079             else
8080               result=yes
8081             fi
8082           else
8083             result=$wxUSE_PROTOCOL_FTP
8084           fi
8085
8086           { echo "$as_me:$LINENO: result: $result" >&5
8087 echo "${ECHO_T}$result" >&6; }
8088
8089
8090           enablestring=
8091           defaultval=$wxUSE_ALL_FEATURES
8092           if test -z "$defaultval"; then
8093               if test x"$enablestring" = xdisable; then
8094                   defaultval=yes
8095               else
8096                   defaultval=no
8097               fi
8098           fi
8099
8100           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
8101 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
8102           # Check whether --enable-protocol_file was given.
8103 if test "${enable_protocol_file+set}" = set; then
8104   enableval=$enable_protocol_file;
8105                           if test "$enableval" = yes; then
8106                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
8107                           else
8108                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
8109                           fi
8110
8111 else
8112
8113                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
8114
8115 fi
8116
8117
8118           eval "$wx_cv_use_protocol_file"
8119
8120           if test x"$enablestring" = xdisable; then
8121             if test $wxUSE_PROTOCOL_FILE = yes; then
8122               result=no
8123             else
8124               result=yes
8125             fi
8126           else
8127             result=$wxUSE_PROTOCOL_FILE
8128           fi
8129
8130           { echo "$as_me:$LINENO: result: $result" >&5
8131 echo "${ECHO_T}$result" >&6; }
8132
8133
8134
8135           enablestring=
8136           defaultval=$wxUSE_ALL_FEATURES
8137           if test -z "$defaultval"; then
8138               if test x"$enablestring" = xdisable; then
8139                   defaultval=yes
8140               else
8141                   defaultval=no
8142               fi
8143           fi
8144
8145           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
8146 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
8147           # Check whether --enable-threads was given.
8148 if test "${enable_threads+set}" = set; then
8149   enableval=$enable_threads;
8150                           if test "$enableval" = yes; then
8151                             wx_cv_use_threads='wxUSE_THREADS=yes'
8152                           else
8153                             wx_cv_use_threads='wxUSE_THREADS=no'
8154                           fi
8155
8156 else
8157
8158                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
8159
8160 fi
8161
8162
8163           eval "$wx_cv_use_threads"
8164
8165           if test x"$enablestring" = xdisable; then
8166             if test $wxUSE_THREADS = yes; then
8167               result=no
8168             else
8169               result=yes
8170             fi
8171           else
8172             result=$wxUSE_THREADS
8173           fi
8174
8175           { echo "$as_me:$LINENO: result: $result" >&5
8176 echo "${ECHO_T}$result" >&6; }
8177
8178
8179
8180           enablestring=
8181           defaultval=
8182           if test -z "$defaultval"; then
8183               if test x"$enablestring" = xdisable; then
8184                   defaultval=yes
8185               else
8186                   defaultval=no
8187               fi
8188           fi
8189
8190           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
8191 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
8192           # Check whether --enable-iniconf was given.
8193 if test "${enable_iniconf+set}" = set; then
8194   enableval=$enable_iniconf;
8195                           if test "$enableval" = yes; then
8196                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
8197                           else
8198                             wx_cv_use_iniconf='wxUSE_INICONF=no'
8199                           fi
8200
8201 else
8202
8203                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
8204
8205 fi
8206
8207
8208           eval "$wx_cv_use_iniconf"
8209
8210           if test x"$enablestring" = xdisable; then
8211             if test $wxUSE_INICONF = yes; then
8212               result=no
8213             else
8214               result=yes
8215             fi
8216           else
8217             result=$wxUSE_INICONF
8218           fi
8219
8220           { echo "$as_me:$LINENO: result: $result" >&5
8221 echo "${ECHO_T}$result" >&6; }
8222
8223
8224           enablestring=
8225           defaultval=$wxUSE_ALL_FEATURES
8226           if test -z "$defaultval"; then
8227               if test x"$enablestring" = xdisable; then
8228                   defaultval=yes
8229               else
8230                   defaultval=no
8231               fi
8232           fi
8233
8234           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
8235 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
8236           # Check whether --enable-regkey was given.
8237 if test "${enable_regkey+set}" = set; then
8238   enableval=$enable_regkey;
8239                           if test "$enableval" = yes; then
8240                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
8241                           else
8242                             wx_cv_use_regkey='wxUSE_REGKEY=no'
8243                           fi
8244
8245 else
8246
8247                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
8248
8249 fi
8250
8251
8252           eval "$wx_cv_use_regkey"
8253
8254           if test x"$enablestring" = xdisable; then
8255             if test $wxUSE_REGKEY = yes; then
8256               result=no
8257             else
8258               result=yes
8259             fi
8260           else
8261             result=$wxUSE_REGKEY
8262           fi
8263
8264           { echo "$as_me:$LINENO: result: $result" >&5
8265 echo "${ECHO_T}$result" >&6; }
8266
8267
8268 if test "$wxUSE_GUI" = "yes"; then
8269
8270
8271
8272           enablestring=
8273           defaultval=$wxUSE_ALL_FEATURES
8274           if test -z "$defaultval"; then
8275               if test x"$enablestring" = xdisable; then
8276                   defaultval=yes
8277               else
8278                   defaultval=no
8279               fi
8280           fi
8281
8282           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
8283 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
8284           # Check whether --enable-docview was given.
8285 if test "${enable_docview+set}" = set; then
8286   enableval=$enable_docview;
8287                           if test "$enableval" = yes; then
8288                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
8289                           else
8290                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
8291                           fi
8292
8293 else
8294
8295                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
8296
8297 fi
8298
8299
8300           eval "$wx_cv_use_docview"
8301
8302           if test x"$enablestring" = xdisable; then
8303             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
8304               result=no
8305             else
8306               result=yes
8307             fi
8308           else
8309             result=$wxUSE_DOC_VIEW_ARCHITECTURE
8310           fi
8311
8312           { echo "$as_me:$LINENO: result: $result" >&5
8313 echo "${ECHO_T}$result" >&6; }
8314
8315
8316           enablestring=
8317           defaultval=$wxUSE_ALL_FEATURES
8318           if test -z "$defaultval"; then
8319               if test x"$enablestring" = xdisable; then
8320                   defaultval=yes
8321               else
8322                   defaultval=no
8323               fi
8324           fi
8325
8326           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
8327 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
8328           # Check whether --enable-help was given.
8329 if test "${enable_help+set}" = set; then
8330   enableval=$enable_help;
8331                           if test "$enableval" = yes; then
8332                             wx_cv_use_help='wxUSE_HELP=yes'
8333                           else
8334                             wx_cv_use_help='wxUSE_HELP=no'
8335                           fi
8336
8337 else
8338
8339                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
8340
8341 fi
8342
8343
8344           eval "$wx_cv_use_help"
8345
8346           if test x"$enablestring" = xdisable; then
8347             if test $wxUSE_HELP = yes; then
8348               result=no
8349             else
8350               result=yes
8351             fi
8352           else
8353             result=$wxUSE_HELP
8354           fi
8355
8356           { echo "$as_me:$LINENO: result: $result" >&5
8357 echo "${ECHO_T}$result" >&6; }
8358
8359
8360           enablestring=
8361           defaultval=$wxUSE_ALL_FEATURES
8362           if test -z "$defaultval"; then
8363               if test x"$enablestring" = xdisable; then
8364                   defaultval=yes
8365               else
8366                   defaultval=no
8367               fi
8368           fi
8369
8370           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
8371 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
8372           # Check whether --enable-mshtmlhelp was given.
8373 if test "${enable_mshtmlhelp+set}" = set; then
8374   enableval=$enable_mshtmlhelp;
8375                           if test "$enableval" = yes; then
8376                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
8377                           else
8378                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
8379                           fi
8380
8381 else
8382
8383                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
8384
8385 fi
8386
8387
8388           eval "$wx_cv_use_mshtmlhelp"
8389
8390           if test x"$enablestring" = xdisable; then
8391             if test $wxUSE_MS_HTML_HELP = yes; then
8392               result=no
8393             else
8394               result=yes
8395             fi
8396           else
8397             result=$wxUSE_MS_HTML_HELP
8398           fi
8399
8400           { echo "$as_me:$LINENO: result: $result" >&5
8401 echo "${ECHO_T}$result" >&6; }
8402
8403
8404           enablestring=
8405           defaultval=$wxUSE_ALL_FEATURES
8406           if test -z "$defaultval"; then
8407               if test x"$enablestring" = xdisable; then
8408                   defaultval=yes
8409               else
8410                   defaultval=no
8411               fi
8412           fi
8413
8414           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
8415 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
8416           # Check whether --enable-html was given.
8417 if test "${enable_html+set}" = set; then
8418   enableval=$enable_html;
8419                           if test "$enableval" = yes; then
8420                             wx_cv_use_html='wxUSE_HTML=yes'
8421                           else
8422                             wx_cv_use_html='wxUSE_HTML=no'
8423                           fi
8424
8425 else
8426
8427                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
8428
8429 fi
8430
8431
8432           eval "$wx_cv_use_html"
8433
8434           if test x"$enablestring" = xdisable; then
8435             if test $wxUSE_HTML = yes; then
8436               result=no
8437             else
8438               result=yes
8439             fi
8440           else
8441             result=$wxUSE_HTML
8442           fi
8443
8444           { echo "$as_me:$LINENO: result: $result" >&5
8445 echo "${ECHO_T}$result" >&6; }
8446
8447
8448           enablestring=
8449           defaultval=$wxUSE_ALL_FEATURES
8450           if test -z "$defaultval"; then
8451               if test x"$enablestring" = xdisable; then
8452                   defaultval=yes
8453               else
8454                   defaultval=no
8455               fi
8456           fi
8457
8458           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
8459 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
8460           # Check whether --enable-htmlhelp was given.
8461 if test "${enable_htmlhelp+set}" = set; then
8462   enableval=$enable_htmlhelp;
8463                           if test "$enableval" = yes; then
8464                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
8465                           else
8466                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
8467                           fi
8468
8469 else
8470
8471                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
8472
8473 fi
8474
8475
8476           eval "$wx_cv_use_htmlhelp"
8477
8478           if test x"$enablestring" = xdisable; then
8479             if test $wxUSE_WXHTML_HELP = yes; then
8480               result=no
8481             else
8482               result=yes
8483             fi
8484           else
8485             result=$wxUSE_WXHTML_HELP
8486           fi
8487
8488           { echo "$as_me:$LINENO: result: $result" >&5
8489 echo "${ECHO_T}$result" >&6; }
8490
8491
8492           enablestring=
8493           defaultval=$wxUSE_ALL_FEATURES
8494           if test -z "$defaultval"; then
8495               if test x"$enablestring" = xdisable; then
8496                   defaultval=yes
8497               else
8498                   defaultval=no
8499               fi
8500           fi
8501
8502           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
8503 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
8504           # Check whether --enable-xrc was given.
8505 if test "${enable_xrc+set}" = set; then
8506   enableval=$enable_xrc;
8507                           if test "$enableval" = yes; then
8508                             wx_cv_use_xrc='wxUSE_XRC=yes'
8509                           else
8510                             wx_cv_use_xrc='wxUSE_XRC=no'
8511                           fi
8512
8513 else
8514
8515                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
8516
8517 fi
8518
8519
8520           eval "$wx_cv_use_xrc"
8521
8522           if test x"$enablestring" = xdisable; then
8523             if test $wxUSE_XRC = yes; then
8524               result=no
8525             else
8526               result=yes
8527             fi
8528           else
8529             result=$wxUSE_XRC
8530           fi
8531
8532           { echo "$as_me:$LINENO: result: $result" >&5
8533 echo "${ECHO_T}$result" >&6; }
8534
8535
8536           enablestring=
8537           defaultval=$wxUSE_ALL_FEATURES
8538           if test -z "$defaultval"; then
8539               if test x"$enablestring" = xdisable; then
8540                   defaultval=yes
8541               else
8542                   defaultval=no
8543               fi
8544           fi
8545
8546           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
8547 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
8548           # Check whether --enable-aui was given.
8549 if test "${enable_aui+set}" = set; then
8550   enableval=$enable_aui;
8551                           if test "$enableval" = yes; then
8552                             wx_cv_use_aui='wxUSE_AUI=yes'
8553                           else
8554                             wx_cv_use_aui='wxUSE_AUI=no'
8555                           fi
8556
8557 else
8558
8559                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
8560
8561 fi
8562
8563
8564           eval "$wx_cv_use_aui"
8565
8566           if test x"$enablestring" = xdisable; then
8567             if test $wxUSE_AUI = yes; then
8568               result=no
8569             else
8570               result=yes
8571             fi
8572           else
8573             result=$wxUSE_AUI
8574           fi
8575
8576           { echo "$as_me:$LINENO: result: $result" >&5
8577 echo "${ECHO_T}$result" >&6; }
8578
8579
8580           enablestring=
8581           defaultval=$wxUSE_ALL_FEATURES
8582           if test -z "$defaultval"; then
8583               if test x"$enablestring" = xdisable; then
8584                   defaultval=yes
8585               else
8586                   defaultval=no
8587               fi
8588           fi
8589
8590           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-propgrid" >&5
8591 echo $ECHO_N "checking for --${enablestring:-enable}-propgrid... $ECHO_C" >&6; }
8592           # Check whether --enable-propgrid was given.
8593 if test "${enable_propgrid+set}" = set; then
8594   enableval=$enable_propgrid;
8595                           if test "$enableval" = yes; then
8596                             wx_cv_use_propgrid='wxUSE_PROPGRID=yes'
8597                           else
8598                             wx_cv_use_propgrid='wxUSE_PROPGRID=no'
8599                           fi
8600
8601 else
8602
8603                           wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}"
8604
8605 fi
8606
8607
8608           eval "$wx_cv_use_propgrid"
8609
8610           if test x"$enablestring" = xdisable; then
8611             if test $wxUSE_PROPGRID = yes; then
8612               result=no
8613             else
8614               result=yes
8615             fi
8616           else
8617             result=$wxUSE_PROPGRID
8618           fi
8619
8620           { echo "$as_me:$LINENO: result: $result" >&5
8621 echo "${ECHO_T}$result" >&6; }
8622
8623
8624           enablestring=
8625           defaultval=$wxUSE_ALL_FEATURES
8626           if test -z "$defaultval"; then
8627               if test x"$enablestring" = xdisable; then
8628                   defaultval=yes
8629               else
8630                   defaultval=no
8631               fi
8632           fi
8633
8634           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
8635 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
8636           # Check whether --enable-stc was given.
8637 if test "${enable_stc+set}" = set; then
8638   enableval=$enable_stc;
8639                           if test "$enableval" = yes; then
8640                             wx_cv_use_stc='wxUSE_STC=yes'
8641                           else
8642                             wx_cv_use_stc='wxUSE_STC=no'
8643                           fi
8644
8645 else
8646
8647                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
8648
8649 fi
8650
8651
8652           eval "$wx_cv_use_stc"
8653
8654           if test x"$enablestring" = xdisable; then
8655             if test $wxUSE_STC = yes; then
8656               result=no
8657             else
8658               result=yes
8659             fi
8660           else
8661             result=$wxUSE_STC
8662           fi
8663
8664           { echo "$as_me:$LINENO: result: $result" >&5
8665 echo "${ECHO_T}$result" >&6; }
8666
8667
8668           enablestring=
8669           defaultval=$wxUSE_ALL_FEATURES
8670           if test -z "$defaultval"; then
8671               if test x"$enablestring" = xdisable; then
8672                   defaultval=yes
8673               else
8674                   defaultval=no
8675               fi
8676           fi
8677
8678           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
8679 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
8680           # Check whether --enable-constraints was given.
8681 if test "${enable_constraints+set}" = set; then
8682   enableval=$enable_constraints;
8683                           if test "$enableval" = yes; then
8684                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
8685                           else
8686                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
8687                           fi
8688
8689 else
8690
8691                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
8692
8693 fi
8694
8695
8696           eval "$wx_cv_use_constraints"
8697
8698           if test x"$enablestring" = xdisable; then
8699             if test $wxUSE_CONSTRAINTS = yes; then
8700               result=no
8701             else
8702               result=yes
8703             fi
8704           else
8705             result=$wxUSE_CONSTRAINTS
8706           fi
8707
8708           { echo "$as_me:$LINENO: result: $result" >&5
8709 echo "${ECHO_T}$result" >&6; }
8710
8711
8712           enablestring=
8713           defaultval=$wxUSE_ALL_FEATURES
8714           if test -z "$defaultval"; then
8715               if test x"$enablestring" = xdisable; then
8716                   defaultval=yes
8717               else
8718                   defaultval=no
8719               fi
8720           fi
8721
8722           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
8723 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
8724           # Check whether --enable-loggui was given.
8725 if test "${enable_loggui+set}" = set; then
8726   enableval=$enable_loggui;
8727                           if test "$enableval" = yes; then
8728                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
8729                           else
8730                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
8731                           fi
8732
8733 else
8734
8735                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
8736
8737 fi
8738
8739
8740           eval "$wx_cv_use_loggui"
8741
8742           if test x"$enablestring" = xdisable; then
8743             if test $wxUSE_LOGGUI = yes; then
8744               result=no
8745             else
8746               result=yes
8747             fi
8748           else
8749             result=$wxUSE_LOGGUI
8750           fi
8751
8752           { echo "$as_me:$LINENO: result: $result" >&5
8753 echo "${ECHO_T}$result" >&6; }
8754
8755
8756           enablestring=
8757           defaultval=$wxUSE_ALL_FEATURES
8758           if test -z "$defaultval"; then
8759               if test x"$enablestring" = xdisable; then
8760                   defaultval=yes
8761               else
8762                   defaultval=no
8763               fi
8764           fi
8765
8766           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
8767 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
8768           # Check whether --enable-logwin was given.
8769 if test "${enable_logwin+set}" = set; then
8770   enableval=$enable_logwin;
8771                           if test "$enableval" = yes; then
8772                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
8773                           else
8774                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
8775                           fi
8776
8777 else
8778
8779                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
8780
8781 fi
8782
8783
8784           eval "$wx_cv_use_logwin"
8785
8786           if test x"$enablestring" = xdisable; then
8787             if test $wxUSE_LOGWINDOW = yes; then
8788               result=no
8789             else
8790               result=yes
8791             fi
8792           else
8793             result=$wxUSE_LOGWINDOW
8794           fi
8795
8796           { echo "$as_me:$LINENO: result: $result" >&5
8797 echo "${ECHO_T}$result" >&6; }
8798
8799
8800           enablestring=
8801           defaultval=$wxUSE_ALL_FEATURES
8802           if test -z "$defaultval"; then
8803               if test x"$enablestring" = xdisable; then
8804                   defaultval=yes
8805               else
8806                   defaultval=no
8807               fi
8808           fi
8809
8810           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
8811 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
8812           # Check whether --enable-logdialog was given.
8813 if test "${enable_logdialog+set}" = set; then
8814   enableval=$enable_logdialog;
8815                           if test "$enableval" = yes; then
8816                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
8817                           else
8818                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
8819                           fi
8820
8821 else
8822
8823                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
8824
8825 fi
8826
8827
8828           eval "$wx_cv_use_logdialog"
8829
8830           if test x"$enablestring" = xdisable; then
8831             if test $wxUSE_LOGDIALOG = yes; then
8832               result=no
8833             else
8834               result=yes
8835             fi
8836           else
8837             result=$wxUSE_LOGDIALOG
8838           fi
8839
8840           { echo "$as_me:$LINENO: result: $result" >&5
8841 echo "${ECHO_T}$result" >&6; }
8842
8843
8844           enablestring=
8845           defaultval=$wxUSE_ALL_FEATURES
8846           if test -z "$defaultval"; then
8847               if test x"$enablestring" = xdisable; then
8848                   defaultval=yes
8849               else
8850                   defaultval=no
8851               fi
8852           fi
8853
8854           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
8855 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
8856           # Check whether --enable-mdi was given.
8857 if test "${enable_mdi+set}" = set; then
8858   enableval=$enable_mdi;
8859                           if test "$enableval" = yes; then
8860                             wx_cv_use_mdi='wxUSE_MDI=yes'
8861                           else
8862                             wx_cv_use_mdi='wxUSE_MDI=no'
8863                           fi
8864
8865 else
8866
8867                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
8868
8869 fi
8870
8871
8872           eval "$wx_cv_use_mdi"
8873
8874           if test x"$enablestring" = xdisable; then
8875             if test $wxUSE_MDI = yes; then
8876               result=no
8877             else
8878               result=yes
8879             fi
8880           else
8881             result=$wxUSE_MDI
8882           fi
8883
8884           { echo "$as_me:$LINENO: result: $result" >&5
8885 echo "${ECHO_T}$result" >&6; }
8886
8887
8888           enablestring=
8889           defaultval=$wxUSE_ALL_FEATURES
8890           if test -z "$defaultval"; then
8891               if test x"$enablestring" = xdisable; then
8892                   defaultval=yes
8893               else
8894                   defaultval=no
8895               fi
8896           fi
8897
8898           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
8899 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
8900           # Check whether --enable-mdidoc was given.
8901 if test "${enable_mdidoc+set}" = set; then
8902   enableval=$enable_mdidoc;
8903                           if test "$enableval" = yes; then
8904                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
8905                           else
8906                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
8907                           fi
8908
8909 else
8910
8911                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
8912
8913 fi
8914
8915
8916           eval "$wx_cv_use_mdidoc"
8917
8918           if test x"$enablestring" = xdisable; then
8919             if test $wxUSE_MDI_ARCHITECTURE = yes; then
8920               result=no
8921             else
8922               result=yes
8923             fi
8924           else
8925             result=$wxUSE_MDI_ARCHITECTURE
8926           fi
8927
8928           { echo "$as_me:$LINENO: result: $result" >&5
8929 echo "${ECHO_T}$result" >&6; }
8930
8931
8932           enablestring=
8933           defaultval=$wxUSE_ALL_FEATURES
8934           if test -z "$defaultval"; then
8935               if test x"$enablestring" = xdisable; then
8936                   defaultval=yes
8937               else
8938                   defaultval=no
8939               fi
8940           fi
8941
8942           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8943 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8944           # Check whether --enable-mediactrl was given.
8945 if test "${enable_mediactrl+set}" = set; then
8946   enableval=$enable_mediactrl;
8947                           if test "$enableval" = yes; then
8948                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8949                           else
8950                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8951                           fi
8952
8953 else
8954
8955                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8956
8957 fi
8958
8959
8960           eval "$wx_cv_use_mediactrl"
8961
8962           if test x"$enablestring" = xdisable; then
8963             if test $wxUSE_MEDIACTRL = yes; then
8964               result=no
8965             else
8966               result=yes
8967             fi
8968           else
8969             result=$wxUSE_MEDIACTRL
8970           fi
8971
8972           { echo "$as_me:$LINENO: result: $result" >&5
8973 echo "${ECHO_T}$result" >&6; }
8974
8975
8976           enablestring=
8977           defaultval=$wxUSE_ALL_FEATURES
8978           if test -z "$defaultval"; then
8979               if test x"$enablestring" = xdisable; then
8980                   defaultval=yes
8981               else
8982                   defaultval=no
8983               fi
8984           fi
8985
8986           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8987 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8988           # Check whether --enable-gstreamer8 was given.
8989 if test "${enable_gstreamer8+set}" = set; then
8990   enableval=$enable_gstreamer8;
8991                           if test "$enableval" = yes; then
8992                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8993                           else
8994                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8995                           fi
8996
8997 else
8998
8999                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
9000
9001 fi
9002
9003
9004           eval "$wx_cv_use_gstreamer8"
9005
9006           if test x"$enablestring" = xdisable; then
9007             if test $wxUSE_GSTREAMER8 = yes; then
9008               result=no
9009             else
9010               result=yes
9011             fi
9012           else
9013             result=$wxUSE_GSTREAMER8
9014           fi
9015
9016           { echo "$as_me:$LINENO: result: $result" >&5
9017 echo "${ECHO_T}$result" >&6; }
9018
9019
9020           enablestring=
9021           defaultval=$wxUSE_ALL_FEATURES
9022           if test -z "$defaultval"; then
9023               if test x"$enablestring" = xdisable; then
9024                   defaultval=yes
9025               else
9026                   defaultval=no
9027               fi
9028           fi
9029
9030           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9031 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9032           # Check whether --enable-webkit was given.
9033 if test "${enable_webkit+set}" = set; then
9034   enableval=$enable_webkit;
9035                           if test "$enableval" = yes; then
9036                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9037                           else
9038                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9039                           fi
9040
9041 else
9042
9043                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9044
9045 fi
9046
9047
9048           eval "$wx_cv_use_webkit"
9049
9050           if test x"$enablestring" = xdisable; then
9051             if test $wxUSE_WEBKIT = yes; then
9052               result=no
9053             else
9054               result=yes
9055             fi
9056           else
9057             result=$wxUSE_WEBKIT
9058           fi
9059
9060           { echo "$as_me:$LINENO: result: $result" >&5
9061 echo "${ECHO_T}$result" >&6; }
9062
9063
9064           enablestring=
9065           defaultval=$wxUSE_ALL_FEATURES
9066           if test -z "$defaultval"; then
9067               if test x"$enablestring" = xdisable; then
9068                   defaultval=yes
9069               else
9070                   defaultval=no
9071               fi
9072           fi
9073
9074           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
9075 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
9076           # Check whether --enable-richtext was given.
9077 if test "${enable_richtext+set}" = set; then
9078   enableval=$enable_richtext;
9079                           if test "$enableval" = yes; then
9080                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
9081                           else
9082                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
9083                           fi
9084
9085 else
9086
9087                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
9088
9089 fi
9090
9091
9092           eval "$wx_cv_use_richtext"
9093
9094           if test x"$enablestring" = xdisable; then
9095             if test $wxUSE_RICHTEXT = yes; then
9096               result=no
9097             else
9098               result=yes
9099             fi
9100           else
9101             result=$wxUSE_RICHTEXT
9102           fi
9103
9104           { echo "$as_me:$LINENO: result: $result" >&5
9105 echo "${ECHO_T}$result" >&6; }
9106
9107
9108           enablestring=
9109           defaultval=$wxUSE_ALL_FEATURES
9110           if test -z "$defaultval"; then
9111               if test x"$enablestring" = xdisable; then
9112                   defaultval=yes
9113               else
9114                   defaultval=no
9115               fi
9116           fi
9117
9118           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
9119 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
9120           # Check whether --enable-graphics_ctx was given.
9121 if test "${enable_graphics_ctx+set}" = set; then
9122   enableval=$enable_graphics_ctx;
9123                           if test "$enableval" = yes; then
9124                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
9125                           else
9126                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
9127                           fi
9128
9129 else
9130
9131                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
9132
9133 fi
9134
9135
9136           eval "$wx_cv_use_graphics_ctx"
9137
9138           if test x"$enablestring" = xdisable; then
9139             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
9140               result=no
9141             else
9142               result=yes
9143             fi
9144           else
9145             result=$wxUSE_GRAPHICS_CONTEXT
9146           fi
9147
9148           { echo "$as_me:$LINENO: result: $result" >&5
9149 echo "${ECHO_T}$result" >&6; }
9150
9151
9152           enablestring=
9153           defaultval=$wxUSE_ALL_FEATURES
9154           if test -z "$defaultval"; then
9155               if test x"$enablestring" = xdisable; then
9156                   defaultval=yes
9157               else
9158                   defaultval=no
9159               fi
9160           fi
9161
9162           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
9163 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
9164           # Check whether --enable-postscript was given.
9165 if test "${enable_postscript+set}" = set; then
9166   enableval=$enable_postscript;
9167                           if test "$enableval" = yes; then
9168                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
9169                           else
9170                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
9171                           fi
9172
9173 else
9174
9175                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
9176
9177 fi
9178
9179
9180           eval "$wx_cv_use_postscript"
9181
9182           if test x"$enablestring" = xdisable; then
9183             if test $wxUSE_POSTSCRIPT = yes; then
9184               result=no
9185             else
9186               result=yes
9187             fi
9188           else
9189             result=$wxUSE_POSTSCRIPT
9190           fi
9191
9192           { echo "$as_me:$LINENO: result: $result" >&5
9193 echo "${ECHO_T}$result" >&6; }
9194
9195
9196           enablestring=
9197           defaultval=$wxUSE_ALL_FEATURES
9198           if test -z "$defaultval"; then
9199               if test x"$enablestring" = xdisable; then
9200                   defaultval=yes
9201               else
9202                   defaultval=no
9203               fi
9204           fi
9205
9206           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9207 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9208           # Check whether --enable-printarch was given.
9209 if test "${enable_printarch+set}" = set; then
9210   enableval=$enable_printarch;
9211                           if test "$enableval" = yes; then
9212                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9213                           else
9214                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9215                           fi
9216
9217 else
9218
9219                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9220
9221 fi
9222
9223
9224           eval "$wx_cv_use_printarch"
9225
9226           if test x"$enablestring" = xdisable; then
9227             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9228               result=no
9229             else
9230               result=yes
9231             fi
9232           else
9233             result=$wxUSE_PRINTING_ARCHITECTURE
9234           fi
9235
9236           { echo "$as_me:$LINENO: result: $result" >&5
9237 echo "${ECHO_T}$result" >&6; }
9238
9239
9240           enablestring=
9241           defaultval=$wxUSE_ALL_FEATURES
9242           if test -z "$defaultval"; then
9243               if test x"$enablestring" = xdisable; then
9244                   defaultval=yes
9245               else
9246                   defaultval=no
9247               fi
9248           fi
9249
9250           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
9251 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
9252           # Check whether --enable-svg was given.
9253 if test "${enable_svg+set}" = set; then
9254   enableval=$enable_svg;
9255                           if test "$enableval" = yes; then
9256                             wx_cv_use_svg='wxUSE_SVG=yes'
9257                           else
9258                             wx_cv_use_svg='wxUSE_SVG=no'
9259                           fi
9260
9261 else
9262
9263                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
9264
9265 fi
9266
9267
9268           eval "$wx_cv_use_svg"
9269
9270           if test x"$enablestring" = xdisable; then
9271             if test $wxUSE_SVG = yes; then
9272               result=no
9273             else
9274               result=yes
9275             fi
9276           else
9277             result=$wxUSE_SVG
9278           fi
9279
9280           { echo "$as_me:$LINENO: result: $result" >&5
9281 echo "${ECHO_T}$result" >&6; }
9282
9283
9284
9285
9286           enablestring=
9287           defaultval=$wxUSE_ALL_FEATURES
9288           if test -z "$defaultval"; then
9289               if test x"$enablestring" = xdisable; then
9290                   defaultval=yes
9291               else
9292                   defaultval=no
9293               fi
9294           fi
9295
9296           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
9297 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
9298           # Check whether --enable-clipboard was given.
9299 if test "${enable_clipboard+set}" = set; then
9300   enableval=$enable_clipboard;
9301                           if test "$enableval" = yes; then
9302                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
9303                           else
9304                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
9305                           fi
9306
9307 else
9308
9309                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
9310
9311 fi
9312
9313
9314           eval "$wx_cv_use_clipboard"
9315
9316           if test x"$enablestring" = xdisable; then
9317             if test $wxUSE_CLIPBOARD = yes; then
9318               result=no
9319             else
9320               result=yes
9321             fi
9322           else
9323             result=$wxUSE_CLIPBOARD
9324           fi
9325
9326           { echo "$as_me:$LINENO: result: $result" >&5
9327 echo "${ECHO_T}$result" >&6; }
9328
9329
9330           enablestring=
9331           defaultval=$wxUSE_ALL_FEATURES
9332           if test -z "$defaultval"; then
9333               if test x"$enablestring" = xdisable; then
9334                   defaultval=yes
9335               else
9336                   defaultval=no
9337               fi
9338           fi
9339
9340           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
9341 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
9342           # Check whether --enable-dnd was given.
9343 if test "${enable_dnd+set}" = set; then
9344   enableval=$enable_dnd;
9345                           if test "$enableval" = yes; then
9346                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
9347                           else
9348                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
9349                           fi
9350
9351 else
9352
9353                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
9354
9355 fi
9356
9357
9358           eval "$wx_cv_use_dnd"
9359
9360           if test x"$enablestring" = xdisable; then
9361             if test $wxUSE_DRAG_AND_DROP = yes; then
9362               result=no
9363             else
9364               result=yes
9365             fi
9366           else
9367             result=$wxUSE_DRAG_AND_DROP
9368           fi
9369
9370           { echo "$as_me:$LINENO: result: $result" >&5
9371 echo "${ECHO_T}$result" >&6; }
9372
9373
9374           enablestring=
9375           defaultval=$wxUSE_ALL_FEATURES
9376           if test -z "$defaultval"; then
9377               if test x"$enablestring" = xdisable; then
9378                   defaultval=yes
9379               else
9380                   defaultval=no
9381               fi
9382           fi
9383
9384           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9385 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
9386           # Check whether --enable-metafile was given.
9387 if test "${enable_metafile+set}" = set; then
9388   enableval=$enable_metafile;
9389                           if test "$enableval" = yes; then
9390                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
9391                           else
9392                             wx_cv_use_metafile='wxUSE_METAFILE=no'
9393                           fi
9394
9395 else
9396
9397                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
9398
9399 fi
9400
9401
9402           eval "$wx_cv_use_metafile"
9403
9404           if test x"$enablestring" = xdisable; then
9405             if test $wxUSE_METAFILE = yes; then
9406               result=no
9407             else
9408               result=yes
9409             fi
9410           else
9411             result=$wxUSE_METAFILE
9412           fi
9413
9414           { echo "$as_me:$LINENO: result: $result" >&5
9415 echo "${ECHO_T}$result" >&6; }
9416
9417
9418
9419 DEFAULT_wxUSE_CONTROLS=none
9420
9421           enablestring=disable
9422           defaultval=
9423           if test -z "$defaultval"; then
9424               if test x"$enablestring" = xdisable; then
9425                   defaultval=yes
9426               else
9427                   defaultval=no
9428               fi
9429           fi
9430
9431           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
9432 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
9433           # Check whether --enable-controls was given.
9434 if test "${enable_controls+set}" = set; then
9435   enableval=$enable_controls;
9436                           if test "$enableval" = yes; then
9437                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
9438                           else
9439                             wx_cv_use_controls='wxUSE_CONTROLS=no'
9440                           fi
9441
9442 else
9443
9444                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
9445
9446 fi
9447
9448
9449           eval "$wx_cv_use_controls"
9450
9451           if test x"$enablestring" = xdisable; then
9452             if test $wxUSE_CONTROLS = yes; then
9453               result=no
9454             else
9455               result=yes
9456             fi
9457           else
9458             result=$wxUSE_CONTROLS
9459           fi
9460
9461           { echo "$as_me:$LINENO: result: $result" >&5
9462 echo "${ECHO_T}$result" >&6; }
9463
9464
9465 if test "$wxUSE_CONTROLS" = "yes"; then
9466   DEFAULT_wxUSE_ACCEL=yes
9467   DEFAULT_wxUSE_ANIMATIONCTRL=yes
9468   DEFAULT_wxUSE_BMPBUTTON=yes
9469   DEFAULT_wxUSE_BUTTON=yes
9470   DEFAULT_wxUSE_CALCTRL=yes
9471   DEFAULT_wxUSE_CARET=yes
9472   DEFAULT_wxUSE_COMBOBOX=yes
9473   DEFAULT_wxUSE_CHECKBOX=yes
9474   DEFAULT_wxUSE_CHECKLISTBOX=yes
9475   DEFAULT_wxUSE_CHOICE=yes
9476   DEFAULT_wxUSE_CHOICEBOOK=yes
9477   DEFAULT_wxUSE_COLLPANE=yes
9478   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
9479   DEFAULT_wxUSE_COMBOBOX=yes
9480   DEFAULT_wxUSE_DATEPICKCTRL=yes
9481   DEFAULT_wxUSE_DISPLAY=yes
9482   DEFAULT_wxUSE_DETECT_SM=yes
9483   DEFAULT_wxUSE_DIRPICKERCTRL=yes
9484   DEFAULT_wxUSE_FILECTRL=yes
9485   DEFAULT_wxUSE_FILEPICKERCTRL=yes
9486   DEFAULT_wxUSE_FONTPICKERCTRL=yes
9487   DEFAULT_wxUSE_GAUGE=yes
9488   DEFAULT_wxUSE_GRID=yes
9489   DEFAULT_wxUSE_HYPERLINKCTRL=yes
9490   DEFAULT_wxUSE_DATAVIEWCTRL=yes
9491   DEFAULT_wxUSE_IMAGLIST=yes
9492   DEFAULT_wxUSE_LISTBOOK=yes
9493   DEFAULT_wxUSE_LISTBOX=yes
9494   DEFAULT_wxUSE_LISTCTRL=yes
9495   DEFAULT_wxUSE_NOTEBOOK=yes
9496   DEFAULT_wxUSE_RADIOBOX=yes
9497   DEFAULT_wxUSE_RADIOBTN=yes
9498   DEFAULT_wxUSE_SASH=yes
9499   DEFAULT_wxUSE_SCROLLBAR=yes
9500   DEFAULT_wxUSE_SEARCHCTRL=yes
9501   DEFAULT_wxUSE_SLIDER=yes
9502   DEFAULT_wxUSE_SPINBTN=yes
9503   DEFAULT_wxUSE_SPINCTRL=yes
9504   DEFAULT_wxUSE_SPLITTER=yes
9505   DEFAULT_wxUSE_STATBMP=yes
9506   DEFAULT_wxUSE_STATBOX=yes
9507   DEFAULT_wxUSE_STATLINE=yes
9508   DEFAULT_wxUSE_STATUSBAR=yes
9509   DEFAULT_wxUSE_TAB_DIALOG=yes
9510   DEFAULT_wxUSE_TOGGLEBTN=yes
9511   DEFAULT_wxUSE_TOOLBAR=yes
9512   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
9513   DEFAULT_wxUSE_TOOLTIPS=yes
9514   DEFAULT_wxUSE_TREEBOOK=yes
9515   DEFAULT_wxUSE_TOOLBOOK=yes
9516   DEFAULT_wxUSE_TREECTRL=yes
9517   DEFAULT_wxUSE_POPUPWIN=yes
9518   DEFAULT_wxUSE_TIPWINDOW=yes
9519 elif test "$wxUSE_CONTROLS" = "no"; then
9520   DEFAULT_wxUSE_ACCEL=no
9521   DEFAULT_wxUSE_ANIMATIONCTRL=no
9522   DEFAULT_wxUSE_BMPBUTTON=no
9523   DEFAULT_wxUSE_BUTTON=no
9524   DEFAULT_wxUSE_CALCTRL=no
9525   DEFAULT_wxUSE_CARET=no
9526   DEFAULT_wxUSE_COLLPANE=no
9527   DEFAULT_wxUSE_COMBOBOX=no
9528   DEFAULT_wxUSE_CHECKBOX=no
9529   DEFAULT_wxUSE_CHECKLISTBOX=no
9530   DEFAULT_wxUSE_CHOICE=no
9531   DEFAULT_wxUSE_CHOICEBOOK=no
9532   DEFAULT_wxUSE_COLOURPICKERCTRL=no
9533   DEFAULT_wxUSE_COMBOBOX=no
9534   DEFAULT_wxUSE_DATEPICKCTRL=no
9535   DEFAULT_wxUSE_DISPLAY=no
9536   DEFAULT_wxUSE_DETECT_SM=no
9537   DEFAULT_wxUSE_DIRPICKERCTRL=no
9538   DEFAULT_wxUSE_FILECTRL=no
9539   DEFAULT_wxUSE_FILEPICKERCTRL=no
9540   DEFAULT_wxUSE_FONTPICKERCTRL=no
9541   DEFAULT_wxUSE_GAUGE=no
9542   DEFAULT_wxUSE_GRID=no
9543   DEFAULT_wxUSE_HYPERLINKCTRL=no
9544   DEFAULT_wxUSE_DATAVIEWCTRL=no
9545   DEFAULT_wxUSE_IMAGLIST=no
9546   DEFAULT_wxUSE_LISTBOOK=no
9547   DEFAULT_wxUSE_LISTBOX=no
9548   DEFAULT_wxUSE_LISTCTRL=no
9549   DEFAULT_wxUSE_NOTEBOOK=no
9550   DEFAULT_wxUSE_RADIOBOX=no
9551   DEFAULT_wxUSE_RADIOBTN=no
9552   DEFAULT_wxUSE_SASH=no
9553   DEFAULT_wxUSE_SCROLLBAR=no
9554   DEFAULT_wxUSE_SEARCHCTRL=no
9555   DEFAULT_wxUSE_SLIDER=no
9556   DEFAULT_wxUSE_SPINBTN=no
9557   DEFAULT_wxUSE_SPINCTRL=no
9558   DEFAULT_wxUSE_SPLITTER=no
9559   DEFAULT_wxUSE_STATBMP=no
9560   DEFAULT_wxUSE_STATBOX=no
9561   DEFAULT_wxUSE_STATLINE=no
9562   DEFAULT_wxUSE_STATUSBAR=no
9563   DEFAULT_wxUSE_TAB_DIALOG=no
9564   DEFAULT_wxUSE_TOGGLEBTN=no
9565   DEFAULT_wxUSE_TOOLBAR=no
9566   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
9567   DEFAULT_wxUSE_TOOLTIPS=no
9568   DEFAULT_wxUSE_TREEBOOK=no
9569   DEFAULT_wxUSE_TOOLBOOK=no
9570   DEFAULT_wxUSE_TREECTRL=no
9571   DEFAULT_wxUSE_POPUPWIN=no
9572   DEFAULT_wxUSE_TIPWINDOW=no
9573 fi
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}-accel" >&5
9587 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
9588           # Check whether --enable-accel was given.
9589 if test "${enable_accel+set}" = set; then
9590   enableval=$enable_accel;
9591                           if test "$enableval" = yes; then
9592                             wx_cv_use_accel='wxUSE_ACCEL=yes'
9593                           else
9594                             wx_cv_use_accel='wxUSE_ACCEL=no'
9595                           fi
9596
9597 else
9598
9599                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
9600
9601 fi
9602
9603
9604           eval "$wx_cv_use_accel"
9605
9606           if test x"$enablestring" = xdisable; then
9607             if test $wxUSE_ACCEL = yes; then
9608               result=no
9609             else
9610               result=yes
9611             fi
9612           else
9613             result=$wxUSE_ACCEL
9614           fi
9615
9616           { echo "$as_me:$LINENO: result: $result" >&5
9617 echo "${ECHO_T}$result" >&6; }
9618
9619
9620           enablestring=
9621           defaultval=$wxUSE_ALL_FEATURES
9622           if test -z "$defaultval"; then
9623               if test x"$enablestring" = xdisable; then
9624                   defaultval=yes
9625               else
9626                   defaultval=no
9627               fi
9628           fi
9629
9630           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
9631 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
9632           # Check whether --enable-animatectrl was given.
9633 if test "${enable_animatectrl+set}" = set; then
9634   enableval=$enable_animatectrl;
9635                           if test "$enableval" = yes; then
9636                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
9637                           else
9638                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
9639                           fi
9640
9641 else
9642
9643                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
9644
9645 fi
9646
9647
9648           eval "$wx_cv_use_animatectrl"
9649
9650           if test x"$enablestring" = xdisable; then
9651             if test $wxUSE_ANIMATIONCTRL = yes; then
9652               result=no
9653             else
9654               result=yes
9655             fi
9656           else
9657             result=$wxUSE_ANIMATIONCTRL
9658           fi
9659
9660           { echo "$as_me:$LINENO: result: $result" >&5
9661 echo "${ECHO_T}$result" >&6; }
9662
9663
9664           enablestring=
9665           defaultval=$wxUSE_ALL_FEATURES
9666           if test -z "$defaultval"; then
9667               if test x"$enablestring" = xdisable; then
9668                   defaultval=yes
9669               else
9670                   defaultval=no
9671               fi
9672           fi
9673
9674           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
9675 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
9676           # Check whether --enable-button was given.
9677 if test "${enable_button+set}" = set; then
9678   enableval=$enable_button;
9679                           if test "$enableval" = yes; then
9680                             wx_cv_use_button='wxUSE_BUTTON=yes'
9681                           else
9682                             wx_cv_use_button='wxUSE_BUTTON=no'
9683                           fi
9684
9685 else
9686
9687                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
9688
9689 fi
9690
9691
9692           eval "$wx_cv_use_button"
9693
9694           if test x"$enablestring" = xdisable; then
9695             if test $wxUSE_BUTTON = yes; then
9696               result=no
9697             else
9698               result=yes
9699             fi
9700           else
9701             result=$wxUSE_BUTTON
9702           fi
9703
9704           { echo "$as_me:$LINENO: result: $result" >&5
9705 echo "${ECHO_T}$result" >&6; }
9706
9707
9708           enablestring=
9709           defaultval=$wxUSE_ALL_FEATURES
9710           if test -z "$defaultval"; then
9711               if test x"$enablestring" = xdisable; then
9712                   defaultval=yes
9713               else
9714                   defaultval=no
9715               fi
9716           fi
9717
9718           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
9719 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
9720           # Check whether --enable-bmpbutton was given.
9721 if test "${enable_bmpbutton+set}" = set; then
9722   enableval=$enable_bmpbutton;
9723                           if test "$enableval" = yes; then
9724                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
9725                           else
9726                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
9727                           fi
9728
9729 else
9730
9731                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
9732
9733 fi
9734
9735
9736           eval "$wx_cv_use_bmpbutton"
9737
9738           if test x"$enablestring" = xdisable; then
9739             if test $wxUSE_BMPBUTTON = yes; then
9740               result=no
9741             else
9742               result=yes
9743             fi
9744           else
9745             result=$wxUSE_BMPBUTTON
9746           fi
9747
9748           { echo "$as_me:$LINENO: result: $result" >&5
9749 echo "${ECHO_T}$result" >&6; }
9750
9751
9752           enablestring=
9753           defaultval=$wxUSE_ALL_FEATURES
9754           if test -z "$defaultval"; then
9755               if test x"$enablestring" = xdisable; then
9756                   defaultval=yes
9757               else
9758                   defaultval=no
9759               fi
9760           fi
9761
9762           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
9763 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
9764           # Check whether --enable-bmpcombobox was given.
9765 if test "${enable_bmpcombobox+set}" = set; then
9766   enableval=$enable_bmpcombobox;
9767                           if test "$enableval" = yes; then
9768                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
9769                           else
9770                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
9771                           fi
9772
9773 else
9774
9775                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
9776
9777 fi
9778
9779
9780           eval "$wx_cv_use_bmpcombobox"
9781
9782           if test x"$enablestring" = xdisable; then
9783             if test $wxUSE_BITMAPCOMBOBOX = yes; then
9784               result=no
9785             else
9786               result=yes
9787             fi
9788           else
9789             result=$wxUSE_BITMAPCOMBOBOX
9790           fi
9791
9792           { echo "$as_me:$LINENO: result: $result" >&5
9793 echo "${ECHO_T}$result" >&6; }
9794
9795
9796           enablestring=
9797           defaultval=$wxUSE_ALL_FEATURES
9798           if test -z "$defaultval"; then
9799               if test x"$enablestring" = xdisable; then
9800                   defaultval=yes
9801               else
9802                   defaultval=no
9803               fi
9804           fi
9805
9806           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
9807 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
9808           # Check whether --enable-calendar was given.
9809 if test "${enable_calendar+set}" = set; then
9810   enableval=$enable_calendar;
9811                           if test "$enableval" = yes; then
9812                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
9813                           else
9814                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
9815                           fi
9816
9817 else
9818
9819                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
9820
9821 fi
9822
9823
9824           eval "$wx_cv_use_calendar"
9825
9826           if test x"$enablestring" = xdisable; then
9827             if test $wxUSE_CALCTRL = yes; then
9828               result=no
9829             else
9830               result=yes
9831             fi
9832           else
9833             result=$wxUSE_CALCTRL
9834           fi
9835
9836           { echo "$as_me:$LINENO: result: $result" >&5
9837 echo "${ECHO_T}$result" >&6; }
9838
9839
9840           enablestring=
9841           defaultval=$wxUSE_ALL_FEATURES
9842           if test -z "$defaultval"; then
9843               if test x"$enablestring" = xdisable; then
9844                   defaultval=yes
9845               else
9846                   defaultval=no
9847               fi
9848           fi
9849
9850           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
9851 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
9852           # Check whether --enable-caret was given.
9853 if test "${enable_caret+set}" = set; then
9854   enableval=$enable_caret;
9855                           if test "$enableval" = yes; then
9856                             wx_cv_use_caret='wxUSE_CARET=yes'
9857                           else
9858                             wx_cv_use_caret='wxUSE_CARET=no'
9859                           fi
9860
9861 else
9862
9863                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
9864
9865 fi
9866
9867
9868           eval "$wx_cv_use_caret"
9869
9870           if test x"$enablestring" = xdisable; then
9871             if test $wxUSE_CARET = yes; then
9872               result=no
9873             else
9874               result=yes
9875             fi
9876           else
9877             result=$wxUSE_CARET
9878           fi
9879
9880           { echo "$as_me:$LINENO: result: $result" >&5
9881 echo "${ECHO_T}$result" >&6; }
9882
9883
9884           enablestring=
9885           defaultval=$wxUSE_ALL_FEATURES
9886           if test -z "$defaultval"; then
9887               if test x"$enablestring" = xdisable; then
9888                   defaultval=yes
9889               else
9890                   defaultval=no
9891               fi
9892           fi
9893
9894           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
9895 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
9896           # Check whether --enable-checkbox was given.
9897 if test "${enable_checkbox+set}" = set; then
9898   enableval=$enable_checkbox;
9899                           if test "$enableval" = yes; then
9900                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
9901                           else
9902                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
9903                           fi
9904
9905 else
9906
9907                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
9908
9909 fi
9910
9911
9912           eval "$wx_cv_use_checkbox"
9913
9914           if test x"$enablestring" = xdisable; then
9915             if test $wxUSE_CHECKBOX = yes; then
9916               result=no
9917             else
9918               result=yes
9919             fi
9920           else
9921             result=$wxUSE_CHECKBOX
9922           fi
9923
9924           { echo "$as_me:$LINENO: result: $result" >&5
9925 echo "${ECHO_T}$result" >&6; }
9926
9927
9928           enablestring=
9929           defaultval=$wxUSE_ALL_FEATURES
9930           if test -z "$defaultval"; then
9931               if test x"$enablestring" = xdisable; then
9932                   defaultval=yes
9933               else
9934                   defaultval=no
9935               fi
9936           fi
9937
9938           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
9939 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
9940           # Check whether --enable-checklst was given.
9941 if test "${enable_checklst+set}" = set; then
9942   enableval=$enable_checklst;
9943                           if test "$enableval" = yes; then
9944                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
9945                           else
9946                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
9947                           fi
9948
9949 else
9950
9951                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
9952
9953 fi
9954
9955
9956           eval "$wx_cv_use_checklst"
9957
9958           if test x"$enablestring" = xdisable; then
9959             if test $wxUSE_CHECKLST = yes; then
9960               result=no
9961             else
9962               result=yes
9963             fi
9964           else
9965             result=$wxUSE_CHECKLST
9966           fi
9967
9968           { echo "$as_me:$LINENO: result: $result" >&5
9969 echo "${ECHO_T}$result" >&6; }
9970
9971
9972           enablestring=
9973           defaultval=$wxUSE_ALL_FEATURES
9974           if test -z "$defaultval"; then
9975               if test x"$enablestring" = xdisable; then
9976                   defaultval=yes
9977               else
9978                   defaultval=no
9979               fi
9980           fi
9981
9982           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
9983 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
9984           # Check whether --enable-choice was given.
9985 if test "${enable_choice+set}" = set; then
9986   enableval=$enable_choice;
9987                           if test "$enableval" = yes; then
9988                             wx_cv_use_choice='wxUSE_CHOICE=yes'
9989                           else
9990                             wx_cv_use_choice='wxUSE_CHOICE=no'
9991                           fi
9992
9993 else
9994
9995                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
9996
9997 fi
9998
9999
10000           eval "$wx_cv_use_choice"
10001
10002           if test x"$enablestring" = xdisable; then
10003             if test $wxUSE_CHOICE = yes; then
10004               result=no
10005             else
10006               result=yes
10007             fi
10008           else
10009             result=$wxUSE_CHOICE
10010           fi
10011
10012           { echo "$as_me:$LINENO: result: $result" >&5
10013 echo "${ECHO_T}$result" >&6; }
10014
10015
10016           enablestring=
10017           defaultval=$wxUSE_ALL_FEATURES
10018           if test -z "$defaultval"; then
10019               if test x"$enablestring" = xdisable; then
10020                   defaultval=yes
10021               else
10022                   defaultval=no
10023               fi
10024           fi
10025
10026           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
10027 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
10028           # Check whether --enable-choicebook was given.
10029 if test "${enable_choicebook+set}" = set; then
10030   enableval=$enable_choicebook;
10031                           if test "$enableval" = yes; then
10032                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
10033                           else
10034                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
10035                           fi
10036
10037 else
10038
10039                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
10040
10041 fi
10042
10043
10044           eval "$wx_cv_use_choicebook"
10045
10046           if test x"$enablestring" = xdisable; then
10047             if test $wxUSE_CHOICEBOOK = yes; then
10048               result=no
10049             else
10050               result=yes
10051             fi
10052           else
10053             result=$wxUSE_CHOICEBOOK
10054           fi
10055
10056           { echo "$as_me:$LINENO: result: $result" >&5
10057 echo "${ECHO_T}$result" >&6; }
10058
10059
10060           enablestring=
10061           defaultval=$wxUSE_ALL_FEATURES
10062           if test -z "$defaultval"; then
10063               if test x"$enablestring" = xdisable; then
10064                   defaultval=yes
10065               else
10066                   defaultval=no
10067               fi
10068           fi
10069
10070           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
10071 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
10072           # Check whether --enable-collpane was given.
10073 if test "${enable_collpane+set}" = set; then
10074   enableval=$enable_collpane;
10075                           if test "$enableval" = yes; then
10076                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
10077                           else
10078                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
10079                           fi
10080
10081 else
10082
10083                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
10084
10085 fi
10086
10087
10088           eval "$wx_cv_use_collpane"
10089
10090           if test x"$enablestring" = xdisable; then
10091             if test $wxUSE_COLLPANE = yes; then
10092               result=no
10093             else
10094               result=yes
10095             fi
10096           else
10097             result=$wxUSE_COLLPANE
10098           fi
10099
10100           { echo "$as_me:$LINENO: result: $result" >&5
10101 echo "${ECHO_T}$result" >&6; }
10102
10103
10104           enablestring=
10105           defaultval=$wxUSE_ALL_FEATURES
10106           if test -z "$defaultval"; then
10107               if test x"$enablestring" = xdisable; then
10108                   defaultval=yes
10109               else
10110                   defaultval=no
10111               fi
10112           fi
10113
10114           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
10115 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
10116           # Check whether --enable-colourpicker was given.
10117 if test "${enable_colourpicker+set}" = set; then
10118   enableval=$enable_colourpicker;
10119                           if test "$enableval" = yes; then
10120                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
10121                           else
10122                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
10123                           fi
10124
10125 else
10126
10127                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
10128
10129 fi
10130
10131
10132           eval "$wx_cv_use_colourpicker"
10133
10134           if test x"$enablestring" = xdisable; then
10135             if test $wxUSE_COLOURPICKERCTRL = yes; then
10136               result=no
10137             else
10138               result=yes
10139             fi
10140           else
10141             result=$wxUSE_COLOURPICKERCTRL
10142           fi
10143
10144           { echo "$as_me:$LINENO: result: $result" >&5
10145 echo "${ECHO_T}$result" >&6; }
10146
10147
10148           enablestring=
10149           defaultval=$wxUSE_ALL_FEATURES
10150           if test -z "$defaultval"; then
10151               if test x"$enablestring" = xdisable; then
10152                   defaultval=yes
10153               else
10154                   defaultval=no
10155               fi
10156           fi
10157
10158           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
10159 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
10160           # Check whether --enable-combobox was given.
10161 if test "${enable_combobox+set}" = set; then
10162   enableval=$enable_combobox;
10163                           if test "$enableval" = yes; then
10164                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
10165                           else
10166                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
10167                           fi
10168
10169 else
10170
10171                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
10172
10173 fi
10174
10175
10176           eval "$wx_cv_use_combobox"
10177
10178           if test x"$enablestring" = xdisable; then
10179             if test $wxUSE_COMBOBOX = yes; then
10180               result=no
10181             else
10182               result=yes
10183             fi
10184           else
10185             result=$wxUSE_COMBOBOX
10186           fi
10187
10188           { echo "$as_me:$LINENO: result: $result" >&5
10189 echo "${ECHO_T}$result" >&6; }
10190
10191
10192           enablestring=
10193           defaultval=$wxUSE_ALL_FEATURES
10194           if test -z "$defaultval"; then
10195               if test x"$enablestring" = xdisable; then
10196                   defaultval=yes
10197               else
10198                   defaultval=no
10199               fi
10200           fi
10201
10202           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
10203 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
10204           # Check whether --enable-comboctrl was given.
10205 if test "${enable_comboctrl+set}" = set; then
10206   enableval=$enable_comboctrl;
10207                           if test "$enableval" = yes; then
10208                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
10209                           else
10210                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
10211                           fi
10212
10213 else
10214
10215                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
10216
10217 fi
10218
10219
10220           eval "$wx_cv_use_comboctrl"
10221
10222           if test x"$enablestring" = xdisable; then
10223             if test $wxUSE_COMBOCTRL = yes; then
10224               result=no
10225             else
10226               result=yes
10227             fi
10228           else
10229             result=$wxUSE_COMBOCTRL
10230           fi
10231
10232           { echo "$as_me:$LINENO: result: $result" >&5
10233 echo "${ECHO_T}$result" >&6; }
10234
10235
10236           enablestring=
10237           defaultval=$wxUSE_ALL_FEATURES
10238           if test -z "$defaultval"; then
10239               if test x"$enablestring" = xdisable; then
10240                   defaultval=yes
10241               else
10242                   defaultval=no
10243               fi
10244           fi
10245
10246           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
10247 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
10248           # Check whether --enable-datepick was given.
10249 if test "${enable_datepick+set}" = set; then
10250   enableval=$enable_datepick;
10251                           if test "$enableval" = yes; then
10252                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
10253                           else
10254                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
10255                           fi
10256
10257 else
10258
10259                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
10260
10261 fi
10262
10263
10264           eval "$wx_cv_use_datepick"
10265
10266           if test x"$enablestring" = xdisable; then
10267             if test $wxUSE_DATEPICKCTRL = yes; then
10268               result=no
10269             else
10270               result=yes
10271             fi
10272           else
10273             result=$wxUSE_DATEPICKCTRL
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}-dirpicker" >&5
10291 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
10292           # Check whether --enable-dirpicker was given.
10293 if test "${enable_dirpicker+set}" = set; then
10294   enableval=$enable_dirpicker;
10295                           if test "$enableval" = yes; then
10296                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
10297                           else
10298                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
10299                           fi
10300
10301 else
10302
10303                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
10304
10305 fi
10306
10307
10308           eval "$wx_cv_use_dirpicker"
10309
10310           if test x"$enablestring" = xdisable; then
10311             if test $wxUSE_DIRPICKERCTRL = yes; then
10312               result=no
10313             else
10314               result=yes
10315             fi
10316           else
10317             result=$wxUSE_DIRPICKERCTRL
10318           fi
10319
10320           { echo "$as_me:$LINENO: result: $result" >&5
10321 echo "${ECHO_T}$result" >&6; }
10322
10323
10324           enablestring=
10325           defaultval=$wxUSE_ALL_FEATURES
10326           if test -z "$defaultval"; then
10327               if test x"$enablestring" = xdisable; then
10328                   defaultval=yes
10329               else
10330                   defaultval=no
10331               fi
10332           fi
10333
10334           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
10335 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
10336           # Check whether --enable-display was given.
10337 if test "${enable_display+set}" = set; then
10338   enableval=$enable_display;
10339                           if test "$enableval" = yes; then
10340                             wx_cv_use_display='wxUSE_DISPLAY=yes'
10341                           else
10342                             wx_cv_use_display='wxUSE_DISPLAY=no'
10343                           fi
10344
10345 else
10346
10347                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
10348
10349 fi
10350
10351
10352           eval "$wx_cv_use_display"
10353
10354           if test x"$enablestring" = xdisable; then
10355             if test $wxUSE_DISPLAY = yes; then
10356               result=no
10357             else
10358               result=yes
10359             fi
10360           else
10361             result=$wxUSE_DISPLAY
10362           fi
10363
10364           { echo "$as_me:$LINENO: result: $result" >&5
10365 echo "${ECHO_T}$result" >&6; }
10366
10367
10368           enablestring=
10369           defaultval=$wxUSE_ALL_FEATURES
10370           if test -z "$defaultval"; then
10371               if test x"$enablestring" = xdisable; then
10372                   defaultval=yes
10373               else
10374                   defaultval=no
10375               fi
10376           fi
10377
10378           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
10379 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
10380           # Check whether --enable-detect_sm was given.
10381 if test "${enable_detect_sm+set}" = set; then
10382   enableval=$enable_detect_sm;
10383                           if test "$enableval" = yes; then
10384                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
10385                           else
10386                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
10387                           fi
10388
10389 else
10390
10391                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
10392
10393 fi
10394
10395
10396           eval "$wx_cv_use_detect_sm"
10397
10398           if test x"$enablestring" = xdisable; then
10399             if test $wxUSE_DETECT_SM = yes; then
10400               result=no
10401             else
10402               result=yes
10403             fi
10404           else
10405             result=$wxUSE_DETECT_SM
10406           fi
10407
10408           { echo "$as_me:$LINENO: result: $result" >&5
10409 echo "${ECHO_T}$result" >&6; }
10410
10411
10412           enablestring=
10413           defaultval=$wxUSE_ALL_FEATURES
10414           if test -z "$defaultval"; then
10415               if test x"$enablestring" = xdisable; then
10416                   defaultval=yes
10417               else
10418                   defaultval=no
10419               fi
10420           fi
10421
10422           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
10423 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
10424           # Check whether --enable-editablebox was given.
10425 if test "${enable_editablebox+set}" = set; then
10426   enableval=$enable_editablebox;
10427                           if test "$enableval" = yes; then
10428                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
10429                           else
10430                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
10431                           fi
10432
10433 else
10434
10435                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
10436
10437 fi
10438
10439
10440           eval "$wx_cv_use_editablebox"
10441
10442           if test x"$enablestring" = xdisable; then
10443             if test $wxUSE_EDITABLELISTBOX = yes; then
10444               result=no
10445             else
10446               result=yes
10447             fi
10448           else
10449             result=$wxUSE_EDITABLELISTBOX
10450           fi
10451
10452           { echo "$as_me:$LINENO: result: $result" >&5
10453 echo "${ECHO_T}$result" >&6; }
10454
10455
10456           enablestring=
10457           defaultval=$wxUSE_ALL_FEATURES
10458           if test -z "$defaultval"; then
10459               if test x"$enablestring" = xdisable; then
10460                   defaultval=yes
10461               else
10462                   defaultval=no
10463               fi
10464           fi
10465
10466           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
10467 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
10468           # Check whether --enable-filepicker was given.
10469 if test "${enable_filepicker+set}" = set; then
10470   enableval=$enable_filepicker;
10471                           if test "$enableval" = yes; then
10472                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
10473                           else
10474                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
10475                           fi
10476
10477 else
10478
10479                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
10480
10481 fi
10482
10483
10484           eval "$wx_cv_use_filepicker"
10485
10486           if test x"$enablestring" = xdisable; then
10487             if test $wxUSE_FILEPICKERCTRL = yes; then
10488               result=no
10489             else
10490               result=yes
10491             fi
10492           else
10493             result=$wxUSE_FILEPICKERCTRL
10494           fi
10495
10496           { echo "$as_me:$LINENO: result: $result" >&5
10497 echo "${ECHO_T}$result" >&6; }
10498
10499
10500           enablestring=
10501           defaultval=$wxUSE_ALL_FEATURES
10502           if test -z "$defaultval"; then
10503               if test x"$enablestring" = xdisable; then
10504                   defaultval=yes
10505               else
10506                   defaultval=no
10507               fi
10508           fi
10509
10510           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
10511 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
10512           # Check whether --enable-filectrl was given.
10513 if test "${enable_filectrl+set}" = set; then
10514   enableval=$enable_filectrl;
10515                           if test "$enableval" = yes; then
10516                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
10517                           else
10518                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
10519                           fi
10520
10521 else
10522
10523                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
10524
10525 fi
10526
10527
10528           eval "$wx_cv_use_filectrl"
10529
10530           if test x"$enablestring" = xdisable; then
10531             if test $wxUSE_FILECTRL = yes; then
10532               result=no
10533             else
10534               result=yes
10535             fi
10536           else
10537             result=$wxUSE_FILECTRL
10538           fi
10539
10540           { echo "$as_me:$LINENO: result: $result" >&5
10541 echo "${ECHO_T}$result" >&6; }
10542
10543
10544           enablestring=
10545           defaultval=$wxUSE_ALL_FEATURES
10546           if test -z "$defaultval"; then
10547               if test x"$enablestring" = xdisable; then
10548                   defaultval=yes
10549               else
10550                   defaultval=no
10551               fi
10552           fi
10553
10554           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
10555 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
10556           # Check whether --enable-fontpicker was given.
10557 if test "${enable_fontpicker+set}" = set; then
10558   enableval=$enable_fontpicker;
10559                           if test "$enableval" = yes; then
10560                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
10561                           else
10562                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
10563                           fi
10564
10565 else
10566
10567                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
10568
10569 fi
10570
10571
10572           eval "$wx_cv_use_fontpicker"
10573
10574           if test x"$enablestring" = xdisable; then
10575             if test $wxUSE_FONTPICKERCTRL = yes; then
10576               result=no
10577             else
10578               result=yes
10579             fi
10580           else
10581             result=$wxUSE_FONTPICKERCTRL
10582           fi
10583
10584           { echo "$as_me:$LINENO: result: $result" >&5
10585 echo "${ECHO_T}$result" >&6; }
10586
10587
10588           enablestring=
10589           defaultval=$wxUSE_ALL_FEATURES
10590           if test -z "$defaultval"; then
10591               if test x"$enablestring" = xdisable; then
10592                   defaultval=yes
10593               else
10594                   defaultval=no
10595               fi
10596           fi
10597
10598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
10599 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
10600           # Check whether --enable-gauge was given.
10601 if test "${enable_gauge+set}" = set; then
10602   enableval=$enable_gauge;
10603                           if test "$enableval" = yes; then
10604                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
10605                           else
10606                             wx_cv_use_gauge='wxUSE_GAUGE=no'
10607                           fi
10608
10609 else
10610
10611                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
10612
10613 fi
10614
10615
10616           eval "$wx_cv_use_gauge"
10617
10618           if test x"$enablestring" = xdisable; then
10619             if test $wxUSE_GAUGE = yes; then
10620               result=no
10621             else
10622               result=yes
10623             fi
10624           else
10625             result=$wxUSE_GAUGE
10626           fi
10627
10628           { echo "$as_me:$LINENO: result: $result" >&5
10629 echo "${ECHO_T}$result" >&6; }
10630
10631
10632           enablestring=
10633           defaultval=$wxUSE_ALL_FEATURES
10634           if test -z "$defaultval"; then
10635               if test x"$enablestring" = xdisable; then
10636                   defaultval=yes
10637               else
10638                   defaultval=no
10639               fi
10640           fi
10641
10642           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
10643 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
10644           # Check whether --enable-grid was given.
10645 if test "${enable_grid+set}" = set; then
10646   enableval=$enable_grid;
10647                           if test "$enableval" = yes; then
10648                             wx_cv_use_grid='wxUSE_GRID=yes'
10649                           else
10650                             wx_cv_use_grid='wxUSE_GRID=no'
10651                           fi
10652
10653 else
10654
10655                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
10656
10657 fi
10658
10659
10660           eval "$wx_cv_use_grid"
10661
10662           if test x"$enablestring" = xdisable; then
10663             if test $wxUSE_GRID = yes; then
10664               result=no
10665             else
10666               result=yes
10667             fi
10668           else
10669             result=$wxUSE_GRID
10670           fi
10671
10672           { echo "$as_me:$LINENO: result: $result" >&5
10673 echo "${ECHO_T}$result" >&6; }
10674
10675
10676           enablestring=
10677           defaultval=$wxUSE_ALL_FEATURES
10678           if test -z "$defaultval"; then
10679               if test x"$enablestring" = xdisable; then
10680                   defaultval=yes
10681               else
10682                   defaultval=no
10683               fi
10684           fi
10685
10686           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
10687 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
10688           # Check whether --enable-dataviewctrl was given.
10689 if test "${enable_dataviewctrl+set}" = set; then
10690   enableval=$enable_dataviewctrl;
10691                           if test "$enableval" = yes; then
10692                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
10693                           else
10694                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
10695                           fi
10696
10697 else
10698
10699                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
10700
10701 fi
10702
10703
10704           eval "$wx_cv_use_dataviewctrl"
10705
10706           if test x"$enablestring" = xdisable; then
10707             if test $wxUSE_DATAVIEWCTRL = yes; then
10708               result=no
10709             else
10710               result=yes
10711             fi
10712           else
10713             result=$wxUSE_DATAVIEWCTRL
10714           fi
10715
10716           { echo "$as_me:$LINENO: result: $result" >&5
10717 echo "${ECHO_T}$result" >&6; }
10718
10719
10720           enablestring=
10721           defaultval=$wxUSE_ALL_FEATURES
10722           if test -z "$defaultval"; then
10723               if test x"$enablestring" = xdisable; then
10724                   defaultval=yes
10725               else
10726                   defaultval=no
10727               fi
10728           fi
10729
10730           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
10731 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
10732           # Check whether --enable-hyperlink was given.
10733 if test "${enable_hyperlink+set}" = set; then
10734   enableval=$enable_hyperlink;
10735                           if test "$enableval" = yes; then
10736                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
10737                           else
10738                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
10739                           fi
10740
10741 else
10742
10743                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
10744
10745 fi
10746
10747
10748           eval "$wx_cv_use_hyperlink"
10749
10750           if test x"$enablestring" = xdisable; then
10751             if test $wxUSE_HYPERLINKCTRL = yes; then
10752               result=no
10753             else
10754               result=yes
10755             fi
10756           else
10757             result=$wxUSE_HYPERLINKCTRL
10758           fi
10759
10760           { echo "$as_me:$LINENO: result: $result" >&5
10761 echo "${ECHO_T}$result" >&6; }
10762
10763
10764           enablestring=
10765           defaultval=$wxUSE_ALL_FEATURES
10766           if test -z "$defaultval"; then
10767               if test x"$enablestring" = xdisable; then
10768                   defaultval=yes
10769               else
10770                   defaultval=no
10771               fi
10772           fi
10773
10774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
10775 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
10776           # Check whether --enable-imaglist was given.
10777 if test "${enable_imaglist+set}" = set; then
10778   enableval=$enable_imaglist;
10779                           if test "$enableval" = yes; then
10780                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
10781                           else
10782                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
10783                           fi
10784
10785 else
10786
10787                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
10788
10789 fi
10790
10791
10792           eval "$wx_cv_use_imaglist"
10793
10794           if test x"$enablestring" = xdisable; then
10795             if test $wxUSE_IMAGLIST = yes; then
10796               result=no
10797             else
10798               result=yes
10799             fi
10800           else
10801             result=$wxUSE_IMAGLIST
10802           fi
10803
10804           { echo "$as_me:$LINENO: result: $result" >&5
10805 echo "${ECHO_T}$result" >&6; }
10806
10807
10808           enablestring=
10809           defaultval=$wxUSE_ALL_FEATURES
10810           if test -z "$defaultval"; then
10811               if test x"$enablestring" = xdisable; then
10812                   defaultval=yes
10813               else
10814                   defaultval=no
10815               fi
10816           fi
10817
10818           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
10819 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
10820           # Check whether --enable-listbook was given.
10821 if test "${enable_listbook+set}" = set; then
10822   enableval=$enable_listbook;
10823                           if test "$enableval" = yes; then
10824                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
10825                           else
10826                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
10827                           fi
10828
10829 else
10830
10831                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
10832
10833 fi
10834
10835
10836           eval "$wx_cv_use_listbook"
10837
10838           if test x"$enablestring" = xdisable; then
10839             if test $wxUSE_LISTBOOK = yes; then
10840               result=no
10841             else
10842               result=yes
10843             fi
10844           else
10845             result=$wxUSE_LISTBOOK
10846           fi
10847
10848           { echo "$as_me:$LINENO: result: $result" >&5
10849 echo "${ECHO_T}$result" >&6; }
10850
10851
10852           enablestring=
10853           defaultval=$wxUSE_ALL_FEATURES
10854           if test -z "$defaultval"; then
10855               if test x"$enablestring" = xdisable; then
10856                   defaultval=yes
10857               else
10858                   defaultval=no
10859               fi
10860           fi
10861
10862           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
10863 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
10864           # Check whether --enable-listbox was given.
10865 if test "${enable_listbox+set}" = set; then
10866   enableval=$enable_listbox;
10867                           if test "$enableval" = yes; then
10868                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
10869                           else
10870                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
10871                           fi
10872
10873 else
10874
10875                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
10876
10877 fi
10878
10879
10880           eval "$wx_cv_use_listbox"
10881
10882           if test x"$enablestring" = xdisable; then
10883             if test $wxUSE_LISTBOX = yes; then
10884               result=no
10885             else
10886               result=yes
10887             fi
10888           else
10889             result=$wxUSE_LISTBOX
10890           fi
10891
10892           { echo "$as_me:$LINENO: result: $result" >&5
10893 echo "${ECHO_T}$result" >&6; }
10894
10895
10896           enablestring=
10897           defaultval=$wxUSE_ALL_FEATURES
10898           if test -z "$defaultval"; then
10899               if test x"$enablestring" = xdisable; then
10900                   defaultval=yes
10901               else
10902                   defaultval=no
10903               fi
10904           fi
10905
10906           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
10907 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
10908           # Check whether --enable-listctrl was given.
10909 if test "${enable_listctrl+set}" = set; then
10910   enableval=$enable_listctrl;
10911                           if test "$enableval" = yes; then
10912                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
10913                           else
10914                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
10915                           fi
10916
10917 else
10918
10919                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
10920
10921 fi
10922
10923
10924           eval "$wx_cv_use_listctrl"
10925
10926           if test x"$enablestring" = xdisable; then
10927             if test $wxUSE_LISTCTRL = yes; then
10928               result=no
10929             else
10930               result=yes
10931             fi
10932           else
10933             result=$wxUSE_LISTCTRL
10934           fi
10935
10936           { echo "$as_me:$LINENO: result: $result" >&5
10937 echo "${ECHO_T}$result" >&6; }
10938
10939
10940           enablestring=
10941           defaultval=$wxUSE_ALL_FEATURES
10942           if test -z "$defaultval"; then
10943               if test x"$enablestring" = xdisable; then
10944                   defaultval=yes
10945               else
10946                   defaultval=no
10947               fi
10948           fi
10949
10950           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
10951 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
10952           # Check whether --enable-notebook was given.
10953 if test "${enable_notebook+set}" = set; then
10954   enableval=$enable_notebook;
10955                           if test "$enableval" = yes; then
10956                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
10957                           else
10958                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
10959                           fi
10960
10961 else
10962
10963                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
10964
10965 fi
10966
10967
10968           eval "$wx_cv_use_notebook"
10969
10970           if test x"$enablestring" = xdisable; then
10971             if test $wxUSE_NOTEBOOK = yes; then
10972               result=no
10973             else
10974               result=yes
10975             fi
10976           else
10977             result=$wxUSE_NOTEBOOK
10978           fi
10979
10980           { echo "$as_me:$LINENO: result: $result" >&5
10981 echo "${ECHO_T}$result" >&6; }
10982
10983
10984           enablestring=
10985           defaultval=$wxUSE_ALL_FEATURES
10986           if test -z "$defaultval"; then
10987               if test x"$enablestring" = xdisable; then
10988                   defaultval=yes
10989               else
10990                   defaultval=no
10991               fi
10992           fi
10993
10994           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notifmsg" >&5
10995 echo $ECHO_N "checking for --${enablestring:-enable}-notifmsg... $ECHO_C" >&6; }
10996           # Check whether --enable-notifmsg was given.
10997 if test "${enable_notifmsg+set}" = set; then
10998   enableval=$enable_notifmsg;
10999                           if test "$enableval" = yes; then
11000                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes'
11001                           else
11002                             wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no'
11003                           fi
11004
11005 else
11006
11007                           wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}"
11008
11009 fi
11010
11011
11012           eval "$wx_cv_use_notifmsg"
11013
11014           if test x"$enablestring" = xdisable; then
11015             if test $wxUSE_NOTIFICATION_MESSAGE = yes; then
11016               result=no
11017             else
11018               result=yes
11019             fi
11020           else
11021             result=$wxUSE_NOTIFICATION_MESSAGE
11022           fi
11023
11024           { echo "$as_me:$LINENO: result: $result" >&5
11025 echo "${ECHO_T}$result" >&6; }
11026
11027
11028           enablestring=
11029           defaultval=$wxUSE_ALL_FEATURES
11030           if test -z "$defaultval"; then
11031               if test x"$enablestring" = xdisable; then
11032                   defaultval=yes
11033               else
11034                   defaultval=no
11035               fi
11036           fi
11037
11038           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
11039 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
11040           # Check whether --enable-odcombobox was given.
11041 if test "${enable_odcombobox+set}" = set; then
11042   enableval=$enable_odcombobox;
11043                           if test "$enableval" = yes; then
11044                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
11045                           else
11046                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
11047                           fi
11048
11049 else
11050
11051                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
11052
11053 fi
11054
11055
11056           eval "$wx_cv_use_odcombobox"
11057
11058           if test x"$enablestring" = xdisable; then
11059             if test $wxUSE_ODCOMBOBOX = yes; then
11060               result=no
11061             else
11062               result=yes
11063             fi
11064           else
11065             result=$wxUSE_ODCOMBOBOX
11066           fi
11067
11068           { echo "$as_me:$LINENO: result: $result" >&5
11069 echo "${ECHO_T}$result" >&6; }
11070
11071
11072           enablestring=
11073           defaultval=$wxUSE_ALL_FEATURES
11074           if test -z "$defaultval"; then
11075               if test x"$enablestring" = xdisable; then
11076                   defaultval=yes
11077               else
11078                   defaultval=no
11079               fi
11080           fi
11081
11082           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
11083 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
11084           # Check whether --enable-radiobox was given.
11085 if test "${enable_radiobox+set}" = set; then
11086   enableval=$enable_radiobox;
11087                           if test "$enableval" = yes; then
11088                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
11089                           else
11090                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
11091                           fi
11092
11093 else
11094
11095                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
11096
11097 fi
11098
11099
11100           eval "$wx_cv_use_radiobox"
11101
11102           if test x"$enablestring" = xdisable; then
11103             if test $wxUSE_RADIOBOX = yes; then
11104               result=no
11105             else
11106               result=yes
11107             fi
11108           else
11109             result=$wxUSE_RADIOBOX
11110           fi
11111
11112           { echo "$as_me:$LINENO: result: $result" >&5
11113 echo "${ECHO_T}$result" >&6; }
11114
11115
11116           enablestring=
11117           defaultval=$wxUSE_ALL_FEATURES
11118           if test -z "$defaultval"; then
11119               if test x"$enablestring" = xdisable; then
11120                   defaultval=yes
11121               else
11122                   defaultval=no
11123               fi
11124           fi
11125
11126           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
11127 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
11128           # Check whether --enable-radiobtn was given.
11129 if test "${enable_radiobtn+set}" = set; then
11130   enableval=$enable_radiobtn;
11131                           if test "$enableval" = yes; then
11132                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
11133                           else
11134                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
11135                           fi
11136
11137 else
11138
11139                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
11140
11141 fi
11142
11143
11144           eval "$wx_cv_use_radiobtn"
11145
11146           if test x"$enablestring" = xdisable; then
11147             if test $wxUSE_RADIOBTN = yes; then
11148               result=no
11149             else
11150               result=yes
11151             fi
11152           else
11153             result=$wxUSE_RADIOBTN
11154           fi
11155
11156           { echo "$as_me:$LINENO: result: $result" >&5
11157 echo "${ECHO_T}$result" >&6; }
11158
11159
11160           enablestring=
11161           defaultval=$wxUSE_ALL_FEATURES
11162           if test -z "$defaultval"; then
11163               if test x"$enablestring" = xdisable; then
11164                   defaultval=yes
11165               else
11166                   defaultval=no
11167               fi
11168           fi
11169
11170           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
11171 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
11172           # Check whether --enable-sash was given.
11173 if test "${enable_sash+set}" = set; then
11174   enableval=$enable_sash;
11175                           if test "$enableval" = yes; then
11176                             wx_cv_use_sash='wxUSE_SASH=yes'
11177                           else
11178                             wx_cv_use_sash='wxUSE_SASH=no'
11179                           fi
11180
11181 else
11182
11183                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
11184
11185 fi
11186
11187
11188           eval "$wx_cv_use_sash"
11189
11190           if test x"$enablestring" = xdisable; then
11191             if test $wxUSE_SASH = yes; then
11192               result=no
11193             else
11194               result=yes
11195             fi
11196           else
11197             result=$wxUSE_SASH
11198           fi
11199
11200           { echo "$as_me:$LINENO: result: $result" >&5
11201 echo "${ECHO_T}$result" >&6; }
11202
11203
11204           enablestring=
11205           defaultval=$wxUSE_ALL_FEATURES
11206           if test -z "$defaultval"; then
11207               if test x"$enablestring" = xdisable; then
11208                   defaultval=yes
11209               else
11210                   defaultval=no
11211               fi
11212           fi
11213
11214           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
11215 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
11216           # Check whether --enable-scrollbar was given.
11217 if test "${enable_scrollbar+set}" = set; then
11218   enableval=$enable_scrollbar;
11219                           if test "$enableval" = yes; then
11220                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
11221                           else
11222                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
11223                           fi
11224
11225 else
11226
11227                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
11228
11229 fi
11230
11231
11232           eval "$wx_cv_use_scrollbar"
11233
11234           if test x"$enablestring" = xdisable; then
11235             if test $wxUSE_SCROLLBAR = yes; then
11236               result=no
11237             else
11238               result=yes
11239             fi
11240           else
11241             result=$wxUSE_SCROLLBAR
11242           fi
11243
11244           { echo "$as_me:$LINENO: result: $result" >&5
11245 echo "${ECHO_T}$result" >&6; }
11246
11247
11248           enablestring=
11249           defaultval=$wxUSE_ALL_FEATURES
11250           if test -z "$defaultval"; then
11251               if test x"$enablestring" = xdisable; then
11252                   defaultval=yes
11253               else
11254                   defaultval=no
11255               fi
11256           fi
11257
11258           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
11259 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
11260           # Check whether --enable-searchctrl was given.
11261 if test "${enable_searchctrl+set}" = set; then
11262   enableval=$enable_searchctrl;
11263                           if test "$enableval" = yes; then
11264                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
11265                           else
11266                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
11267                           fi
11268
11269 else
11270
11271                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
11272
11273 fi
11274
11275
11276           eval "$wx_cv_use_searchctrl"
11277
11278           if test x"$enablestring" = xdisable; then
11279             if test $wxUSE_SEARCHCTRL = yes; then
11280               result=no
11281             else
11282               result=yes
11283             fi
11284           else
11285             result=$wxUSE_SEARCHCTRL
11286           fi
11287
11288           { echo "$as_me:$LINENO: result: $result" >&5
11289 echo "${ECHO_T}$result" >&6; }
11290
11291
11292           enablestring=
11293           defaultval=$wxUSE_ALL_FEATURES
11294           if test -z "$defaultval"; then
11295               if test x"$enablestring" = xdisable; then
11296                   defaultval=yes
11297               else
11298                   defaultval=no
11299               fi
11300           fi
11301
11302           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
11303 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
11304           # Check whether --enable-slider was given.
11305 if test "${enable_slider+set}" = set; then
11306   enableval=$enable_slider;
11307                           if test "$enableval" = yes; then
11308                             wx_cv_use_slider='wxUSE_SLIDER=yes'
11309                           else
11310                             wx_cv_use_slider='wxUSE_SLIDER=no'
11311                           fi
11312
11313 else
11314
11315                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
11316
11317 fi
11318
11319
11320           eval "$wx_cv_use_slider"
11321
11322           if test x"$enablestring" = xdisable; then
11323             if test $wxUSE_SLIDER = yes; then
11324               result=no
11325             else
11326               result=yes
11327             fi
11328           else
11329             result=$wxUSE_SLIDER
11330           fi
11331
11332           { echo "$as_me:$LINENO: result: $result" >&5
11333 echo "${ECHO_T}$result" >&6; }
11334
11335
11336           enablestring=
11337           defaultval=$wxUSE_ALL_FEATURES
11338           if test -z "$defaultval"; then
11339               if test x"$enablestring" = xdisable; then
11340                   defaultval=yes
11341               else
11342                   defaultval=no
11343               fi
11344           fi
11345
11346           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
11347 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
11348           # Check whether --enable-spinbtn was given.
11349 if test "${enable_spinbtn+set}" = set; then
11350   enableval=$enable_spinbtn;
11351                           if test "$enableval" = yes; then
11352                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
11353                           else
11354                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
11355                           fi
11356
11357 else
11358
11359                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
11360
11361 fi
11362
11363
11364           eval "$wx_cv_use_spinbtn"
11365
11366           if test x"$enablestring" = xdisable; then
11367             if test $wxUSE_SPINBTN = yes; then
11368               result=no
11369             else
11370               result=yes
11371             fi
11372           else
11373             result=$wxUSE_SPINBTN
11374           fi
11375
11376           { echo "$as_me:$LINENO: result: $result" >&5
11377 echo "${ECHO_T}$result" >&6; }
11378
11379
11380           enablestring=
11381           defaultval=$wxUSE_ALL_FEATURES
11382           if test -z "$defaultval"; then
11383               if test x"$enablestring" = xdisable; then
11384                   defaultval=yes
11385               else
11386                   defaultval=no
11387               fi
11388           fi
11389
11390           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
11391 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
11392           # Check whether --enable-spinctrl was given.
11393 if test "${enable_spinctrl+set}" = set; then
11394   enableval=$enable_spinctrl;
11395                           if test "$enableval" = yes; then
11396                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
11397                           else
11398                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
11399                           fi
11400
11401 else
11402
11403                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
11404
11405 fi
11406
11407
11408           eval "$wx_cv_use_spinctrl"
11409
11410           if test x"$enablestring" = xdisable; then
11411             if test $wxUSE_SPINCTRL = yes; then
11412               result=no
11413             else
11414               result=yes
11415             fi
11416           else
11417             result=$wxUSE_SPINCTRL
11418           fi
11419
11420           { echo "$as_me:$LINENO: result: $result" >&5
11421 echo "${ECHO_T}$result" >&6; }
11422
11423
11424           enablestring=
11425           defaultval=$wxUSE_ALL_FEATURES
11426           if test -z "$defaultval"; then
11427               if test x"$enablestring" = xdisable; then
11428                   defaultval=yes
11429               else
11430                   defaultval=no
11431               fi
11432           fi
11433
11434           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
11435 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
11436           # Check whether --enable-splitter was given.
11437 if test "${enable_splitter+set}" = set; then
11438   enableval=$enable_splitter;
11439                           if test "$enableval" = yes; then
11440                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
11441                           else
11442                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
11443                           fi
11444
11445 else
11446
11447                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
11448
11449 fi
11450
11451
11452           eval "$wx_cv_use_splitter"
11453
11454           if test x"$enablestring" = xdisable; then
11455             if test $wxUSE_SPLITTER = yes; then
11456               result=no
11457             else
11458               result=yes
11459             fi
11460           else
11461             result=$wxUSE_SPLITTER
11462           fi
11463
11464           { echo "$as_me:$LINENO: result: $result" >&5
11465 echo "${ECHO_T}$result" >&6; }
11466
11467
11468           enablestring=
11469           defaultval=$wxUSE_ALL_FEATURES
11470           if test -z "$defaultval"; then
11471               if test x"$enablestring" = xdisable; then
11472                   defaultval=yes
11473               else
11474                   defaultval=no
11475               fi
11476           fi
11477
11478           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
11479 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
11480           # Check whether --enable-statbmp was given.
11481 if test "${enable_statbmp+set}" = set; then
11482   enableval=$enable_statbmp;
11483                           if test "$enableval" = yes; then
11484                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
11485                           else
11486                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
11487                           fi
11488
11489 else
11490
11491                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
11492
11493 fi
11494
11495
11496           eval "$wx_cv_use_statbmp"
11497
11498           if test x"$enablestring" = xdisable; then
11499             if test $wxUSE_STATBMP = yes; then
11500               result=no
11501             else
11502               result=yes
11503             fi
11504           else
11505             result=$wxUSE_STATBMP
11506           fi
11507
11508           { echo "$as_me:$LINENO: result: $result" >&5
11509 echo "${ECHO_T}$result" >&6; }
11510
11511
11512           enablestring=
11513           defaultval=$wxUSE_ALL_FEATURES
11514           if test -z "$defaultval"; then
11515               if test x"$enablestring" = xdisable; then
11516                   defaultval=yes
11517               else
11518                   defaultval=no
11519               fi
11520           fi
11521
11522           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
11523 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
11524           # Check whether --enable-statbox was given.
11525 if test "${enable_statbox+set}" = set; then
11526   enableval=$enable_statbox;
11527                           if test "$enableval" = yes; then
11528                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
11529                           else
11530                             wx_cv_use_statbox='wxUSE_STATBOX=no'
11531                           fi
11532
11533 else
11534
11535                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
11536
11537 fi
11538
11539
11540           eval "$wx_cv_use_statbox"
11541
11542           if test x"$enablestring" = xdisable; then
11543             if test $wxUSE_STATBOX = yes; then
11544               result=no
11545             else
11546               result=yes
11547             fi
11548           else
11549             result=$wxUSE_STATBOX
11550           fi
11551
11552           { echo "$as_me:$LINENO: result: $result" >&5
11553 echo "${ECHO_T}$result" >&6; }
11554
11555
11556           enablestring=
11557           defaultval=$wxUSE_ALL_FEATURES
11558           if test -z "$defaultval"; then
11559               if test x"$enablestring" = xdisable; then
11560                   defaultval=yes
11561               else
11562                   defaultval=no
11563               fi
11564           fi
11565
11566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
11567 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
11568           # Check whether --enable-statline was given.
11569 if test "${enable_statline+set}" = set; then
11570   enableval=$enable_statline;
11571                           if test "$enableval" = yes; then
11572                             wx_cv_use_statline='wxUSE_STATLINE=yes'
11573                           else
11574                             wx_cv_use_statline='wxUSE_STATLINE=no'
11575                           fi
11576
11577 else
11578
11579                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
11580
11581 fi
11582
11583
11584           eval "$wx_cv_use_statline"
11585
11586           if test x"$enablestring" = xdisable; then
11587             if test $wxUSE_STATLINE = yes; then
11588               result=no
11589             else
11590               result=yes
11591             fi
11592           else
11593             result=$wxUSE_STATLINE
11594           fi
11595
11596           { echo "$as_me:$LINENO: result: $result" >&5
11597 echo "${ECHO_T}$result" >&6; }
11598
11599
11600           enablestring=
11601           defaultval=$wxUSE_ALL_FEATURES
11602           if test -z "$defaultval"; then
11603               if test x"$enablestring" = xdisable; then
11604                   defaultval=yes
11605               else
11606                   defaultval=no
11607               fi
11608           fi
11609
11610           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
11611 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
11612           # Check whether --enable-stattext was given.
11613 if test "${enable_stattext+set}" = set; then
11614   enableval=$enable_stattext;
11615                           if test "$enableval" = yes; then
11616                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
11617                           else
11618                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
11619                           fi
11620
11621 else
11622
11623                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
11624
11625 fi
11626
11627
11628           eval "$wx_cv_use_stattext"
11629
11630           if test x"$enablestring" = xdisable; then
11631             if test $wxUSE_STATTEXT = yes; then
11632               result=no
11633             else
11634               result=yes
11635             fi
11636           else
11637             result=$wxUSE_STATTEXT
11638           fi
11639
11640           { echo "$as_me:$LINENO: result: $result" >&5
11641 echo "${ECHO_T}$result" >&6; }
11642
11643
11644           enablestring=
11645           defaultval=$wxUSE_ALL_FEATURES
11646           if test -z "$defaultval"; then
11647               if test x"$enablestring" = xdisable; then
11648                   defaultval=yes
11649               else
11650                   defaultval=no
11651               fi
11652           fi
11653
11654           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
11655 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
11656           # Check whether --enable-statusbar was given.
11657 if test "${enable_statusbar+set}" = set; then
11658   enableval=$enable_statusbar;
11659                           if test "$enableval" = yes; then
11660                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
11661                           else
11662                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
11663                           fi
11664
11665 else
11666
11667                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
11668
11669 fi
11670
11671
11672           eval "$wx_cv_use_statusbar"
11673
11674           if test x"$enablestring" = xdisable; then
11675             if test $wxUSE_STATUSBAR = yes; then
11676               result=no
11677             else
11678               result=yes
11679             fi
11680           else
11681             result=$wxUSE_STATUSBAR
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}-tabdialog" >&5
11699 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
11700           # Check whether --enable-tabdialog was given.
11701 if test "${enable_tabdialog+set}" = set; then
11702   enableval=$enable_tabdialog;
11703                           if test "$enableval" = yes; then
11704                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
11705                           else
11706                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
11707                           fi
11708
11709 else
11710
11711                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
11712
11713 fi
11714
11715
11716           eval "$wx_cv_use_tabdialog"
11717
11718           if test x"$enablestring" = xdisable; then
11719             if test $wxUSE_TAB_DIALOG = yes; then
11720               result=no
11721             else
11722               result=yes
11723             fi
11724           else
11725             result=$wxUSE_TAB_DIALOG
11726           fi
11727
11728           { echo "$as_me:$LINENO: result: $result" >&5
11729 echo "${ECHO_T}$result" >&6; }
11730
11731
11732           enablestring=
11733           defaultval=$wxUSE_ALL_FEATURES
11734           if test -z "$defaultval"; then
11735               if test x"$enablestring" = xdisable; then
11736                   defaultval=yes
11737               else
11738                   defaultval=no
11739               fi
11740           fi
11741
11742           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
11743 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
11744           # Check whether --enable-taskbaricon was given.
11745 if test "${enable_taskbaricon+set}" = set; then
11746   enableval=$enable_taskbaricon;
11747                           if test "$enableval" = yes; then
11748                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
11749                           else
11750                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
11751                           fi
11752
11753 else
11754
11755                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
11756
11757 fi
11758
11759
11760           eval "$wx_cv_use_taskbaricon"
11761
11762           if test x"$enablestring" = xdisable; then
11763             if test $wxUSE_TASKBARICON = yes; then
11764               result=no
11765             else
11766               result=yes
11767             fi
11768           else
11769             result=$wxUSE_TASKBARICON
11770           fi
11771
11772           { echo "$as_me:$LINENO: result: $result" >&5
11773 echo "${ECHO_T}$result" >&6; }
11774
11775
11776           enablestring=
11777           defaultval=$wxUSE_ALL_FEATURES
11778           if test -z "$defaultval"; then
11779               if test x"$enablestring" = xdisable; then
11780                   defaultval=yes
11781               else
11782                   defaultval=no
11783               fi
11784           fi
11785
11786           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
11787 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
11788           # Check whether --enable-textctrl was given.
11789 if test "${enable_textctrl+set}" = set; then
11790   enableval=$enable_textctrl;
11791                           if test "$enableval" = yes; then
11792                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
11793                           else
11794                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
11795                           fi
11796
11797 else
11798
11799                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
11800
11801 fi
11802
11803
11804           eval "$wx_cv_use_textctrl"
11805
11806           if test x"$enablestring" = xdisable; then
11807             if test $wxUSE_TEXTCTRL = yes; then
11808               result=no
11809             else
11810               result=yes
11811             fi
11812           else
11813             result=$wxUSE_TEXTCTRL
11814           fi
11815
11816           { echo "$as_me:$LINENO: result: $result" >&5
11817 echo "${ECHO_T}$result" >&6; }
11818
11819
11820           enablestring=
11821           defaultval=$wxUSE_ALL_FEATURES
11822           if test -z "$defaultval"; then
11823               if test x"$enablestring" = xdisable; then
11824                   defaultval=yes
11825               else
11826                   defaultval=no
11827               fi
11828           fi
11829
11830           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
11831 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
11832           # Check whether --enable-togglebtn was given.
11833 if test "${enable_togglebtn+set}" = set; then
11834   enableval=$enable_togglebtn;
11835                           if test "$enableval" = yes; then
11836                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
11837                           else
11838                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
11839                           fi
11840
11841 else
11842
11843                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
11844
11845 fi
11846
11847
11848           eval "$wx_cv_use_togglebtn"
11849
11850           if test x"$enablestring" = xdisable; then
11851             if test $wxUSE_TOGGLEBTN = yes; then
11852               result=no
11853             else
11854               result=yes
11855             fi
11856           else
11857             result=$wxUSE_TOGGLEBTN
11858           fi
11859
11860           { echo "$as_me:$LINENO: result: $result" >&5
11861 echo "${ECHO_T}$result" >&6; }
11862
11863
11864           enablestring=
11865           defaultval=$wxUSE_ALL_FEATURES
11866           if test -z "$defaultval"; then
11867               if test x"$enablestring" = xdisable; then
11868                   defaultval=yes
11869               else
11870                   defaultval=no
11871               fi
11872           fi
11873
11874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
11875 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
11876           # Check whether --enable-toolbar was given.
11877 if test "${enable_toolbar+set}" = set; then
11878   enableval=$enable_toolbar;
11879                           if test "$enableval" = yes; then
11880                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
11881                           else
11882                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
11883                           fi
11884
11885 else
11886
11887                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
11888
11889 fi
11890
11891
11892           eval "$wx_cv_use_toolbar"
11893
11894           if test x"$enablestring" = xdisable; then
11895             if test $wxUSE_TOOLBAR = yes; then
11896               result=no
11897             else
11898               result=yes
11899             fi
11900           else
11901             result=$wxUSE_TOOLBAR
11902           fi
11903
11904           { echo "$as_me:$LINENO: result: $result" >&5
11905 echo "${ECHO_T}$result" >&6; }
11906
11907
11908           enablestring=
11909           defaultval=$wxUSE_ALL_FEATURES
11910           if test -z "$defaultval"; then
11911               if test x"$enablestring" = xdisable; then
11912                   defaultval=yes
11913               else
11914                   defaultval=no
11915               fi
11916           fi
11917
11918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
11919 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
11920           # Check whether --enable-tbarnative was given.
11921 if test "${enable_tbarnative+set}" = set; then
11922   enableval=$enable_tbarnative;
11923                           if test "$enableval" = yes; then
11924                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
11925                           else
11926                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
11927                           fi
11928
11929 else
11930
11931                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
11932
11933 fi
11934
11935
11936           eval "$wx_cv_use_tbarnative"
11937
11938           if test x"$enablestring" = xdisable; then
11939             if test $wxUSE_TOOLBAR_NATIVE = yes; then
11940               result=no
11941             else
11942               result=yes
11943             fi
11944           else
11945             result=$wxUSE_TOOLBAR_NATIVE
11946           fi
11947
11948           { echo "$as_me:$LINENO: result: $result" >&5
11949 echo "${ECHO_T}$result" >&6; }
11950
11951
11952           enablestring=
11953           defaultval=$wxUSE_ALL_FEATURES
11954           if test -z "$defaultval"; then
11955               if test x"$enablestring" = xdisable; then
11956                   defaultval=yes
11957               else
11958                   defaultval=no
11959               fi
11960           fi
11961
11962           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
11963 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
11964           # Check whether --enable-treebook was given.
11965 if test "${enable_treebook+set}" = set; then
11966   enableval=$enable_treebook;
11967                           if test "$enableval" = yes; then
11968                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
11969                           else
11970                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
11971                           fi
11972
11973 else
11974
11975                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
11976
11977 fi
11978
11979
11980           eval "$wx_cv_use_treebook"
11981
11982           if test x"$enablestring" = xdisable; then
11983             if test $wxUSE_TREEBOOK = yes; then
11984               result=no
11985             else
11986               result=yes
11987             fi
11988           else
11989             result=$wxUSE_TREEBOOK
11990           fi
11991
11992           { echo "$as_me:$LINENO: result: $result" >&5
11993 echo "${ECHO_T}$result" >&6; }
11994
11995
11996           enablestring=
11997           defaultval=$wxUSE_ALL_FEATURES
11998           if test -z "$defaultval"; then
11999               if test x"$enablestring" = xdisable; then
12000                   defaultval=yes
12001               else
12002                   defaultval=no
12003               fi
12004           fi
12005
12006           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
12007 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
12008           # Check whether --enable-toolbook was given.
12009 if test "${enable_toolbook+set}" = set; then
12010   enableval=$enable_toolbook;
12011                           if test "$enableval" = yes; then
12012                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
12013                           else
12014                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
12015                           fi
12016
12017 else
12018
12019                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
12020
12021 fi
12022
12023
12024           eval "$wx_cv_use_toolbook"
12025
12026           if test x"$enablestring" = xdisable; then
12027             if test $wxUSE_TOOLBOOK = yes; then
12028               result=no
12029             else
12030               result=yes
12031             fi
12032           else
12033             result=$wxUSE_TOOLBOOK
12034           fi
12035
12036           { echo "$as_me:$LINENO: result: $result" >&5
12037 echo "${ECHO_T}$result" >&6; }
12038
12039
12040           enablestring=
12041           defaultval=$wxUSE_ALL_FEATURES
12042           if test -z "$defaultval"; then
12043               if test x"$enablestring" = xdisable; then
12044                   defaultval=yes
12045               else
12046                   defaultval=no
12047               fi
12048           fi
12049
12050           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
12051 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
12052           # Check whether --enable-treectrl was given.
12053 if test "${enable_treectrl+set}" = set; then
12054   enableval=$enable_treectrl;
12055                           if test "$enableval" = yes; then
12056                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
12057                           else
12058                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
12059                           fi
12060
12061 else
12062
12063                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
12064
12065 fi
12066
12067
12068           eval "$wx_cv_use_treectrl"
12069
12070           if test x"$enablestring" = xdisable; then
12071             if test $wxUSE_TREECTRL = yes; then
12072               result=no
12073             else
12074               result=yes
12075             fi
12076           else
12077             result=$wxUSE_TREECTRL
12078           fi
12079
12080           { echo "$as_me:$LINENO: result: $result" >&5
12081 echo "${ECHO_T}$result" >&6; }
12082
12083
12084           enablestring=
12085           defaultval=$wxUSE_ALL_FEATURES
12086           if test -z "$defaultval"; then
12087               if test x"$enablestring" = xdisable; then
12088                   defaultval=yes
12089               else
12090                   defaultval=no
12091               fi
12092           fi
12093
12094           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
12095 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
12096           # Check whether --enable-tipwindow was given.
12097 if test "${enable_tipwindow+set}" = set; then
12098   enableval=$enable_tipwindow;
12099                           if test "$enableval" = yes; then
12100                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
12101                           else
12102                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
12103                           fi
12104
12105 else
12106
12107                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
12108
12109 fi
12110
12111
12112           eval "$wx_cv_use_tipwindow"
12113
12114           if test x"$enablestring" = xdisable; then
12115             if test $wxUSE_TIPWINDOW = yes; then
12116               result=no
12117             else
12118               result=yes
12119             fi
12120           else
12121             result=$wxUSE_TIPWINDOW
12122           fi
12123
12124           { echo "$as_me:$LINENO: result: $result" >&5
12125 echo "${ECHO_T}$result" >&6; }
12126
12127
12128           enablestring=
12129           defaultval=$wxUSE_ALL_FEATURES
12130           if test -z "$defaultval"; then
12131               if test x"$enablestring" = xdisable; then
12132                   defaultval=yes
12133               else
12134                   defaultval=no
12135               fi
12136           fi
12137
12138           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
12139 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
12140           # Check whether --enable-popupwin was given.
12141 if test "${enable_popupwin+set}" = set; then
12142   enableval=$enable_popupwin;
12143                           if test "$enableval" = yes; then
12144                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
12145                           else
12146                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
12147                           fi
12148
12149 else
12150
12151                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
12152
12153 fi
12154
12155
12156           eval "$wx_cv_use_popupwin"
12157
12158           if test x"$enablestring" = xdisable; then
12159             if test $wxUSE_POPUPWIN = yes; then
12160               result=no
12161             else
12162               result=yes
12163             fi
12164           else
12165             result=$wxUSE_POPUPWIN
12166           fi
12167
12168           { echo "$as_me:$LINENO: result: $result" >&5
12169 echo "${ECHO_T}$result" >&6; }
12170
12171
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}-commondlg" >&5
12185 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
12186           # Check whether --enable-commondlg was given.
12187 if test "${enable_commondlg+set}" = set; then
12188   enableval=$enable_commondlg;
12189                           if test "$enableval" = yes; then
12190                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
12191                           else
12192                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
12193                           fi
12194
12195 else
12196
12197                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
12198
12199 fi
12200
12201
12202           eval "$wx_cv_use_commondlg"
12203
12204           if test x"$enablestring" = xdisable; then
12205             if test $wxUSE_COMMONDLGS = yes; then
12206               result=no
12207             else
12208               result=yes
12209             fi
12210           else
12211             result=$wxUSE_COMMONDLGS
12212           fi
12213
12214           { echo "$as_me:$LINENO: result: $result" >&5
12215 echo "${ECHO_T}$result" >&6; }
12216
12217
12218           enablestring=
12219           defaultval=$wxUSE_ALL_FEATURES
12220           if test -z "$defaultval"; then
12221               if test x"$enablestring" = xdisable; then
12222                   defaultval=yes
12223               else
12224                   defaultval=no
12225               fi
12226           fi
12227
12228           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
12229 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
12230           # Check whether --enable-aboutdlg was given.
12231 if test "${enable_aboutdlg+set}" = set; then
12232   enableval=$enable_aboutdlg;
12233                           if test "$enableval" = yes; then
12234                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
12235                           else
12236                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
12237                           fi
12238
12239 else
12240
12241                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
12242
12243 fi
12244
12245
12246           eval "$wx_cv_use_aboutdlg"
12247
12248           if test x"$enablestring" = xdisable; then
12249             if test $wxUSE_ABOUTDLG = yes; then
12250               result=no
12251             else
12252               result=yes
12253             fi
12254           else
12255             result=$wxUSE_ABOUTDLG
12256           fi
12257
12258           { echo "$as_me:$LINENO: result: $result" >&5
12259 echo "${ECHO_T}$result" >&6; }
12260
12261
12262           enablestring=
12263           defaultval=$wxUSE_ALL_FEATURES
12264           if test -z "$defaultval"; then
12265               if test x"$enablestring" = xdisable; then
12266                   defaultval=yes
12267               else
12268                   defaultval=no
12269               fi
12270           fi
12271
12272           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
12273 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
12274           # Check whether --enable-choicedlg was given.
12275 if test "${enable_choicedlg+set}" = set; then
12276   enableval=$enable_choicedlg;
12277                           if test "$enableval" = yes; then
12278                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
12279                           else
12280                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
12281                           fi
12282
12283 else
12284
12285                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
12286
12287 fi
12288
12289
12290           eval "$wx_cv_use_choicedlg"
12291
12292           if test x"$enablestring" = xdisable; then
12293             if test $wxUSE_CHOICEDLG = yes; then
12294               result=no
12295             else
12296               result=yes
12297             fi
12298           else
12299             result=$wxUSE_CHOICEDLG
12300           fi
12301
12302           { echo "$as_me:$LINENO: result: $result" >&5
12303 echo "${ECHO_T}$result" >&6; }
12304
12305
12306           enablestring=
12307           defaultval=$wxUSE_ALL_FEATURES
12308           if test -z "$defaultval"; then
12309               if test x"$enablestring" = xdisable; then
12310                   defaultval=yes
12311               else
12312                   defaultval=no
12313               fi
12314           fi
12315
12316           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
12317 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
12318           # Check whether --enable-coldlg was given.
12319 if test "${enable_coldlg+set}" = set; then
12320   enableval=$enable_coldlg;
12321                           if test "$enableval" = yes; then
12322                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
12323                           else
12324                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
12325                           fi
12326
12327 else
12328
12329                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
12330
12331 fi
12332
12333
12334           eval "$wx_cv_use_coldlg"
12335
12336           if test x"$enablestring" = xdisable; then
12337             if test $wxUSE_COLOURDLG = yes; then
12338               result=no
12339             else
12340               result=yes
12341             fi
12342           else
12343             result=$wxUSE_COLOURDLG
12344           fi
12345
12346           { echo "$as_me:$LINENO: result: $result" >&5
12347 echo "${ECHO_T}$result" >&6; }
12348
12349
12350           enablestring=
12351           defaultval=$wxUSE_ALL_FEATURES
12352           if test -z "$defaultval"; then
12353               if test x"$enablestring" = xdisable; then
12354                   defaultval=yes
12355               else
12356                   defaultval=no
12357               fi
12358           fi
12359
12360           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
12361 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
12362           # Check whether --enable-filedlg was given.
12363 if test "${enable_filedlg+set}" = set; then
12364   enableval=$enable_filedlg;
12365                           if test "$enableval" = yes; then
12366                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
12367                           else
12368                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
12369                           fi
12370
12371 else
12372
12373                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
12374
12375 fi
12376
12377
12378           eval "$wx_cv_use_filedlg"
12379
12380           if test x"$enablestring" = xdisable; then
12381             if test $wxUSE_FILEDLG = yes; then
12382               result=no
12383             else
12384               result=yes
12385             fi
12386           else
12387             result=$wxUSE_FILEDLG
12388           fi
12389
12390           { echo "$as_me:$LINENO: result: $result" >&5
12391 echo "${ECHO_T}$result" >&6; }
12392
12393
12394           enablestring=
12395           defaultval=$wxUSE_ALL_FEATURES
12396           if test -z "$defaultval"; then
12397               if test x"$enablestring" = xdisable; then
12398                   defaultval=yes
12399               else
12400                   defaultval=no
12401               fi
12402           fi
12403
12404           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
12405 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
12406           # Check whether --enable-finddlg was given.
12407 if test "${enable_finddlg+set}" = set; then
12408   enableval=$enable_finddlg;
12409                           if test "$enableval" = yes; then
12410                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
12411                           else
12412                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
12413                           fi
12414
12415 else
12416
12417                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
12418
12419 fi
12420
12421
12422           eval "$wx_cv_use_finddlg"
12423
12424           if test x"$enablestring" = xdisable; then
12425             if test $wxUSE_FINDREPLDLG = yes; then
12426               result=no
12427             else
12428               result=yes
12429             fi
12430           else
12431             result=$wxUSE_FINDREPLDLG
12432           fi
12433
12434           { echo "$as_me:$LINENO: result: $result" >&5
12435 echo "${ECHO_T}$result" >&6; }
12436
12437
12438           enablestring=
12439           defaultval=$wxUSE_ALL_FEATURES
12440           if test -z "$defaultval"; then
12441               if test x"$enablestring" = xdisable; then
12442                   defaultval=yes
12443               else
12444                   defaultval=no
12445               fi
12446           fi
12447
12448           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
12449 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
12450           # Check whether --enable-fontdlg was given.
12451 if test "${enable_fontdlg+set}" = set; then
12452   enableval=$enable_fontdlg;
12453                           if test "$enableval" = yes; then
12454                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
12455                           else
12456                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
12457                           fi
12458
12459 else
12460
12461                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
12462
12463 fi
12464
12465
12466           eval "$wx_cv_use_fontdlg"
12467
12468           if test x"$enablestring" = xdisable; then
12469             if test $wxUSE_FONTDLG = yes; then
12470               result=no
12471             else
12472               result=yes
12473             fi
12474           else
12475             result=$wxUSE_FONTDLG
12476           fi
12477
12478           { echo "$as_me:$LINENO: result: $result" >&5
12479 echo "${ECHO_T}$result" >&6; }
12480
12481
12482           enablestring=
12483           defaultval=$wxUSE_ALL_FEATURES
12484           if test -z "$defaultval"; then
12485               if test x"$enablestring" = xdisable; then
12486                   defaultval=yes
12487               else
12488                   defaultval=no
12489               fi
12490           fi
12491
12492           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
12493 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
12494           # Check whether --enable-dirdlg was given.
12495 if test "${enable_dirdlg+set}" = set; then
12496   enableval=$enable_dirdlg;
12497                           if test "$enableval" = yes; then
12498                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
12499                           else
12500                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
12501                           fi
12502
12503 else
12504
12505                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
12506
12507 fi
12508
12509
12510           eval "$wx_cv_use_dirdlg"
12511
12512           if test x"$enablestring" = xdisable; then
12513             if test $wxUSE_DIRDLG = yes; then
12514               result=no
12515             else
12516               result=yes
12517             fi
12518           else
12519             result=$wxUSE_DIRDLG
12520           fi
12521
12522           { echo "$as_me:$LINENO: result: $result" >&5
12523 echo "${ECHO_T}$result" >&6; }
12524
12525
12526           enablestring=
12527           defaultval=$wxUSE_ALL_FEATURES
12528           if test -z "$defaultval"; then
12529               if test x"$enablestring" = xdisable; then
12530                   defaultval=yes
12531               else
12532                   defaultval=no
12533               fi
12534           fi
12535
12536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
12537 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
12538           # Check whether --enable-msgdlg was given.
12539 if test "${enable_msgdlg+set}" = set; then
12540   enableval=$enable_msgdlg;
12541                           if test "$enableval" = yes; then
12542                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
12543                           else
12544                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
12545                           fi
12546
12547 else
12548
12549                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
12550
12551 fi
12552
12553
12554           eval "$wx_cv_use_msgdlg"
12555
12556           if test x"$enablestring" = xdisable; then
12557             if test $wxUSE_MSGDLG = yes; then
12558               result=no
12559             else
12560               result=yes
12561             fi
12562           else
12563             result=$wxUSE_MSGDLG
12564           fi
12565
12566           { echo "$as_me:$LINENO: result: $result" >&5
12567 echo "${ECHO_T}$result" >&6; }
12568
12569
12570           enablestring=
12571           defaultval=$wxUSE_ALL_FEATURES
12572           if test -z "$defaultval"; then
12573               if test x"$enablestring" = xdisable; then
12574                   defaultval=yes
12575               else
12576                   defaultval=no
12577               fi
12578           fi
12579
12580           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
12581 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
12582           # Check whether --enable-numberdlg was given.
12583 if test "${enable_numberdlg+set}" = set; then
12584   enableval=$enable_numberdlg;
12585                           if test "$enableval" = yes; then
12586                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
12587                           else
12588                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
12589                           fi
12590
12591 else
12592
12593                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
12594
12595 fi
12596
12597
12598           eval "$wx_cv_use_numberdlg"
12599
12600           if test x"$enablestring" = xdisable; then
12601             if test $wxUSE_NUMBERDLG = yes; then
12602               result=no
12603             else
12604               result=yes
12605             fi
12606           else
12607             result=$wxUSE_NUMBERDLG
12608           fi
12609
12610           { echo "$as_me:$LINENO: result: $result" >&5
12611 echo "${ECHO_T}$result" >&6; }
12612
12613
12614           enablestring=
12615           defaultval=$wxUSE_ALL_FEATURES
12616           if test -z "$defaultval"; then
12617               if test x"$enablestring" = xdisable; then
12618                   defaultval=yes
12619               else
12620                   defaultval=no
12621               fi
12622           fi
12623
12624           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
12625 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
12626           # Check whether --enable-splash was given.
12627 if test "${enable_splash+set}" = set; then
12628   enableval=$enable_splash;
12629                           if test "$enableval" = yes; then
12630                             wx_cv_use_splash='wxUSE_SPLASH=yes'
12631                           else
12632                             wx_cv_use_splash='wxUSE_SPLASH=no'
12633                           fi
12634
12635 else
12636
12637                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
12638
12639 fi
12640
12641
12642           eval "$wx_cv_use_splash"
12643
12644           if test x"$enablestring" = xdisable; then
12645             if test $wxUSE_SPLASH = yes; then
12646               result=no
12647             else
12648               result=yes
12649             fi
12650           else
12651             result=$wxUSE_SPLASH
12652           fi
12653
12654           { echo "$as_me:$LINENO: result: $result" >&5
12655 echo "${ECHO_T}$result" >&6; }
12656
12657
12658           enablestring=
12659           defaultval=$wxUSE_ALL_FEATURES
12660           if test -z "$defaultval"; then
12661               if test x"$enablestring" = xdisable; then
12662                   defaultval=yes
12663               else
12664                   defaultval=no
12665               fi
12666           fi
12667
12668           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
12669 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
12670           # Check whether --enable-textdlg was given.
12671 if test "${enable_textdlg+set}" = set; then
12672   enableval=$enable_textdlg;
12673                           if test "$enableval" = yes; then
12674                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
12675                           else
12676                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
12677                           fi
12678
12679 else
12680
12681                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
12682
12683 fi
12684
12685
12686           eval "$wx_cv_use_textdlg"
12687
12688           if test x"$enablestring" = xdisable; then
12689             if test $wxUSE_TEXTDLG = yes; then
12690               result=no
12691             else
12692               result=yes
12693             fi
12694           else
12695             result=$wxUSE_TEXTDLG
12696           fi
12697
12698           { echo "$as_me:$LINENO: result: $result" >&5
12699 echo "${ECHO_T}$result" >&6; }
12700
12701
12702           enablestring=
12703           defaultval=$wxUSE_ALL_FEATURES
12704           if test -z "$defaultval"; then
12705               if test x"$enablestring" = xdisable; then
12706                   defaultval=yes
12707               else
12708                   defaultval=no
12709               fi
12710           fi
12711
12712           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
12713 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
12714           # Check whether --enable-tipdlg was given.
12715 if test "${enable_tipdlg+set}" = set; then
12716   enableval=$enable_tipdlg;
12717                           if test "$enableval" = yes; then
12718                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
12719                           else
12720                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
12721                           fi
12722
12723 else
12724
12725                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
12726
12727 fi
12728
12729
12730           eval "$wx_cv_use_tipdlg"
12731
12732           if test x"$enablestring" = xdisable; then
12733             if test $wxUSE_STARTUP_TIPS = yes; then
12734               result=no
12735             else
12736               result=yes
12737             fi
12738           else
12739             result=$wxUSE_STARTUP_TIPS
12740           fi
12741
12742           { echo "$as_me:$LINENO: result: $result" >&5
12743 echo "${ECHO_T}$result" >&6; }
12744
12745
12746           enablestring=
12747           defaultval=$wxUSE_ALL_FEATURES
12748           if test -z "$defaultval"; then
12749               if test x"$enablestring" = xdisable; then
12750                   defaultval=yes
12751               else
12752                   defaultval=no
12753               fi
12754           fi
12755
12756           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
12757 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
12758           # Check whether --enable-progressdlg was given.
12759 if test "${enable_progressdlg+set}" = set; then
12760   enableval=$enable_progressdlg;
12761                           if test "$enableval" = yes; then
12762                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
12763                           else
12764                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
12765                           fi
12766
12767 else
12768
12769                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
12770
12771 fi
12772
12773
12774           eval "$wx_cv_use_progressdlg"
12775
12776           if test x"$enablestring" = xdisable; then
12777             if test $wxUSE_PROGRESSDLG = yes; then
12778               result=no
12779             else
12780               result=yes
12781             fi
12782           else
12783             result=$wxUSE_PROGRESSDLG
12784           fi
12785
12786           { echo "$as_me:$LINENO: result: $result" >&5
12787 echo "${ECHO_T}$result" >&6; }
12788
12789
12790           enablestring=
12791           defaultval=$wxUSE_ALL_FEATURES
12792           if test -z "$defaultval"; then
12793               if test x"$enablestring" = xdisable; then
12794                   defaultval=yes
12795               else
12796                   defaultval=no
12797               fi
12798           fi
12799
12800           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
12801 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
12802           # Check whether --enable-wizarddlg was given.
12803 if test "${enable_wizarddlg+set}" = set; then
12804   enableval=$enable_wizarddlg;
12805                           if test "$enableval" = yes; then
12806                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
12807                           else
12808                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
12809                           fi
12810
12811 else
12812
12813                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
12814
12815 fi
12816
12817
12818           eval "$wx_cv_use_wizarddlg"
12819
12820           if test x"$enablestring" = xdisable; then
12821             if test $wxUSE_WIZARDDLG = yes; then
12822               result=no
12823             else
12824               result=yes
12825             fi
12826           else
12827             result=$wxUSE_WIZARDDLG
12828           fi
12829
12830           { echo "$as_me:$LINENO: result: $result" >&5
12831 echo "${ECHO_T}$result" >&6; }
12832
12833
12834
12835
12836           enablestring=
12837           defaultval=$wxUSE_ALL_FEATURES
12838           if test -z "$defaultval"; then
12839               if test x"$enablestring" = xdisable; then
12840                   defaultval=yes
12841               else
12842                   defaultval=no
12843               fi
12844           fi
12845
12846           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
12847 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
12848           # Check whether --enable-menus was given.
12849 if test "${enable_menus+set}" = set; then
12850   enableval=$enable_menus;
12851                           if test "$enableval" = yes; then
12852                             wx_cv_use_menus='wxUSE_MENUS=yes'
12853                           else
12854                             wx_cv_use_menus='wxUSE_MENUS=no'
12855                           fi
12856
12857 else
12858
12859                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
12860
12861 fi
12862
12863
12864           eval "$wx_cv_use_menus"
12865
12866           if test x"$enablestring" = xdisable; then
12867             if test $wxUSE_MENUS = yes; then
12868               result=no
12869             else
12870               result=yes
12871             fi
12872           else
12873             result=$wxUSE_MENUS
12874           fi
12875
12876           { echo "$as_me:$LINENO: result: $result" >&5
12877 echo "${ECHO_T}$result" >&6; }
12878
12879
12880           enablestring=
12881           defaultval=$wxUSE_ALL_FEATURES
12882           if test -z "$defaultval"; then
12883               if test x"$enablestring" = xdisable; then
12884                   defaultval=yes
12885               else
12886                   defaultval=no
12887               fi
12888           fi
12889
12890           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
12891 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
12892           # Check whether --enable-miniframe was given.
12893 if test "${enable_miniframe+set}" = set; then
12894   enableval=$enable_miniframe;
12895                           if test "$enableval" = yes; then
12896                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
12897                           else
12898                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
12899                           fi
12900
12901 else
12902
12903                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
12904
12905 fi
12906
12907
12908           eval "$wx_cv_use_miniframe"
12909
12910           if test x"$enablestring" = xdisable; then
12911             if test $wxUSE_MINIFRAME = yes; then
12912               result=no
12913             else
12914               result=yes
12915             fi
12916           else
12917             result=$wxUSE_MINIFRAME
12918           fi
12919
12920           { echo "$as_me:$LINENO: result: $result" >&5
12921 echo "${ECHO_T}$result" >&6; }
12922
12923
12924           enablestring=
12925           defaultval=$wxUSE_ALL_FEATURES
12926           if test -z "$defaultval"; then
12927               if test x"$enablestring" = xdisable; then
12928                   defaultval=yes
12929               else
12930                   defaultval=no
12931               fi
12932           fi
12933
12934           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
12935 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
12936           # Check whether --enable-tooltips was given.
12937 if test "${enable_tooltips+set}" = set; then
12938   enableval=$enable_tooltips;
12939                           if test "$enableval" = yes; then
12940                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
12941                           else
12942                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
12943                           fi
12944
12945 else
12946
12947                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
12948
12949 fi
12950
12951
12952           eval "$wx_cv_use_tooltips"
12953
12954           if test x"$enablestring" = xdisable; then
12955             if test $wxUSE_TOOLTIPS = yes; then
12956               result=no
12957             else
12958               result=yes
12959             fi
12960           else
12961             result=$wxUSE_TOOLTIPS
12962           fi
12963
12964           { echo "$as_me:$LINENO: result: $result" >&5
12965 echo "${ECHO_T}$result" >&6; }
12966
12967
12968           enablestring=
12969           defaultval=$wxUSE_ALL_FEATURES
12970           if test -z "$defaultval"; then
12971               if test x"$enablestring" = xdisable; then
12972                   defaultval=yes
12973               else
12974                   defaultval=no
12975               fi
12976           fi
12977
12978           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
12979 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
12980           # Check whether --enable-splines was given.
12981 if test "${enable_splines+set}" = set; then
12982   enableval=$enable_splines;
12983                           if test "$enableval" = yes; then
12984                             wx_cv_use_splines='wxUSE_SPLINES=yes'
12985                           else
12986                             wx_cv_use_splines='wxUSE_SPLINES=no'
12987                           fi
12988
12989 else
12990
12991                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
12992
12993 fi
12994
12995
12996           eval "$wx_cv_use_splines"
12997
12998           if test x"$enablestring" = xdisable; then
12999             if test $wxUSE_SPLINES = yes; then
13000               result=no
13001             else
13002               result=yes
13003             fi
13004           else
13005             result=$wxUSE_SPLINES
13006           fi
13007
13008           { echo "$as_me:$LINENO: result: $result" >&5
13009 echo "${ECHO_T}$result" >&6; }
13010
13011
13012           enablestring=
13013           defaultval=$wxUSE_ALL_FEATURES
13014           if test -z "$defaultval"; then
13015               if test x"$enablestring" = xdisable; then
13016                   defaultval=yes
13017               else
13018                   defaultval=no
13019               fi
13020           fi
13021
13022           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
13023 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
13024           # Check whether --enable-mousewheel was given.
13025 if test "${enable_mousewheel+set}" = set; then
13026   enableval=$enable_mousewheel;
13027                           if test "$enableval" = yes; then
13028                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
13029                           else
13030                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
13031                           fi
13032
13033 else
13034
13035                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
13036
13037 fi
13038
13039
13040           eval "$wx_cv_use_mousewheel"
13041
13042           if test x"$enablestring" = xdisable; then
13043             if test $wxUSE_MOUSEWHEEL = yes; then
13044               result=no
13045             else
13046               result=yes
13047             fi
13048           else
13049             result=$wxUSE_MOUSEWHEEL
13050           fi
13051
13052           { echo "$as_me:$LINENO: result: $result" >&5
13053 echo "${ECHO_T}$result" >&6; }
13054
13055
13056           enablestring=
13057           defaultval=$wxUSE_ALL_FEATURES
13058           if test -z "$defaultval"; then
13059               if test x"$enablestring" = xdisable; then
13060                   defaultval=yes
13061               else
13062                   defaultval=no
13063               fi
13064           fi
13065
13066           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
13067 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
13068           # Check whether --enable-validators was given.
13069 if test "${enable_validators+set}" = set; then
13070   enableval=$enable_validators;
13071                           if test "$enableval" = yes; then
13072                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
13073                           else
13074                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
13075                           fi
13076
13077 else
13078
13079                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
13080
13081 fi
13082
13083
13084           eval "$wx_cv_use_validators"
13085
13086           if test x"$enablestring" = xdisable; then
13087             if test $wxUSE_VALIDATORS = yes; then
13088               result=no
13089             else
13090               result=yes
13091             fi
13092           else
13093             result=$wxUSE_VALIDATORS
13094           fi
13095
13096           { echo "$as_me:$LINENO: result: $result" >&5
13097 echo "${ECHO_T}$result" >&6; }
13098
13099
13100           enablestring=
13101           defaultval=$wxUSE_ALL_FEATURES
13102           if test -z "$defaultval"; then
13103               if test x"$enablestring" = xdisable; then
13104                   defaultval=yes
13105               else
13106                   defaultval=no
13107               fi
13108           fi
13109
13110           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
13111 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
13112           # Check whether --enable-busyinfo was given.
13113 if test "${enable_busyinfo+set}" = set; then
13114   enableval=$enable_busyinfo;
13115                           if test "$enableval" = yes; then
13116                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
13117                           else
13118                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
13119                           fi
13120
13121 else
13122
13123                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
13124
13125 fi
13126
13127
13128           eval "$wx_cv_use_busyinfo"
13129
13130           if test x"$enablestring" = xdisable; then
13131             if test $wxUSE_BUSYINFO = yes; then
13132               result=no
13133             else
13134               result=yes
13135             fi
13136           else
13137             result=$wxUSE_BUSYINFO
13138           fi
13139
13140           { echo "$as_me:$LINENO: result: $result" >&5
13141 echo "${ECHO_T}$result" >&6; }
13142
13143
13144           enablestring=
13145           defaultval=$wxUSE_ALL_FEATURES
13146           if test -z "$defaultval"; then
13147               if test x"$enablestring" = xdisable; then
13148                   defaultval=yes
13149               else
13150                   defaultval=no
13151               fi
13152           fi
13153
13154           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
13155 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
13156           # Check whether --enable-joystick was given.
13157 if test "${enable_joystick+set}" = set; then
13158   enableval=$enable_joystick;
13159                           if test "$enableval" = yes; then
13160                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
13161                           else
13162                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
13163                           fi
13164
13165 else
13166
13167                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
13168
13169 fi
13170
13171
13172           eval "$wx_cv_use_joystick"
13173
13174           if test x"$enablestring" = xdisable; then
13175             if test $wxUSE_JOYSTICK = yes; then
13176               result=no
13177             else
13178               result=yes
13179             fi
13180           else
13181             result=$wxUSE_JOYSTICK
13182           fi
13183
13184           { echo "$as_me:$LINENO: result: $result" >&5
13185 echo "${ECHO_T}$result" >&6; }
13186
13187
13188           enablestring=
13189           defaultval=$wxUSE_ALL_FEATURES
13190           if test -z "$defaultval"; then
13191               if test x"$enablestring" = xdisable; then
13192                   defaultval=yes
13193               else
13194                   defaultval=no
13195               fi
13196           fi
13197
13198           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
13199 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
13200           # Check whether --enable-metafile was given.
13201 if test "${enable_metafile+set}" = set; then
13202   enableval=$enable_metafile;
13203                           if test "$enableval" = yes; then
13204                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
13205                           else
13206                             wx_cv_use_metafile='wxUSE_METAFILE=no'
13207                           fi
13208
13209 else
13210
13211                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
13212
13213 fi
13214
13215
13216           eval "$wx_cv_use_metafile"
13217
13218           if test x"$enablestring" = xdisable; then
13219             if test $wxUSE_METAFILE = yes; then
13220               result=no
13221             else
13222               result=yes
13223             fi
13224           else
13225             result=$wxUSE_METAFILE
13226           fi
13227
13228           { echo "$as_me:$LINENO: result: $result" >&5
13229 echo "${ECHO_T}$result" >&6; }
13230
13231
13232           enablestring=
13233           defaultval=$wxUSE_ALL_FEATURES
13234           if test -z "$defaultval"; then
13235               if test x"$enablestring" = xdisable; then
13236                   defaultval=yes
13237               else
13238                   defaultval=no
13239               fi
13240           fi
13241
13242           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
13243 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
13244           # Check whether --enable-dragimage was given.
13245 if test "${enable_dragimage+set}" = set; then
13246   enableval=$enable_dragimage;
13247                           if test "$enableval" = yes; then
13248                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
13249                           else
13250                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
13251                           fi
13252
13253 else
13254
13255                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
13256
13257 fi
13258
13259
13260           eval "$wx_cv_use_dragimage"
13261
13262           if test x"$enablestring" = xdisable; then
13263             if test $wxUSE_DRAGIMAGE = yes; then
13264               result=no
13265             else
13266               result=yes
13267             fi
13268           else
13269             result=$wxUSE_DRAGIMAGE
13270           fi
13271
13272           { echo "$as_me:$LINENO: result: $result" >&5
13273 echo "${ECHO_T}$result" >&6; }
13274
13275
13276           enablestring=
13277           defaultval=$wxUSE_ALL_FEATURES
13278           if test -z "$defaultval"; then
13279               if test x"$enablestring" = xdisable; then
13280                   defaultval=yes
13281               else
13282                   defaultval=no
13283               fi
13284           fi
13285
13286           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
13287 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
13288           # Check whether --enable-accessibility was given.
13289 if test "${enable_accessibility+set}" = set; then
13290   enableval=$enable_accessibility;
13291                           if test "$enableval" = yes; then
13292                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
13293                           else
13294                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
13295                           fi
13296
13297 else
13298
13299                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
13300
13301 fi
13302
13303
13304           eval "$wx_cv_use_accessibility"
13305
13306           if test x"$enablestring" = xdisable; then
13307             if test $wxUSE_ACCESSIBILITY = yes; then
13308               result=no
13309             else
13310               result=yes
13311             fi
13312           else
13313             result=$wxUSE_ACCESSIBILITY
13314           fi
13315
13316           { echo "$as_me:$LINENO: result: $result" >&5
13317 echo "${ECHO_T}$result" >&6; }
13318
13319
13320
13321
13322           enablestring=
13323           defaultval=$wxUSE_ALL_FEATURES
13324           if test -z "$defaultval"; then
13325               if test x"$enablestring" = xdisable; then
13326                   defaultval=yes
13327               else
13328                   defaultval=no
13329               fi
13330           fi
13331
13332           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
13333 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
13334           # Check whether --enable-palette was given.
13335 if test "${enable_palette+set}" = set; then
13336   enableval=$enable_palette;
13337                           if test "$enableval" = yes; then
13338                             wx_cv_use_palette='wxUSE_PALETTE=yes'
13339                           else
13340                             wx_cv_use_palette='wxUSE_PALETTE=no'
13341                           fi
13342
13343 else
13344
13345                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
13346
13347 fi
13348
13349
13350           eval "$wx_cv_use_palette"
13351
13352           if test x"$enablestring" = xdisable; then
13353             if test $wxUSE_PALETTE = yes; then
13354               result=no
13355             else
13356               result=yes
13357             fi
13358           else
13359             result=$wxUSE_PALETTE
13360           fi
13361
13362           { echo "$as_me:$LINENO: result: $result" >&5
13363 echo "${ECHO_T}$result" >&6; }
13364
13365
13366           enablestring=
13367           defaultval=$wxUSE_ALL_FEATURES
13368           if test -z "$defaultval"; then
13369               if test x"$enablestring" = xdisable; then
13370                   defaultval=yes
13371               else
13372                   defaultval=no
13373               fi
13374           fi
13375
13376           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
13377 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
13378           # Check whether --enable-image was given.
13379 if test "${enable_image+set}" = set; then
13380   enableval=$enable_image;
13381                           if test "$enableval" = yes; then
13382                             wx_cv_use_image='wxUSE_IMAGE=yes'
13383                           else
13384                             wx_cv_use_image='wxUSE_IMAGE=no'
13385                           fi
13386
13387 else
13388
13389                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
13390
13391 fi
13392
13393
13394           eval "$wx_cv_use_image"
13395
13396           if test x"$enablestring" = xdisable; then
13397             if test $wxUSE_IMAGE = yes; then
13398               result=no
13399             else
13400               result=yes
13401             fi
13402           else
13403             result=$wxUSE_IMAGE
13404           fi
13405
13406           { echo "$as_me:$LINENO: result: $result" >&5
13407 echo "${ECHO_T}$result" >&6; }
13408
13409
13410           enablestring=
13411           defaultval=$wxUSE_ALL_FEATURES
13412           if test -z "$defaultval"; then
13413               if test x"$enablestring" = xdisable; then
13414                   defaultval=yes
13415               else
13416                   defaultval=no
13417               fi
13418           fi
13419
13420           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
13421 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
13422           # Check whether --enable-gif was given.
13423 if test "${enable_gif+set}" = set; then
13424   enableval=$enable_gif;
13425                           if test "$enableval" = yes; then
13426                             wx_cv_use_gif='wxUSE_GIF=yes'
13427                           else
13428                             wx_cv_use_gif='wxUSE_GIF=no'
13429                           fi
13430
13431 else
13432
13433                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
13434
13435 fi
13436
13437
13438           eval "$wx_cv_use_gif"
13439
13440           if test x"$enablestring" = xdisable; then
13441             if test $wxUSE_GIF = yes; then
13442               result=no
13443             else
13444               result=yes
13445             fi
13446           else
13447             result=$wxUSE_GIF
13448           fi
13449
13450           { echo "$as_me:$LINENO: result: $result" >&5
13451 echo "${ECHO_T}$result" >&6; }
13452
13453
13454           enablestring=
13455           defaultval=$wxUSE_ALL_FEATURES
13456           if test -z "$defaultval"; then
13457               if test x"$enablestring" = xdisable; then
13458                   defaultval=yes
13459               else
13460                   defaultval=no
13461               fi
13462           fi
13463
13464           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
13465 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
13466           # Check whether --enable-pcx was given.
13467 if test "${enable_pcx+set}" = set; then
13468   enableval=$enable_pcx;
13469                           if test "$enableval" = yes; then
13470                             wx_cv_use_pcx='wxUSE_PCX=yes'
13471                           else
13472                             wx_cv_use_pcx='wxUSE_PCX=no'
13473                           fi
13474
13475 else
13476
13477                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
13478
13479 fi
13480
13481
13482           eval "$wx_cv_use_pcx"
13483
13484           if test x"$enablestring" = xdisable; then
13485             if test $wxUSE_PCX = yes; then
13486               result=no
13487             else
13488               result=yes
13489             fi
13490           else
13491             result=$wxUSE_PCX
13492           fi
13493
13494           { echo "$as_me:$LINENO: result: $result" >&5
13495 echo "${ECHO_T}$result" >&6; }
13496
13497
13498           enablestring=
13499           defaultval=$wxUSE_ALL_FEATURES
13500           if test -z "$defaultval"; then
13501               if test x"$enablestring" = xdisable; then
13502                   defaultval=yes
13503               else
13504                   defaultval=no
13505               fi
13506           fi
13507
13508           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
13509 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
13510           # Check whether --enable-tga was given.
13511 if test "${enable_tga+set}" = set; then
13512   enableval=$enable_tga;
13513                           if test "$enableval" = yes; then
13514                             wx_cv_use_tga='wxUSE_TGA=yes'
13515                           else
13516                             wx_cv_use_tga='wxUSE_TGA=no'
13517                           fi
13518
13519 else
13520
13521                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
13522
13523 fi
13524
13525
13526           eval "$wx_cv_use_tga"
13527
13528           if test x"$enablestring" = xdisable; then
13529             if test $wxUSE_TGA = yes; then
13530               result=no
13531             else
13532               result=yes
13533             fi
13534           else
13535             result=$wxUSE_TGA
13536           fi
13537
13538           { echo "$as_me:$LINENO: result: $result" >&5
13539 echo "${ECHO_T}$result" >&6; }
13540
13541
13542           enablestring=
13543           defaultval=$wxUSE_ALL_FEATURES
13544           if test -z "$defaultval"; then
13545               if test x"$enablestring" = xdisable; then
13546                   defaultval=yes
13547               else
13548                   defaultval=no
13549               fi
13550           fi
13551
13552           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
13553 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
13554           # Check whether --enable-iff was given.
13555 if test "${enable_iff+set}" = set; then
13556   enableval=$enable_iff;
13557                           if test "$enableval" = yes; then
13558                             wx_cv_use_iff='wxUSE_IFF=yes'
13559                           else
13560                             wx_cv_use_iff='wxUSE_IFF=no'
13561                           fi
13562
13563 else
13564
13565                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
13566
13567 fi
13568
13569
13570           eval "$wx_cv_use_iff"
13571
13572           if test x"$enablestring" = xdisable; then
13573             if test $wxUSE_IFF = yes; then
13574               result=no
13575             else
13576               result=yes
13577             fi
13578           else
13579             result=$wxUSE_IFF
13580           fi
13581
13582           { echo "$as_me:$LINENO: result: $result" >&5
13583 echo "${ECHO_T}$result" >&6; }
13584
13585
13586           enablestring=
13587           defaultval=$wxUSE_ALL_FEATURES
13588           if test -z "$defaultval"; then
13589               if test x"$enablestring" = xdisable; then
13590                   defaultval=yes
13591               else
13592                   defaultval=no
13593               fi
13594           fi
13595
13596           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
13597 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
13598           # Check whether --enable-pnm was given.
13599 if test "${enable_pnm+set}" = set; then
13600   enableval=$enable_pnm;
13601                           if test "$enableval" = yes; then
13602                             wx_cv_use_pnm='wxUSE_PNM=yes'
13603                           else
13604                             wx_cv_use_pnm='wxUSE_PNM=no'
13605                           fi
13606
13607 else
13608
13609                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
13610
13611 fi
13612
13613
13614           eval "$wx_cv_use_pnm"
13615
13616           if test x"$enablestring" = xdisable; then
13617             if test $wxUSE_PNM = yes; then
13618               result=no
13619             else
13620               result=yes
13621             fi
13622           else
13623             result=$wxUSE_PNM
13624           fi
13625
13626           { echo "$as_me:$LINENO: result: $result" >&5
13627 echo "${ECHO_T}$result" >&6; }
13628
13629
13630           enablestring=
13631           defaultval=$wxUSE_ALL_FEATURES
13632           if test -z "$defaultval"; then
13633               if test x"$enablestring" = xdisable; then
13634                   defaultval=yes
13635               else
13636                   defaultval=no
13637               fi
13638           fi
13639
13640           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
13641 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
13642           # Check whether --enable-xpm was given.
13643 if test "${enable_xpm+set}" = set; then
13644   enableval=$enable_xpm;
13645                           if test "$enableval" = yes; then
13646                             wx_cv_use_xpm='wxUSE_XPM=yes'
13647                           else
13648                             wx_cv_use_xpm='wxUSE_XPM=no'
13649                           fi
13650
13651 else
13652
13653                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
13654
13655 fi
13656
13657
13658           eval "$wx_cv_use_xpm"
13659
13660           if test x"$enablestring" = xdisable; then
13661             if test $wxUSE_XPM = yes; then
13662               result=no
13663             else
13664               result=yes
13665             fi
13666           else
13667             result=$wxUSE_XPM
13668           fi
13669
13670           { echo "$as_me:$LINENO: result: $result" >&5
13671 echo "${ECHO_T}$result" >&6; }
13672
13673
13674           enablestring=
13675           defaultval=$wxUSE_ALL_FEATURES
13676           if test -z "$defaultval"; then
13677               if test x"$enablestring" = xdisable; then
13678                   defaultval=yes
13679               else
13680                   defaultval=no
13681               fi
13682           fi
13683
13684           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
13685 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
13686           # Check whether --enable-ico_cur was given.
13687 if test "${enable_ico_cur+set}" = set; then
13688   enableval=$enable_ico_cur;
13689                           if test "$enableval" = yes; then
13690                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
13691                           else
13692                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
13693                           fi
13694
13695 else
13696
13697                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
13698
13699 fi
13700
13701
13702           eval "$wx_cv_use_ico_cur"
13703
13704           if test x"$enablestring" = xdisable; then
13705             if test $wxUSE_ICO_CUR = yes; then
13706               result=no
13707             else
13708               result=yes
13709             fi
13710           else
13711             result=$wxUSE_ICO_CUR
13712           fi
13713
13714           { echo "$as_me:$LINENO: result: $result" >&5
13715 echo "${ECHO_T}$result" >&6; }
13716
13717
13718
13719
13720           enablestring=
13721           defaultval=$wxUSE_ALL_FEATURES
13722           if test -z "$defaultval"; then
13723               if test x"$enablestring" = xdisable; then
13724                   defaultval=yes
13725               else
13726                   defaultval=no
13727               fi
13728           fi
13729
13730           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
13731 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
13732           # Check whether --enable-dccache was given.
13733 if test "${enable_dccache+set}" = set; then
13734   enableval=$enable_dccache;
13735                           if test "$enableval" = yes; then
13736                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
13737                           else
13738                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
13739                           fi
13740
13741 else
13742
13743                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
13744
13745 fi
13746
13747
13748           eval "$wx_cv_use_dccache"
13749
13750           if test x"$enablestring" = xdisable; then
13751             if test $wxUSE_DC_CACHEING = yes; then
13752               result=no
13753             else
13754               result=yes
13755             fi
13756           else
13757             result=$wxUSE_DC_CACHEING
13758           fi
13759
13760           { echo "$as_me:$LINENO: result: $result" >&5
13761 echo "${ECHO_T}$result" >&6; }
13762
13763
13764           enablestring=
13765           defaultval=$wxUSE_ALL_FEATURES
13766           if test -z "$defaultval"; then
13767               if test x"$enablestring" = xdisable; then
13768                   defaultval=yes
13769               else
13770                   defaultval=no
13771               fi
13772           fi
13773
13774           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
13775 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
13776           # Check whether --enable-ps-in-msw was given.
13777 if test "${enable_ps_in_msw+set}" = set; then
13778   enableval=$enable_ps_in_msw;
13779                           if test "$enableval" = yes; then
13780                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
13781                           else
13782                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
13783                           fi
13784
13785 else
13786
13787                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
13788
13789 fi
13790
13791
13792           eval "$wx_cv_use_ps_in_msw"
13793
13794           if test x"$enablestring" = xdisable; then
13795             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
13796               result=no
13797             else
13798               result=yes
13799             fi
13800           else
13801             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
13802           fi
13803
13804           { echo "$as_me:$LINENO: result: $result" >&5
13805 echo "${ECHO_T}$result" >&6; }
13806
13807
13808           enablestring=
13809           defaultval=$wxUSE_ALL_FEATURES
13810           if test -z "$defaultval"; then
13811               if test x"$enablestring" = xdisable; then
13812                   defaultval=yes
13813               else
13814                   defaultval=no
13815               fi
13816           fi
13817
13818           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
13819 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
13820           # Check whether --enable-ownerdrawn was given.
13821 if test "${enable_ownerdrawn+set}" = set; then
13822   enableval=$enable_ownerdrawn;
13823                           if test "$enableval" = yes; then
13824                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
13825                           else
13826                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
13827                           fi
13828
13829 else
13830
13831                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
13832
13833 fi
13834
13835
13836           eval "$wx_cv_use_ownerdrawn"
13837
13838           if test x"$enablestring" = xdisable; then
13839             if test $wxUSE_OWNER_DRAWN = yes; then
13840               result=no
13841             else
13842               result=yes
13843             fi
13844           else
13845             result=$wxUSE_OWNER_DRAWN
13846           fi
13847
13848           { echo "$as_me:$LINENO: result: $result" >&5
13849 echo "${ECHO_T}$result" >&6; }
13850
13851
13852           enablestring=
13853           defaultval=$wxUSE_ALL_FEATURES
13854           if test -z "$defaultval"; then
13855               if test x"$enablestring" = xdisable; then
13856                   defaultval=yes
13857               else
13858                   defaultval=no
13859               fi
13860           fi
13861
13862           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
13863 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
13864           # Check whether --enable-uxtheme was given.
13865 if test "${enable_uxtheme+set}" = set; then
13866   enableval=$enable_uxtheme;
13867                           if test "$enableval" = yes; then
13868                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
13869                           else
13870                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
13871                           fi
13872
13873 else
13874
13875                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
13876
13877 fi
13878
13879
13880           eval "$wx_cv_use_uxtheme"
13881
13882           if test x"$enablestring" = xdisable; then
13883             if test $wxUSE_UXTHEME = yes; then
13884               result=no
13885             else
13886               result=yes
13887             fi
13888           else
13889             result=$wxUSE_UXTHEME
13890           fi
13891
13892           { echo "$as_me:$LINENO: result: $result" >&5
13893 echo "${ECHO_T}$result" >&6; }
13894
13895
13896           enablestring=
13897           defaultval=$wxUSE_ALL_FEATURES
13898           if test -z "$defaultval"; then
13899               if test x"$enablestring" = xdisable; then
13900                   defaultval=yes
13901               else
13902                   defaultval=no
13903               fi
13904           fi
13905
13906           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
13907 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
13908           # Check whether --enable-wxdib was given.
13909 if test "${enable_wxdib+set}" = set; then
13910   enableval=$enable_wxdib;
13911                           if test "$enableval" = yes; then
13912                             wx_cv_use_wxdib='wxUSE_DIB=yes'
13913                           else
13914                             wx_cv_use_wxdib='wxUSE_DIB=no'
13915                           fi
13916
13917 else
13918
13919                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
13920
13921 fi
13922
13923
13924           eval "$wx_cv_use_wxdib"
13925
13926           if test x"$enablestring" = xdisable; then
13927             if test $wxUSE_DIB = yes; then
13928               result=no
13929             else
13930               result=yes
13931             fi
13932           else
13933             result=$wxUSE_DIB
13934           fi
13935
13936           { echo "$as_me:$LINENO: result: $result" >&5
13937 echo "${ECHO_T}$result" >&6; }
13938
13939
13940 if test "$wxUSE_MSW" != 1; then
13941     DEFAULT_wxUSE_AUTOID_MANAGEMENT=no
13942 fi
13943
13944
13945           enablestring=
13946           defaultval=$wxUSE_ALL_FEATURES
13947           if test -z "$defaultval"; then
13948               if test x"$enablestring" = xdisable; then
13949                   defaultval=yes
13950               else
13951                   defaultval=no
13952               fi
13953           fi
13954
13955           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-autoidman" >&5
13956 echo $ECHO_N "checking for --${enablestring:-enable}-autoidman... $ECHO_C" >&6; }
13957           # Check whether --enable-autoidman was given.
13958 if test "${enable_autoidman+set}" = set; then
13959   enableval=$enable_autoidman;
13960                           if test "$enableval" = yes; then
13961                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes'
13962                           else
13963                             wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no'
13964                           fi
13965
13966 else
13967
13968                           wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}"
13969
13970 fi
13971
13972
13973           eval "$wx_cv_use_autoidman"
13974
13975           if test x"$enablestring" = xdisable; then
13976             if test $wxUSE_AUTOID_MANAGEMENT = yes; then
13977               result=no
13978             else
13979               result=yes
13980             fi
13981           else
13982             result=$wxUSE_AUTOID_MANAGEMENT
13983           fi
13984
13985           { echo "$as_me:$LINENO: result: $result" >&5
13986 echo "${ECHO_T}$result" >&6; }
13987
13988
13989 fi
13990
13991
13992 cat >confcache <<\_ACEOF
13993 # This file is a shell script that caches the results of configure
13994 # tests run on this system so they can be shared between configure
13995 # scripts and configure runs, see configure's option --config-cache.
13996 # It is not useful on other systems.  If it contains results you don't
13997 # want to keep, you may remove or edit it.
13998 #
13999 # config.status only pays attention to the cache file if you give it
14000 # the --recheck option to rerun configure.
14001 #
14002 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14003 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14004 # following values.
14005
14006 _ACEOF
14007
14008 # The following way of writing the cache mishandles newlines in values,
14009 # but we know of no workaround that is simple, portable, and efficient.
14010 # So, we kill variables containing newlines.
14011 # Ultrix sh set writes to stderr and can't be redirected directly,
14012 # and sets the high bit in the cache file unless we assign to the vars.
14013 (
14014   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14015     eval ac_val=\$$ac_var
14016     case $ac_val in #(
14017     *${as_nl}*)
14018       case $ac_var in #(
14019       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14020 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14021       esac
14022       case $ac_var in #(
14023       _ | IFS | as_nl) ;; #(
14024       *) $as_unset $ac_var ;;
14025       esac ;;
14026     esac
14027   done
14028
14029   (set) 2>&1 |
14030     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14031     *${as_nl}ac_space=\ *)
14032       # `set' does not quote correctly, so add quotes (double-quote
14033       # substitution turns \\\\ into \\, and sed turns \\ into \).
14034       sed -n \
14035         "s/'/'\\\\''/g;
14036           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14037       ;; #(
14038     *)
14039       # `set' quotes correctly as required by POSIX, so do not add quotes.
14040       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14041       ;;
14042     esac |
14043     sort
14044 ) |
14045   sed '
14046      /^ac_cv_env_/b end
14047      t clear
14048      :clear
14049      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14050      t end
14051      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14052      :end' >>confcache
14053 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14054   if test -w "$cache_file"; then
14055     test "x$cache_file" != "x/dev/null" &&
14056       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14057 echo "$as_me: updating cache $cache_file" >&6;}
14058     cat confcache >$cache_file
14059   else
14060     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14061 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14062   fi
14063 fi
14064 rm -f confcache
14065
14066 CFLAGS=${CFLAGS:=}
14067
14068
14069
14070     ac_ext=c
14071 ac_cpp='$CPP $CPPFLAGS'
14072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14075 if test -n "$ac_tool_prefix"; then
14076   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14077 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14080 if test "${ac_cv_prog_CC+set}" = set; then
14081   echo $ECHO_N "(cached) $ECHO_C" >&6
14082 else
14083   if test -n "$CC"; then
14084   ac_cv_prog_CC="$CC" # Let the user override the test.
14085 else
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14088 do
14089   IFS=$as_save_IFS
14090   test -z "$as_dir" && as_dir=.
14091   for ac_exec_ext in '' $ac_executable_extensions; do
14092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14093     ac_cv_prog_CC="${ac_tool_prefix}gcc"
14094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14095     break 2
14096   fi
14097 done
14098 done
14099 IFS=$as_save_IFS
14100
14101 fi
14102 fi
14103 CC=$ac_cv_prog_CC
14104 if test -n "$CC"; then
14105   { echo "$as_me:$LINENO: result: $CC" >&5
14106 echo "${ECHO_T}$CC" >&6; }
14107 else
14108   { echo "$as_me:$LINENO: result: no" >&5
14109 echo "${ECHO_T}no" >&6; }
14110 fi
14111
14112
14113 fi
14114 if test -z "$ac_cv_prog_CC"; then
14115   ac_ct_CC=$CC
14116   # Extract the first word of "gcc", so it can be a program name with args.
14117 set dummy gcc; ac_word=$2
14118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14121   echo $ECHO_N "(cached) $ECHO_C" >&6
14122 else
14123   if test -n "$ac_ct_CC"; then
14124   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14125 else
14126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14127 for as_dir in $PATH
14128 do
14129   IFS=$as_save_IFS
14130   test -z "$as_dir" && as_dir=.
14131   for ac_exec_ext in '' $ac_executable_extensions; do
14132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14133     ac_cv_prog_ac_ct_CC="gcc"
14134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14135     break 2
14136   fi
14137 done
14138 done
14139 IFS=$as_save_IFS
14140
14141 fi
14142 fi
14143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14144 if test -n "$ac_ct_CC"; then
14145   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14146 echo "${ECHO_T}$ac_ct_CC" >&6; }
14147 else
14148   { echo "$as_me:$LINENO: result: no" >&5
14149 echo "${ECHO_T}no" >&6; }
14150 fi
14151
14152   if test "x$ac_ct_CC" = x; then
14153     CC=""
14154   else
14155     case $cross_compiling:$ac_tool_warned in
14156 yes:)
14157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14158 whose name does not start with the host triplet.  If you think this
14159 configuration is useful to you, please write to autoconf@gnu.org." >&5
14160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14161 whose name does not start with the host triplet.  If you think this
14162 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14163 ac_tool_warned=yes ;;
14164 esac
14165     CC=$ac_ct_CC
14166   fi
14167 else
14168   CC="$ac_cv_prog_CC"
14169 fi
14170
14171 if test -z "$CC"; then
14172           if test -n "$ac_tool_prefix"; then
14173     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14174 set dummy ${ac_tool_prefix}cc; ac_word=$2
14175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14177 if test "${ac_cv_prog_CC+set}" = set; then
14178   echo $ECHO_N "(cached) $ECHO_C" >&6
14179 else
14180   if test -n "$CC"; then
14181   ac_cv_prog_CC="$CC" # Let the user override the test.
14182 else
14183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14184 for as_dir in $PATH
14185 do
14186   IFS=$as_save_IFS
14187   test -z "$as_dir" && as_dir=.
14188   for ac_exec_ext in '' $ac_executable_extensions; do
14189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14190     ac_cv_prog_CC="${ac_tool_prefix}cc"
14191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14192     break 2
14193   fi
14194 done
14195 done
14196 IFS=$as_save_IFS
14197
14198 fi
14199 fi
14200 CC=$ac_cv_prog_CC
14201 if test -n "$CC"; then
14202   { echo "$as_me:$LINENO: result: $CC" >&5
14203 echo "${ECHO_T}$CC" >&6; }
14204 else
14205   { echo "$as_me:$LINENO: result: no" >&5
14206 echo "${ECHO_T}no" >&6; }
14207 fi
14208
14209
14210   fi
14211 fi
14212 if test -z "$CC"; then
14213   # Extract the first word of "cc", so it can be a program name with args.
14214 set dummy cc; ac_word=$2
14215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14217 if test "${ac_cv_prog_CC+set}" = set; then
14218   echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220   if test -n "$CC"; then
14221   ac_cv_prog_CC="$CC" # Let the user override the test.
14222 else
14223   ac_prog_rejected=no
14224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14225 for as_dir in $PATH
14226 do
14227   IFS=$as_save_IFS
14228   test -z "$as_dir" && as_dir=.
14229   for ac_exec_ext in '' $ac_executable_extensions; do
14230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14231     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14232        ac_prog_rejected=yes
14233        continue
14234      fi
14235     ac_cv_prog_CC="cc"
14236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14237     break 2
14238   fi
14239 done
14240 done
14241 IFS=$as_save_IFS
14242
14243 if test $ac_prog_rejected = yes; then
14244   # We found a bogon in the path, so make sure we never use it.
14245   set dummy $ac_cv_prog_CC
14246   shift
14247   if test $# != 0; then
14248     # We chose a different compiler from the bogus one.
14249     # However, it has the same basename, so the bogon will be chosen
14250     # first if we set CC to just the basename; use the full file name.
14251     shift
14252     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14253   fi
14254 fi
14255 fi
14256 fi
14257 CC=$ac_cv_prog_CC
14258 if test -n "$CC"; then
14259   { echo "$as_me:$LINENO: result: $CC" >&5
14260 echo "${ECHO_T}$CC" >&6; }
14261 else
14262   { echo "$as_me:$LINENO: result: no" >&5
14263 echo "${ECHO_T}no" >&6; }
14264 fi
14265
14266
14267 fi
14268 if test -z "$CC"; then
14269   if test -n "$ac_tool_prefix"; then
14270   for ac_prog in cl.exe
14271   do
14272     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14276 if test "${ac_cv_prog_CC+set}" = set; then
14277   echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279   if test -n "$CC"; then
14280   ac_cv_prog_CC="$CC" # Let the user override the test.
14281 else
14282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14283 for as_dir in $PATH
14284 do
14285   IFS=$as_save_IFS
14286   test -z "$as_dir" && as_dir=.
14287   for ac_exec_ext in '' $ac_executable_extensions; do
14288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14289     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14291     break 2
14292   fi
14293 done
14294 done
14295 IFS=$as_save_IFS
14296
14297 fi
14298 fi
14299 CC=$ac_cv_prog_CC
14300 if test -n "$CC"; then
14301   { echo "$as_me:$LINENO: result: $CC" >&5
14302 echo "${ECHO_T}$CC" >&6; }
14303 else
14304   { echo "$as_me:$LINENO: result: no" >&5
14305 echo "${ECHO_T}no" >&6; }
14306 fi
14307
14308
14309     test -n "$CC" && break
14310   done
14311 fi
14312 if test -z "$CC"; then
14313   ac_ct_CC=$CC
14314   for ac_prog in cl.exe
14315 do
14316   # Extract the first word of "$ac_prog", so it can be a program name with args.
14317 set dummy $ac_prog; ac_word=$2
14318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14321   echo $ECHO_N "(cached) $ECHO_C" >&6
14322 else
14323   if test -n "$ac_ct_CC"; then
14324   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14325 else
14326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14327 for as_dir in $PATH
14328 do
14329   IFS=$as_save_IFS
14330   test -z "$as_dir" && as_dir=.
14331   for ac_exec_ext in '' $ac_executable_extensions; do
14332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14333     ac_cv_prog_ac_ct_CC="$ac_prog"
14334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14335     break 2
14336   fi
14337 done
14338 done
14339 IFS=$as_save_IFS
14340
14341 fi
14342 fi
14343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14344 if test -n "$ac_ct_CC"; then
14345   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14346 echo "${ECHO_T}$ac_ct_CC" >&6; }
14347 else
14348   { echo "$as_me:$LINENO: result: no" >&5
14349 echo "${ECHO_T}no" >&6; }
14350 fi
14351
14352
14353   test -n "$ac_ct_CC" && break
14354 done
14355
14356   if test "x$ac_ct_CC" = x; then
14357     CC=""
14358   else
14359     case $cross_compiling:$ac_tool_warned in
14360 yes:)
14361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14362 whose name does not start with the host triplet.  If you think this
14363 configuration is useful to you, please write to autoconf@gnu.org." >&5
14364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14365 whose name does not start with the host triplet.  If you think this
14366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14367 ac_tool_warned=yes ;;
14368 esac
14369     CC=$ac_ct_CC
14370   fi
14371 fi
14372
14373 fi
14374
14375
14376 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14377 See \`config.log' for more details." >&5
14378 echo "$as_me: error: no acceptable C compiler found in \$PATH
14379 See \`config.log' for more details." >&2;}
14380    { (exit 1); exit 1; }; }
14381
14382 # Provide some information about the compiler.
14383 echo "$as_me:$LINENO: checking for C compiler version" >&5
14384 ac_compiler=`set X $ac_compile; echo $2`
14385 { (ac_try="$ac_compiler --version >&5"
14386 case "(($ac_try" in
14387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14388   *) ac_try_echo=$ac_try;;
14389 esac
14390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14391   (eval "$ac_compiler --version >&5") 2>&5
14392   ac_status=$?
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); }
14395 { (ac_try="$ac_compiler -v >&5"
14396 case "(($ac_try" in
14397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14398   *) ac_try_echo=$ac_try;;
14399 esac
14400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14401   (eval "$ac_compiler -v >&5") 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); }
14405 { (ac_try="$ac_compiler -V >&5"
14406 case "(($ac_try" in
14407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408   *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411   (eval "$ac_compiler -V >&5") 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }
14415
14416 cat >conftest.$ac_ext <<_ACEOF
14417 /* confdefs.h.  */
14418 _ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h.  */
14422
14423 int
14424 main ()
14425 {
14426
14427   ;
14428   return 0;
14429 }
14430 _ACEOF
14431 ac_clean_files_save=$ac_clean_files
14432 ac_clean_files="$ac_clean_files a.out a.exe b.out"
14433 # Try to create an executable without -o first, disregard a.out.
14434 # It will help us diagnose broken compilers, and finding out an intuition
14435 # of exeext.
14436 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14437 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
14438 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14439 #
14440 # List of possible output files, starting from the most likely.
14441 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
14442 # only as a last resort.  b.out is created by i960 compilers.
14443 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
14444 #
14445 # The IRIX 6 linker writes into existing files which may not be
14446 # executable, retaining their permissions.  Remove them first so a
14447 # subsequent execution test works.
14448 ac_rmfiles=
14449 for ac_file in $ac_files
14450 do
14451   case $ac_file in
14452     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14453     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
14454   esac
14455 done
14456 rm -f $ac_rmfiles
14457
14458 if { (ac_try="$ac_link_default"
14459 case "(($ac_try" in
14460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461   *) ac_try_echo=$ac_try;;
14462 esac
14463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464   (eval "$ac_link_default") 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; then
14468   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
14469 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
14470 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
14471 # so that the user can short-circuit this test for compilers unknown to
14472 # Autoconf.
14473 for ac_file in $ac_files ''
14474 do
14475   test -f "$ac_file" || continue
14476   case $ac_file in
14477     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
14478         ;;
14479     [ab].out )
14480         # We found the default executable, but exeext='' is most
14481         # certainly right.
14482         break;;
14483     *.* )
14484         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
14485         then :; else
14486            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14487         fi
14488         # We set ac_cv_exeext here because the later test for it is not
14489         # safe: cross compilers may not add the suffix if given an `-o'
14490         # argument, so we may need to know it at that point already.
14491         # Even if this section looks crufty: it has the advantage of
14492         # actually working.
14493         break;;
14494     * )
14495         break;;
14496   esac
14497 done
14498 test "$ac_cv_exeext" = no && ac_cv_exeext=
14499
14500 else
14501   ac_file=''
14502 fi
14503
14504 { echo "$as_me:$LINENO: result: $ac_file" >&5
14505 echo "${ECHO_T}$ac_file" >&6; }
14506 if test -z "$ac_file"; then
14507   echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14509
14510 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
14511 See \`config.log' for more details." >&5
14512 echo "$as_me: error: C compiler cannot create executables
14513 See \`config.log' for more details." >&2;}
14514    { (exit 77); exit 77; }; }
14515 fi
14516
14517 ac_exeext=$ac_cv_exeext
14518
14519 # Check that the compiler produces executables we can run.  If not, either
14520 # the compiler is broken, or we cross compile.
14521 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14522 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
14523 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14524 # If not cross compiling, check that we can run a simple program.
14525 if test "$cross_compiling" != yes; then
14526   if { ac_try='./$ac_file'
14527   { (case "(($ac_try" in
14528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529   *) ac_try_echo=$ac_try;;
14530 esac
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532   (eval "$ac_try") 2>&5
14533   ac_status=$?
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); }; }; then
14536     cross_compiling=no
14537   else
14538     if test "$cross_compiling" = maybe; then
14539         cross_compiling=yes
14540     else
14541         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14542 If you meant to cross compile, use \`--host'.
14543 See \`config.log' for more details." >&5
14544 echo "$as_me: error: cannot run C compiled programs.
14545 If you meant to cross compile, use \`--host'.
14546 See \`config.log' for more details." >&2;}
14547    { (exit 1); exit 1; }; }
14548     fi
14549   fi
14550 fi
14551 { echo "$as_me:$LINENO: result: yes" >&5
14552 echo "${ECHO_T}yes" >&6; }
14553
14554 rm -f a.out a.exe conftest$ac_cv_exeext b.out
14555 ac_clean_files=$ac_clean_files_save
14556 # Check that the compiler produces executables we can run.  If not, either
14557 # the compiler is broken, or we cross compile.
14558 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14559 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
14560 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
14561 echo "${ECHO_T}$cross_compiling" >&6; }
14562
14563 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
14564 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
14565 if { (ac_try="$ac_link"
14566 case "(($ac_try" in
14567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568   *) ac_try_echo=$ac_try;;
14569 esac
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571   (eval "$ac_link") 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); }; then
14575   # If both `conftest.exe' and `conftest' are `present' (well, observable)
14576 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
14577 # work properly (i.e., refer to `conftest.exe'), while it won't with
14578 # `rm'.
14579 for ac_file in conftest.exe conftest conftest.*; do
14580   test -f "$ac_file" || continue
14581   case $ac_file in
14582     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
14583     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14584           break;;
14585     * ) break;;
14586   esac
14587 done
14588 else
14589   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14590 See \`config.log' for more details." >&5
14591 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14592 See \`config.log' for more details." >&2;}
14593    { (exit 1); exit 1; }; }
14594 fi
14595
14596 rm -f conftest$ac_cv_exeext
14597 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14598 echo "${ECHO_T}$ac_cv_exeext" >&6; }
14599
14600 rm -f conftest.$ac_ext
14601 EXEEXT=$ac_cv_exeext
14602 ac_exeext=$EXEEXT
14603 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
14604 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
14605 if test "${ac_cv_objext+set}" = set; then
14606   echo $ECHO_N "(cached) $ECHO_C" >&6
14607 else
14608   cat >conftest.$ac_ext <<_ACEOF
14609 /* confdefs.h.  */
14610 _ACEOF
14611 cat confdefs.h >>conftest.$ac_ext
14612 cat >>conftest.$ac_ext <<_ACEOF
14613 /* end confdefs.h.  */
14614
14615 int
14616 main ()
14617 {
14618
14619   ;
14620   return 0;
14621 }
14622 _ACEOF
14623 rm -f conftest.o conftest.obj
14624 if { (ac_try="$ac_compile"
14625 case "(($ac_try" in
14626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627   *) ac_try_echo=$ac_try;;
14628 esac
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630   (eval "$ac_compile") 2>&5
14631   ac_status=$?
14632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633   (exit $ac_status); }; then
14634   for ac_file in conftest.o conftest.obj conftest.*; do
14635   test -f "$ac_file" || continue;
14636   case $ac_file in
14637     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
14638     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14639        break;;
14640   esac
14641 done
14642 else
14643   echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14645
14646 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14647 See \`config.log' for more details." >&5
14648 echo "$as_me: error: cannot compute suffix of object files: cannot compile
14649 See \`config.log' for more details." >&2;}
14650    { (exit 1); exit 1; }; }
14651 fi
14652
14653 rm -f conftest.$ac_cv_objext conftest.$ac_ext
14654 fi
14655 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14656 echo "${ECHO_T}$ac_cv_objext" >&6; }
14657 OBJEXT=$ac_cv_objext
14658 ac_objext=$OBJEXT
14659 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14660 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
14661 if test "${ac_cv_c_compiler_gnu+set}" = set; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664   cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h.  */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h.  */
14670
14671 int
14672 main ()
14673 {
14674 #ifndef __GNUC__
14675        choke me
14676 #endif
14677
14678   ;
14679   return 0;
14680 }
14681 _ACEOF
14682 rm -f conftest.$ac_objext
14683 if { (ac_try="$ac_compile"
14684 case "(($ac_try" in
14685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686   *) ac_try_echo=$ac_try;;
14687 esac
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689   (eval "$ac_compile") 2>conftest.er1
14690   ac_status=$?
14691   grep -v '^ *+' conftest.er1 >conftest.err
14692   rm -f conftest.er1
14693   cat conftest.err >&5
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); } && {
14696          test -z "$ac_c_werror_flag" ||
14697          test ! -s conftest.err
14698        } && test -s conftest.$ac_objext; then
14699   ac_compiler_gnu=yes
14700 else
14701   echo "$as_me: failed program was:" >&5
14702 sed 's/^/| /' conftest.$ac_ext >&5
14703
14704         ac_compiler_gnu=no
14705 fi
14706
14707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14708 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14709
14710 fi
14711 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14712 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
14713 GCC=`test $ac_compiler_gnu = yes && echo yes`
14714 ac_test_CFLAGS=${CFLAGS+set}
14715 ac_save_CFLAGS=$CFLAGS
14716 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14717 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
14718 if test "${ac_cv_prog_cc_g+set}" = set; then
14719   echo $ECHO_N "(cached) $ECHO_C" >&6
14720 else
14721   ac_save_c_werror_flag=$ac_c_werror_flag
14722    ac_c_werror_flag=yes
14723    ac_cv_prog_cc_g=no
14724    CFLAGS="-g"
14725    cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h.  */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h.  */
14731
14732 int
14733 main ()
14734 {
14735
14736   ;
14737   return 0;
14738 }
14739 _ACEOF
14740 rm -f conftest.$ac_objext
14741 if { (ac_try="$ac_compile"
14742 case "(($ac_try" in
14743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14744   *) ac_try_echo=$ac_try;;
14745 esac
14746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747   (eval "$ac_compile") 2>conftest.er1
14748   ac_status=$?
14749   grep -v '^ *+' conftest.er1 >conftest.err
14750   rm -f conftest.er1
14751   cat conftest.err >&5
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); } && {
14754          test -z "$ac_c_werror_flag" ||
14755          test ! -s conftest.err
14756        } && test -s conftest.$ac_objext; then
14757   ac_cv_prog_cc_g=yes
14758 else
14759   echo "$as_me: failed program was:" >&5
14760 sed 's/^/| /' conftest.$ac_ext >&5
14761
14762         CFLAGS=""
14763       cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h.  */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h.  */
14769
14770 int
14771 main ()
14772 {
14773
14774   ;
14775   return 0;
14776 }
14777 _ACEOF
14778 rm -f conftest.$ac_objext
14779 if { (ac_try="$ac_compile"
14780 case "(($ac_try" in
14781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782   *) ac_try_echo=$ac_try;;
14783 esac
14784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785   (eval "$ac_compile") 2>conftest.er1
14786   ac_status=$?
14787   grep -v '^ *+' conftest.er1 >conftest.err
14788   rm -f conftest.er1
14789   cat conftest.err >&5
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); } && {
14792          test -z "$ac_c_werror_flag" ||
14793          test ! -s conftest.err
14794        } && test -s conftest.$ac_objext; then
14795   :
14796 else
14797   echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14799
14800         ac_c_werror_flag=$ac_save_c_werror_flag
14801          CFLAGS="-g"
14802          cat >conftest.$ac_ext <<_ACEOF
14803 /* confdefs.h.  */
14804 _ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h.  */
14808
14809 int
14810 main ()
14811 {
14812
14813   ;
14814   return 0;
14815 }
14816 _ACEOF
14817 rm -f conftest.$ac_objext
14818 if { (ac_try="$ac_compile"
14819 case "(($ac_try" in
14820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821   *) ac_try_echo=$ac_try;;
14822 esac
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824   (eval "$ac_compile") 2>conftest.er1
14825   ac_status=$?
14826   grep -v '^ *+' conftest.er1 >conftest.err
14827   rm -f conftest.er1
14828   cat conftest.err >&5
14829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830   (exit $ac_status); } && {
14831          test -z "$ac_c_werror_flag" ||
14832          test ! -s conftest.err
14833        } && test -s conftest.$ac_objext; then
14834   ac_cv_prog_cc_g=yes
14835 else
14836   echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14838
14839
14840 fi
14841
14842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14843 fi
14844
14845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14846 fi
14847
14848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14849    ac_c_werror_flag=$ac_save_c_werror_flag
14850 fi
14851 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14852 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
14853 if test "$ac_test_CFLAGS" = set; then
14854   CFLAGS=$ac_save_CFLAGS
14855 elif test $ac_cv_prog_cc_g = yes; then
14856   if test "$GCC" = yes; then
14857     CFLAGS="-g -O2"
14858   else
14859     CFLAGS="-g"
14860   fi
14861 else
14862   if test "$GCC" = yes; then
14863     CFLAGS="-O2"
14864   else
14865     CFLAGS=
14866   fi
14867 fi
14868 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
14869 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
14870 if test "${ac_cv_prog_cc_c89+set}" = set; then
14871   echo $ECHO_N "(cached) $ECHO_C" >&6
14872 else
14873   ac_cv_prog_cc_c89=no
14874 ac_save_CC=$CC
14875 cat >conftest.$ac_ext <<_ACEOF
14876 /* confdefs.h.  */
14877 _ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h.  */
14881 #include <stdarg.h>
14882 #include <stdio.h>
14883 #include <sys/types.h>
14884 #include <sys/stat.h>
14885 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14886 struct buf { int x; };
14887 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14888 static char *e (p, i)
14889      char **p;
14890      int i;
14891 {
14892   return p[i];
14893 }
14894 static char *f (char * (*g) (char **, int), char **p, ...)
14895 {
14896   char *s;
14897   va_list v;
14898   va_start (v,p);
14899   s = g (p, va_arg (v,int));
14900   va_end (v);
14901   return s;
14902 }
14903
14904 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
14905    function prototypes and stuff, but not '\xHH' hex character constants.
14906    These don't provoke an error unfortunately, instead are silently treated
14907    as 'x'.  The following induces an error, until -std is added to get
14908    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
14909    array size at least.  It's necessary to write '\x00'==0 to get something
14910    that's true only with -std.  */
14911 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14912
14913 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14914    inside strings and character constants.  */
14915 #define FOO(x) 'x'
14916 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14917
14918 int test (int i, double x);
14919 struct s1 {int (*f) (int a);};
14920 struct s2 {int (*f) (double a);};
14921 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14922 int argc;
14923 char **argv;
14924 int
14925 main ()
14926 {
14927 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14928   ;
14929   return 0;
14930 }
14931 _ACEOF
14932 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14933         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14934 do
14935   CC="$ac_save_CC $ac_arg"
14936   rm -f conftest.$ac_objext
14937 if { (ac_try="$ac_compile"
14938 case "(($ac_try" in
14939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940   *) ac_try_echo=$ac_try;;
14941 esac
14942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943   (eval "$ac_compile") 2>conftest.er1
14944   ac_status=$?
14945   grep -v '^ *+' conftest.er1 >conftest.err
14946   rm -f conftest.er1
14947   cat conftest.err >&5
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); } && {
14950          test -z "$ac_c_werror_flag" ||
14951          test ! -s conftest.err
14952        } && test -s conftest.$ac_objext; then
14953   ac_cv_prog_cc_c89=$ac_arg
14954 else
14955   echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14957
14958
14959 fi
14960
14961 rm -f core conftest.err conftest.$ac_objext
14962   test "x$ac_cv_prog_cc_c89" != "xno" && break
14963 done
14964 rm -f conftest.$ac_ext
14965 CC=$ac_save_CC
14966
14967 fi
14968 # AC_CACHE_VAL
14969 case "x$ac_cv_prog_cc_c89" in
14970   x)
14971     { echo "$as_me:$LINENO: result: none needed" >&5
14972 echo "${ECHO_T}none needed" >&6; } ;;
14973   xno)
14974     { echo "$as_me:$LINENO: result: unsupported" >&5
14975 echo "${ECHO_T}unsupported" >&6; } ;;
14976   *)
14977     CC="$CC $ac_cv_prog_cc_c89"
14978     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
14979 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
14980 esac
14981
14982
14983 ac_ext=c
14984 ac_cpp='$CPP $CPPFLAGS'
14985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14988
14989
14990
14991
14992     ac_ext=c
14993 ac_cpp='$CPP $CPPFLAGS'
14994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14997
14998     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
14999 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
15000 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
15001   echo $ECHO_N "(cached) $ECHO_C" >&6
15002 else
15003   cat >conftest.$ac_ext <<_ACEOF
15004 /* confdefs.h.  */
15005 _ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h.  */
15009
15010 int
15011 main ()
15012 {
15013
15014              #ifndef __INTEL_COMPILER
15015                 choke me
15016              #endif
15017
15018   ;
15019   return 0;
15020 }
15021 _ACEOF
15022 rm -f conftest.$ac_objext
15023 if { (ac_try="$ac_compile"
15024 case "(($ac_try" in
15025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026   *) ac_try_echo=$ac_try;;
15027 esac
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029   (eval "$ac_compile") 2>conftest.er1
15030   ac_status=$?
15031   grep -v '^ *+' conftest.er1 >conftest.err
15032   rm -f conftest.er1
15033   cat conftest.err >&5
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); } && {
15036          test -z "$ac_c_werror_flag" ||
15037          test ! -s conftest.err
15038        } && test -s conftest.$ac_objext; then
15039   bakefile_cv_c_compiler___INTEL_COMPILER=yes
15040 else
15041   echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15043
15044         bakefile_cv_c_compiler___INTEL_COMPILER=no
15045
15046 fi
15047
15048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049
15050
15051 fi
15052 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
15053 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
15054     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
15055         :; INTELCC=yes
15056     else
15057         :;
15058     fi
15059     ac_ext=c
15060 ac_cpp='$CPP $CPPFLAGS'
15061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15064
15065
15066
15067
15068         if test "$INTELCC" = "yes"; then
15069
15070
15071     ac_ext=c
15072 ac_cpp='$CPP $CPPFLAGS'
15073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15076
15077     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v8 or later" >&5
15078 echo $ECHO_N "checking whether we are using Intel C compiler v8 or later... $ECHO_C" >&6; }
15079 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+set}" = set; then
15080   echo $ECHO_N "(cached) $ECHO_C" >&6
15081 else
15082   cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h.  */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h.  */
15088
15089 int
15090 main ()
15091 {
15092
15093              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
15094                 choke me
15095              #endif
15096
15097   ;
15098   return 0;
15099 }
15100 _ACEOF
15101 rm -f conftest.$ac_objext
15102 if { (ac_try="$ac_compile"
15103 case "(($ac_try" in
15104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105   *) ac_try_echo=$ac_try;;
15106 esac
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108   (eval "$ac_compile") 2>conftest.er1
15109   ac_status=$?
15110   grep -v '^ *+' conftest.er1 >conftest.err
15111   rm -f conftest.er1
15112   cat conftest.err >&5
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); } && {
15115          test -z "$ac_c_werror_flag" ||
15116          test ! -s conftest.err
15117        } && test -s conftest.$ac_objext; then
15118   bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes
15119 else
15120   echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15122
15123         bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no
15124
15125 fi
15126
15127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15128
15129
15130 fi
15131 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5
15132 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; }
15133     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
15134         :; INTELCC8=yes
15135     else
15136         :;
15137     fi
15138     ac_ext=c
15139 ac_cpp='$CPP $CPPFLAGS'
15140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15143
15144
15145
15146
15147
15148     ac_ext=c
15149 ac_cpp='$CPP $CPPFLAGS'
15150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15153
15154     { echo "$as_me:$LINENO: checking whether we are using Intel C compiler v10 or later" >&5
15155 echo $ECHO_N "checking whether we are using Intel C compiler v10 or later... $ECHO_C" >&6; }
15156 if test "${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
15157   echo $ECHO_N "(cached) $ECHO_C" >&6
15158 else
15159   cat >conftest.$ac_ext <<_ACEOF
15160 /* confdefs.h.  */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h.  */
15165
15166 int
15167 main ()
15168 {
15169
15170              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
15171                 choke me
15172              #endif
15173
15174   ;
15175   return 0;
15176 }
15177 _ACEOF
15178 rm -f conftest.$ac_objext
15179 if { (ac_try="$ac_compile"
15180 case "(($ac_try" in
15181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182   *) ac_try_echo=$ac_try;;
15183 esac
15184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185   (eval "$ac_compile") 2>conftest.er1
15186   ac_status=$?
15187   grep -v '^ *+' conftest.er1 >conftest.err
15188   rm -f conftest.er1
15189   cat conftest.err >&5
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); } && {
15192          test -z "$ac_c_werror_flag" ||
15193          test ! -s conftest.err
15194        } && test -s conftest.$ac_objext; then
15195   bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes
15196 else
15197   echo "$as_me: failed program was:" >&5
15198 sed 's/^/| /' conftest.$ac_ext >&5
15199
15200         bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no
15201
15202 fi
15203
15204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15205
15206
15207 fi
15208 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5
15209 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; }
15210     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
15211         :; INTELCC10=yes
15212     else
15213         :;
15214     fi
15215     ac_ext=c
15216 ac_cpp='$CPP $CPPFLAGS'
15217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15220
15221
15222
15223     fi
15224
15225         if test "x$GCC" != "xyes"; then
15226         if test "xCC" = "xC"; then
15227             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
15228 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
15229 if test "${bakefile_cv_c_exto+set}" = set; then
15230   echo $ECHO_N "(cached) $ECHO_C" >&6
15231 else
15232   cat >conftest.$ac_ext <<_ACEOF
15233 /* confdefs.h.  */
15234 _ACEOF
15235 cat confdefs.h >>conftest.$ac_ext
15236 cat >>conftest.$ac_ext <<_ACEOF
15237 /* end confdefs.h.  */
15238
15239 int
15240 main ()
15241 {
15242
15243   ;
15244   return 0;
15245 }
15246 _ACEOF
15247 rm -f conftest.$ac_objext conftest.$ac_ext.o
15248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15249   (eval $ac_compile) 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); }; then
15253   for ac_file in `(ls conftest.* 2>/dev/null)`; do
15254     case $ac_file in
15255         conftest.$ac_ext.o)
15256             bakefile_cv_c_exto="-ext o"
15257             ;;
15258         *)
15259             ;;
15260     esac
15261 done
15262 else
15263   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
15264 See \`config.log' for more details." >&5
15265 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
15266 See \`config.log' for more details." >&2;}
15267    { (exit 1); exit 1; }; }
15268
15269 fi
15270
15271 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
15272
15273 fi
15274 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
15275 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
15276 if test "x$bakefile_cv_c_exto" '!=' "x"; then
15277     if test "c" = "c"; then
15278         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
15279     fi
15280     if test "c" = "cxx"; then
15281         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
15282     fi
15283 fi
15284
15285             if test "x$bakefile_cv_c_exto" '!=' "x"; then
15286                 unset ac_cv_prog_cc_g
15287                 ac_test_CFLAGS=${CFLAGS+set}
15288 ac_save_CFLAGS=$CFLAGS
15289 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15290 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
15291 if test "${ac_cv_prog_cc_g+set}" = set; then
15292   echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294   ac_save_c_werror_flag=$ac_c_werror_flag
15295    ac_c_werror_flag=yes
15296    ac_cv_prog_cc_g=no
15297    CFLAGS="-g"
15298    cat >conftest.$ac_ext <<_ACEOF
15299 /* confdefs.h.  */
15300 _ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h.  */
15304
15305 int
15306 main ()
15307 {
15308
15309   ;
15310   return 0;
15311 }
15312 _ACEOF
15313 rm -f conftest.$ac_objext
15314 if { (ac_try="$ac_compile"
15315 case "(($ac_try" in
15316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317   *) ac_try_echo=$ac_try;;
15318 esac
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320   (eval "$ac_compile") 2>conftest.er1
15321   ac_status=$?
15322   grep -v '^ *+' conftest.er1 >conftest.err
15323   rm -f conftest.er1
15324   cat conftest.err >&5
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); } && {
15327          test -z "$ac_c_werror_flag" ||
15328          test ! -s conftest.err
15329        } && test -s conftest.$ac_objext; then
15330   ac_cv_prog_cc_g=yes
15331 else
15332   echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15334
15335         CFLAGS=""
15336       cat >conftest.$ac_ext <<_ACEOF
15337 /* confdefs.h.  */
15338 _ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h.  */
15342
15343 int
15344 main ()
15345 {
15346
15347   ;
15348   return 0;
15349 }
15350 _ACEOF
15351 rm -f conftest.$ac_objext
15352 if { (ac_try="$ac_compile"
15353 case "(($ac_try" in
15354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355   *) ac_try_echo=$ac_try;;
15356 esac
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358   (eval "$ac_compile") 2>conftest.er1
15359   ac_status=$?
15360   grep -v '^ *+' conftest.er1 >conftest.err
15361   rm -f conftest.er1
15362   cat conftest.err >&5
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); } && {
15365          test -z "$ac_c_werror_flag" ||
15366          test ! -s conftest.err
15367        } && test -s conftest.$ac_objext; then
15368   :
15369 else
15370   echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15372
15373         ac_c_werror_flag=$ac_save_c_werror_flag
15374          CFLAGS="-g"
15375          cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h.  */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h.  */
15381
15382 int
15383 main ()
15384 {
15385
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 rm -f conftest.$ac_objext
15391 if { (ac_try="$ac_compile"
15392 case "(($ac_try" in
15393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394   *) ac_try_echo=$ac_try;;
15395 esac
15396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15397   (eval "$ac_compile") 2>conftest.er1
15398   ac_status=$?
15399   grep -v '^ *+' conftest.er1 >conftest.err
15400   rm -f conftest.er1
15401   cat conftest.err >&5
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); } && {
15404          test -z "$ac_c_werror_flag" ||
15405          test ! -s conftest.err
15406        } && test -s conftest.$ac_objext; then
15407   ac_cv_prog_cc_g=yes
15408 else
15409   echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412
15413 fi
15414
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 fi
15417
15418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419 fi
15420
15421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15422    ac_c_werror_flag=$ac_save_c_werror_flag
15423 fi
15424 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15425 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
15426 if test "$ac_test_CFLAGS" = set; then
15427   CFLAGS=$ac_save_CFLAGS
15428 elif test $ac_cv_prog_cc_g = yes; then
15429   if test "$GCC" = yes; then
15430     CFLAGS="-g -O2"
15431   else
15432     CFLAGS="-g"
15433   fi
15434 else
15435   if test "$GCC" = yes; then
15436     CFLAGS="-O2"
15437   else
15438     CFLAGS=
15439   fi
15440 fi
15441             fi
15442         fi
15443
15444                         case `uname -s` in
15445             AIX*)
15446
15447
15448     ac_ext=c
15449 ac_cpp='$CPP $CPPFLAGS'
15450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15453
15454     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15455 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15456 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15457   echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459   cat >conftest.$ac_ext <<_ACEOF
15460 /* confdefs.h.  */
15461 _ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h.  */
15465
15466 int
15467 main ()
15468 {
15469
15470              #ifndef __xlC__
15471                 choke me
15472              #endif
15473
15474   ;
15475   return 0;
15476 }
15477 _ACEOF
15478 rm -f conftest.$ac_objext
15479 if { (ac_try="$ac_compile"
15480 case "(($ac_try" in
15481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15482   *) ac_try_echo=$ac_try;;
15483 esac
15484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15485   (eval "$ac_compile") 2>conftest.er1
15486   ac_status=$?
15487   grep -v '^ *+' conftest.er1 >conftest.err
15488   rm -f conftest.er1
15489   cat conftest.err >&5
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); } && {
15492          test -z "$ac_c_werror_flag" ||
15493          test ! -s conftest.err
15494        } && test -s conftest.$ac_objext; then
15495   bakefile_cv_c_compiler___xlC__=yes
15496 else
15497   echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15499
15500         bakefile_cv_c_compiler___xlC__=no
15501
15502 fi
15503
15504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505
15506
15507 fi
15508 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15509 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15510     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15511         :; XLCC=yes
15512     else
15513         :;
15514     fi
15515     ac_ext=c
15516 ac_cpp='$CPP $CPPFLAGS'
15517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15520
15521
15522
15523                 ;;
15524
15525             Darwin)
15526
15527
15528     ac_ext=c
15529 ac_cpp='$CPP $CPPFLAGS'
15530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15533
15534     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
15535 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
15536 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
15537   echo $ECHO_N "(cached) $ECHO_C" >&6
15538 else
15539   cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h.  */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h.  */
15545
15546 int
15547 main ()
15548 {
15549
15550              #ifndef __MWERKS__
15551                 choke me
15552              #endif
15553
15554   ;
15555   return 0;
15556 }
15557 _ACEOF
15558 rm -f conftest.$ac_objext
15559 if { (ac_try="$ac_compile"
15560 case "(($ac_try" in
15561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562   *) ac_try_echo=$ac_try;;
15563 esac
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565   (eval "$ac_compile") 2>conftest.er1
15566   ac_status=$?
15567   grep -v '^ *+' conftest.er1 >conftest.err
15568   rm -f conftest.er1
15569   cat conftest.err >&5
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); } && {
15572          test -z "$ac_c_werror_flag" ||
15573          test ! -s conftest.err
15574        } && test -s conftest.$ac_objext; then
15575   bakefile_cv_c_compiler___MWERKS__=yes
15576 else
15577   echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15579
15580         bakefile_cv_c_compiler___MWERKS__=no
15581
15582 fi
15583
15584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15585
15586
15587 fi
15588 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
15589 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
15590     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
15591         :; MWCC=yes
15592     else
15593         :;
15594     fi
15595     ac_ext=c
15596 ac_cpp='$CPP $CPPFLAGS'
15597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15600
15601
15602
15603                 if test "$MWCC" != "yes"; then
15604
15605
15606     ac_ext=c
15607 ac_cpp='$CPP $CPPFLAGS'
15608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15611
15612     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
15613 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
15614 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
15615   echo $ECHO_N "(cached) $ECHO_C" >&6
15616 else
15617   cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h.  */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h.  */
15623
15624 int
15625 main ()
15626 {
15627
15628              #ifndef __xlC__
15629                 choke me
15630              #endif
15631
15632   ;
15633   return 0;
15634 }
15635 _ACEOF
15636 rm -f conftest.$ac_objext
15637 if { (ac_try="$ac_compile"
15638 case "(($ac_try" in
15639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640   *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643   (eval "$ac_compile") 2>conftest.er1
15644   ac_status=$?
15645   grep -v '^ *+' conftest.er1 >conftest.err
15646   rm -f conftest.er1
15647   cat conftest.err >&5
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); } && {
15650          test -z "$ac_c_werror_flag" ||
15651          test ! -s conftest.err
15652        } && test -s conftest.$ac_objext; then
15653   bakefile_cv_c_compiler___xlC__=yes
15654 else
15655   echo "$as_me: failed program was:" >&5
15656 sed 's/^/| /' conftest.$ac_ext >&5
15657
15658         bakefile_cv_c_compiler___xlC__=no
15659
15660 fi
15661
15662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15663
15664
15665 fi
15666 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
15667 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
15668     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
15669         :; XLCC=yes
15670     else
15671         :;
15672     fi
15673     ac_ext=c
15674 ac_cpp='$CPP $CPPFLAGS'
15675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15678
15679
15680
15681                 fi
15682                 ;;
15683
15684             IRIX*)
15685
15686
15687     ac_ext=c
15688 ac_cpp='$CPP $CPPFLAGS'
15689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15692
15693     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
15694 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
15695 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
15696   echo $ECHO_N "(cached) $ECHO_C" >&6
15697 else
15698   cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h.  */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h.  */
15704
15705 int
15706 main ()
15707 {
15708
15709              #ifndef _SGI_COMPILER_VERSION
15710                 choke me
15711              #endif
15712
15713   ;
15714   return 0;
15715 }
15716 _ACEOF
15717 rm -f conftest.$ac_objext
15718 if { (ac_try="$ac_compile"
15719 case "(($ac_try" in
15720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721   *) ac_try_echo=$ac_try;;
15722 esac
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724   (eval "$ac_compile") 2>conftest.er1
15725   ac_status=$?
15726   grep -v '^ *+' conftest.er1 >conftest.err
15727   rm -f conftest.er1
15728   cat conftest.err >&5
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); } && {
15731          test -z "$ac_c_werror_flag" ||
15732          test ! -s conftest.err
15733        } && test -s conftest.$ac_objext; then
15734   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
15735 else
15736   echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15738
15739         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
15740
15741 fi
15742
15743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15744
15745
15746 fi
15747 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
15748 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
15749     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
15750         :; SGICC=yes
15751     else
15752         :;
15753     fi
15754     ac_ext=c
15755 ac_cpp='$CPP $CPPFLAGS'
15756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15759
15760
15761
15762                 ;;
15763
15764             Linux*)
15765                                                 if test "$INTELCC" != "yes"; then
15766
15767
15768     ac_ext=c
15769 ac_cpp='$CPP $CPPFLAGS'
15770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15773
15774     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
15775 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
15776 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
15777   echo $ECHO_N "(cached) $ECHO_C" >&6
15778 else
15779   cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h.  */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h.  */
15785
15786 int
15787 main ()
15788 {
15789
15790              #ifndef __SUNPRO_C
15791                 choke me
15792              #endif
15793
15794   ;
15795   return 0;
15796 }
15797 _ACEOF
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802   *) ac_try_echo=$ac_try;;
15803 esac
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805   (eval "$ac_compile") 2>conftest.er1
15806   ac_status=$?
15807   grep -v '^ *+' conftest.er1 >conftest.err
15808   rm -f conftest.er1
15809   cat conftest.err >&5
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); } && {
15812          test -z "$ac_c_werror_flag" ||
15813          test ! -s conftest.err
15814        } && test -s conftest.$ac_objext; then
15815   bakefile_cv_c_compiler___SUNPRO_C=yes
15816 else
15817   echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15819
15820         bakefile_cv_c_compiler___SUNPRO_C=no
15821
15822 fi
15823
15824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825
15826
15827 fi
15828 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
15829 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
15830     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
15831         :; SUNCC=yes
15832     else
15833         :;
15834     fi
15835     ac_ext=c
15836 ac_cpp='$CPP $CPPFLAGS'
15837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15840
15841
15842
15843                 fi
15844                 ;;
15845
15846             HP-UX*)
15847
15848
15849     ac_ext=c
15850 ac_cpp='$CPP $CPPFLAGS'
15851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15854
15855     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
15856 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
15857 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
15858   echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15860   cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h.  */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h.  */
15866
15867 int
15868 main ()
15869 {
15870
15871              #ifndef __HP_cc
15872                 choke me
15873              #endif
15874
15875   ;
15876   return 0;
15877 }
15878 _ACEOF
15879 rm -f conftest.$ac_objext
15880 if { (ac_try="$ac_compile"
15881 case "(($ac_try" in
15882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883   *) ac_try_echo=$ac_try;;
15884 esac
15885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15886   (eval "$ac_compile") 2>conftest.er1
15887   ac_status=$?
15888   grep -v '^ *+' conftest.er1 >conftest.err
15889   rm -f conftest.er1
15890   cat conftest.err >&5
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); } && {
15893          test -z "$ac_c_werror_flag" ||
15894          test ! -s conftest.err
15895        } && test -s conftest.$ac_objext; then
15896   bakefile_cv_c_compiler___HP_cc=yes
15897 else
15898   echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15900
15901         bakefile_cv_c_compiler___HP_cc=no
15902
15903 fi
15904
15905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15906
15907
15908 fi
15909 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
15910 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
15911     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
15912         :; HPCC=yes
15913     else
15914         :;
15915     fi
15916     ac_ext=c
15917 ac_cpp='$CPP $CPPFLAGS'
15918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15921
15922
15923
15924                 ;;
15925
15926             OSF1)
15927
15928
15929     ac_ext=c
15930 ac_cpp='$CPP $CPPFLAGS'
15931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15934
15935     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
15936 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
15937 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
15938   echo $ECHO_N "(cached) $ECHO_C" >&6
15939 else
15940   cat >conftest.$ac_ext <<_ACEOF
15941 /* confdefs.h.  */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h.  */
15946
15947 int
15948 main ()
15949 {
15950
15951              #ifndef __DECC
15952                 choke me
15953              #endif
15954
15955   ;
15956   return 0;
15957 }
15958 _ACEOF
15959 rm -f conftest.$ac_objext
15960 if { (ac_try="$ac_compile"
15961 case "(($ac_try" in
15962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963   *) ac_try_echo=$ac_try;;
15964 esac
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966   (eval "$ac_compile") 2>conftest.er1
15967   ac_status=$?
15968   grep -v '^ *+' conftest.er1 >conftest.err
15969   rm -f conftest.er1
15970   cat conftest.err >&5
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); } && {
15973          test -z "$ac_c_werror_flag" ||
15974          test ! -s conftest.err
15975        } && test -s conftest.$ac_objext; then
15976   bakefile_cv_c_compiler___DECC=yes
15977 else
15978   echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15980
15981         bakefile_cv_c_compiler___DECC=no
15982
15983 fi
15984
15985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15986
15987
15988 fi
15989 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
15990 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
15991     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
15992         :; COMPAQCC=yes
15993     else
15994         :;
15995     fi
15996     ac_ext=c
15997 ac_cpp='$CPP $CPPFLAGS'
15998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16001
16002
16003
16004                 ;;
16005
16006             SunOS)
16007
16008
16009     ac_ext=c
16010 ac_cpp='$CPP $CPPFLAGS'
16011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16014
16015     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
16016 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
16017 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
16018   echo $ECHO_N "(cached) $ECHO_C" >&6
16019 else
16020   cat >conftest.$ac_ext <<_ACEOF
16021 /* confdefs.h.  */
16022 _ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h.  */
16026
16027 int
16028 main ()
16029 {
16030
16031              #ifndef __SUNPRO_C
16032                 choke me
16033              #endif
16034
16035   ;
16036   return 0;
16037 }
16038 _ACEOF
16039 rm -f conftest.$ac_objext
16040 if { (ac_try="$ac_compile"
16041 case "(($ac_try" in
16042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043   *) ac_try_echo=$ac_try;;
16044 esac
16045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046   (eval "$ac_compile") 2>conftest.er1
16047   ac_status=$?
16048   grep -v '^ *+' conftest.er1 >conftest.err
16049   rm -f conftest.er1
16050   cat conftest.err >&5
16051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052   (exit $ac_status); } && {
16053          test -z "$ac_c_werror_flag" ||
16054          test ! -s conftest.err
16055        } && test -s conftest.$ac_objext; then
16056   bakefile_cv_c_compiler___SUNPRO_C=yes
16057 else
16058   echo "$as_me: failed program was:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16060
16061         bakefile_cv_c_compiler___SUNPRO_C=no
16062
16063 fi
16064
16065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16066
16067
16068 fi
16069 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
16070 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
16071     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
16072         :; SUNCC=yes
16073     else
16074         :;
16075     fi
16076     ac_ext=c
16077 ac_cpp='$CPP $CPPFLAGS'
16078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16081
16082
16083
16084                 ;;
16085         esac
16086     fi
16087
16088
16089
16090 ac_ext=c
16091 ac_cpp='$CPP $CPPFLAGS'
16092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16095 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16096 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
16097 # On Suns, sometimes $CPP names a directory.
16098 if test -n "$CPP" && test -d "$CPP"; then
16099   CPP=
16100 fi
16101 if test -z "$CPP"; then
16102   if test "${ac_cv_prog_CPP+set}" = set; then
16103   echo $ECHO_N "(cached) $ECHO_C" >&6
16104 else
16105       # Double quotes because CPP needs to be expanded
16106     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16107     do
16108       ac_preproc_ok=false
16109 for ac_c_preproc_warn_flag in '' yes
16110 do
16111   # Use a header file that comes with gcc, so configuring glibc
16112   # with a fresh cross-compiler works.
16113   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16114   # <limits.h> exists even on freestanding compilers.
16115   # On the NeXT, cc -E runs the code through the compiler's parser,
16116   # not just through cpp. "Syntax error" is here to catch this case.
16117   cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h.  */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h.  */
16123 #ifdef __STDC__
16124 # include <limits.h>
16125 #else
16126 # include <assert.h>
16127 #endif
16128                      Syntax error
16129 _ACEOF
16130 if { (ac_try="$ac_cpp conftest.$ac_ext"
16131 case "(($ac_try" in
16132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16133   *) ac_try_echo=$ac_try;;
16134 esac
16135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16136   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16137   ac_status=$?
16138   grep -v '^ *+' conftest.er1 >conftest.err
16139   rm -f conftest.er1
16140   cat conftest.err >&5
16141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142   (exit $ac_status); } >/dev/null && {
16143          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16144          test ! -s conftest.err
16145        }; then
16146   :
16147 else
16148   echo "$as_me: failed program was:" >&5
16149 sed 's/^/| /' conftest.$ac_ext >&5
16150
16151   # Broken: fails on valid input.
16152 continue
16153 fi
16154
16155 rm -f conftest.err conftest.$ac_ext
16156
16157   # OK, works on sane cases.  Now check whether nonexistent headers
16158   # can be detected and how.
16159   cat >conftest.$ac_ext <<_ACEOF
16160 /* confdefs.h.  */
16161 _ACEOF
16162 cat confdefs.h >>conftest.$ac_ext
16163 cat >>conftest.$ac_ext <<_ACEOF
16164 /* end confdefs.h.  */
16165 #include <ac_nonexistent.h>
16166 _ACEOF
16167 if { (ac_try="$ac_cpp conftest.$ac_ext"
16168 case "(($ac_try" in
16169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16170   *) ac_try_echo=$ac_try;;
16171 esac
16172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16173   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16174   ac_status=$?
16175   grep -v '^ *+' conftest.er1 >conftest.err
16176   rm -f conftest.er1
16177   cat conftest.err >&5
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); } >/dev/null && {
16180          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16181          test ! -s conftest.err
16182        }; then
16183   # Broken: success on invalid input.
16184 continue
16185 else
16186   echo "$as_me: failed program was:" >&5
16187 sed 's/^/| /' conftest.$ac_ext >&5
16188
16189   # Passes both tests.
16190 ac_preproc_ok=:
16191 break
16192 fi
16193
16194 rm -f conftest.err conftest.$ac_ext
16195
16196 done
16197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16198 rm -f conftest.err conftest.$ac_ext
16199 if $ac_preproc_ok; then
16200   break
16201 fi
16202
16203     done
16204     ac_cv_prog_CPP=$CPP
16205
16206 fi
16207   CPP=$ac_cv_prog_CPP
16208 else
16209   ac_cv_prog_CPP=$CPP
16210 fi
16211 { echo "$as_me:$LINENO: result: $CPP" >&5
16212 echo "${ECHO_T}$CPP" >&6; }
16213 ac_preproc_ok=false
16214 for ac_c_preproc_warn_flag in '' yes
16215 do
16216   # Use a header file that comes with gcc, so configuring glibc
16217   # with a fresh cross-compiler works.
16218   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16219   # <limits.h> exists even on freestanding compilers.
16220   # On the NeXT, cc -E runs the code through the compiler's parser,
16221   # not just through cpp. "Syntax error" is here to catch this case.
16222   cat >conftest.$ac_ext <<_ACEOF
16223 /* confdefs.h.  */
16224 _ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h.  */
16228 #ifdef __STDC__
16229 # include <limits.h>
16230 #else
16231 # include <assert.h>
16232 #endif
16233                      Syntax error
16234 _ACEOF
16235 if { (ac_try="$ac_cpp conftest.$ac_ext"
16236 case "(($ac_try" in
16237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238   *) ac_try_echo=$ac_try;;
16239 esac
16240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16242   ac_status=$?
16243   grep -v '^ *+' conftest.er1 >conftest.err
16244   rm -f conftest.er1
16245   cat conftest.err >&5
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); } >/dev/null && {
16248          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16249          test ! -s conftest.err
16250        }; then
16251   :
16252 else
16253   echo "$as_me: failed program was:" >&5
16254 sed 's/^/| /' conftest.$ac_ext >&5
16255
16256   # Broken: fails on valid input.
16257 continue
16258 fi
16259
16260 rm -f conftest.err conftest.$ac_ext
16261
16262   # OK, works on sane cases.  Now check whether nonexistent headers
16263   # can be detected and how.
16264   cat >conftest.$ac_ext <<_ACEOF
16265 /* confdefs.h.  */
16266 _ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h.  */
16270 #include <ac_nonexistent.h>
16271 _ACEOF
16272 if { (ac_try="$ac_cpp conftest.$ac_ext"
16273 case "(($ac_try" in
16274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275   *) ac_try_echo=$ac_try;;
16276 esac
16277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16279   ac_status=$?
16280   grep -v '^ *+' conftest.er1 >conftest.err
16281   rm -f conftest.er1
16282   cat conftest.err >&5
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); } >/dev/null && {
16285          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16286          test ! -s conftest.err
16287        }; then
16288   # Broken: success on invalid input.
16289 continue
16290 else
16291   echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.$ac_ext >&5
16293
16294   # Passes both tests.
16295 ac_preproc_ok=:
16296 break
16297 fi
16298
16299 rm -f conftest.err conftest.$ac_ext
16300
16301 done
16302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16303 rm -f conftest.err conftest.$ac_ext
16304 if $ac_preproc_ok; then
16305   :
16306 else
16307   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16308 See \`config.log' for more details." >&5
16309 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16310 See \`config.log' for more details." >&2;}
16311    { (exit 1); exit 1; }; }
16312 fi
16313
16314 ac_ext=c
16315 ac_cpp='$CPP $CPPFLAGS'
16316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16319
16320
16321 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
16322 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
16323 if test "${ac_cv_path_GREP+set}" = set; then
16324   echo $ECHO_N "(cached) $ECHO_C" >&6
16325 else
16326   # Extract the first word of "grep ggrep" to use in msg output
16327 if test -z "$GREP"; then
16328 set dummy grep ggrep; ac_prog_name=$2
16329 if test "${ac_cv_path_GREP+set}" = set; then
16330   echo $ECHO_N "(cached) $ECHO_C" >&6
16331 else
16332   ac_path_GREP_found=false
16333 # Loop through the user's path and test for each of PROGNAME-LIST
16334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16335 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16336 do
16337   IFS=$as_save_IFS
16338   test -z "$as_dir" && as_dir=.
16339   for ac_prog in grep ggrep; do
16340   for ac_exec_ext in '' $ac_executable_extensions; do
16341     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16342     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
16343     # Check for GNU ac_path_GREP and select it if it is found.
16344   # Check for GNU $ac_path_GREP
16345 case `"$ac_path_GREP" --version 2>&1` in
16346 *GNU*)
16347   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16348 *)
16349   ac_count=0
16350   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16351   while :
16352   do
16353     cat "conftest.in" "conftest.in" >"conftest.tmp"
16354     mv "conftest.tmp" "conftest.in"
16355     cp "conftest.in" "conftest.nl"
16356     echo 'GREP' >> "conftest.nl"
16357     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16358     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16359     ac_count=`expr $ac_count + 1`
16360     if test $ac_count -gt ${ac_path_GREP_max-0}; then
16361       # Best one so far, save it but keep looking for a better one
16362       ac_cv_path_GREP="$ac_path_GREP"
16363       ac_path_GREP_max=$ac_count
16364     fi
16365     # 10*(2^10) chars as input seems more than enough
16366     test $ac_count -gt 10 && break
16367   done
16368   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16369 esac
16370
16371
16372     $ac_path_GREP_found && break 3
16373   done
16374 done
16375
16376 done
16377 IFS=$as_save_IFS
16378
16379
16380 fi
16381
16382 GREP="$ac_cv_path_GREP"
16383 if test -z "$GREP"; then
16384   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16385 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16386    { (exit 1); exit 1; }; }
16387 fi
16388
16389 else
16390   ac_cv_path_GREP=$GREP
16391 fi
16392
16393
16394 fi
16395 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
16396 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
16397  GREP="$ac_cv_path_GREP"
16398
16399
16400 { echo "$as_me:$LINENO: checking for egrep" >&5
16401 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
16402 if test "${ac_cv_path_EGREP+set}" = set; then
16403   echo $ECHO_N "(cached) $ECHO_C" >&6
16404 else
16405   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
16406    then ac_cv_path_EGREP="$GREP -E"
16407    else
16408      # Extract the first word of "egrep" to use in msg output
16409 if test -z "$EGREP"; then
16410 set dummy egrep; ac_prog_name=$2
16411 if test "${ac_cv_path_EGREP+set}" = set; then
16412   echo $ECHO_N "(cached) $ECHO_C" >&6
16413 else
16414   ac_path_EGREP_found=false
16415 # Loop through the user's path and test for each of PROGNAME-LIST
16416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16417 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16418 do
16419   IFS=$as_save_IFS
16420   test -z "$as_dir" && as_dir=.
16421   for ac_prog in egrep; do
16422   for ac_exec_ext in '' $ac_executable_extensions; do
16423     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
16424     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
16425     # Check for GNU ac_path_EGREP and select it if it is found.
16426   # Check for GNU $ac_path_EGREP
16427 case `"$ac_path_EGREP" --version 2>&1` in
16428 *GNU*)
16429   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
16430 *)
16431   ac_count=0
16432   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
16433   while :
16434   do
16435     cat "conftest.in" "conftest.in" >"conftest.tmp"
16436     mv "conftest.tmp" "conftest.in"
16437     cp "conftest.in" "conftest.nl"
16438     echo 'EGREP' >> "conftest.nl"
16439     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16440     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16441     ac_count=`expr $ac_count + 1`
16442     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
16443       # Best one so far, save it but keep looking for a better one
16444       ac_cv_path_EGREP="$ac_path_EGREP"
16445       ac_path_EGREP_max=$ac_count
16446     fi
16447     # 10*(2^10) chars as input seems more than enough
16448     test $ac_count -gt 10 && break
16449   done
16450   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16451 esac
16452
16453
16454     $ac_path_EGREP_found && break 3
16455   done
16456 done
16457
16458 done
16459 IFS=$as_save_IFS
16460
16461
16462 fi
16463
16464 EGREP="$ac_cv_path_EGREP"
16465 if test -z "$EGREP"; then
16466   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
16467 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
16468    { (exit 1); exit 1; }; }
16469 fi
16470
16471 else
16472   ac_cv_path_EGREP=$EGREP
16473 fi
16474
16475
16476    fi
16477 fi
16478 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
16479 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
16480  EGREP="$ac_cv_path_EGREP"
16481
16482
16483 if test $ac_cv_c_compiler_gnu = yes; then
16484     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
16485 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
16486 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
16487   echo $ECHO_N "(cached) $ECHO_C" >&6
16488 else
16489     ac_pattern="Autoconf.*'x'"
16490   cat >conftest.$ac_ext <<_ACEOF
16491 /* confdefs.h.  */
16492 _ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h.  */
16496 #include <sgtty.h>
16497 Autoconf TIOCGETP
16498 _ACEOF
16499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16500   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16501   ac_cv_prog_gcc_traditional=yes
16502 else
16503   ac_cv_prog_gcc_traditional=no
16504 fi
16505 rm -f conftest*
16506
16507
16508   if test $ac_cv_prog_gcc_traditional = no; then
16509     cat >conftest.$ac_ext <<_ACEOF
16510 /* confdefs.h.  */
16511 _ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h.  */
16515 #include <termio.h>
16516 Autoconf TCGETA
16517 _ACEOF
16518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16519   $EGREP "$ac_pattern" >/dev/null 2>&1; then
16520   ac_cv_prog_gcc_traditional=yes
16521 fi
16522 rm -f conftest*
16523
16524   fi
16525 fi
16526 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
16527 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
16528   if test $ac_cv_prog_gcc_traditional = yes; then
16529     CC="$CC -traditional"
16530   fi
16531 fi
16532
16533
16534 CXXFLAGS=${CXXFLAGS:=}
16535
16536
16537
16538     ac_ext=cpp
16539 ac_cpp='$CXXCPP $CPPFLAGS'
16540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16543 if test -z "$CXX"; then
16544   if test -n "$CCC"; then
16545     CXX=$CCC
16546   else
16547     if test -n "$ac_tool_prefix"; then
16548   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16549   do
16550     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16554 if test "${ac_cv_prog_CXX+set}" = set; then
16555   echo $ECHO_N "(cached) $ECHO_C" >&6
16556 else
16557   if test -n "$CXX"; then
16558   ac_cv_prog_CXX="$CXX" # Let the user override the test.
16559 else
16560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16561 for as_dir in $PATH
16562 do
16563   IFS=$as_save_IFS
16564   test -z "$as_dir" && as_dir=.
16565   for ac_exec_ext in '' $ac_executable_extensions; do
16566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16567     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
16568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16569     break 2
16570   fi
16571 done
16572 done
16573 IFS=$as_save_IFS
16574
16575 fi
16576 fi
16577 CXX=$ac_cv_prog_CXX
16578 if test -n "$CXX"; then
16579   { echo "$as_me:$LINENO: result: $CXX" >&5
16580 echo "${ECHO_T}$CXX" >&6; }
16581 else
16582   { echo "$as_me:$LINENO: result: no" >&5
16583 echo "${ECHO_T}no" >&6; }
16584 fi
16585
16586
16587     test -n "$CXX" && break
16588   done
16589 fi
16590 if test -z "$CXX"; then
16591   ac_ct_CXX=$CXX
16592   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
16593 do
16594   # Extract the first word of "$ac_prog", so it can be a program name with args.
16595 set dummy $ac_prog; ac_word=$2
16596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16598 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
16599   echo $ECHO_N "(cached) $ECHO_C" >&6
16600 else
16601   if test -n "$ac_ct_CXX"; then
16602   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
16603 else
16604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16605 for as_dir in $PATH
16606 do
16607   IFS=$as_save_IFS
16608   test -z "$as_dir" && as_dir=.
16609   for ac_exec_ext in '' $ac_executable_extensions; do
16610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16611     ac_cv_prog_ac_ct_CXX="$ac_prog"
16612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16613     break 2
16614   fi
16615 done
16616 done
16617 IFS=$as_save_IFS
16618
16619 fi
16620 fi
16621 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
16622 if test -n "$ac_ct_CXX"; then
16623   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
16624 echo "${ECHO_T}$ac_ct_CXX" >&6; }
16625 else
16626   { echo "$as_me:$LINENO: result: no" >&5
16627 echo "${ECHO_T}no" >&6; }
16628 fi
16629
16630
16631   test -n "$ac_ct_CXX" && break
16632 done
16633
16634   if test "x$ac_ct_CXX" = x; then
16635     CXX="g++"
16636   else
16637     case $cross_compiling:$ac_tool_warned in
16638 yes:)
16639 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16640 whose name does not start with the host triplet.  If you think this
16641 configuration is useful to you, please write to autoconf@gnu.org." >&5
16642 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16643 whose name does not start with the host triplet.  If you think this
16644 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16645 ac_tool_warned=yes ;;
16646 esac
16647     CXX=$ac_ct_CXX
16648   fi
16649 fi
16650
16651   fi
16652 fi
16653 # Provide some information about the compiler.
16654 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
16655 ac_compiler=`set X $ac_compile; echo $2`
16656 { (ac_try="$ac_compiler --version >&5"
16657 case "(($ac_try" in
16658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659   *) ac_try_echo=$ac_try;;
16660 esac
16661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16662   (eval "$ac_compiler --version >&5") 2>&5
16663   ac_status=$?
16664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665   (exit $ac_status); }
16666 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); }
16676 { (ac_try="$ac_compiler -V >&5"
16677 case "(($ac_try" in
16678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679   *) ac_try_echo=$ac_try;;
16680 esac
16681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16682   (eval "$ac_compiler -V >&5") 2>&5
16683   ac_status=$?
16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685   (exit $ac_status); }
16686
16687 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
16688 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
16689 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
16690   echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692   cat >conftest.$ac_ext <<_ACEOF
16693 /* confdefs.h.  */
16694 _ACEOF
16695 cat confdefs.h >>conftest.$ac_ext
16696 cat >>conftest.$ac_ext <<_ACEOF
16697 /* end confdefs.h.  */
16698
16699 int
16700 main ()
16701 {
16702 #ifndef __GNUC__
16703        choke me
16704 #endif
16705
16706   ;
16707   return 0;
16708 }
16709 _ACEOF
16710 rm -f conftest.$ac_objext
16711 if { (ac_try="$ac_compile"
16712 case "(($ac_try" in
16713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714   *) ac_try_echo=$ac_try;;
16715 esac
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717   (eval "$ac_compile") 2>conftest.er1
16718   ac_status=$?
16719   grep -v '^ *+' conftest.er1 >conftest.err
16720   rm -f conftest.er1
16721   cat conftest.err >&5
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); } && {
16724          test -z "$ac_cxx_werror_flag" ||
16725          test ! -s conftest.err
16726        } && test -s conftest.$ac_objext; then
16727   ac_compiler_gnu=yes
16728 else
16729   echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16731
16732         ac_compiler_gnu=no
16733 fi
16734
16735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16736 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
16737
16738 fi
16739 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
16740 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
16741 GXX=`test $ac_compiler_gnu = yes && echo yes`
16742 ac_test_CXXFLAGS=${CXXFLAGS+set}
16743 ac_save_CXXFLAGS=$CXXFLAGS
16744 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
16745 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
16746 if test "${ac_cv_prog_cxx_g+set}" = set; then
16747   echo $ECHO_N "(cached) $ECHO_C" >&6
16748 else
16749   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
16750    ac_cxx_werror_flag=yes
16751    ac_cv_prog_cxx_g=no
16752    CXXFLAGS="-g"
16753    cat >conftest.$ac_ext <<_ACEOF
16754 /* confdefs.h.  */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h.  */
16759
16760 int
16761 main ()
16762 {
16763
16764   ;
16765   return 0;
16766 }
16767 _ACEOF
16768 rm -f conftest.$ac_objext
16769 if { (ac_try="$ac_compile"
16770 case "(($ac_try" in
16771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772   *) ac_try_echo=$ac_try;;
16773 esac
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775   (eval "$ac_compile") 2>conftest.er1
16776   ac_status=$?
16777   grep -v '^ *+' conftest.er1 >conftest.err
16778   rm -f conftest.er1
16779   cat conftest.err >&5
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); } && {
16782          test -z "$ac_cxx_werror_flag" ||
16783          test ! -s conftest.err
16784        } && test -s conftest.$ac_objext; then
16785   ac_cv_prog_cxx_g=yes
16786 else
16787   echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16789
16790         CXXFLAGS=""
16791       cat >conftest.$ac_ext <<_ACEOF
16792 /* confdefs.h.  */
16793 _ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h.  */
16797
16798 int
16799 main ()
16800 {
16801
16802   ;
16803   return 0;
16804 }
16805 _ACEOF
16806 rm -f conftest.$ac_objext
16807 if { (ac_try="$ac_compile"
16808 case "(($ac_try" in
16809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810   *) ac_try_echo=$ac_try;;
16811 esac
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813   (eval "$ac_compile") 2>conftest.er1
16814   ac_status=$?
16815   grep -v '^ *+' conftest.er1 >conftest.err
16816   rm -f conftest.er1
16817   cat conftest.err >&5
16818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); } && {
16820          test -z "$ac_cxx_werror_flag" ||
16821          test ! -s conftest.err
16822        } && test -s conftest.$ac_objext; then
16823   :
16824 else
16825   echo "$as_me: failed program was:" >&5
16826 sed 's/^/| /' conftest.$ac_ext >&5
16827
16828         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16829          CXXFLAGS="-g"
16830          cat >conftest.$ac_ext <<_ACEOF
16831 /* confdefs.h.  */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h.  */
16836
16837 int
16838 main ()
16839 {
16840
16841   ;
16842   return 0;
16843 }
16844 _ACEOF
16845 rm -f conftest.$ac_objext
16846 if { (ac_try="$ac_compile"
16847 case "(($ac_try" in
16848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849   *) ac_try_echo=$ac_try;;
16850 esac
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852   (eval "$ac_compile") 2>conftest.er1
16853   ac_status=$?
16854   grep -v '^ *+' conftest.er1 >conftest.err
16855   rm -f conftest.er1
16856   cat conftest.err >&5
16857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858   (exit $ac_status); } && {
16859          test -z "$ac_cxx_werror_flag" ||
16860          test ! -s conftest.err
16861        } && test -s conftest.$ac_objext; then
16862   ac_cv_prog_cxx_g=yes
16863 else
16864   echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16866
16867
16868 fi
16869
16870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16871 fi
16872
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 fi
16875
16876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
16878 fi
16879 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
16880 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
16881 if test "$ac_test_CXXFLAGS" = set; then
16882   CXXFLAGS=$ac_save_CXXFLAGS
16883 elif test $ac_cv_prog_cxx_g = yes; then
16884   if test "$GXX" = yes; then
16885     CXXFLAGS="-g -O2"
16886   else
16887     CXXFLAGS="-g"
16888   fi
16889 else
16890   if test "$GXX" = yes; then
16891     CXXFLAGS="-O2"
16892   else
16893     CXXFLAGS=
16894   fi
16895 fi
16896 ac_ext=c
16897 ac_cpp='$CPP $CPPFLAGS'
16898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16901
16902
16903
16904
16905     ac_ext=cpp
16906 ac_cpp='$CXXCPP $CPPFLAGS'
16907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16910
16911     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
16912 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
16913 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
16914   echo $ECHO_N "(cached) $ECHO_C" >&6
16915 else
16916   cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h.  */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h.  */
16922
16923 int
16924 main ()
16925 {
16926
16927              #ifndef __INTEL_COMPILER
16928                 choke me
16929              #endif
16930
16931   ;
16932   return 0;
16933 }
16934 _ACEOF
16935 rm -f conftest.$ac_objext
16936 if { (ac_try="$ac_compile"
16937 case "(($ac_try" in
16938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939   *) ac_try_echo=$ac_try;;
16940 esac
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942   (eval "$ac_compile") 2>conftest.er1
16943   ac_status=$?
16944   grep -v '^ *+' conftest.er1 >conftest.err
16945   rm -f conftest.er1
16946   cat conftest.err >&5
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); } && {
16949          test -z "$ac_cxx_werror_flag" ||
16950          test ! -s conftest.err
16951        } && test -s conftest.$ac_objext; then
16952   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
16953 else
16954   echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16956
16957         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
16958
16959 fi
16960
16961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962
16963
16964 fi
16965 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
16966 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
16967     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
16968         :; INTELCXX=yes
16969     else
16970         :;
16971     fi
16972     ac_ext=c
16973 ac_cpp='$CPP $CPPFLAGS'
16974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16977
16978
16979
16980
16981         if test "$INTELCXX" = "yes"; then
16982
16983
16984     ac_ext=cpp
16985 ac_cpp='$CXXCPP $CPPFLAGS'
16986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16989
16990     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v8 or later" >&5
16991 echo $ECHO_N "checking whether we are using Intel C++ compiler v8 or later... $ECHO_C" >&6; }
16992 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+set}" = set; then
16993   echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995   cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h.  */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h.  */
17001
17002 int
17003 main ()
17004 {
17005
17006              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800
17007                 choke me
17008              #endif
17009
17010   ;
17011   return 0;
17012 }
17013 _ACEOF
17014 rm -f conftest.$ac_objext
17015 if { (ac_try="$ac_compile"
17016 case "(($ac_try" in
17017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17018   *) ac_try_echo=$ac_try;;
17019 esac
17020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17021   (eval "$ac_compile") 2>conftest.er1
17022   ac_status=$?
17023   grep -v '^ *+' conftest.er1 >conftest.err
17024   rm -f conftest.er1
17025   cat conftest.err >&5
17026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027   (exit $ac_status); } && {
17028          test -z "$ac_cxx_werror_flag" ||
17029          test ! -s conftest.err
17030        } && test -s conftest.$ac_objext; then
17031   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes
17032 else
17033   echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17035
17036         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no
17037
17038 fi
17039
17040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17041
17042
17043 fi
17044 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5
17045 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; }
17046     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then
17047         :; INTELCXX8=yes
17048     else
17049         :;
17050     fi
17051     ac_ext=c
17052 ac_cpp='$CPP $CPPFLAGS'
17053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17056
17057
17058
17059
17060
17061     ac_ext=cpp
17062 ac_cpp='$CXXCPP $CPPFLAGS'
17063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17066
17067     { echo "$as_me:$LINENO: checking whether we are using Intel C++ compiler v10 or later" >&5
17068 echo $ECHO_N "checking whether we are using Intel C++ compiler v10 or later... $ECHO_C" >&6; }
17069 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+set}" = set; then
17070   echo $ECHO_N "(cached) $ECHO_C" >&6
17071 else
17072   cat >conftest.$ac_ext <<_ACEOF
17073 /* confdefs.h.  */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h.  */
17078
17079 int
17080 main ()
17081 {
17082
17083              #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000
17084                 choke me
17085              #endif
17086
17087   ;
17088   return 0;
17089 }
17090 _ACEOF
17091 rm -f conftest.$ac_objext
17092 if { (ac_try="$ac_compile"
17093 case "(($ac_try" in
17094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095   *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098   (eval "$ac_compile") 2>conftest.er1
17099   ac_status=$?
17100   grep -v '^ *+' conftest.er1 >conftest.err
17101   rm -f conftest.er1
17102   cat conftest.err >&5
17103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); } && {
17105          test -z "$ac_cxx_werror_flag" ||
17106          test ! -s conftest.err
17107        } && test -s conftest.$ac_objext; then
17108   bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes
17109 else
17110   echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17112
17113         bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no
17114
17115 fi
17116
17117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17118
17119
17120 fi
17121 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5
17122 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; }
17123     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then
17124         :; INTELCXX10=yes
17125     else
17126         :;
17127     fi
17128     ac_ext=c
17129 ac_cpp='$CPP $CPPFLAGS'
17130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17133
17134
17135
17136     fi
17137
17138         if test "x$GCXX" != "xyes"; then
17139         if test "xCXX" = "xC"; then
17140             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17141 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17142 if test "${bakefile_cv_c_exto+set}" = set; then
17143   echo $ECHO_N "(cached) $ECHO_C" >&6
17144 else
17145   cat >conftest.$ac_ext <<_ACEOF
17146 /* confdefs.h.  */
17147 _ACEOF
17148 cat confdefs.h >>conftest.$ac_ext
17149 cat >>conftest.$ac_ext <<_ACEOF
17150 /* end confdefs.h.  */
17151
17152 int
17153 main ()
17154 {
17155
17156   ;
17157   return 0;
17158 }
17159 _ACEOF
17160 rm -f conftest.$ac_objext conftest.$ac_ext.o
17161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17162   (eval $ac_compile) 2>&5
17163   ac_status=$?
17164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165   (exit $ac_status); }; then
17166   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17167     case $ac_file in
17168         conftest.$ac_ext.o)
17169             bakefile_cv_c_exto="-ext o"
17170             ;;
17171         *)
17172             ;;
17173     esac
17174 done
17175 else
17176   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17177 See \`config.log' for more details." >&5
17178 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17179 See \`config.log' for more details." >&2;}
17180    { (exit 1); exit 1; }; }
17181
17182 fi
17183
17184 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17185
17186 fi
17187 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17188 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17189 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17190     if test "c" = "c"; then
17191         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17192     fi
17193     if test "c" = "cxx"; then
17194         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17195     fi
17196 fi
17197
17198             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17199                 unset ac_cv_prog_cc_g
17200                 ac_test_CFLAGS=${CFLAGS+set}
17201 ac_save_CFLAGS=$CFLAGS
17202 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17203 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17204 if test "${ac_cv_prog_cc_g+set}" = set; then
17205   echo $ECHO_N "(cached) $ECHO_C" >&6
17206 else
17207   ac_save_c_werror_flag=$ac_c_werror_flag
17208    ac_c_werror_flag=yes
17209    ac_cv_prog_cc_g=no
17210    CFLAGS="-g"
17211    cat >conftest.$ac_ext <<_ACEOF
17212 /* confdefs.h.  */
17213 _ACEOF
17214 cat confdefs.h >>conftest.$ac_ext
17215 cat >>conftest.$ac_ext <<_ACEOF
17216 /* end confdefs.h.  */
17217
17218 int
17219 main ()
17220 {
17221
17222   ;
17223   return 0;
17224 }
17225 _ACEOF
17226 rm -f conftest.$ac_objext
17227 if { (ac_try="$ac_compile"
17228 case "(($ac_try" in
17229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230   *) ac_try_echo=$ac_try;;
17231 esac
17232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233   (eval "$ac_compile") 2>conftest.er1
17234   ac_status=$?
17235   grep -v '^ *+' conftest.er1 >conftest.err
17236   rm -f conftest.er1
17237   cat conftest.err >&5
17238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239   (exit $ac_status); } && {
17240          test -z "$ac_c_werror_flag" ||
17241          test ! -s conftest.err
17242        } && test -s conftest.$ac_objext; then
17243   ac_cv_prog_cc_g=yes
17244 else
17245   echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248         CFLAGS=""
17249       cat >conftest.$ac_ext <<_ACEOF
17250 /* confdefs.h.  */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h.  */
17255
17256 int
17257 main ()
17258 {
17259
17260   ;
17261   return 0;
17262 }
17263 _ACEOF
17264 rm -f conftest.$ac_objext
17265 if { (ac_try="$ac_compile"
17266 case "(($ac_try" in
17267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268   *) ac_try_echo=$ac_try;;
17269 esac
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271   (eval "$ac_compile") 2>conftest.er1
17272   ac_status=$?
17273   grep -v '^ *+' conftest.er1 >conftest.err
17274   rm -f conftest.er1
17275   cat conftest.err >&5
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); } && {
17278          test -z "$ac_c_werror_flag" ||
17279          test ! -s conftest.err
17280        } && test -s conftest.$ac_objext; then
17281   :
17282 else
17283   echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17285
17286         ac_c_werror_flag=$ac_save_c_werror_flag
17287          CFLAGS="-g"
17288          cat >conftest.$ac_ext <<_ACEOF
17289 /* confdefs.h.  */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h.  */
17294
17295 int
17296 main ()
17297 {
17298
17299   ;
17300   return 0;
17301 }
17302 _ACEOF
17303 rm -f conftest.$ac_objext
17304 if { (ac_try="$ac_compile"
17305 case "(($ac_try" in
17306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307   *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310   (eval "$ac_compile") 2>conftest.er1
17311   ac_status=$?
17312   grep -v '^ *+' conftest.er1 >conftest.err
17313   rm -f conftest.er1
17314   cat conftest.err >&5
17315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316   (exit $ac_status); } && {
17317          test -z "$ac_c_werror_flag" ||
17318          test ! -s conftest.err
17319        } && test -s conftest.$ac_objext; then
17320   ac_cv_prog_cc_g=yes
17321 else
17322   echo "$as_me: failed program was:" >&5
17323 sed 's/^/| /' conftest.$ac_ext >&5
17324
17325
17326 fi
17327
17328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17329 fi
17330
17331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17332 fi
17333
17334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17335    ac_c_werror_flag=$ac_save_c_werror_flag
17336 fi
17337 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17338 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17339 if test "$ac_test_CFLAGS" = set; then
17340   CFLAGS=$ac_save_CFLAGS
17341 elif test $ac_cv_prog_cc_g = yes; then
17342   if test "$GCC" = yes; then
17343     CFLAGS="-g -O2"
17344   else
17345     CFLAGS="-g"
17346   fi
17347 else
17348   if test "$GCC" = yes; then
17349     CFLAGS="-O2"
17350   else
17351     CFLAGS=
17352   fi
17353 fi
17354             fi
17355         fi
17356
17357                         case `uname -s` in
17358             AIX*)
17359
17360
17361     ac_ext=cpp
17362 ac_cpp='$CXXCPP $CPPFLAGS'
17363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17366
17367     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17368 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17369 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17370   echo $ECHO_N "(cached) $ECHO_C" >&6
17371 else
17372   cat >conftest.$ac_ext <<_ACEOF
17373 /* confdefs.h.  */
17374 _ACEOF
17375 cat confdefs.h >>conftest.$ac_ext
17376 cat >>conftest.$ac_ext <<_ACEOF
17377 /* end confdefs.h.  */
17378
17379 int
17380 main ()
17381 {
17382
17383              #ifndef __xlC__
17384                 choke me
17385              #endif
17386
17387   ;
17388   return 0;
17389 }
17390 _ACEOF
17391 rm -f conftest.$ac_objext
17392 if { (ac_try="$ac_compile"
17393 case "(($ac_try" in
17394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395   *) ac_try_echo=$ac_try;;
17396 esac
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398   (eval "$ac_compile") 2>conftest.er1
17399   ac_status=$?
17400   grep -v '^ *+' conftest.er1 >conftest.err
17401   rm -f conftest.er1
17402   cat conftest.err >&5
17403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404   (exit $ac_status); } && {
17405          test -z "$ac_cxx_werror_flag" ||
17406          test ! -s conftest.err
17407        } && test -s conftest.$ac_objext; then
17408   bakefile_cv_cxx_compiler___xlC__=yes
17409 else
17410   echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17412
17413         bakefile_cv_cxx_compiler___xlC__=no
17414
17415 fi
17416
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418
17419
17420 fi
17421 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17422 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17423     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17424         :; XLCXX=yes
17425     else
17426         :;
17427     fi
17428     ac_ext=c
17429 ac_cpp='$CPP $CPPFLAGS'
17430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17433
17434
17435
17436                 ;;
17437
17438             Darwin)
17439
17440
17441     ac_ext=cpp
17442 ac_cpp='$CXXCPP $CPPFLAGS'
17443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17446
17447     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
17448 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
17449 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
17450   echo $ECHO_N "(cached) $ECHO_C" >&6
17451 else
17452   cat >conftest.$ac_ext <<_ACEOF
17453 /* confdefs.h.  */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h.  */
17458
17459 int
17460 main ()
17461 {
17462
17463              #ifndef __MWERKS__
17464                 choke me
17465              #endif
17466
17467   ;
17468   return 0;
17469 }
17470 _ACEOF
17471 rm -f conftest.$ac_objext
17472 if { (ac_try="$ac_compile"
17473 case "(($ac_try" in
17474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475   *) ac_try_echo=$ac_try;;
17476 esac
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478   (eval "$ac_compile") 2>conftest.er1
17479   ac_status=$?
17480   grep -v '^ *+' conftest.er1 >conftest.err
17481   rm -f conftest.er1
17482   cat conftest.err >&5
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); } && {
17485          test -z "$ac_cxx_werror_flag" ||
17486          test ! -s conftest.err
17487        } && test -s conftest.$ac_objext; then
17488   bakefile_cv_cxx_compiler___MWERKS__=yes
17489 else
17490   echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17492
17493         bakefile_cv_cxx_compiler___MWERKS__=no
17494
17495 fi
17496
17497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17498
17499
17500 fi
17501 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
17502 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
17503     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
17504         :; MWCXX=yes
17505     else
17506         :;
17507     fi
17508     ac_ext=c
17509 ac_cpp='$CPP $CPPFLAGS'
17510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17513
17514
17515
17516                 if test "$MWCXX" != "yes"; then
17517
17518
17519     ac_ext=cpp
17520 ac_cpp='$CXXCPP $CPPFLAGS'
17521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17524
17525     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
17526 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
17527 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
17528   echo $ECHO_N "(cached) $ECHO_C" >&6
17529 else
17530   cat >conftest.$ac_ext <<_ACEOF
17531 /* confdefs.h.  */
17532 _ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h.  */
17536
17537 int
17538 main ()
17539 {
17540
17541              #ifndef __xlC__
17542                 choke me
17543              #endif
17544
17545   ;
17546   return 0;
17547 }
17548 _ACEOF
17549 rm -f conftest.$ac_objext
17550 if { (ac_try="$ac_compile"
17551 case "(($ac_try" in
17552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553   *) ac_try_echo=$ac_try;;
17554 esac
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556   (eval "$ac_compile") 2>conftest.er1
17557   ac_status=$?
17558   grep -v '^ *+' conftest.er1 >conftest.err
17559   rm -f conftest.er1
17560   cat conftest.err >&5
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); } && {
17563          test -z "$ac_cxx_werror_flag" ||
17564          test ! -s conftest.err
17565        } && test -s conftest.$ac_objext; then
17566   bakefile_cv_cxx_compiler___xlC__=yes
17567 else
17568   echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17570
17571         bakefile_cv_cxx_compiler___xlC__=no
17572
17573 fi
17574
17575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17576
17577
17578 fi
17579 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
17580 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
17581     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
17582         :; XLCXX=yes
17583     else
17584         :;
17585     fi
17586     ac_ext=c
17587 ac_cpp='$CPP $CPPFLAGS'
17588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17591
17592
17593
17594                 fi
17595                 ;;
17596
17597             IRIX*)
17598
17599
17600     ac_ext=cpp
17601 ac_cpp='$CXXCPP $CPPFLAGS'
17602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17605
17606     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
17607 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
17608 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
17609   echo $ECHO_N "(cached) $ECHO_C" >&6
17610 else
17611   cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h.  */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h.  */
17617
17618 int
17619 main ()
17620 {
17621
17622              #ifndef _SGI_COMPILER_VERSION
17623                 choke me
17624              #endif
17625
17626   ;
17627   return 0;
17628 }
17629 _ACEOF
17630 rm -f conftest.$ac_objext
17631 if { (ac_try="$ac_compile"
17632 case "(($ac_try" in
17633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634   *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637   (eval "$ac_compile") 2>conftest.er1
17638   ac_status=$?
17639   grep -v '^ *+' conftest.er1 >conftest.err
17640   rm -f conftest.er1
17641   cat conftest.err >&5
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); } && {
17644          test -z "$ac_cxx_werror_flag" ||
17645          test ! -s conftest.err
17646        } && test -s conftest.$ac_objext; then
17647   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
17648 else
17649   echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17651
17652         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
17653
17654 fi
17655
17656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17657
17658
17659 fi
17660 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
17661 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
17662     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17663         :; SGICXX=yes
17664     else
17665         :;
17666     fi
17667     ac_ext=c
17668 ac_cpp='$CPP $CPPFLAGS'
17669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17672
17673
17674
17675                 ;;
17676
17677             Linux*)
17678                                                 if test "$INTELCXX" != "yes"; then
17679
17680
17681     ac_ext=cpp
17682 ac_cpp='$CXXCPP $CPPFLAGS'
17683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17686
17687     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17688 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17689 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17690   echo $ECHO_N "(cached) $ECHO_C" >&6
17691 else
17692   cat >conftest.$ac_ext <<_ACEOF
17693 /* confdefs.h.  */
17694 _ACEOF
17695 cat confdefs.h >>conftest.$ac_ext
17696 cat >>conftest.$ac_ext <<_ACEOF
17697 /* end confdefs.h.  */
17698
17699 int
17700 main ()
17701 {
17702
17703              #ifndef __SUNPRO_CC
17704                 choke me
17705              #endif
17706
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715   *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718   (eval "$ac_compile") 2>conftest.er1
17719   ac_status=$?
17720   grep -v '^ *+' conftest.er1 >conftest.err
17721   rm -f conftest.er1
17722   cat conftest.err >&5
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); } && {
17725          test -z "$ac_cxx_werror_flag" ||
17726          test ! -s conftest.err
17727        } && test -s conftest.$ac_objext; then
17728   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17729 else
17730   echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17734
17735 fi
17736
17737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17738
17739
17740 fi
17741 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17742 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17743     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17744         :; SUNCXX=yes
17745     else
17746         :;
17747     fi
17748     ac_ext=c
17749 ac_cpp='$CPP $CPPFLAGS'
17750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17753
17754
17755
17756                 fi
17757                 ;;
17758
17759             HP-UX*)
17760
17761
17762     ac_ext=cpp
17763 ac_cpp='$CXXCPP $CPPFLAGS'
17764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17767
17768     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
17769 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
17770 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
17771   echo $ECHO_N "(cached) $ECHO_C" >&6
17772 else
17773   cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h.  */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h.  */
17779
17780 int
17781 main ()
17782 {
17783
17784              #ifndef __HP_aCC
17785                 choke me
17786              #endif
17787
17788   ;
17789   return 0;
17790 }
17791 _ACEOF
17792 rm -f conftest.$ac_objext
17793 if { (ac_try="$ac_compile"
17794 case "(($ac_try" in
17795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796   *) ac_try_echo=$ac_try;;
17797 esac
17798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799   (eval "$ac_compile") 2>conftest.er1
17800   ac_status=$?
17801   grep -v '^ *+' conftest.er1 >conftest.err
17802   rm -f conftest.er1
17803   cat conftest.err >&5
17804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805   (exit $ac_status); } && {
17806          test -z "$ac_cxx_werror_flag" ||
17807          test ! -s conftest.err
17808        } && test -s conftest.$ac_objext; then
17809   bakefile_cv_cxx_compiler___HP_aCC=yes
17810 else
17811   echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17813
17814         bakefile_cv_cxx_compiler___HP_aCC=no
17815
17816 fi
17817
17818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819
17820
17821 fi
17822 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
17823 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
17824     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
17825         :; HPCXX=yes
17826     else
17827         :;
17828     fi
17829     ac_ext=c
17830 ac_cpp='$CPP $CPPFLAGS'
17831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17834
17835
17836
17837                 ;;
17838
17839             OSF1)
17840
17841
17842     ac_ext=cpp
17843 ac_cpp='$CXXCPP $CPPFLAGS'
17844 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17845 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17846 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17847
17848     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
17849 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
17850 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
17851   echo $ECHO_N "(cached) $ECHO_C" >&6
17852 else
17853   cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h.  */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h.  */
17859
17860 int
17861 main ()
17862 {
17863
17864              #ifndef __DECCXX
17865                 choke me
17866              #endif
17867
17868   ;
17869   return 0;
17870 }
17871 _ACEOF
17872 rm -f conftest.$ac_objext
17873 if { (ac_try="$ac_compile"
17874 case "(($ac_try" in
17875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876   *) ac_try_echo=$ac_try;;
17877 esac
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879   (eval "$ac_compile") 2>conftest.er1
17880   ac_status=$?
17881   grep -v '^ *+' conftest.er1 >conftest.err
17882   rm -f conftest.er1
17883   cat conftest.err >&5
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); } && {
17886          test -z "$ac_cxx_werror_flag" ||
17887          test ! -s conftest.err
17888        } && test -s conftest.$ac_objext; then
17889   bakefile_cv_cxx_compiler___DECCXX=yes
17890 else
17891   echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17893
17894         bakefile_cv_cxx_compiler___DECCXX=no
17895
17896 fi
17897
17898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17899
17900
17901 fi
17902 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
17903 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
17904     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
17905         :; COMPAQCXX=yes
17906     else
17907         :;
17908     fi
17909     ac_ext=c
17910 ac_cpp='$CPP $CPPFLAGS'
17911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17914
17915
17916
17917                 ;;
17918
17919             SunOS)
17920
17921
17922     ac_ext=cpp
17923 ac_cpp='$CXXCPP $CPPFLAGS'
17924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17927
17928     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
17929 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
17930 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
17931   echo $ECHO_N "(cached) $ECHO_C" >&6
17932 else
17933   cat >conftest.$ac_ext <<_ACEOF
17934 /* confdefs.h.  */
17935 _ACEOF
17936 cat confdefs.h >>conftest.$ac_ext
17937 cat >>conftest.$ac_ext <<_ACEOF
17938 /* end confdefs.h.  */
17939
17940 int
17941 main ()
17942 {
17943
17944              #ifndef __SUNPRO_CC
17945                 choke me
17946              #endif
17947
17948   ;
17949   return 0;
17950 }
17951 _ACEOF
17952 rm -f conftest.$ac_objext
17953 if { (ac_try="$ac_compile"
17954 case "(($ac_try" in
17955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17956   *) ac_try_echo=$ac_try;;
17957 esac
17958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17959   (eval "$ac_compile") 2>conftest.er1
17960   ac_status=$?
17961   grep -v '^ *+' conftest.er1 >conftest.err
17962   rm -f conftest.er1
17963   cat conftest.err >&5
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); } && {
17966          test -z "$ac_cxx_werror_flag" ||
17967          test ! -s conftest.err
17968        } && test -s conftest.$ac_objext; then
17969   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
17970 else
17971   echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17973
17974         bakefile_cv_cxx_compiler___SUNPRO_CC=no
17975
17976 fi
17977
17978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17979
17980
17981 fi
17982 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
17983 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
17984     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
17985         :; SUNCXX=yes
17986     else
17987         :;
17988     fi
17989     ac_ext=c
17990 ac_cpp='$CPP $CPPFLAGS'
17991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17994
17995
17996
17997                 ;;
17998         esac
17999     fi
18000
18001
18002
18003 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
18004     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
18005 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
18006    { (exit 1); exit 1; }; }
18007 fi
18008
18009 if test "x$SUNCXX" != xyes; then
18010     if test -n "$ac_tool_prefix"; then
18011   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18012 set dummy ${ac_tool_prefix}ar; ac_word=$2
18013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18015 if test "${ac_cv_prog_AR+set}" = set; then
18016   echo $ECHO_N "(cached) $ECHO_C" >&6
18017 else
18018   if test -n "$AR"; then
18019   ac_cv_prog_AR="$AR" # Let the user override the test.
18020 else
18021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18022 for as_dir in $PATH
18023 do
18024   IFS=$as_save_IFS
18025   test -z "$as_dir" && as_dir=.
18026   for ac_exec_ext in '' $ac_executable_extensions; do
18027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18028     ac_cv_prog_AR="${ac_tool_prefix}ar"
18029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18030     break 2
18031   fi
18032 done
18033 done
18034 IFS=$as_save_IFS
18035
18036 fi
18037 fi
18038 AR=$ac_cv_prog_AR
18039 if test -n "$AR"; then
18040   { echo "$as_me:$LINENO: result: $AR" >&5
18041 echo "${ECHO_T}$AR" >&6; }
18042 else
18043   { echo "$as_me:$LINENO: result: no" >&5
18044 echo "${ECHO_T}no" >&6; }
18045 fi
18046
18047
18048 fi
18049 if test -z "$ac_cv_prog_AR"; then
18050   ac_ct_AR=$AR
18051   # Extract the first word of "ar", so it can be a program name with args.
18052 set dummy ar; ac_word=$2
18053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18055 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18056   echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058   if test -n "$ac_ct_AR"; then
18059   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18060 else
18061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18062 for as_dir in $PATH
18063 do
18064   IFS=$as_save_IFS
18065   test -z "$as_dir" && as_dir=.
18066   for ac_exec_ext in '' $ac_executable_extensions; do
18067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18068     ac_cv_prog_ac_ct_AR="ar"
18069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18070     break 2
18071   fi
18072 done
18073 done
18074 IFS=$as_save_IFS
18075
18076 fi
18077 fi
18078 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18079 if test -n "$ac_ct_AR"; then
18080   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18081 echo "${ECHO_T}$ac_ct_AR" >&6; }
18082 else
18083   { echo "$as_me:$LINENO: result: no" >&5
18084 echo "${ECHO_T}no" >&6; }
18085 fi
18086
18087   if test "x$ac_ct_AR" = x; then
18088     AR=""
18089   else
18090     case $cross_compiling:$ac_tool_warned in
18091 yes:)
18092 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18093 whose name does not start with the host triplet.  If you think this
18094 configuration is useful to you, please write to autoconf@gnu.org." >&5
18095 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18096 whose name does not start with the host triplet.  If you think this
18097 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18098 ac_tool_warned=yes ;;
18099 esac
18100     AR=$ac_ct_AR
18101   fi
18102 else
18103   AR="$ac_cv_prog_AR"
18104 fi
18105
18106     if test "x$AR" = "x" ; then
18107         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
18108 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
18109    { (exit 1); exit 1; }; }
18110     fi
18111 fi
18112
18113 retest_macosx_linking=no
18114
18115 #if test "$wxUSE_MAC" = 1; then
18116     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
18117                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
18118             # Implicitly turn on the new --with-macosx-sdk using the default
18119             # SDK which provides the behavior this option has always had.
18120             if test "x$wxUSE_MACOSX_SDK" = "x"; then
18121                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
18122 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
18123                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
18124 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
18125                 wxUSE_MACOSX_SDK=yes
18126             fi
18127         else
18128             # Complain to user if he specified an argument to --enable-universal_binary
18129             # and also 1) specified --with-macosx-sdk using the default (yes) or
18130             # 2) specified --with-macosx-sdk using a path or 3) specified
18131             # --without-macosx-sdk (no).
18132             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
18133                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18134 See \`config.log' for more details." >&5
18135 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
18136 See \`config.log' for more details." >&2;}
18137    { (exit 1); exit 1; }; }
18138             else
18139                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
18140                 # special-case the empty string because the below test simply
18141                 # converts "no" to the empty string anyway.
18142                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
18143                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
18144 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
18145             fi
18146         fi
18147                 OSX_UNIV_OPTS="-arch ppc -arch i386"
18148         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
18149         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
18150         OBJCXXFLAGS="$OSX_UNIV_OPTS $OBJCXXFLAGS"
18151         OBJCFLAGS="$OSX_UNIV_OPTS $OBJCFLAGS"
18152         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
18153                                                                                                                 retest_macosx_linking=yes
18154
18155                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
18156 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
18157         bk_use_pch=no
18158     fi
18159 #fi
18160
18161 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
18162     wxUSE_MACOSX_SDK=
18163 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
18164     # TODO: Search for most recent SDK and use it.
18165     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
18166 fi
18167
18168
18169 if test "x$wxUSE_MACOSX_SDK" != "x"; then
18170     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
18171 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
18172     if ! test -d "$wxUSE_MACOSX_SDK"; then
18173         { { echo "$as_me:$LINENO: error: not found
18174 See \`config.log' for more details." >&5
18175 echo "$as_me: error: not found
18176 See \`config.log' for more details." >&2;}
18177    { (exit 1); exit 1; }; }
18178     else
18179         { echo "$as_me:$LINENO: result: exists" >&5
18180 echo "${ECHO_T}exists" >&6; }
18181     fi
18182     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
18183     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
18184     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
18185     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
18186     retest_macosx_linking=yes
18187             fi
18188
18189 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
18190     wxUSE_MACOSX_VERSION_MIN=
18191 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
18192     if test "x$wxUSE_MACOSX_SDK" != "x"; then
18193         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
18194 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
18195
18196         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/'`
18197
18198         # If that failed, try again with the new key
18199         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
18200
18201             MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'`
18202
18203         fi
18204
18205         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
18206             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
18207             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
18208 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
18209         else
18210             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
18211 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
18212             wxUSE_MACOSX_VERSION_MIN=
18213         fi
18214     else
18215         wxUSE_MACOSX_VERSION_MIN=
18216     fi
18217 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then
18218     if test "$wxUSE_MAC" = 1; then
18219         # otherwise configure stops on leopard for universal_binary
18220         wxUSE_MACOSX_VERSION_MIN=10.4
18221     fi
18222 fi
18223
18224 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
18225     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
18226     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
18227     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
18228     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
18229     retest_macosx_linking=yes
18230 fi
18231
18232 if test "x$retest_macosx_linking" = "xyes"; then
18233     ac_ext=c
18234 ac_cpp='$CPP $CPPFLAGS'
18235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18238
18239     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
18240 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
18241     cat >conftest.$ac_ext <<_ACEOF
18242 /* confdefs.h.  */
18243 _ACEOF
18244 cat confdefs.h >>conftest.$ac_ext
18245 cat >>conftest.$ac_ext <<_ACEOF
18246 /* end confdefs.h.  */
18247
18248 int
18249 main ()
18250 {
18251
18252   ;
18253   return 0;
18254 }
18255 _ACEOF
18256 rm -f conftest.$ac_objext conftest$ac_exeext
18257 if { (ac_try="$ac_link"
18258 case "(($ac_try" in
18259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260   *) ac_try_echo=$ac_try;;
18261 esac
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263   (eval "$ac_link") 2>conftest.er1
18264   ac_status=$?
18265   grep -v '^ *+' conftest.er1 >conftest.err
18266   rm -f conftest.er1
18267   cat conftest.err >&5
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); } && {
18270          test -z "$ac_c_werror_flag" ||
18271          test ! -s conftest.err
18272        } && test -s conftest$ac_exeext &&
18273        $as_test_x conftest$ac_exeext; then
18274   { echo "$as_me:$LINENO: result: yes" >&5
18275 echo "${ECHO_T}yes" >&6; }
18276 else
18277   echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18279
18280         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18281 See \`config.log' for more details." >&5
18282 echo "$as_me: error: no.  Try a different SDK
18283 See \`config.log' for more details." >&2;}
18284    { (exit 1); exit 1; }; }; exit 1
18285 fi
18286
18287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18288       conftest$ac_exeext conftest.$ac_ext
18289     ac_ext=c
18290 ac_cpp='$CPP $CPPFLAGS'
18291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18294
18295
18296     ac_ext=cpp
18297 ac_cpp='$CXXCPP $CPPFLAGS'
18298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18301
18302     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
18303 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
18304     cat >conftest.$ac_ext <<_ACEOF
18305 /* confdefs.h.  */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h.  */
18310
18311 int
18312 main ()
18313 {
18314
18315   ;
18316   return 0;
18317 }
18318 _ACEOF
18319 rm -f conftest.$ac_objext conftest$ac_exeext
18320 if { (ac_try="$ac_link"
18321 case "(($ac_try" in
18322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323   *) ac_try_echo=$ac_try;;
18324 esac
18325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18326   (eval "$ac_link") 2>conftest.er1
18327   ac_status=$?
18328   grep -v '^ *+' conftest.er1 >conftest.err
18329   rm -f conftest.er1
18330   cat conftest.err >&5
18331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); } && {
18333          test -z "$ac_cxx_werror_flag" ||
18334          test ! -s conftest.err
18335        } && test -s conftest$ac_exeext &&
18336        $as_test_x conftest$ac_exeext; then
18337   { echo "$as_me:$LINENO: result: yes" >&5
18338 echo "${ECHO_T}yes" >&6; }
18339 else
18340   echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18342
18343         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
18344 See \`config.log' for more details." >&5
18345 echo "$as_me: error: no.  Try a different SDK
18346 See \`config.log' for more details." >&2;}
18347    { (exit 1); exit 1; }; }; exit 1
18348 fi
18349
18350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18351       conftest$ac_exeext conftest.$ac_ext
18352     ac_ext=c
18353 ac_cpp='$CPP $CPPFLAGS'
18354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18357
18358 fi
18359
18360
18361 case "${host}" in
18362
18363                 *-*-darwin* )
18364         INSTALL_PROGRAM="cp -fp"
18365         INSTALL_DATA="cp -fp"
18366         ;;
18367     *)
18368         ;;
18369 esac
18370
18371
18372 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
18373     CXXFLAGS="-qunique $CXXFLAGS"
18374 fi
18375
18376 case "${host}" in
18377   powerpc-*-darwin* )
18378     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
18379 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
18380     cat >conftest.$ac_ext <<_ACEOF
18381 /* confdefs.h.  */
18382 _ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h.  */
18386
18387 int
18388 main ()
18389 {
18390 #ifndef __POWERPC__
18391         choke me for lack of PowerPC
18392 #endif
18393
18394   ;
18395   return 0;
18396 }
18397 _ACEOF
18398 rm -f conftest.$ac_objext
18399 if { (ac_try="$ac_compile"
18400 case "(($ac_try" in
18401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402   *) ac_try_echo=$ac_try;;
18403 esac
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405   (eval "$ac_compile") 2>conftest.er1
18406   ac_status=$?
18407   grep -v '^ *+' conftest.er1 >conftest.err
18408   rm -f conftest.er1
18409   cat conftest.err >&5
18410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411   (exit $ac_status); } && {
18412          test -z "$ac_c_werror_flag" ||
18413          test ! -s conftest.err
18414        } && test -s conftest.$ac_objext; then
18415   { echo "$as_me:$LINENO: result: yes" >&5
18416 echo "${ECHO_T}yes" >&6; }
18417 else
18418   echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421         { echo "$as_me:$LINENO: result: no" >&5
18422 echo "${ECHO_T}no" >&6; }
18423         cat >>confdefs.h <<\_ACEOF
18424 #define __POWERPC__ 1
18425 _ACEOF
18426
18427
18428 fi
18429
18430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18431   ;;
18432 esac
18433
18434 case "${host}" in
18435   *-*-darwin* )
18436     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
18437 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
18438     cat >conftest.$ac_ext <<_ACEOF
18439 /* confdefs.h.  */
18440 _ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h.  */
18444 #include <CoreFoundation/CFBase.h>
18445
18446 int
18447 main ()
18448 {
18449
18450   ;
18451   return 0;
18452 }
18453 _ACEOF
18454 rm -f conftest.$ac_objext
18455 if { (ac_try="$ac_compile"
18456 case "(($ac_try" in
18457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18458   *) ac_try_echo=$ac_try;;
18459 esac
18460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18461   (eval "$ac_compile") 2>conftest.er1
18462   ac_status=$?
18463   grep -v '^ *+' conftest.er1 >conftest.err
18464   rm -f conftest.er1
18465   cat conftest.err >&5
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); } && {
18468          test -z "$ac_c_werror_flag" ||
18469          test ! -s conftest.err
18470        } && test -s conftest.$ac_objext; then
18471   { echo "$as_me:$LINENO: result: yes" >&5
18472 echo "${ECHO_T}yes" >&6; }
18473 else
18474   echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.$ac_ext >&5
18476
18477         { echo "$as_me:$LINENO: result: no" >&5
18478 echo "${ECHO_T}no" >&6; }
18479         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
18480 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
18481         cat >conftest.$ac_ext <<_ACEOF
18482 /* confdefs.h.  */
18483 _ACEOF
18484 cat confdefs.h >>conftest.$ac_ext
18485 cat >>conftest.$ac_ext <<_ACEOF
18486 /* end confdefs.h.  */
18487 #define __CF_USE_FRAMEWORK_INCLUDES__
18488 #include <CoreFoundation/CFBase.h>
18489
18490 int
18491 main ()
18492 {
18493
18494   ;
18495   return 0;
18496 }
18497 _ACEOF
18498 rm -f conftest.$ac_objext
18499 if { (ac_try="$ac_compile"
18500 case "(($ac_try" in
18501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502   *) ac_try_echo=$ac_try;;
18503 esac
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505   (eval "$ac_compile") 2>conftest.er1
18506   ac_status=$?
18507   grep -v '^ *+' conftest.er1 >conftest.err
18508   rm -f conftest.er1
18509   cat conftest.err >&5
18510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511   (exit $ac_status); } && {
18512          test -z "$ac_c_werror_flag" ||
18513          test ! -s conftest.err
18514        } && test -s conftest.$ac_objext; then
18515   { echo "$as_me:$LINENO: result: yes" >&5
18516 echo "${ECHO_T}yes" >&6; }
18517                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
18518 else
18519   echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18521
18522         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
18523 See \`config.log' for more details." >&5
18524 echo "$as_me: error: no.  CoreFoundation not available.
18525 See \`config.log' for more details." >&2;}
18526    { (exit 1); exit 1; }; }
18527
18528 fi
18529
18530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531
18532
18533 fi
18534
18535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18536   ;;
18537 esac
18538
18539 wants_win32=0
18540 doesnt_want_win32=0
18541 case "${host}" in
18542   *-*-cygwin*)
18543       if test "$wxUSE_MSW" = 1 ; then
18544         wants_win32=1
18545       else
18546                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
18547 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
18548 if test "${wx_cv_nocygwin+set}" = set; then
18549   echo $ECHO_N "(cached) $ECHO_C" >&6
18550 else
18551
18552                 cat >conftest.$ac_ext <<_ACEOF
18553 /* confdefs.h.  */
18554 _ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h.  */
18558
18559 int
18560 main ()
18561 {
18562
18563                         #ifdef __MINGW32__
18564                             choke me
18565                         #endif
18566
18567   ;
18568   return 0;
18569 }
18570 _ACEOF
18571 rm -f conftest.$ac_objext
18572 if { (ac_try="$ac_compile"
18573 case "(($ac_try" in
18574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575   *) ac_try_echo=$ac_try;;
18576 esac
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578   (eval "$ac_compile") 2>conftest.er1
18579   ac_status=$?
18580   grep -v '^ *+' conftest.er1 >conftest.err
18581   rm -f conftest.er1
18582   cat conftest.err >&5
18583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584   (exit $ac_status); } && {
18585          test -z "$ac_c_werror_flag" ||
18586          test ! -s conftest.err
18587        } && test -s conftest.$ac_objext; then
18588   wx_cv_nocygwin=no
18589 else
18590   echo "$as_me: failed program was:" >&5
18591 sed 's/^/| /' conftest.$ac_ext >&5
18592
18593         wx_cv_nocygwin=yes
18594
18595 fi
18596
18597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18598
18599
18600 fi
18601 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
18602 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
18603
18604         if test "$wx_cv_nocygwin" = "yes"; then
18605             wants_win32=1
18606         else
18607             doesnt_want_win32=1
18608         fi
18609       fi
18610       if test "$wants_win32" = 1 ; then
18611         BAKEFILE_FORCE_PLATFORM=win32
18612       fi
18613   ;;
18614   *-*-mingw*)
18615       wants_win32=1
18616   ;;
18617 esac
18618
18619 if test "$wxUSE_WINE" = "yes"; then
18620     wants_win32=1
18621     LDFLAGS_GUI="-mwindows"
18622 fi
18623
18624 if test "$wants_win32" = 1 ; then
18625     USE_UNIX=0
18626     USE_WIN32=1
18627     cat >>confdefs.h <<\_ACEOF
18628 #define __WIN32__ 1
18629 _ACEOF
18630
18631     cat >>confdefs.h <<\_ACEOF
18632 #define __WIN95__ 1
18633 _ACEOF
18634
18635     cat >>confdefs.h <<\_ACEOF
18636 #define __WINDOWS__ 1
18637 _ACEOF
18638
18639     cat >>confdefs.h <<\_ACEOF
18640 #define __GNUWIN32__ 1
18641 _ACEOF
18642
18643     cat >>confdefs.h <<\_ACEOF
18644 #define STRICT 1
18645 _ACEOF
18646
18647 fi
18648 if test "$doesnt_want_win32" = 1 ; then
18649     USE_UNIX=1
18650     USE_WIN32=0
18651 fi
18652
18653 if test "$USE_UNIX" = 1 ; then
18654     wxUSE_UNIX=yes
18655     cat >>confdefs.h <<\_ACEOF
18656 #define __UNIX__ 1
18657 _ACEOF
18658
18659 fi
18660
18661 case "${host}" in
18662   *-pc-os2_emx | *-pc-os2-emx )
18663                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
18664                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
18665 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
18666 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
18667   echo $ECHO_N "(cached) $ECHO_C" >&6
18668 else
18669   ac_check_lib_save_LIBS=$LIBS
18670 LIBS="-lcExt  $LIBS"
18671 cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h.  */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h.  */
18677
18678 /* Override any GCC internal prototype to avoid an error.
18679    Use char because int might match the return type of a GCC
18680    builtin and then its argument prototype would still apply.  */
18681 #ifdef __cplusplus
18682 extern "C"
18683 #endif
18684 char drand48 ();
18685 int
18686 main ()
18687 {
18688 return drand48 ();
18689   ;
18690   return 0;
18691 }
18692 _ACEOF
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (ac_try="$ac_link"
18695 case "(($ac_try" in
18696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697   *) ac_try_echo=$ac_try;;
18698 esac
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700   (eval "$ac_link") 2>conftest.er1
18701   ac_status=$?
18702   grep -v '^ *+' conftest.er1 >conftest.err
18703   rm -f conftest.er1
18704   cat conftest.err >&5
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); } && {
18707          test -z "$ac_c_werror_flag" ||
18708          test ! -s conftest.err
18709        } && test -s conftest$ac_exeext &&
18710        $as_test_x conftest$ac_exeext; then
18711   ac_cv_lib_cExt_drand48=yes
18712 else
18713   echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716         ac_cv_lib_cExt_drand48=no
18717 fi
18718
18719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18720       conftest$ac_exeext conftest.$ac_ext
18721 LIBS=$ac_check_lib_save_LIBS
18722 fi
18723 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
18724 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
18725 if test $ac_cv_lib_cExt_drand48 = yes; then
18726   LIBS="$LIBS -lcExt"
18727 fi
18728
18729       else
18730                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
18731       fi
18732                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
18733 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
18734 if test "${wx_cv_gccversion+set}" = set; then
18735   echo $ECHO_N "(cached) $ECHO_C" >&6
18736 else
18737
18738           if test "$cross_compiling" = yes; then
18739                 wx_cv_gccversion="EMX2"
18740
18741 else
18742   cat >conftest.$ac_ext <<_ACEOF
18743 /* confdefs.h.  */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h.  */
18748
18749                   #include <stdio.h>
18750
18751                   int main()
18752                   {
18753                       FILE *f=fopen("conftestval", "w");
18754                       if (!f) exit(1);
18755                       fprintf(f,
18756                   #if (__GNUC__ < 3)
18757                               "EMX2"
18758                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
18759                               "EMX3"
18760                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
18761                               "Innotek5"
18762                   #else
18763                               "Innotek6"
18764                   #endif
18765                       );
18766                       exit(0);
18767                   }
18768
18769 _ACEOF
18770 rm -f conftest$ac_exeext
18771 if { (ac_try="$ac_link"
18772 case "(($ac_try" in
18773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774   *) ac_try_echo=$ac_try;;
18775 esac
18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777   (eval "$ac_link") 2>&5
18778   ac_status=$?
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18781   { (case "(($ac_try" in
18782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783   *) ac_try_echo=$ac_try;;
18784 esac
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786   (eval "$ac_try") 2>&5
18787   ac_status=$?
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); }; }; then
18790   wx_cv_gccversion=`cat conftestval`
18791 else
18792   echo "$as_me: program exited with status $ac_status" >&5
18793 echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18795
18796 ( exit $ac_status )
18797 wx_cv_gccversion="EMX2"
18798 fi
18799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18800 fi
18801
18802
18803
18804 fi
18805 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
18806 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
18807       if test "$wx_cv_gccversion" = "EMX2"; then
18808           LIBS="$LIBS -lstdcpp"
18809           LDFLAGS="$LDFLAGS -Zsysv-signals"
18810       else
18811           if test "$wx_cv_gccversion" = "EMX3"; then
18812               LIBS="$LIBS -lstdcxx -lgcc"
18813               LDFLAGS="$LDFLAGS -Zsysv-signals"
18814           else
18815               LIBS="$LIBS -lstdc++"
18816           fi
18817       fi
18818       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
18819         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
18820 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
18821         wxUSE_OMF=yes
18822         enable_omf=yes
18823       fi
18824         ;;
18825   *)
18826
18827       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
18828 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
18829 if test "${ac_cv_string_strcasecmp+set}" = set; then
18830   echo $ECHO_N "(cached) $ECHO_C" >&6
18831 else
18832
18833           cat >conftest.$ac_ext <<_ACEOF
18834 /* confdefs.h.  */
18835 _ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h.  */
18839
18840               #include <string.h>
18841
18842 int
18843 main ()
18844 {
18845
18846                   strcasecmp("foo", "bar");
18847
18848   ;
18849   return 0;
18850 }
18851 _ACEOF
18852 rm -f conftest.$ac_objext conftest$ac_exeext
18853 if { (ac_try="$ac_link"
18854 case "(($ac_try" in
18855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856   *) ac_try_echo=$ac_try;;
18857 esac
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859   (eval "$ac_link") 2>conftest.er1
18860   ac_status=$?
18861   grep -v '^ *+' conftest.er1 >conftest.err
18862   rm -f conftest.er1
18863   cat conftest.err >&5
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); } && {
18866          test -z "$ac_c_werror_flag" ||
18867          test ! -s conftest.err
18868        } && test -s conftest$ac_exeext &&
18869        $as_test_x conftest$ac_exeext; then
18870   ac_cv_string_strcasecmp=yes
18871 else
18872   echo "$as_me: failed program was:" >&5
18873 sed 's/^/| /' conftest.$ac_ext >&5
18874
18875         ac_cv_string_strcasecmp=no
18876
18877 fi
18878
18879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18880       conftest$ac_exeext conftest.$ac_ext
18881
18882 fi
18883 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
18884 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
18885
18886       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
18887           cat >>confdefs.h <<\_ACEOF
18888 #define HAVE_STRCASECMP_IN_STRING_H 1
18889 _ACEOF
18890
18891       else
18892           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
18893 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
18894 if test "${ac_cv_strings_strcasecmp+set}" = set; then
18895   echo $ECHO_N "(cached) $ECHO_C" >&6
18896 else
18897
18898               cat >conftest.$ac_ext <<_ACEOF
18899 /* confdefs.h.  */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h.  */
18904
18905                   #include <strings.h>
18906
18907 int
18908 main ()
18909 {
18910
18911                       strcasecmp("foo", "bar");
18912
18913   ;
18914   return 0;
18915 }
18916 _ACEOF
18917 rm -f conftest.$ac_objext conftest$ac_exeext
18918 if { (ac_try="$ac_link"
18919 case "(($ac_try" in
18920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921   *) ac_try_echo=$ac_try;;
18922 esac
18923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18924   (eval "$ac_link") 2>conftest.er1
18925   ac_status=$?
18926   grep -v '^ *+' conftest.er1 >conftest.err
18927   rm -f conftest.er1
18928   cat conftest.err >&5
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); } && {
18931          test -z "$ac_c_werror_flag" ||
18932          test ! -s conftest.err
18933        } && test -s conftest$ac_exeext &&
18934        $as_test_x conftest$ac_exeext; then
18935   ac_cv_strings_strcasecmp=yes
18936 else
18937   echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18939
18940         ac_cv_strings_strcasecmp=no
18941
18942 fi
18943
18944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18945       conftest$ac_exeext conftest.$ac_ext
18946
18947 fi
18948 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
18949 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
18950
18951           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
18952               cat >>confdefs.h <<\_ACEOF
18953 #define HAVE_STRCASECMP_IN_STRINGS_H 1
18954 _ACEOF
18955
18956           else
18957               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
18958 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
18959    { (exit 1); exit 1; }; }
18960           fi
18961       fi
18962
18963         ;;
18964 esac
18965
18966
18967 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18968 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
18969 if test "${ac_cv_header_stdc+set}" = set; then
18970   echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972   cat >conftest.$ac_ext <<_ACEOF
18973 /* confdefs.h.  */
18974 _ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h.  */
18978 #include <stdlib.h>
18979 #include <stdarg.h>
18980 #include <string.h>
18981 #include <float.h>
18982
18983 int
18984 main ()
18985 {
18986
18987   ;
18988   return 0;
18989 }
18990 _ACEOF
18991 rm -f conftest.$ac_objext
18992 if { (ac_try="$ac_compile"
18993 case "(($ac_try" in
18994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995   *) ac_try_echo=$ac_try;;
18996 esac
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998   (eval "$ac_compile") 2>conftest.er1
18999   ac_status=$?
19000   grep -v '^ *+' conftest.er1 >conftest.err
19001   rm -f conftest.er1
19002   cat conftest.err >&5
19003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004   (exit $ac_status); } && {
19005          test -z "$ac_c_werror_flag" ||
19006          test ! -s conftest.err
19007        } && test -s conftest.$ac_objext; then
19008   ac_cv_header_stdc=yes
19009 else
19010   echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19012
19013         ac_cv_header_stdc=no
19014 fi
19015
19016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19017
19018 if test $ac_cv_header_stdc = yes; then
19019   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19020   cat >conftest.$ac_ext <<_ACEOF
19021 /* confdefs.h.  */
19022 _ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h.  */
19026 #include <string.h>
19027
19028 _ACEOF
19029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19030   $EGREP "memchr" >/dev/null 2>&1; then
19031   :
19032 else
19033   ac_cv_header_stdc=no
19034 fi
19035 rm -f conftest*
19036
19037 fi
19038
19039 if test $ac_cv_header_stdc = yes; then
19040   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19041   cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h.  */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h.  */
19047 #include <stdlib.h>
19048
19049 _ACEOF
19050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19051   $EGREP "free" >/dev/null 2>&1; then
19052   :
19053 else
19054   ac_cv_header_stdc=no
19055 fi
19056 rm -f conftest*
19057
19058 fi
19059
19060 if test $ac_cv_header_stdc = yes; then
19061   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19062   if test "$cross_compiling" = yes; then
19063   :
19064 else
19065   cat >conftest.$ac_ext <<_ACEOF
19066 /* confdefs.h.  */
19067 _ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h.  */
19071 #include <ctype.h>
19072 #include <stdlib.h>
19073 #if ((' ' & 0x0FF) == 0x020)
19074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19076 #else
19077 # define ISLOWER(c) \
19078                    (('a' <= (c) && (c) <= 'i') \
19079                      || ('j' <= (c) && (c) <= 'r') \
19080                      || ('s' <= (c) && (c) <= 'z'))
19081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19082 #endif
19083
19084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19085 int
19086 main ()
19087 {
19088   int i;
19089   for (i = 0; i < 256; i++)
19090     if (XOR (islower (i), ISLOWER (i))
19091         || toupper (i) != TOUPPER (i))
19092       return 2;
19093   return 0;
19094 }
19095 _ACEOF
19096 rm -f conftest$ac_exeext
19097 if { (ac_try="$ac_link"
19098 case "(($ac_try" in
19099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19100   *) ac_try_echo=$ac_try;;
19101 esac
19102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19103   (eval "$ac_link") 2>&5
19104   ac_status=$?
19105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19107   { (case "(($ac_try" in
19108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109   *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112   (eval "$ac_try") 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; }; then
19116   :
19117 else
19118   echo "$as_me: program exited with status $ac_status" >&5
19119 echo "$as_me: failed program was:" >&5
19120 sed 's/^/| /' conftest.$ac_ext >&5
19121
19122 ( exit $ac_status )
19123 ac_cv_header_stdc=no
19124 fi
19125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19126 fi
19127
19128
19129 fi
19130 fi
19131 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19132 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19133 if test $ac_cv_header_stdc = yes; then
19134
19135 cat >>confdefs.h <<\_ACEOF
19136 #define STDC_HEADERS 1
19137 _ACEOF
19138
19139 fi
19140
19141 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
19152                   inttypes.h stdint.h unistd.h
19153 do
19154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19158   echo $ECHO_N "(cached) $ECHO_C" >&6
19159 else
19160   cat >conftest.$ac_ext <<_ACEOF
19161 /* confdefs.h.  */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h.  */
19166 $ac_includes_default
19167
19168 #include <$ac_header>
19169 _ACEOF
19170 rm -f conftest.$ac_objext
19171 if { (ac_try="$ac_compile"
19172 case "(($ac_try" in
19173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174   *) ac_try_echo=$ac_try;;
19175 esac
19176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19177   (eval "$ac_compile") 2>conftest.er1
19178   ac_status=$?
19179   grep -v '^ *+' conftest.er1 >conftest.err
19180   rm -f conftest.er1
19181   cat conftest.err >&5
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); } && {
19184          test -z "$ac_c_werror_flag" ||
19185          test ! -s conftest.err
19186        } && test -s conftest.$ac_objext; then
19187   eval "$as_ac_Header=yes"
19188 else
19189   echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19191
19192         eval "$as_ac_Header=no"
19193 fi
19194
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19196 fi
19197 ac_res=`eval echo '${'$as_ac_Header'}'`
19198                { echo "$as_me:$LINENO: result: $ac_res" >&5
19199 echo "${ECHO_T}$ac_res" >&6; }
19200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19201   cat >>confdefs.h <<_ACEOF
19202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19203 _ACEOF
19204
19205 fi
19206
19207 done
19208
19209
19210
19211
19212 for ac_header in langinfo.h wchar.h
19213 do
19214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19218   echo $ECHO_N "(cached) $ECHO_C" >&6
19219 else
19220   cat >conftest.$ac_ext <<_ACEOF
19221 /* confdefs.h.  */
19222 _ACEOF
19223 cat confdefs.h >>conftest.$ac_ext
19224 cat >>conftest.$ac_ext <<_ACEOF
19225 /* end confdefs.h.  */
19226 $ac_includes_default
19227
19228 #include <$ac_header>
19229 _ACEOF
19230 rm -f conftest.$ac_objext
19231 if { (ac_try="$ac_compile"
19232 case "(($ac_try" in
19233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234   *) ac_try_echo=$ac_try;;
19235 esac
19236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237   (eval "$ac_compile") 2>conftest.er1
19238   ac_status=$?
19239   grep -v '^ *+' conftest.er1 >conftest.err
19240   rm -f conftest.er1
19241   cat conftest.err >&5
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); } && {
19244          test -z "$ac_c_werror_flag" ||
19245          test ! -s conftest.err
19246        } && test -s conftest.$ac_objext; then
19247   eval "$as_ac_Header=yes"
19248 else
19249   echo "$as_me: failed program was:" >&5
19250 sed 's/^/| /' conftest.$ac_ext >&5
19251
19252         eval "$as_ac_Header=no"
19253 fi
19254
19255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19256 fi
19257 ac_res=`eval echo '${'$as_ac_Header'}'`
19258                { echo "$as_me:$LINENO: result: $ac_res" >&5
19259 echo "${ECHO_T}$ac_res" >&6; }
19260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19261   cat >>confdefs.h <<_ACEOF
19262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19263 _ACEOF
19264
19265 fi
19266
19267 done
19268
19269
19270 if test "$ac_cv_header_wchar_h" != "yes"; then
19271
19272 for ac_header in wcstr.h
19273 do
19274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19278   echo $ECHO_N "(cached) $ECHO_C" >&6
19279 else
19280   cat >conftest.$ac_ext <<_ACEOF
19281 /* confdefs.h.  */
19282 _ACEOF
19283 cat confdefs.h >>conftest.$ac_ext
19284 cat >>conftest.$ac_ext <<_ACEOF
19285 /* end confdefs.h.  */
19286 $ac_includes_default
19287
19288 #include <$ac_header>
19289 _ACEOF
19290 rm -f conftest.$ac_objext
19291 if { (ac_try="$ac_compile"
19292 case "(($ac_try" in
19293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294   *) ac_try_echo=$ac_try;;
19295 esac
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297   (eval "$ac_compile") 2>conftest.er1
19298   ac_status=$?
19299   grep -v '^ *+' conftest.er1 >conftest.err
19300   rm -f conftest.er1
19301   cat conftest.err >&5
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); } && {
19304          test -z "$ac_c_werror_flag" ||
19305          test ! -s conftest.err
19306        } && test -s conftest.$ac_objext; then
19307   eval "$as_ac_Header=yes"
19308 else
19309   echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19311
19312         eval "$as_ac_Header=no"
19313 fi
19314
19315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19316 fi
19317 ac_res=`eval echo '${'$as_ac_Header'}'`
19318                { echo "$as_me:$LINENO: result: $ac_res" >&5
19319 echo "${ECHO_T}$ac_res" >&6; }
19320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19321   cat >>confdefs.h <<_ACEOF
19322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19323 _ACEOF
19324
19325 fi
19326
19327 done
19328
19329 fi
19330
19331 case "${host}" in
19332   *-pc-os2_emx | *-pc-os2-emx )
19333                   if test $ac_cv_header_langinfo_h = "yes" \
19334                 -a \(   "$wx_cv_gccversion" = "EMX2" \
19335                      -o "$wx_cv_gccversion" = "EMX3" \
19336                      -o "$wx_cv_gccversion" = "Innotek5" \); then
19337           LIBS="$LIBS -lintl"
19338       fi
19339   ;;
19340 esac
19341
19342 if test "$USE_UNIX" = 1 ; then
19343
19344 for ac_header in sys/select.h
19345 do
19346 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19350   echo $ECHO_N "(cached) $ECHO_C" >&6
19351 else
19352   cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h.  */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h.  */
19358 $ac_includes_default
19359
19360 #include <$ac_header>
19361 _ACEOF
19362 rm -f conftest.$ac_objext
19363 if { (ac_try="$ac_compile"
19364 case "(($ac_try" in
19365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19366   *) ac_try_echo=$ac_try;;
19367 esac
19368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19369   (eval "$ac_compile") 2>conftest.er1
19370   ac_status=$?
19371   grep -v '^ *+' conftest.er1 >conftest.err
19372   rm -f conftest.er1
19373   cat conftest.err >&5
19374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375   (exit $ac_status); } && {
19376          test -z "$ac_c_werror_flag" ||
19377          test ! -s conftest.err
19378        } && test -s conftest.$ac_objext; then
19379   eval "$as_ac_Header=yes"
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384         eval "$as_ac_Header=no"
19385 fi
19386
19387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388 fi
19389 ac_res=`eval echo '${'$as_ac_Header'}'`
19390                { echo "$as_me:$LINENO: result: $ac_res" >&5
19391 echo "${ECHO_T}$ac_res" >&6; }
19392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19393   cat >>confdefs.h <<_ACEOF
19394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19395 _ACEOF
19396
19397 fi
19398
19399 done
19400
19401 fi
19402
19403
19404 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19405 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
19406 if test "${ac_cv_c_const+set}" = set; then
19407   echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19409   cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h.  */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h.  */
19415
19416 int
19417 main ()
19418 {
19419 /* FIXME: Include the comments suggested by Paul. */
19420 #ifndef __cplusplus
19421   /* Ultrix mips cc rejects this.  */
19422   typedef int charset[2];
19423   const charset cs;
19424   /* SunOS 4.1.1 cc rejects this.  */
19425   char const *const *pcpcc;
19426   char **ppc;
19427   /* NEC SVR4.0.2 mips cc rejects this.  */
19428   struct point {int x, y;};
19429   static struct point const zero = {0,0};
19430   /* AIX XL C 1.02.0.0 rejects this.
19431      It does not let you subtract one const X* pointer from another in
19432      an arm of an if-expression whose if-part is not a constant
19433      expression */
19434   const char *g = "string";
19435   pcpcc = &g + (g ? g-g : 0);
19436   /* HPUX 7.0 cc rejects these. */
19437   ++pcpcc;
19438   ppc = (char**) pcpcc;
19439   pcpcc = (char const *const *) ppc;
19440   { /* SCO 3.2v4 cc rejects this.  */
19441     char *t;
19442     char const *s = 0 ? (char *) 0 : (char const *) 0;
19443
19444     *t++ = 0;
19445     if (s) return 0;
19446   }
19447   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19448     int x[] = {25, 17};
19449     const int *foo = &x[0];
19450     ++foo;
19451   }
19452   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19453     typedef const int *iptr;
19454     iptr p = 0;
19455     ++p;
19456   }
19457   { /* AIX XL C 1.02.0.0 rejects this saying
19458        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19459     struct s { int j; const int *ap[3]; };
19460     struct s *b; b->j = 5;
19461   }
19462   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19463     const int foo = 10;
19464     if (!foo) return 0;
19465   }
19466   return !cs[0] && !zero.x;
19467 #endif
19468
19469   ;
19470   return 0;
19471 }
19472 _ACEOF
19473 rm -f conftest.$ac_objext
19474 if { (ac_try="$ac_compile"
19475 case "(($ac_try" in
19476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19477   *) ac_try_echo=$ac_try;;
19478 esac
19479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19480   (eval "$ac_compile") 2>conftest.er1
19481   ac_status=$?
19482   grep -v '^ *+' conftest.er1 >conftest.err
19483   rm -f conftest.er1
19484   cat conftest.err >&5
19485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486   (exit $ac_status); } && {
19487          test -z "$ac_c_werror_flag" ||
19488          test ! -s conftest.err
19489        } && test -s conftest.$ac_objext; then
19490   ac_cv_c_const=yes
19491 else
19492   echo "$as_me: failed program was:" >&5
19493 sed 's/^/| /' conftest.$ac_ext >&5
19494
19495         ac_cv_c_const=no
19496 fi
19497
19498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19499 fi
19500 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19501 echo "${ECHO_T}$ac_cv_c_const" >&6; }
19502 if test $ac_cv_c_const = no; then
19503
19504 cat >>confdefs.h <<\_ACEOF
19505 #define const
19506 _ACEOF
19507
19508 fi
19509
19510 { echo "$as_me:$LINENO: checking for inline" >&5
19511 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
19512 if test "${ac_cv_c_inline+set}" = set; then
19513   echo $ECHO_N "(cached) $ECHO_C" >&6
19514 else
19515   ac_cv_c_inline=no
19516 for ac_kw in inline __inline__ __inline; do
19517   cat >conftest.$ac_ext <<_ACEOF
19518 /* confdefs.h.  */
19519 _ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h.  */
19523 #ifndef __cplusplus
19524 typedef int foo_t;
19525 static $ac_kw foo_t static_foo () {return 0; }
19526 $ac_kw foo_t foo () {return 0; }
19527 #endif
19528
19529 _ACEOF
19530 rm -f conftest.$ac_objext
19531 if { (ac_try="$ac_compile"
19532 case "(($ac_try" in
19533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19534   *) ac_try_echo=$ac_try;;
19535 esac
19536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19537   (eval "$ac_compile") 2>conftest.er1
19538   ac_status=$?
19539   grep -v '^ *+' conftest.er1 >conftest.err
19540   rm -f conftest.er1
19541   cat conftest.err >&5
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); } && {
19544          test -z "$ac_c_werror_flag" ||
19545          test ! -s conftest.err
19546        } && test -s conftest.$ac_objext; then
19547   ac_cv_c_inline=$ac_kw
19548 else
19549   echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19551
19552
19553 fi
19554
19555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19556   test "$ac_cv_c_inline" != no && break
19557 done
19558
19559 fi
19560 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19561 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
19562
19563
19564 case $ac_cv_c_inline in
19565   inline | yes) ;;
19566   *)
19567     case $ac_cv_c_inline in
19568       no) ac_val=;;
19569       *) ac_val=$ac_cv_c_inline;;
19570     esac
19571     cat >>confdefs.h <<_ACEOF
19572 #ifndef __cplusplus
19573 #define inline $ac_val
19574 #endif
19575 _ACEOF
19576     ;;
19577 esac
19578
19579
19580 { echo "$as_me:$LINENO: checking for short" >&5
19581 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
19582 if test "${ac_cv_type_short+set}" = set; then
19583   echo $ECHO_N "(cached) $ECHO_C" >&6
19584 else
19585   cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h.  */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h.  */
19591 $ac_includes_default
19592 typedef short ac__type_new_;
19593 int
19594 main ()
19595 {
19596 if ((ac__type_new_ *) 0)
19597   return 0;
19598 if (sizeof (ac__type_new_))
19599   return 0;
19600   ;
19601   return 0;
19602 }
19603 _ACEOF
19604 rm -f conftest.$ac_objext
19605 if { (ac_try="$ac_compile"
19606 case "(($ac_try" in
19607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608   *) ac_try_echo=$ac_try;;
19609 esac
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611   (eval "$ac_compile") 2>conftest.er1
19612   ac_status=$?
19613   grep -v '^ *+' conftest.er1 >conftest.err
19614   rm -f conftest.er1
19615   cat conftest.err >&5
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); } && {
19618          test -z "$ac_c_werror_flag" ||
19619          test ! -s conftest.err
19620        } && test -s conftest.$ac_objext; then
19621   ac_cv_type_short=yes
19622 else
19623   echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19625
19626         ac_cv_type_short=no
19627 fi
19628
19629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630 fi
19631 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
19632 echo "${ECHO_T}$ac_cv_type_short" >&6; }
19633
19634 # The cast to long int works around a bug in the HP C Compiler
19635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19637 # This bug is HP SR number 8606223364.
19638 { echo "$as_me:$LINENO: checking size of short" >&5
19639 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
19640 if test "${ac_cv_sizeof_short+set}" = set; then
19641   echo $ECHO_N "(cached) $ECHO_C" >&6
19642 else
19643   if test "$cross_compiling" = yes; then
19644   # Depending upon the size, compute the lo and hi bounds.
19645 cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h.  */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h.  */
19651 $ac_includes_default
19652    typedef short ac__type_sizeof_;
19653 int
19654 main ()
19655 {
19656 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
19657 test_array [0] = 0
19658
19659   ;
19660   return 0;
19661 }
19662 _ACEOF
19663 rm -f conftest.$ac_objext
19664 if { (ac_try="$ac_compile"
19665 case "(($ac_try" in
19666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667   *) ac_try_echo=$ac_try;;
19668 esac
19669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670   (eval "$ac_compile") 2>conftest.er1
19671   ac_status=$?
19672   grep -v '^ *+' conftest.er1 >conftest.err
19673   rm -f conftest.er1
19674   cat conftest.err >&5
19675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676   (exit $ac_status); } && {
19677          test -z "$ac_c_werror_flag" ||
19678          test ! -s conftest.err
19679        } && test -s conftest.$ac_objext; then
19680   ac_lo=0 ac_mid=0
19681   while :; do
19682     cat >conftest.$ac_ext <<_ACEOF
19683 /* confdefs.h.  */
19684 _ACEOF
19685 cat confdefs.h >>conftest.$ac_ext
19686 cat >>conftest.$ac_ext <<_ACEOF
19687 /* end confdefs.h.  */
19688 $ac_includes_default
19689    typedef short ac__type_sizeof_;
19690 int
19691 main ()
19692 {
19693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19694 test_array [0] = 0
19695
19696   ;
19697   return 0;
19698 }
19699 _ACEOF
19700 rm -f conftest.$ac_objext
19701 if { (ac_try="$ac_compile"
19702 case "(($ac_try" in
19703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19704   *) ac_try_echo=$ac_try;;
19705 esac
19706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19707   (eval "$ac_compile") 2>conftest.er1
19708   ac_status=$?
19709   grep -v '^ *+' conftest.er1 >conftest.err
19710   rm -f conftest.er1
19711   cat conftest.err >&5
19712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713   (exit $ac_status); } && {
19714          test -z "$ac_c_werror_flag" ||
19715          test ! -s conftest.err
19716        } && test -s conftest.$ac_objext; then
19717   ac_hi=$ac_mid; break
19718 else
19719   echo "$as_me: failed program was:" >&5
19720 sed 's/^/| /' conftest.$ac_ext >&5
19721
19722         ac_lo=`expr $ac_mid + 1`
19723                         if test $ac_lo -le $ac_mid; then
19724                           ac_lo= ac_hi=
19725                           break
19726                         fi
19727                         ac_mid=`expr 2 '*' $ac_mid + 1`
19728 fi
19729
19730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19731   done
19732 else
19733   echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19735
19736         cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h.  */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h.  */
19742 $ac_includes_default
19743    typedef short ac__type_sizeof_;
19744 int
19745 main ()
19746 {
19747 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
19748 test_array [0] = 0
19749
19750   ;
19751   return 0;
19752 }
19753 _ACEOF
19754 rm -f conftest.$ac_objext
19755 if { (ac_try="$ac_compile"
19756 case "(($ac_try" in
19757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758   *) ac_try_echo=$ac_try;;
19759 esac
19760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761   (eval "$ac_compile") 2>conftest.er1
19762   ac_status=$?
19763   grep -v '^ *+' conftest.er1 >conftest.err
19764   rm -f conftest.er1
19765   cat conftest.err >&5
19766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767   (exit $ac_status); } && {
19768          test -z "$ac_c_werror_flag" ||
19769          test ! -s conftest.err
19770        } && test -s conftest.$ac_objext; then
19771   ac_hi=-1 ac_mid=-1
19772   while :; do
19773     cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h.  */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h.  */
19779 $ac_includes_default
19780    typedef short ac__type_sizeof_;
19781 int
19782 main ()
19783 {
19784 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
19785 test_array [0] = 0
19786
19787   ;
19788   return 0;
19789 }
19790 _ACEOF
19791 rm -f conftest.$ac_objext
19792 if { (ac_try="$ac_compile"
19793 case "(($ac_try" in
19794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795   *) ac_try_echo=$ac_try;;
19796 esac
19797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19798   (eval "$ac_compile") 2>conftest.er1
19799   ac_status=$?
19800   grep -v '^ *+' conftest.er1 >conftest.err
19801   rm -f conftest.er1
19802   cat conftest.err >&5
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); } && {
19805          test -z "$ac_c_werror_flag" ||
19806          test ! -s conftest.err
19807        } && test -s conftest.$ac_objext; then
19808   ac_lo=$ac_mid; break
19809 else
19810   echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19812
19813         ac_hi=`expr '(' $ac_mid ')' - 1`
19814                         if test $ac_mid -le $ac_hi; then
19815                           ac_lo= ac_hi=
19816                           break
19817                         fi
19818                         ac_mid=`expr 2 '*' $ac_mid`
19819 fi
19820
19821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19822   done
19823 else
19824   echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19826
19827         ac_lo= ac_hi=
19828 fi
19829
19830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19831 fi
19832
19833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19834 # Binary search between lo and hi bounds.
19835 while test "x$ac_lo" != "x$ac_hi"; do
19836   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19837   cat >conftest.$ac_ext <<_ACEOF
19838 /* confdefs.h.  */
19839 _ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h.  */
19843 $ac_includes_default
19844    typedef short ac__type_sizeof_;
19845 int
19846 main ()
19847 {
19848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
19849 test_array [0] = 0
19850
19851   ;
19852   return 0;
19853 }
19854 _ACEOF
19855 rm -f conftest.$ac_objext
19856 if { (ac_try="$ac_compile"
19857 case "(($ac_try" in
19858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859   *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862   (eval "$ac_compile") 2>conftest.er1
19863   ac_status=$?
19864   grep -v '^ *+' conftest.er1 >conftest.err
19865   rm -f conftest.er1
19866   cat conftest.err >&5
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); } && {
19869          test -z "$ac_c_werror_flag" ||
19870          test ! -s conftest.err
19871        } && test -s conftest.$ac_objext; then
19872   ac_hi=$ac_mid
19873 else
19874   echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877         ac_lo=`expr '(' $ac_mid ')' + 1`
19878 fi
19879
19880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19881 done
19882 case $ac_lo in
19883 ?*) ac_cv_sizeof_short=$ac_lo;;
19884 '') if test "$ac_cv_type_short" = yes; then
19885      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19886 See \`config.log' for more details." >&5
19887 echo "$as_me: error: cannot compute sizeof (short)
19888 See \`config.log' for more details." >&2;}
19889    { (exit 77); exit 77; }; }
19890    else
19891      ac_cv_sizeof_short=0
19892    fi ;;
19893 esac
19894 else
19895   cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h.  */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h.  */
19901 $ac_includes_default
19902    typedef short ac__type_sizeof_;
19903 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
19904 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
19905 #include <stdio.h>
19906 #include <stdlib.h>
19907 int
19908 main ()
19909 {
19910
19911   FILE *f = fopen ("conftest.val", "w");
19912   if (! f)
19913     return 1;
19914   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
19915     {
19916       long int i = longval ();
19917       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19918         return 1;
19919       fprintf (f, "%ld\n", i);
19920     }
19921   else
19922     {
19923       unsigned long int i = ulongval ();
19924       if (i != ((long int) (sizeof (ac__type_sizeof_))))
19925         return 1;
19926       fprintf (f, "%lu\n", i);
19927     }
19928   return ferror (f) || fclose (f) != 0;
19929
19930   ;
19931   return 0;
19932 }
19933 _ACEOF
19934 rm -f conftest$ac_exeext
19935 if { (ac_try="$ac_link"
19936 case "(($ac_try" in
19937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938   *) ac_try_echo=$ac_try;;
19939 esac
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941   (eval "$ac_link") 2>&5
19942   ac_status=$?
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19945   { (case "(($ac_try" in
19946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947   *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950   (eval "$ac_try") 2>&5
19951   ac_status=$?
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); }; }; then
19954   ac_cv_sizeof_short=`cat conftest.val`
19955 else
19956   echo "$as_me: program exited with status $ac_status" >&5
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19959
19960 ( exit $ac_status )
19961 if test "$ac_cv_type_short" = yes; then
19962      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
19963 See \`config.log' for more details." >&5
19964 echo "$as_me: error: cannot compute sizeof (short)
19965 See \`config.log' for more details." >&2;}
19966    { (exit 77); exit 77; }; }
19967    else
19968      ac_cv_sizeof_short=0
19969    fi
19970 fi
19971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19972 fi
19973 rm -f conftest.val
19974 fi
19975 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
19976 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
19977
19978
19979
19980 cat >>confdefs.h <<_ACEOF
19981 #define SIZEOF_SHORT $ac_cv_sizeof_short
19982 _ACEOF
19983
19984
19985 { echo "$as_me:$LINENO: checking for void *" >&5
19986 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
19987 if test "${ac_cv_type_void_p+set}" = set; then
19988   echo $ECHO_N "(cached) $ECHO_C" >&6
19989 else
19990   cat >conftest.$ac_ext <<_ACEOF
19991 /* confdefs.h.  */
19992 _ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h.  */
19996 $ac_includes_default
19997 typedef void * ac__type_new_;
19998 int
19999 main ()
20000 {
20001 if ((ac__type_new_ *) 0)
20002   return 0;
20003 if (sizeof (ac__type_new_))
20004   return 0;
20005   ;
20006   return 0;
20007 }
20008 _ACEOF
20009 rm -f conftest.$ac_objext
20010 if { (ac_try="$ac_compile"
20011 case "(($ac_try" in
20012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013   *) ac_try_echo=$ac_try;;
20014 esac
20015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20016   (eval "$ac_compile") 2>conftest.er1
20017   ac_status=$?
20018   grep -v '^ *+' conftest.er1 >conftest.err
20019   rm -f conftest.er1
20020   cat conftest.err >&5
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } && {
20023          test -z "$ac_c_werror_flag" ||
20024          test ! -s conftest.err
20025        } && test -s conftest.$ac_objext; then
20026   ac_cv_type_void_p=yes
20027 else
20028   echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20030
20031         ac_cv_type_void_p=no
20032 fi
20033
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035 fi
20036 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
20037 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
20038
20039 # The cast to long int works around a bug in the HP C Compiler
20040 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20041 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20042 # This bug is HP SR number 8606223364.
20043 { echo "$as_me:$LINENO: checking size of void *" >&5
20044 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
20045 if test "${ac_cv_sizeof_void_p+set}" = set; then
20046   echo $ECHO_N "(cached) $ECHO_C" >&6
20047 else
20048   if test "$cross_compiling" = yes; then
20049   # Depending upon the size, compute the lo and hi bounds.
20050 cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h.  */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h.  */
20056 $ac_includes_default
20057    typedef void * ac__type_sizeof_;
20058 int
20059 main ()
20060 {
20061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20062 test_array [0] = 0
20063
20064   ;
20065   return 0;
20066 }
20067 _ACEOF
20068 rm -f conftest.$ac_objext
20069 if { (ac_try="$ac_compile"
20070 case "(($ac_try" in
20071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072   *) ac_try_echo=$ac_try;;
20073 esac
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075   (eval "$ac_compile") 2>conftest.er1
20076   ac_status=$?
20077   grep -v '^ *+' conftest.er1 >conftest.err
20078   rm -f conftest.er1
20079   cat conftest.err >&5
20080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081   (exit $ac_status); } && {
20082          test -z "$ac_c_werror_flag" ||
20083          test ! -s conftest.err
20084        } && test -s conftest.$ac_objext; then
20085   ac_lo=0 ac_mid=0
20086   while :; do
20087     cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h.  */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h.  */
20093 $ac_includes_default
20094    typedef void * ac__type_sizeof_;
20095 int
20096 main ()
20097 {
20098 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20099 test_array [0] = 0
20100
20101   ;
20102   return 0;
20103 }
20104 _ACEOF
20105 rm -f conftest.$ac_objext
20106 if { (ac_try="$ac_compile"
20107 case "(($ac_try" in
20108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109   *) ac_try_echo=$ac_try;;
20110 esac
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112   (eval "$ac_compile") 2>conftest.er1
20113   ac_status=$?
20114   grep -v '^ *+' conftest.er1 >conftest.err
20115   rm -f conftest.er1
20116   cat conftest.err >&5
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); } && {
20119          test -z "$ac_c_werror_flag" ||
20120          test ! -s conftest.err
20121        } && test -s conftest.$ac_objext; then
20122   ac_hi=$ac_mid; break
20123 else
20124   echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20126
20127         ac_lo=`expr $ac_mid + 1`
20128                         if test $ac_lo -le $ac_mid; then
20129                           ac_lo= ac_hi=
20130                           break
20131                         fi
20132                         ac_mid=`expr 2 '*' $ac_mid + 1`
20133 fi
20134
20135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20136   done
20137 else
20138   echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20140
20141         cat >conftest.$ac_ext <<_ACEOF
20142 /* confdefs.h.  */
20143 _ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h.  */
20147 $ac_includes_default
20148    typedef void * ac__type_sizeof_;
20149 int
20150 main ()
20151 {
20152 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20153 test_array [0] = 0
20154
20155   ;
20156   return 0;
20157 }
20158 _ACEOF
20159 rm -f conftest.$ac_objext
20160 if { (ac_try="$ac_compile"
20161 case "(($ac_try" in
20162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163   *) ac_try_echo=$ac_try;;
20164 esac
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166   (eval "$ac_compile") 2>conftest.er1
20167   ac_status=$?
20168   grep -v '^ *+' conftest.er1 >conftest.err
20169   rm -f conftest.er1
20170   cat conftest.err >&5
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); } && {
20173          test -z "$ac_c_werror_flag" ||
20174          test ! -s conftest.err
20175        } && test -s conftest.$ac_objext; then
20176   ac_hi=-1 ac_mid=-1
20177   while :; do
20178     cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h.  */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h.  */
20184 $ac_includes_default
20185    typedef void * ac__type_sizeof_;
20186 int
20187 main ()
20188 {
20189 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20190 test_array [0] = 0
20191
20192   ;
20193   return 0;
20194 }
20195 _ACEOF
20196 rm -f conftest.$ac_objext
20197 if { (ac_try="$ac_compile"
20198 case "(($ac_try" in
20199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200   *) ac_try_echo=$ac_try;;
20201 esac
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203   (eval "$ac_compile") 2>conftest.er1
20204   ac_status=$?
20205   grep -v '^ *+' conftest.er1 >conftest.err
20206   rm -f conftest.er1
20207   cat conftest.err >&5
20208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209   (exit $ac_status); } && {
20210          test -z "$ac_c_werror_flag" ||
20211          test ! -s conftest.err
20212        } && test -s conftest.$ac_objext; then
20213   ac_lo=$ac_mid; break
20214 else
20215   echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20217
20218         ac_hi=`expr '(' $ac_mid ')' - 1`
20219                         if test $ac_mid -le $ac_hi; then
20220                           ac_lo= ac_hi=
20221                           break
20222                         fi
20223                         ac_mid=`expr 2 '*' $ac_mid`
20224 fi
20225
20226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20227   done
20228 else
20229   echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232         ac_lo= ac_hi=
20233 fi
20234
20235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236 fi
20237
20238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20239 # Binary search between lo and hi bounds.
20240 while test "x$ac_lo" != "x$ac_hi"; do
20241   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20242   cat >conftest.$ac_ext <<_ACEOF
20243 /* confdefs.h.  */
20244 _ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h.  */
20248 $ac_includes_default
20249    typedef void * ac__type_sizeof_;
20250 int
20251 main ()
20252 {
20253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20254 test_array [0] = 0
20255
20256   ;
20257   return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext
20261 if { (ac_try="$ac_compile"
20262 case "(($ac_try" in
20263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264   *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267   (eval "$ac_compile") 2>conftest.er1
20268   ac_status=$?
20269   grep -v '^ *+' conftest.er1 >conftest.err
20270   rm -f conftest.er1
20271   cat conftest.err >&5
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } && {
20274          test -z "$ac_c_werror_flag" ||
20275          test ! -s conftest.err
20276        } && test -s conftest.$ac_objext; then
20277   ac_hi=$ac_mid
20278 else
20279   echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282         ac_lo=`expr '(' $ac_mid ')' + 1`
20283 fi
20284
20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286 done
20287 case $ac_lo in
20288 ?*) ac_cv_sizeof_void_p=$ac_lo;;
20289 '') if test "$ac_cv_type_void_p" = yes; then
20290      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20291 See \`config.log' for more details." >&5
20292 echo "$as_me: error: cannot compute sizeof (void *)
20293 See \`config.log' for more details." >&2;}
20294    { (exit 77); exit 77; }; }
20295    else
20296      ac_cv_sizeof_void_p=0
20297    fi ;;
20298 esac
20299 else
20300   cat >conftest.$ac_ext <<_ACEOF
20301 /* confdefs.h.  */
20302 _ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h.  */
20306 $ac_includes_default
20307    typedef void * ac__type_sizeof_;
20308 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20309 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20310 #include <stdio.h>
20311 #include <stdlib.h>
20312 int
20313 main ()
20314 {
20315
20316   FILE *f = fopen ("conftest.val", "w");
20317   if (! f)
20318     return 1;
20319   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20320     {
20321       long int i = longval ();
20322       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20323         return 1;
20324       fprintf (f, "%ld\n", i);
20325     }
20326   else
20327     {
20328       unsigned long int i = ulongval ();
20329       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20330         return 1;
20331       fprintf (f, "%lu\n", i);
20332     }
20333   return ferror (f) || fclose (f) != 0;
20334
20335   ;
20336   return 0;
20337 }
20338 _ACEOF
20339 rm -f conftest$ac_exeext
20340 if { (ac_try="$ac_link"
20341 case "(($ac_try" in
20342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343   *) ac_try_echo=$ac_try;;
20344 esac
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346   (eval "$ac_link") 2>&5
20347   ac_status=$?
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20350   { (case "(($ac_try" in
20351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352   *) ac_try_echo=$ac_try;;
20353 esac
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355   (eval "$ac_try") 2>&5
20356   ac_status=$?
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); }; }; then
20359   ac_cv_sizeof_void_p=`cat conftest.val`
20360 else
20361   echo "$as_me: program exited with status $ac_status" >&5
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20364
20365 ( exit $ac_status )
20366 if test "$ac_cv_type_void_p" = yes; then
20367      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
20368 See \`config.log' for more details." >&5
20369 echo "$as_me: error: cannot compute sizeof (void *)
20370 See \`config.log' for more details." >&2;}
20371    { (exit 77); exit 77; }; }
20372    else
20373      ac_cv_sizeof_void_p=0
20374    fi
20375 fi
20376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20377 fi
20378 rm -f conftest.val
20379 fi
20380 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
20381 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
20382
20383
20384
20385 cat >>confdefs.h <<_ACEOF
20386 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20387 _ACEOF
20388
20389
20390 { echo "$as_me:$LINENO: checking for int" >&5
20391 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
20392 if test "${ac_cv_type_int+set}" = set; then
20393   echo $ECHO_N "(cached) $ECHO_C" >&6
20394 else
20395   cat >conftest.$ac_ext <<_ACEOF
20396 /* confdefs.h.  */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h.  */
20401 $ac_includes_default
20402 typedef int ac__type_new_;
20403 int
20404 main ()
20405 {
20406 if ((ac__type_new_ *) 0)
20407   return 0;
20408 if (sizeof (ac__type_new_))
20409   return 0;
20410   ;
20411   return 0;
20412 }
20413 _ACEOF
20414 rm -f conftest.$ac_objext
20415 if { (ac_try="$ac_compile"
20416 case "(($ac_try" in
20417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418   *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421   (eval "$ac_compile") 2>conftest.er1
20422   ac_status=$?
20423   grep -v '^ *+' conftest.er1 >conftest.err
20424   rm -f conftest.er1
20425   cat conftest.err >&5
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); } && {
20428          test -z "$ac_c_werror_flag" ||
20429          test ! -s conftest.err
20430        } && test -s conftest.$ac_objext; then
20431   ac_cv_type_int=yes
20432 else
20433   echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20435
20436         ac_cv_type_int=no
20437 fi
20438
20439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440 fi
20441 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20442 echo "${ECHO_T}$ac_cv_type_int" >&6; }
20443
20444 # The cast to long int works around a bug in the HP C Compiler
20445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20447 # This bug is HP SR number 8606223364.
20448 { echo "$as_me:$LINENO: checking size of int" >&5
20449 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
20450 if test "${ac_cv_sizeof_int+set}" = set; then
20451   echo $ECHO_N "(cached) $ECHO_C" >&6
20452 else
20453   if test "$cross_compiling" = yes; then
20454   # Depending upon the size, compute the lo and hi bounds.
20455 cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h.  */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h.  */
20461 $ac_includes_default
20462    typedef int ac__type_sizeof_;
20463 int
20464 main ()
20465 {
20466 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20467 test_array [0] = 0
20468
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext
20474 if { (ac_try="$ac_compile"
20475 case "(($ac_try" in
20476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477   *) ac_try_echo=$ac_try;;
20478 esac
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480   (eval "$ac_compile") 2>conftest.er1
20481   ac_status=$?
20482   grep -v '^ *+' conftest.er1 >conftest.err
20483   rm -f conftest.er1
20484   cat conftest.err >&5
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); } && {
20487          test -z "$ac_c_werror_flag" ||
20488          test ! -s conftest.err
20489        } && test -s conftest.$ac_objext; then
20490   ac_lo=0 ac_mid=0
20491   while :; do
20492     cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498 $ac_includes_default
20499    typedef int ac__type_sizeof_;
20500 int
20501 main ()
20502 {
20503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20504 test_array [0] = 0
20505
20506   ;
20507   return 0;
20508 }
20509 _ACEOF
20510 rm -f conftest.$ac_objext
20511 if { (ac_try="$ac_compile"
20512 case "(($ac_try" in
20513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514   *) ac_try_echo=$ac_try;;
20515 esac
20516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517   (eval "$ac_compile") 2>conftest.er1
20518   ac_status=$?
20519   grep -v '^ *+' conftest.er1 >conftest.err
20520   rm -f conftest.er1
20521   cat conftest.err >&5
20522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523   (exit $ac_status); } && {
20524          test -z "$ac_c_werror_flag" ||
20525          test ! -s conftest.err
20526        } && test -s conftest.$ac_objext; then
20527   ac_hi=$ac_mid; break
20528 else
20529   echo "$as_me: failed program was:" >&5
20530 sed 's/^/| /' conftest.$ac_ext >&5
20531
20532         ac_lo=`expr $ac_mid + 1`
20533                         if test $ac_lo -le $ac_mid; then
20534                           ac_lo= ac_hi=
20535                           break
20536                         fi
20537                         ac_mid=`expr 2 '*' $ac_mid + 1`
20538 fi
20539
20540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20541   done
20542 else
20543   echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20545
20546         cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h.  */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h.  */
20552 $ac_includes_default
20553    typedef int ac__type_sizeof_;
20554 int
20555 main ()
20556 {
20557 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20558 test_array [0] = 0
20559
20560   ;
20561   return 0;
20562 }
20563 _ACEOF
20564 rm -f conftest.$ac_objext
20565 if { (ac_try="$ac_compile"
20566 case "(($ac_try" in
20567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568   *) ac_try_echo=$ac_try;;
20569 esac
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571   (eval "$ac_compile") 2>conftest.er1
20572   ac_status=$?
20573   grep -v '^ *+' conftest.er1 >conftest.err
20574   rm -f conftest.er1
20575   cat conftest.err >&5
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); } && {
20578          test -z "$ac_c_werror_flag" ||
20579          test ! -s conftest.err
20580        } && test -s conftest.$ac_objext; then
20581   ac_hi=-1 ac_mid=-1
20582   while :; do
20583     cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h.  */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h.  */
20589 $ac_includes_default
20590    typedef int ac__type_sizeof_;
20591 int
20592 main ()
20593 {
20594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20595 test_array [0] = 0
20596
20597   ;
20598   return 0;
20599 }
20600 _ACEOF
20601 rm -f conftest.$ac_objext
20602 if { (ac_try="$ac_compile"
20603 case "(($ac_try" in
20604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605   *) ac_try_echo=$ac_try;;
20606 esac
20607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20608   (eval "$ac_compile") 2>conftest.er1
20609   ac_status=$?
20610   grep -v '^ *+' conftest.er1 >conftest.err
20611   rm -f conftest.er1
20612   cat conftest.err >&5
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); } && {
20615          test -z "$ac_c_werror_flag" ||
20616          test ! -s conftest.err
20617        } && test -s conftest.$ac_objext; then
20618   ac_lo=$ac_mid; break
20619 else
20620   echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623         ac_hi=`expr '(' $ac_mid ')' - 1`
20624                         if test $ac_mid -le $ac_hi; then
20625                           ac_lo= ac_hi=
20626                           break
20627                         fi
20628                         ac_mid=`expr 2 '*' $ac_mid`
20629 fi
20630
20631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20632   done
20633 else
20634   echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20636
20637         ac_lo= ac_hi=
20638 fi
20639
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641 fi
20642
20643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644 # Binary search between lo and hi bounds.
20645 while test "x$ac_lo" != "x$ac_hi"; do
20646   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20647   cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h.  */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h.  */
20653 $ac_includes_default
20654    typedef int ac__type_sizeof_;
20655 int
20656 main ()
20657 {
20658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20659 test_array [0] = 0
20660
20661   ;
20662   return 0;
20663 }
20664 _ACEOF
20665 rm -f conftest.$ac_objext
20666 if { (ac_try="$ac_compile"
20667 case "(($ac_try" in
20668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20669   *) ac_try_echo=$ac_try;;
20670 esac
20671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20672   (eval "$ac_compile") 2>conftest.er1
20673   ac_status=$?
20674   grep -v '^ *+' conftest.er1 >conftest.err
20675   rm -f conftest.er1
20676   cat conftest.err >&5
20677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678   (exit $ac_status); } && {
20679          test -z "$ac_c_werror_flag" ||
20680          test ! -s conftest.err
20681        } && test -s conftest.$ac_objext; then
20682   ac_hi=$ac_mid
20683 else
20684   echo "$as_me: failed program was:" >&5
20685 sed 's/^/| /' conftest.$ac_ext >&5
20686
20687         ac_lo=`expr '(' $ac_mid ')' + 1`
20688 fi
20689
20690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20691 done
20692 case $ac_lo in
20693 ?*) ac_cv_sizeof_int=$ac_lo;;
20694 '') if test "$ac_cv_type_int" = yes; then
20695      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20696 See \`config.log' for more details." >&5
20697 echo "$as_me: error: cannot compute sizeof (int)
20698 See \`config.log' for more details." >&2;}
20699    { (exit 77); exit 77; }; }
20700    else
20701      ac_cv_sizeof_int=0
20702    fi ;;
20703 esac
20704 else
20705   cat >conftest.$ac_ext <<_ACEOF
20706 /* confdefs.h.  */
20707 _ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h.  */
20711 $ac_includes_default
20712    typedef int ac__type_sizeof_;
20713 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20714 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20715 #include <stdio.h>
20716 #include <stdlib.h>
20717 int
20718 main ()
20719 {
20720
20721   FILE *f = fopen ("conftest.val", "w");
20722   if (! f)
20723     return 1;
20724   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20725     {
20726       long int i = longval ();
20727       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20728         return 1;
20729       fprintf (f, "%ld\n", i);
20730     }
20731   else
20732     {
20733       unsigned long int i = ulongval ();
20734       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20735         return 1;
20736       fprintf (f, "%lu\n", i);
20737     }
20738   return ferror (f) || fclose (f) != 0;
20739
20740   ;
20741   return 0;
20742 }
20743 _ACEOF
20744 rm -f conftest$ac_exeext
20745 if { (ac_try="$ac_link"
20746 case "(($ac_try" in
20747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748   *) ac_try_echo=$ac_try;;
20749 esac
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751   (eval "$ac_link") 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20755   { (case "(($ac_try" in
20756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757   *) ac_try_echo=$ac_try;;
20758 esac
20759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20760   (eval "$ac_try") 2>&5
20761   ac_status=$?
20762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763   (exit $ac_status); }; }; then
20764   ac_cv_sizeof_int=`cat conftest.val`
20765 else
20766   echo "$as_me: program exited with status $ac_status" >&5
20767 echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20769
20770 ( exit $ac_status )
20771 if test "$ac_cv_type_int" = yes; then
20772      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
20773 See \`config.log' for more details." >&5
20774 echo "$as_me: error: cannot compute sizeof (int)
20775 See \`config.log' for more details." >&2;}
20776    { (exit 77); exit 77; }; }
20777    else
20778      ac_cv_sizeof_int=0
20779    fi
20780 fi
20781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20782 fi
20783 rm -f conftest.val
20784 fi
20785 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
20786 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
20787
20788
20789
20790 cat >>confdefs.h <<_ACEOF
20791 #define SIZEOF_INT $ac_cv_sizeof_int
20792 _ACEOF
20793
20794
20795 { echo "$as_me:$LINENO: checking for long" >&5
20796 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
20797 if test "${ac_cv_type_long+set}" = set; then
20798   echo $ECHO_N "(cached) $ECHO_C" >&6
20799 else
20800   cat >conftest.$ac_ext <<_ACEOF
20801 /* confdefs.h.  */
20802 _ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h.  */
20806 $ac_includes_default
20807 typedef long ac__type_new_;
20808 int
20809 main ()
20810 {
20811 if ((ac__type_new_ *) 0)
20812   return 0;
20813 if (sizeof (ac__type_new_))
20814   return 0;
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 rm -f conftest.$ac_objext
20820 if { (ac_try="$ac_compile"
20821 case "(($ac_try" in
20822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823   *) ac_try_echo=$ac_try;;
20824 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826   (eval "$ac_compile") 2>conftest.er1
20827   ac_status=$?
20828   grep -v '^ *+' conftest.er1 >conftest.err
20829   rm -f conftest.er1
20830   cat conftest.err >&5
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); } && {
20833          test -z "$ac_c_werror_flag" ||
20834          test ! -s conftest.err
20835        } && test -s conftest.$ac_objext; then
20836   ac_cv_type_long=yes
20837 else
20838   echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20840
20841         ac_cv_type_long=no
20842 fi
20843
20844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20845 fi
20846 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
20847 echo "${ECHO_T}$ac_cv_type_long" >&6; }
20848
20849 # The cast to long int works around a bug in the HP C Compiler
20850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20852 # This bug is HP SR number 8606223364.
20853 { echo "$as_me:$LINENO: checking size of long" >&5
20854 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
20855 if test "${ac_cv_sizeof_long+set}" = set; then
20856   echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858   if test "$cross_compiling" = yes; then
20859   # Depending upon the size, compute the lo and hi bounds.
20860 cat >conftest.$ac_ext <<_ACEOF
20861 /* confdefs.h.  */
20862 _ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h.  */
20866 $ac_includes_default
20867    typedef long ac__type_sizeof_;
20868 int
20869 main ()
20870 {
20871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20872 test_array [0] = 0
20873
20874   ;
20875   return 0;
20876 }
20877 _ACEOF
20878 rm -f conftest.$ac_objext
20879 if { (ac_try="$ac_compile"
20880 case "(($ac_try" in
20881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882   *) ac_try_echo=$ac_try;;
20883 esac
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885   (eval "$ac_compile") 2>conftest.er1
20886   ac_status=$?
20887   grep -v '^ *+' conftest.er1 >conftest.err
20888   rm -f conftest.er1
20889   cat conftest.err >&5
20890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891   (exit $ac_status); } && {
20892          test -z "$ac_c_werror_flag" ||
20893          test ! -s conftest.err
20894        } && test -s conftest.$ac_objext; then
20895   ac_lo=0 ac_mid=0
20896   while :; do
20897     cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h.  */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h.  */
20903 $ac_includes_default
20904    typedef long ac__type_sizeof_;
20905 int
20906 main ()
20907 {
20908 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20909 test_array [0] = 0
20910
20911   ;
20912   return 0;
20913 }
20914 _ACEOF
20915 rm -f conftest.$ac_objext
20916 if { (ac_try="$ac_compile"
20917 case "(($ac_try" in
20918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919   *) ac_try_echo=$ac_try;;
20920 esac
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922   (eval "$ac_compile") 2>conftest.er1
20923   ac_status=$?
20924   grep -v '^ *+' conftest.er1 >conftest.err
20925   rm -f conftest.er1
20926   cat conftest.err >&5
20927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928   (exit $ac_status); } && {
20929          test -z "$ac_c_werror_flag" ||
20930          test ! -s conftest.err
20931        } && test -s conftest.$ac_objext; then
20932   ac_hi=$ac_mid; break
20933 else
20934   echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937         ac_lo=`expr $ac_mid + 1`
20938                         if test $ac_lo -le $ac_mid; then
20939                           ac_lo= ac_hi=
20940                           break
20941                         fi
20942                         ac_mid=`expr 2 '*' $ac_mid + 1`
20943 fi
20944
20945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946   done
20947 else
20948   echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.$ac_ext >&5
20950
20951         cat >conftest.$ac_ext <<_ACEOF
20952 /* confdefs.h.  */
20953 _ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h.  */
20957 $ac_includes_default
20958    typedef long ac__type_sizeof_;
20959 int
20960 main ()
20961 {
20962 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20963 test_array [0] = 0
20964
20965   ;
20966   return 0;
20967 }
20968 _ACEOF
20969 rm -f conftest.$ac_objext
20970 if { (ac_try="$ac_compile"
20971 case "(($ac_try" in
20972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973   *) ac_try_echo=$ac_try;;
20974 esac
20975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976   (eval "$ac_compile") 2>conftest.er1
20977   ac_status=$?
20978   grep -v '^ *+' conftest.er1 >conftest.err
20979   rm -f conftest.er1
20980   cat conftest.err >&5
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); } && {
20983          test -z "$ac_c_werror_flag" ||
20984          test ! -s conftest.err
20985        } && test -s conftest.$ac_objext; then
20986   ac_hi=-1 ac_mid=-1
20987   while :; do
20988     cat >conftest.$ac_ext <<_ACEOF
20989 /* confdefs.h.  */
20990 _ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h.  */
20994 $ac_includes_default
20995    typedef long ac__type_sizeof_;
20996 int
20997 main ()
20998 {
20999 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21000 test_array [0] = 0
21001
21002   ;
21003   return 0;
21004 }
21005 _ACEOF
21006 rm -f conftest.$ac_objext
21007 if { (ac_try="$ac_compile"
21008 case "(($ac_try" in
21009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010   *) ac_try_echo=$ac_try;;
21011 esac
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013   (eval "$ac_compile") 2>conftest.er1
21014   ac_status=$?
21015   grep -v '^ *+' conftest.er1 >conftest.err
21016   rm -f conftest.er1
21017   cat conftest.err >&5
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); } && {
21020          test -z "$ac_c_werror_flag" ||
21021          test ! -s conftest.err
21022        } && test -s conftest.$ac_objext; then
21023   ac_lo=$ac_mid; break
21024 else
21025   echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21027
21028         ac_hi=`expr '(' $ac_mid ')' - 1`
21029                         if test $ac_mid -le $ac_hi; then
21030                           ac_lo= ac_hi=
21031                           break
21032                         fi
21033                         ac_mid=`expr 2 '*' $ac_mid`
21034 fi
21035
21036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21037   done
21038 else
21039   echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21041
21042         ac_lo= ac_hi=
21043 fi
21044
21045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21046 fi
21047
21048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21049 # Binary search between lo and hi bounds.
21050 while test "x$ac_lo" != "x$ac_hi"; do
21051   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21052   cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h.  */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h.  */
21058 $ac_includes_default
21059    typedef long ac__type_sizeof_;
21060 int
21061 main ()
21062 {
21063 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21064 test_array [0] = 0
21065
21066   ;
21067   return 0;
21068 }
21069 _ACEOF
21070 rm -f conftest.$ac_objext
21071 if { (ac_try="$ac_compile"
21072 case "(($ac_try" in
21073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074   *) ac_try_echo=$ac_try;;
21075 esac
21076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21077   (eval "$ac_compile") 2>conftest.er1
21078   ac_status=$?
21079   grep -v '^ *+' conftest.er1 >conftest.err
21080   rm -f conftest.er1
21081   cat conftest.err >&5
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); } && {
21084          test -z "$ac_c_werror_flag" ||
21085          test ! -s conftest.err
21086        } && test -s conftest.$ac_objext; then
21087   ac_hi=$ac_mid
21088 else
21089   echo "$as_me: failed program was:" >&5
21090 sed 's/^/| /' conftest.$ac_ext >&5
21091
21092         ac_lo=`expr '(' $ac_mid ')' + 1`
21093 fi
21094
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21096 done
21097 case $ac_lo in
21098 ?*) ac_cv_sizeof_long=$ac_lo;;
21099 '') if test "$ac_cv_type_long" = yes; then
21100      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21101 See \`config.log' for more details." >&5
21102 echo "$as_me: error: cannot compute sizeof (long)
21103 See \`config.log' for more details." >&2;}
21104    { (exit 77); exit 77; }; }
21105    else
21106      ac_cv_sizeof_long=0
21107    fi ;;
21108 esac
21109 else
21110   cat >conftest.$ac_ext <<_ACEOF
21111 /* confdefs.h.  */
21112 _ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h.  */
21116 $ac_includes_default
21117    typedef long ac__type_sizeof_;
21118 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21119 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21120 #include <stdio.h>
21121 #include <stdlib.h>
21122 int
21123 main ()
21124 {
21125
21126   FILE *f = fopen ("conftest.val", "w");
21127   if (! f)
21128     return 1;
21129   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21130     {
21131       long int i = longval ();
21132       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21133         return 1;
21134       fprintf (f, "%ld\n", i);
21135     }
21136   else
21137     {
21138       unsigned long int i = ulongval ();
21139       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21140         return 1;
21141       fprintf (f, "%lu\n", i);
21142     }
21143   return ferror (f) || fclose (f) != 0;
21144
21145   ;
21146   return 0;
21147 }
21148 _ACEOF
21149 rm -f conftest$ac_exeext
21150 if { (ac_try="$ac_link"
21151 case "(($ac_try" in
21152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153   *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156   (eval "$ac_link") 2>&5
21157   ac_status=$?
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21160   { (case "(($ac_try" in
21161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162   *) ac_try_echo=$ac_try;;
21163 esac
21164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165   (eval "$ac_try") 2>&5
21166   ac_status=$?
21167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168   (exit $ac_status); }; }; then
21169   ac_cv_sizeof_long=`cat conftest.val`
21170 else
21171   echo "$as_me: program exited with status $ac_status" >&5
21172 echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21174
21175 ( exit $ac_status )
21176 if test "$ac_cv_type_long" = yes; then
21177      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
21178 See \`config.log' for more details." >&5
21179 echo "$as_me: error: cannot compute sizeof (long)
21180 See \`config.log' for more details." >&2;}
21181    { (exit 77); exit 77; }; }
21182    else
21183      ac_cv_sizeof_long=0
21184    fi
21185 fi
21186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21187 fi
21188 rm -f conftest.val
21189 fi
21190 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21191 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
21192
21193
21194
21195 cat >>confdefs.h <<_ACEOF
21196 #define SIZEOF_LONG $ac_cv_sizeof_long
21197 _ACEOF
21198
21199
21200 { echo "$as_me:$LINENO: checking for size_t" >&5
21201 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21202 if test "${ac_cv_type_size_t+set}" = set; then
21203   echo $ECHO_N "(cached) $ECHO_C" >&6
21204 else
21205   cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h.  */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h.  */
21211 $ac_includes_default
21212 typedef size_t ac__type_new_;
21213 int
21214 main ()
21215 {
21216 if ((ac__type_new_ *) 0)
21217   return 0;
21218 if (sizeof (ac__type_new_))
21219   return 0;
21220   ;
21221   return 0;
21222 }
21223 _ACEOF
21224 rm -f conftest.$ac_objext
21225 if { (ac_try="$ac_compile"
21226 case "(($ac_try" in
21227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228   *) ac_try_echo=$ac_try;;
21229 esac
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231   (eval "$ac_compile") 2>conftest.er1
21232   ac_status=$?
21233   grep -v '^ *+' conftest.er1 >conftest.err
21234   rm -f conftest.er1
21235   cat conftest.err >&5
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); } && {
21238          test -z "$ac_c_werror_flag" ||
21239          test ! -s conftest.err
21240        } && test -s conftest.$ac_objext; then
21241   ac_cv_type_size_t=yes
21242 else
21243   echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21245
21246         ac_cv_type_size_t=no
21247 fi
21248
21249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250 fi
21251 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21252 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21253
21254 # The cast to long int works around a bug in the HP C Compiler
21255 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21256 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21257 # This bug is HP SR number 8606223364.
21258 { echo "$as_me:$LINENO: checking size of size_t" >&5
21259 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21260 if test "${ac_cv_sizeof_size_t+set}" = set; then
21261   echo $ECHO_N "(cached) $ECHO_C" >&6
21262 else
21263   if test "$cross_compiling" = yes; then
21264   # Depending upon the size, compute the lo and hi bounds.
21265 cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h.  */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h.  */
21271 $ac_includes_default
21272    typedef size_t ac__type_sizeof_;
21273 int
21274 main ()
21275 {
21276 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21277 test_array [0] = 0
21278
21279   ;
21280   return 0;
21281 }
21282 _ACEOF
21283 rm -f conftest.$ac_objext
21284 if { (ac_try="$ac_compile"
21285 case "(($ac_try" in
21286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287   *) ac_try_echo=$ac_try;;
21288 esac
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290   (eval "$ac_compile") 2>conftest.er1
21291   ac_status=$?
21292   grep -v '^ *+' conftest.er1 >conftest.err
21293   rm -f conftest.er1
21294   cat conftest.err >&5
21295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); } && {
21297          test -z "$ac_c_werror_flag" ||
21298          test ! -s conftest.err
21299        } && test -s conftest.$ac_objext; then
21300   ac_lo=0 ac_mid=0
21301   while :; do
21302     cat >conftest.$ac_ext <<_ACEOF
21303 /* confdefs.h.  */
21304 _ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h.  */
21308 $ac_includes_default
21309    typedef size_t ac__type_sizeof_;
21310 int
21311 main ()
21312 {
21313 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21314 test_array [0] = 0
21315
21316   ;
21317   return 0;
21318 }
21319 _ACEOF
21320 rm -f conftest.$ac_objext
21321 if { (ac_try="$ac_compile"
21322 case "(($ac_try" in
21323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324   *) ac_try_echo=$ac_try;;
21325 esac
21326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21327   (eval "$ac_compile") 2>conftest.er1
21328   ac_status=$?
21329   grep -v '^ *+' conftest.er1 >conftest.err
21330   rm -f conftest.er1
21331   cat conftest.err >&5
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); } && {
21334          test -z "$ac_c_werror_flag" ||
21335          test ! -s conftest.err
21336        } && test -s conftest.$ac_objext; then
21337   ac_hi=$ac_mid; break
21338 else
21339   echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21341
21342         ac_lo=`expr $ac_mid + 1`
21343                         if test $ac_lo -le $ac_mid; then
21344                           ac_lo= ac_hi=
21345                           break
21346                         fi
21347                         ac_mid=`expr 2 '*' $ac_mid + 1`
21348 fi
21349
21350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21351   done
21352 else
21353   echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356         cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h.  */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h.  */
21362 $ac_includes_default
21363    typedef size_t ac__type_sizeof_;
21364 int
21365 main ()
21366 {
21367 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21368 test_array [0] = 0
21369
21370   ;
21371   return 0;
21372 }
21373 _ACEOF
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378   *) ac_try_echo=$ac_try;;
21379 esac
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381   (eval "$ac_compile") 2>conftest.er1
21382   ac_status=$?
21383   grep -v '^ *+' conftest.er1 >conftest.err
21384   rm -f conftest.er1
21385   cat conftest.err >&5
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); } && {
21388          test -z "$ac_c_werror_flag" ||
21389          test ! -s conftest.err
21390        } && test -s conftest.$ac_objext; then
21391   ac_hi=-1 ac_mid=-1
21392   while :; do
21393     cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h.  */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h.  */
21399 $ac_includes_default
21400    typedef size_t ac__type_sizeof_;
21401 int
21402 main ()
21403 {
21404 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21405 test_array [0] = 0
21406
21407   ;
21408   return 0;
21409 }
21410 _ACEOF
21411 rm -f conftest.$ac_objext
21412 if { (ac_try="$ac_compile"
21413 case "(($ac_try" in
21414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415   *) ac_try_echo=$ac_try;;
21416 esac
21417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418   (eval "$ac_compile") 2>conftest.er1
21419   ac_status=$?
21420   grep -v '^ *+' conftest.er1 >conftest.err
21421   rm -f conftest.er1
21422   cat conftest.err >&5
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); } && {
21425          test -z "$ac_c_werror_flag" ||
21426          test ! -s conftest.err
21427        } && test -s conftest.$ac_objext; then
21428   ac_lo=$ac_mid; break
21429 else
21430   echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21432
21433         ac_hi=`expr '(' $ac_mid ')' - 1`
21434                         if test $ac_mid -le $ac_hi; then
21435                           ac_lo= ac_hi=
21436                           break
21437                         fi
21438                         ac_mid=`expr 2 '*' $ac_mid`
21439 fi
21440
21441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21442   done
21443 else
21444   echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21446
21447         ac_lo= ac_hi=
21448 fi
21449
21450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21451 fi
21452
21453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21454 # Binary search between lo and hi bounds.
21455 while test "x$ac_lo" != "x$ac_hi"; do
21456   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21457   cat >conftest.$ac_ext <<_ACEOF
21458 /* confdefs.h.  */
21459 _ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h.  */
21463 $ac_includes_default
21464    typedef size_t ac__type_sizeof_;
21465 int
21466 main ()
21467 {
21468 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21469 test_array [0] = 0
21470
21471   ;
21472   return 0;
21473 }
21474 _ACEOF
21475 rm -f conftest.$ac_objext
21476 if { (ac_try="$ac_compile"
21477 case "(($ac_try" in
21478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21479   *) ac_try_echo=$ac_try;;
21480 esac
21481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21482   (eval "$ac_compile") 2>conftest.er1
21483   ac_status=$?
21484   grep -v '^ *+' conftest.er1 >conftest.err
21485   rm -f conftest.er1
21486   cat conftest.err >&5
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); } && {
21489          test -z "$ac_c_werror_flag" ||
21490          test ! -s conftest.err
21491        } && test -s conftest.$ac_objext; then
21492   ac_hi=$ac_mid
21493 else
21494   echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21496
21497         ac_lo=`expr '(' $ac_mid ')' + 1`
21498 fi
21499
21500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21501 done
21502 case $ac_lo in
21503 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21504 '') if test "$ac_cv_type_size_t" = yes; then
21505      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21506 See \`config.log' for more details." >&5
21507 echo "$as_me: error: cannot compute sizeof (size_t)
21508 See \`config.log' for more details." >&2;}
21509    { (exit 77); exit 77; }; }
21510    else
21511      ac_cv_sizeof_size_t=0
21512    fi ;;
21513 esac
21514 else
21515   cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h.  */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h.  */
21521 $ac_includes_default
21522    typedef size_t ac__type_sizeof_;
21523 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21524 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21525 #include <stdio.h>
21526 #include <stdlib.h>
21527 int
21528 main ()
21529 {
21530
21531   FILE *f = fopen ("conftest.val", "w");
21532   if (! f)
21533     return 1;
21534   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21535     {
21536       long int i = longval ();
21537       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21538         return 1;
21539       fprintf (f, "%ld\n", i);
21540     }
21541   else
21542     {
21543       unsigned long int i = ulongval ();
21544       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21545         return 1;
21546       fprintf (f, "%lu\n", i);
21547     }
21548   return ferror (f) || fclose (f) != 0;
21549
21550   ;
21551   return 0;
21552 }
21553 _ACEOF
21554 rm -f conftest$ac_exeext
21555 if { (ac_try="$ac_link"
21556 case "(($ac_try" in
21557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558   *) ac_try_echo=$ac_try;;
21559 esac
21560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561   (eval "$ac_link") 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21565   { (case "(($ac_try" in
21566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21567   *) ac_try_echo=$ac_try;;
21568 esac
21569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21570   (eval "$ac_try") 2>&5
21571   ac_status=$?
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); }; }; then
21574   ac_cv_sizeof_size_t=`cat conftest.val`
21575 else
21576   echo "$as_me: program exited with status $ac_status" >&5
21577 echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21579
21580 ( exit $ac_status )
21581 if test "$ac_cv_type_size_t" = yes; then
21582      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21583 See \`config.log' for more details." >&5
21584 echo "$as_me: error: cannot compute sizeof (size_t)
21585 See \`config.log' for more details." >&2;}
21586    { (exit 77); exit 77; }; }
21587    else
21588      ac_cv_sizeof_size_t=0
21589    fi
21590 fi
21591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21592 fi
21593 rm -f conftest.val
21594 fi
21595 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21596 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21597
21598
21599
21600 cat >>confdefs.h <<_ACEOF
21601 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21602 _ACEOF
21603
21604
21605
21606 case "${host}" in
21607     arm-*-linux* )
21608         { echo "$as_me:$LINENO: checking for long long" >&5
21609 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
21610 if test "${ac_cv_type_long_long+set}" = set; then
21611   echo $ECHO_N "(cached) $ECHO_C" >&6
21612 else
21613   cat >conftest.$ac_ext <<_ACEOF
21614 /* confdefs.h.  */
21615 _ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h.  */
21619 $ac_includes_default
21620 typedef long long ac__type_new_;
21621 int
21622 main ()
21623 {
21624 if ((ac__type_new_ *) 0)
21625   return 0;
21626 if (sizeof (ac__type_new_))
21627   return 0;
21628   ;
21629   return 0;
21630 }
21631 _ACEOF
21632 rm -f conftest.$ac_objext
21633 if { (ac_try="$ac_compile"
21634 case "(($ac_try" in
21635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636   *) ac_try_echo=$ac_try;;
21637 esac
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639   (eval "$ac_compile") 2>conftest.er1
21640   ac_status=$?
21641   grep -v '^ *+' conftest.er1 >conftest.err
21642   rm -f conftest.er1
21643   cat conftest.err >&5
21644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); } && {
21646          test -z "$ac_c_werror_flag" ||
21647          test ! -s conftest.err
21648        } && test -s conftest.$ac_objext; then
21649   ac_cv_type_long_long=yes
21650 else
21651   echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21653
21654         ac_cv_type_long_long=no
21655 fi
21656
21657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21658 fi
21659 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21660 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
21661
21662 # The cast to long int works around a bug in the HP C Compiler
21663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21665 # This bug is HP SR number 8606223364.
21666 { echo "$as_me:$LINENO: checking size of long long" >&5
21667 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
21668 if test "${ac_cv_sizeof_long_long+set}" = set; then
21669   echo $ECHO_N "(cached) $ECHO_C" >&6
21670 else
21671   if test "$cross_compiling" = yes; then
21672   # Depending upon the size, compute the lo and hi bounds.
21673 cat >conftest.$ac_ext <<_ACEOF
21674 /* confdefs.h.  */
21675 _ACEOF
21676 cat confdefs.h >>conftest.$ac_ext
21677 cat >>conftest.$ac_ext <<_ACEOF
21678 /* end confdefs.h.  */
21679 $ac_includes_default
21680    typedef long long ac__type_sizeof_;
21681 int
21682 main ()
21683 {
21684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21685 test_array [0] = 0
21686
21687   ;
21688   return 0;
21689 }
21690 _ACEOF
21691 rm -f conftest.$ac_objext
21692 if { (ac_try="$ac_compile"
21693 case "(($ac_try" in
21694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695   *) ac_try_echo=$ac_try;;
21696 esac
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698   (eval "$ac_compile") 2>conftest.er1
21699   ac_status=$?
21700   grep -v '^ *+' conftest.er1 >conftest.err
21701   rm -f conftest.er1
21702   cat conftest.err >&5
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); } && {
21705          test -z "$ac_c_werror_flag" ||
21706          test ! -s conftest.err
21707        } && test -s conftest.$ac_objext; then
21708   ac_lo=0 ac_mid=0
21709   while :; do
21710     cat >conftest.$ac_ext <<_ACEOF
21711 /* confdefs.h.  */
21712 _ACEOF
21713 cat confdefs.h >>conftest.$ac_ext
21714 cat >>conftest.$ac_ext <<_ACEOF
21715 /* end confdefs.h.  */
21716 $ac_includes_default
21717    typedef long long ac__type_sizeof_;
21718 int
21719 main ()
21720 {
21721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21722 test_array [0] = 0
21723
21724   ;
21725   return 0;
21726 }
21727 _ACEOF
21728 rm -f conftest.$ac_objext
21729 if { (ac_try="$ac_compile"
21730 case "(($ac_try" in
21731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732   *) ac_try_echo=$ac_try;;
21733 esac
21734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735   (eval "$ac_compile") 2>conftest.er1
21736   ac_status=$?
21737   grep -v '^ *+' conftest.er1 >conftest.err
21738   rm -f conftest.er1
21739   cat conftest.err >&5
21740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741   (exit $ac_status); } && {
21742          test -z "$ac_c_werror_flag" ||
21743          test ! -s conftest.err
21744        } && test -s conftest.$ac_objext; then
21745   ac_hi=$ac_mid; break
21746 else
21747   echo "$as_me: failed program was:" >&5
21748 sed 's/^/| /' conftest.$ac_ext >&5
21749
21750         ac_lo=`expr $ac_mid + 1`
21751                         if test $ac_lo -le $ac_mid; then
21752                           ac_lo= ac_hi=
21753                           break
21754                         fi
21755                         ac_mid=`expr 2 '*' $ac_mid + 1`
21756 fi
21757
21758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21759   done
21760 else
21761   echo "$as_me: failed program was:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21763
21764         cat >conftest.$ac_ext <<_ACEOF
21765 /* confdefs.h.  */
21766 _ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h.  */
21770 $ac_includes_default
21771    typedef long long ac__type_sizeof_;
21772 int
21773 main ()
21774 {
21775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21776 test_array [0] = 0
21777
21778   ;
21779   return 0;
21780 }
21781 _ACEOF
21782 rm -f conftest.$ac_objext
21783 if { (ac_try="$ac_compile"
21784 case "(($ac_try" in
21785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786   *) ac_try_echo=$ac_try;;
21787 esac
21788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21789   (eval "$ac_compile") 2>conftest.er1
21790   ac_status=$?
21791   grep -v '^ *+' conftest.er1 >conftest.err
21792   rm -f conftest.er1
21793   cat conftest.err >&5
21794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795   (exit $ac_status); } && {
21796          test -z "$ac_c_werror_flag" ||
21797          test ! -s conftest.err
21798        } && test -s conftest.$ac_objext; then
21799   ac_hi=-1 ac_mid=-1
21800   while :; do
21801     cat >conftest.$ac_ext <<_ACEOF
21802 /* confdefs.h.  */
21803 _ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h.  */
21807 $ac_includes_default
21808    typedef long long ac__type_sizeof_;
21809 int
21810 main ()
21811 {
21812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21813 test_array [0] = 0
21814
21815   ;
21816   return 0;
21817 }
21818 _ACEOF
21819 rm -f conftest.$ac_objext
21820 if { (ac_try="$ac_compile"
21821 case "(($ac_try" in
21822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823   *) ac_try_echo=$ac_try;;
21824 esac
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826   (eval "$ac_compile") 2>conftest.er1
21827   ac_status=$?
21828   grep -v '^ *+' conftest.er1 >conftest.err
21829   rm -f conftest.er1
21830   cat conftest.err >&5
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); } && {
21833          test -z "$ac_c_werror_flag" ||
21834          test ! -s conftest.err
21835        } && test -s conftest.$ac_objext; then
21836   ac_lo=$ac_mid; break
21837 else
21838   echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21840
21841         ac_hi=`expr '(' $ac_mid ')' - 1`
21842                         if test $ac_mid -le $ac_hi; then
21843                           ac_lo= ac_hi=
21844                           break
21845                         fi
21846                         ac_mid=`expr 2 '*' $ac_mid`
21847 fi
21848
21849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21850   done
21851 else
21852   echo "$as_me: failed program was:" >&5
21853 sed 's/^/| /' conftest.$ac_ext >&5
21854
21855         ac_lo= ac_hi=
21856 fi
21857
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 fi
21860
21861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21862 # Binary search between lo and hi bounds.
21863 while test "x$ac_lo" != "x$ac_hi"; do
21864   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21865   cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h.  */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h.  */
21871 $ac_includes_default
21872    typedef long long ac__type_sizeof_;
21873 int
21874 main ()
21875 {
21876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21877 test_array [0] = 0
21878
21879   ;
21880   return 0;
21881 }
21882 _ACEOF
21883 rm -f conftest.$ac_objext
21884 if { (ac_try="$ac_compile"
21885 case "(($ac_try" in
21886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887   *) ac_try_echo=$ac_try;;
21888 esac
21889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21890   (eval "$ac_compile") 2>conftest.er1
21891   ac_status=$?
21892   grep -v '^ *+' conftest.er1 >conftest.err
21893   rm -f conftest.er1
21894   cat conftest.err >&5
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); } && {
21897          test -z "$ac_c_werror_flag" ||
21898          test ! -s conftest.err
21899        } && test -s conftest.$ac_objext; then
21900   ac_hi=$ac_mid
21901 else
21902   echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21904
21905         ac_lo=`expr '(' $ac_mid ')' + 1`
21906 fi
21907
21908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21909 done
21910 case $ac_lo in
21911 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21912 '') if test "$ac_cv_type_long_long" = yes; then
21913      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21914 See \`config.log' for more details." >&5
21915 echo "$as_me: error: cannot compute sizeof (long long)
21916 See \`config.log' for more details." >&2;}
21917    { (exit 77); exit 77; }; }
21918    else
21919      ac_cv_sizeof_long_long=0
21920    fi ;;
21921 esac
21922 else
21923   cat >conftest.$ac_ext <<_ACEOF
21924 /* confdefs.h.  */
21925 _ACEOF
21926 cat confdefs.h >>conftest.$ac_ext
21927 cat >>conftest.$ac_ext <<_ACEOF
21928 /* end confdefs.h.  */
21929 $ac_includes_default
21930    typedef long long ac__type_sizeof_;
21931 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21932 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21933 #include <stdio.h>
21934 #include <stdlib.h>
21935 int
21936 main ()
21937 {
21938
21939   FILE *f = fopen ("conftest.val", "w");
21940   if (! f)
21941     return 1;
21942   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21943     {
21944       long int i = longval ();
21945       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21946         return 1;
21947       fprintf (f, "%ld\n", i);
21948     }
21949   else
21950     {
21951       unsigned long int i = ulongval ();
21952       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21953         return 1;
21954       fprintf (f, "%lu\n", i);
21955     }
21956   return ferror (f) || fclose (f) != 0;
21957
21958   ;
21959   return 0;
21960 }
21961 _ACEOF
21962 rm -f conftest$ac_exeext
21963 if { (ac_try="$ac_link"
21964 case "(($ac_try" in
21965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966   *) ac_try_echo=$ac_try;;
21967 esac
21968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969   (eval "$ac_link") 2>&5
21970   ac_status=$?
21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21973   { (case "(($ac_try" in
21974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21975   *) ac_try_echo=$ac_try;;
21976 esac
21977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21978   (eval "$ac_try") 2>&5
21979   ac_status=$?
21980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981   (exit $ac_status); }; }; then
21982   ac_cv_sizeof_long_long=`cat conftest.val`
21983 else
21984   echo "$as_me: program exited with status $ac_status" >&5
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21987
21988 ( exit $ac_status )
21989 if test "$ac_cv_type_long_long" = yes; then
21990      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
21991 See \`config.log' for more details." >&5
21992 echo "$as_me: error: cannot compute sizeof (long long)
21993 See \`config.log' for more details." >&2;}
21994    { (exit 77); exit 77; }; }
21995    else
21996      ac_cv_sizeof_long_long=0
21997    fi
21998 fi
21999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22000 fi
22001 rm -f conftest.val
22002 fi
22003 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22004 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22005
22006
22007
22008 cat >>confdefs.h <<_ACEOF
22009 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22010 _ACEOF
22011
22012
22013     ;;
22014     *-hp-hpux* )
22015         { echo "$as_me:$LINENO: checking for long long" >&5
22016 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22017 if test "${ac_cv_type_long_long+set}" = set; then
22018   echo $ECHO_N "(cached) $ECHO_C" >&6
22019 else
22020   cat >conftest.$ac_ext <<_ACEOF
22021 /* confdefs.h.  */
22022 _ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h.  */
22026 $ac_includes_default
22027 typedef long long ac__type_new_;
22028 int
22029 main ()
22030 {
22031 if ((ac__type_new_ *) 0)
22032   return 0;
22033 if (sizeof (ac__type_new_))
22034   return 0;
22035   ;
22036   return 0;
22037 }
22038 _ACEOF
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043   *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046   (eval "$ac_compile") 2>conftest.er1
22047   ac_status=$?
22048   grep -v '^ *+' conftest.er1 >conftest.err
22049   rm -f conftest.er1
22050   cat conftest.err >&5
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); } && {
22053          test -z "$ac_c_werror_flag" ||
22054          test ! -s conftest.err
22055        } && test -s conftest.$ac_objext; then
22056   ac_cv_type_long_long=yes
22057 else
22058   echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22060
22061         ac_cv_type_long_long=no
22062 fi
22063
22064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22065 fi
22066 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22067 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22068
22069 # The cast to long int works around a bug in the HP C Compiler
22070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22072 # This bug is HP SR number 8606223364.
22073 { echo "$as_me:$LINENO: checking size of long long" >&5
22074 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22075 if test "${ac_cv_sizeof_long_long+set}" = set; then
22076   echo $ECHO_N "(cached) $ECHO_C" >&6
22077 else
22078   if test "$cross_compiling" = yes; then
22079   # Depending upon the size, compute the lo and hi bounds.
22080 cat >conftest.$ac_ext <<_ACEOF
22081 /* confdefs.h.  */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h.  */
22086 $ac_includes_default
22087    typedef long long ac__type_sizeof_;
22088 int
22089 main ()
22090 {
22091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22092 test_array [0] = 0
22093
22094   ;
22095   return 0;
22096 }
22097 _ACEOF
22098 rm -f conftest.$ac_objext
22099 if { (ac_try="$ac_compile"
22100 case "(($ac_try" in
22101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102   *) ac_try_echo=$ac_try;;
22103 esac
22104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105   (eval "$ac_compile") 2>conftest.er1
22106   ac_status=$?
22107   grep -v '^ *+' conftest.er1 >conftest.err
22108   rm -f conftest.er1
22109   cat conftest.err >&5
22110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111   (exit $ac_status); } && {
22112          test -z "$ac_c_werror_flag" ||
22113          test ! -s conftest.err
22114        } && test -s conftest.$ac_objext; then
22115   ac_lo=0 ac_mid=0
22116   while :; do
22117     cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h.  */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h.  */
22123 $ac_includes_default
22124    typedef long long ac__type_sizeof_;
22125 int
22126 main ()
22127 {
22128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22129 test_array [0] = 0
22130
22131   ;
22132   return 0;
22133 }
22134 _ACEOF
22135 rm -f conftest.$ac_objext
22136 if { (ac_try="$ac_compile"
22137 case "(($ac_try" in
22138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139   *) ac_try_echo=$ac_try;;
22140 esac
22141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22142   (eval "$ac_compile") 2>conftest.er1
22143   ac_status=$?
22144   grep -v '^ *+' conftest.er1 >conftest.err
22145   rm -f conftest.er1
22146   cat conftest.err >&5
22147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148   (exit $ac_status); } && {
22149          test -z "$ac_c_werror_flag" ||
22150          test ! -s conftest.err
22151        } && test -s conftest.$ac_objext; then
22152   ac_hi=$ac_mid; break
22153 else
22154   echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22156
22157         ac_lo=`expr $ac_mid + 1`
22158                         if test $ac_lo -le $ac_mid; then
22159                           ac_lo= ac_hi=
22160                           break
22161                         fi
22162                         ac_mid=`expr 2 '*' $ac_mid + 1`
22163 fi
22164
22165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22166   done
22167 else
22168   echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22170
22171         cat >conftest.$ac_ext <<_ACEOF
22172 /* confdefs.h.  */
22173 _ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h.  */
22177 $ac_includes_default
22178    typedef long long ac__type_sizeof_;
22179 int
22180 main ()
22181 {
22182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22183 test_array [0] = 0
22184
22185   ;
22186   return 0;
22187 }
22188 _ACEOF
22189 rm -f conftest.$ac_objext
22190 if { (ac_try="$ac_compile"
22191 case "(($ac_try" in
22192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193   *) ac_try_echo=$ac_try;;
22194 esac
22195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22196   (eval "$ac_compile") 2>conftest.er1
22197   ac_status=$?
22198   grep -v '^ *+' conftest.er1 >conftest.err
22199   rm -f conftest.er1
22200   cat conftest.err >&5
22201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202   (exit $ac_status); } && {
22203          test -z "$ac_c_werror_flag" ||
22204          test ! -s conftest.err
22205        } && test -s conftest.$ac_objext; then
22206   ac_hi=-1 ac_mid=-1
22207   while :; do
22208     cat >conftest.$ac_ext <<_ACEOF
22209 /* confdefs.h.  */
22210 _ACEOF
22211 cat confdefs.h >>conftest.$ac_ext
22212 cat >>conftest.$ac_ext <<_ACEOF
22213 /* end confdefs.h.  */
22214 $ac_includes_default
22215    typedef long long ac__type_sizeof_;
22216 int
22217 main ()
22218 {
22219 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22220 test_array [0] = 0
22221
22222   ;
22223   return 0;
22224 }
22225 _ACEOF
22226 rm -f conftest.$ac_objext
22227 if { (ac_try="$ac_compile"
22228 case "(($ac_try" in
22229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22230   *) ac_try_echo=$ac_try;;
22231 esac
22232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22233   (eval "$ac_compile") 2>conftest.er1
22234   ac_status=$?
22235   grep -v '^ *+' conftest.er1 >conftest.err
22236   rm -f conftest.er1
22237   cat conftest.err >&5
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); } && {
22240          test -z "$ac_c_werror_flag" ||
22241          test ! -s conftest.err
22242        } && test -s conftest.$ac_objext; then
22243   ac_lo=$ac_mid; break
22244 else
22245   echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22247
22248         ac_hi=`expr '(' $ac_mid ')' - 1`
22249                         if test $ac_mid -le $ac_hi; then
22250                           ac_lo= ac_hi=
22251                           break
22252                         fi
22253                         ac_mid=`expr 2 '*' $ac_mid`
22254 fi
22255
22256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22257   done
22258 else
22259   echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22261
22262         ac_lo= ac_hi=
22263 fi
22264
22265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22266 fi
22267
22268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 # Binary search between lo and hi bounds.
22270 while test "x$ac_lo" != "x$ac_hi"; do
22271   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22272   cat >conftest.$ac_ext <<_ACEOF
22273 /* confdefs.h.  */
22274 _ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h.  */
22278 $ac_includes_default
22279    typedef long long ac__type_sizeof_;
22280 int
22281 main ()
22282 {
22283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22284 test_array [0] = 0
22285
22286   ;
22287   return 0;
22288 }
22289 _ACEOF
22290 rm -f conftest.$ac_objext
22291 if { (ac_try="$ac_compile"
22292 case "(($ac_try" in
22293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294   *) ac_try_echo=$ac_try;;
22295 esac
22296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297   (eval "$ac_compile") 2>conftest.er1
22298   ac_status=$?
22299   grep -v '^ *+' conftest.er1 >conftest.err
22300   rm -f conftest.er1
22301   cat conftest.err >&5
22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); } && {
22304          test -z "$ac_c_werror_flag" ||
22305          test ! -s conftest.err
22306        } && test -s conftest.$ac_objext; then
22307   ac_hi=$ac_mid
22308 else
22309   echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.$ac_ext >&5
22311
22312         ac_lo=`expr '(' $ac_mid ')' + 1`
22313 fi
22314
22315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22316 done
22317 case $ac_lo in
22318 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22319 '') if test "$ac_cv_type_long_long" = yes; then
22320      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22321 See \`config.log' for more details." >&5
22322 echo "$as_me: error: cannot compute sizeof (long long)
22323 See \`config.log' for more details." >&2;}
22324    { (exit 77); exit 77; }; }
22325    else
22326      ac_cv_sizeof_long_long=0
22327    fi ;;
22328 esac
22329 else
22330   cat >conftest.$ac_ext <<_ACEOF
22331 /* confdefs.h.  */
22332 _ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h.  */
22336 $ac_includes_default
22337    typedef long long ac__type_sizeof_;
22338 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22339 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22340 #include <stdio.h>
22341 #include <stdlib.h>
22342 int
22343 main ()
22344 {
22345
22346   FILE *f = fopen ("conftest.val", "w");
22347   if (! f)
22348     return 1;
22349   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22350     {
22351       long int i = longval ();
22352       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22353         return 1;
22354       fprintf (f, "%ld\n", i);
22355     }
22356   else
22357     {
22358       unsigned long int i = ulongval ();
22359       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22360         return 1;
22361       fprintf (f, "%lu\n", i);
22362     }
22363   return ferror (f) || fclose (f) != 0;
22364
22365   ;
22366   return 0;
22367 }
22368 _ACEOF
22369 rm -f conftest$ac_exeext
22370 if { (ac_try="$ac_link"
22371 case "(($ac_try" in
22372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373   *) ac_try_echo=$ac_try;;
22374 esac
22375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376   (eval "$ac_link") 2>&5
22377   ac_status=$?
22378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22380   { (case "(($ac_try" in
22381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382   *) ac_try_echo=$ac_try;;
22383 esac
22384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22385   (eval "$ac_try") 2>&5
22386   ac_status=$?
22387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388   (exit $ac_status); }; }; then
22389   ac_cv_sizeof_long_long=`cat conftest.val`
22390 else
22391   echo "$as_me: program exited with status $ac_status" >&5
22392 echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22394
22395 ( exit $ac_status )
22396 if test "$ac_cv_type_long_long" = yes; then
22397      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22398 See \`config.log' for more details." >&5
22399 echo "$as_me: error: cannot compute sizeof (long long)
22400 See \`config.log' for more details." >&2;}
22401    { (exit 77); exit 77; }; }
22402    else
22403      ac_cv_sizeof_long_long=0
22404    fi
22405 fi
22406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22407 fi
22408 rm -f conftest.val
22409 fi
22410 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22411 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22412
22413
22414
22415 cat >>confdefs.h <<_ACEOF
22416 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22417 _ACEOF
22418
22419
22420         if test "$ac_cv_sizeof_long_long" != 0; then
22421                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
22422         fi
22423     ;;
22424     * )
22425         { echo "$as_me:$LINENO: checking for long long" >&5
22426 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22427 if test "${ac_cv_type_long_long+set}" = set; then
22428   echo $ECHO_N "(cached) $ECHO_C" >&6
22429 else
22430   cat >conftest.$ac_ext <<_ACEOF
22431 /* confdefs.h.  */
22432 _ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h.  */
22436 $ac_includes_default
22437 typedef long long ac__type_new_;
22438 int
22439 main ()
22440 {
22441 if ((ac__type_new_ *) 0)
22442   return 0;
22443 if (sizeof (ac__type_new_))
22444   return 0;
22445   ;
22446   return 0;
22447 }
22448 _ACEOF
22449 rm -f conftest.$ac_objext
22450 if { (ac_try="$ac_compile"
22451 case "(($ac_try" in
22452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22453   *) ac_try_echo=$ac_try;;
22454 esac
22455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22456   (eval "$ac_compile") 2>conftest.er1
22457   ac_status=$?
22458   grep -v '^ *+' conftest.er1 >conftest.err
22459   rm -f conftest.er1
22460   cat conftest.err >&5
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); } && {
22463          test -z "$ac_c_werror_flag" ||
22464          test ! -s conftest.err
22465        } && test -s conftest.$ac_objext; then
22466   ac_cv_type_long_long=yes
22467 else
22468   echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22470
22471         ac_cv_type_long_long=no
22472 fi
22473
22474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22475 fi
22476 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22477 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22478
22479 # The cast to long int works around a bug in the HP C Compiler
22480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22482 # This bug is HP SR number 8606223364.
22483 { echo "$as_me:$LINENO: checking size of long long" >&5
22484 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
22485 if test "${ac_cv_sizeof_long_long+set}" = set; then
22486   echo $ECHO_N "(cached) $ECHO_C" >&6
22487 else
22488   if test "$cross_compiling" = yes; then
22489   # Depending upon the size, compute the lo and hi bounds.
22490 cat >conftest.$ac_ext <<_ACEOF
22491 /* confdefs.h.  */
22492 _ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h.  */
22496 $ac_includes_default
22497    typedef long long ac__type_sizeof_;
22498 int
22499 main ()
22500 {
22501 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22502 test_array [0] = 0
22503
22504   ;
22505   return 0;
22506 }
22507 _ACEOF
22508 rm -f conftest.$ac_objext
22509 if { (ac_try="$ac_compile"
22510 case "(($ac_try" in
22511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22512   *) ac_try_echo=$ac_try;;
22513 esac
22514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22515   (eval "$ac_compile") 2>conftest.er1
22516   ac_status=$?
22517   grep -v '^ *+' conftest.er1 >conftest.err
22518   rm -f conftest.er1
22519   cat conftest.err >&5
22520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521   (exit $ac_status); } && {
22522          test -z "$ac_c_werror_flag" ||
22523          test ! -s conftest.err
22524        } && test -s conftest.$ac_objext; then
22525   ac_lo=0 ac_mid=0
22526   while :; do
22527     cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h.  */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h.  */
22533 $ac_includes_default
22534    typedef long long ac__type_sizeof_;
22535 int
22536 main ()
22537 {
22538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22539 test_array [0] = 0
22540
22541   ;
22542   return 0;
22543 }
22544 _ACEOF
22545 rm -f conftest.$ac_objext
22546 if { (ac_try="$ac_compile"
22547 case "(($ac_try" in
22548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549   *) ac_try_echo=$ac_try;;
22550 esac
22551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22552   (eval "$ac_compile") 2>conftest.er1
22553   ac_status=$?
22554   grep -v '^ *+' conftest.er1 >conftest.err
22555   rm -f conftest.er1
22556   cat conftest.err >&5
22557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558   (exit $ac_status); } && {
22559          test -z "$ac_c_werror_flag" ||
22560          test ! -s conftest.err
22561        } && test -s conftest.$ac_objext; then
22562   ac_hi=$ac_mid; break
22563 else
22564   echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567         ac_lo=`expr $ac_mid + 1`
22568                         if test $ac_lo -le $ac_mid; then
22569                           ac_lo= ac_hi=
22570                           break
22571                         fi
22572                         ac_mid=`expr 2 '*' $ac_mid + 1`
22573 fi
22574
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22576   done
22577 else
22578   echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22580
22581         cat >conftest.$ac_ext <<_ACEOF
22582 /* confdefs.h.  */
22583 _ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h.  */
22587 $ac_includes_default
22588    typedef long long ac__type_sizeof_;
22589 int
22590 main ()
22591 {
22592 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22593 test_array [0] = 0
22594
22595   ;
22596   return 0;
22597 }
22598 _ACEOF
22599 rm -f conftest.$ac_objext
22600 if { (ac_try="$ac_compile"
22601 case "(($ac_try" in
22602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22603   *) ac_try_echo=$ac_try;;
22604 esac
22605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22606   (eval "$ac_compile") 2>conftest.er1
22607   ac_status=$?
22608   grep -v '^ *+' conftest.er1 >conftest.err
22609   rm -f conftest.er1
22610   cat conftest.err >&5
22611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612   (exit $ac_status); } && {
22613          test -z "$ac_c_werror_flag" ||
22614          test ! -s conftest.err
22615        } && test -s conftest.$ac_objext; then
22616   ac_hi=-1 ac_mid=-1
22617   while :; do
22618     cat >conftest.$ac_ext <<_ACEOF
22619 /* confdefs.h.  */
22620 _ACEOF
22621 cat confdefs.h >>conftest.$ac_ext
22622 cat >>conftest.$ac_ext <<_ACEOF
22623 /* end confdefs.h.  */
22624 $ac_includes_default
22625    typedef long long ac__type_sizeof_;
22626 int
22627 main ()
22628 {
22629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22630 test_array [0] = 0
22631
22632   ;
22633   return 0;
22634 }
22635 _ACEOF
22636 rm -f conftest.$ac_objext
22637 if { (ac_try="$ac_compile"
22638 case "(($ac_try" in
22639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22640   *) ac_try_echo=$ac_try;;
22641 esac
22642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22643   (eval "$ac_compile") 2>conftest.er1
22644   ac_status=$?
22645   grep -v '^ *+' conftest.er1 >conftest.err
22646   rm -f conftest.er1
22647   cat conftest.err >&5
22648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649   (exit $ac_status); } && {
22650          test -z "$ac_c_werror_flag" ||
22651          test ! -s conftest.err
22652        } && test -s conftest.$ac_objext; then
22653   ac_lo=$ac_mid; break
22654 else
22655   echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22657
22658         ac_hi=`expr '(' $ac_mid ')' - 1`
22659                         if test $ac_mid -le $ac_hi; then
22660                           ac_lo= ac_hi=
22661                           break
22662                         fi
22663                         ac_mid=`expr 2 '*' $ac_mid`
22664 fi
22665
22666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22667   done
22668 else
22669   echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22671
22672         ac_lo= ac_hi=
22673 fi
22674
22675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22676 fi
22677
22678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22679 # Binary search between lo and hi bounds.
22680 while test "x$ac_lo" != "x$ac_hi"; do
22681   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22682   cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h.  */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h.  */
22688 $ac_includes_default
22689    typedef long long ac__type_sizeof_;
22690 int
22691 main ()
22692 {
22693 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22694 test_array [0] = 0
22695
22696   ;
22697   return 0;
22698 }
22699 _ACEOF
22700 rm -f conftest.$ac_objext
22701 if { (ac_try="$ac_compile"
22702 case "(($ac_try" in
22703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704   *) ac_try_echo=$ac_try;;
22705 esac
22706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22707   (eval "$ac_compile") 2>conftest.er1
22708   ac_status=$?
22709   grep -v '^ *+' conftest.er1 >conftest.err
22710   rm -f conftest.er1
22711   cat conftest.err >&5
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); } && {
22714          test -z "$ac_c_werror_flag" ||
22715          test ! -s conftest.err
22716        } && test -s conftest.$ac_objext; then
22717   ac_hi=$ac_mid
22718 else
22719   echo "$as_me: failed program was:" >&5
22720 sed 's/^/| /' conftest.$ac_ext >&5
22721
22722         ac_lo=`expr '(' $ac_mid ')' + 1`
22723 fi
22724
22725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22726 done
22727 case $ac_lo in
22728 ?*) ac_cv_sizeof_long_long=$ac_lo;;
22729 '') if test "$ac_cv_type_long_long" = yes; then
22730      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22731 See \`config.log' for more details." >&5
22732 echo "$as_me: error: cannot compute sizeof (long long)
22733 See \`config.log' for more details." >&2;}
22734    { (exit 77); exit 77; }; }
22735    else
22736      ac_cv_sizeof_long_long=0
22737    fi ;;
22738 esac
22739 else
22740   cat >conftest.$ac_ext <<_ACEOF
22741 /* confdefs.h.  */
22742 _ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h.  */
22746 $ac_includes_default
22747    typedef long long ac__type_sizeof_;
22748 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22749 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22750 #include <stdio.h>
22751 #include <stdlib.h>
22752 int
22753 main ()
22754 {
22755
22756   FILE *f = fopen ("conftest.val", "w");
22757   if (! f)
22758     return 1;
22759   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22760     {
22761       long int i = longval ();
22762       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22763         return 1;
22764       fprintf (f, "%ld\n", i);
22765     }
22766   else
22767     {
22768       unsigned long int i = ulongval ();
22769       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22770         return 1;
22771       fprintf (f, "%lu\n", i);
22772     }
22773   return ferror (f) || fclose (f) != 0;
22774
22775   ;
22776   return 0;
22777 }
22778 _ACEOF
22779 rm -f conftest$ac_exeext
22780 if { (ac_try="$ac_link"
22781 case "(($ac_try" in
22782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783   *) ac_try_echo=$ac_try;;
22784 esac
22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786   (eval "$ac_link") 2>&5
22787   ac_status=$?
22788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22790   { (case "(($ac_try" in
22791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792   *) ac_try_echo=$ac_try;;
22793 esac
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795   (eval "$ac_try") 2>&5
22796   ac_status=$?
22797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798   (exit $ac_status); }; }; then
22799   ac_cv_sizeof_long_long=`cat conftest.val`
22800 else
22801   echo "$as_me: program exited with status $ac_status" >&5
22802 echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22804
22805 ( exit $ac_status )
22806 if test "$ac_cv_type_long_long" = yes; then
22807      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
22808 See \`config.log' for more details." >&5
22809 echo "$as_me: error: cannot compute sizeof (long long)
22810 See \`config.log' for more details." >&2;}
22811    { (exit 77); exit 77; }; }
22812    else
22813      ac_cv_sizeof_long_long=0
22814    fi
22815 fi
22816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22817 fi
22818 rm -f conftest.val
22819 fi
22820 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
22821 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
22822
22823
22824
22825 cat >>confdefs.h <<_ACEOF
22826 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
22827 _ACEOF
22828
22829
22830 esac
22831
22832 { echo "$as_me:$LINENO: checking for wchar_t" >&5
22833 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22834 if test "${ac_cv_type_wchar_t+set}" = set; then
22835   echo $ECHO_N "(cached) $ECHO_C" >&6
22836 else
22837   cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h.  */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h.  */
22843
22844         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22845         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22846         #  error "fake wchar_t"
22847         #endif
22848         #ifdef HAVE_WCHAR_H
22849         #  ifdef __CYGWIN__
22850         #    include <stddef.h>
22851         #  endif
22852         #  include <wchar.h>
22853         #endif
22854         #ifdef HAVE_STDLIB_H
22855         #  include <stdlib.h>
22856         #endif
22857         #include <stdio.h>
22858
22859
22860
22861 typedef wchar_t ac__type_new_;
22862 int
22863 main ()
22864 {
22865 if ((ac__type_new_ *) 0)
22866   return 0;
22867 if (sizeof (ac__type_new_))
22868   return 0;
22869   ;
22870   return 0;
22871 }
22872 _ACEOF
22873 rm -f conftest.$ac_objext
22874 if { (ac_try="$ac_compile"
22875 case "(($ac_try" in
22876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22877   *) ac_try_echo=$ac_try;;
22878 esac
22879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22880   (eval "$ac_compile") 2>conftest.er1
22881   ac_status=$?
22882   grep -v '^ *+' conftest.er1 >conftest.err
22883   rm -f conftest.er1
22884   cat conftest.err >&5
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); } && {
22887          test -z "$ac_c_werror_flag" ||
22888          test ! -s conftest.err
22889        } && test -s conftest.$ac_objext; then
22890   ac_cv_type_wchar_t=yes
22891 else
22892   echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22894
22895         ac_cv_type_wchar_t=no
22896 fi
22897
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899 fi
22900 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
22901 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
22902
22903 # The cast to long int works around a bug in the HP C Compiler
22904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22906 # This bug is HP SR number 8606223364.
22907 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
22908 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
22909 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
22910   echo $ECHO_N "(cached) $ECHO_C" >&6
22911 else
22912   if test "$cross_compiling" = yes; then
22913   # Depending upon the size, compute the lo and hi bounds.
22914 cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h.  */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h.  */
22920
22921         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22922         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22923         #  error "fake wchar_t"
22924         #endif
22925         #ifdef HAVE_WCHAR_H
22926         #  ifdef __CYGWIN__
22927         #    include <stddef.h>
22928         #  endif
22929         #  include <wchar.h>
22930         #endif
22931         #ifdef HAVE_STDLIB_H
22932         #  include <stdlib.h>
22933         #endif
22934         #include <stdio.h>
22935
22936
22937
22938    typedef wchar_t ac__type_sizeof_;
22939 int
22940 main ()
22941 {
22942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22943 test_array [0] = 0
22944
22945   ;
22946   return 0;
22947 }
22948 _ACEOF
22949 rm -f conftest.$ac_objext
22950 if { (ac_try="$ac_compile"
22951 case "(($ac_try" in
22952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953   *) ac_try_echo=$ac_try;;
22954 esac
22955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956   (eval "$ac_compile") 2>conftest.er1
22957   ac_status=$?
22958   grep -v '^ *+' conftest.er1 >conftest.err
22959   rm -f conftest.er1
22960   cat conftest.err >&5
22961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962   (exit $ac_status); } && {
22963          test -z "$ac_c_werror_flag" ||
22964          test ! -s conftest.err
22965        } && test -s conftest.$ac_objext; then
22966   ac_lo=0 ac_mid=0
22967   while :; do
22968     cat >conftest.$ac_ext <<_ACEOF
22969 /* confdefs.h.  */
22970 _ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h.  */
22974
22975         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22976         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
22977         #  error "fake wchar_t"
22978         #endif
22979         #ifdef HAVE_WCHAR_H
22980         #  ifdef __CYGWIN__
22981         #    include <stddef.h>
22982         #  endif
22983         #  include <wchar.h>
22984         #endif
22985         #ifdef HAVE_STDLIB_H
22986         #  include <stdlib.h>
22987         #endif
22988         #include <stdio.h>
22989
22990
22991
22992    typedef wchar_t ac__type_sizeof_;
22993 int
22994 main ()
22995 {
22996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22997 test_array [0] = 0
22998
22999   ;
23000   return 0;
23001 }
23002 _ACEOF
23003 rm -f conftest.$ac_objext
23004 if { (ac_try="$ac_compile"
23005 case "(($ac_try" in
23006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23007   *) ac_try_echo=$ac_try;;
23008 esac
23009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23010   (eval "$ac_compile") 2>conftest.er1
23011   ac_status=$?
23012   grep -v '^ *+' conftest.er1 >conftest.err
23013   rm -f conftest.er1
23014   cat conftest.err >&5
23015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016   (exit $ac_status); } && {
23017          test -z "$ac_c_werror_flag" ||
23018          test ! -s conftest.err
23019        } && test -s conftest.$ac_objext; then
23020   ac_hi=$ac_mid; break
23021 else
23022   echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23024
23025         ac_lo=`expr $ac_mid + 1`
23026                         if test $ac_lo -le $ac_mid; then
23027                           ac_lo= ac_hi=
23028                           break
23029                         fi
23030                         ac_mid=`expr 2 '*' $ac_mid + 1`
23031 fi
23032
23033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23034   done
23035 else
23036   echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23038
23039         cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h.  */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h.  */
23045
23046         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23047         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23048         #  error "fake wchar_t"
23049         #endif
23050         #ifdef HAVE_WCHAR_H
23051         #  ifdef __CYGWIN__
23052         #    include <stddef.h>
23053         #  endif
23054         #  include <wchar.h>
23055         #endif
23056         #ifdef HAVE_STDLIB_H
23057         #  include <stdlib.h>
23058         #endif
23059         #include <stdio.h>
23060
23061
23062
23063    typedef wchar_t ac__type_sizeof_;
23064 int
23065 main ()
23066 {
23067 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23068 test_array [0] = 0
23069
23070   ;
23071   return 0;
23072 }
23073 _ACEOF
23074 rm -f conftest.$ac_objext
23075 if { (ac_try="$ac_compile"
23076 case "(($ac_try" in
23077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078   *) ac_try_echo=$ac_try;;
23079 esac
23080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081   (eval "$ac_compile") 2>conftest.er1
23082   ac_status=$?
23083   grep -v '^ *+' conftest.er1 >conftest.err
23084   rm -f conftest.er1
23085   cat conftest.err >&5
23086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087   (exit $ac_status); } && {
23088          test -z "$ac_c_werror_flag" ||
23089          test ! -s conftest.err
23090        } && test -s conftest.$ac_objext; then
23091   ac_hi=-1 ac_mid=-1
23092   while :; do
23093     cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h.  */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h.  */
23099
23100         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23101         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23102         #  error "fake wchar_t"
23103         #endif
23104         #ifdef HAVE_WCHAR_H
23105         #  ifdef __CYGWIN__
23106         #    include <stddef.h>
23107         #  endif
23108         #  include <wchar.h>
23109         #endif
23110         #ifdef HAVE_STDLIB_H
23111         #  include <stdlib.h>
23112         #endif
23113         #include <stdio.h>
23114
23115
23116
23117    typedef wchar_t ac__type_sizeof_;
23118 int
23119 main ()
23120 {
23121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23122 test_array [0] = 0
23123
23124   ;
23125   return 0;
23126 }
23127 _ACEOF
23128 rm -f conftest.$ac_objext
23129 if { (ac_try="$ac_compile"
23130 case "(($ac_try" in
23131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132   *) ac_try_echo=$ac_try;;
23133 esac
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135   (eval "$ac_compile") 2>conftest.er1
23136   ac_status=$?
23137   grep -v '^ *+' conftest.er1 >conftest.err
23138   rm -f conftest.er1
23139   cat conftest.err >&5
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); } && {
23142          test -z "$ac_c_werror_flag" ||
23143          test ! -s conftest.err
23144        } && test -s conftest.$ac_objext; then
23145   ac_lo=$ac_mid; break
23146 else
23147   echo "$as_me: failed program was:" >&5
23148 sed 's/^/| /' conftest.$ac_ext >&5
23149
23150         ac_hi=`expr '(' $ac_mid ')' - 1`
23151                         if test $ac_mid -le $ac_hi; then
23152                           ac_lo= ac_hi=
23153                           break
23154                         fi
23155                         ac_mid=`expr 2 '*' $ac_mid`
23156 fi
23157
23158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23159   done
23160 else
23161   echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23163
23164         ac_lo= ac_hi=
23165 fi
23166
23167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23168 fi
23169
23170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23171 # Binary search between lo and hi bounds.
23172 while test "x$ac_lo" != "x$ac_hi"; do
23173   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23174   cat >conftest.$ac_ext <<_ACEOF
23175 /* confdefs.h.  */
23176 _ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h.  */
23180
23181         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23182         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23183         #  error "fake wchar_t"
23184         #endif
23185         #ifdef HAVE_WCHAR_H
23186         #  ifdef __CYGWIN__
23187         #    include <stddef.h>
23188         #  endif
23189         #  include <wchar.h>
23190         #endif
23191         #ifdef HAVE_STDLIB_H
23192         #  include <stdlib.h>
23193         #endif
23194         #include <stdio.h>
23195
23196
23197
23198    typedef wchar_t ac__type_sizeof_;
23199 int
23200 main ()
23201 {
23202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23203 test_array [0] = 0
23204
23205   ;
23206   return 0;
23207 }
23208 _ACEOF
23209 rm -f conftest.$ac_objext
23210 if { (ac_try="$ac_compile"
23211 case "(($ac_try" in
23212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213   *) ac_try_echo=$ac_try;;
23214 esac
23215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23216   (eval "$ac_compile") 2>conftest.er1
23217   ac_status=$?
23218   grep -v '^ *+' conftest.er1 >conftest.err
23219   rm -f conftest.er1
23220   cat conftest.err >&5
23221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222   (exit $ac_status); } && {
23223          test -z "$ac_c_werror_flag" ||
23224          test ! -s conftest.err
23225        } && test -s conftest.$ac_objext; then
23226   ac_hi=$ac_mid
23227 else
23228   echo "$as_me: failed program was:" >&5
23229 sed 's/^/| /' conftest.$ac_ext >&5
23230
23231         ac_lo=`expr '(' $ac_mid ')' + 1`
23232 fi
23233
23234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23235 done
23236 case $ac_lo in
23237 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
23238 '') if test "$ac_cv_type_wchar_t" = yes; then
23239      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23240 See \`config.log' for more details." >&5
23241 echo "$as_me: error: cannot compute sizeof (wchar_t)
23242 See \`config.log' for more details." >&2;}
23243    { (exit 77); exit 77; }; }
23244    else
23245      ac_cv_sizeof_wchar_t=0
23246    fi ;;
23247 esac
23248 else
23249   cat >conftest.$ac_ext <<_ACEOF
23250 /* confdefs.h.  */
23251 _ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h.  */
23255
23256         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
23257         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
23258         #  error "fake wchar_t"
23259         #endif
23260         #ifdef HAVE_WCHAR_H
23261         #  ifdef __CYGWIN__
23262         #    include <stddef.h>
23263         #  endif
23264         #  include <wchar.h>
23265         #endif
23266         #ifdef HAVE_STDLIB_H
23267         #  include <stdlib.h>
23268         #endif
23269         #include <stdio.h>
23270
23271
23272
23273    typedef wchar_t ac__type_sizeof_;
23274 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23275 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23276 #include <stdio.h>
23277 #include <stdlib.h>
23278 int
23279 main ()
23280 {
23281
23282   FILE *f = fopen ("conftest.val", "w");
23283   if (! f)
23284     return 1;
23285   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23286     {
23287       long int i = longval ();
23288       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23289         return 1;
23290       fprintf (f, "%ld\n", i);
23291     }
23292   else
23293     {
23294       unsigned long int i = ulongval ();
23295       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23296         return 1;
23297       fprintf (f, "%lu\n", i);
23298     }
23299   return ferror (f) || fclose (f) != 0;
23300
23301   ;
23302   return 0;
23303 }
23304 _ACEOF
23305 rm -f conftest$ac_exeext
23306 if { (ac_try="$ac_link"
23307 case "(($ac_try" in
23308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309   *) ac_try_echo=$ac_try;;
23310 esac
23311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312   (eval "$ac_link") 2>&5
23313   ac_status=$?
23314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23316   { (case "(($ac_try" in
23317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318   *) ac_try_echo=$ac_try;;
23319 esac
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321   (eval "$ac_try") 2>&5
23322   ac_status=$?
23323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324   (exit $ac_status); }; }; then
23325   ac_cv_sizeof_wchar_t=`cat conftest.val`
23326 else
23327   echo "$as_me: program exited with status $ac_status" >&5
23328 echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23330
23331 ( exit $ac_status )
23332 if test "$ac_cv_type_wchar_t" = yes; then
23333      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
23334 See \`config.log' for more details." >&5
23335 echo "$as_me: error: cannot compute sizeof (wchar_t)
23336 See \`config.log' for more details." >&2;}
23337    { (exit 77); exit 77; }; }
23338    else
23339      ac_cv_sizeof_wchar_t=0
23340    fi
23341 fi
23342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23343 fi
23344 rm -f conftest.val
23345 fi
23346 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
23347 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
23348
23349
23350
23351 cat >>confdefs.h <<_ACEOF
23352 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23353 _ACEOF
23354
23355
23356 if test "$ac_cv_sizeof_wchar_t" != 0; then
23357     wxUSE_WCHAR_T=yes
23358 else
23359     wxUSE_WCHAR_T=no
23360 fi
23361
23362 { echo "$as_me:$LINENO: checking for va_copy" >&5
23363 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
23364 if test "${wx_cv_func_va_copy+set}" = set; then
23365   echo $ECHO_N "(cached) $ECHO_C" >&6
23366 else
23367
23368         ac_ext=cpp
23369 ac_cpp='$CXXCPP $CPPFLAGS'
23370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23373
23374         cat >conftest.$ac_ext <<_ACEOF
23375
23376             #include <stdarg.h>
23377             void foo(char *f, ...)
23378             {
23379                 va_list ap1, ap2;
23380                 va_start(ap1, f);
23381                 va_copy(ap2, ap1);
23382                 va_end(ap2);
23383                 va_end(ap1);
23384             }
23385             int main()
23386             {
23387                 foo("hi", 17);
23388                 return 0;
23389             }
23390 _ACEOF
23391 rm -f conftest.$ac_objext conftest$ac_exeext
23392 if { (ac_try="$ac_link"
23393 case "(($ac_try" in
23394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395   *) ac_try_echo=$ac_try;;
23396 esac
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398   (eval "$ac_link") 2>conftest.er1
23399   ac_status=$?
23400   grep -v '^ *+' conftest.er1 >conftest.err
23401   rm -f conftest.er1
23402   cat conftest.err >&5
23403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404   (exit $ac_status); } && {
23405          test -z "$ac_cxx_werror_flag" ||
23406          test ! -s conftest.err
23407        } && test -s conftest$ac_exeext &&
23408        $as_test_x conftest$ac_exeext; then
23409   wx_cv_func_va_copy=yes
23410 else
23411   echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23413
23414         wx_cv_func_va_copy=no
23415
23416 fi
23417
23418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23419       conftest$ac_exeext conftest.$ac_ext
23420         ac_ext=c
23421 ac_cpp='$CPP $CPPFLAGS'
23422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23425
23426
23427
23428 fi
23429 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
23430 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
23431
23432 if test $wx_cv_func_va_copy = "yes"; then
23433     cat >>confdefs.h <<\_ACEOF
23434 #define HAVE_VA_COPY 1
23435 _ACEOF
23436
23437 else
23438         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
23439 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
23440 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
23441   echo $ECHO_N "(cached) $ECHO_C" >&6
23442 else
23443
23444             if test "$cross_compiling" = yes; then
23445                   wx_cv_type_va_list_lvalue=yes
23446
23447 else
23448   cat >conftest.$ac_ext <<_ACEOF
23449
23450                 #include <stdarg.h>
23451                 int foo(char *f, ...)
23452                 {
23453                     va_list ap1, ap2;
23454                     va_start(ap1, f);
23455                     ap2 = ap1;
23456                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
23457                         return 1;
23458                     va_end(ap2);
23459                     va_end(ap1);
23460                     return 0;
23461                 }
23462                 int main()
23463                 {
23464                     return foo("hi", 17);
23465                 }
23466 _ACEOF
23467 rm -f conftest$ac_exeext
23468 if { (ac_try="$ac_link"
23469 case "(($ac_try" in
23470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471   *) ac_try_echo=$ac_try;;
23472 esac
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474   (eval "$ac_link") 2>&5
23475   ac_status=$?
23476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
23484   ac_status=$?
23485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486   (exit $ac_status); }; }; then
23487   wx_cv_type_va_list_lvalue=yes
23488 else
23489   echo "$as_me: program exited with status $ac_status" >&5
23490 echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23492
23493 ( exit $ac_status )
23494 wx_cv_type_va_list_lvalue=no
23495 fi
23496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23497 fi
23498
23499
23500
23501
23502 fi
23503 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
23504 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
23505
23506     if test $wx_cv_type_va_list_lvalue != "yes"; then
23507                         cat >>confdefs.h <<\_ACEOF
23508 #define VA_LIST_IS_ARRAY 1
23509 _ACEOF
23510
23511     fi
23512 fi
23513
23514 if test "$wxUSE_VARARG_MACROS" = "yes"; then
23515
23516 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
23517 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
23518 if test "${wx_cv_have_variadic_macros+set}" = set; then
23519   echo $ECHO_N "(cached) $ECHO_C" >&6
23520 else
23521
23522                         ac_ext=cpp
23523 ac_cpp='$CXXCPP $CPPFLAGS'
23524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23527
23528         cat >conftest.$ac_ext <<_ACEOF
23529 /* confdefs.h.  */
23530 _ACEOF
23531 cat confdefs.h >>conftest.$ac_ext
23532 cat >>conftest.$ac_ext <<_ACEOF
23533 /* end confdefs.h.  */
23534
23535                     #include <stdio.h>
23536                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
23537
23538 int
23539 main ()
23540 {
23541
23542                     test("%s %d %p", "test", 1, 0);
23543
23544
23545   ;
23546   return 0;
23547 }
23548 _ACEOF
23549 rm -f conftest.$ac_objext
23550 if { (ac_try="$ac_compile"
23551 case "(($ac_try" in
23552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23553   *) ac_try_echo=$ac_try;;
23554 esac
23555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23556   (eval "$ac_compile") 2>conftest.er1
23557   ac_status=$?
23558   grep -v '^ *+' conftest.er1 >conftest.err
23559   rm -f conftest.er1
23560   cat conftest.err >&5
23561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562   (exit $ac_status); } && {
23563          test -z "$ac_cxx_werror_flag" ||
23564          test ! -s conftest.err
23565        } && test -s conftest.$ac_objext; then
23566   wx_cv_have_variadic_macros=yes
23567 else
23568   echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23570
23571         wx_cv_have_variadic_macros=no
23572
23573 fi
23574
23575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23576         ac_ext=c
23577 ac_cpp='$CPP $CPPFLAGS'
23578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23581
23582
23583
23584 fi
23585 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
23586 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
23587
23588 if test $wx_cv_have_variadic_macros = "yes"; then
23589     cat >>confdefs.h <<\_ACEOF
23590 #define HAVE_VARIADIC_MACROS 1
23591 _ACEOF
23592
23593 fi
23594
23595 fi
23596
23597 LARGEFILE_CPPFLAGS=
23598 # Check whether --enable-largefile was given.
23599 if test "${enable_largefile+set}" = set; then
23600   enableval=$enable_largefile;
23601 fi
23602
23603 if test "$enable_largefile" != no; then
23604             wx_largefile=no
23605
23606     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
23607 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
23608 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
23609   echo $ECHO_N "(cached) $ECHO_C" >&6
23610 else
23611
23612           cat >conftest.$ac_ext <<_ACEOF
23613 /* confdefs.h.  */
23614 _ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h.  */
23618 #define _FILE_OFFSET_BITS 64
23619                           #include <sys/types.h>
23620 int
23621 main ()
23622 {
23623 typedef struct {
23624     unsigned int field: sizeof(off_t) == 8;
23625 } wxlf;
23626
23627   ;
23628   return 0;
23629 }
23630 _ACEOF
23631 rm -f conftest.$ac_objext
23632 if { (ac_try="$ac_compile"
23633 case "(($ac_try" in
23634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23635   *) ac_try_echo=$ac_try;;
23636 esac
23637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23638   (eval "$ac_compile") 2>conftest.er1
23639   ac_status=$?
23640   grep -v '^ *+' conftest.er1 >conftest.err
23641   rm -f conftest.er1
23642   cat conftest.err >&5
23643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644   (exit $ac_status); } && {
23645          test -z "$ac_c_werror_flag" ||
23646          test ! -s conftest.err
23647        } && test -s conftest.$ac_objext; then
23648   ac_cv_sys_file_offset_bits=64
23649 else
23650   echo "$as_me: failed program was:" >&5
23651 sed 's/^/| /' conftest.$ac_ext >&5
23652
23653         ac_cv_sys_file_offset_bits=no
23654 fi
23655
23656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657
23658
23659 fi
23660 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
23661 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
23662
23663     if test "$ac_cv_sys_file_offset_bits" != no; then
23664         wx_largefile=yes
23665         cat >>confdefs.h <<_ACEOF
23666 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
23667 _ACEOF
23668
23669     fi
23670
23671     if test "x$wx_largefile" != "xyes"; then
23672
23673     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
23674 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
23675 if test "${ac_cv_sys_large_files+set}" = set; then
23676   echo $ECHO_N "(cached) $ECHO_C" >&6
23677 else
23678
23679           cat >conftest.$ac_ext <<_ACEOF
23680 /* confdefs.h.  */
23681 _ACEOF
23682 cat confdefs.h >>conftest.$ac_ext
23683 cat >>conftest.$ac_ext <<_ACEOF
23684 /* end confdefs.h.  */
23685 #define _LARGE_FILES 1
23686                           #include <sys/types.h>
23687 int
23688 main ()
23689 {
23690 typedef struct {
23691     unsigned int field: sizeof(off_t) == 8;
23692 } wxlf;
23693
23694   ;
23695   return 0;
23696 }
23697 _ACEOF
23698 rm -f conftest.$ac_objext
23699 if { (ac_try="$ac_compile"
23700 case "(($ac_try" in
23701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702   *) ac_try_echo=$ac_try;;
23703 esac
23704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23705   (eval "$ac_compile") 2>conftest.er1
23706   ac_status=$?
23707   grep -v '^ *+' conftest.er1 >conftest.err
23708   rm -f conftest.er1
23709   cat conftest.err >&5
23710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711   (exit $ac_status); } && {
23712          test -z "$ac_c_werror_flag" ||
23713          test ! -s conftest.err
23714        } && test -s conftest.$ac_objext; then
23715   ac_cv_sys_large_files=1
23716 else
23717   echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23719
23720         ac_cv_sys_large_files=no
23721 fi
23722
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23724
23725
23726 fi
23727 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
23728 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
23729
23730     if test "$ac_cv_sys_large_files" != no; then
23731         wx_largefile=yes
23732         cat >>confdefs.h <<_ACEOF
23733 #define _LARGE_FILES $ac_cv_sys_large_files
23734 _ACEOF
23735
23736     fi
23737
23738     fi
23739
23740     { echo "$as_me:$LINENO: checking if large file support is available" >&5
23741 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
23742     if test "x$wx_largefile" = "xyes"; then
23743         cat >>confdefs.h <<\_ACEOF
23744 #define HAVE_LARGEFILE_SUPPORT 1
23745 _ACEOF
23746
23747     fi
23748     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
23749 echo "${ECHO_T}$wx_largefile" >&6; }
23750 fi
23751
23752 if test "$ac_cv_sys_file_offset_bits" = "64"; then
23753     LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64"
23754 elif test "$ac_cv_sys_large_files" = 1; then
23755     LARGEFILE_CPPFLAGS="-D_LARGE_FILES"
23756 fi
23757
23758 if test -n "$LARGEFILE_CPPFLAGS"; then
23759     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS"
23760
23761                             if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
23762         { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
23763 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
23764 if test "${wx_cv_STDC_EXT_required+set}" = set; then
23765   echo $ECHO_N "(cached) $ECHO_C" >&6
23766 else
23767
23768                 ac_ext=cpp
23769 ac_cpp='$CXXCPP $CPPFLAGS'
23770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23773
23774                 cat >conftest.$ac_ext <<_ACEOF
23775 /* confdefs.h.  */
23776 _ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h.  */
23780
23781 int
23782 main ()
23783 {
23784
23785                         #ifndef __STDC_EXT__
23786                             choke me
23787                         #endif
23788
23789   ;
23790   return 0;
23791 }
23792 _ACEOF
23793 rm -f conftest.$ac_objext
23794 if { (ac_try="$ac_compile"
23795 case "(($ac_try" in
23796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797   *) ac_try_echo=$ac_try;;
23798 esac
23799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23800   (eval "$ac_compile") 2>conftest.er1
23801   ac_status=$?
23802   grep -v '^ *+' conftest.er1 >conftest.err
23803   rm -f conftest.er1
23804   cat conftest.err >&5
23805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); } && {
23807          test -z "$ac_cxx_werror_flag" ||
23808          test ! -s conftest.err
23809        } && test -s conftest.$ac_objext; then
23810   wx_cv_STDC_EXT_required=no
23811 else
23812   echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23814
23815         wx_cv_STDC_EXT_required=yes
23816
23817 fi
23818
23819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23820                 ac_ext=c
23821 ac_cpp='$CPP $CPPFLAGS'
23822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23825
23826
23827
23828 fi
23829 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
23830 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
23831         if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
23832             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
23833         fi
23834     fi
23835 fi
23836
23837 ac_ext=cpp
23838 ac_cpp='$CXXCPP $CPPFLAGS'
23839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23842
23843 old_CPPFLAGS="$CPPFLAGS"
23844 CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS"
23845 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23846 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
23847 if test "${ac_cv_sys_largefile_source+set}" = set; then
23848   echo $ECHO_N "(cached) $ECHO_C" >&6
23849 else
23850   while :; do
23851   cat >conftest.$ac_ext <<_ACEOF
23852 /* confdefs.h.  */
23853 _ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h.  */
23857 #include <sys/types.h> /* for off_t */
23858      #include <stdio.h>
23859 int
23860 main ()
23861 {
23862 int (*fp) (FILE *, off_t, int) = fseeko;
23863      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23864   ;
23865   return 0;
23866 }
23867 _ACEOF
23868 rm -f conftest.$ac_objext conftest$ac_exeext
23869 if { (ac_try="$ac_link"
23870 case "(($ac_try" in
23871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23872   *) ac_try_echo=$ac_try;;
23873 esac
23874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23875   (eval "$ac_link") 2>conftest.er1
23876   ac_status=$?
23877   grep -v '^ *+' conftest.er1 >conftest.err
23878   rm -f conftest.er1
23879   cat conftest.err >&5
23880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881   (exit $ac_status); } && {
23882          test -z "$ac_cxx_werror_flag" ||
23883          test ! -s conftest.err
23884        } && test -s conftest$ac_exeext &&
23885        $as_test_x conftest$ac_exeext; then
23886   ac_cv_sys_largefile_source=no; break
23887 else
23888   echo "$as_me: failed program was:" >&5
23889 sed 's/^/| /' conftest.$ac_ext >&5
23890
23891
23892 fi
23893
23894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23895       conftest$ac_exeext conftest.$ac_ext
23896   cat >conftest.$ac_ext <<_ACEOF
23897 /* confdefs.h.  */
23898 _ACEOF
23899 cat confdefs.h >>conftest.$ac_ext
23900 cat >>conftest.$ac_ext <<_ACEOF
23901 /* end confdefs.h.  */
23902 #define _LARGEFILE_SOURCE 1
23903 #include <sys/types.h> /* for off_t */
23904      #include <stdio.h>
23905 int
23906 main ()
23907 {
23908 int (*fp) (FILE *, off_t, int) = fseeko;
23909      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23910   ;
23911   return 0;
23912 }
23913 _ACEOF
23914 rm -f conftest.$ac_objext conftest$ac_exeext
23915 if { (ac_try="$ac_link"
23916 case "(($ac_try" in
23917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918   *) ac_try_echo=$ac_try;;
23919 esac
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921   (eval "$ac_link") 2>conftest.er1
23922   ac_status=$?
23923   grep -v '^ *+' conftest.er1 >conftest.err
23924   rm -f conftest.er1
23925   cat conftest.err >&5
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); } && {
23928          test -z "$ac_cxx_werror_flag" ||
23929          test ! -s conftest.err
23930        } && test -s conftest$ac_exeext &&
23931        $as_test_x conftest$ac_exeext; then
23932   ac_cv_sys_largefile_source=1; break
23933 else
23934   echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23936
23937
23938 fi
23939
23940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23941       conftest$ac_exeext conftest.$ac_ext
23942   ac_cv_sys_largefile_source=unknown
23943   break
23944 done
23945 fi
23946 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
23947 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
23948 case $ac_cv_sys_largefile_source in #(
23949   no | unknown) ;;
23950   *)
23951 cat >>confdefs.h <<_ACEOF
23952 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23953 _ACEOF
23954 ;;
23955 esac
23956 rm -f conftest*
23957
23958 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23959 # in glibc 2.1.3, but that breaks too many other things.
23960 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23961 if test $ac_cv_sys_largefile_source != unknown; then
23962
23963 cat >>confdefs.h <<\_ACEOF
23964 #define HAVE_FSEEKO 1
23965 _ACEOF
23966
23967 fi
23968
23969 CPPFLAGS="$old_CPPFLAGS"
23970 ac_ext=c
23971 ac_cpp='$CPP $CPPFLAGS'
23972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23975
23976 if test "$ac_cv_sys_largefile_source" != no; then
23977     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
23978 fi
23979
23980 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23981 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23982 if test "${ac_cv_c_bigendian+set}" = set; then
23983   echo $ECHO_N "(cached) $ECHO_C" >&6
23984 else
23985   ac_cv_c_bigendian=unknown
23986 # See if sys/param.h defines the BYTE_ORDER macro.
23987 cat >conftest.$ac_ext <<_ACEOF
23988 /* confdefs.h.  */
23989 _ACEOF
23990 cat confdefs.h >>conftest.$ac_ext
23991 cat >>conftest.$ac_ext <<_ACEOF
23992 /* end confdefs.h.  */
23993 #include <sys/types.h>
23994 #include <sys/param.h>
23995 int
23996 main ()
23997 {
23998
23999 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24000  bogus endian macros
24001 #endif
24002   ;
24003   return 0;
24004 }
24005 _ACEOF
24006 rm -f conftest.$ac_objext
24007 if { (ac_try="$ac_compile"
24008 case "(($ac_try" in
24009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010   *) ac_try_echo=$ac_try;;
24011 esac
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013   (eval "$ac_compile") 2>conftest.er1
24014   ac_status=$?
24015   grep -v '^ *+' conftest.er1 >conftest.err
24016   rm -f conftest.er1
24017   cat conftest.err >&5
24018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019   (exit $ac_status); } && {
24020          test -z "$ac_c_werror_flag" ||
24021          test ! -s conftest.err
24022        } && test -s conftest.$ac_objext; then
24023   # It does; now see whether it defined to BIG_ENDIAN or not.
24024 cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h.  */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h.  */
24030 #include <sys/types.h>
24031 #include <sys/param.h>
24032 int
24033 main ()
24034 {
24035
24036 #if BYTE_ORDER != BIG_ENDIAN
24037  not big endian
24038 #endif
24039   ;
24040   return 0;
24041 }
24042 _ACEOF
24043 rm -f conftest.$ac_objext
24044 if { (ac_try="$ac_compile"
24045 case "(($ac_try" in
24046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24047   *) ac_try_echo=$ac_try;;
24048 esac
24049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24050   (eval "$ac_compile") 2>conftest.er1
24051   ac_status=$?
24052   grep -v '^ *+' conftest.er1 >conftest.err
24053   rm -f conftest.er1
24054   cat conftest.err >&5
24055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056   (exit $ac_status); } && {
24057          test -z "$ac_c_werror_flag" ||
24058          test ! -s conftest.err
24059        } && test -s conftest.$ac_objext; then
24060   ac_cv_c_bigendian=yes
24061 else
24062   echo "$as_me: failed program was:" >&5
24063 sed 's/^/| /' conftest.$ac_ext >&5
24064
24065         ac_cv_c_bigendian=no
24066 fi
24067
24068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24069 else
24070   echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24072
24073
24074 fi
24075
24076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24077 if test $ac_cv_c_bigendian = unknown; then
24078 if test "$cross_compiling" = yes; then
24079   ac_cv_c_bigendian=unknown
24080 else
24081   cat >conftest.$ac_ext <<_ACEOF
24082 /* confdefs.h.  */
24083 _ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h.  */
24087 main () {
24088   /* Are we little or big endian?  From Harbison&Steele.  */
24089   union
24090   {
24091     long l;
24092     char c[sizeof (long)];
24093   } u;
24094   u.l = 1;
24095   exit (u.c[sizeof (long) - 1] == 1);
24096 }
24097 _ACEOF
24098 rm -f conftest$ac_exeext
24099 if { (ac_try="$ac_link"
24100 case "(($ac_try" in
24101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102   *) ac_try_echo=$ac_try;;
24103 esac
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105   (eval "$ac_link") 2>&5
24106   ac_status=$?
24107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24109   { (case "(($ac_try" in
24110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111   *) ac_try_echo=$ac_try;;
24112 esac
24113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24114   (eval "$ac_try") 2>&5
24115   ac_status=$?
24116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117   (exit $ac_status); }; }; then
24118   ac_cv_c_bigendian=no
24119 else
24120   echo "$as_me: program exited with status $ac_status" >&5
24121 echo "$as_me: failed program was:" >&5
24122 sed 's/^/| /' conftest.$ac_ext >&5
24123
24124 ( exit $ac_status )
24125 ac_cv_c_bigendian=yes
24126 fi
24127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24128 fi
24129
24130
24131 fi
24132 fi
24133 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24134 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
24135 if test $ac_cv_c_bigendian = unknown; then
24136   { 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
24137 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;}
24138 fi
24139 if test $ac_cv_c_bigendian = yes; then
24140   cat >>confdefs.h <<\_ACEOF
24141 #define WORDS_BIGENDIAN 1
24142 _ACEOF
24143
24144 fi
24145
24146
24147
24148
24149     ac_ext=cpp
24150 ac_cpp='$CXXCPP $CPPFLAGS'
24151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24154
24155
24156
24157 for ac_header in iostream
24158 do
24159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24163   echo $ECHO_N "(cached) $ECHO_C" >&6
24164 else
24165   cat >conftest.$ac_ext <<_ACEOF
24166 /* confdefs.h.  */
24167 _ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h.  */
24171
24172
24173 #include <$ac_header>
24174 _ACEOF
24175 rm -f conftest.$ac_objext
24176 if { (ac_try="$ac_compile"
24177 case "(($ac_try" in
24178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179   *) ac_try_echo=$ac_try;;
24180 esac
24181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24182   (eval "$ac_compile") 2>conftest.er1
24183   ac_status=$?
24184   grep -v '^ *+' conftest.er1 >conftest.err
24185   rm -f conftest.er1
24186   cat conftest.err >&5
24187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188   (exit $ac_status); } && {
24189          test -z "$ac_cxx_werror_flag" ||
24190          test ! -s conftest.err
24191        } && test -s conftest.$ac_objext; then
24192   eval "$as_ac_Header=yes"
24193 else
24194   echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24196
24197         eval "$as_ac_Header=no"
24198 fi
24199
24200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24201 fi
24202 ac_res=`eval echo '${'$as_ac_Header'}'`
24203                { echo "$as_me:$LINENO: result: $ac_res" >&5
24204 echo "${ECHO_T}$ac_res" >&6; }
24205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24206   cat >>confdefs.h <<_ACEOF
24207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24208 _ACEOF
24209
24210 fi
24211
24212 done
24213
24214
24215     if test "$ac_cv_header_iostream" = "yes" ; then
24216       :
24217     else
24218       cat >>confdefs.h <<\_ACEOF
24219 #define wxUSE_IOSTREAMH 1
24220 _ACEOF
24221
24222     fi
24223
24224     ac_ext=c
24225 ac_cpp='$CPP $CPPFLAGS'
24226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24229
24230
24231
24232
24233   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
24234 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
24235 if test "${wx_cv_explicit+set}" = set; then
24236   echo $ECHO_N "(cached) $ECHO_C" >&6
24237 else
24238
24239
24240     ac_ext=cpp
24241 ac_cpp='$CXXCPP $CPPFLAGS'
24242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24245
24246
24247             cat >conftest.$ac_ext <<_ACEOF
24248 /* confdefs.h.  */
24249 _ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h.  */
24253
24254         class Foo { public: explicit Foo(int) {} };
24255
24256 int
24257 main ()
24258 {
24259
24260         return 0;
24261
24262   ;
24263   return 0;
24264 }
24265 _ACEOF
24266 rm -f conftest.$ac_objext
24267 if { (ac_try="$ac_compile"
24268 case "(($ac_try" in
24269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24270   *) ac_try_echo=$ac_try;;
24271 esac
24272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24273   (eval "$ac_compile") 2>conftest.er1
24274   ac_status=$?
24275   grep -v '^ *+' conftest.er1 >conftest.err
24276   rm -f conftest.er1
24277   cat conftest.err >&5
24278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279   (exit $ac_status); } && {
24280          test -z "$ac_cxx_werror_flag" ||
24281          test ! -s conftest.err
24282        } && test -s conftest.$ac_objext; then
24283
24284         cat >conftest.$ac_ext <<_ACEOF
24285 /* confdefs.h.  */
24286 _ACEOF
24287 cat confdefs.h >>conftest.$ac_ext
24288 cat >>conftest.$ac_ext <<_ACEOF
24289 /* end confdefs.h.  */
24290
24291                 class Foo { public: explicit Foo(int) {} };
24292                 static void TakeFoo(const Foo& foo) { }
24293
24294 int
24295 main ()
24296 {
24297
24298                 TakeFoo(17);
24299                 return 0;
24300
24301   ;
24302   return 0;
24303 }
24304 _ACEOF
24305 rm -f conftest.$ac_objext
24306 if { (ac_try="$ac_compile"
24307 case "(($ac_try" in
24308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309   *) ac_try_echo=$ac_try;;
24310 esac
24311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312   (eval "$ac_compile") 2>conftest.er1
24313   ac_status=$?
24314   grep -v '^ *+' conftest.er1 >conftest.err
24315   rm -f conftest.er1
24316   cat conftest.err >&5
24317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318   (exit $ac_status); } && {
24319          test -z "$ac_cxx_werror_flag" ||
24320          test ! -s conftest.err
24321        } && test -s conftest.$ac_objext; then
24322   wx_cv_explicit=no
24323 else
24324   echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24326
24327         wx_cv_explicit=yes
24328
24329 fi
24330
24331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24332
24333 else
24334   echo "$as_me: failed program was:" >&5
24335 sed 's/^/| /' conftest.$ac_ext >&5
24336
24337         wx_cv_explicit=no
24338
24339 fi
24340
24341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24342
24343     ac_ext=c
24344 ac_cpp='$CPP $CPPFLAGS'
24345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24348
24349
24350 fi
24351 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
24352 echo "${ECHO_T}$wx_cv_explicit" >&6; }
24353
24354   if test "$wx_cv_explicit" = "yes"; then
24355     cat >>confdefs.h <<\_ACEOF
24356 #define HAVE_EXPLICIT 1
24357 _ACEOF
24358
24359   fi
24360
24361
24362 if test "x$SUNCXX" = xyes; then
24363     CXXFLAGS="-features=tmplife $CXXFLAGS"
24364 fi
24365
24366 if test "x$SUNCC" = xyes; then
24367     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
24368 fi
24369
24370 if test "x$SGICC" = "xyes"; then
24371     CFLAGS="-woff 3970 $CFLAGS"
24372 fi
24373 if test "x$SGICXX" = "xyes"; then
24374     CXXFLAGS="-woff 3970 $CXXFLAGS"
24375 fi
24376
24377 if test "x$HPCC" = "xyes"; then
24378                     CFLAGS="+W 2011,2450 $CFLAGS"
24379 fi
24380 if test "x$HPCXX" = "xyes"; then
24381                             CXXFLAGS="+W 2340,4232 $CXXFLAGS"
24382 fi
24383
24384 if test "x$COMPAQCXX" = "xyes"; then
24385                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
24386 fi
24387
24388 ac_ext=cpp
24389 ac_cpp='$CXXCPP $CPPFLAGS'
24390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24393
24394
24395 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
24396     if test "$wxUSE_UNICODE" = "yes"; then
24397         std_string="std::wstring"
24398         char_type="wchar_t"
24399     else
24400         std_string="std::string"
24401         char_type="char"
24402     fi
24403
24404         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
24405 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
24406 if test "${wx_cv_class_stdstring+set}" = set; then
24407   echo $ECHO_N "(cached) $ECHO_C" >&6
24408 else
24409
24410             cat >conftest.$ac_ext <<_ACEOF
24411 /* confdefs.h.  */
24412 _ACEOF
24413 cat confdefs.h >>conftest.$ac_ext
24414 cat >>conftest.$ac_ext <<_ACEOF
24415 /* end confdefs.h.  */
24416 #include <string>
24417 int
24418 main ()
24419 {
24420 $std_string foo;
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_cxx_werror_flag" ||
24440          test ! -s conftest.err
24441        } && test -s conftest.$ac_objext; then
24442   wx_cv_class_stdstring=yes
24443 else
24444   echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24446
24447         wx_cv_class_stdstring=no
24448
24449 fi
24450
24451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24452
24453
24454 fi
24455 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
24456 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
24457
24458     if test "$wx_cv_class_stdstring" = yes; then
24459         if test "$wxUSE_UNICODE" = "yes"; then
24460             cat >>confdefs.h <<\_ACEOF
24461 #define HAVE_STD_WSTRING 1
24462 _ACEOF
24463
24464         fi
24465                     else
24466         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
24467 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
24468 if test "${wx_cv_class_stdbasicstring+set}" = set; then
24469   echo $ECHO_N "(cached) $ECHO_C" >&6
24470 else
24471
24472                 cat >conftest.$ac_ext <<_ACEOF
24473 /* confdefs.h.  */
24474 _ACEOF
24475 cat confdefs.h >>conftest.$ac_ext
24476 cat >>conftest.$ac_ext <<_ACEOF
24477 /* end confdefs.h.  */
24478
24479                     #ifdef HAVE_WCHAR_H
24480                     #  ifdef __CYGWIN__
24481                     #    include <stddef.h>
24482                     #  endif
24483                     #  include <wchar.h>
24484                     #endif
24485                     #ifdef HAVE_STDLIB_H
24486                     #  include <stdlib.h>
24487                     #endif
24488                     #include <stdio.h>
24489                     #include <string>
24490
24491 int
24492 main ()
24493 {
24494 std::basic_string<$char_type> foo;
24495                      const $char_type* dummy = foo.c_str();
24496   ;
24497   return 0;
24498 }
24499 _ACEOF
24500 rm -f conftest.$ac_objext
24501 if { (ac_try="$ac_compile"
24502 case "(($ac_try" in
24503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504   *) ac_try_echo=$ac_try;;
24505 esac
24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507   (eval "$ac_compile") 2>conftest.er1
24508   ac_status=$?
24509   grep -v '^ *+' conftest.er1 >conftest.err
24510   rm -f conftest.er1
24511   cat conftest.err >&5
24512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513   (exit $ac_status); } && {
24514          test -z "$ac_cxx_werror_flag" ||
24515          test ! -s conftest.err
24516        } && test -s conftest.$ac_objext; then
24517   wx_cv_class_stdbasicstring=yes
24518 else
24519   echo "$as_me: failed program was:" >&5
24520 sed 's/^/| /' conftest.$ac_ext >&5
24521
24522         wx_cv_class_stdbasicstring=no
24523
24524 fi
24525
24526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24527
24528
24529 fi
24530 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
24531 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
24532
24533         if test "$wx_cv_class_stdbasicstring" != yes; then
24534             if test "$wxUSE_STL" = "yes"; then
24535                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
24536 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
24537    { (exit 1); exit 1; }; }
24538             elif test "$wxUSE_STD_STRING" = "yes"; then
24539                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
24540 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
24541    { (exit 1); exit 1; }; }
24542             else
24543                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
24544 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
24545                 wxUSE_STD_STRING=no
24546             fi
24547         fi
24548     fi
24549 fi
24550
24551 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24552     { echo "$as_me:$LINENO: checking for std::istream" >&5
24553 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
24554 if test "${ac_cv_type_std__istream+set}" = set; then
24555   echo $ECHO_N "(cached) $ECHO_C" >&6
24556 else
24557   cat >conftest.$ac_ext <<_ACEOF
24558 /* confdefs.h.  */
24559 _ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h.  */
24563 #include <iostream>
24564
24565 typedef std::istream ac__type_new_;
24566 int
24567 main ()
24568 {
24569 if ((ac__type_new_ *) 0)
24570   return 0;
24571 if (sizeof (ac__type_new_))
24572   return 0;
24573   ;
24574   return 0;
24575 }
24576 _ACEOF
24577 rm -f conftest.$ac_objext
24578 if { (ac_try="$ac_compile"
24579 case "(($ac_try" in
24580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581   *) ac_try_echo=$ac_try;;
24582 esac
24583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584   (eval "$ac_compile") 2>conftest.er1
24585   ac_status=$?
24586   grep -v '^ *+' conftest.er1 >conftest.err
24587   rm -f conftest.er1
24588   cat conftest.err >&5
24589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590   (exit $ac_status); } && {
24591          test -z "$ac_cxx_werror_flag" ||
24592          test ! -s conftest.err
24593        } && test -s conftest.$ac_objext; then
24594   ac_cv_type_std__istream=yes
24595 else
24596   echo "$as_me: failed program was:" >&5
24597 sed 's/^/| /' conftest.$ac_ext >&5
24598
24599         ac_cv_type_std__istream=no
24600 fi
24601
24602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24603 fi
24604 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
24605 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
24606 if test $ac_cv_type_std__istream = yes; then
24607
24608 cat >>confdefs.h <<_ACEOF
24609 #define HAVE_STD__ISTREAM 1
24610 _ACEOF
24611
24612
24613 else
24614   wxUSE_STD_IOSTREAM=no
24615 fi
24616 { echo "$as_me:$LINENO: checking for std::ostream" >&5
24617 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
24618 if test "${ac_cv_type_std__ostream+set}" = set; then
24619   echo $ECHO_N "(cached) $ECHO_C" >&6
24620 else
24621   cat >conftest.$ac_ext <<_ACEOF
24622 /* confdefs.h.  */
24623 _ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h.  */
24627 #include <iostream>
24628
24629 typedef std::ostream ac__type_new_;
24630 int
24631 main ()
24632 {
24633 if ((ac__type_new_ *) 0)
24634   return 0;
24635 if (sizeof (ac__type_new_))
24636   return 0;
24637   ;
24638   return 0;
24639 }
24640 _ACEOF
24641 rm -f conftest.$ac_objext
24642 if { (ac_try="$ac_compile"
24643 case "(($ac_try" in
24644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645   *) ac_try_echo=$ac_try;;
24646 esac
24647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648   (eval "$ac_compile") 2>conftest.er1
24649   ac_status=$?
24650   grep -v '^ *+' conftest.er1 >conftest.err
24651   rm -f conftest.er1
24652   cat conftest.err >&5
24653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654   (exit $ac_status); } && {
24655          test -z "$ac_cxx_werror_flag" ||
24656          test ! -s conftest.err
24657        } && test -s conftest.$ac_objext; then
24658   ac_cv_type_std__ostream=yes
24659 else
24660   echo "$as_me: failed program was:" >&5
24661 sed 's/^/| /' conftest.$ac_ext >&5
24662
24663         ac_cv_type_std__ostream=no
24664 fi
24665
24666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24667 fi
24668 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
24669 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
24670 if test $ac_cv_type_std__ostream = yes; then
24671
24672 cat >>confdefs.h <<_ACEOF
24673 #define HAVE_STD__OSTREAM 1
24674 _ACEOF
24675
24676
24677 else
24678   wxUSE_STD_IOSTREAM=no
24679 fi
24680
24681
24682     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
24683         if test "$wxUSE_STD_IOSTREAM" = "yes"; then
24684             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
24685 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
24686    { (exit 1); exit 1; }; }
24687         else
24688             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
24689 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
24690         fi
24691     fi
24692 fi
24693
24694 if test "$wxUSE_STL" = "yes"; then
24695         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
24696 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
24697 if test "${wx_cv_lib_stl+set}" = set; then
24698   echo $ECHO_N "(cached) $ECHO_C" >&6
24699 else
24700   cat >conftest.$ac_ext <<_ACEOF
24701 /* confdefs.h.  */
24702 _ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h.  */
24706 #include <string>
24707             #include <functional>
24708             #include <algorithm>
24709             #include <vector>
24710             #include <list>
24711 int
24712 main ()
24713 {
24714 std::vector<int> moo;
24715              std::list<int> foo;
24716              std::vector<int>::iterator it =
24717                  std::find_if(moo.begin(), moo.end(),
24718                               std::bind2nd(std::less<int>(), 3));
24719   ;
24720   return 0;
24721 }
24722 _ACEOF
24723 rm -f conftest.$ac_objext
24724 if { (ac_try="$ac_compile"
24725 case "(($ac_try" in
24726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727   *) ac_try_echo=$ac_try;;
24728 esac
24729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730   (eval "$ac_compile") 2>conftest.er1
24731   ac_status=$?
24732   grep -v '^ *+' conftest.er1 >conftest.err
24733   rm -f conftest.er1
24734   cat conftest.err >&5
24735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); } && {
24737          test -z "$ac_cxx_werror_flag" ||
24738          test ! -s conftest.err
24739        } && test -s conftest.$ac_objext; then
24740   wx_cv_lib_stl=yes
24741 else
24742   echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.$ac_ext >&5
24744
24745         wx_cv_lib_stl=no
24746
24747 fi
24748
24749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24750
24751 fi
24752 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
24753 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
24754
24755     if test "$wx_cv_lib_stl" != yes; then
24756          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
24757 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
24758    { (exit 1); exit 1; }; }
24759     fi
24760
24761         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24762 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
24763 if test "${wx_cv_func_stdstring_compare+set}" = set; then
24764   echo $ECHO_N "(cached) $ECHO_C" >&6
24765 else
24766   cat >conftest.$ac_ext <<_ACEOF
24767 /* confdefs.h.  */
24768 _ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h.  */
24772 #include <string>
24773 int
24774 main ()
24775 {
24776 std::string foo, bar;
24777             foo.compare(bar);
24778             foo.compare(1, 1, bar);
24779             foo.compare(1, 1, bar, 1, 1);
24780             foo.compare("");
24781             foo.compare(1, 1, "");
24782             foo.compare(1, 1, "", 2);
24783   ;
24784   return 0;
24785 }
24786 _ACEOF
24787 rm -f conftest.$ac_objext
24788 if { (ac_try="$ac_compile"
24789 case "(($ac_try" in
24790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791   *) ac_try_echo=$ac_try;;
24792 esac
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794   (eval "$ac_compile") 2>conftest.er1
24795   ac_status=$?
24796   grep -v '^ *+' conftest.er1 >conftest.err
24797   rm -f conftest.er1
24798   cat conftest.err >&5
24799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); } && {
24801          test -z "$ac_cxx_werror_flag" ||
24802          test ! -s conftest.err
24803        } && test -s conftest.$ac_objext; then
24804   wx_cv_func_stdstring_compare=yes
24805 else
24806   echo "$as_me: failed program was:" >&5
24807 sed 's/^/| /' conftest.$ac_ext >&5
24808
24809         wx_cv_func_stdstring_compare=no
24810
24811 fi
24812
24813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24814
24815 fi
24816 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
24817 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
24818
24819     if test "$wx_cv_func_stdstring_compare" = yes; then
24820         cat >>confdefs.h <<\_ACEOF
24821 #define HAVE_STD_STRING_COMPARE 1
24822 _ACEOF
24823
24824     fi
24825
24826     if test "$wx_cv_class_gnuhashmapset" = yes; then
24827          cat >>confdefs.h <<\_ACEOF
24828 #define HAVE_EXT_HASH_MAP 1
24829 _ACEOF
24830
24831          cat >>confdefs.h <<\_ACEOF
24832 #define HAVE_GNU_CXX_HASH_MAP 1
24833 _ACEOF
24834
24835     fi
24836
24837     { echo "$as_me:$LINENO: checking for unordered_map" >&5
24838 echo $ECHO_N "checking for unordered_map... $ECHO_C" >&6; }
24839 if test "${ac_cv_header_unordered_map+set}" = set; then
24840   echo $ECHO_N "(cached) $ECHO_C" >&6
24841 else
24842   cat >conftest.$ac_ext <<_ACEOF
24843 /* confdefs.h.  */
24844 _ACEOF
24845 cat confdefs.h >>conftest.$ac_ext
24846 cat >>conftest.$ac_ext <<_ACEOF
24847 /* end confdefs.h.  */
24848
24849
24850
24851 #include <unordered_map>
24852 _ACEOF
24853 rm -f conftest.$ac_objext
24854 if { (ac_try="$ac_compile"
24855 case "(($ac_try" in
24856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24857   *) ac_try_echo=$ac_try;;
24858 esac
24859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24860   (eval "$ac_compile") 2>conftest.er1
24861   ac_status=$?
24862   grep -v '^ *+' conftest.er1 >conftest.err
24863   rm -f conftest.er1
24864   cat conftest.err >&5
24865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866   (exit $ac_status); } && {
24867          test -z "$ac_cxx_werror_flag" ||
24868          test ! -s conftest.err
24869        } && test -s conftest.$ac_objext; then
24870   ac_cv_header_unordered_map=yes
24871 else
24872   echo "$as_me: failed program was:" >&5
24873 sed 's/^/| /' conftest.$ac_ext >&5
24874
24875         ac_cv_header_unordered_map=no
24876 fi
24877
24878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24879 fi
24880 { echo "$as_me:$LINENO: result: $ac_cv_header_unordered_map" >&5
24881 echo "${ECHO_T}$ac_cv_header_unordered_map" >&6; }
24882 if test $ac_cv_header_unordered_map = yes; then
24883   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std" >&5
24884 echo $ECHO_N "checking for unordered_map and unordered_set in std... $ECHO_C" >&6; }
24885 if test "${wx_cv_class_stdunorderedmapset+set}" = set; then
24886   echo $ECHO_N "(cached) $ECHO_C" >&6
24887 else
24888   cat >conftest.$ac_ext <<_ACEOF
24889 /* confdefs.h.  */
24890 _ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h.  */
24894 #include <unordered_map>
24895                 #include <unordered_set>
24896 int
24897 main ()
24898 {
24899 std::unordered_map<double*, char*> test1;
24900                  std::unordered_set<char*> test2;
24901   ;
24902   return 0;
24903 }
24904 _ACEOF
24905 rm -f conftest.$ac_objext
24906 if { (ac_try="$ac_compile"
24907 case "(($ac_try" in
24908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909   *) ac_try_echo=$ac_try;;
24910 esac
24911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24912   (eval "$ac_compile") 2>conftest.er1
24913   ac_status=$?
24914   grep -v '^ *+' conftest.er1 >conftest.err
24915   rm -f conftest.er1
24916   cat conftest.err >&5
24917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918   (exit $ac_status); } && {
24919          test -z "$ac_cxx_werror_flag" ||
24920          test ! -s conftest.err
24921        } && test -s conftest.$ac_objext; then
24922   wx_cv_class_stdunorderedmapset=yes
24923 else
24924   echo "$as_me: failed program was:" >&5
24925 sed 's/^/| /' conftest.$ac_ext >&5
24926
24927         wx_cv_class_stdunorderedmapset=no
24928 fi
24929
24930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24931
24932
24933 fi
24934 { echo "$as_me:$LINENO: result: $wx_cv_class_stdunorderedmapset" >&5
24935 echo "${ECHO_T}$wx_cv_class_stdunorderedmapset" >&6; }
24936 fi
24937
24938
24939
24940     if test "$wx_cv_class_stdunorderedmapset" = yes; then
24941          cat >>confdefs.h <<\_ACEOF
24942 #define HAVE_STD_UNORDERED_MAP 1
24943 _ACEOF
24944
24945          cat >>confdefs.h <<\_ACEOF
24946 #define HAVE_STD_UNORDERED_SET 1
24947 _ACEOF
24948
24949     else
24950         { echo "$as_me:$LINENO: checking for tr1/unordered_map" >&5
24951 echo $ECHO_N "checking for tr1/unordered_map... $ECHO_C" >&6; }
24952 if test "${ac_cv_header_tr1_unordered_map+set}" = set; then
24953   echo $ECHO_N "(cached) $ECHO_C" >&6
24954 else
24955   cat >conftest.$ac_ext <<_ACEOF
24956 /* confdefs.h.  */
24957 _ACEOF
24958 cat confdefs.h >>conftest.$ac_ext
24959 cat >>conftest.$ac_ext <<_ACEOF
24960 /* end confdefs.h.  */
24961
24962
24963
24964 #include <tr1/unordered_map>
24965 _ACEOF
24966 rm -f conftest.$ac_objext
24967 if { (ac_try="$ac_compile"
24968 case "(($ac_try" in
24969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24970   *) ac_try_echo=$ac_try;;
24971 esac
24972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24973   (eval "$ac_compile") 2>conftest.er1
24974   ac_status=$?
24975   grep -v '^ *+' conftest.er1 >conftest.err
24976   rm -f conftest.er1
24977   cat conftest.err >&5
24978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979   (exit $ac_status); } && {
24980          test -z "$ac_cxx_werror_flag" ||
24981          test ! -s conftest.err
24982        } && test -s conftest.$ac_objext; then
24983   ac_cv_header_tr1_unordered_map=yes
24984 else
24985   echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24987
24988         ac_cv_header_tr1_unordered_map=no
24989 fi
24990
24991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24992 fi
24993 { echo "$as_me:$LINENO: result: $ac_cv_header_tr1_unordered_map" >&5
24994 echo "${ECHO_T}$ac_cv_header_tr1_unordered_map" >&6; }
24995 if test $ac_cv_header_tr1_unordered_map = yes; then
24996   { echo "$as_me:$LINENO: checking for unordered_map and unordered_set in std::tr1" >&5
24997 echo $ECHO_N "checking for unordered_map and unordered_set in std::tr1... $ECHO_C" >&6; }
24998 if test "${wx_cv_class_tr1unorderedmapset+set}" = set; then
24999   echo $ECHO_N "(cached) $ECHO_C" >&6
25000 else
25001   cat >conftest.$ac_ext <<_ACEOF
25002 /* confdefs.h.  */
25003 _ACEOF
25004 cat confdefs.h >>conftest.$ac_ext
25005 cat >>conftest.$ac_ext <<_ACEOF
25006 /* end confdefs.h.  */
25007 #include <tr1/unordered_map>
25008                     #include <tr1/unordered_set>
25009 int
25010 main ()
25011 {
25012 std::tr1::unordered_map<double*, char*> test1;
25013                      std::tr1::unordered_set<char*> test2;
25014             #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2)
25015             #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389
25016             #endif
25017   ;
25018   return 0;
25019 }
25020 _ACEOF
25021 rm -f conftest.$ac_objext
25022 if { (ac_try="$ac_compile"
25023 case "(($ac_try" in
25024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25025   *) ac_try_echo=$ac_try;;
25026 esac
25027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25028   (eval "$ac_compile") 2>conftest.er1
25029   ac_status=$?
25030   grep -v '^ *+' conftest.er1 >conftest.err
25031   rm -f conftest.er1
25032   cat conftest.err >&5
25033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034   (exit $ac_status); } && {
25035          test -z "$ac_cxx_werror_flag" ||
25036          test ! -s conftest.err
25037        } && test -s conftest.$ac_objext; then
25038   wx_cv_class_tr1unorderedmapset=yes
25039 else
25040   echo "$as_me: failed program was:" >&5
25041 sed 's/^/| /' conftest.$ac_ext >&5
25042
25043         wx_cv_class_tr1unorderedmapset=no
25044 fi
25045
25046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25047
25048
25049 fi
25050 { echo "$as_me:$LINENO: result: $wx_cv_class_tr1unorderedmapset" >&5
25051 echo "${ECHO_T}$wx_cv_class_tr1unorderedmapset" >&6; }
25052 fi
25053
25054
25055
25056         if test "$wx_cv_class_tr1unorderedmapset" = yes; then
25057             cat >>confdefs.h <<\_ACEOF
25058 #define HAVE_TR1_UNORDERED_MAP 1
25059 _ACEOF
25060
25061             cat >>confdefs.h <<\_ACEOF
25062 #define HAVE_TR1_UNORDERED_SET 1
25063 _ACEOF
25064
25065         else
25066                         { echo "$as_me:$LINENO: checking for hash_map" >&5
25067 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
25068 if test "${ac_cv_header_hash_map+set}" = set; then
25069   echo $ECHO_N "(cached) $ECHO_C" >&6
25070 else
25071   cat >conftest.$ac_ext <<_ACEOF
25072 /* confdefs.h.  */
25073 _ACEOF
25074 cat confdefs.h >>conftest.$ac_ext
25075 cat >>conftest.$ac_ext <<_ACEOF
25076 /* end confdefs.h.  */
25077
25078
25079
25080 #include <hash_map>
25081 _ACEOF
25082 rm -f conftest.$ac_objext
25083 if { (ac_try="$ac_compile"
25084 case "(($ac_try" in
25085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25086   *) ac_try_echo=$ac_try;;
25087 esac
25088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25089   (eval "$ac_compile") 2>conftest.er1
25090   ac_status=$?
25091   grep -v '^ *+' conftest.er1 >conftest.err
25092   rm -f conftest.er1
25093   cat conftest.err >&5
25094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095   (exit $ac_status); } && {
25096          test -z "$ac_cxx_werror_flag" ||
25097          test ! -s conftest.err
25098        } && test -s conftest.$ac_objext; then
25099   ac_cv_header_hash_map=yes
25100 else
25101   echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25103
25104         ac_cv_header_hash_map=no
25105 fi
25106
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25108 fi
25109 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
25110 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
25111 if test $ac_cv_header_hash_map = yes; then
25112   { echo "$as_me:$LINENO: checking for std::hash_map and hash_set" >&5
25113 echo $ECHO_N "checking for std::hash_map and hash_set... $ECHO_C" >&6; }
25114 if test "${wx_cv_class_stdhashmapset+set}" = set; then
25115   echo $ECHO_N "(cached) $ECHO_C" >&6
25116 else
25117   cat >conftest.$ac_ext <<_ACEOF
25118 /* confdefs.h.  */
25119 _ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h.  */
25123 #include <hash_map>
25124                         #include <hash_set>
25125 int
25126 main ()
25127 {
25128 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
25129                          std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
25130   ;
25131   return 0;
25132 }
25133 _ACEOF
25134 rm -f conftest.$ac_objext
25135 if { (ac_try="$ac_compile"
25136 case "(($ac_try" in
25137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25138   *) ac_try_echo=$ac_try;;
25139 esac
25140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25141   (eval "$ac_compile") 2>conftest.er1
25142   ac_status=$?
25143   grep -v '^ *+' conftest.er1 >conftest.err
25144   rm -f conftest.er1
25145   cat conftest.err >&5
25146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147   (exit $ac_status); } && {
25148          test -z "$ac_cxx_werror_flag" ||
25149          test ! -s conftest.err
25150        } && test -s conftest.$ac_objext; then
25151   wx_cv_class_stdhashmapset=yes
25152 else
25153   echo "$as_me: failed program was:" >&5
25154 sed 's/^/| /' conftest.$ac_ext >&5
25155
25156         wx_cv_class_stdhashmapset=no
25157 fi
25158
25159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25160
25161
25162 fi
25163 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
25164 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
25165 fi
25166
25167
25168
25169             if test "$wx_cv_class_stdhashmapset" = yes; then
25170                 cat >>confdefs.h <<\_ACEOF
25171 #define HAVE_HASH_MAP 1
25172 _ACEOF
25173
25174                 cat >>confdefs.h <<\_ACEOF
25175 #define HAVE_STD_HASH_MAP 1
25176 _ACEOF
25177
25178             fi
25179
25180             { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
25181 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
25182 if test "${ac_cv_header_ext_hash_map+set}" = set; then
25183   echo $ECHO_N "(cached) $ECHO_C" >&6
25184 else
25185   cat >conftest.$ac_ext <<_ACEOF
25186 /* confdefs.h.  */
25187 _ACEOF
25188 cat confdefs.h >>conftest.$ac_ext
25189 cat >>conftest.$ac_ext <<_ACEOF
25190 /* end confdefs.h.  */
25191
25192
25193
25194 #include <ext/hash_map>
25195 _ACEOF
25196 rm -f conftest.$ac_objext
25197 if { (ac_try="$ac_compile"
25198 case "(($ac_try" in
25199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200   *) ac_try_echo=$ac_try;;
25201 esac
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203   (eval "$ac_compile") 2>conftest.er1
25204   ac_status=$?
25205   grep -v '^ *+' conftest.er1 >conftest.err
25206   rm -f conftest.er1
25207   cat conftest.err >&5
25208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209   (exit $ac_status); } && {
25210          test -z "$ac_cxx_werror_flag" ||
25211          test ! -s conftest.err
25212        } && test -s conftest.$ac_objext; then
25213   ac_cv_header_ext_hash_map=yes
25214 else
25215   echo "$as_me: failed program was:" >&5
25216 sed 's/^/| /' conftest.$ac_ext >&5
25217
25218         ac_cv_header_ext_hash_map=no
25219 fi
25220
25221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25222 fi
25223 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
25224 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
25225 if test $ac_cv_header_ext_hash_map = yes; then
25226   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
25227 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
25228 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
25229   echo $ECHO_N "(cached) $ECHO_C" >&6
25230 else
25231   cat >conftest.$ac_ext <<_ACEOF
25232 /* confdefs.h.  */
25233 _ACEOF
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h.  */
25237 #include <ext/hash_map>
25238                         #include <ext/hash_set>
25239 int
25240 main ()
25241 {
25242 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
25243                          __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
25244   ;
25245   return 0;
25246 }
25247 _ACEOF
25248 rm -f conftest.$ac_objext
25249 if { (ac_try="$ac_compile"
25250 case "(($ac_try" in
25251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25252   *) ac_try_echo=$ac_try;;
25253 esac
25254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25255   (eval "$ac_compile") 2>conftest.er1
25256   ac_status=$?
25257   grep -v '^ *+' conftest.er1 >conftest.err
25258   rm -f conftest.er1
25259   cat conftest.err >&5
25260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261   (exit $ac_status); } && {
25262          test -z "$ac_cxx_werror_flag" ||
25263          test ! -s conftest.err
25264        } && test -s conftest.$ac_objext; then
25265   wx_cv_class_gnuhashmapset=yes
25266 else
25267   echo "$as_me: failed program was:" >&5
25268 sed 's/^/| /' conftest.$ac_ext >&5
25269
25270         wx_cv_class_gnuhashmapset=no
25271 fi
25272
25273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25274
25275
25276 fi
25277 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
25278 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
25279 fi
25280
25281
25282
25283         fi
25284     fi
25285 fi
25286
25287
25288
25289   if test -n "$GCC"; then
25290     { echo "$as_me:$LINENO: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5
25291 echo $ECHO_N "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... $ECHO_C" >&6; }
25292     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
25293   echo $ECHO_N "(cached) $ECHO_C" >&6
25294 else
25295
25296       cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h.  */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h.  */
25302
25303 int
25304 main ()
25305 {
25306
25307           unsigned int value=0;
25308           /* wxAtomicInc doesn't use return value here */
25309           __sync_fetch_and_add(&value, 2);
25310           __sync_sub_and_fetch(&value, 1);
25311           /* but wxAtomicDec does, so mimic that: */
25312           unsigned int r2 = __sync_sub_and_fetch(&value, 1);
25313
25314   ;
25315   return 0;
25316 }
25317 _ACEOF
25318 rm -f conftest.$ac_objext conftest$ac_exeext
25319 if { (ac_try="$ac_link"
25320 case "(($ac_try" in
25321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25322   *) ac_try_echo=$ac_try;;
25323 esac
25324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25325   (eval "$ac_link") 2>conftest.er1
25326   ac_status=$?
25327   grep -v '^ *+' conftest.er1 >conftest.err
25328   rm -f conftest.er1
25329   cat conftest.err >&5
25330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331   (exit $ac_status); } && {
25332          test -z "$ac_cxx_werror_flag" ||
25333          test ! -s conftest.err
25334        } && test -s conftest$ac_exeext &&
25335        $as_test_x conftest$ac_exeext; then
25336   wx_cv_cc_gcc_atomic_builtins=yes
25337 else
25338   echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.$ac_ext >&5
25340
25341         wx_cv_cc_gcc_atomic_builtins=no
25342 fi
25343
25344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25345       conftest$ac_exeext conftest.$ac_ext
25346
25347 fi
25348
25349     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
25350 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
25351     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
25352       cat >>confdefs.h <<\_ACEOF
25353 #define HAVE_GCC_ATOMIC_BUILTINS 1
25354 _ACEOF
25355
25356     fi
25357   fi
25358
25359
25360 ac_ext=c
25361 ac_cpp='$CPP $CPPFLAGS'
25362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25365
25366
25367
25368 SEARCH_INCLUDE="\
25369     /usr/local/include        \
25370     /usr/local/X11/include    \
25371     /usr/local/include/X11    \
25372     /usr/local/X11R6/include  \
25373     /usr/local/include/X11R6  \
25374                               \
25375     /usr/Motif-2.1/include    \
25376     /usr/Motif-1.2/include    \
25377     /usr/include/Motif1.2     \
25378                               \
25379     /usr/dt/include           \
25380     /usr/openwin/include      \
25381                               \
25382     /usr/include/Xm           \
25383                               \
25384     /usr/X11R6/include        \
25385     /usr/X11R6.4/include      \
25386                               \
25387     /usr/include/X11R6        \
25388                               \
25389     /usr/X11/include          \
25390     /usr/include/X11          \
25391                               \
25392     /usr/XFree86/include/X11  \
25393     /usr/pkg/include          \
25394                               \
25395     /usr/local/X1R5/include  \
25396     /usr/local/include/X11R5  \
25397     /usr/X11R5/include        \
25398     /usr/include/X11R5        \
25399                               \
25400     /usr/local/X11R4/include  \
25401     /usr/local/include/X11R4  \
25402     /usr/X11R4/include        \
25403     /usr/include/X11R4        \
25404                               \
25405     /usr/openwin/share/include"
25406
25407 { echo "$as_me:$LINENO: checking for libraries directory" >&5
25408 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
25409
25410 case "${host}" in
25411     *-*-irix6* )
25412         if test "${wx_cv_std_libpath+set}" = set; then
25413   echo $ECHO_N "(cached) $ECHO_C" >&6
25414 else
25415
25416                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
25417                     for e in a so sl dylib dll.a; do
25418                         libc="$d/libc.$e"
25419                         if test -f $libc; then
25420                             save_LIBS="$LIBS"
25421                             LIBS="$libc"
25422                             cat >conftest.$ac_ext <<_ACEOF
25423 int main() { return 0; }
25424 _ACEOF
25425 rm -f conftest.$ac_objext conftest$ac_exeext
25426 if { (ac_try="$ac_link"
25427 case "(($ac_try" in
25428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25429   *) ac_try_echo=$ac_try;;
25430 esac
25431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25432   (eval "$ac_link") 2>conftest.er1
25433   ac_status=$?
25434   grep -v '^ *+' conftest.er1 >conftest.err
25435   rm -f conftest.er1
25436   cat conftest.err >&5
25437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438   (exit $ac_status); } && {
25439          test -z "$ac_c_werror_flag" ||
25440          test ! -s conftest.err
25441        } && test -s conftest$ac_exeext &&
25442        $as_test_x conftest$ac_exeext; then
25443   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
25444 else
25445   echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25447
25448
25449 fi
25450
25451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25452       conftest$ac_exeext conftest.$ac_ext
25453                             LIBS="$save_LIBS"
25454                             if test "x$wx_cv_std_libpath" != "x"; then
25455                                 break 2
25456                             fi
25457                         fi
25458                     done
25459                 done
25460                 if test "x$wx_cv_std_libpath" = "x"; then
25461                     wx_cv_std_libpath="lib"
25462                 fi
25463
25464
25465 fi
25466
25467         ;;
25468
25469     *-*-solaris2* )
25470                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
25471             wx_cv_std_libpath="lib/64"
25472         else
25473             wx_cv_std_libpath="lib"
25474         fi
25475         ;;
25476
25477     *-*-linux* )
25478                 if test "$ac_cv_sizeof_void_p" = 8 -a \
25479                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
25480             wx_cv_std_libpath="lib64"
25481         else
25482             wx_cv_std_libpath="lib"
25483         fi
25484         ;;
25485
25486     *)
25487         wx_cv_std_libpath="lib";
25488         ;;
25489 esac
25490
25491 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
25492 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
25493
25494 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
25495
25496 if test "$build" != "$host" -a "$GCC" = yes; then
25497                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
25498         cross_root=`dirname $cross_root`
25499         cross_root=`dirname $cross_root`
25500
25501                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25502         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
25503         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
25504
25505                 if test -z "$PKG_CONFIG_PATH"; then
25506             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
25507             export PKG_CONFIG_PATH
25508         fi
25509
25510                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
25511
25512 ac_find_includes=
25513 for ac_dir in $SEARCH_INCLUDE /usr/include;
25514   do
25515     if test -f "$ac_dir/X11/Intrinsic.h"; then
25516       ac_find_includes=$ac_dir
25517       break
25518     fi
25519   done
25520
25521             x_includes=$ac_find_includes
25522         fi
25523         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
25524
25525   ac_find_libraries=
25526   for ac_dir in $SEARCH_LIB;
25527   do
25528     for ac_extension in a so sl dylib dll.a; do
25529       if test -f "$ac_dir/libXt.$ac_extension"; then
25530         ac_find_libraries=$ac_dir
25531         break 2
25532       fi
25533     done
25534   done
25535
25536             x_libraries=$ac_find_libraries
25537         fi
25538     fi
25539 fi
25540
25541
25542 cat >confcache <<\_ACEOF
25543 # This file is a shell script that caches the results of configure
25544 # tests run on this system so they can be shared between configure
25545 # scripts and configure runs, see configure's option --config-cache.
25546 # It is not useful on other systems.  If it contains results you don't
25547 # want to keep, you may remove or edit it.
25548 #
25549 # config.status only pays attention to the cache file if you give it
25550 # the --recheck option to rerun configure.
25551 #
25552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25554 # following values.
25555
25556 _ACEOF
25557
25558 # The following way of writing the cache mishandles newlines in values,
25559 # but we know of no workaround that is simple, portable, and efficient.
25560 # So, we kill variables containing newlines.
25561 # Ultrix sh set writes to stderr and can't be redirected directly,
25562 # and sets the high bit in the cache file unless we assign to the vars.
25563 (
25564   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25565     eval ac_val=\$$ac_var
25566     case $ac_val in #(
25567     *${as_nl}*)
25568       case $ac_var in #(
25569       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25570 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25571       esac
25572       case $ac_var in #(
25573       _ | IFS | as_nl) ;; #(
25574       *) $as_unset $ac_var ;;
25575       esac ;;
25576     esac
25577   done
25578
25579   (set) 2>&1 |
25580     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25581     *${as_nl}ac_space=\ *)
25582       # `set' does not quote correctly, so add quotes (double-quote
25583       # substitution turns \\\\ into \\, and sed turns \\ into \).
25584       sed -n \
25585         "s/'/'\\\\''/g;
25586           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25587       ;; #(
25588     *)
25589       # `set' quotes correctly as required by POSIX, so do not add quotes.
25590       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25591       ;;
25592     esac |
25593     sort
25594 ) |
25595   sed '
25596      /^ac_cv_env_/b end
25597      t clear
25598      :clear
25599      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25600      t end
25601      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25602      :end' >>confcache
25603 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25604   if test -w "$cache_file"; then
25605     test "x$cache_file" != "x/dev/null" &&
25606       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25607 echo "$as_me: updating cache $cache_file" >&6;}
25608     cat confcache >$cache_file
25609   else
25610     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25611 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25612   fi
25613 fi
25614 rm -f confcache
25615
25616 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
25617     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
25618 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
25619 if test "${wx_cv_lib_glibc21+set}" = set; then
25620   echo $ECHO_N "(cached) $ECHO_C" >&6
25621 else
25622
25623         cat >conftest.$ac_ext <<_ACEOF
25624 /* confdefs.h.  */
25625 _ACEOF
25626 cat confdefs.h >>conftest.$ac_ext
25627 cat >>conftest.$ac_ext <<_ACEOF
25628 /* end confdefs.h.  */
25629 #include <features.h>
25630 int
25631 main ()
25632 {
25633
25634                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
25635                 not glibc 2.1
25636                 #endif
25637
25638   ;
25639   return 0;
25640 }
25641 _ACEOF
25642 rm -f conftest.$ac_objext
25643 if { (ac_try="$ac_compile"
25644 case "(($ac_try" in
25645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25646   *) ac_try_echo=$ac_try;;
25647 esac
25648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25649   (eval "$ac_compile") 2>conftest.er1
25650   ac_status=$?
25651   grep -v '^ *+' conftest.er1 >conftest.err
25652   rm -f conftest.er1
25653   cat conftest.err >&5
25654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655   (exit $ac_status); } && {
25656          test -z "$ac_c_werror_flag" ||
25657          test ! -s conftest.err
25658        } && test -s conftest.$ac_objext; then
25659
25660                 wx_cv_lib_glibc21=yes
25661
25662 else
25663   echo "$as_me: failed program was:" >&5
25664 sed 's/^/| /' conftest.$ac_ext >&5
25665
25666
25667                 wx_cv_lib_glibc21=no
25668
25669
25670 fi
25671
25672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25673
25674 fi
25675 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
25676 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
25677     if test "$wx_cv_lib_glibc21" = "yes"; then
25678         cat >>confdefs.h <<\_ACEOF
25679 #define wxHAVE_GLIBC2 1
25680 _ACEOF
25681
25682     fi
25683 fi
25684
25685 if test "x$wx_cv_lib_glibc21" = "xyes"; then
25686     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
25687         cat >>confdefs.h <<\_ACEOF
25688 #define _GNU_SOURCE 1
25689 _ACEOF
25690
25691     fi
25692 fi
25693
25694 have_cos=0
25695 have_floor=0
25696
25697 for ac_func in cos
25698 do
25699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25703   echo $ECHO_N "(cached) $ECHO_C" >&6
25704 else
25705   cat >conftest.$ac_ext <<_ACEOF
25706 /* confdefs.h.  */
25707 _ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h.  */
25711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25713 #define $ac_func innocuous_$ac_func
25714
25715 /* System header to define __stub macros and hopefully few prototypes,
25716     which can conflict with char $ac_func (); below.
25717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25718     <limits.h> exists even on freestanding compilers.  */
25719
25720 #ifdef __STDC__
25721 # include <limits.h>
25722 #else
25723 # include <assert.h>
25724 #endif
25725
25726 #undef $ac_func
25727
25728 /* Override any GCC internal prototype to avoid an error.
25729    Use char because int might match the return type of a GCC
25730    builtin and then its argument prototype would still apply.  */
25731 #ifdef __cplusplus
25732 extern "C"
25733 #endif
25734 char $ac_func ();
25735 /* The GNU C library defines this for functions which it implements
25736     to always fail with ENOSYS.  Some functions are actually named
25737     something starting with __ and the normal name is an alias.  */
25738 #if defined __stub_$ac_func || defined __stub___$ac_func
25739 choke me
25740 #endif
25741
25742 int
25743 main ()
25744 {
25745 return $ac_func ();
25746   ;
25747   return 0;
25748 }
25749 _ACEOF
25750 rm -f conftest.$ac_objext conftest$ac_exeext
25751 if { (ac_try="$ac_link"
25752 case "(($ac_try" in
25753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25754   *) ac_try_echo=$ac_try;;
25755 esac
25756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25757   (eval "$ac_link") 2>conftest.er1
25758   ac_status=$?
25759   grep -v '^ *+' conftest.er1 >conftest.err
25760   rm -f conftest.er1
25761   cat conftest.err >&5
25762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763   (exit $ac_status); } && {
25764          test -z "$ac_c_werror_flag" ||
25765          test ! -s conftest.err
25766        } && test -s conftest$ac_exeext &&
25767        $as_test_x conftest$ac_exeext; then
25768   eval "$as_ac_var=yes"
25769 else
25770   echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25772
25773         eval "$as_ac_var=no"
25774 fi
25775
25776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25777       conftest$ac_exeext conftest.$ac_ext
25778 fi
25779 ac_res=`eval echo '${'$as_ac_var'}'`
25780                { echo "$as_me:$LINENO: result: $ac_res" >&5
25781 echo "${ECHO_T}$ac_res" >&6; }
25782 if test `eval echo '${'$as_ac_var'}'` = yes; then
25783   cat >>confdefs.h <<_ACEOF
25784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25785 _ACEOF
25786  have_cos=1
25787 fi
25788 done
25789
25790
25791 for ac_func in floor
25792 do
25793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25794 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25796 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25797   echo $ECHO_N "(cached) $ECHO_C" >&6
25798 else
25799   cat >conftest.$ac_ext <<_ACEOF
25800 /* confdefs.h.  */
25801 _ACEOF
25802 cat confdefs.h >>conftest.$ac_ext
25803 cat >>conftest.$ac_ext <<_ACEOF
25804 /* end confdefs.h.  */
25805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25807 #define $ac_func innocuous_$ac_func
25808
25809 /* System header to define __stub macros and hopefully few prototypes,
25810     which can conflict with char $ac_func (); below.
25811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25812     <limits.h> exists even on freestanding compilers.  */
25813
25814 #ifdef __STDC__
25815 # include <limits.h>
25816 #else
25817 # include <assert.h>
25818 #endif
25819
25820 #undef $ac_func
25821
25822 /* Override any GCC internal prototype to avoid an error.
25823    Use char because int might match the return type of a GCC
25824    builtin and then its argument prototype would still apply.  */
25825 #ifdef __cplusplus
25826 extern "C"
25827 #endif
25828 char $ac_func ();
25829 /* The GNU C library defines this for functions which it implements
25830     to always fail with ENOSYS.  Some functions are actually named
25831     something starting with __ and the normal name is an alias.  */
25832 #if defined __stub_$ac_func || defined __stub___$ac_func
25833 choke me
25834 #endif
25835
25836 int
25837 main ()
25838 {
25839 return $ac_func ();
25840   ;
25841   return 0;
25842 }
25843 _ACEOF
25844 rm -f conftest.$ac_objext conftest$ac_exeext
25845 if { (ac_try="$ac_link"
25846 case "(($ac_try" in
25847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25848   *) ac_try_echo=$ac_try;;
25849 esac
25850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25851   (eval "$ac_link") 2>conftest.er1
25852   ac_status=$?
25853   grep -v '^ *+' conftest.er1 >conftest.err
25854   rm -f conftest.er1
25855   cat conftest.err >&5
25856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857   (exit $ac_status); } && {
25858          test -z "$ac_c_werror_flag" ||
25859          test ! -s conftest.err
25860        } && test -s conftest$ac_exeext &&
25861        $as_test_x conftest$ac_exeext; then
25862   eval "$as_ac_var=yes"
25863 else
25864   echo "$as_me: failed program was:" >&5
25865 sed 's/^/| /' conftest.$ac_ext >&5
25866
25867         eval "$as_ac_var=no"
25868 fi
25869
25870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25871       conftest$ac_exeext conftest.$ac_ext
25872 fi
25873 ac_res=`eval echo '${'$as_ac_var'}'`
25874                { echo "$as_me:$LINENO: result: $ac_res" >&5
25875 echo "${ECHO_T}$ac_res" >&6; }
25876 if test `eval echo '${'$as_ac_var'}'` = yes; then
25877   cat >>confdefs.h <<_ACEOF
25878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25879 _ACEOF
25880  have_floor=1
25881 fi
25882 done
25883
25884 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
25885 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
25886 if test "$have_cos" = 1 -a "$have_floor" = 1; then
25887     { echo "$as_me:$LINENO: result: yes" >&5
25888 echo "${ECHO_T}yes" >&6; }
25889 else
25890     { echo "$as_me:$LINENO: result: no" >&5
25891 echo "${ECHO_T}no" >&6; }
25892     LIBS="$LIBS -lm"
25893     # use different functions to avoid configure caching
25894     have_sin=0
25895     have_ceil=0
25896
25897 for ac_func in sin
25898 do
25899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25903   echo $ECHO_N "(cached) $ECHO_C" >&6
25904 else
25905   cat >conftest.$ac_ext <<_ACEOF
25906 /* confdefs.h.  */
25907 _ACEOF
25908 cat confdefs.h >>conftest.$ac_ext
25909 cat >>conftest.$ac_ext <<_ACEOF
25910 /* end confdefs.h.  */
25911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25913 #define $ac_func innocuous_$ac_func
25914
25915 /* System header to define __stub macros and hopefully few prototypes,
25916     which can conflict with char $ac_func (); below.
25917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25918     <limits.h> exists even on freestanding compilers.  */
25919
25920 #ifdef __STDC__
25921 # include <limits.h>
25922 #else
25923 # include <assert.h>
25924 #endif
25925
25926 #undef $ac_func
25927
25928 /* Override any GCC internal prototype to avoid an error.
25929    Use char because int might match the return type of a GCC
25930    builtin and then its argument prototype would still apply.  */
25931 #ifdef __cplusplus
25932 extern "C"
25933 #endif
25934 char $ac_func ();
25935 /* The GNU C library defines this for functions which it implements
25936     to always fail with ENOSYS.  Some functions are actually named
25937     something starting with __ and the normal name is an alias.  */
25938 #if defined __stub_$ac_func || defined __stub___$ac_func
25939 choke me
25940 #endif
25941
25942 int
25943 main ()
25944 {
25945 return $ac_func ();
25946   ;
25947   return 0;
25948 }
25949 _ACEOF
25950 rm -f conftest.$ac_objext conftest$ac_exeext
25951 if { (ac_try="$ac_link"
25952 case "(($ac_try" in
25953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25954   *) ac_try_echo=$ac_try;;
25955 esac
25956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25957   (eval "$ac_link") 2>conftest.er1
25958   ac_status=$?
25959   grep -v '^ *+' conftest.er1 >conftest.err
25960   rm -f conftest.er1
25961   cat conftest.err >&5
25962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963   (exit $ac_status); } && {
25964          test -z "$ac_c_werror_flag" ||
25965          test ! -s conftest.err
25966        } && test -s conftest$ac_exeext &&
25967        $as_test_x conftest$ac_exeext; then
25968   eval "$as_ac_var=yes"
25969 else
25970   echo "$as_me: failed program was:" >&5
25971 sed 's/^/| /' conftest.$ac_ext >&5
25972
25973         eval "$as_ac_var=no"
25974 fi
25975
25976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25977       conftest$ac_exeext conftest.$ac_ext
25978 fi
25979 ac_res=`eval echo '${'$as_ac_var'}'`
25980                { echo "$as_me:$LINENO: result: $ac_res" >&5
25981 echo "${ECHO_T}$ac_res" >&6; }
25982 if test `eval echo '${'$as_ac_var'}'` = yes; then
25983   cat >>confdefs.h <<_ACEOF
25984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25985 _ACEOF
25986  have_sin=1
25987 fi
25988 done
25989
25990
25991 for ac_func in ceil
25992 do
25993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25997   echo $ECHO_N "(cached) $ECHO_C" >&6
25998 else
25999   cat >conftest.$ac_ext <<_ACEOF
26000 /* confdefs.h.  */
26001 _ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h.  */
26005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26007 #define $ac_func innocuous_$ac_func
26008
26009 /* System header to define __stub macros and hopefully few prototypes,
26010     which can conflict with char $ac_func (); below.
26011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26012     <limits.h> exists even on freestanding compilers.  */
26013
26014 #ifdef __STDC__
26015 # include <limits.h>
26016 #else
26017 # include <assert.h>
26018 #endif
26019
26020 #undef $ac_func
26021
26022 /* Override any GCC internal prototype to avoid an error.
26023    Use char because int might match the return type of a GCC
26024    builtin and then its argument prototype would still apply.  */
26025 #ifdef __cplusplus
26026 extern "C"
26027 #endif
26028 char $ac_func ();
26029 /* The GNU C library defines this for functions which it implements
26030     to always fail with ENOSYS.  Some functions are actually named
26031     something starting with __ and the normal name is an alias.  */
26032 #if defined __stub_$ac_func || defined __stub___$ac_func
26033 choke me
26034 #endif
26035
26036 int
26037 main ()
26038 {
26039 return $ac_func ();
26040   ;
26041   return 0;
26042 }
26043 _ACEOF
26044 rm -f conftest.$ac_objext conftest$ac_exeext
26045 if { (ac_try="$ac_link"
26046 case "(($ac_try" in
26047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26048   *) ac_try_echo=$ac_try;;
26049 esac
26050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26051   (eval "$ac_link") 2>conftest.er1
26052   ac_status=$?
26053   grep -v '^ *+' conftest.er1 >conftest.err
26054   rm -f conftest.er1
26055   cat conftest.err >&5
26056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057   (exit $ac_status); } && {
26058          test -z "$ac_c_werror_flag" ||
26059          test ! -s conftest.err
26060        } && test -s conftest$ac_exeext &&
26061        $as_test_x conftest$ac_exeext; then
26062   eval "$as_ac_var=yes"
26063 else
26064   echo "$as_me: failed program was:" >&5
26065 sed 's/^/| /' conftest.$ac_ext >&5
26066
26067         eval "$as_ac_var=no"
26068 fi
26069
26070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26071       conftest$ac_exeext conftest.$ac_ext
26072 fi
26073 ac_res=`eval echo '${'$as_ac_var'}'`
26074                { echo "$as_me:$LINENO: result: $ac_res" >&5
26075 echo "${ECHO_T}$ac_res" >&6; }
26076 if test `eval echo '${'$as_ac_var'}'` = yes; then
26077   cat >>confdefs.h <<_ACEOF
26078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26079 _ACEOF
26080  have_ceil=1
26081 fi
26082 done
26083
26084     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
26085 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
26086     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
26087         { echo "$as_me:$LINENO: result: yes" >&5
26088 echo "${ECHO_T}yes" >&6; }
26089     else
26090         { echo "$as_me:$LINENO: result: no" >&5
26091 echo "${ECHO_T}no" >&6; }
26092         # not sure we should warn the user, crash, etc.
26093     fi
26094 fi
26095
26096 ac_ext=cpp
26097 ac_cpp='$CXXCPP $CPPFLAGS'
26098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26101
26102 if test "wxUSE_UNICODE" = "yes"; then
26103
26104   for wx_func in wcstoull
26105   do
26106     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26107 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26108 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26109   echo $ECHO_N "(cached) $ECHO_C" >&6
26110 else
26111
26112         cat >conftest.$ac_ext <<_ACEOF
26113
26114             /* confdefs.h.  */
26115 _ACEOF
26116 cat confdefs.h >>conftest.$ac_ext
26117 cat >>conftest.$ac_ext <<_ACEOF
26118 /* end confdefs.h.  */
26119
26120
26121                 $ac_includes_default
26122
26123 int
26124 main ()
26125 {
26126
26127                 #ifndef $wx_func
26128                   &$wx_func;
26129                 #endif
26130
26131
26132   ;
26133   return 0;
26134 }
26135
26136 _ACEOF
26137 rm -f conftest.$ac_objext conftest$ac_exeext
26138 if { (ac_try="$ac_link"
26139 case "(($ac_try" in
26140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26141   *) ac_try_echo=$ac_try;;
26142 esac
26143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26144   (eval "$ac_link") 2>conftest.er1
26145   ac_status=$?
26146   grep -v '^ *+' conftest.er1 >conftest.err
26147   rm -f conftest.er1
26148   cat conftest.err >&5
26149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150   (exit $ac_status); } && {
26151          test -z "$ac_cxx_werror_flag" ||
26152          test ! -s conftest.err
26153        } && test -s conftest$ac_exeext &&
26154        $as_test_x conftest$ac_exeext; then
26155   eval wx_cv_func_$wx_func=yes
26156 else
26157   echo "$as_me: failed program was:" >&5
26158 sed 's/^/| /' conftest.$ac_ext >&5
26159
26160         eval wx_cv_func_$wx_func=no
26161 fi
26162
26163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26164       conftest$ac_exeext conftest.$ac_ext
26165
26166 fi
26167 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26168                { echo "$as_me:$LINENO: result: $ac_res" >&5
26169 echo "${ECHO_T}$ac_res" >&6; }
26170
26171     if eval test \$wx_cv_func_$wx_func = yes
26172     then
26173       cat >>confdefs.h <<_ACEOF
26174 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26175 _ACEOF
26176
26177
26178     else
26179       :
26180
26181     fi
26182   done
26183
26184 else
26185
26186   for wx_func in strtoull
26187   do
26188     { echo "$as_me:$LINENO: checking for $wx_func" >&5
26189 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
26190 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
26191   echo $ECHO_N "(cached) $ECHO_C" >&6
26192 else
26193
26194         cat >conftest.$ac_ext <<_ACEOF
26195
26196             /* confdefs.h.  */
26197 _ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h.  */
26201
26202
26203                 $ac_includes_default
26204
26205 int
26206 main ()
26207 {
26208
26209                 #ifndef $wx_func
26210                   &$wx_func;
26211                 #endif
26212
26213
26214   ;
26215   return 0;
26216 }
26217
26218 _ACEOF
26219 rm -f conftest.$ac_objext conftest$ac_exeext
26220 if { (ac_try="$ac_link"
26221 case "(($ac_try" in
26222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26223   *) ac_try_echo=$ac_try;;
26224 esac
26225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26226   (eval "$ac_link") 2>conftest.er1
26227   ac_status=$?
26228   grep -v '^ *+' conftest.er1 >conftest.err
26229   rm -f conftest.er1
26230   cat conftest.err >&5
26231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232   (exit $ac_status); } && {
26233          test -z "$ac_cxx_werror_flag" ||
26234          test ! -s conftest.err
26235        } && test -s conftest$ac_exeext &&
26236        $as_test_x conftest$ac_exeext; then
26237   eval wx_cv_func_$wx_func=yes
26238 else
26239   echo "$as_me: failed program was:" >&5
26240 sed 's/^/| /' conftest.$ac_ext >&5
26241
26242         eval wx_cv_func_$wx_func=no
26243 fi
26244
26245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26246       conftest$ac_exeext conftest.$ac_ext
26247
26248 fi
26249 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
26250                { echo "$as_me:$LINENO: result: $ac_res" >&5
26251 echo "${ECHO_T}$ac_res" >&6; }
26252
26253     if eval test \$wx_cv_func_$wx_func = yes
26254     then
26255       cat >>confdefs.h <<_ACEOF
26256 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
26257 _ACEOF
26258
26259
26260     else
26261       :
26262
26263     fi
26264   done
26265
26266 fi
26267 ac_ext=c
26268 ac_cpp='$CPP $CPPFLAGS'
26269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26272
26273
26274
26275
26276 if test "$wxUSE_REGEX" != "no"; then
26277     cat >>confdefs.h <<\_ACEOF
26278 #define wxUSE_REGEX 1
26279 _ACEOF
26280
26281
26282     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
26283         { echo "$as_me:$LINENO: WARNING: Defaulting to the builtin regex library for Unicode build." >&5
26284 echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;}
26285         wxUSE_REGEX=builtin
26286     fi
26287
26288     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
26289                         { echo "$as_me:$LINENO: checking for regex.h" >&5
26290 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
26291 if test "${ac_cv_header_regex_h+set}" = set; then
26292   echo $ECHO_N "(cached) $ECHO_C" >&6
26293 else
26294   cat >conftest.$ac_ext <<_ACEOF
26295 /* confdefs.h.  */
26296 _ACEOF
26297 cat confdefs.h >>conftest.$ac_ext
26298 cat >>conftest.$ac_ext <<_ACEOF
26299 /* end confdefs.h.  */
26300
26301
26302 #include <regex.h>
26303 _ACEOF
26304 rm -f conftest.$ac_objext
26305 if { (ac_try="$ac_compile"
26306 case "(($ac_try" in
26307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26308   *) ac_try_echo=$ac_try;;
26309 esac
26310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26311   (eval "$ac_compile") 2>conftest.er1
26312   ac_status=$?
26313   grep -v '^ *+' conftest.er1 >conftest.err
26314   rm -f conftest.er1
26315   cat conftest.err >&5
26316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317   (exit $ac_status); } && {
26318          test -z "$ac_c_werror_flag" ||
26319          test ! -s conftest.err
26320        } && test -s conftest.$ac_objext; then
26321   ac_cv_header_regex_h=yes
26322 else
26323   echo "$as_me: failed program was:" >&5
26324 sed 's/^/| /' conftest.$ac_ext >&5
26325
26326         ac_cv_header_regex_h=no
26327 fi
26328
26329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26330 fi
26331 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
26332 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
26333 if test $ac_cv_header_regex_h = yes; then
26334
26335
26336 for ac_func in regcomp re_search
26337 do
26338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26342   echo $ECHO_N "(cached) $ECHO_C" >&6
26343 else
26344   cat >conftest.$ac_ext <<_ACEOF
26345 /* confdefs.h.  */
26346 _ACEOF
26347 cat confdefs.h >>conftest.$ac_ext
26348 cat >>conftest.$ac_ext <<_ACEOF
26349 /* end confdefs.h.  */
26350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26352 #define $ac_func innocuous_$ac_func
26353
26354 /* System header to define __stub macros and hopefully few prototypes,
26355     which can conflict with char $ac_func (); below.
26356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26357     <limits.h> exists even on freestanding compilers.  */
26358
26359 #ifdef __STDC__
26360 # include <limits.h>
26361 #else
26362 # include <assert.h>
26363 #endif
26364
26365 #undef $ac_func
26366
26367 /* Override any GCC internal prototype to avoid an error.
26368    Use char because int might match the return type of a GCC
26369    builtin and then its argument prototype would still apply.  */
26370 #ifdef __cplusplus
26371 extern "C"
26372 #endif
26373 char $ac_func ();
26374 /* The GNU C library defines this for functions which it implements
26375     to always fail with ENOSYS.  Some functions are actually named
26376     something starting with __ and the normal name is an alias.  */
26377 #if defined __stub_$ac_func || defined __stub___$ac_func
26378 choke me
26379 #endif
26380
26381 int
26382 main ()
26383 {
26384 return $ac_func ();
26385   ;
26386   return 0;
26387 }
26388 _ACEOF
26389 rm -f conftest.$ac_objext conftest$ac_exeext
26390 if { (ac_try="$ac_link"
26391 case "(($ac_try" in
26392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26393   *) ac_try_echo=$ac_try;;
26394 esac
26395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26396   (eval "$ac_link") 2>conftest.er1
26397   ac_status=$?
26398   grep -v '^ *+' conftest.er1 >conftest.err
26399   rm -f conftest.er1
26400   cat conftest.err >&5
26401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26402   (exit $ac_status); } && {
26403          test -z "$ac_c_werror_flag" ||
26404          test ! -s conftest.err
26405        } && test -s conftest$ac_exeext &&
26406        $as_test_x conftest$ac_exeext; then
26407   eval "$as_ac_var=yes"
26408 else
26409   echo "$as_me: failed program was:" >&5
26410 sed 's/^/| /' conftest.$ac_ext >&5
26411
26412         eval "$as_ac_var=no"
26413 fi
26414
26415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26416       conftest$ac_exeext conftest.$ac_ext
26417 fi
26418 ac_res=`eval echo '${'$as_ac_var'}'`
26419                { echo "$as_me:$LINENO: result: $ac_res" >&5
26420 echo "${ECHO_T}$ac_res" >&6; }
26421 if test `eval echo '${'$as_ac_var'}'` = yes; then
26422   cat >>confdefs.h <<_ACEOF
26423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26424 _ACEOF
26425
26426 fi
26427 done
26428
26429 fi
26430
26431
26432
26433         if test "x$ac_cv_func_regcomp" != "xyes"; then
26434             if test "$wxUSE_REGEX" = "sys" ; then
26435                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
26436 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
26437    { (exit 1); exit 1; }; }
26438             else
26439                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
26440 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
26441                 wxUSE_REGEX=builtin
26442             fi
26443         else
26444                         wxUSE_REGEX=sys
26445                         cat >>confdefs.h <<\_ACEOF
26446 #define WX_NO_REGEX_ADVANCED 1
26447 _ACEOF
26448
26449         fi
26450     fi
26451 fi
26452
26453
26454 ZLIB_LINK=
26455 if test "$wxUSE_ZLIB" != "no" ; then
26456     cat >>confdefs.h <<\_ACEOF
26457 #define wxUSE_ZLIB 1
26458 _ACEOF
26459
26460
26461     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
26462                                                 if test "$USE_DARWIN" = 1; then
26463             system_zlib_h_ok="yes"
26464         else
26465                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
26466 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
26467 if test "${ac_cv_header_zlib_h+set}" = set; then
26468   echo $ECHO_N "(cached) $ECHO_C" >&6
26469 else
26470   if test "$cross_compiling" = yes; then
26471                       unset ac_cv_header_zlib_h
26472
26473 else
26474   cat >conftest.$ac_ext <<_ACEOF
26475 /* confdefs.h.  */
26476 _ACEOF
26477 cat confdefs.h >>conftest.$ac_ext
26478 cat >>conftest.$ac_ext <<_ACEOF
26479 /* end confdefs.h.  */
26480
26481                         #include <zlib.h>
26482                         #include <stdio.h>
26483
26484                         int main()
26485                         {
26486                             FILE *f=fopen("conftestval", "w");
26487                             if (!f) exit(1);
26488                             fprintf(f, "%s",
26489                                     ZLIB_VERSION[0] == '1' &&
26490                                     (ZLIB_VERSION[2] > '1' ||
26491                                     (ZLIB_VERSION[2] == '1' &&
26492                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
26493                             exit(0);
26494                         }
26495
26496 _ACEOF
26497 rm -f conftest$ac_exeext
26498 if { (ac_try="$ac_link"
26499 case "(($ac_try" in
26500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26501   *) ac_try_echo=$ac_try;;
26502 esac
26503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26504   (eval "$ac_link") 2>&5
26505   ac_status=$?
26506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26508   { (case "(($ac_try" in
26509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26510   *) ac_try_echo=$ac_try;;
26511 esac
26512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26513   (eval "$ac_try") 2>&5
26514   ac_status=$?
26515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516   (exit $ac_status); }; }; then
26517   ac_cv_header_zlib_h=`cat conftestval`
26518 else
26519   echo "$as_me: program exited with status $ac_status" >&5
26520 echo "$as_me: failed program was:" >&5
26521 sed 's/^/| /' conftest.$ac_ext >&5
26522
26523 ( exit $ac_status )
26524 ac_cv_header_zlib_h=no
26525 fi
26526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26527 fi
26528
26529
26530
26531 fi
26532 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26533 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26534                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
26535 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26536 if test "${ac_cv_header_zlib_h+set}" = set; then
26537   echo $ECHO_N "(cached) $ECHO_C" >&6
26538 else
26539   cat >conftest.$ac_ext <<_ACEOF
26540 /* confdefs.h.  */
26541 _ACEOF
26542 cat confdefs.h >>conftest.$ac_ext
26543 cat >>conftest.$ac_ext <<_ACEOF
26544 /* end confdefs.h.  */
26545
26546
26547 #include <zlib.h>
26548 _ACEOF
26549 rm -f conftest.$ac_objext
26550 if { (ac_try="$ac_compile"
26551 case "(($ac_try" in
26552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26553   *) ac_try_echo=$ac_try;;
26554 esac
26555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26556   (eval "$ac_compile") 2>conftest.er1
26557   ac_status=$?
26558   grep -v '^ *+' conftest.er1 >conftest.err
26559   rm -f conftest.er1
26560   cat conftest.err >&5
26561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562   (exit $ac_status); } && {
26563          test -z "$ac_c_werror_flag" ||
26564          test ! -s conftest.err
26565        } && test -s conftest.$ac_objext; then
26566   ac_cv_header_zlib_h=yes
26567 else
26568   echo "$as_me: failed program was:" >&5
26569 sed 's/^/| /' conftest.$ac_ext >&5
26570
26571         ac_cv_header_zlib_h=no
26572 fi
26573
26574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26575 fi
26576 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26577 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26578
26579
26580
26581             system_zlib_h_ok=$ac_cv_header_zlib_h
26582         fi
26583
26584         if test "$system_zlib_h_ok" = "yes"; then
26585             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
26586 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
26587 if test "${ac_cv_lib_z_deflate+set}" = set; then
26588   echo $ECHO_N "(cached) $ECHO_C" >&6
26589 else
26590   ac_check_lib_save_LIBS=$LIBS
26591 LIBS="-lz  $LIBS"
26592 cat >conftest.$ac_ext <<_ACEOF
26593 /* confdefs.h.  */
26594 _ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h.  */
26598
26599 /* Override any GCC internal prototype to avoid an error.
26600    Use char because int might match the return type of a GCC
26601    builtin and then its argument prototype would still apply.  */
26602 #ifdef __cplusplus
26603 extern "C"
26604 #endif
26605 char deflate ();
26606 int
26607 main ()
26608 {
26609 return deflate ();
26610   ;
26611   return 0;
26612 }
26613 _ACEOF
26614 rm -f conftest.$ac_objext conftest$ac_exeext
26615 if { (ac_try="$ac_link"
26616 case "(($ac_try" in
26617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26618   *) ac_try_echo=$ac_try;;
26619 esac
26620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26621   (eval "$ac_link") 2>conftest.er1
26622   ac_status=$?
26623   grep -v '^ *+' conftest.er1 >conftest.err
26624   rm -f conftest.er1
26625   cat conftest.err >&5
26626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627   (exit $ac_status); } && {
26628          test -z "$ac_c_werror_flag" ||
26629          test ! -s conftest.err
26630        } && test -s conftest$ac_exeext &&
26631        $as_test_x conftest$ac_exeext; then
26632   ac_cv_lib_z_deflate=yes
26633 else
26634   echo "$as_me: failed program was:" >&5
26635 sed 's/^/| /' conftest.$ac_ext >&5
26636
26637         ac_cv_lib_z_deflate=no
26638 fi
26639
26640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26641       conftest$ac_exeext conftest.$ac_ext
26642 LIBS=$ac_check_lib_save_LIBS
26643 fi
26644 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
26645 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
26646 if test $ac_cv_lib_z_deflate = yes; then
26647   ZLIB_LINK=" -lz"
26648 fi
26649
26650         fi
26651
26652         if test "x$ZLIB_LINK" = "x" ; then
26653             if test "$wxUSE_ZLIB" = "sys" ; then
26654                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
26655 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
26656    { (exit 1); exit 1; }; }
26657             else
26658                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
26659 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
26660                 wxUSE_ZLIB=builtin
26661             fi
26662         else
26663                         wxUSE_ZLIB=sys
26664         fi
26665     fi
26666 fi
26667
26668
26669 PNG_LINK=
26670 if test "$wxUSE_LIBPNG" != "no" ; then
26671     cat >>confdefs.h <<\_ACEOF
26672 #define wxUSE_LIBPNG 1
26673 _ACEOF
26674
26675
26676     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
26677         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
26678 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
26679         wxUSE_LIBPNG=sys
26680     fi
26681
26682                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
26683         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
26684 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
26685         wxUSE_LIBPNG=builtin
26686     fi
26687
26688     if test "$wxUSE_MGL" != 1 ; then
26689                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
26690                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
26691 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
26692 if test "${ac_cv_header_png_h+set}" = set; then
26693   echo $ECHO_N "(cached) $ECHO_C" >&6
26694 else
26695   if test "$cross_compiling" = yes; then
26696                       unset ac_cv_header_png_h
26697
26698 else
26699   cat >conftest.$ac_ext <<_ACEOF
26700 /* confdefs.h.  */
26701 _ACEOF
26702 cat confdefs.h >>conftest.$ac_ext
26703 cat >>conftest.$ac_ext <<_ACEOF
26704 /* end confdefs.h.  */
26705
26706                         #include <png.h>
26707                         #include <stdio.h>
26708
26709                         int main()
26710                         {
26711                             FILE *f=fopen("conftestval", "w");
26712                             if (!f) exit(1);
26713                             fprintf(f, "%s",
26714                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
26715                             exit(0);
26716                         }
26717
26718 _ACEOF
26719 rm -f conftest$ac_exeext
26720 if { (ac_try="$ac_link"
26721 case "(($ac_try" in
26722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723   *) ac_try_echo=$ac_try;;
26724 esac
26725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26726   (eval "$ac_link") 2>&5
26727   ac_status=$?
26728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26730   { (case "(($ac_try" in
26731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26732   *) ac_try_echo=$ac_try;;
26733 esac
26734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26735   (eval "$ac_try") 2>&5
26736   ac_status=$?
26737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738   (exit $ac_status); }; }; then
26739   ac_cv_header_png_h=`cat conftestval`
26740 else
26741   echo "$as_me: program exited with status $ac_status" >&5
26742 echo "$as_me: failed program was:" >&5
26743 sed 's/^/| /' conftest.$ac_ext >&5
26744
26745 ( exit $ac_status )
26746 ac_cv_header_png_h=no
26747 fi
26748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26749 fi
26750
26751
26752
26753 fi
26754 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26755 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26756             { echo "$as_me:$LINENO: checking for png.h" >&5
26757 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
26758 if test "${ac_cv_header_png_h+set}" = set; then
26759   echo $ECHO_N "(cached) $ECHO_C" >&6
26760 else
26761   cat >conftest.$ac_ext <<_ACEOF
26762 /* confdefs.h.  */
26763 _ACEOF
26764 cat confdefs.h >>conftest.$ac_ext
26765 cat >>conftest.$ac_ext <<_ACEOF
26766 /* end confdefs.h.  */
26767
26768
26769 #include <png.h>
26770 _ACEOF
26771 rm -f conftest.$ac_objext
26772 if { (ac_try="$ac_compile"
26773 case "(($ac_try" in
26774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26775   *) ac_try_echo=$ac_try;;
26776 esac
26777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26778   (eval "$ac_compile") 2>conftest.er1
26779   ac_status=$?
26780   grep -v '^ *+' conftest.er1 >conftest.err
26781   rm -f conftest.er1
26782   cat conftest.err >&5
26783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784   (exit $ac_status); } && {
26785          test -z "$ac_c_werror_flag" ||
26786          test ! -s conftest.err
26787        } && test -s conftest.$ac_objext; then
26788   ac_cv_header_png_h=yes
26789 else
26790   echo "$as_me: failed program was:" >&5
26791 sed 's/^/| /' conftest.$ac_ext >&5
26792
26793         ac_cv_header_png_h=no
26794 fi
26795
26796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26797 fi
26798 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
26799 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
26800
26801
26802
26803             if test "$ac_cv_header_png_h" = "yes"; then
26804                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26805 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
26806 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26807   echo $ECHO_N "(cached) $ECHO_C" >&6
26808 else
26809   ac_check_lib_save_LIBS=$LIBS
26810 LIBS="-lpng -lz -lm $LIBS"
26811 cat >conftest.$ac_ext <<_ACEOF
26812 /* confdefs.h.  */
26813 _ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h.  */
26817
26818 /* Override any GCC internal prototype to avoid an error.
26819    Use char because int might match the return type of a GCC
26820    builtin and then its argument prototype would still apply.  */
26821 #ifdef __cplusplus
26822 extern "C"
26823 #endif
26824 char png_check_sig ();
26825 int
26826 main ()
26827 {
26828 return png_check_sig ();
26829   ;
26830   return 0;
26831 }
26832 _ACEOF
26833 rm -f conftest.$ac_objext conftest$ac_exeext
26834 if { (ac_try="$ac_link"
26835 case "(($ac_try" in
26836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837   *) ac_try_echo=$ac_try;;
26838 esac
26839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26840   (eval "$ac_link") 2>conftest.er1
26841   ac_status=$?
26842   grep -v '^ *+' conftest.er1 >conftest.err
26843   rm -f conftest.er1
26844   cat conftest.err >&5
26845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846   (exit $ac_status); } && {
26847          test -z "$ac_c_werror_flag" ||
26848          test ! -s conftest.err
26849        } && test -s conftest$ac_exeext &&
26850        $as_test_x conftest$ac_exeext; then
26851   ac_cv_lib_png_png_check_sig=yes
26852 else
26853   echo "$as_me: failed program was:" >&5
26854 sed 's/^/| /' conftest.$ac_ext >&5
26855
26856         ac_cv_lib_png_png_check_sig=no
26857 fi
26858
26859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26860       conftest$ac_exeext conftest.$ac_ext
26861 LIBS=$ac_check_lib_save_LIBS
26862 fi
26863 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26864 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
26865 if test $ac_cv_lib_png_png_check_sig = yes; then
26866   PNG_LINK=" -lpng -lz"
26867 fi
26868
26869             fi
26870
26871             if test "x$PNG_LINK" = "x" ; then
26872                 if test "$wxUSE_LIBPNG" = "sys" ; then
26873                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26874 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26875    { (exit 1); exit 1; }; }
26876                 else
26877                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26878 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26879                     wxUSE_LIBPNG=builtin
26880                 fi
26881             else
26882                                 wxUSE_LIBPNG=sys
26883             fi
26884         fi
26885     fi
26886 fi
26887
26888
26889 JPEG_LINK=
26890 if test "$wxUSE_LIBJPEG" != "no" ; then
26891     cat >>confdefs.h <<\_ACEOF
26892 #define wxUSE_LIBJPEG 1
26893 _ACEOF
26894
26895
26896     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26897         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26898 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26899         wxUSE_LIBJPEG=sys
26900     fi
26901
26902     if test "$wxUSE_MGL" != 1 ; then
26903                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26904                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26905 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
26906             if test "${ac_cv_header_jpeglib_h+set}" = set; then
26907   echo $ECHO_N "(cached) $ECHO_C" >&6
26908 else
26909   cat >conftest.$ac_ext <<_ACEOF
26910 /* confdefs.h.  */
26911 _ACEOF
26912 cat confdefs.h >>conftest.$ac_ext
26913 cat >>conftest.$ac_ext <<_ACEOF
26914 /* end confdefs.h.  */
26915
26916                         #undef HAVE_STDLIB_H
26917                         #include <stdio.h>
26918                         #include <jpeglib.h>
26919
26920 int
26921 main ()
26922 {
26923
26924
26925   ;
26926   return 0;
26927 }
26928 _ACEOF
26929 rm -f conftest.$ac_objext
26930 if { (ac_try="$ac_compile"
26931 case "(($ac_try" in
26932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26933   *) ac_try_echo=$ac_try;;
26934 esac
26935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26936   (eval "$ac_compile") 2>conftest.er1
26937   ac_status=$?
26938   grep -v '^ *+' conftest.er1 >conftest.err
26939   rm -f conftest.er1
26940   cat conftest.err >&5
26941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942   (exit $ac_status); } && {
26943          test -z "$ac_c_werror_flag" ||
26944          test ! -s conftest.err
26945        } && test -s conftest.$ac_objext; then
26946   ac_cv_header_jpeglib_h=yes
26947 else
26948   echo "$as_me: failed program was:" >&5
26949 sed 's/^/| /' conftest.$ac_ext >&5
26950
26951         ac_cv_header_jpeglib_h=no
26952
26953 fi
26954
26955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26956
26957 fi
26958
26959             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26960 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
26961
26962             if test "$ac_cv_header_jpeglib_h" = "yes"; then
26963                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26964 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
26965 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26966   echo $ECHO_N "(cached) $ECHO_C" >&6
26967 else
26968   ac_check_lib_save_LIBS=$LIBS
26969 LIBS="-ljpeg  $LIBS"
26970 cat >conftest.$ac_ext <<_ACEOF
26971 /* confdefs.h.  */
26972 _ACEOF
26973 cat confdefs.h >>conftest.$ac_ext
26974 cat >>conftest.$ac_ext <<_ACEOF
26975 /* end confdefs.h.  */
26976
26977 /* Override any GCC internal prototype to avoid an error.
26978    Use char because int might match the return type of a GCC
26979    builtin and then its argument prototype would still apply.  */
26980 #ifdef __cplusplus
26981 extern "C"
26982 #endif
26983 char jpeg_read_header ();
26984 int
26985 main ()
26986 {
26987 return jpeg_read_header ();
26988   ;
26989   return 0;
26990 }
26991 _ACEOF
26992 rm -f conftest.$ac_objext conftest$ac_exeext
26993 if { (ac_try="$ac_link"
26994 case "(($ac_try" in
26995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26996   *) ac_try_echo=$ac_try;;
26997 esac
26998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26999   (eval "$ac_link") 2>conftest.er1
27000   ac_status=$?
27001   grep -v '^ *+' conftest.er1 >conftest.err
27002   rm -f conftest.er1
27003   cat conftest.err >&5
27004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005   (exit $ac_status); } && {
27006          test -z "$ac_c_werror_flag" ||
27007          test ! -s conftest.err
27008        } && test -s conftest$ac_exeext &&
27009        $as_test_x conftest$ac_exeext; then
27010   ac_cv_lib_jpeg_jpeg_read_header=yes
27011 else
27012   echo "$as_me: failed program was:" >&5
27013 sed 's/^/| /' conftest.$ac_ext >&5
27014
27015         ac_cv_lib_jpeg_jpeg_read_header=no
27016 fi
27017
27018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27019       conftest$ac_exeext conftest.$ac_ext
27020 LIBS=$ac_check_lib_save_LIBS
27021 fi
27022 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27023 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27024 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
27025   JPEG_LINK=" -ljpeg"
27026 fi
27027
27028             fi
27029
27030             if test "x$JPEG_LINK" = "x" ; then
27031                 if test "$wxUSE_LIBJPEG" = "sys" ; then
27032                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
27033 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
27034    { (exit 1); exit 1; }; }
27035                 else
27036                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
27037 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
27038                     wxUSE_LIBJPEG=builtin
27039                 fi
27040             else
27041                                 wxUSE_LIBJPEG=sys
27042
27043                 if test "$wxUSE_MSW" = 1; then
27044                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
27045 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27046 if test "${ac_cv_type_boolean+set}" = set; then
27047   echo $ECHO_N "(cached) $ECHO_C" >&6
27048 else
27049   cat >conftest.$ac_ext <<_ACEOF
27050 /* confdefs.h.  */
27051 _ACEOF
27052 cat confdefs.h >>conftest.$ac_ext
27053 cat >>conftest.$ac_ext <<_ACEOF
27054 /* end confdefs.h.  */
27055 #include <windows.h>
27056
27057 typedef boolean ac__type_new_;
27058 int
27059 main ()
27060 {
27061 if ((ac__type_new_ *) 0)
27062   return 0;
27063 if (sizeof (ac__type_new_))
27064   return 0;
27065   ;
27066   return 0;
27067 }
27068 _ACEOF
27069 rm -f conftest.$ac_objext
27070 if { (ac_try="$ac_compile"
27071 case "(($ac_try" in
27072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27073   *) ac_try_echo=$ac_try;;
27074 esac
27075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27076   (eval "$ac_compile") 2>conftest.er1
27077   ac_status=$?
27078   grep -v '^ *+' conftest.er1 >conftest.err
27079   rm -f conftest.er1
27080   cat conftest.err >&5
27081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082   (exit $ac_status); } && {
27083          test -z "$ac_c_werror_flag" ||
27084          test ! -s conftest.err
27085        } && test -s conftest.$ac_objext; then
27086   ac_cv_type_boolean=yes
27087 else
27088   echo "$as_me: failed program was:" >&5
27089 sed 's/^/| /' conftest.$ac_ext >&5
27090
27091         ac_cv_type_boolean=no
27092 fi
27093
27094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27095 fi
27096 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27097 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27098 if test $ac_cv_type_boolean = yes; then
27099
27100 cat >>confdefs.h <<_ACEOF
27101 #define HAVE_BOOLEAN 1
27102 _ACEOF
27103
27104
27105                             { echo "$as_me:$LINENO: checking for boolean" >&5
27106 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
27107 if test "${ac_cv_type_boolean+set}" = set; then
27108   echo $ECHO_N "(cached) $ECHO_C" >&6
27109 else
27110   cat >conftest.$ac_ext <<_ACEOF
27111 /* confdefs.h.  */
27112 _ACEOF
27113 cat confdefs.h >>conftest.$ac_ext
27114 cat >>conftest.$ac_ext <<_ACEOF
27115 /* end confdefs.h.  */
27116
27117                                     #undef HAVE_BOOLEAN
27118                                     #include <stdio.h>
27119                                     #include <jpeglib.h>
27120
27121
27122 typedef boolean ac__type_new_;
27123 int
27124 main ()
27125 {
27126 if ((ac__type_new_ *) 0)
27127   return 0;
27128 if (sizeof (ac__type_new_))
27129   return 0;
27130   ;
27131   return 0;
27132 }
27133 _ACEOF
27134 rm -f conftest.$ac_objext
27135 if { (ac_try="$ac_compile"
27136 case "(($ac_try" in
27137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27138   *) ac_try_echo=$ac_try;;
27139 esac
27140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27141   (eval "$ac_compile") 2>conftest.er1
27142   ac_status=$?
27143   grep -v '^ *+' conftest.er1 >conftest.err
27144   rm -f conftest.er1
27145   cat conftest.err >&5
27146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147   (exit $ac_status); } && {
27148          test -z "$ac_c_werror_flag" ||
27149          test ! -s conftest.err
27150        } && test -s conftest.$ac_objext; then
27151   ac_cv_type_boolean=yes
27152 else
27153   echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27155
27156         ac_cv_type_boolean=no
27157 fi
27158
27159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27160 fi
27161 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27162 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
27163
27164 # The cast to long int works around a bug in the HP C Compiler
27165 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27166 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27167 # This bug is HP SR number 8606223364.
27168 { echo "$as_me:$LINENO: checking size of boolean" >&5
27169 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
27170 if test "${ac_cv_sizeof_boolean+set}" = set; then
27171   echo $ECHO_N "(cached) $ECHO_C" >&6
27172 else
27173   if test "$cross_compiling" = yes; then
27174   # Depending upon the size, compute the lo and hi bounds.
27175 cat >conftest.$ac_ext <<_ACEOF
27176 /* confdefs.h.  */
27177 _ACEOF
27178 cat confdefs.h >>conftest.$ac_ext
27179 cat >>conftest.$ac_ext <<_ACEOF
27180 /* end confdefs.h.  */
27181
27182                                     #undef HAVE_BOOLEAN
27183                                     #include <stdio.h>
27184                                     #include <jpeglib.h>
27185
27186
27187    typedef boolean ac__type_sizeof_;
27188 int
27189 main ()
27190 {
27191 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27192 test_array [0] = 0
27193
27194   ;
27195   return 0;
27196 }
27197 _ACEOF
27198 rm -f conftest.$ac_objext
27199 if { (ac_try="$ac_compile"
27200 case "(($ac_try" in
27201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27202   *) ac_try_echo=$ac_try;;
27203 esac
27204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27205   (eval "$ac_compile") 2>conftest.er1
27206   ac_status=$?
27207   grep -v '^ *+' conftest.er1 >conftest.err
27208   rm -f conftest.er1
27209   cat conftest.err >&5
27210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211   (exit $ac_status); } && {
27212          test -z "$ac_c_werror_flag" ||
27213          test ! -s conftest.err
27214        } && test -s conftest.$ac_objext; then
27215   ac_lo=0 ac_mid=0
27216   while :; do
27217     cat >conftest.$ac_ext <<_ACEOF
27218 /* confdefs.h.  */
27219 _ACEOF
27220 cat confdefs.h >>conftest.$ac_ext
27221 cat >>conftest.$ac_ext <<_ACEOF
27222 /* end confdefs.h.  */
27223
27224                                     #undef HAVE_BOOLEAN
27225                                     #include <stdio.h>
27226                                     #include <jpeglib.h>
27227
27228
27229    typedef boolean ac__type_sizeof_;
27230 int
27231 main ()
27232 {
27233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27234 test_array [0] = 0
27235
27236   ;
27237   return 0;
27238 }
27239 _ACEOF
27240 rm -f conftest.$ac_objext
27241 if { (ac_try="$ac_compile"
27242 case "(($ac_try" in
27243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27244   *) ac_try_echo=$ac_try;;
27245 esac
27246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27247   (eval "$ac_compile") 2>conftest.er1
27248   ac_status=$?
27249   grep -v '^ *+' conftest.er1 >conftest.err
27250   rm -f conftest.er1
27251   cat conftest.err >&5
27252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253   (exit $ac_status); } && {
27254          test -z "$ac_c_werror_flag" ||
27255          test ! -s conftest.err
27256        } && test -s conftest.$ac_objext; then
27257   ac_hi=$ac_mid; break
27258 else
27259   echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27261
27262         ac_lo=`expr $ac_mid + 1`
27263                         if test $ac_lo -le $ac_mid; then
27264                           ac_lo= ac_hi=
27265                           break
27266                         fi
27267                         ac_mid=`expr 2 '*' $ac_mid + 1`
27268 fi
27269
27270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27271   done
27272 else
27273   echo "$as_me: failed program was:" >&5
27274 sed 's/^/| /' conftest.$ac_ext >&5
27275
27276         cat >conftest.$ac_ext <<_ACEOF
27277 /* confdefs.h.  */
27278 _ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h.  */
27282
27283                                     #undef HAVE_BOOLEAN
27284                                     #include <stdio.h>
27285                                     #include <jpeglib.h>
27286
27287
27288    typedef boolean ac__type_sizeof_;
27289 int
27290 main ()
27291 {
27292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27293 test_array [0] = 0
27294
27295   ;
27296   return 0;
27297 }
27298 _ACEOF
27299 rm -f conftest.$ac_objext
27300 if { (ac_try="$ac_compile"
27301 case "(($ac_try" in
27302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303   *) ac_try_echo=$ac_try;;
27304 esac
27305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27306   (eval "$ac_compile") 2>conftest.er1
27307   ac_status=$?
27308   grep -v '^ *+' conftest.er1 >conftest.err
27309   rm -f conftest.er1
27310   cat conftest.err >&5
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); } && {
27313          test -z "$ac_c_werror_flag" ||
27314          test ! -s conftest.err
27315        } && test -s conftest.$ac_objext; then
27316   ac_hi=-1 ac_mid=-1
27317   while :; do
27318     cat >conftest.$ac_ext <<_ACEOF
27319 /* confdefs.h.  */
27320 _ACEOF
27321 cat confdefs.h >>conftest.$ac_ext
27322 cat >>conftest.$ac_ext <<_ACEOF
27323 /* end confdefs.h.  */
27324
27325                                     #undef HAVE_BOOLEAN
27326                                     #include <stdio.h>
27327                                     #include <jpeglib.h>
27328
27329
27330    typedef boolean ac__type_sizeof_;
27331 int
27332 main ()
27333 {
27334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27335 test_array [0] = 0
27336
27337   ;
27338   return 0;
27339 }
27340 _ACEOF
27341 rm -f conftest.$ac_objext
27342 if { (ac_try="$ac_compile"
27343 case "(($ac_try" in
27344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27345   *) ac_try_echo=$ac_try;;
27346 esac
27347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27348   (eval "$ac_compile") 2>conftest.er1
27349   ac_status=$?
27350   grep -v '^ *+' conftest.er1 >conftest.err
27351   rm -f conftest.er1
27352   cat conftest.err >&5
27353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354   (exit $ac_status); } && {
27355          test -z "$ac_c_werror_flag" ||
27356          test ! -s conftest.err
27357        } && test -s conftest.$ac_objext; then
27358   ac_lo=$ac_mid; break
27359 else
27360   echo "$as_me: failed program was:" >&5
27361 sed 's/^/| /' conftest.$ac_ext >&5
27362
27363         ac_hi=`expr '(' $ac_mid ')' - 1`
27364                         if test $ac_mid -le $ac_hi; then
27365                           ac_lo= ac_hi=
27366                           break
27367                         fi
27368                         ac_mid=`expr 2 '*' $ac_mid`
27369 fi
27370
27371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27372   done
27373 else
27374   echo "$as_me: failed program was:" >&5
27375 sed 's/^/| /' conftest.$ac_ext >&5
27376
27377         ac_lo= ac_hi=
27378 fi
27379
27380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27381 fi
27382
27383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27384 # Binary search between lo and hi bounds.
27385 while test "x$ac_lo" != "x$ac_hi"; do
27386   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27387   cat >conftest.$ac_ext <<_ACEOF
27388 /* confdefs.h.  */
27389 _ACEOF
27390 cat confdefs.h >>conftest.$ac_ext
27391 cat >>conftest.$ac_ext <<_ACEOF
27392 /* end confdefs.h.  */
27393
27394                                     #undef HAVE_BOOLEAN
27395                                     #include <stdio.h>
27396                                     #include <jpeglib.h>
27397
27398
27399    typedef boolean ac__type_sizeof_;
27400 int
27401 main ()
27402 {
27403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27404 test_array [0] = 0
27405
27406   ;
27407   return 0;
27408 }
27409 _ACEOF
27410 rm -f conftest.$ac_objext
27411 if { (ac_try="$ac_compile"
27412 case "(($ac_try" in
27413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27414   *) ac_try_echo=$ac_try;;
27415 esac
27416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27417   (eval "$ac_compile") 2>conftest.er1
27418   ac_status=$?
27419   grep -v '^ *+' conftest.er1 >conftest.err
27420   rm -f conftest.er1
27421   cat conftest.err >&5
27422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423   (exit $ac_status); } && {
27424          test -z "$ac_c_werror_flag" ||
27425          test ! -s conftest.err
27426        } && test -s conftest.$ac_objext; then
27427   ac_hi=$ac_mid
27428 else
27429   echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27431
27432         ac_lo=`expr '(' $ac_mid ')' + 1`
27433 fi
27434
27435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27436 done
27437 case $ac_lo in
27438 ?*) ac_cv_sizeof_boolean=$ac_lo;;
27439 '') if test "$ac_cv_type_boolean" = yes; then
27440      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27441 See \`config.log' for more details." >&5
27442 echo "$as_me: error: cannot compute sizeof (boolean)
27443 See \`config.log' for more details." >&2;}
27444    { (exit 77); exit 77; }; }
27445    else
27446      ac_cv_sizeof_boolean=0
27447    fi ;;
27448 esac
27449 else
27450   cat >conftest.$ac_ext <<_ACEOF
27451 /* confdefs.h.  */
27452 _ACEOF
27453 cat confdefs.h >>conftest.$ac_ext
27454 cat >>conftest.$ac_ext <<_ACEOF
27455 /* end confdefs.h.  */
27456
27457                                     #undef HAVE_BOOLEAN
27458                                     #include <stdio.h>
27459                                     #include <jpeglib.h>
27460
27461
27462    typedef boolean ac__type_sizeof_;
27463 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27464 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27465 #include <stdio.h>
27466 #include <stdlib.h>
27467 int
27468 main ()
27469 {
27470
27471   FILE *f = fopen ("conftest.val", "w");
27472   if (! f)
27473     return 1;
27474   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27475     {
27476       long int i = longval ();
27477       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27478         return 1;
27479       fprintf (f, "%ld\n", i);
27480     }
27481   else
27482     {
27483       unsigned long int i = ulongval ();
27484       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27485         return 1;
27486       fprintf (f, "%lu\n", i);
27487     }
27488   return ferror (f) || fclose (f) != 0;
27489
27490   ;
27491   return 0;
27492 }
27493 _ACEOF
27494 rm -f conftest$ac_exeext
27495 if { (ac_try="$ac_link"
27496 case "(($ac_try" in
27497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498   *) ac_try_echo=$ac_try;;
27499 esac
27500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501   (eval "$ac_link") 2>&5
27502   ac_status=$?
27503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27505   { (case "(($ac_try" in
27506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27507   *) ac_try_echo=$ac_try;;
27508 esac
27509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27510   (eval "$ac_try") 2>&5
27511   ac_status=$?
27512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513   (exit $ac_status); }; }; then
27514   ac_cv_sizeof_boolean=`cat conftest.val`
27515 else
27516   echo "$as_me: program exited with status $ac_status" >&5
27517 echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27519
27520 ( exit $ac_status )
27521 if test "$ac_cv_type_boolean" = yes; then
27522      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
27523 See \`config.log' for more details." >&5
27524 echo "$as_me: error: cannot compute sizeof (boolean)
27525 See \`config.log' for more details." >&2;}
27526    { (exit 77); exit 77; }; }
27527    else
27528      ac_cv_sizeof_boolean=0
27529    fi
27530 fi
27531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27532 fi
27533 rm -f conftest.val
27534 fi
27535 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
27536 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
27537
27538
27539
27540 cat >>confdefs.h <<_ACEOF
27541 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
27542 _ACEOF
27543
27544
27545                             cat >>confdefs.h <<_ACEOF
27546 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
27547 _ACEOF
27548
27549
27550 fi
27551
27552                 fi
27553             fi
27554         fi
27555     fi
27556 fi
27557
27558
27559 TIFF_LINK=
27560 TIFF_PREREQ_LINKS=-lm
27561 if test "$wxUSE_LIBTIFF" != "no" ; then
27562     cat >>confdefs.h <<\_ACEOF
27563 #define wxUSE_LIBTIFF 1
27564 _ACEOF
27565
27566
27567     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
27568                         if test "$wxUSE_LIBJPEG" = "sys"; then
27569             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
27570         fi
27571         if test "$wxUSE_ZLIB" = "sys"; then
27572             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
27573         fi
27574         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
27575 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
27576 if test "${ac_cv_header_tiffio_h+set}" = set; then
27577   echo $ECHO_N "(cached) $ECHO_C" >&6
27578 else
27579   cat >conftest.$ac_ext <<_ACEOF
27580 /* confdefs.h.  */
27581 _ACEOF
27582 cat confdefs.h >>conftest.$ac_ext
27583 cat >>conftest.$ac_ext <<_ACEOF
27584 /* end confdefs.h.  */
27585
27586
27587
27588 #include <tiffio.h>
27589 _ACEOF
27590 rm -f conftest.$ac_objext
27591 if { (ac_try="$ac_compile"
27592 case "(($ac_try" in
27593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27594   *) ac_try_echo=$ac_try;;
27595 esac
27596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27597   (eval "$ac_compile") 2>conftest.er1
27598   ac_status=$?
27599   grep -v '^ *+' conftest.er1 >conftest.err
27600   rm -f conftest.er1
27601   cat conftest.err >&5
27602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603   (exit $ac_status); } && {
27604          test -z "$ac_c_werror_flag" ||
27605          test ! -s conftest.err
27606        } && test -s conftest.$ac_objext; then
27607   ac_cv_header_tiffio_h=yes
27608 else
27609   echo "$as_me: failed program was:" >&5
27610 sed 's/^/| /' conftest.$ac_ext >&5
27611
27612         ac_cv_header_tiffio_h=no
27613 fi
27614
27615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27616 fi
27617 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
27618 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
27619 if test $ac_cv_header_tiffio_h = yes; then
27620
27621                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
27622 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
27623 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
27624   echo $ECHO_N "(cached) $ECHO_C" >&6
27625 else
27626   ac_check_lib_save_LIBS=$LIBS
27627 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
27628 cat >conftest.$ac_ext <<_ACEOF
27629 /* confdefs.h.  */
27630 _ACEOF
27631 cat confdefs.h >>conftest.$ac_ext
27632 cat >>conftest.$ac_ext <<_ACEOF
27633 /* end confdefs.h.  */
27634
27635 /* Override any GCC internal prototype to avoid an error.
27636    Use char because int might match the return type of a GCC
27637    builtin and then its argument prototype would still apply.  */
27638 #ifdef __cplusplus
27639 extern "C"
27640 #endif
27641 char TIFFError ();
27642 int
27643 main ()
27644 {
27645 return TIFFError ();
27646   ;
27647   return 0;
27648 }
27649 _ACEOF
27650 rm -f conftest.$ac_objext conftest$ac_exeext
27651 if { (ac_try="$ac_link"
27652 case "(($ac_try" in
27653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654   *) ac_try_echo=$ac_try;;
27655 esac
27656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657   (eval "$ac_link") 2>conftest.er1
27658   ac_status=$?
27659   grep -v '^ *+' conftest.er1 >conftest.err
27660   rm -f conftest.er1
27661   cat conftest.err >&5
27662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663   (exit $ac_status); } && {
27664          test -z "$ac_c_werror_flag" ||
27665          test ! -s conftest.err
27666        } && test -s conftest$ac_exeext &&
27667        $as_test_x conftest$ac_exeext; then
27668   ac_cv_lib_tiff_TIFFError=yes
27669 else
27670   echo "$as_me: failed program was:" >&5
27671 sed 's/^/| /' conftest.$ac_ext >&5
27672
27673         ac_cv_lib_tiff_TIFFError=no
27674 fi
27675
27676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27677       conftest$ac_exeext conftest.$ac_ext
27678 LIBS=$ac_check_lib_save_LIBS
27679 fi
27680 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
27681 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
27682 if test $ac_cv_lib_tiff_TIFFError = yes; then
27683   TIFF_LINK=" -ltiff"
27684 fi
27685
27686
27687 fi
27688
27689
27690
27691         if test "x$TIFF_LINK" = "x" ; then
27692             if test "$wxUSE_LIBTIFF" = "sys" ; then
27693                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
27694 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
27695    { (exit 1); exit 1; }; }
27696             else
27697                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
27698 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
27699                 wxUSE_LIBTIFF=builtin
27700             fi
27701         else
27702                         wxUSE_LIBTIFF=sys
27703         fi
27704     fi
27705     if test "$wxUSE_LIBTIFF" = "builtin" ; then
27706         if test "$wxUSE_LIBJPEG" = "no"; then
27707                                                                                     ac_configure_args="$ac_configure_args --disable-jpeg"
27708         fi
27709         subdirs="$subdirs src/tiff"
27710
27711     fi
27712 fi
27713
27714
27715 if test "$wxUSE_WCHAR_T" != "yes"; then
27716     if test "$wxUSE_EXPAT" != "no"; then
27717         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
27718 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
27719         wxUSE_EXPAT=no
27720     fi
27721     if test "$wxUSE_XML" != "no"; then
27722         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
27723 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
27724         wxUSE_XML=no
27725     fi
27726 fi
27727
27728 if test "$wxUSE_EXPAT" != "no"; then
27729     wxUSE_XML=yes
27730     cat >>confdefs.h <<\_ACEOF
27731 #define wxUSE_EXPAT 1
27732 _ACEOF
27733
27734     cat >>confdefs.h <<\_ACEOF
27735 #define wxUSE_XML 1
27736 _ACEOF
27737
27738
27739     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
27740         { echo "$as_me:$LINENO: checking for expat.h" >&5
27741 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
27742 if test "${ac_cv_header_expat_h+set}" = set; then
27743   echo $ECHO_N "(cached) $ECHO_C" >&6
27744 else
27745   cat >conftest.$ac_ext <<_ACEOF
27746 /* confdefs.h.  */
27747 _ACEOF
27748 cat confdefs.h >>conftest.$ac_ext
27749 cat >>conftest.$ac_ext <<_ACEOF
27750 /* end confdefs.h.  */
27751
27752
27753 #include <expat.h>
27754 _ACEOF
27755 rm -f conftest.$ac_objext
27756 if { (ac_try="$ac_compile"
27757 case "(($ac_try" in
27758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759   *) ac_try_echo=$ac_try;;
27760 esac
27761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762   (eval "$ac_compile") 2>conftest.er1
27763   ac_status=$?
27764   grep -v '^ *+' conftest.er1 >conftest.err
27765   rm -f conftest.er1
27766   cat conftest.err >&5
27767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768   (exit $ac_status); } && {
27769          test -z "$ac_c_werror_flag" ||
27770          test ! -s conftest.err
27771        } && test -s conftest.$ac_objext; then
27772   ac_cv_header_expat_h=yes
27773 else
27774   echo "$as_me: failed program was:" >&5
27775 sed 's/^/| /' conftest.$ac_ext >&5
27776
27777         ac_cv_header_expat_h=no
27778 fi
27779
27780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27781 fi
27782 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
27783 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
27784 if test $ac_cv_header_expat_h = yes; then
27785   found_expat_h=1
27786 fi
27787
27788
27789         if test "x$found_expat_h" = "x1"; then
27790                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
27791 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
27792 if test "${wx_cv_expat_is_not_broken+set}" = set; then
27793   echo $ECHO_N "(cached) $ECHO_C" >&6
27794 else
27795
27796                 ac_ext=cpp
27797 ac_cpp='$CXXCPP $CPPFLAGS'
27798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27801
27802                 cat >conftest.$ac_ext <<_ACEOF
27803 /* confdefs.h.  */
27804 _ACEOF
27805 cat confdefs.h >>conftest.$ac_ext
27806 cat >>conftest.$ac_ext <<_ACEOF
27807 /* end confdefs.h.  */
27808 #include <expat.h>
27809 int
27810 main ()
27811 {
27812
27813   ;
27814   return 0;
27815 }
27816 _ACEOF
27817 rm -f conftest.$ac_objext
27818 if { (ac_try="$ac_compile"
27819 case "(($ac_try" in
27820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27821   *) ac_try_echo=$ac_try;;
27822 esac
27823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27824   (eval "$ac_compile") 2>conftest.er1
27825   ac_status=$?
27826   grep -v '^ *+' conftest.er1 >conftest.err
27827   rm -f conftest.er1
27828   cat conftest.err >&5
27829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830   (exit $ac_status); } && {
27831          test -z "$ac_cxx_werror_flag" ||
27832          test ! -s conftest.err
27833        } && test -s conftest.$ac_objext; then
27834   wx_cv_expat_is_not_broken=yes
27835 else
27836   echo "$as_me: failed program was:" >&5
27837 sed 's/^/| /' conftest.$ac_ext >&5
27838
27839         wx_cv_expat_is_not_broken=no
27840
27841 fi
27842
27843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27844                 ac_ext=c
27845 ac_cpp='$CPP $CPPFLAGS'
27846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27849
27850
27851
27852 fi
27853 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
27854 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
27855             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
27856                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
27857 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
27858 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
27859   echo $ECHO_N "(cached) $ECHO_C" >&6
27860 else
27861   ac_check_lib_save_LIBS=$LIBS
27862 LIBS="-lexpat  $LIBS"
27863 cat >conftest.$ac_ext <<_ACEOF
27864 /* confdefs.h.  */
27865 _ACEOF
27866 cat confdefs.h >>conftest.$ac_ext
27867 cat >>conftest.$ac_ext <<_ACEOF
27868 /* end confdefs.h.  */
27869
27870 /* Override any GCC internal prototype to avoid an error.
27871    Use char because int might match the return type of a GCC
27872    builtin and then its argument prototype would still apply.  */
27873 #ifdef __cplusplus
27874 extern "C"
27875 #endif
27876 char XML_ParserCreate ();
27877 int
27878 main ()
27879 {
27880 return XML_ParserCreate ();
27881   ;
27882   return 0;
27883 }
27884 _ACEOF
27885 rm -f conftest.$ac_objext conftest$ac_exeext
27886 if { (ac_try="$ac_link"
27887 case "(($ac_try" in
27888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889   *) ac_try_echo=$ac_try;;
27890 esac
27891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27892   (eval "$ac_link") 2>conftest.er1
27893   ac_status=$?
27894   grep -v '^ *+' conftest.er1 >conftest.err
27895   rm -f conftest.er1
27896   cat conftest.err >&5
27897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898   (exit $ac_status); } && {
27899          test -z "$ac_c_werror_flag" ||
27900          test ! -s conftest.err
27901        } && test -s conftest$ac_exeext &&
27902        $as_test_x conftest$ac_exeext; then
27903   ac_cv_lib_expat_XML_ParserCreate=yes
27904 else
27905   echo "$as_me: failed program was:" >&5
27906 sed 's/^/| /' conftest.$ac_ext >&5
27907
27908         ac_cv_lib_expat_XML_ParserCreate=no
27909 fi
27910
27911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27912       conftest$ac_exeext conftest.$ac_ext
27913 LIBS=$ac_check_lib_save_LIBS
27914 fi
27915 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
27916 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
27917 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
27918   EXPAT_LINK=" -lexpat"
27919 fi
27920
27921             fi
27922         fi
27923         if test "x$EXPAT_LINK" = "x" ; then
27924             if test "$wxUSE_EXPAT" = "sys" ; then
27925                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
27926 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
27927    { (exit 1); exit 1; }; }
27928             else
27929                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
27930 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
27931                 wxUSE_EXPAT=builtin
27932             fi
27933         else
27934                         wxUSE_EXPAT=sys
27935         fi
27936     fi
27937     if test "$wxUSE_EXPAT" = "builtin" ; then
27938                 subdirs="$subdirs src/expat"
27939
27940     fi
27941 fi
27942
27943
27944
27945 if test "$wxUSE_LIBMSPACK" != "no"; then
27946     { echo "$as_me:$LINENO: checking for mspack.h" >&5
27947 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
27948 if test "${ac_cv_header_mspack_h+set}" = set; then
27949   echo $ECHO_N "(cached) $ECHO_C" >&6
27950 else
27951   cat >conftest.$ac_ext <<_ACEOF
27952 /* confdefs.h.  */
27953 _ACEOF
27954 cat confdefs.h >>conftest.$ac_ext
27955 cat >>conftest.$ac_ext <<_ACEOF
27956 /* end confdefs.h.  */
27957
27958
27959 #include <mspack.h>
27960 _ACEOF
27961 rm -f conftest.$ac_objext
27962 if { (ac_try="$ac_compile"
27963 case "(($ac_try" in
27964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27965   *) ac_try_echo=$ac_try;;
27966 esac
27967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27968   (eval "$ac_compile") 2>conftest.er1
27969   ac_status=$?
27970   grep -v '^ *+' conftest.er1 >conftest.err
27971   rm -f conftest.er1
27972   cat conftest.err >&5
27973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974   (exit $ac_status); } && {
27975          test -z "$ac_c_werror_flag" ||
27976          test ! -s conftest.err
27977        } && test -s conftest.$ac_objext; then
27978   ac_cv_header_mspack_h=yes
27979 else
27980   echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27982
27983         ac_cv_header_mspack_h=no
27984 fi
27985
27986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27987 fi
27988 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
27989 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
27990 if test $ac_cv_header_mspack_h = yes; then
27991   found_mspack_h=1
27992 fi
27993
27994
27995     if test "x$found_mspack_h" = "x1"; then
27996         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
27997 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
27998 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
27999   echo $ECHO_N "(cached) $ECHO_C" >&6
28000 else
28001   ac_check_lib_save_LIBS=$LIBS
28002 LIBS="-lmspack  $LIBS"
28003 cat >conftest.$ac_ext <<_ACEOF
28004 /* confdefs.h.  */
28005 _ACEOF
28006 cat confdefs.h >>conftest.$ac_ext
28007 cat >>conftest.$ac_ext <<_ACEOF
28008 /* end confdefs.h.  */
28009
28010 /* Override any GCC internal prototype to avoid an error.
28011    Use char because int might match the return type of a GCC
28012    builtin and then its argument prototype would still apply.  */
28013 #ifdef __cplusplus
28014 extern "C"
28015 #endif
28016 char mspack_create_chm_decompressor ();
28017 int
28018 main ()
28019 {
28020 return mspack_create_chm_decompressor ();
28021   ;
28022   return 0;
28023 }
28024 _ACEOF
28025 rm -f conftest.$ac_objext conftest$ac_exeext
28026 if { (ac_try="$ac_link"
28027 case "(($ac_try" in
28028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28029   *) ac_try_echo=$ac_try;;
28030 esac
28031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28032   (eval "$ac_link") 2>conftest.er1
28033   ac_status=$?
28034   grep -v '^ *+' conftest.er1 >conftest.err
28035   rm -f conftest.er1
28036   cat conftest.err >&5
28037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038   (exit $ac_status); } && {
28039          test -z "$ac_c_werror_flag" ||
28040          test ! -s conftest.err
28041        } && test -s conftest$ac_exeext &&
28042        $as_test_x conftest$ac_exeext; then
28043   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
28044 else
28045   echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28047
28048         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
28049 fi
28050
28051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28052       conftest$ac_exeext conftest.$ac_ext
28053 LIBS=$ac_check_lib_save_LIBS
28054 fi
28055 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
28056 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
28057 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
28058   MSPACK_LINK=" -lmspack"
28059 fi
28060
28061     fi
28062     if test "x$MSPACK_LINK" = "x" ; then
28063         wxUSE_LIBMSPACK=no
28064     fi
28065 fi
28066
28067 if test "$wxUSE_LIBMSPACK" != "no"; then
28068     cat >>confdefs.h <<\_ACEOF
28069 #define wxUSE_LIBMSPACK 1
28070 _ACEOF
28071
28072 fi
28073
28074
28075
28076 AFMINSTALL=
28077 WIN32INSTALL=
28078
28079 TOOLKIT=
28080 TOOLKIT_INCLUDE=
28081 WIDGET_SET=
28082
28083 if test "$USE_WIN32" = 1 ; then
28084
28085 for ac_header in w32api.h
28086 do
28087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28091   echo $ECHO_N "(cached) $ECHO_C" >&6
28092 else
28093   cat >conftest.$ac_ext <<_ACEOF
28094 /* confdefs.h.  */
28095 _ACEOF
28096 cat confdefs.h >>conftest.$ac_ext
28097 cat >>conftest.$ac_ext <<_ACEOF
28098 /* end confdefs.h.  */
28099
28100
28101 #include <$ac_header>
28102 _ACEOF
28103 rm -f conftest.$ac_objext
28104 if { (ac_try="$ac_compile"
28105 case "(($ac_try" in
28106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28107   *) ac_try_echo=$ac_try;;
28108 esac
28109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28110   (eval "$ac_compile") 2>conftest.er1
28111   ac_status=$?
28112   grep -v '^ *+' conftest.er1 >conftest.err
28113   rm -f conftest.er1
28114   cat conftest.err >&5
28115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116   (exit $ac_status); } && {
28117          test -z "$ac_c_werror_flag" ||
28118          test ! -s conftest.err
28119        } && test -s conftest.$ac_objext; then
28120   eval "$as_ac_Header=yes"
28121 else
28122   echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28124
28125         eval "$as_ac_Header=no"
28126 fi
28127
28128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28129 fi
28130 ac_res=`eval echo '${'$as_ac_Header'}'`
28131                { echo "$as_me:$LINENO: result: $ac_res" >&5
28132 echo "${ECHO_T}$ac_res" >&6; }
28133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28134   cat >>confdefs.h <<_ACEOF
28135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28136 _ACEOF
28137
28138 fi
28139
28140 done
28141
28142     { echo "$as_me:$LINENO: checking for windows.h" >&5
28143 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
28144 if test "${ac_cv_header_windows_h+set}" = set; then
28145   echo $ECHO_N "(cached) $ECHO_C" >&6
28146 else
28147   cat >conftest.$ac_ext <<_ACEOF
28148 /* confdefs.h.  */
28149 _ACEOF
28150 cat confdefs.h >>conftest.$ac_ext
28151 cat >>conftest.$ac_ext <<_ACEOF
28152 /* end confdefs.h.  */
28153
28154
28155 #include <windows.h>
28156 _ACEOF
28157 rm -f conftest.$ac_objext
28158 if { (ac_try="$ac_compile"
28159 case "(($ac_try" in
28160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28161   *) ac_try_echo=$ac_try;;
28162 esac
28163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28164   (eval "$ac_compile") 2>conftest.er1
28165   ac_status=$?
28166   grep -v '^ *+' conftest.er1 >conftest.err
28167   rm -f conftest.er1
28168   cat conftest.err >&5
28169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170   (exit $ac_status); } && {
28171          test -z "$ac_c_werror_flag" ||
28172          test ! -s conftest.err
28173        } && test -s conftest.$ac_objext; then
28174   ac_cv_header_windows_h=yes
28175 else
28176   echo "$as_me: failed program was:" >&5
28177 sed 's/^/| /' conftest.$ac_ext >&5
28178
28179         ac_cv_header_windows_h=no
28180 fi
28181
28182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28183 fi
28184 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
28185 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
28186 if test $ac_cv_header_windows_h = yes; then
28187   :
28188 else
28189
28190         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
28191 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
28192    { (exit 1); exit 1; }; }
28193
28194 fi
28195
28196
28197
28198             case "${host}" in
28199         x86_64-*-mingw32* )
28200                         LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lwctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28201         ;;
28202         * )
28203             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
28204         ;;
28205     esac
28206     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
28207         LIBS="$LIBS -loleacc"
28208     fi
28209
28210     case "${host}" in
28211         *-*-cygwin* )
28212                         LIBS="$LIBS -lkernel32 -luser32"
28213     esac
28214
28215         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28216     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
28217
28218                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
28219
28220         WIN32INSTALL=win32install
28221
28222         { echo "$as_me:$LINENO: checking for pbt.h" >&5
28223 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
28224 if test "${ac_cv_header_pbt_h+set}" = set; then
28225   echo $ECHO_N "(cached) $ECHO_C" >&6
28226 else
28227   cat >conftest.$ac_ext <<_ACEOF
28228 /* confdefs.h.  */
28229 _ACEOF
28230 cat confdefs.h >>conftest.$ac_ext
28231 cat >>conftest.$ac_ext <<_ACEOF
28232 /* end confdefs.h.  */
28233
28234
28235 #include <pbt.h>
28236 _ACEOF
28237 rm -f conftest.$ac_objext
28238 if { (ac_try="$ac_compile"
28239 case "(($ac_try" in
28240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28241   *) ac_try_echo=$ac_try;;
28242 esac
28243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28244   (eval "$ac_compile") 2>conftest.er1
28245   ac_status=$?
28246   grep -v '^ *+' conftest.er1 >conftest.err
28247   rm -f conftest.er1
28248   cat conftest.err >&5
28249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250   (exit $ac_status); } && {
28251          test -z "$ac_c_werror_flag" ||
28252          test ! -s conftest.err
28253        } && test -s conftest.$ac_objext; then
28254   ac_cv_header_pbt_h=yes
28255 else
28256   echo "$as_me: failed program was:" >&5
28257 sed 's/^/| /' conftest.$ac_ext >&5
28258
28259         ac_cv_header_pbt_h=no
28260 fi
28261
28262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28263 fi
28264 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
28265 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
28266 if test $ac_cv_header_pbt_h = yes; then
28267   :
28268 else
28269   cat >>confdefs.h <<\_ACEOF
28270 #define NEED_PBT_H 1
28271 _ACEOF
28272
28273 fi
28274
28275
28276 fi
28277
28278 if test "$wxUSE_GUI" = "yes"; then
28279     USE_GUI=1
28280
28281     GUI_TK_LIBRARY=
28282
28283     WXGTK12=
28284     WXGTK127=
28285     WXGTK2=
28286     WXGPE=
28287
28288     if test "$wxUSE_COCOA" = 1 ; then
28289         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
28290             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
28291 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
28292             wxUSE_PRINTING_ARCHITECTURE=no
28293         fi
28294         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
28295             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
28296 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
28297             wxUSE_DRAG_AND_DROP=no
28298         fi
28299         if test "$wxUSE_DRAGIMAGE" = "yes"; then
28300             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
28301 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
28302             wxUSE_DRAGIMAGE=no
28303         fi
28304     fi
28305
28306     if test "$wxUSE_MSW" = 1 ; then
28307         TOOLKIT=MSW
28308         GUIDIST=MSW_DIST
28309
28310                 case "${host}" in
28311             *-*-mingw32* )
28312                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
28313         esac
28314     fi
28315
28316     if test "$wxUSE_GTK" = 1; then
28317                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
28318 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
28319
28320         gtk_version_cached=1
28321         if test "${wx_cv_lib_gtk+set}" = set; then
28322   echo $ECHO_N "(cached) $ECHO_C" >&6
28323 else
28324
28325                                                 gtk_version_cached=0
28326                 { echo "$as_me:$LINENO: result: " >&5
28327 echo "${ECHO_T}" >&6; }
28328
28329                                                 GTK_MODULES=
28330                 if test "$wxUSE_THREADS" = "yes"; then
28331                     GTK_MODULES=gthread
28332                 fi
28333
28334                                 wx_cv_lib_gtk=
28335                 if test "x$wxGTK_VERSION" != "x1"
28336                 then
28337                                                                                 case "${host}" in
28338                         *-*-solaris2* )
28339                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
28340                                 enable_gtktest=no
28341                             fi
28342                     esac
28343
28344                     # Check whether --enable-gtktest was given.
28345 if test "${enable_gtktest+set}" = set; then
28346   enableval=$enable_gtktest;
28347 else
28348   enable_gtktest=yes
28349 fi
28350
28351
28352   pkg_config_args=gtk+-2.0
28353   for module in . $GTK_MODULES
28354   do
28355       case "$module" in
28356          gthread)
28357              pkg_config_args="$pkg_config_args gthread-2.0"
28358          ;;
28359       esac
28360   done
28361
28362   no_gtk=""
28363
28364   # Extract the first word of "pkg-config", so it can be a program name with args.
28365 set dummy pkg-config; ac_word=$2
28366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28368 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28369   echo $ECHO_N "(cached) $ECHO_C" >&6
28370 else
28371   case $PKG_CONFIG in
28372   [\\/]* | ?:[\\/]*)
28373   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28374   ;;
28375   *)
28376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28377 for as_dir in $PATH
28378 do
28379   IFS=$as_save_IFS
28380   test -z "$as_dir" && as_dir=.
28381   for ac_exec_ext in '' $ac_executable_extensions; do
28382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28383     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28385     break 2
28386   fi
28387 done
28388 done
28389 IFS=$as_save_IFS
28390
28391   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28392   ;;
28393 esac
28394 fi
28395 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28396 if test -n "$PKG_CONFIG"; then
28397   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28398 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28399 else
28400   { echo "$as_me:$LINENO: result: no" >&5
28401 echo "${ECHO_T}no" >&6; }
28402 fi
28403
28404
28405
28406   if test x$PKG_CONFIG != xno ; then
28407     if pkg-config --atleast-pkgconfig-version 0.7 ; then
28408       :
28409     else
28410       echo "*** pkg-config too old; version 0.7 or better required."
28411       no_gtk=yes
28412       PKG_CONFIG=no
28413     fi
28414   else
28415     no_gtk=yes
28416   fi
28417
28418   min_gtk_version=2.4.0
28419   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
28420 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
28421
28422   if test x$PKG_CONFIG != xno ; then
28423     ## don't try to run the test against uninstalled libtool libs
28424     if $PKG_CONFIG --uninstalled $pkg_config_args; then
28425           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
28426           enable_gtktest=no
28427     fi
28428
28429     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
28430           :
28431     else
28432           no_gtk=yes
28433     fi
28434   fi
28435
28436   if test x"$no_gtk" = x ; then
28437     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
28438     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
28439     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28440            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28441     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28442            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28443     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
28444            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28445     if test "x$enable_gtktest" = "xyes" ; then
28446       ac_save_CFLAGS="$CFLAGS"
28447       ac_save_LIBS="$LIBS"
28448       CFLAGS="$CFLAGS $GTK_CFLAGS"
28449       LIBS="$GTK_LIBS $LIBS"
28450       rm -f conf.gtktest
28451       if test "$cross_compiling" = yes; then
28452   echo $ac_n "cross compiling; assumed OK... $ac_c"
28453 else
28454   cat >conftest.$ac_ext <<_ACEOF
28455 /* confdefs.h.  */
28456 _ACEOF
28457 cat confdefs.h >>conftest.$ac_ext
28458 cat >>conftest.$ac_ext <<_ACEOF
28459 /* end confdefs.h.  */
28460
28461 #include <gtk/gtk.h>
28462 #include <stdio.h>
28463 #include <stdlib.h>
28464
28465 int
28466 main ()
28467 {
28468   int major, minor, micro;
28469   char *tmp_version;
28470
28471   system ("touch conf.gtktest");
28472
28473   /* HP/UX 9 (%@#!) writes to sscanf strings */
28474   tmp_version = g_strdup("$min_gtk_version");
28475   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28476      printf("%s, bad version string\n", "$min_gtk_version");
28477      exit(1);
28478    }
28479
28480   if ((gtk_major_version != $gtk_config_major_version) ||
28481       (gtk_minor_version != $gtk_config_minor_version) ||
28482       (gtk_micro_version != $gtk_config_micro_version))
28483     {
28484       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28485              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28486              gtk_major_version, gtk_minor_version, gtk_micro_version);
28487       printf ("*** was found! If pkg-config was correct, then it is best\n");
28488       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28489       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28490       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28491       printf("*** required on your system.\n");
28492       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
28493       printf("*** to point to the correct configuration files\n");
28494     }
28495   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28496            (gtk_minor_version != GTK_MINOR_VERSION) ||
28497            (gtk_micro_version != GTK_MICRO_VERSION))
28498     {
28499       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28500              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28501       printf("*** library (version %d.%d.%d)\n",
28502              gtk_major_version, gtk_minor_version, gtk_micro_version);
28503     }
28504   else
28505     {
28506       if ((gtk_major_version > major) ||
28507         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28508         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28509       {
28510         return 0;
28511        }
28512      else
28513       {
28514         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28515                gtk_major_version, gtk_minor_version, gtk_micro_version);
28516         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28517                major, minor, micro);
28518         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28519         printf("***\n");
28520         printf("*** If you have already installed a sufficiently new version, this error\n");
28521         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
28522         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28523         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
28524         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
28525         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28526         printf("*** so that the correct libraries are found at run-time))\n");
28527       }
28528     }
28529   return 1;
28530 }
28531
28532 _ACEOF
28533 rm -f conftest$ac_exeext
28534 if { (ac_try="$ac_link"
28535 case "(($ac_try" in
28536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537   *) ac_try_echo=$ac_try;;
28538 esac
28539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540   (eval "$ac_link") 2>&5
28541   ac_status=$?
28542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28544   { (case "(($ac_try" in
28545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28546   *) ac_try_echo=$ac_try;;
28547 esac
28548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28549   (eval "$ac_try") 2>&5
28550   ac_status=$?
28551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552   (exit $ac_status); }; }; then
28553   :
28554 else
28555   echo "$as_me: program exited with status $ac_status" >&5
28556 echo "$as_me: failed program was:" >&5
28557 sed 's/^/| /' conftest.$ac_ext >&5
28558
28559 ( exit $ac_status )
28560 no_gtk=yes
28561 fi
28562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28563 fi
28564
28565
28566        CFLAGS="$ac_save_CFLAGS"
28567        LIBS="$ac_save_LIBS"
28568      fi
28569   fi
28570   if test "x$no_gtk" = x ; then
28571      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
28572 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
28573      wx_cv_lib_gtk=2.0
28574   else
28575      { echo "$as_me:$LINENO: result: no" >&5
28576 echo "${ECHO_T}no" >&6; }
28577      if test "$PKG_CONFIG" = "no" ; then
28578        echo "*** A new enough version of pkg-config was not found."
28579        echo "*** See http://pkgconfig.sourceforge.net"
28580      else
28581        if test -f conf.gtktest ; then
28582         :
28583        else
28584           echo "*** Could not run GTK+ test program, checking why..."
28585           ac_save_CFLAGS="$CFLAGS"
28586           ac_save_LIBS="$LIBS"
28587           CFLAGS="$CFLAGS $GTK_CFLAGS"
28588           LIBS="$LIBS $GTK_LIBS"
28589           cat >conftest.$ac_ext <<_ACEOF
28590 /* confdefs.h.  */
28591 _ACEOF
28592 cat confdefs.h >>conftest.$ac_ext
28593 cat >>conftest.$ac_ext <<_ACEOF
28594 /* end confdefs.h.  */
28595
28596 #include <gtk/gtk.h>
28597 #include <stdio.h>
28598
28599 int
28600 main ()
28601 {
28602  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28603   ;
28604   return 0;
28605 }
28606 _ACEOF
28607 rm -f conftest.$ac_objext conftest$ac_exeext
28608 if { (ac_try="$ac_link"
28609 case "(($ac_try" in
28610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28611   *) ac_try_echo=$ac_try;;
28612 esac
28613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28614   (eval "$ac_link") 2>conftest.er1
28615   ac_status=$?
28616   grep -v '^ *+' conftest.er1 >conftest.err
28617   rm -f conftest.er1
28618   cat conftest.err >&5
28619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620   (exit $ac_status); } && {
28621          test -z "$ac_c_werror_flag" ||
28622          test ! -s conftest.err
28623        } && test -s conftest$ac_exeext &&
28624        $as_test_x conftest$ac_exeext; then
28625    echo "*** The test program compiled, but did not run. This usually means"
28626           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
28627           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
28628           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28629           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28630           echo "*** is required on your system"
28631           echo "***"
28632           echo "*** If you have an old version installed, it is best to remove it, although"
28633           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28634 else
28635   echo "$as_me: failed program was:" >&5
28636 sed 's/^/| /' conftest.$ac_ext >&5
28637
28638          echo "*** The test program failed to compile or link. See the file config.log for the"
28639           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
28640 fi
28641
28642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28643       conftest$ac_exeext conftest.$ac_ext
28644           CFLAGS="$ac_save_CFLAGS"
28645           LIBS="$ac_save_LIBS"
28646        fi
28647      fi
28648      GTK_CFLAGS=""
28649      GTK_LIBS=""
28650      :
28651   fi
28652
28653
28654   rm -f conf.gtktest
28655
28656
28657                                         case "${host}" in
28658                         *-*-solaris2* )
28659                             if test "$wxUSE_SHARED" != "yes"; then
28660                                 GTK_LIBS="$GTK_LIBS -lX11"
28661                             fi
28662                     esac
28663                 fi
28664
28665                                 if test -z "$wx_cv_lib_gtk"; then
28666                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
28667
28668 # Check whether --with-gtk-prefix was given.
28669 if test "${with_gtk_prefix+set}" = set; then
28670   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28671 else
28672   gtk_config_prefix=""
28673 fi
28674
28675
28676 # Check whether --with-gtk-exec-prefix was given.
28677 if test "${with_gtk_exec_prefix+set}" = set; then
28678   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
28679 else
28680   gtk_config_exec_prefix=""
28681 fi
28682
28683 # Check whether --enable-gtktest was given.
28684 if test "${enable_gtktest+set}" = set; then
28685   enableval=$enable_gtktest;
28686 else
28687   enable_gtktest=yes
28688 fi
28689
28690
28691   for module in . $GTK_MODULES
28692   do
28693       case "$module" in
28694          gthread)
28695              gtk_config_args="$gtk_config_args gthread"
28696          ;;
28697       esac
28698   done
28699
28700   if test x$gtk_config_exec_prefix != x ; then
28701      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28702      if test x${GTK_CONFIG+set} != xset ; then
28703         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28704      fi
28705   fi
28706   if test x$gtk_config_prefix != x ; then
28707      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28708      if test x${GTK_CONFIG+set} != xset ; then
28709         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28710      fi
28711   fi
28712
28713   # Extract the first word of "gtk-config", so it can be a program name with args.
28714 set dummy gtk-config; ac_word=$2
28715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28717 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28718   echo $ECHO_N "(cached) $ECHO_C" >&6
28719 else
28720   case $GTK_CONFIG in
28721   [\\/]* | ?:[\\/]*)
28722   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28723   ;;
28724   *)
28725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28726 for as_dir in $PATH
28727 do
28728   IFS=$as_save_IFS
28729   test -z "$as_dir" && as_dir=.
28730   for ac_exec_ext in '' $ac_executable_extensions; do
28731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28732     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28734     break 2
28735   fi
28736 done
28737 done
28738 IFS=$as_save_IFS
28739
28740   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28741   ;;
28742 esac
28743 fi
28744 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28745 if test -n "$GTK_CONFIG"; then
28746   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28747 echo "${ECHO_T}$GTK_CONFIG" >&6; }
28748 else
28749   { echo "$as_me:$LINENO: result: no" >&5
28750 echo "${ECHO_T}no" >&6; }
28751 fi
28752
28753
28754   min_gtk_version=1.2.7
28755   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28756 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
28757   no_gtk=""
28758   if test "$GTK_CONFIG" = "no" ; then
28759     no_gtk=yes
28760   else
28761     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28762     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28763     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28764            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28765     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28766            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28767     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28768            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28769     if test "x$enable_gtktest" = "xyes" ; then
28770       ac_save_CFLAGS="$CFLAGS"
28771       ac_save_LIBS="$LIBS"
28772       CFLAGS="$CFLAGS $GTK_CFLAGS"
28773       LIBS="$GTK_LIBS $LIBS"
28774       rm -f conf.gtktest
28775       if test "$cross_compiling" = yes; then
28776   echo $ac_n "cross compiling; assumed OK... $ac_c"
28777 else
28778   cat >conftest.$ac_ext <<_ACEOF
28779 /* confdefs.h.  */
28780 _ACEOF
28781 cat confdefs.h >>conftest.$ac_ext
28782 cat >>conftest.$ac_ext <<_ACEOF
28783 /* end confdefs.h.  */
28784
28785 #include <gtk/gtk.h>
28786 #include <stdio.h>
28787 #include <stdlib.h>
28788
28789 int
28790 main ()
28791 {
28792   int major, minor, micro;
28793   char *tmp_version;
28794
28795   system ("touch conf.gtktest");
28796
28797   /* HP/UX 9 (%@#!) writes to sscanf strings */
28798   tmp_version = g_strdup("$min_gtk_version");
28799   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28800      printf("%s, bad version string\n", "$min_gtk_version");
28801      exit(1);
28802    }
28803
28804   if ((gtk_major_version != $gtk_config_major_version) ||
28805       (gtk_minor_version != $gtk_config_minor_version) ||
28806       (gtk_micro_version != $gtk_config_micro_version))
28807     {
28808       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28809              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28810              gtk_major_version, gtk_minor_version, gtk_micro_version);
28811       printf ("*** was found! If gtk-config was correct, then it is best\n");
28812       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28813       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28814       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28815       printf("*** required on your system.\n");
28816       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28817       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28818       printf("*** before re-running configure\n");
28819     }
28820 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28821   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28822            (gtk_minor_version != GTK_MINOR_VERSION) ||
28823            (gtk_micro_version != GTK_MICRO_VERSION))
28824     {
28825       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28826              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28827       printf("*** library (version %d.%d.%d)\n",
28828              gtk_major_version, gtk_minor_version, gtk_micro_version);
28829     }
28830 #endif /* defined (GTK_MAJOR_VERSION) ... */
28831   else
28832     {
28833       if ((gtk_major_version > major) ||
28834         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28835         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28836       {
28837         return 0;
28838        }
28839      else
28840       {
28841         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28842                gtk_major_version, gtk_minor_version, gtk_micro_version);
28843         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28844                major, minor, micro);
28845         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28846         printf("***\n");
28847         printf("*** If you have already installed a sufficiently new version, this error\n");
28848         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28849         printf("*** being found. The easiest way to fix this is to remove the old version\n");
28850         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28851         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28852         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28853         printf("*** so that the correct libraries are found at run-time))\n");
28854       }
28855     }
28856   return 1;
28857 }
28858
28859 _ACEOF
28860 rm -f conftest$ac_exeext
28861 if { (ac_try="$ac_link"
28862 case "(($ac_try" in
28863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28864   *) ac_try_echo=$ac_try;;
28865 esac
28866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28867   (eval "$ac_link") 2>&5
28868   ac_status=$?
28869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28871   { (case "(($ac_try" in
28872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28873   *) ac_try_echo=$ac_try;;
28874 esac
28875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28876   (eval "$ac_try") 2>&5
28877   ac_status=$?
28878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879   (exit $ac_status); }; }; then
28880   :
28881 else
28882   echo "$as_me: program exited with status $ac_status" >&5
28883 echo "$as_me: failed program was:" >&5
28884 sed 's/^/| /' conftest.$ac_ext >&5
28885
28886 ( exit $ac_status )
28887 no_gtk=yes
28888 fi
28889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28890 fi
28891
28892
28893        CFLAGS="$ac_save_CFLAGS"
28894        LIBS="$ac_save_LIBS"
28895      fi
28896   fi
28897   if test "x$no_gtk" = x ; then
28898      { echo "$as_me:$LINENO: result: yes" >&5
28899 echo "${ECHO_T}yes" >&6; }
28900      wx_cv_lib_gtk=1.2.7
28901   else
28902      { echo "$as_me:$LINENO: result: no" >&5
28903 echo "${ECHO_T}no" >&6; }
28904      if test "$GTK_CONFIG" = "no" ; then
28905        echo "*** The gtk-config script installed by GTK could not be found"
28906        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28907        echo "*** your path, or set the GTK_CONFIG environment variable to the"
28908        echo "*** full path to gtk-config."
28909      else
28910        if test -f conf.gtktest ; then
28911         :
28912        else
28913           echo "*** Could not run GTK test program, checking why..."
28914           CFLAGS="$CFLAGS $GTK_CFLAGS"
28915           LIBS="$LIBS $GTK_LIBS"
28916           cat >conftest.$ac_ext <<_ACEOF
28917 /* confdefs.h.  */
28918 _ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h.  */
28922
28923 #include <gtk/gtk.h>
28924 #include <stdio.h>
28925
28926 int
28927 main ()
28928 {
28929  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28930   ;
28931   return 0;
28932 }
28933 _ACEOF
28934 rm -f conftest.$ac_objext conftest$ac_exeext
28935 if { (ac_try="$ac_link"
28936 case "(($ac_try" in
28937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938   *) ac_try_echo=$ac_try;;
28939 esac
28940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941   (eval "$ac_link") 2>conftest.er1
28942   ac_status=$?
28943   grep -v '^ *+' conftest.er1 >conftest.err
28944   rm -f conftest.er1
28945   cat conftest.err >&5
28946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947   (exit $ac_status); } && {
28948          test -z "$ac_c_werror_flag" ||
28949          test ! -s conftest.err
28950        } && test -s conftest$ac_exeext &&
28951        $as_test_x conftest$ac_exeext; then
28952    echo "*** The test program compiled, but did not run. This usually means"
28953           echo "*** that the run-time linker is not finding GTK or finding the wrong"
28954           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28955           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28956           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
28957           echo "*** is required on your system"
28958           echo "***"
28959           echo "*** If you have an old version installed, it is best to remove it, although"
28960           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28961           echo "***"
28962           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28963           echo "*** came with the system with the command"
28964           echo "***"
28965           echo "***    rpm --erase --nodeps gtk gtk-devel"
28966 else
28967   echo "$as_me: failed program was:" >&5
28968 sed 's/^/| /' conftest.$ac_ext >&5
28969
28970          echo "*** The test program failed to compile or link. See the file config.log for the"
28971           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28972           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28973           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28974 fi
28975
28976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28977       conftest$ac_exeext conftest.$ac_ext
28978           CFLAGS="$ac_save_CFLAGS"
28979           LIBS="$ac_save_LIBS"
28980        fi
28981      fi
28982      GTK_CFLAGS=""
28983      GTK_LIBS=""
28984      :
28985   fi
28986
28987
28988   rm -f conf.gtktest
28989
28990
28991                         if test -z "$wx_cv_lib_gtk"; then
28992
28993 # Check whether --with-gtk-prefix was given.
28994 if test "${with_gtk_prefix+set}" = set; then
28995   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
28996 else
28997   gtk_config_prefix=""
28998 fi
28999
29000
29001 # Check whether --with-gtk-exec-prefix was given.
29002 if test "${with_gtk_exec_prefix+set}" = set; then
29003   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
29004 else
29005   gtk_config_exec_prefix=""
29006 fi
29007
29008 # Check whether --enable-gtktest was given.
29009 if test "${enable_gtktest+set}" = set; then
29010   enableval=$enable_gtktest;
29011 else
29012   enable_gtktest=yes
29013 fi
29014
29015
29016   for module in . $GTK_MODULES
29017   do
29018       case "$module" in
29019          gthread)
29020              gtk_config_args="$gtk_config_args gthread"
29021          ;;
29022       esac
29023   done
29024
29025   if test x$gtk_config_exec_prefix != x ; then
29026      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
29027      if test x${GTK_CONFIG+set} != xset ; then
29028         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
29029      fi
29030   fi
29031   if test x$gtk_config_prefix != x ; then
29032      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
29033      if test x${GTK_CONFIG+set} != xset ; then
29034         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
29035      fi
29036   fi
29037
29038   # Extract the first word of "gtk-config", so it can be a program name with args.
29039 set dummy gtk-config; ac_word=$2
29040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29042 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
29043   echo $ECHO_N "(cached) $ECHO_C" >&6
29044 else
29045   case $GTK_CONFIG in
29046   [\\/]* | ?:[\\/]*)
29047   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
29048   ;;
29049   *)
29050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29051 for as_dir in $PATH
29052 do
29053   IFS=$as_save_IFS
29054   test -z "$as_dir" && as_dir=.
29055   for ac_exec_ext in '' $ac_executable_extensions; do
29056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29057     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29059     break 2
29060   fi
29061 done
29062 done
29063 IFS=$as_save_IFS
29064
29065   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
29066   ;;
29067 esac
29068 fi
29069 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
29070 if test -n "$GTK_CONFIG"; then
29071   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
29072 echo "${ECHO_T}$GTK_CONFIG" >&6; }
29073 else
29074   { echo "$as_me:$LINENO: result: no" >&5
29075 echo "${ECHO_T}no" >&6; }
29076 fi
29077
29078
29079   min_gtk_version=1.2.3
29080   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
29081 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
29082   no_gtk=""
29083   if test "$GTK_CONFIG" = "no" ; then
29084     no_gtk=yes
29085   else
29086     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
29087     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
29088     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
29089            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
29090     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
29091            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
29092     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
29093            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
29094     if test "x$enable_gtktest" = "xyes" ; then
29095       ac_save_CFLAGS="$CFLAGS"
29096       ac_save_LIBS="$LIBS"
29097       CFLAGS="$CFLAGS $GTK_CFLAGS"
29098       LIBS="$GTK_LIBS $LIBS"
29099       rm -f conf.gtktest
29100       if test "$cross_compiling" = yes; then
29101   echo $ac_n "cross compiling; assumed OK... $ac_c"
29102 else
29103   cat >conftest.$ac_ext <<_ACEOF
29104 /* confdefs.h.  */
29105 _ACEOF
29106 cat confdefs.h >>conftest.$ac_ext
29107 cat >>conftest.$ac_ext <<_ACEOF
29108 /* end confdefs.h.  */
29109
29110 #include <gtk/gtk.h>
29111 #include <stdio.h>
29112 #include <stdlib.h>
29113
29114 int
29115 main ()
29116 {
29117   int major, minor, micro;
29118   char *tmp_version;
29119
29120   system ("touch conf.gtktest");
29121
29122   /* HP/UX 9 (%@#!) writes to sscanf strings */
29123   tmp_version = g_strdup("$min_gtk_version");
29124   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
29125      printf("%s, bad version string\n", "$min_gtk_version");
29126      exit(1);
29127    }
29128
29129   if ((gtk_major_version != $gtk_config_major_version) ||
29130       (gtk_minor_version != $gtk_config_minor_version) ||
29131       (gtk_micro_version != $gtk_config_micro_version))
29132     {
29133       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
29134              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
29135              gtk_major_version, gtk_minor_version, gtk_micro_version);
29136       printf ("*** was found! If gtk-config was correct, then it is best\n");
29137       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
29138       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
29139       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
29140       printf("*** required on your system.\n");
29141       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
29142       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
29143       printf("*** before re-running configure\n");
29144     }
29145 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
29146   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
29147            (gtk_minor_version != GTK_MINOR_VERSION) ||
29148            (gtk_micro_version != GTK_MICRO_VERSION))
29149     {
29150       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
29151              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
29152       printf("*** library (version %d.%d.%d)\n",
29153              gtk_major_version, gtk_minor_version, gtk_micro_version);
29154     }
29155 #endif /* defined (GTK_MAJOR_VERSION) ... */
29156   else
29157     {
29158       if ((gtk_major_version > major) ||
29159         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
29160         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
29161       {
29162         return 0;
29163        }
29164      else
29165       {
29166         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
29167                gtk_major_version, gtk_minor_version, gtk_micro_version);
29168         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
29169                major, minor, micro);
29170         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
29171         printf("***\n");
29172         printf("*** If you have already installed a sufficiently new version, this error\n");
29173         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
29174         printf("*** being found. The easiest way to fix this is to remove the old version\n");
29175         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
29176         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
29177         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
29178         printf("*** so that the correct libraries are found at run-time))\n");
29179       }
29180     }
29181   return 1;
29182 }
29183
29184 _ACEOF
29185 rm -f conftest$ac_exeext
29186 if { (ac_try="$ac_link"
29187 case "(($ac_try" in
29188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29189   *) ac_try_echo=$ac_try;;
29190 esac
29191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29192   (eval "$ac_link") 2>&5
29193   ac_status=$?
29194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29196   { (case "(($ac_try" in
29197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198   *) ac_try_echo=$ac_try;;
29199 esac
29200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201   (eval "$ac_try") 2>&5
29202   ac_status=$?
29203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204   (exit $ac_status); }; }; then
29205   :
29206 else
29207   echo "$as_me: program exited with status $ac_status" >&5
29208 echo "$as_me: failed program was:" >&5
29209 sed 's/^/| /' conftest.$ac_ext >&5
29210
29211 ( exit $ac_status )
29212 no_gtk=yes
29213 fi
29214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29215 fi
29216
29217
29218        CFLAGS="$ac_save_CFLAGS"
29219        LIBS="$ac_save_LIBS"
29220      fi
29221   fi
29222   if test "x$no_gtk" = x ; then
29223      { echo "$as_me:$LINENO: result: yes" >&5
29224 echo "${ECHO_T}yes" >&6; }
29225      wx_cv_lib_gtk=1.2.3
29226   else
29227      { echo "$as_me:$LINENO: result: no" >&5
29228 echo "${ECHO_T}no" >&6; }
29229      if test "$GTK_CONFIG" = "no" ; then
29230        echo "*** The gtk-config script installed by GTK could not be found"
29231        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
29232        echo "*** your path, or set the GTK_CONFIG environment variable to the"
29233        echo "*** full path to gtk-config."
29234      else
29235        if test -f conf.gtktest ; then
29236         :
29237        else
29238           echo "*** Could not run GTK test program, checking why..."
29239           CFLAGS="$CFLAGS $GTK_CFLAGS"
29240           LIBS="$LIBS $GTK_LIBS"
29241           cat >conftest.$ac_ext <<_ACEOF
29242 /* confdefs.h.  */
29243 _ACEOF
29244 cat confdefs.h >>conftest.$ac_ext
29245 cat >>conftest.$ac_ext <<_ACEOF
29246 /* end confdefs.h.  */
29247
29248 #include <gtk/gtk.h>
29249 #include <stdio.h>
29250
29251 int
29252 main ()
29253 {
29254  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
29255   ;
29256   return 0;
29257 }
29258 _ACEOF
29259 rm -f conftest.$ac_objext conftest$ac_exeext
29260 if { (ac_try="$ac_link"
29261 case "(($ac_try" in
29262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29263   *) ac_try_echo=$ac_try;;
29264 esac
29265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266   (eval "$ac_link") 2>conftest.er1
29267   ac_status=$?
29268   grep -v '^ *+' conftest.er1 >conftest.err
29269   rm -f conftest.er1
29270   cat conftest.err >&5
29271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); } && {
29273          test -z "$ac_c_werror_flag" ||
29274          test ! -s conftest.err
29275        } && test -s conftest$ac_exeext &&
29276        $as_test_x conftest$ac_exeext; then
29277    echo "*** The test program compiled, but did not run. This usually means"
29278           echo "*** that the run-time linker is not finding GTK or finding the wrong"
29279           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
29280           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29281           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29282           echo "*** is required on your system"
29283           echo "***"
29284           echo "*** If you have an old version installed, it is best to remove it, although"
29285           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29286           echo "***"
29287           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
29288           echo "*** came with the system with the command"
29289           echo "***"
29290           echo "***    rpm --erase --nodeps gtk gtk-devel"
29291 else
29292   echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29294
29295          echo "*** The test program failed to compile or link. See the file config.log for the"
29296           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
29297           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
29298           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
29299 fi
29300
29301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29302       conftest$ac_exeext conftest.$ac_ext
29303           CFLAGS="$ac_save_CFLAGS"
29304           LIBS="$ac_save_LIBS"
29305        fi
29306      fi
29307      GTK_CFLAGS=""
29308      GTK_LIBS=""
29309      :
29310   fi
29311
29312
29313   rm -f conf.gtktest
29314
29315                         fi
29316                     fi
29317                 fi
29318
29319                 if test -z "$wx_cv_lib_gtk"; then
29320                                         wx_cv_lib_gtk=none
29321                 else
29322                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
29323                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
29324                 fi
29325
29326
29327 fi
29328
29329
29330                         if test "$gtk_version_cached" = 1; then
29331             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
29332 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
29333         fi
29334
29335         case "$wx_cv_lib_gtk" in
29336             2.0)    WXGTK2=1
29337                     TOOLKIT_VERSION=2
29338                     ;;
29339             1.2.7)  WXGTK127=1
29340                     WXGTK12=1
29341                     ;;
29342             1.2.3)  WXGTK12=1
29343                     ;;
29344             *)      { { echo "$as_me:$LINENO: error:
29345 The development files for GTK+ were not found. For GTK+ 2, please
29346 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29347 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29348 and that the version is 1.2.3 or above. Also check that the
29349 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29350 --libs' are in the LD_LIBRARY_PATH or equivalent.
29351                             " >&5
29352 echo "$as_me: error:
29353 The development files for GTK+ were not found. For GTK+ 2, please
29354 ensure that pkg-config is in the path and that gtk+-2.0.pc is
29355 installed. For GTK+ 1.2 please check that gtk-config is in the path,
29356 and that the version is 1.2.3 or above. Also check that the
29357 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
29358 --libs' are in the LD_LIBRARY_PATH or equivalent.
29359                             " >&2;}
29360    { (exit 1); exit 1; }; }
29361                     ;;
29362         esac
29363
29364         if test "$WXGTK2" = 1; then
29365             save_CFLAGS="$CFLAGS"
29366             save_LIBS="$LIBS"
29367             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
29368             LIBS="$LIBS $wx_cv_libs_gtk"
29369
29370                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
29371 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
29372             cat >conftest.$ac_ext <<_ACEOF
29373 /* confdefs.h.  */
29374 _ACEOF
29375 cat confdefs.h >>conftest.$ac_ext
29376 cat >>conftest.$ac_ext <<_ACEOF
29377 /* end confdefs.h.  */
29378
29379                             #include <gtk/gtk.h>
29380
29381 int
29382 main ()
29383 {
29384
29385                             #if !GTK_CHECK_VERSION(2,10,0)
29386                             Not GTK+ 2.10
29387                             #endif
29388
29389   ;
29390   return 0;
29391 }
29392 _ACEOF
29393 rm -f conftest.$ac_objext
29394 if { (ac_try="$ac_compile"
29395 case "(($ac_try" in
29396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397   *) ac_try_echo=$ac_try;;
29398 esac
29399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400   (eval "$ac_compile") 2>conftest.er1
29401   ac_status=$?
29402   grep -v '^ *+' conftest.er1 >conftest.err
29403   rm -f conftest.er1
29404   cat conftest.err >&5
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); } && {
29407          test -z "$ac_c_werror_flag" ||
29408          test ! -s conftest.err
29409        } && test -s conftest.$ac_objext; then
29410
29411                             cat >>confdefs.h <<\_ACEOF
29412 #define __WXGTK210__ 1
29413 _ACEOF
29414
29415                             cat >>confdefs.h <<\_ACEOF
29416 #define __WXGTK26__ 1
29417 _ACEOF
29418
29419                             { echo "$as_me:$LINENO: result: yes" >&5
29420 echo "${ECHO_T}yes" >&6; }
29421                             ac_wxgtk210=1
29422
29423 else
29424   echo "$as_me: failed program was:" >&5
29425 sed 's/^/| /' conftest.$ac_ext >&5
29426
29427
29428                             { echo "$as_me:$LINENO: result: no" >&5
29429 echo "${ECHO_T}no" >&6; }
29430                             ac_wxgtk210=0
29431
29432 fi
29433
29434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29435
29436             if test "$ac_wxgtk210" = 0; then
29437                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
29438 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
29439                 cat >conftest.$ac_ext <<_ACEOF
29440 /* confdefs.h.  */
29441 _ACEOF
29442 cat confdefs.h >>conftest.$ac_ext
29443 cat >>conftest.$ac_ext <<_ACEOF
29444 /* end confdefs.h.  */
29445
29446                                 #include <gtk/gtk.h>
29447
29448 int
29449 main ()
29450 {
29451
29452                                 #if !GTK_CHECK_VERSION(2,6,0)
29453                                 Not GTK+ 2.6
29454                                 #endif
29455
29456   ;
29457   return 0;
29458 }
29459 _ACEOF
29460 rm -f conftest.$ac_objext
29461 if { (ac_try="$ac_compile"
29462 case "(($ac_try" in
29463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464   *) ac_try_echo=$ac_try;;
29465 esac
29466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29467   (eval "$ac_compile") 2>conftest.er1
29468   ac_status=$?
29469   grep -v '^ *+' conftest.er1 >conftest.err
29470   rm -f conftest.er1
29471   cat conftest.err >&5
29472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473   (exit $ac_status); } && {
29474          test -z "$ac_c_werror_flag" ||
29475          test ! -s conftest.err
29476        } && test -s conftest.$ac_objext; then
29477
29478                                 cat >>confdefs.h <<\_ACEOF
29479 #define __WXGTK26__ 1
29480 _ACEOF
29481
29482                                 { echo "$as_me:$LINENO: result: yes" >&5
29483 echo "${ECHO_T}yes" >&6; }
29484                                 ac_wxgtk26=1
29485
29486 else
29487   echo "$as_me: failed program was:" >&5
29488 sed 's/^/| /' conftest.$ac_ext >&5
29489
29490
29491                                 { echo "$as_me:$LINENO: result: no" >&5
29492 echo "${ECHO_T}no" >&6; }
29493                                 ac_wxgtk26=0
29494
29495 fi
29496
29497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29498             fi
29499
29500             CFLAGS="$save_CFLAGS"
29501             LIBS="$save_LIBS"
29502         else
29503             if test "$wxUSE_UNICODE" = "yes"; then
29504                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
29505 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
29506                 wxUSE_UNICODE=no
29507             fi
29508
29509                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
29510 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
29511 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
29512   echo $ECHO_N "(cached) $ECHO_C" >&6
29513 else
29514   ac_check_lib_save_LIBS=$LIBS
29515 LIBS="-lgdk  $LIBS"
29516 cat >conftest.$ac_ext <<_ACEOF
29517 /* confdefs.h.  */
29518 _ACEOF
29519 cat confdefs.h >>conftest.$ac_ext
29520 cat >>conftest.$ac_ext <<_ACEOF
29521 /* end confdefs.h.  */
29522
29523 /* Override any GCC internal prototype to avoid an error.
29524    Use char because int might match the return type of a GCC
29525    builtin and then its argument prototype would still apply.  */
29526 #ifdef __cplusplus
29527 extern "C"
29528 #endif
29529 char gdk_im_open ();
29530 int
29531 main ()
29532 {
29533 return gdk_im_open ();
29534   ;
29535   return 0;
29536 }
29537 _ACEOF
29538 rm -f conftest.$ac_objext conftest$ac_exeext
29539 if { (ac_try="$ac_link"
29540 case "(($ac_try" in
29541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542   *) ac_try_echo=$ac_try;;
29543 esac
29544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29545   (eval "$ac_link") 2>conftest.er1
29546   ac_status=$?
29547   grep -v '^ *+' conftest.er1 >conftest.err
29548   rm -f conftest.er1
29549   cat conftest.err >&5
29550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29551   (exit $ac_status); } && {
29552          test -z "$ac_c_werror_flag" ||
29553          test ! -s conftest.err
29554        } && test -s conftest$ac_exeext &&
29555        $as_test_x conftest$ac_exeext; then
29556   ac_cv_lib_gdk_gdk_im_open=yes
29557 else
29558   echo "$as_me: failed program was:" >&5
29559 sed 's/^/| /' conftest.$ac_ext >&5
29560
29561         ac_cv_lib_gdk_gdk_im_open=no
29562 fi
29563
29564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29565       conftest$ac_exeext conftest.$ac_ext
29566 LIBS=$ac_check_lib_save_LIBS
29567 fi
29568 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
29569 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
29570 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
29571   cat >>confdefs.h <<\_ACEOF
29572 #define HAVE_XIM 1
29573 _ACEOF
29574
29575 fi
29576
29577
29578                                     if test "$USE_DARWIN" != 1; then
29579
29580 for ac_func in poll
29581 do
29582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29586   echo $ECHO_N "(cached) $ECHO_C" >&6
29587 else
29588   cat >conftest.$ac_ext <<_ACEOF
29589 /* confdefs.h.  */
29590 _ACEOF
29591 cat confdefs.h >>conftest.$ac_ext
29592 cat >>conftest.$ac_ext <<_ACEOF
29593 /* end confdefs.h.  */
29594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29596 #define $ac_func innocuous_$ac_func
29597
29598 /* System header to define __stub macros and hopefully few prototypes,
29599     which can conflict with char $ac_func (); below.
29600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29601     <limits.h> exists even on freestanding compilers.  */
29602
29603 #ifdef __STDC__
29604 # include <limits.h>
29605 #else
29606 # include <assert.h>
29607 #endif
29608
29609 #undef $ac_func
29610
29611 /* Override any GCC internal prototype to avoid an error.
29612    Use char because int might match the return type of a GCC
29613    builtin and then its argument prototype would still apply.  */
29614 #ifdef __cplusplus
29615 extern "C"
29616 #endif
29617 char $ac_func ();
29618 /* The GNU C library defines this for functions which it implements
29619     to always fail with ENOSYS.  Some functions are actually named
29620     something starting with __ and the normal name is an alias.  */
29621 #if defined __stub_$ac_func || defined __stub___$ac_func
29622 choke me
29623 #endif
29624
29625 int
29626 main ()
29627 {
29628 return $ac_func ();
29629   ;
29630   return 0;
29631 }
29632 _ACEOF
29633 rm -f conftest.$ac_objext conftest$ac_exeext
29634 if { (ac_try="$ac_link"
29635 case "(($ac_try" in
29636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637   *) ac_try_echo=$ac_try;;
29638 esac
29639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640   (eval "$ac_link") 2>conftest.er1
29641   ac_status=$?
29642   grep -v '^ *+' conftest.er1 >conftest.err
29643   rm -f conftest.er1
29644   cat conftest.err >&5
29645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646   (exit $ac_status); } && {
29647          test -z "$ac_c_werror_flag" ||
29648          test ! -s conftest.err
29649        } && test -s conftest$ac_exeext &&
29650        $as_test_x conftest$ac_exeext; then
29651   eval "$as_ac_var=yes"
29652 else
29653   echo "$as_me: failed program was:" >&5
29654 sed 's/^/| /' conftest.$ac_ext >&5
29655
29656         eval "$as_ac_var=no"
29657 fi
29658
29659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29660       conftest$ac_exeext conftest.$ac_ext
29661 fi
29662 ac_res=`eval echo '${'$as_ac_var'}'`
29663                { echo "$as_me:$LINENO: result: $ac_res" >&5
29664 echo "${ECHO_T}$ac_res" >&6; }
29665 if test `eval echo '${'$as_ac_var'}'` = yes; then
29666   cat >>confdefs.h <<_ACEOF
29667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29668 _ACEOF
29669
29670 fi
29671 done
29672
29673             fi
29674         fi
29675
29676         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29677         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29678
29679         AFMINSTALL=afminstall
29680         TOOLKIT=GTK
29681         GUIDIST=GTK_DIST
29682
29683                 if test "$wxUSE_GPE" = "yes"; then
29684             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
29685 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
29686
29687   ac_find_libraries=
29688   for ac_dir in $SEARCH_LIB;
29689   do
29690     for ac_extension in a so sl dylib dll.a; do
29691       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29692         ac_find_libraries=$ac_dir
29693         break 2
29694       fi
29695     done
29696   done
29697
29698             if test "$ac_find_libraries" != "" ; then
29699
29700     if test "$ac_find_libraries" = "default location"; then
29701     ac_path_to_link=""
29702   else
29703     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29704     result=$?
29705     if test $result = 0; then
29706       ac_path_to_link=""
29707     else
29708       ac_path_to_link=" -L$ac_find_libraries"
29709     fi
29710   fi
29711
29712                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29713                 WXGPE=1
29714                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29715 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
29716             else
29717                 { echo "$as_me:$LINENO: result: not found" >&5
29718 echo "${ECHO_T}not found" >&6; }
29719             fi
29720
29721                                                                                                                     fi
29722     fi
29723
29724     if test "$wxUSE_MGL" = 1; then
29725        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29726 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
29727         if test "x$MGL_ROOT" = x ; then
29728             { echo "$as_me:$LINENO: result: not found" >&5
29729 echo "${ECHO_T}not found" >&6; }
29730             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29731 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29732    { (exit 1); exit 1; }; }
29733         else
29734             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29735 echo "${ECHO_T}$MGL_ROOT" >&6; }
29736         fi
29737
29738         { echo "$as_me:$LINENO: checking for libmgl location" >&5
29739 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
29740                                 case "${host}" in
29741             *-*-linux* )
29742                                           if test "x$wxUSE_SHARED" = xyes ; then
29743                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29744               else
29745                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29746               fi
29747               ;;
29748             *-pc-msdosdjgpp )
29749               mgl_os_candidates="dos32/dj2"
29750               ;;
29751             *)
29752               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29753 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29754    { (exit 1); exit 1; }; }
29755         esac
29756
29757         mgl_lib_type=""
29758         mgl_os=""
29759
29760         for mgl_os_i in $mgl_os_candidates ; do
29761             if test "x$mgl_os" = x ; then
29762                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29763                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29764                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29765                         mgl_lib_type=debug
29766                         mgl_os=$mgl_os_i
29767                     fi
29768                 fi
29769                 if test "x$mgl_lib_type" = x ; then
29770                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29771                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29772                         mgl_lib_type=release
29773                         mgl_os=$mgl_os_i
29774                     fi
29775                 fi
29776             fi
29777         done
29778
29779         if test "x$mgl_os" = x ; then
29780             { echo "$as_me:$LINENO: result: not found" >&5
29781 echo "${ECHO_T}not found" >&6; }
29782             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29783 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29784    { (exit 1); exit 1; }; }
29785         fi
29786         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29787 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
29788
29789         wxUSE_UNIVERSAL="yes"
29790
29791         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29792         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29793
29794         AFMINSTALL=afminstall
29795         TOOLKIT=MGL
29796         GUIDIST=MGL_DIST
29797     fi
29798
29799     if test "$wxUSE_DFB" = 1; then
29800
29801
29802 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29803         if test -n "$ac_tool_prefix"; then
29804   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29805 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29808 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29809   echo $ECHO_N "(cached) $ECHO_C" >&6
29810 else
29811   case $PKG_CONFIG in
29812   [\\/]* | ?:[\\/]*)
29813   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29814   ;;
29815   *)
29816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29817 for as_dir in $PATH
29818 do
29819   IFS=$as_save_IFS
29820   test -z "$as_dir" && as_dir=.
29821   for ac_exec_ext in '' $ac_executable_extensions; do
29822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29823     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29825     break 2
29826   fi
29827 done
29828 done
29829 IFS=$as_save_IFS
29830
29831   ;;
29832 esac
29833 fi
29834 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29835 if test -n "$PKG_CONFIG"; then
29836   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29837 echo "${ECHO_T}$PKG_CONFIG" >&6; }
29838 else
29839   { echo "$as_me:$LINENO: result: no" >&5
29840 echo "${ECHO_T}no" >&6; }
29841 fi
29842
29843
29844 fi
29845 if test -z "$ac_cv_path_PKG_CONFIG"; then
29846   ac_pt_PKG_CONFIG=$PKG_CONFIG
29847   # Extract the first word of "pkg-config", so it can be a program name with args.
29848 set dummy pkg-config; ac_word=$2
29849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29851 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29852   echo $ECHO_N "(cached) $ECHO_C" >&6
29853 else
29854   case $ac_pt_PKG_CONFIG in
29855   [\\/]* | ?:[\\/]*)
29856   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29857   ;;
29858   *)
29859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29860 for as_dir in $PATH
29861 do
29862   IFS=$as_save_IFS
29863   test -z "$as_dir" && as_dir=.
29864   for ac_exec_ext in '' $ac_executable_extensions; do
29865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29866     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29868     break 2
29869   fi
29870 done
29871 done
29872 IFS=$as_save_IFS
29873
29874   ;;
29875 esac
29876 fi
29877 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29878 if test -n "$ac_pt_PKG_CONFIG"; then
29879   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29880 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
29881 else
29882   { echo "$as_me:$LINENO: result: no" >&5
29883 echo "${ECHO_T}no" >&6; }
29884 fi
29885
29886   if test "x$ac_pt_PKG_CONFIG" = x; then
29887     PKG_CONFIG=""
29888   else
29889     case $cross_compiling:$ac_tool_warned in
29890 yes:)
29891 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29892 whose name does not start with the host triplet.  If you think this
29893 configuration is useful to you, please write to autoconf@gnu.org." >&5
29894 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29895 whose name does not start with the host triplet.  If you think this
29896 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29897 ac_tool_warned=yes ;;
29898 esac
29899     PKG_CONFIG=$ac_pt_PKG_CONFIG
29900   fi
29901 else
29902   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29903 fi
29904
29905 fi
29906 if test -n "$PKG_CONFIG"; then
29907         _pkg_min_version=0.9.0
29908         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29909 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
29910         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29911                 { echo "$as_me:$LINENO: result: yes" >&5
29912 echo "${ECHO_T}yes" >&6; }
29913         else
29914                 { echo "$as_me:$LINENO: result: no" >&5
29915 echo "${ECHO_T}no" >&6; }
29916                 PKG_CONFIG=""
29917         fi
29918
29919 fi
29920
29921
29922 pkg_failed=no
29923 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29924 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
29925
29926 if test -n "$PKG_CONFIG"; then
29927     if test -n "$DIRECTFB_CFLAGS"; then
29928         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29929     else
29930         if test -n "$PKG_CONFIG" && \
29931     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29932   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29933   ac_status=$?
29934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935   (exit $ac_status); }; then
29936   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
29937 else
29938   pkg_failed=yes
29939 fi
29940     fi
29941 else
29942         pkg_failed=untried
29943 fi
29944 if test -n "$PKG_CONFIG"; then
29945     if test -n "$DIRECTFB_LIBS"; then
29946         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29947     else
29948         if test -n "$PKG_CONFIG" && \
29949     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
29950   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
29951   ac_status=$?
29952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953   (exit $ac_status); }; then
29954   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
29955 else
29956   pkg_failed=yes
29957 fi
29958     fi
29959 else
29960         pkg_failed=untried
29961 fi
29962
29963
29964
29965 if test $pkg_failed = yes; then
29966
29967 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29968         _pkg_short_errors_supported=yes
29969 else
29970         _pkg_short_errors_supported=no
29971 fi
29972         if test $_pkg_short_errors_supported = yes; then
29973                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29974         else
29975                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
29976         fi
29977         # Put the nasty error message in config.log where it belongs
29978         echo "$DIRECTFB_PKG_ERRORS" >&5
29979
29980
29981                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29982 echo "$as_me: error: DirectFB not found." >&2;}
29983    { (exit 1); exit 1; }; }
29984
29985
29986 elif test $pkg_failed = untried; then
29987
29988                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29989 echo "$as_me: error: DirectFB not found." >&2;}
29990    { (exit 1); exit 1; }; }
29991
29992
29993 else
29994         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29995         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29996         { echo "$as_me:$LINENO: result: yes" >&5
29997 echo "${ECHO_T}yes" >&6; }
29998
29999                            wxUSE_UNIVERSAL="yes"
30000                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
30001                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
30002                            TOOLKIT=DFB
30003                            GUIDIST=DFB_DIST
30004
30005 fi
30006     fi
30007
30008     if test "$wxUSE_MICROWIN" = 1; then
30009         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
30010 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
30011         if test "x$MICROWINDOWS" = x ; then
30012             { echo "$as_me:$LINENO: result: not found" >&5
30013 echo "${ECHO_T}not found" >&6; }
30014             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
30015 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
30016    { (exit 1); exit 1; }; }
30017         else
30018             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
30019 echo "${ECHO_T}$MICROWINDOWS" >&6; }
30020         fi
30021
30022         if test -f $MICROWINDOWS/lib/libmwin.a; then
30023             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
30024 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
30025         else
30026             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
30027 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
30028    { (exit 1); exit 1; }; }
30029         fi
30030
30031         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
30032         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
30033
30034         wxUSE_UNIVERSAL="yes"
30035
30036         AFMINSTALL=afminstall
30037         TOOLKIT=MICROWIN
30038         GUIDIST=MICROWIN_DIST
30039
30040         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
30041     fi
30042
30043         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
30044                                 { echo "$as_me:$LINENO: checking for X" >&5
30045 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
30046
30047
30048 # Check whether --with-x was given.
30049 if test "${with_x+set}" = set; then
30050   withval=$with_x;
30051 fi
30052
30053 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
30054 if test "x$with_x" = xno; then
30055   # The user explicitly disabled X.
30056   have_x=disabled
30057 else
30058   case $x_includes,$x_libraries in #(
30059     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
30060 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
30061    { (exit 1); exit 1; }; };; #(
30062     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
30063   echo $ECHO_N "(cached) $ECHO_C" >&6
30064 else
30065   # One or both of the vars are not set, and there is no cached value.
30066 ac_x_includes=no ac_x_libraries=no
30067 rm -f -r conftest.dir
30068 if mkdir conftest.dir; then
30069   cd conftest.dir
30070   cat >Imakefile <<'_ACEOF'
30071 incroot:
30072         @echo incroot='${INCROOT}'
30073 usrlibdir:
30074         @echo usrlibdir='${USRLIBDIR}'
30075 libdir:
30076         @echo libdir='${LIBDIR}'
30077 _ACEOF
30078   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
30079     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
30080     for ac_var in incroot usrlibdir libdir; do
30081       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
30082     done
30083     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
30084     for ac_extension in a so sl; do
30085       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
30086          test -f "$ac_im_libdir/libX11.$ac_extension"; then
30087         ac_im_usrlibdir=$ac_im_libdir; break
30088       fi
30089     done
30090     # Screen out bogus values from the imake configuration.  They are
30091     # bogus both because they are the default anyway, and because
30092     # using them would break gcc on systems where it needs fixed includes.
30093     case $ac_im_incroot in
30094         /usr/include) ac_x_includes= ;;
30095         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
30096     esac
30097     case $ac_im_usrlibdir in
30098         /usr/lib | /lib) ;;
30099         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
30100     esac
30101   fi
30102   cd ..
30103   rm -f -r conftest.dir
30104 fi
30105
30106 # Standard set of common directories for X headers.
30107 # Check X11 before X11Rn because it is often a symlink to the current release.
30108 ac_x_header_dirs='
30109 /usr/X11/include
30110 /usr/X11R6/include
30111 /usr/X11R5/include
30112 /usr/X11R4/include
30113
30114 /usr/include/X11
30115 /usr/include/X11R6
30116 /usr/include/X11R5
30117 /usr/include/X11R4
30118
30119 /usr/local/X11/include
30120 /usr/local/X11R6/include
30121 /usr/local/X11R5/include
30122 /usr/local/X11R4/include
30123
30124 /usr/local/include/X11
30125 /usr/local/include/X11R6
30126 /usr/local/include/X11R5
30127 /usr/local/include/X11R4
30128
30129 /usr/X386/include
30130 /usr/x386/include
30131 /usr/XFree86/include/X11
30132
30133 /usr/include
30134 /usr/local/include
30135 /usr/unsupported/include
30136 /usr/athena/include
30137 /usr/local/x11r5/include
30138 /usr/lpp/Xamples/include
30139
30140 /usr/openwin/include
30141 /usr/openwin/share/include'
30142
30143 if test "$ac_x_includes" = no; then
30144   # Guess where to find include files, by looking for Xlib.h.
30145   # First, try using that file with no special directory specified.
30146   cat >conftest.$ac_ext <<_ACEOF
30147 /* confdefs.h.  */
30148 _ACEOF
30149 cat confdefs.h >>conftest.$ac_ext
30150 cat >>conftest.$ac_ext <<_ACEOF
30151 /* end confdefs.h.  */
30152 #include <X11/Xlib.h>
30153 _ACEOF
30154 if { (ac_try="$ac_cpp conftest.$ac_ext"
30155 case "(($ac_try" in
30156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30157   *) ac_try_echo=$ac_try;;
30158 esac
30159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30160   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30161   ac_status=$?
30162   grep -v '^ *+' conftest.er1 >conftest.err
30163   rm -f conftest.er1
30164   cat conftest.err >&5
30165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166   (exit $ac_status); } >/dev/null && {
30167          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30168          test ! -s conftest.err
30169        }; then
30170   # We can compile using X headers with no special include directory.
30171 ac_x_includes=
30172 else
30173   echo "$as_me: failed program was:" >&5
30174 sed 's/^/| /' conftest.$ac_ext >&5
30175
30176   for ac_dir in $ac_x_header_dirs; do
30177   if test -r "$ac_dir/X11/Xlib.h"; then
30178     ac_x_includes=$ac_dir
30179     break
30180   fi
30181 done
30182 fi
30183
30184 rm -f conftest.err conftest.$ac_ext
30185 fi # $ac_x_includes = no
30186
30187 if test "$ac_x_libraries" = no; then
30188   # Check for the libraries.
30189   # See if we find them without any special options.
30190   # Don't add to $LIBS permanently.
30191   ac_save_LIBS=$LIBS
30192   LIBS="-lX11 $LIBS"
30193   cat >conftest.$ac_ext <<_ACEOF
30194 /* confdefs.h.  */
30195 _ACEOF
30196 cat confdefs.h >>conftest.$ac_ext
30197 cat >>conftest.$ac_ext <<_ACEOF
30198 /* end confdefs.h.  */
30199 #include <X11/Xlib.h>
30200 int
30201 main ()
30202 {
30203 XrmInitialize ()
30204   ;
30205   return 0;
30206 }
30207 _ACEOF
30208 rm -f conftest.$ac_objext conftest$ac_exeext
30209 if { (ac_try="$ac_link"
30210 case "(($ac_try" in
30211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30212   *) ac_try_echo=$ac_try;;
30213 esac
30214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30215   (eval "$ac_link") 2>conftest.er1
30216   ac_status=$?
30217   grep -v '^ *+' conftest.er1 >conftest.err
30218   rm -f conftest.er1
30219   cat conftest.err >&5
30220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221   (exit $ac_status); } && {
30222          test -z "$ac_c_werror_flag" ||
30223          test ! -s conftest.err
30224        } && test -s conftest$ac_exeext &&
30225        $as_test_x conftest$ac_exeext; then
30226   LIBS=$ac_save_LIBS
30227 # We can link X programs with no special library path.
30228 ac_x_libraries=
30229 else
30230   echo "$as_me: failed program was:" >&5
30231 sed 's/^/| /' conftest.$ac_ext >&5
30232
30233         LIBS=$ac_save_LIBS
30234 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
30235 do
30236   # Don't even attempt the hair of trying to link an X program!
30237   for ac_extension in a so sl; do
30238     if test -r "$ac_dir/libX11.$ac_extension"; then
30239       ac_x_libraries=$ac_dir
30240       break 2
30241     fi
30242   done
30243 done
30244 fi
30245
30246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30247       conftest$ac_exeext conftest.$ac_ext
30248 fi # $ac_x_libraries = no
30249
30250 case $ac_x_includes,$ac_x_libraries in #(
30251   no,* | *,no | *\'*)
30252     # Didn't find X, or a directory has "'" in its name.
30253     ac_cv_have_x="have_x=no";; #(
30254   *)
30255     # Record where we found X for the cache.
30256     ac_cv_have_x="have_x=yes\
30257         ac_x_includes='$ac_x_includes'\
30258         ac_x_libraries='$ac_x_libraries'"
30259 esac
30260 fi
30261 ;; #(
30262     *) have_x=yes;;
30263   esac
30264   eval "$ac_cv_have_x"
30265 fi # $with_x != no
30266
30267 if test "$have_x" != yes; then
30268   { echo "$as_me:$LINENO: result: $have_x" >&5
30269 echo "${ECHO_T}$have_x" >&6; }
30270   no_x=yes
30271 else
30272   # If each of the values was on the command line, it overrides each guess.
30273   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
30274   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
30275   # Update the cache value to reflect the command line values.
30276   ac_cv_have_x="have_x=yes\
30277         ac_x_includes='$x_includes'\
30278         ac_x_libraries='$x_libraries'"
30279   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
30280 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
30281 fi
30282
30283 if test "$no_x" = yes; then
30284   # Not all programs may use this symbol, but it does not hurt to define it.
30285
30286 cat >>confdefs.h <<\_ACEOF
30287 #define X_DISPLAY_MISSING 1
30288 _ACEOF
30289
30290   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
30291 else
30292   if test -n "$x_includes"; then
30293     X_CFLAGS="$X_CFLAGS -I$x_includes"
30294   fi
30295
30296   # It would also be nice to do this for all -L options, not just this one.
30297   if test -n "$x_libraries"; then
30298     X_LIBS="$X_LIBS -L$x_libraries"
30299     # For Solaris; some versions of Sun CC require a space after -R and
30300     # others require no space.  Words are not sufficient . . . .
30301     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
30302 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
30303     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
30304     ac_xsave_c_werror_flag=$ac_c_werror_flag
30305     ac_c_werror_flag=yes
30306     cat >conftest.$ac_ext <<_ACEOF
30307 /* confdefs.h.  */
30308 _ACEOF
30309 cat confdefs.h >>conftest.$ac_ext
30310 cat >>conftest.$ac_ext <<_ACEOF
30311 /* end confdefs.h.  */
30312
30313 int
30314 main ()
30315 {
30316
30317   ;
30318   return 0;
30319 }
30320 _ACEOF
30321 rm -f conftest.$ac_objext conftest$ac_exeext
30322 if { (ac_try="$ac_link"
30323 case "(($ac_try" in
30324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30325   *) ac_try_echo=$ac_try;;
30326 esac
30327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30328   (eval "$ac_link") 2>conftest.er1
30329   ac_status=$?
30330   grep -v '^ *+' conftest.er1 >conftest.err
30331   rm -f conftest.er1
30332   cat conftest.err >&5
30333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334   (exit $ac_status); } && {
30335          test -z "$ac_c_werror_flag" ||
30336          test ! -s conftest.err
30337        } && test -s conftest$ac_exeext &&
30338        $as_test_x conftest$ac_exeext; then
30339   { echo "$as_me:$LINENO: result: no" >&5
30340 echo "${ECHO_T}no" >&6; }
30341        X_LIBS="$X_LIBS -R$x_libraries"
30342 else
30343   echo "$as_me: failed program was:" >&5
30344 sed 's/^/| /' conftest.$ac_ext >&5
30345
30346         LIBS="$ac_xsave_LIBS -R $x_libraries"
30347        cat >conftest.$ac_ext <<_ACEOF
30348 /* confdefs.h.  */
30349 _ACEOF
30350 cat confdefs.h >>conftest.$ac_ext
30351 cat >>conftest.$ac_ext <<_ACEOF
30352 /* end confdefs.h.  */
30353
30354 int
30355 main ()
30356 {
30357
30358   ;
30359   return 0;
30360 }
30361 _ACEOF
30362 rm -f conftest.$ac_objext conftest$ac_exeext
30363 if { (ac_try="$ac_link"
30364 case "(($ac_try" in
30365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30366   *) ac_try_echo=$ac_try;;
30367 esac
30368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30369   (eval "$ac_link") 2>conftest.er1
30370   ac_status=$?
30371   grep -v '^ *+' conftest.er1 >conftest.err
30372   rm -f conftest.er1
30373   cat conftest.err >&5
30374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375   (exit $ac_status); } && {
30376          test -z "$ac_c_werror_flag" ||
30377          test ! -s conftest.err
30378        } && test -s conftest$ac_exeext &&
30379        $as_test_x conftest$ac_exeext; then
30380   { echo "$as_me:$LINENO: result: yes" >&5
30381 echo "${ECHO_T}yes" >&6; }
30382           X_LIBS="$X_LIBS -R $x_libraries"
30383 else
30384   echo "$as_me: failed program was:" >&5
30385 sed 's/^/| /' conftest.$ac_ext >&5
30386
30387         { echo "$as_me:$LINENO: result: neither works" >&5
30388 echo "${ECHO_T}neither works" >&6; }
30389 fi
30390
30391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30392       conftest$ac_exeext conftest.$ac_ext
30393 fi
30394
30395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30396       conftest$ac_exeext conftest.$ac_ext
30397     ac_c_werror_flag=$ac_xsave_c_werror_flag
30398     LIBS=$ac_xsave_LIBS
30399   fi
30400
30401   # Check for system-dependent libraries X programs must link with.
30402   # Do this before checking for the system-independent R6 libraries
30403   # (-lICE), since we may need -lsocket or whatever for X linking.
30404
30405   if test "$ISC" = yes; then
30406     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30407   else
30408     # Martyn Johnson says this is needed for Ultrix, if the X
30409     # libraries were built with DECnet support.  And Karl Berry says
30410     # the Alpha needs dnet_stub (dnet does not exist).
30411     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30412     cat >conftest.$ac_ext <<_ACEOF
30413 /* confdefs.h.  */
30414 _ACEOF
30415 cat confdefs.h >>conftest.$ac_ext
30416 cat >>conftest.$ac_ext <<_ACEOF
30417 /* end confdefs.h.  */
30418
30419 /* Override any GCC internal prototype to avoid an error.
30420    Use char because int might match the return type of a GCC
30421    builtin and then its argument prototype would still apply.  */
30422 #ifdef __cplusplus
30423 extern "C"
30424 #endif
30425 char XOpenDisplay ();
30426 int
30427 main ()
30428 {
30429 return XOpenDisplay ();
30430   ;
30431   return 0;
30432 }
30433 _ACEOF
30434 rm -f conftest.$ac_objext conftest$ac_exeext
30435 if { (ac_try="$ac_link"
30436 case "(($ac_try" in
30437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30438   *) ac_try_echo=$ac_try;;
30439 esac
30440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30441   (eval "$ac_link") 2>conftest.er1
30442   ac_status=$?
30443   grep -v '^ *+' conftest.er1 >conftest.err
30444   rm -f conftest.er1
30445   cat conftest.err >&5
30446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30447   (exit $ac_status); } && {
30448          test -z "$ac_c_werror_flag" ||
30449          test ! -s conftest.err
30450        } && test -s conftest$ac_exeext &&
30451        $as_test_x conftest$ac_exeext; then
30452   :
30453 else
30454   echo "$as_me: failed program was:" >&5
30455 sed 's/^/| /' conftest.$ac_ext >&5
30456
30457         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30458 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30459 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30460   echo $ECHO_N "(cached) $ECHO_C" >&6
30461 else
30462   ac_check_lib_save_LIBS=$LIBS
30463 LIBS="-ldnet  $LIBS"
30464 cat >conftest.$ac_ext <<_ACEOF
30465 /* confdefs.h.  */
30466 _ACEOF
30467 cat confdefs.h >>conftest.$ac_ext
30468 cat >>conftest.$ac_ext <<_ACEOF
30469 /* end confdefs.h.  */
30470
30471 /* Override any GCC internal prototype to avoid an error.
30472    Use char because int might match the return type of a GCC
30473    builtin and then its argument prototype would still apply.  */
30474 #ifdef __cplusplus
30475 extern "C"
30476 #endif
30477 char dnet_ntoa ();
30478 int
30479 main ()
30480 {
30481 return dnet_ntoa ();
30482   ;
30483   return 0;
30484 }
30485 _ACEOF
30486 rm -f conftest.$ac_objext conftest$ac_exeext
30487 if { (ac_try="$ac_link"
30488 case "(($ac_try" in
30489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30490   *) ac_try_echo=$ac_try;;
30491 esac
30492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30493   (eval "$ac_link") 2>conftest.er1
30494   ac_status=$?
30495   grep -v '^ *+' conftest.er1 >conftest.err
30496   rm -f conftest.er1
30497   cat conftest.err >&5
30498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499   (exit $ac_status); } && {
30500          test -z "$ac_c_werror_flag" ||
30501          test ! -s conftest.err
30502        } && test -s conftest$ac_exeext &&
30503        $as_test_x conftest$ac_exeext; then
30504   ac_cv_lib_dnet_dnet_ntoa=yes
30505 else
30506   echo "$as_me: failed program was:" >&5
30507 sed 's/^/| /' conftest.$ac_ext >&5
30508
30509         ac_cv_lib_dnet_dnet_ntoa=no
30510 fi
30511
30512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30513       conftest$ac_exeext conftest.$ac_ext
30514 LIBS=$ac_check_lib_save_LIBS
30515 fi
30516 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30517 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30518 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30519   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30520 fi
30521
30522     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30523       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30524 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30525 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30526   echo $ECHO_N "(cached) $ECHO_C" >&6
30527 else
30528   ac_check_lib_save_LIBS=$LIBS
30529 LIBS="-ldnet_stub  $LIBS"
30530 cat >conftest.$ac_ext <<_ACEOF
30531 /* confdefs.h.  */
30532 _ACEOF
30533 cat confdefs.h >>conftest.$ac_ext
30534 cat >>conftest.$ac_ext <<_ACEOF
30535 /* end confdefs.h.  */
30536
30537 /* Override any GCC internal prototype to avoid an error.
30538    Use char because int might match the return type of a GCC
30539    builtin and then its argument prototype would still apply.  */
30540 #ifdef __cplusplus
30541 extern "C"
30542 #endif
30543 char dnet_ntoa ();
30544 int
30545 main ()
30546 {
30547 return dnet_ntoa ();
30548   ;
30549   return 0;
30550 }
30551 _ACEOF
30552 rm -f conftest.$ac_objext conftest$ac_exeext
30553 if { (ac_try="$ac_link"
30554 case "(($ac_try" in
30555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30556   *) ac_try_echo=$ac_try;;
30557 esac
30558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30559   (eval "$ac_link") 2>conftest.er1
30560   ac_status=$?
30561   grep -v '^ *+' conftest.er1 >conftest.err
30562   rm -f conftest.er1
30563   cat conftest.err >&5
30564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565   (exit $ac_status); } && {
30566          test -z "$ac_c_werror_flag" ||
30567          test ! -s conftest.err
30568        } && test -s conftest$ac_exeext &&
30569        $as_test_x conftest$ac_exeext; then
30570   ac_cv_lib_dnet_stub_dnet_ntoa=yes
30571 else
30572   echo "$as_me: failed program was:" >&5
30573 sed 's/^/| /' conftest.$ac_ext >&5
30574
30575         ac_cv_lib_dnet_stub_dnet_ntoa=no
30576 fi
30577
30578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30579       conftest$ac_exeext conftest.$ac_ext
30580 LIBS=$ac_check_lib_save_LIBS
30581 fi
30582 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30583 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30584 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30585   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30586 fi
30587
30588     fi
30589 fi
30590
30591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30592       conftest$ac_exeext conftest.$ac_ext
30593     LIBS="$ac_xsave_LIBS"
30594
30595     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30596     # to get the SysV transport functions.
30597     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30598     # needs -lnsl.
30599     # The nsl library prevents programs from opening the X display
30600     # on Irix 5.2, according to T.E. Dickey.
30601     # The functions gethostbyname, getservbyname, and inet_addr are
30602     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30603     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30604 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30605 if test "${ac_cv_func_gethostbyname+set}" = set; then
30606   echo $ECHO_N "(cached) $ECHO_C" >&6
30607 else
30608   cat >conftest.$ac_ext <<_ACEOF
30609 /* confdefs.h.  */
30610 _ACEOF
30611 cat confdefs.h >>conftest.$ac_ext
30612 cat >>conftest.$ac_ext <<_ACEOF
30613 /* end confdefs.h.  */
30614 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30616 #define gethostbyname innocuous_gethostbyname
30617
30618 /* System header to define __stub macros and hopefully few prototypes,
30619     which can conflict with char gethostbyname (); below.
30620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30621     <limits.h> exists even on freestanding compilers.  */
30622
30623 #ifdef __STDC__
30624 # include <limits.h>
30625 #else
30626 # include <assert.h>
30627 #endif
30628
30629 #undef gethostbyname
30630
30631 /* Override any GCC internal prototype to avoid an error.
30632    Use char because int might match the return type of a GCC
30633    builtin and then its argument prototype would still apply.  */
30634 #ifdef __cplusplus
30635 extern "C"
30636 #endif
30637 char gethostbyname ();
30638 /* The GNU C library defines this for functions which it implements
30639     to always fail with ENOSYS.  Some functions are actually named
30640     something starting with __ and the normal name is an alias.  */
30641 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30642 choke me
30643 #endif
30644
30645 int
30646 main ()
30647 {
30648 return gethostbyname ();
30649   ;
30650   return 0;
30651 }
30652 _ACEOF
30653 rm -f conftest.$ac_objext conftest$ac_exeext
30654 if { (ac_try="$ac_link"
30655 case "(($ac_try" in
30656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30657   *) ac_try_echo=$ac_try;;
30658 esac
30659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30660   (eval "$ac_link") 2>conftest.er1
30661   ac_status=$?
30662   grep -v '^ *+' conftest.er1 >conftest.err
30663   rm -f conftest.er1
30664   cat conftest.err >&5
30665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30666   (exit $ac_status); } && {
30667          test -z "$ac_c_werror_flag" ||
30668          test ! -s conftest.err
30669        } && test -s conftest$ac_exeext &&
30670        $as_test_x conftest$ac_exeext; then
30671   ac_cv_func_gethostbyname=yes
30672 else
30673   echo "$as_me: failed program was:" >&5
30674 sed 's/^/| /' conftest.$ac_ext >&5
30675
30676         ac_cv_func_gethostbyname=no
30677 fi
30678
30679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30680       conftest$ac_exeext conftest.$ac_ext
30681 fi
30682 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30683 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30684
30685     if test $ac_cv_func_gethostbyname = no; then
30686       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30687 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30688 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30689   echo $ECHO_N "(cached) $ECHO_C" >&6
30690 else
30691   ac_check_lib_save_LIBS=$LIBS
30692 LIBS="-lnsl  $LIBS"
30693 cat >conftest.$ac_ext <<_ACEOF
30694 /* confdefs.h.  */
30695 _ACEOF
30696 cat confdefs.h >>conftest.$ac_ext
30697 cat >>conftest.$ac_ext <<_ACEOF
30698 /* end confdefs.h.  */
30699
30700 /* Override any GCC internal prototype to avoid an error.
30701    Use char because int might match the return type of a GCC
30702    builtin and then its argument prototype would still apply.  */
30703 #ifdef __cplusplus
30704 extern "C"
30705 #endif
30706 char gethostbyname ();
30707 int
30708 main ()
30709 {
30710 return gethostbyname ();
30711   ;
30712   return 0;
30713 }
30714 _ACEOF
30715 rm -f conftest.$ac_objext conftest$ac_exeext
30716 if { (ac_try="$ac_link"
30717 case "(($ac_try" in
30718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30719   *) ac_try_echo=$ac_try;;
30720 esac
30721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30722   (eval "$ac_link") 2>conftest.er1
30723   ac_status=$?
30724   grep -v '^ *+' conftest.er1 >conftest.err
30725   rm -f conftest.er1
30726   cat conftest.err >&5
30727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728   (exit $ac_status); } && {
30729          test -z "$ac_c_werror_flag" ||
30730          test ! -s conftest.err
30731        } && test -s conftest$ac_exeext &&
30732        $as_test_x conftest$ac_exeext; then
30733   ac_cv_lib_nsl_gethostbyname=yes
30734 else
30735   echo "$as_me: failed program was:" >&5
30736 sed 's/^/| /' conftest.$ac_ext >&5
30737
30738         ac_cv_lib_nsl_gethostbyname=no
30739 fi
30740
30741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30742       conftest$ac_exeext conftest.$ac_ext
30743 LIBS=$ac_check_lib_save_LIBS
30744 fi
30745 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30746 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30747 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30748   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30749 fi
30750
30751       if test $ac_cv_lib_nsl_gethostbyname = no; then
30752         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30753 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30754 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30755   echo $ECHO_N "(cached) $ECHO_C" >&6
30756 else
30757   ac_check_lib_save_LIBS=$LIBS
30758 LIBS="-lbsd  $LIBS"
30759 cat >conftest.$ac_ext <<_ACEOF
30760 /* confdefs.h.  */
30761 _ACEOF
30762 cat confdefs.h >>conftest.$ac_ext
30763 cat >>conftest.$ac_ext <<_ACEOF
30764 /* end confdefs.h.  */
30765
30766 /* Override any GCC internal prototype to avoid an error.
30767    Use char because int might match the return type of a GCC
30768    builtin and then its argument prototype would still apply.  */
30769 #ifdef __cplusplus
30770 extern "C"
30771 #endif
30772 char gethostbyname ();
30773 int
30774 main ()
30775 {
30776 return gethostbyname ();
30777   ;
30778   return 0;
30779 }
30780 _ACEOF
30781 rm -f conftest.$ac_objext conftest$ac_exeext
30782 if { (ac_try="$ac_link"
30783 case "(($ac_try" in
30784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30785   *) ac_try_echo=$ac_try;;
30786 esac
30787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30788   (eval "$ac_link") 2>conftest.er1
30789   ac_status=$?
30790   grep -v '^ *+' conftest.er1 >conftest.err
30791   rm -f conftest.er1
30792   cat conftest.err >&5
30793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794   (exit $ac_status); } && {
30795          test -z "$ac_c_werror_flag" ||
30796          test ! -s conftest.err
30797        } && test -s conftest$ac_exeext &&
30798        $as_test_x conftest$ac_exeext; then
30799   ac_cv_lib_bsd_gethostbyname=yes
30800 else
30801   echo "$as_me: failed program was:" >&5
30802 sed 's/^/| /' conftest.$ac_ext >&5
30803
30804         ac_cv_lib_bsd_gethostbyname=no
30805 fi
30806
30807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30808       conftest$ac_exeext conftest.$ac_ext
30809 LIBS=$ac_check_lib_save_LIBS
30810 fi
30811 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30812 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30813 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30814   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30815 fi
30816
30817       fi
30818     fi
30819
30820     # lieder@skyler.mavd.honeywell.com says without -lsocket,
30821     # socket/setsockopt and other routines are undefined under SCO ODT
30822     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30823     # on later versions), says Simon Leinen: it contains gethostby*
30824     # variants that don't use the name server (or something).  -lsocket
30825     # must be given before -lnsl if both are needed.  We assume that
30826     # if connect needs -lnsl, so does gethostbyname.
30827     { echo "$as_me:$LINENO: checking for connect" >&5
30828 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30829 if test "${ac_cv_func_connect+set}" = set; then
30830   echo $ECHO_N "(cached) $ECHO_C" >&6
30831 else
30832   cat >conftest.$ac_ext <<_ACEOF
30833 /* confdefs.h.  */
30834 _ACEOF
30835 cat confdefs.h >>conftest.$ac_ext
30836 cat >>conftest.$ac_ext <<_ACEOF
30837 /* end confdefs.h.  */
30838 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30840 #define connect innocuous_connect
30841
30842 /* System header to define __stub macros and hopefully few prototypes,
30843     which can conflict with char connect (); below.
30844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30845     <limits.h> exists even on freestanding compilers.  */
30846
30847 #ifdef __STDC__
30848 # include <limits.h>
30849 #else
30850 # include <assert.h>
30851 #endif
30852
30853 #undef connect
30854
30855 /* Override any GCC internal prototype to avoid an error.
30856    Use char because int might match the return type of a GCC
30857    builtin and then its argument prototype would still apply.  */
30858 #ifdef __cplusplus
30859 extern "C"
30860 #endif
30861 char connect ();
30862 /* The GNU C library defines this for functions which it implements
30863     to always fail with ENOSYS.  Some functions are actually named
30864     something starting with __ and the normal name is an alias.  */
30865 #if defined __stub_connect || defined __stub___connect
30866 choke me
30867 #endif
30868
30869 int
30870 main ()
30871 {
30872 return connect ();
30873   ;
30874   return 0;
30875 }
30876 _ACEOF
30877 rm -f conftest.$ac_objext conftest$ac_exeext
30878 if { (ac_try="$ac_link"
30879 case "(($ac_try" in
30880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30881   *) ac_try_echo=$ac_try;;
30882 esac
30883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30884   (eval "$ac_link") 2>conftest.er1
30885   ac_status=$?
30886   grep -v '^ *+' conftest.er1 >conftest.err
30887   rm -f conftest.er1
30888   cat conftest.err >&5
30889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890   (exit $ac_status); } && {
30891          test -z "$ac_c_werror_flag" ||
30892          test ! -s conftest.err
30893        } && test -s conftest$ac_exeext &&
30894        $as_test_x conftest$ac_exeext; then
30895   ac_cv_func_connect=yes
30896 else
30897   echo "$as_me: failed program was:" >&5
30898 sed 's/^/| /' conftest.$ac_ext >&5
30899
30900         ac_cv_func_connect=no
30901 fi
30902
30903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30904       conftest$ac_exeext conftest.$ac_ext
30905 fi
30906 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30907 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30908
30909     if test $ac_cv_func_connect = no; then
30910       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30911 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30912 if test "${ac_cv_lib_socket_connect+set}" = set; then
30913   echo $ECHO_N "(cached) $ECHO_C" >&6
30914 else
30915   ac_check_lib_save_LIBS=$LIBS
30916 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30917 cat >conftest.$ac_ext <<_ACEOF
30918 /* confdefs.h.  */
30919 _ACEOF
30920 cat confdefs.h >>conftest.$ac_ext
30921 cat >>conftest.$ac_ext <<_ACEOF
30922 /* end confdefs.h.  */
30923
30924 /* Override any GCC internal prototype to avoid an error.
30925    Use char because int might match the return type of a GCC
30926    builtin and then its argument prototype would still apply.  */
30927 #ifdef __cplusplus
30928 extern "C"
30929 #endif
30930 char connect ();
30931 int
30932 main ()
30933 {
30934 return connect ();
30935   ;
30936   return 0;
30937 }
30938 _ACEOF
30939 rm -f conftest.$ac_objext conftest$ac_exeext
30940 if { (ac_try="$ac_link"
30941 case "(($ac_try" in
30942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943   *) ac_try_echo=$ac_try;;
30944 esac
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946   (eval "$ac_link") 2>conftest.er1
30947   ac_status=$?
30948   grep -v '^ *+' conftest.er1 >conftest.err
30949   rm -f conftest.er1
30950   cat conftest.err >&5
30951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952   (exit $ac_status); } && {
30953          test -z "$ac_c_werror_flag" ||
30954          test ! -s conftest.err
30955        } && test -s conftest$ac_exeext &&
30956        $as_test_x conftest$ac_exeext; then
30957   ac_cv_lib_socket_connect=yes
30958 else
30959   echo "$as_me: failed program was:" >&5
30960 sed 's/^/| /' conftest.$ac_ext >&5
30961
30962         ac_cv_lib_socket_connect=no
30963 fi
30964
30965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30966       conftest$ac_exeext conftest.$ac_ext
30967 LIBS=$ac_check_lib_save_LIBS
30968 fi
30969 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30970 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30971 if test $ac_cv_lib_socket_connect = yes; then
30972   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30973 fi
30974
30975     fi
30976
30977     # Guillermo Gomez says -lposix is necessary on A/UX.
30978     { echo "$as_me:$LINENO: checking for remove" >&5
30979 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30980 if test "${ac_cv_func_remove+set}" = set; then
30981   echo $ECHO_N "(cached) $ECHO_C" >&6
30982 else
30983   cat >conftest.$ac_ext <<_ACEOF
30984 /* confdefs.h.  */
30985 _ACEOF
30986 cat confdefs.h >>conftest.$ac_ext
30987 cat >>conftest.$ac_ext <<_ACEOF
30988 /* end confdefs.h.  */
30989 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30991 #define remove innocuous_remove
30992
30993 /* System header to define __stub macros and hopefully few prototypes,
30994     which can conflict with char remove (); below.
30995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30996     <limits.h> exists even on freestanding compilers.  */
30997
30998 #ifdef __STDC__
30999 # include <limits.h>
31000 #else
31001 # include <assert.h>
31002 #endif
31003
31004 #undef remove
31005
31006 /* Override any GCC internal prototype to avoid an error.
31007    Use char because int might match the return type of a GCC
31008    builtin and then its argument prototype would still apply.  */
31009 #ifdef __cplusplus
31010 extern "C"
31011 #endif
31012 char remove ();
31013 /* The GNU C library defines this for functions which it implements
31014     to always fail with ENOSYS.  Some functions are actually named
31015     something starting with __ and the normal name is an alias.  */
31016 #if defined __stub_remove || defined __stub___remove
31017 choke me
31018 #endif
31019
31020 int
31021 main ()
31022 {
31023 return remove ();
31024   ;
31025   return 0;
31026 }
31027 _ACEOF
31028 rm -f conftest.$ac_objext conftest$ac_exeext
31029 if { (ac_try="$ac_link"
31030 case "(($ac_try" in
31031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31032   *) ac_try_echo=$ac_try;;
31033 esac
31034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31035   (eval "$ac_link") 2>conftest.er1
31036   ac_status=$?
31037   grep -v '^ *+' conftest.er1 >conftest.err
31038   rm -f conftest.er1
31039   cat conftest.err >&5
31040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041   (exit $ac_status); } && {
31042          test -z "$ac_c_werror_flag" ||
31043          test ! -s conftest.err
31044        } && test -s conftest$ac_exeext &&
31045        $as_test_x conftest$ac_exeext; then
31046   ac_cv_func_remove=yes
31047 else
31048   echo "$as_me: failed program was:" >&5
31049 sed 's/^/| /' conftest.$ac_ext >&5
31050
31051         ac_cv_func_remove=no
31052 fi
31053
31054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31055       conftest$ac_exeext conftest.$ac_ext
31056 fi
31057 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
31058 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
31059
31060     if test $ac_cv_func_remove = no; then
31061       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
31062 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
31063 if test "${ac_cv_lib_posix_remove+set}" = set; then
31064   echo $ECHO_N "(cached) $ECHO_C" >&6
31065 else
31066   ac_check_lib_save_LIBS=$LIBS
31067 LIBS="-lposix  $LIBS"
31068 cat >conftest.$ac_ext <<_ACEOF
31069 /* confdefs.h.  */
31070 _ACEOF
31071 cat confdefs.h >>conftest.$ac_ext
31072 cat >>conftest.$ac_ext <<_ACEOF
31073 /* end confdefs.h.  */
31074
31075 /* Override any GCC internal prototype to avoid an error.
31076    Use char because int might match the return type of a GCC
31077    builtin and then its argument prototype would still apply.  */
31078 #ifdef __cplusplus
31079 extern "C"
31080 #endif
31081 char remove ();
31082 int
31083 main ()
31084 {
31085 return remove ();
31086   ;
31087   return 0;
31088 }
31089 _ACEOF
31090 rm -f conftest.$ac_objext conftest$ac_exeext
31091 if { (ac_try="$ac_link"
31092 case "(($ac_try" in
31093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31094   *) ac_try_echo=$ac_try;;
31095 esac
31096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31097   (eval "$ac_link") 2>conftest.er1
31098   ac_status=$?
31099   grep -v '^ *+' conftest.er1 >conftest.err
31100   rm -f conftest.er1
31101   cat conftest.err >&5
31102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103   (exit $ac_status); } && {
31104          test -z "$ac_c_werror_flag" ||
31105          test ! -s conftest.err
31106        } && test -s conftest$ac_exeext &&
31107        $as_test_x conftest$ac_exeext; then
31108   ac_cv_lib_posix_remove=yes
31109 else
31110   echo "$as_me: failed program was:" >&5
31111 sed 's/^/| /' conftest.$ac_ext >&5
31112
31113         ac_cv_lib_posix_remove=no
31114 fi
31115
31116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31117       conftest$ac_exeext conftest.$ac_ext
31118 LIBS=$ac_check_lib_save_LIBS
31119 fi
31120 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
31121 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
31122 if test $ac_cv_lib_posix_remove = yes; then
31123   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
31124 fi
31125
31126     fi
31127
31128     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
31129     { echo "$as_me:$LINENO: checking for shmat" >&5
31130 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
31131 if test "${ac_cv_func_shmat+set}" = set; then
31132   echo $ECHO_N "(cached) $ECHO_C" >&6
31133 else
31134   cat >conftest.$ac_ext <<_ACEOF
31135 /* confdefs.h.  */
31136 _ACEOF
31137 cat confdefs.h >>conftest.$ac_ext
31138 cat >>conftest.$ac_ext <<_ACEOF
31139 /* end confdefs.h.  */
31140 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
31141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31142 #define shmat innocuous_shmat
31143
31144 /* System header to define __stub macros and hopefully few prototypes,
31145     which can conflict with char shmat (); below.
31146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31147     <limits.h> exists even on freestanding compilers.  */
31148
31149 #ifdef __STDC__
31150 # include <limits.h>
31151 #else
31152 # include <assert.h>
31153 #endif
31154
31155 #undef shmat
31156
31157 /* Override any GCC internal prototype to avoid an error.
31158    Use char because int might match the return type of a GCC
31159    builtin and then its argument prototype would still apply.  */
31160 #ifdef __cplusplus
31161 extern "C"
31162 #endif
31163 char shmat ();
31164 /* The GNU C library defines this for functions which it implements
31165     to always fail with ENOSYS.  Some functions are actually named
31166     something starting with __ and the normal name is an alias.  */
31167 #if defined __stub_shmat || defined __stub___shmat
31168 choke me
31169 #endif
31170
31171 int
31172 main ()
31173 {
31174 return shmat ();
31175   ;
31176   return 0;
31177 }
31178 _ACEOF
31179 rm -f conftest.$ac_objext conftest$ac_exeext
31180 if { (ac_try="$ac_link"
31181 case "(($ac_try" in
31182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31183   *) ac_try_echo=$ac_try;;
31184 esac
31185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31186   (eval "$ac_link") 2>conftest.er1
31187   ac_status=$?
31188   grep -v '^ *+' conftest.er1 >conftest.err
31189   rm -f conftest.er1
31190   cat conftest.err >&5
31191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31192   (exit $ac_status); } && {
31193          test -z "$ac_c_werror_flag" ||
31194          test ! -s conftest.err
31195        } && test -s conftest$ac_exeext &&
31196        $as_test_x conftest$ac_exeext; then
31197   ac_cv_func_shmat=yes
31198 else
31199   echo "$as_me: failed program was:" >&5
31200 sed 's/^/| /' conftest.$ac_ext >&5
31201
31202         ac_cv_func_shmat=no
31203 fi
31204
31205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31206       conftest$ac_exeext conftest.$ac_ext
31207 fi
31208 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
31209 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
31210
31211     if test $ac_cv_func_shmat = no; then
31212       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
31213 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
31214 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
31215   echo $ECHO_N "(cached) $ECHO_C" >&6
31216 else
31217   ac_check_lib_save_LIBS=$LIBS
31218 LIBS="-lipc  $LIBS"
31219 cat >conftest.$ac_ext <<_ACEOF
31220 /* confdefs.h.  */
31221 _ACEOF
31222 cat confdefs.h >>conftest.$ac_ext
31223 cat >>conftest.$ac_ext <<_ACEOF
31224 /* end confdefs.h.  */
31225
31226 /* Override any GCC internal prototype to avoid an error.
31227    Use char because int might match the return type of a GCC
31228    builtin and then its argument prototype would still apply.  */
31229 #ifdef __cplusplus
31230 extern "C"
31231 #endif
31232 char shmat ();
31233 int
31234 main ()
31235 {
31236 return shmat ();
31237   ;
31238   return 0;
31239 }
31240 _ACEOF
31241 rm -f conftest.$ac_objext conftest$ac_exeext
31242 if { (ac_try="$ac_link"
31243 case "(($ac_try" in
31244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31245   *) ac_try_echo=$ac_try;;
31246 esac
31247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31248   (eval "$ac_link") 2>conftest.er1
31249   ac_status=$?
31250   grep -v '^ *+' conftest.er1 >conftest.err
31251   rm -f conftest.er1
31252   cat conftest.err >&5
31253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254   (exit $ac_status); } && {
31255          test -z "$ac_c_werror_flag" ||
31256          test ! -s conftest.err
31257        } && test -s conftest$ac_exeext &&
31258        $as_test_x conftest$ac_exeext; then
31259   ac_cv_lib_ipc_shmat=yes
31260 else
31261   echo "$as_me: failed program was:" >&5
31262 sed 's/^/| /' conftest.$ac_ext >&5
31263
31264         ac_cv_lib_ipc_shmat=no
31265 fi
31266
31267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31268       conftest$ac_exeext conftest.$ac_ext
31269 LIBS=$ac_check_lib_save_LIBS
31270 fi
31271 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
31272 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
31273 if test $ac_cv_lib_ipc_shmat = yes; then
31274   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
31275 fi
31276
31277     fi
31278   fi
31279
31280   # Check for libraries that X11R6 Xt/Xaw programs need.
31281   ac_save_LDFLAGS=$LDFLAGS
31282   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
31283   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
31284   # check for ICE first), but we must link in the order -lSM -lICE or
31285   # we get undefined symbols.  So assume we have SM if we have ICE.
31286   # These have to be linked with before -lX11, unlike the other
31287   # libraries we check for below, so use a different variable.
31288   # John Interrante, Karl Berry
31289   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
31290 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
31291 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
31292   echo $ECHO_N "(cached) $ECHO_C" >&6
31293 else
31294   ac_check_lib_save_LIBS=$LIBS
31295 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
31296 cat >conftest.$ac_ext <<_ACEOF
31297 /* confdefs.h.  */
31298 _ACEOF
31299 cat confdefs.h >>conftest.$ac_ext
31300 cat >>conftest.$ac_ext <<_ACEOF
31301 /* end confdefs.h.  */
31302
31303 /* Override any GCC internal prototype to avoid an error.
31304    Use char because int might match the return type of a GCC
31305    builtin and then its argument prototype would still apply.  */
31306 #ifdef __cplusplus
31307 extern "C"
31308 #endif
31309 char IceConnectionNumber ();
31310 int
31311 main ()
31312 {
31313 return IceConnectionNumber ();
31314   ;
31315   return 0;
31316 }
31317 _ACEOF
31318 rm -f conftest.$ac_objext conftest$ac_exeext
31319 if { (ac_try="$ac_link"
31320 case "(($ac_try" in
31321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31322   *) ac_try_echo=$ac_try;;
31323 esac
31324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31325   (eval "$ac_link") 2>conftest.er1
31326   ac_status=$?
31327   grep -v '^ *+' conftest.er1 >conftest.err
31328   rm -f conftest.er1
31329   cat conftest.err >&5
31330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331   (exit $ac_status); } && {
31332          test -z "$ac_c_werror_flag" ||
31333          test ! -s conftest.err
31334        } && test -s conftest$ac_exeext &&
31335        $as_test_x conftest$ac_exeext; then
31336   ac_cv_lib_ICE_IceConnectionNumber=yes
31337 else
31338   echo "$as_me: failed program was:" >&5
31339 sed 's/^/| /' conftest.$ac_ext >&5
31340
31341         ac_cv_lib_ICE_IceConnectionNumber=no
31342 fi
31343
31344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31345       conftest$ac_exeext conftest.$ac_ext
31346 LIBS=$ac_check_lib_save_LIBS
31347 fi
31348 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
31349 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
31350 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
31351   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
31352 fi
31353
31354   LDFLAGS=$ac_save_LDFLAGS
31355
31356 fi
31357
31358
31359         if test "$no_x" = "yes"; then
31360           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
31361 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
31362    { (exit 1); exit 1; }; }
31363         fi
31364
31365                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
31366         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
31367         AFMINSTALL=afminstall
31368         COMPILED_X_PROGRAM=0
31369
31370     fi
31371
31372     if test "$wxUSE_X11" = 1; then
31373         if test "$wxUSE_NANOX" = "yes"; then
31374             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
31375 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
31376             if test "x$MICROWIN" = x ; then
31377                 { echo "$as_me:$LINENO: result: not found" >&5
31378 echo "${ECHO_T}not found" >&6; }
31379                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
31380 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
31381    { (exit 1); exit 1; }; }
31382             else
31383                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
31384 echo "${ECHO_T}$MICROWIN" >&6; }
31385                 cat >>confdefs.h <<\_ACEOF
31386 #define wxUSE_NANOX 1
31387 _ACEOF
31388
31389             fi
31390         fi
31391
31392         if test "$wxUSE_UNICODE" = "yes"; then
31393
31394
31395 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
31396         if test -n "$ac_tool_prefix"; then
31397   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31398 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31401 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31402   echo $ECHO_N "(cached) $ECHO_C" >&6
31403 else
31404   case $PKG_CONFIG in
31405   [\\/]* | ?:[\\/]*)
31406   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31407   ;;
31408   *)
31409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31410 for as_dir in $PATH
31411 do
31412   IFS=$as_save_IFS
31413   test -z "$as_dir" && as_dir=.
31414   for ac_exec_ext in '' $ac_executable_extensions; do
31415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31416     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31418     break 2
31419   fi
31420 done
31421 done
31422 IFS=$as_save_IFS
31423
31424   ;;
31425 esac
31426 fi
31427 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31428 if test -n "$PKG_CONFIG"; then
31429   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31430 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31431 else
31432   { echo "$as_me:$LINENO: result: no" >&5
31433 echo "${ECHO_T}no" >&6; }
31434 fi
31435
31436
31437 fi
31438 if test -z "$ac_cv_path_PKG_CONFIG"; then
31439   ac_pt_PKG_CONFIG=$PKG_CONFIG
31440   # Extract the first word of "pkg-config", so it can be a program name with args.
31441 set dummy pkg-config; ac_word=$2
31442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31444 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
31445   echo $ECHO_N "(cached) $ECHO_C" >&6
31446 else
31447   case $ac_pt_PKG_CONFIG in
31448   [\\/]* | ?:[\\/]*)
31449   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
31450   ;;
31451   *)
31452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31453 for as_dir in $PATH
31454 do
31455   IFS=$as_save_IFS
31456   test -z "$as_dir" && as_dir=.
31457   for ac_exec_ext in '' $ac_executable_extensions; do
31458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31459     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31461     break 2
31462   fi
31463 done
31464 done
31465 IFS=$as_save_IFS
31466
31467   ;;
31468 esac
31469 fi
31470 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
31471 if test -n "$ac_pt_PKG_CONFIG"; then
31472   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
31473 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
31474 else
31475   { echo "$as_me:$LINENO: result: no" >&5
31476 echo "${ECHO_T}no" >&6; }
31477 fi
31478
31479   if test "x$ac_pt_PKG_CONFIG" = x; then
31480     PKG_CONFIG=""
31481   else
31482     case $cross_compiling:$ac_tool_warned in
31483 yes:)
31484 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
31485 whose name does not start with the host triplet.  If you think this
31486 configuration is useful to you, please write to autoconf@gnu.org." >&5
31487 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
31488 whose name does not start with the host triplet.  If you think this
31489 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
31490 ac_tool_warned=yes ;;
31491 esac
31492     PKG_CONFIG=$ac_pt_PKG_CONFIG
31493   fi
31494 else
31495   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
31496 fi
31497
31498 fi
31499 if test -n "$PKG_CONFIG"; then
31500         _pkg_min_version=0.9.0
31501         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
31502 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
31503         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
31504                 { echo "$as_me:$LINENO: result: yes" >&5
31505 echo "${ECHO_T}yes" >&6; }
31506         else
31507                 { echo "$as_me:$LINENO: result: no" >&5
31508 echo "${ECHO_T}no" >&6; }
31509                 PKG_CONFIG=""
31510         fi
31511
31512 fi
31513
31514
31515 pkg_failed=no
31516 { echo "$as_me:$LINENO: checking for PANGOX" >&5
31517 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
31518
31519 if test -n "$PKG_CONFIG"; then
31520     if test -n "$PANGOX_CFLAGS"; then
31521         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
31522     else
31523         if test -n "$PKG_CONFIG" && \
31524     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31525   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31526   ac_status=$?
31527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528   (exit $ac_status); }; then
31529   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
31530 else
31531   pkg_failed=yes
31532 fi
31533     fi
31534 else
31535         pkg_failed=untried
31536 fi
31537 if test -n "$PKG_CONFIG"; then
31538     if test -n "$PANGOX_LIBS"; then
31539         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
31540     else
31541         if test -n "$PKG_CONFIG" && \
31542     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
31543   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
31544   ac_status=$?
31545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546   (exit $ac_status); }; then
31547   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
31548 else
31549   pkg_failed=yes
31550 fi
31551     fi
31552 else
31553         pkg_failed=untried
31554 fi
31555
31556
31557
31558 if test $pkg_failed = yes; then
31559
31560 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31561         _pkg_short_errors_supported=yes
31562 else
31563         _pkg_short_errors_supported=no
31564 fi
31565         if test $_pkg_short_errors_supported = yes; then
31566                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
31567         else
31568                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
31569         fi
31570         # Put the nasty error message in config.log where it belongs
31571         echo "$PANGOX_PKG_ERRORS" >&5
31572
31573
31574                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31575 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31576    { (exit 1); exit 1; }; }
31577
31578
31579 elif test $pkg_failed = untried; then
31580
31581                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
31582 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31583    { (exit 1); exit 1; }; }
31584
31585
31586 else
31587         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31588         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31589         { echo "$as_me:$LINENO: result: yes" >&5
31590 echo "${ECHO_T}yes" >&6; }
31591
31592                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
31593                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31594                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
31595
31596 fi
31597
31598 pkg_failed=no
31599 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31600 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
31601
31602 if test -n "$PKG_CONFIG"; then
31603     if test -n "$PANGOFT2_CFLAGS"; then
31604         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31605     else
31606         if test -n "$PKG_CONFIG" && \
31607     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31608   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31609   ac_status=$?
31610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611   (exit $ac_status); }; then
31612   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31613 else
31614   pkg_failed=yes
31615 fi
31616     fi
31617 else
31618         pkg_failed=untried
31619 fi
31620 if test -n "$PKG_CONFIG"; then
31621     if test -n "$PANGOFT2_LIBS"; then
31622         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31623     else
31624         if test -n "$PKG_CONFIG" && \
31625     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31626   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31627   ac_status=$?
31628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629   (exit $ac_status); }; then
31630   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31631 else
31632   pkg_failed=yes
31633 fi
31634     fi
31635 else
31636         pkg_failed=untried
31637 fi
31638
31639
31640
31641 if test $pkg_failed = yes; then
31642
31643 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31644         _pkg_short_errors_supported=yes
31645 else
31646         _pkg_short_errors_supported=no
31647 fi
31648         if test $_pkg_short_errors_supported = yes; then
31649                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31650         else
31651                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31652         fi
31653         # Put the nasty error message in config.log where it belongs
31654         echo "$PANGOFT2_PKG_ERRORS" >&5
31655
31656
31657                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31658 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31659                     wxUSE_PRINTING_ARCHITECTURE="no"
31660
31661
31662 elif test $pkg_failed = untried; then
31663
31664                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
31665 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
31666                     wxUSE_PRINTING_ARCHITECTURE="no"
31667
31668
31669 else
31670         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31671         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31672         { echo "$as_me:$LINENO: result: yes" >&5
31673 echo "${ECHO_T}yes" >&6; }
31674
31675                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
31676                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31677                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
31678
31679 fi
31680
31681 pkg_failed=no
31682 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31683 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
31684
31685 if test -n "$PKG_CONFIG"; then
31686     if test -n "$PANGOXFT_CFLAGS"; then
31687         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31688     else
31689         if test -n "$PKG_CONFIG" && \
31690     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31691   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31692   ac_status=$?
31693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31694   (exit $ac_status); }; then
31695   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
31696 else
31697   pkg_failed=yes
31698 fi
31699     fi
31700 else
31701         pkg_failed=untried
31702 fi
31703 if test -n "$PKG_CONFIG"; then
31704     if test -n "$PANGOXFT_LIBS"; then
31705         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31706     else
31707         if test -n "$PKG_CONFIG" && \
31708     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31709   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31710   ac_status=$?
31711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712   (exit $ac_status); }; then
31713   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31714 else
31715   pkg_failed=yes
31716 fi
31717     fi
31718 else
31719         pkg_failed=untried
31720 fi
31721
31722
31723
31724 if test $pkg_failed = yes; then
31725
31726 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31727         _pkg_short_errors_supported=yes
31728 else
31729         _pkg_short_errors_supported=no
31730 fi
31731         if test $_pkg_short_errors_supported = yes; then
31732                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31733         else
31734                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
31735         fi
31736         # Put the nasty error message in config.log where it belongs
31737         echo "$PANGOXFT_PKG_ERRORS" >&5
31738
31739
31740                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31741 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31742
31743
31744 elif test $pkg_failed = untried; then
31745
31746                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
31747 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31748
31749
31750 else
31751         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31752         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31753         { echo "$as_me:$LINENO: result: yes" >&5
31754 echo "${ECHO_T}yes" >&6; }
31755
31756                     cat >>confdefs.h <<\_ACEOF
31757 #define HAVE_PANGO_XFT 1
31758 _ACEOF
31759
31760                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
31761                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31762                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
31763
31764 fi
31765             save_LIBS="$LIBS"
31766             LIBS="$LIBS $PANGOX_LIBS"
31767
31768 for ac_func in pango_font_family_is_monospace
31769 do
31770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31774   echo $ECHO_N "(cached) $ECHO_C" >&6
31775 else
31776   cat >conftest.$ac_ext <<_ACEOF
31777 /* confdefs.h.  */
31778 _ACEOF
31779 cat confdefs.h >>conftest.$ac_ext
31780 cat >>conftest.$ac_ext <<_ACEOF
31781 /* end confdefs.h.  */
31782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31784 #define $ac_func innocuous_$ac_func
31785
31786 /* System header to define __stub macros and hopefully few prototypes,
31787     which can conflict with char $ac_func (); below.
31788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31789     <limits.h> exists even on freestanding compilers.  */
31790
31791 #ifdef __STDC__
31792 # include <limits.h>
31793 #else
31794 # include <assert.h>
31795 #endif
31796
31797 #undef $ac_func
31798
31799 /* Override any GCC internal prototype to avoid an error.
31800    Use char because int might match the return type of a GCC
31801    builtin and then its argument prototype would still apply.  */
31802 #ifdef __cplusplus
31803 extern "C"
31804 #endif
31805 char $ac_func ();
31806 /* The GNU C library defines this for functions which it implements
31807     to always fail with ENOSYS.  Some functions are actually named
31808     something starting with __ and the normal name is an alias.  */
31809 #if defined __stub_$ac_func || defined __stub___$ac_func
31810 choke me
31811 #endif
31812
31813 int
31814 main ()
31815 {
31816 return $ac_func ();
31817   ;
31818   return 0;
31819 }
31820 _ACEOF
31821 rm -f conftest.$ac_objext conftest$ac_exeext
31822 if { (ac_try="$ac_link"
31823 case "(($ac_try" in
31824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825   *) ac_try_echo=$ac_try;;
31826 esac
31827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31828   (eval "$ac_link") 2>conftest.er1
31829   ac_status=$?
31830   grep -v '^ *+' conftest.er1 >conftest.err
31831   rm -f conftest.er1
31832   cat conftest.err >&5
31833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834   (exit $ac_status); } && {
31835          test -z "$ac_c_werror_flag" ||
31836          test ! -s conftest.err
31837        } && test -s conftest$ac_exeext &&
31838        $as_test_x conftest$ac_exeext; then
31839   eval "$as_ac_var=yes"
31840 else
31841   echo "$as_me: failed program was:" >&5
31842 sed 's/^/| /' conftest.$ac_ext >&5
31843
31844         eval "$as_ac_var=no"
31845 fi
31846
31847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31848       conftest$ac_exeext conftest.$ac_ext
31849 fi
31850 ac_res=`eval echo '${'$as_ac_var'}'`
31851                { echo "$as_me:$LINENO: result: $ac_res" >&5
31852 echo "${ECHO_T}$ac_res" >&6; }
31853 if test `eval echo '${'$as_ac_var'}'` = yes; then
31854   cat >>confdefs.h <<_ACEOF
31855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31856 _ACEOF
31857
31858 fi
31859 done
31860
31861             LIBS="$save_LIBS"
31862         fi
31863
31864         wxUSE_UNIVERSAL="yes"
31865
31866         if test "$wxUSE_NANOX" = "yes"; then
31867             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31868             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"
31869             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31870         else
31871             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31872         fi
31873
31874         TOOLKIT=X11
31875         GUIDIST=X11_DIST
31876     fi
31877
31878     if test "$wxUSE_MOTIF" = 1; then
31879         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31880 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
31881
31882 ac_find_includes=
31883 for ac_dir in $SEARCH_INCLUDE /usr/include;
31884   do
31885     if test -f "$ac_dir/Xm/Xm.h"; then
31886       ac_find_includes=$ac_dir
31887       break
31888     fi
31889   done
31890
31891         if test "$ac_find_includes" != "" ; then
31892             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31893 echo "${ECHO_T}found in $ac_find_includes" >&6; }
31894
31895     if test "x$ac_find_includes" = "x/usr/include"; then
31896     ac_path_to_include=""
31897   else
31898     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31899     result=$?
31900     if test $result = 0; then
31901       ac_path_to_include=""
31902     else
31903       ac_path_to_include=" -I$ac_find_includes"
31904     fi
31905   fi
31906
31907             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31908         else
31909             save_CFLAGS=$CFLAGS
31910             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
31911
31912             cat >conftest.$ac_ext <<_ACEOF
31913 /* confdefs.h.  */
31914 _ACEOF
31915 cat confdefs.h >>conftest.$ac_ext
31916 cat >>conftest.$ac_ext <<_ACEOF
31917 /* end confdefs.h.  */
31918
31919                     #include <Xm/Xm.h>
31920
31921 int
31922 main ()
31923 {
31924
31925                     int version;
31926                     version = xmUseVersion;
31927
31928   ;
31929   return 0;
31930 }
31931 _ACEOF
31932 rm -f conftest.$ac_objext
31933 if { (ac_try="$ac_compile"
31934 case "(($ac_try" in
31935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31936   *) ac_try_echo=$ac_try;;
31937 esac
31938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31939   (eval "$ac_compile") 2>conftest.er1
31940   ac_status=$?
31941   grep -v '^ *+' conftest.er1 >conftest.err
31942   rm -f conftest.er1
31943   cat conftest.err >&5
31944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945   (exit $ac_status); } && {
31946          test -z "$ac_c_werror_flag" ||
31947          test ! -s conftest.err
31948        } && test -s conftest.$ac_objext; then
31949
31950                     { echo "$as_me:$LINENO: result: found in default search path" >&5
31951 echo "${ECHO_T}found in default search path" >&6; }
31952                     COMPILED_X_PROGRAM=1
31953
31954 else
31955   echo "$as_me: failed program was:" >&5
31956 sed 's/^/| /' conftest.$ac_ext >&5
31957
31958
31959                     { echo "$as_me:$LINENO: result: no" >&5
31960 echo "${ECHO_T}no" >&6; }
31961                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31962 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
31963    { (exit 1); exit 1; }; }
31964
31965
31966 fi
31967
31968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31969
31970             CFLAGS=$save_CFLAGS
31971         fi
31972
31973
31974         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
31975 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
31976
31977   ac_find_libraries=
31978   for ac_dir in $SEARCH_LIB;
31979   do
31980     for ac_extension in a so sl dylib dll.a; do
31981       if test -f "$ac_dir/libXm.$ac_extension"; then
31982         ac_find_libraries=$ac_dir
31983         break 2
31984       fi
31985     done
31986   done
31987
31988
31989         if test "x$ac_find_libraries" != "x" ; then
31990             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31991 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
31992
31993
31994     if test "$ac_find_libraries" = "default location"; then
31995     ac_path_to_link=""
31996   else
31997     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31998     result=$?
31999     if test $result = 0; then
32000       ac_path_to_link=""
32001     else
32002       ac_path_to_link=" -L$ac_find_libraries"
32003     fi
32004   fi
32005
32006             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32007         else
32008                                                 save_CFLAGS=$CFLAGS
32009             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32010             save_LIBS="$LIBS"
32011             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
32012
32013             cat >conftest.$ac_ext <<_ACEOF
32014 /* confdefs.h.  */
32015 _ACEOF
32016 cat confdefs.h >>conftest.$ac_ext
32017 cat >>conftest.$ac_ext <<_ACEOF
32018 /* end confdefs.h.  */
32019
32020                     #include <Xm/Xm.h>
32021
32022 int
32023 main ()
32024 {
32025
32026                     int version;
32027                     version = xmUseVersion;
32028
32029   ;
32030   return 0;
32031 }
32032 _ACEOF
32033 rm -f conftest.$ac_objext conftest$ac_exeext
32034 if { (ac_try="$ac_link"
32035 case "(($ac_try" in
32036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32037   *) ac_try_echo=$ac_try;;
32038 esac
32039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32040   (eval "$ac_link") 2>conftest.er1
32041   ac_status=$?
32042   grep -v '^ *+' conftest.er1 >conftest.err
32043   rm -f conftest.er1
32044   cat conftest.err >&5
32045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046   (exit $ac_status); } && {
32047          test -z "$ac_c_werror_flag" ||
32048          test ! -s conftest.err
32049        } && test -s conftest$ac_exeext &&
32050        $as_test_x conftest$ac_exeext; then
32051
32052                     { echo "$as_me:$LINENO: result: found in default search path" >&5
32053 echo "${ECHO_T}found in default search path" >&6; }
32054                     COMPILED_X_PROGRAM=1
32055
32056 else
32057   echo "$as_me: failed program was:" >&5
32058 sed 's/^/| /' conftest.$ac_ext >&5
32059
32060
32061                     { echo "$as_me:$LINENO: result: no" >&5
32062 echo "${ECHO_T}no" >&6; }
32063                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
32064 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
32065    { (exit 1); exit 1; }; }
32066
32067
32068 fi
32069
32070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32071       conftest$ac_exeext conftest.$ac_ext
32072
32073             CFLAGS=$save_CFLAGS
32074             LIBS="$save_LIBS"
32075         fi
32076
32077         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
32078 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
32079         libp_link=""
32080         libsm_ice_link=""
32081         libs_found=0
32082         for libp in "" " -lXp"; do
32083             if test "$libs_found" = 0; then
32084                 for libsm_ice in "" " -lSM -lICE"; do
32085                     if test "$libs_found" = 0; then
32086                         save_LIBS="$LIBS"
32087                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
32088                         save_CFLAGS=$CFLAGS
32089                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32090
32091                         cat >conftest.$ac_ext <<_ACEOF
32092 /* confdefs.h.  */
32093 _ACEOF
32094 cat confdefs.h >>conftest.$ac_ext
32095 cat >>conftest.$ac_ext <<_ACEOF
32096 /* end confdefs.h.  */
32097
32098                                 #include <Xm/Xm.h>
32099                                 #include <Xm/List.h>
32100
32101 int
32102 main ()
32103 {
32104
32105                                 XmString string = NULL;
32106                                 Widget w = NULL;
32107                                 int position = 0;
32108                                 XmListAddItem(w, string, position);
32109
32110   ;
32111   return 0;
32112 }
32113 _ACEOF
32114 rm -f conftest.$ac_objext conftest$ac_exeext
32115 if { (ac_try="$ac_link"
32116 case "(($ac_try" in
32117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118   *) ac_try_echo=$ac_try;;
32119 esac
32120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121   (eval "$ac_link") 2>conftest.er1
32122   ac_status=$?
32123   grep -v '^ *+' conftest.er1 >conftest.err
32124   rm -f conftest.er1
32125   cat conftest.err >&5
32126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127   (exit $ac_status); } && {
32128          test -z "$ac_c_werror_flag" ||
32129          test ! -s conftest.err
32130        } && test -s conftest$ac_exeext &&
32131        $as_test_x conftest$ac_exeext; then
32132
32133                                 libp_link="$libp"
32134                                 libsm_ice_link="$libsm_ice"
32135                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
32136 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
32137                                 libs_found=1
32138
32139 else
32140   echo "$as_me: failed program was:" >&5
32141 sed 's/^/| /' conftest.$ac_ext >&5
32142
32143
32144
32145 fi
32146
32147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32148       conftest$ac_exeext conftest.$ac_ext
32149
32150                         LIBS="$save_LIBS"
32151                         CFLAGS=$save_CFLAGS
32152                     fi
32153                 done
32154             fi
32155         done
32156
32157         if test "$libs_found" = 0; then
32158             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
32159 echo "${ECHO_T}can't find the right libraries" >&6; }
32160             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
32161 echo "$as_me: error: can't link a simple motif program" >&2;}
32162    { (exit 1); exit 1; }; }
32163         fi
32164
32165                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
32166 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
32167 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
32168   echo $ECHO_N "(cached) $ECHO_C" >&6
32169 else
32170   ac_check_lib_save_LIBS=$LIBS
32171 LIBS="-lSgm  $LIBS"
32172 cat >conftest.$ac_ext <<_ACEOF
32173 /* confdefs.h.  */
32174 _ACEOF
32175 cat confdefs.h >>conftest.$ac_ext
32176 cat >>conftest.$ac_ext <<_ACEOF
32177 /* end confdefs.h.  */
32178
32179 /* Override any GCC internal prototype to avoid an error.
32180    Use char because int might match the return type of a GCC
32181    builtin and then its argument prototype would still apply.  */
32182 #ifdef __cplusplus
32183 extern "C"
32184 #endif
32185 char SgCreateList ();
32186 int
32187 main ()
32188 {
32189 return SgCreateList ();
32190   ;
32191   return 0;
32192 }
32193 _ACEOF
32194 rm -f conftest.$ac_objext conftest$ac_exeext
32195 if { (ac_try="$ac_link"
32196 case "(($ac_try" in
32197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32198   *) ac_try_echo=$ac_try;;
32199 esac
32200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32201   (eval "$ac_link") 2>conftest.er1
32202   ac_status=$?
32203   grep -v '^ *+' conftest.er1 >conftest.err
32204   rm -f conftest.er1
32205   cat conftest.err >&5
32206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207   (exit $ac_status); } && {
32208          test -z "$ac_c_werror_flag" ||
32209          test ! -s conftest.err
32210        } && test -s conftest$ac_exeext &&
32211        $as_test_x conftest$ac_exeext; then
32212   ac_cv_lib_Sgm_SgCreateList=yes
32213 else
32214   echo "$as_me: failed program was:" >&5
32215 sed 's/^/| /' conftest.$ac_ext >&5
32216
32217         ac_cv_lib_Sgm_SgCreateList=no
32218 fi
32219
32220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32221       conftest$ac_exeext conftest.$ac_ext
32222 LIBS=$ac_check_lib_save_LIBS
32223 fi
32224 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
32225 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
32226 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
32227   libsgm_link=" -lSgm"
32228 fi
32229
32230
32231         save_CFLAGS=$CFLAGS
32232         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32233
32234         { echo "$as_me:$LINENO: checking for Motif 2" >&5
32235 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
32236 if test "${wx_cv_lib_motif2+set}" = set; then
32237   echo $ECHO_N "(cached) $ECHO_C" >&6
32238 else
32239   cat >conftest.$ac_ext <<_ACEOF
32240 /* confdefs.h.  */
32241 _ACEOF
32242 cat confdefs.h >>conftest.$ac_ext
32243 cat >>conftest.$ac_ext <<_ACEOF
32244 /* end confdefs.h.  */
32245
32246                             #include <Xm/Xm.h>
32247
32248 int
32249 main ()
32250 {
32251
32252                             #if XmVersion < 2000
32253                             Not Motif 2
32254                             #endif
32255
32256   ;
32257   return 0;
32258 }
32259 _ACEOF
32260 rm -f conftest.$ac_objext
32261 if { (ac_try="$ac_compile"
32262 case "(($ac_try" in
32263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264   *) ac_try_echo=$ac_try;;
32265 esac
32266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267   (eval "$ac_compile") 2>conftest.er1
32268   ac_status=$?
32269   grep -v '^ *+' conftest.er1 >conftest.err
32270   rm -f conftest.er1
32271   cat conftest.err >&5
32272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273   (exit $ac_status); } && {
32274          test -z "$ac_c_werror_flag" ||
32275          test ! -s conftest.err
32276        } && test -s conftest.$ac_objext; then
32277   wx_cv_lib_motif2="yes"
32278 else
32279   echo "$as_me: failed program was:" >&5
32280 sed 's/^/| /' conftest.$ac_ext >&5
32281
32282         wx_cv_lib_motif2="no"
32283 fi
32284
32285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32286 fi
32287 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
32288 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
32289         if test "$wx_cv_lib_motif2" = "yes"; then
32290             cat >>confdefs.h <<\_ACEOF
32291 #define __WXMOTIF20__ 1
32292 _ACEOF
32293
32294         else
32295             cat >>confdefs.h <<\_ACEOF
32296 #define __WXMOTIF20__ 0
32297 _ACEOF
32298
32299         fi
32300
32301         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
32302 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
32303 if test "${wx_cv_lib_lesstif+set}" = set; then
32304   echo $ECHO_N "(cached) $ECHO_C" >&6
32305 else
32306   cat >conftest.$ac_ext <<_ACEOF
32307 /* confdefs.h.  */
32308 _ACEOF
32309 cat confdefs.h >>conftest.$ac_ext
32310 cat >>conftest.$ac_ext <<_ACEOF
32311 /* end confdefs.h.  */
32312
32313                             #include <Xm/Xm.h>
32314
32315 int
32316 main ()
32317 {
32318
32319                             #if !defined(LesstifVersion) || LesstifVersion <= 0
32320                             Not Lesstif
32321                             #endif
32322
32323   ;
32324   return 0;
32325 }
32326 _ACEOF
32327 rm -f conftest.$ac_objext
32328 if { (ac_try="$ac_compile"
32329 case "(($ac_try" in
32330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32331   *) ac_try_echo=$ac_try;;
32332 esac
32333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32334   (eval "$ac_compile") 2>conftest.er1
32335   ac_status=$?
32336   grep -v '^ *+' conftest.er1 >conftest.err
32337   rm -f conftest.er1
32338   cat conftest.err >&5
32339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32340   (exit $ac_status); } && {
32341          test -z "$ac_c_werror_flag" ||
32342          test ! -s conftest.err
32343        } && test -s conftest.$ac_objext; then
32344   wx_cv_lib_lesstif="yes"
32345 else
32346   echo "$as_me: failed program was:" >&5
32347 sed 's/^/| /' conftest.$ac_ext >&5
32348
32349         wx_cv_lib_lesstif="no"
32350 fi
32351
32352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32353
32354 fi
32355 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
32356 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
32357         if test "$wx_cv_lib_lesstif" = "yes"; then
32358             cat >>confdefs.h <<\_ACEOF
32359 #define __WXLESSTIF__ 1
32360 _ACEOF
32361
32362         else
32363             cat >>confdefs.h <<\_ACEOF
32364 #define __WXLESSTIF__ 0
32365 _ACEOF
32366
32367         fi
32368
32369         CFLAGS=$save_CFLAGS
32370
32371         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
32372         TOOLKIT=MOTIF
32373         GUIDIST=MOTIF_DIST
32374     fi
32375
32376         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32377                 if test "$wxUSE_LIBXPM" = "sys"; then
32378             { echo "$as_me:$LINENO: checking for Xpm library" >&5
32379 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
32380
32381   ac_find_libraries=
32382   for ac_dir in $SEARCH_LIB;
32383   do
32384     for ac_extension in a so sl dylib dll.a; do
32385       if test -f "$ac_dir/libXpm.$ac_extension"; then
32386         ac_find_libraries=$ac_dir
32387         break 2
32388       fi
32389     done
32390   done
32391
32392             if test "$ac_find_libraries" != "" ; then
32393
32394     if test "$ac_find_libraries" = "default location"; then
32395     ac_path_to_link=""
32396   else
32397     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32398     result=$?
32399     if test $result = 0; then
32400       ac_path_to_link=""
32401     else
32402       ac_path_to_link=" -L$ac_find_libraries"
32403     fi
32404   fi
32405
32406                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
32407                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32408 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32409
32410                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
32411 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
32412 if test "${wx_cv_x11_xpm_h+set}" = set; then
32413   echo $ECHO_N "(cached) $ECHO_C" >&6
32414 else
32415
32416                         save_CFLAGS=$CFLAGS
32417                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32418
32419                         cat >conftest.$ac_ext <<_ACEOF
32420 /* confdefs.h.  */
32421 _ACEOF
32422 cat confdefs.h >>conftest.$ac_ext
32423 cat >>conftest.$ac_ext <<_ACEOF
32424 /* end confdefs.h.  */
32425
32426                                 #include <X11/xpm.h>
32427
32428 int
32429 main ()
32430 {
32431
32432                                 int version;
32433                                 version = XpmLibraryVersion();
32434
32435   ;
32436   return 0;
32437 }
32438 _ACEOF
32439 rm -f conftest.$ac_objext
32440 if { (ac_try="$ac_compile"
32441 case "(($ac_try" in
32442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32443   *) ac_try_echo=$ac_try;;
32444 esac
32445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32446   (eval "$ac_compile") 2>conftest.er1
32447   ac_status=$?
32448   grep -v '^ *+' conftest.er1 >conftest.err
32449   rm -f conftest.er1
32450   cat conftest.err >&5
32451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452   (exit $ac_status); } && {
32453          test -z "$ac_c_werror_flag" ||
32454          test ! -s conftest.err
32455        } && test -s conftest.$ac_objext; then
32456   wx_cv_x11_xpm_h=yes
32457 else
32458   echo "$as_me: failed program was:" >&5
32459 sed 's/^/| /' conftest.$ac_ext >&5
32460
32461         wx_cv_x11_xpm_h=no
32462
32463 fi
32464
32465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32466
32467                         CFLAGS=$save_CFLAGS
32468
32469
32470 fi
32471 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
32472 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
32473
32474                 if test $wx_cv_x11_xpm_h = "yes"; then
32475                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
32476                     cat >>confdefs.h <<\_ACEOF
32477 #define wxHAVE_LIB_XPM 1
32478 _ACEOF
32479
32480                 else
32481                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
32482 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
32483                 fi
32484             fi
32485
32486         fi
32487
32488                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
32489 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
32490 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
32491   echo $ECHO_N "(cached) $ECHO_C" >&6
32492 else
32493   ac_check_lib_save_LIBS=$LIBS
32494 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
32495 cat >conftest.$ac_ext <<_ACEOF
32496 /* confdefs.h.  */
32497 _ACEOF
32498 cat confdefs.h >>conftest.$ac_ext
32499 cat >>conftest.$ac_ext <<_ACEOF
32500 /* end confdefs.h.  */
32501
32502 /* Override any GCC internal prototype to avoid an error.
32503    Use char because int might match the return type of a GCC
32504    builtin and then its argument prototype would still apply.  */
32505 #ifdef __cplusplus
32506 extern "C"
32507 #endif
32508 char XShapeQueryExtension ();
32509 int
32510 main ()
32511 {
32512 return XShapeQueryExtension ();
32513   ;
32514   return 0;
32515 }
32516 _ACEOF
32517 rm -f conftest.$ac_objext conftest$ac_exeext
32518 if { (ac_try="$ac_link"
32519 case "(($ac_try" in
32520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521   *) ac_try_echo=$ac_try;;
32522 esac
32523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524   (eval "$ac_link") 2>conftest.er1
32525   ac_status=$?
32526   grep -v '^ *+' conftest.er1 >conftest.err
32527   rm -f conftest.er1
32528   cat conftest.err >&5
32529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530   (exit $ac_status); } && {
32531          test -z "$ac_c_werror_flag" ||
32532          test ! -s conftest.err
32533        } && test -s conftest$ac_exeext &&
32534        $as_test_x conftest$ac_exeext; then
32535   ac_cv_lib_Xext_XShapeQueryExtension=yes
32536 else
32537   echo "$as_me: failed program was:" >&5
32538 sed 's/^/| /' conftest.$ac_ext >&5
32539
32540         ac_cv_lib_Xext_XShapeQueryExtension=no
32541 fi
32542
32543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32544       conftest$ac_exeext conftest.$ac_ext
32545 LIBS=$ac_check_lib_save_LIBS
32546 fi
32547 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32548 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
32549 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32550
32551                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32552                       wxHAVE_XEXT_LIB=1
32553
32554 fi
32555
32556
32557         if test "$wxHAVE_XEXT_LIB" = 1; then
32558             save_CFLAGS="$CFLAGS"
32559             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
32560
32561             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32562 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
32563             cat >conftest.$ac_ext <<_ACEOF
32564 /* confdefs.h.  */
32565 _ACEOF
32566 cat confdefs.h >>conftest.$ac_ext
32567 cat >>conftest.$ac_ext <<_ACEOF
32568 /* end confdefs.h.  */
32569
32570                             #include <X11/Xlib.h>
32571                             #include <X11/extensions/shape.h>
32572
32573 int
32574 main ()
32575 {
32576
32577                             int dummy1, dummy2;
32578                             XShapeQueryExtension((Display*)NULL,
32579                                                  (int*)NULL, (int*)NULL);
32580
32581   ;
32582   return 0;
32583 }
32584 _ACEOF
32585 rm -f conftest.$ac_objext
32586 if { (ac_try="$ac_compile"
32587 case "(($ac_try" in
32588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32589   *) ac_try_echo=$ac_try;;
32590 esac
32591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32592   (eval "$ac_compile") 2>conftest.er1
32593   ac_status=$?
32594   grep -v '^ *+' conftest.er1 >conftest.err
32595   rm -f conftest.er1
32596   cat conftest.err >&5
32597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598   (exit $ac_status); } && {
32599          test -z "$ac_c_werror_flag" ||
32600          test ! -s conftest.err
32601        } && test -s conftest.$ac_objext; then
32602
32603                             cat >>confdefs.h <<\_ACEOF
32604 #define HAVE_XSHAPE 1
32605 _ACEOF
32606
32607                             { echo "$as_me:$LINENO: result: found" >&5
32608 echo "${ECHO_T}found" >&6; }
32609
32610 else
32611   echo "$as_me: failed program was:" >&5
32612 sed 's/^/| /' conftest.$ac_ext >&5
32613
32614
32615                             { echo "$as_me:$LINENO: result: not found" >&5
32616 echo "${ECHO_T}not found" >&6; }
32617
32618 fi
32619
32620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32621             CFLAGS="$save_CFLAGS"
32622
32623         fi
32624     fi
32625
32626     if test "$wxUSE_OSX_CARBON" = 1; then
32627         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32628 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
32629         if test "$GCC" = yes; then
32630             { echo "$as_me:$LINENO: result: gcc" >&5
32631 echo "${ECHO_T}gcc" >&6; }
32632             CPPFLAGS_PASCAL="-fpascal-strings"
32633         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32634             { echo "$as_me:$LINENO: result: xlc" >&5
32635 echo "${ECHO_T}xlc" >&6; }
32636             CPPFLAGS_PASCAL="-qmacpstr"
32637         else
32638             { echo "$as_me:$LINENO: result: none" >&5
32639 echo "${ECHO_T}none" >&6; }
32640         fi
32641
32642         if test "x$wxUSE_UNIX" = "xyes"; then
32643             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
32644         else
32645                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
32646         fi
32647
32648         TOOLKIT=OSX_CARBON
32649                 GUIDIST=OSX_CARBON_DIST
32650                         WXBASEPORT="_carbon"
32651     fi
32652
32653     if test "$wxUSE_OSX_COCOA" = 1; then
32654         TOOLKIT=OSX_COCOA
32655         GUIDIST=OSX_COCOA_DIST
32656     fi
32657
32658     if test "$wxUSE_COCOA" = 1; then
32659         TOOLKIT=COCOA
32660         GUIDIST=COCOA_DIST
32661     fi
32662
32663     if test "$wxUSE_PM" = 1; then
32664         TOOLKIT=PM
32665         GUIDIST=PM_DIST
32666         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32667 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
32668 if test "${wx_cv_spbcdata+set}" = set; then
32669   echo $ECHO_N "(cached) $ECHO_C" >&6
32670 else
32671
32672                 cat >conftest.$ac_ext <<_ACEOF
32673 /* confdefs.h.  */
32674 _ACEOF
32675 cat confdefs.h >>conftest.$ac_ext
32676 cat >>conftest.$ac_ext <<_ACEOF
32677 /* end confdefs.h.  */
32678
32679                         #define INCL_PM
32680                         #include <os2.h>
32681
32682 int
32683 main ()
32684 {
32685
32686                         SPBCDATA test;
32687
32688   ;
32689   return 0;
32690 }
32691 _ACEOF
32692 rm -f conftest.$ac_objext
32693 if { (ac_try="$ac_compile"
32694 case "(($ac_try" in
32695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32696   *) ac_try_echo=$ac_try;;
32697 esac
32698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32699   (eval "$ac_compile") 2>conftest.er1
32700   ac_status=$?
32701   grep -v '^ *+' conftest.er1 >conftest.err
32702   rm -f conftest.er1
32703   cat conftest.err >&5
32704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705   (exit $ac_status); } && {
32706          test -z "$ac_c_werror_flag" ||
32707          test ! -s conftest.err
32708        } && test -s conftest.$ac_objext; then
32709   wx_cv_spbcdata=yes
32710 else
32711   echo "$as_me: failed program was:" >&5
32712 sed 's/^/| /' conftest.$ac_ext >&5
32713
32714         wx_cv_spbcdata=no
32715
32716 fi
32717
32718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32719
32720
32721 fi
32722 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32723 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
32724
32725         if test $wx_cv_spbcdata = "yes"; then
32726             cat >>confdefs.h <<\_ACEOF
32727 #define HAVE_SPBCDATA 1
32728 _ACEOF
32729
32730         fi
32731     fi
32732
32733         if test "$TOOLKIT" = "PM" ; then
32734         TOOLKIT_DIR="os2"
32735     else
32736         TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'`
32737     fi
32738
32739     if test "$wxUSE_UNIVERSAL" = "yes"; then
32740         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32741         WIDGET_SET=univ
32742     fi
32743
32744         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32745     DISTDIR="wx\$(TOOLKIT)"
32746 else
32747     USE_GUI=0
32748
32749             TOOLKIT_DIR="base"
32750
32751         if test "$USE_WIN32" = 1 ; then
32752                         TOOLKIT="MSW"
32753     fi
32754
32755         GUIDIST="BASE_DIST"
32756     DISTDIR="wxBase"
32757 fi
32758
32759
32760
32761 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
32762     if test "$USE_UNIX" = 1 -a "$wxUSE_DARWIN" != 1 ; then
32763         wxUSE_UNICODE_UTF8=yes
32764     elif test "$USE_OS2" = 1 ; then
32765                                 wxUSE_UNICODE_UTF8=yes
32766     else
32767         wxUSE_UNICODE_UTF8=no
32768     fi
32769 fi
32770
32771
32772 if test "$wxUSE_GUI" = "yes"; then
32773     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32774
32775 for ac_header in X11/Xlib.h
32776 do
32777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32781   echo $ECHO_N "(cached) $ECHO_C" >&6
32782 else
32783   cat >conftest.$ac_ext <<_ACEOF
32784 /* confdefs.h.  */
32785 _ACEOF
32786 cat confdefs.h >>conftest.$ac_ext
32787 cat >>conftest.$ac_ext <<_ACEOF
32788 /* end confdefs.h.  */
32789
32790
32791 #include <$ac_header>
32792 _ACEOF
32793 rm -f conftest.$ac_objext
32794 if { (ac_try="$ac_compile"
32795 case "(($ac_try" in
32796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32797   *) ac_try_echo=$ac_try;;
32798 esac
32799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32800   (eval "$ac_compile") 2>conftest.er1
32801   ac_status=$?
32802   grep -v '^ *+' conftest.er1 >conftest.err
32803   rm -f conftest.er1
32804   cat conftest.err >&5
32805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806   (exit $ac_status); } && {
32807          test -z "$ac_c_werror_flag" ||
32808          test ! -s conftest.err
32809        } && test -s conftest.$ac_objext; then
32810   eval "$as_ac_Header=yes"
32811 else
32812   echo "$as_me: failed program was:" >&5
32813 sed 's/^/| /' conftest.$ac_ext >&5
32814
32815         eval "$as_ac_Header=no"
32816 fi
32817
32818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32819 fi
32820 ac_res=`eval echo '${'$as_ac_Header'}'`
32821                { echo "$as_me:$LINENO: result: $ac_res" >&5
32822 echo "${ECHO_T}$ac_res" >&6; }
32823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32824   cat >>confdefs.h <<_ACEOF
32825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32826 _ACEOF
32827
32828 fi
32829
32830 done
32831
32832
32833 for ac_header in X11/XKBlib.h
32834 do
32835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32839   echo $ECHO_N "(cached) $ECHO_C" >&6
32840 else
32841   cat >conftest.$ac_ext <<_ACEOF
32842 /* confdefs.h.  */
32843 _ACEOF
32844 cat confdefs.h >>conftest.$ac_ext
32845 cat >>conftest.$ac_ext <<_ACEOF
32846 /* end confdefs.h.  */
32847
32848                           #if HAVE_X11_XLIB_H
32849                             #include <X11/Xlib.h>
32850                           #endif
32851
32852
32853 #include <$ac_header>
32854 _ACEOF
32855 rm -f conftest.$ac_objext
32856 if { (ac_try="$ac_compile"
32857 case "(($ac_try" in
32858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32859   *) ac_try_echo=$ac_try;;
32860 esac
32861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32862   (eval "$ac_compile") 2>conftest.er1
32863   ac_status=$?
32864   grep -v '^ *+' conftest.er1 >conftest.err
32865   rm -f conftest.er1
32866   cat conftest.err >&5
32867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868   (exit $ac_status); } && {
32869          test -z "$ac_c_werror_flag" ||
32870          test ! -s conftest.err
32871        } && test -s conftest.$ac_objext; then
32872   eval "$as_ac_Header=yes"
32873 else
32874   echo "$as_me: failed program was:" >&5
32875 sed 's/^/| /' conftest.$ac_ext >&5
32876
32877         eval "$as_ac_Header=no"
32878 fi
32879
32880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32881 fi
32882 ac_res=`eval echo '${'$as_ac_Header'}'`
32883                { echo "$as_me:$LINENO: result: $ac_res" >&5
32884 echo "${ECHO_T}$ac_res" >&6; }
32885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32886   cat >>confdefs.h <<_ACEOF
32887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32888 _ACEOF
32889
32890 fi
32891
32892 done
32893
32894     fi
32895 fi
32896
32897
32898
32899 if test "$wxUSE_DISPLAY" = "yes"; then
32900     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
32901         { echo "$as_me:$LINENO: checking for Xinerama" >&5
32902 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
32903
32904   ac_find_libraries=
32905   for ac_dir in $SEARCH_LIB;
32906   do
32907     for ac_extension in a so sl dylib dll.a; do
32908       if test -f "$ac_dir/libXinerama.$ac_extension"; then
32909         ac_find_libraries=$ac_dir
32910         break 2
32911       fi
32912     done
32913   done
32914
32915         if test "$ac_find_libraries" != "" ; then
32916
32917     if test "$ac_find_libraries" = "default location"; then
32918     ac_path_to_link=""
32919   else
32920     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32921     result=$?
32922     if test $result = 0; then
32923       ac_path_to_link=""
32924     else
32925       ac_path_to_link=" -L$ac_find_libraries"
32926     fi
32927   fi
32928
32929             if test "$ac_path_to_link" != " -L/usr/lib" ; then
32930                 LDFLAGS="$LDFLAGS $ac_path_to_link"
32931             fi
32932             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32933             { echo "$as_me:$LINENO: result: yes" >&5
32934 echo "${ECHO_T}yes" >&6; }
32935
32936             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32937 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
32938
32939   ac_find_libraries=
32940   for ac_dir in $SEARCH_LIB;
32941   do
32942     for ac_extension in a so sl dylib dll.a; do
32943       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32944         ac_find_libraries=$ac_dir
32945         break 2
32946       fi
32947     done
32948   done
32949
32950             if test "$ac_find_libraries" != "" ; then
32951                 { echo "$as_me:$LINENO: result: yes" >&5
32952 echo "${ECHO_T}yes" >&6; }
32953
32954 for ac_header in X11/extensions/xf86vmode.h
32955 do
32956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32960   echo $ECHO_N "(cached) $ECHO_C" >&6
32961 else
32962   cat >conftest.$ac_ext <<_ACEOF
32963 /* confdefs.h.  */
32964 _ACEOF
32965 cat confdefs.h >>conftest.$ac_ext
32966 cat >>conftest.$ac_ext <<_ACEOF
32967 /* end confdefs.h.  */
32968
32969                                       #if HAVE_X11_XLIB_H
32970                                         #include <X11/Xlib.h>
32971                                       #endif
32972
32973
32974 #include <$ac_header>
32975 _ACEOF
32976 rm -f conftest.$ac_objext
32977 if { (ac_try="$ac_compile"
32978 case "(($ac_try" in
32979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980   *) ac_try_echo=$ac_try;;
32981 esac
32982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983   (eval "$ac_compile") 2>conftest.er1
32984   ac_status=$?
32985   grep -v '^ *+' conftest.er1 >conftest.err
32986   rm -f conftest.er1
32987   cat conftest.err >&5
32988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989   (exit $ac_status); } && {
32990          test -z "$ac_c_werror_flag" ||
32991          test ! -s conftest.err
32992        } && test -s conftest.$ac_objext; then
32993   eval "$as_ac_Header=yes"
32994 else
32995   echo "$as_me: failed program was:" >&5
32996 sed 's/^/| /' conftest.$ac_ext >&5
32997
32998         eval "$as_ac_Header=no"
32999 fi
33000
33001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33002 fi
33003 ac_res=`eval echo '${'$as_ac_Header'}'`
33004                { echo "$as_me:$LINENO: result: $ac_res" >&5
33005 echo "${ECHO_T}$ac_res" >&6; }
33006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33007   cat >>confdefs.h <<_ACEOF
33008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33009 _ACEOF
33010
33011                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
33012
33013 fi
33014
33015 done
33016
33017             else
33018                 { echo "$as_me:$LINENO: result: no" >&5
33019 echo "${ECHO_T}no" >&6; }
33020             fi
33021
33022         else
33023             { echo "$as_me:$LINENO: result: no" >&5
33024 echo "${ECHO_T}no" >&6; }
33025             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
33026 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
33027             wxUSE_DISPLAY="no"
33028         fi
33029     elif test "$wxUSE_MSW" = 1; then
33030         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
33031 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
33032 if test "${ac_cv_header_ddraw_h+set}" = set; then
33033   echo $ECHO_N "(cached) $ECHO_C" >&6
33034 else
33035   cat >conftest.$ac_ext <<_ACEOF
33036 /* confdefs.h.  */
33037 _ACEOF
33038 cat confdefs.h >>conftest.$ac_ext
33039 cat >>conftest.$ac_ext <<_ACEOF
33040 /* end confdefs.h.  */
33041 #include <windows.h>
33042
33043 #include <ddraw.h>
33044 _ACEOF
33045 rm -f conftest.$ac_objext
33046 if { (ac_try="$ac_compile"
33047 case "(($ac_try" in
33048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33049   *) ac_try_echo=$ac_try;;
33050 esac
33051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33052   (eval "$ac_compile") 2>conftest.er1
33053   ac_status=$?
33054   grep -v '^ *+' conftest.er1 >conftest.err
33055   rm -f conftest.er1
33056   cat conftest.err >&5
33057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058   (exit $ac_status); } && {
33059          test -z "$ac_c_werror_flag" ||
33060          test ! -s conftest.err
33061        } && test -s conftest.$ac_objext; then
33062   ac_cv_header_ddraw_h=yes
33063 else
33064   echo "$as_me: failed program was:" >&5
33065 sed 's/^/| /' conftest.$ac_ext >&5
33066
33067         ac_cv_header_ddraw_h=no
33068 fi
33069
33070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33071 fi
33072 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
33073 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
33074
33075
33076     fi
33077 fi
33078
33079 if test "$wxUSE_DETECT_SM" = "yes"; then
33080     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33081         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33082 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
33083
33084   ac_find_libraries=
33085   for ac_dir in $SEARCH_LIB;
33086   do
33087     for ac_extension in a so sl dylib dll.a; do
33088       if test -f "$ac_dir/libSM.$ac_extension"; then
33089         ac_find_libraries=$ac_dir
33090         break 2
33091       fi
33092     done
33093   done
33094
33095         if test "$ac_find_libraries" != "" ; then
33096
33097     if test "$ac_find_libraries" = "default location"; then
33098     ac_path_to_link=""
33099   else
33100     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33101     result=$?
33102     if test $result = 0; then
33103       ac_path_to_link=""
33104     else
33105       ac_path_to_link=" -L$ac_find_libraries"
33106     fi
33107   fi
33108
33109             if test "$ac_path_to_link" != " -L/usr/lib" ; then
33110                 LDFLAGS="$LDFLAGS $ac_path_to_link"
33111             fi
33112             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33113             { echo "$as_me:$LINENO: result: yes" >&5
33114 echo "${ECHO_T}yes" >&6; }
33115         else
33116             { echo "$as_me:$LINENO: result: no" >&5
33117 echo "${ECHO_T}no" >&6; }
33118             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33119 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33120             wxUSE_DETECT_SM="no"
33121         fi
33122     else
33123         wxUSE_DETECT_SM="no"
33124     fi
33125 fi
33126
33127
33128
33129 USE_OPENGL=0
33130 if test "$wxUSE_OPENGL" = "yes"; then
33131     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
33132         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
33133 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
33134         wxUSE_OPENGL="no"
33135     elif test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_COCOA" = 1; then
33136         OPENGL_LIBS="-framework OpenGL -framework AGL"
33137     elif test "$wxUSE_MSW" = 1; then
33138         OPENGL_LIBS="-lopengl32 -lglu32"
33139     else
33140                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
33141 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
33142
33143 ac_find_includes=
33144 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
33145   do
33146     if test -f "$ac_dir/GL/gl.h"; then
33147       ac_find_includes=$ac_dir
33148       break
33149     fi
33150   done
33151
33152         if test "$ac_find_includes" != "" ; then
33153             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33154 echo "${ECHO_T}found in $ac_find_includes" >&6; }
33155
33156     if test "x$ac_find_includes" = "x/usr/include"; then
33157     ac_path_to_include=""
33158   else
33159     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33160     result=$?
33161     if test $result = 0; then
33162       ac_path_to_include=""
33163     else
33164       ac_path_to_include=" -I$ac_find_includes"
33165     fi
33166   fi
33167
33168             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
33169         else
33170             { echo "$as_me:$LINENO: result: not found" >&5
33171 echo "${ECHO_T}not found" >&6; }
33172         fi
33173
33174         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33175 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
33176 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33177   echo $ECHO_N "(cached) $ECHO_C" >&6
33178 else
33179   cat >conftest.$ac_ext <<_ACEOF
33180 /* confdefs.h.  */
33181 _ACEOF
33182 cat confdefs.h >>conftest.$ac_ext
33183 cat >>conftest.$ac_ext <<_ACEOF
33184 /* end confdefs.h.  */
33185
33186
33187 #include <GL/gl.h>
33188 _ACEOF
33189 rm -f conftest.$ac_objext
33190 if { (ac_try="$ac_compile"
33191 case "(($ac_try" in
33192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33193   *) ac_try_echo=$ac_try;;
33194 esac
33195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33196   (eval "$ac_compile") 2>conftest.er1
33197   ac_status=$?
33198   grep -v '^ *+' conftest.er1 >conftest.err
33199   rm -f conftest.er1
33200   cat conftest.err >&5
33201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33202   (exit $ac_status); } && {
33203          test -z "$ac_c_werror_flag" ||
33204          test ! -s conftest.err
33205        } && test -s conftest.$ac_objext; then
33206   ac_cv_header_GL_gl_h=yes
33207 else
33208   echo "$as_me: failed program was:" >&5
33209 sed 's/^/| /' conftest.$ac_ext >&5
33210
33211         ac_cv_header_GL_gl_h=no
33212 fi
33213
33214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33215 fi
33216 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33217 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
33218 if test $ac_cv_header_GL_gl_h = yes; then
33219
33220             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
33221 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
33222 if test "${ac_cv_header_GL_glu_h+set}" = set; then
33223   echo $ECHO_N "(cached) $ECHO_C" >&6
33224 else
33225   cat >conftest.$ac_ext <<_ACEOF
33226 /* confdefs.h.  */
33227 _ACEOF
33228 cat confdefs.h >>conftest.$ac_ext
33229 cat >>conftest.$ac_ext <<_ACEOF
33230 /* end confdefs.h.  */
33231
33232
33233 #include <GL/glu.h>
33234 _ACEOF
33235 rm -f conftest.$ac_objext
33236 if { (ac_try="$ac_compile"
33237 case "(($ac_try" in
33238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33239   *) ac_try_echo=$ac_try;;
33240 esac
33241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33242   (eval "$ac_compile") 2>conftest.er1
33243   ac_status=$?
33244   grep -v '^ *+' conftest.er1 >conftest.err
33245   rm -f conftest.er1
33246   cat conftest.err >&5
33247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248   (exit $ac_status); } && {
33249          test -z "$ac_c_werror_flag" ||
33250          test ! -s conftest.err
33251        } && test -s conftest.$ac_objext; then
33252   ac_cv_header_GL_glu_h=yes
33253 else
33254   echo "$as_me: failed program was:" >&5
33255 sed 's/^/| /' conftest.$ac_ext >&5
33256
33257         ac_cv_header_GL_glu_h=no
33258 fi
33259
33260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33261 fi
33262 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
33263 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
33264 if test $ac_cv_header_GL_glu_h = yes; then
33265
33266                 found_gl=0
33267
33268                 { echo "$as_me:$LINENO: checking for -lGL" >&5
33269 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
33270
33271   ac_find_libraries=
33272   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
33273   do
33274     for ac_extension in a so sl dylib dll.a; do
33275       if test -f "$ac_dir/libGL.$ac_extension"; then
33276         ac_find_libraries=$ac_dir
33277         break 2
33278       fi
33279     done
33280   done
33281
33282                 if test "$ac_find_libraries" != "" ; then
33283                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
33284 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
33285
33286
33287     if test "$ac_find_libraries" = "default location"; then
33288     ac_path_to_link=""
33289   else
33290     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33291     result=$?
33292     if test $result = 0; then
33293       ac_path_to_link=""
33294     else
33295       ac_path_to_link=" -L$ac_find_libraries"
33296     fi
33297   fi
33298
33299                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
33300                         LDFLAGS_GL="$ac_path_to_link"
33301                     fi
33302
33303                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
33304 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
33305
33306   ac_find_libraries=
33307   for ac_dir in $SEARCH_LIB;
33308   do
33309     for ac_extension in a so sl dylib dll.a; do
33310       if test -f "$ac_dir/libGLU.$ac_extension"; then
33311         ac_find_libraries=$ac_dir
33312         break 2
33313       fi
33314     done
33315   done
33316
33317                     if test "$ac_find_libraries" != "" ; then
33318
33319     if test "$ac_find_libraries" = "default location"; then
33320     ac_path_to_link=""
33321   else
33322     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33323     result=$?
33324     if test $result = 0; then
33325       ac_path_to_link=""
33326     else
33327       ac_path_to_link=" -L$ac_find_libraries"
33328     fi
33329   fi
33330
33331                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
33332                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
33333                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33334                         fi
33335
33336                         found_gl=1
33337                         OPENGL_LIBS="-lGL -lGLU"
33338                         { echo "$as_me:$LINENO: result: yes" >&5
33339 echo "${ECHO_T}yes" >&6; }
33340                     else
33341                         { echo "$as_me:$LINENO: result: no" >&5
33342 echo "${ECHO_T}no" >&6; }
33343                     fi
33344                 else
33345                     { echo "$as_me:$LINENO: result: no" >&5
33346 echo "${ECHO_T}no" >&6; }
33347                 fi
33348
33349                 if test "$found_gl" != 1; then
33350                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33351 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
33352
33353   ac_find_libraries=
33354   for ac_dir in $SEARCH_LIB;
33355   do
33356     for ac_extension in a so sl dylib dll.a; do
33357       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33358         ac_find_libraries=$ac_dir
33359         break 2
33360       fi
33361     done
33362   done
33363
33364                     if test "$ac_find_libraries" != "" ; then
33365
33366     if test "$ac_find_libraries" = "default location"; then
33367     ac_path_to_link=""
33368   else
33369     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33370     result=$?
33371     if test $result = 0; then
33372       ac_path_to_link=""
33373     else
33374       ac_path_to_link=" -L$ac_find_libraries"
33375     fi
33376   fi
33377
33378                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33379                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
33380                         { echo "$as_me:$LINENO: result: yes" >&5
33381 echo "${ECHO_T}yes" >&6; }
33382                     else
33383                         { echo "$as_me:$LINENO: result: no" >&5
33384 echo "${ECHO_T}no" >&6; }
33385                     fi
33386                 fi
33387
33388 fi
33389
33390
33391
33392 fi
33393
33394
33395
33396         if test "x$OPENGL_LIBS" = "x"; then
33397                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33398 echo "$as_me: error: OpenGL libraries not available" >&2;}
33399    { (exit 1); exit 1; }; }
33400         fi
33401     fi
33402
33403     if test "$wxUSE_OPENGL" = "yes"; then
33404         USE_OPENGL=1
33405         cat >>confdefs.h <<\_ACEOF
33406 #define wxUSE_OPENGL 1
33407 _ACEOF
33408
33409         cat >>confdefs.h <<\_ACEOF
33410 #define wxUSE_GLCANVAS 1
33411 _ACEOF
33412
33413         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33414     fi
33415 fi
33416
33417
33418 if test -n "$TOOLKIT" ; then
33419     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33420 fi
33421
33422
33423
33424 if test "$wxUSE_SHARED" = "yes"; then
33425     case "${host}" in
33426       *-pc-msdosdjgpp )
33427                 wxUSE_SHARED=no
33428         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33429 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33430       ;;
33431     esac
33432 fi
33433
33434 if test "$wxUSE_SHARED" = "yes"; then
33435
33436
33437     case "${host}" in
33438         *-*-cygwin* | *-*-mingw* )
33439                                                                                                 wx_cv_version_script=no
33440             ;;
33441
33442         *)
33443             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33444 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
33445 if test "${wx_cv_version_script+set}" = set; then
33446   echo $ECHO_N "(cached) $ECHO_C" >&6
33447 else
33448
33449                 echo "VER_1 { *; };" >conftest.sym
33450                 echo "int main() { return 0; }" >conftest.cpp
33451
33452                 if { ac_try='
33453                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33454                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456   (eval $ac_try) 2>&5
33457   ac_status=$?
33458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459   (exit $ac_status); }; } ; then
33460                   if test -s conftest.stderr ; then
33461                       wx_cv_version_script=no
33462                   else
33463                       wx_cv_version_script=yes
33464                   fi
33465                 else
33466                   wx_cv_version_script=no
33467                 fi
33468
33469                                                                                                                                                                                                 if test $wx_cv_version_script = yes
33470                 then
33471                   echo "struct B { virtual ~B() { } }; \
33472                         struct D : public B { }; \
33473                         void F() { D d; }" > conftest.cpp
33474
33475                   if { ac_try='
33476                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33477                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33479   (eval $ac_try) 2>&5
33480   ac_status=$?
33481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482   (exit $ac_status); }; } &&
33483                      { ac_try='
33484                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33485                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33487   (eval $ac_try) 2>&5
33488   ac_status=$?
33489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490   (exit $ac_status); }; }
33491                   then
33492                     if { ac_try='
33493                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33494                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33496   (eval $ac_try) 2>&5
33497   ac_status=$?
33498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33499   (exit $ac_status); }; }
33500                     then
33501                       wx_cv_version_script=yes
33502                     else
33503                       wx_cv_version_script=no
33504                     fi
33505                   fi
33506                 fi
33507
33508                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
33509                 rm -f conftest1.output conftest2.output conftest3.output
33510
33511 fi
33512 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33513 echo "${ECHO_T}$wx_cv_version_script" >&6; }
33514
33515             if test $wx_cv_version_script = yes ; then
33516                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
33517             fi
33518             ;;
33519     esac
33520
33521
33522             if test "$wxUSE_VISIBILITY" != "no"; then
33523
33524
33525   if test -n "$GCC"; then
33526     CFLAGS_VISIBILITY="-fvisibility=hidden"
33527     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
33528     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
33529 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
33530     if test "${wx_cv_cc_visibility+set}" = set; then
33531   echo $ECHO_N "(cached) $ECHO_C" >&6
33532 else
33533
33534       wx_save_CXXFLAGS="$CXXFLAGS"
33535       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33536       ac_ext=cpp
33537 ac_cpp='$CXXCPP $CPPFLAGS'
33538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33541
33542       cat >conftest.$ac_ext <<_ACEOF
33543 /* confdefs.h.  */
33544 _ACEOF
33545 cat confdefs.h >>conftest.$ac_ext
33546 cat >>conftest.$ac_ext <<_ACEOF
33547 /* end confdefs.h.  */
33548
33549          /* we need gcc >= 4.0, older versions with visibility support
33550             didn't have class visibility: */
33551          #if defined(__GNUC__) && __GNUC__ < 4
33552          error this gcc is too old;
33553          #endif
33554
33555          /* visibility only makes sense for ELF shared libs: */
33556          #if !defined(__ELF__) && !defined(__APPLE__)
33557          error this platform has no visibility;
33558          #endif
33559
33560          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
33561          extern __attribute__((__visibility__("default"))) int exportedvar;
33562          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
33563          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
33564          class __attribute__((__visibility__("default"))) Foo {
33565            Foo() {}
33566          };
33567
33568 int
33569 main ()
33570 {
33571
33572   ;
33573   return 0;
33574 }
33575 _ACEOF
33576 rm -f conftest.$ac_objext
33577 if { (ac_try="$ac_compile"
33578 case "(($ac_try" in
33579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33580   *) ac_try_echo=$ac_try;;
33581 esac
33582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33583   (eval "$ac_compile") 2>conftest.er1
33584   ac_status=$?
33585   grep -v '^ *+' conftest.er1 >conftest.err
33586   rm -f conftest.er1
33587   cat conftest.err >&5
33588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33589   (exit $ac_status); } && {
33590          test -z "$ac_cxx_werror_flag" ||
33591          test ! -s conftest.err
33592        } && test -s conftest.$ac_objext; then
33593   wx_cv_cc_visibility=yes
33594 else
33595   echo "$as_me: failed program was:" >&5
33596 sed 's/^/| /' conftest.$ac_ext >&5
33597
33598         wx_cv_cc_visibility=no
33599 fi
33600
33601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33602       ac_ext=c
33603 ac_cpp='$CPP $CPPFLAGS'
33604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33607
33608       CXXFLAGS="$wx_save_CXXFLAGS"
33609 fi
33610
33611     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
33612 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
33613     if test $wx_cv_cc_visibility = yes; then
33614                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
33615 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
33616       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
33617   echo $ECHO_N "(cached) $ECHO_C" >&6
33618 else
33619
33620         wx_save_CXXFLAGS="$CXXFLAGS"
33621         wx_save_LDFLAGS="$LDFLAGS"
33622         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
33623         LDFLAGS="$LDFLAGS -shared -fPIC"
33624         ac_ext=cpp
33625 ac_cpp='$CXXCPP $CPPFLAGS'
33626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33629
33630         cat >conftest.$ac_ext <<_ACEOF
33631 /* confdefs.h.  */
33632 _ACEOF
33633 cat confdefs.h >>conftest.$ac_ext
33634 cat >>conftest.$ac_ext <<_ACEOF
33635 /* end confdefs.h.  */
33636
33637             #include <string>
33638
33639 int
33640 main ()
33641 {
33642
33643             std::string s("hello");
33644             return s.length();
33645
33646   ;
33647   return 0;
33648 }
33649 _ACEOF
33650 rm -f conftest.$ac_objext conftest$ac_exeext
33651 if { (ac_try="$ac_link"
33652 case "(($ac_try" in
33653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33654   *) ac_try_echo=$ac_try;;
33655 esac
33656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33657   (eval "$ac_link") 2>conftest.er1
33658   ac_status=$?
33659   grep -v '^ *+' conftest.er1 >conftest.err
33660   rm -f conftest.er1
33661   cat conftest.err >&5
33662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663   (exit $ac_status); } && {
33664          test -z "$ac_cxx_werror_flag" ||
33665          test ! -s conftest.err
33666        } && test -s conftest$ac_exeext &&
33667        $as_test_x conftest$ac_exeext; then
33668   wx_cv_cc_broken_libstdcxx_visibility=no
33669 else
33670   echo "$as_me: failed program was:" >&5
33671 sed 's/^/| /' conftest.$ac_ext >&5
33672
33673         wx_cv_cc_broken_libstdcxx_visibility=yes
33674 fi
33675
33676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33677       conftest$ac_exeext conftest.$ac_ext
33678         ac_ext=c
33679 ac_cpp='$CPP $CPPFLAGS'
33680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33683
33684         CXXFLAGS="$wx_save_CXXFLAGS"
33685         LDFLAGS="$wx_save_LDFLAGS"
33686 fi
33687
33688       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
33689 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
33690
33691       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33692         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
33693 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
33694         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
33695   echo $ECHO_N "(cached) $ECHO_C" >&6
33696 else
33697
33698           ac_ext=cpp
33699 ac_cpp='$CXXCPP $CPPFLAGS'
33700 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33701 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33702 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33703
33704           cat >conftest.$ac_ext <<_ACEOF
33705 /* confdefs.h.  */
33706 _ACEOF
33707 cat confdefs.h >>conftest.$ac_ext
33708 cat >>conftest.$ac_ext <<_ACEOF
33709 /* end confdefs.h.  */
33710
33711               #pragma GCC visibility push(default)
33712               #include <string>
33713               #pragma GCC visibility pop
33714
33715 int
33716 main ()
33717 {
33718
33719               std::string s("hello");
33720               return s.length();
33721
33722   ;
33723   return 0;
33724 }
33725 _ACEOF
33726 rm -f conftest.$ac_objext conftest$ac_exeext
33727 if { (ac_try="$ac_link"
33728 case "(($ac_try" in
33729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33730   *) ac_try_echo=$ac_try;;
33731 esac
33732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33733   (eval "$ac_link") 2>conftest.er1
33734   ac_status=$?
33735   grep -v '^ *+' conftest.er1 >conftest.err
33736   rm -f conftest.er1
33737   cat conftest.err >&5
33738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739   (exit $ac_status); } && {
33740          test -z "$ac_cxx_werror_flag" ||
33741          test ! -s conftest.err
33742        } && test -s conftest$ac_exeext &&
33743        $as_test_x conftest$ac_exeext; then
33744   wx_cv_cc_visibility_workaround=no
33745 else
33746   echo "$as_me: failed program was:" >&5
33747 sed 's/^/| /' conftest.$ac_ext >&5
33748
33749         wx_cv_cc_visibility_workaround=yes
33750 fi
33751
33752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33753       conftest$ac_exeext conftest.$ac_ext
33754           ac_ext=c
33755 ac_cpp='$CPP $CPPFLAGS'
33756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33759
33760
33761 fi
33762
33763         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
33764 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
33765
33766         if test $wx_cv_cc_visibility_workaround = no; then
33767                     wx_cv_cc_visibility=no
33768         fi
33769       fi
33770     fi
33771
33772     if test $wx_cv_cc_visibility = yes; then
33773       cat >>confdefs.h <<\_ACEOF
33774 #define HAVE_VISIBILITY 1
33775 _ACEOF
33776
33777       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
33778         cat >>confdefs.h <<\_ACEOF
33779 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
33780 _ACEOF
33781
33782       fi
33783     else
33784       CFLAGS_VISIBILITY=""
33785       CXXFLAGS_VISIBILITY=""
33786     fi
33787
33788
33789   fi
33790
33791     fi
33792
33793         if test "x$SUNCXX" = xyes; then
33794         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
33795         WXCONFIG_RPATH="-R\$libdir"
33796     else
33797     case "${host}" in
33798       *-*-linux* | *-*-gnu* )
33799         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33800         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33801         ;;
33802
33803       *-*-solaris2* )
33804
33805                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
33806
33807                         saveLdflags="$LDFLAGS"
33808         LDFLAGS="$saveLdflags -Wl,-rpath,/"
33809         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33810 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
33811         cat >conftest.$ac_ext <<_ACEOF
33812 /* confdefs.h.  */
33813 _ACEOF
33814 cat confdefs.h >>conftest.$ac_ext
33815 cat >>conftest.$ac_ext <<_ACEOF
33816 /* end confdefs.h.  */
33817
33818 int
33819 main ()
33820 {
33821
33822   ;
33823   return 0;
33824 }
33825 _ACEOF
33826 rm -f conftest.$ac_objext conftest$ac_exeext
33827 if { (ac_try="$ac_link"
33828 case "(($ac_try" in
33829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33830   *) ac_try_echo=$ac_try;;
33831 esac
33832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33833   (eval "$ac_link") 2>conftest.er1
33834   ac_status=$?
33835   grep -v '^ *+' conftest.er1 >conftest.err
33836   rm -f conftest.er1
33837   cat conftest.err >&5
33838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33839   (exit $ac_status); } && {
33840          test -z "$ac_c_werror_flag" ||
33841          test ! -s conftest.err
33842        } && test -s conftest$ac_exeext &&
33843        $as_test_x conftest$ac_exeext; then
33844
33845                 { echo "$as_me:$LINENO: result: yes" >&5
33846 echo "${ECHO_T}yes" >&6; }
33847                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
33848                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
33849
33850 else
33851   echo "$as_me: failed program was:" >&5
33852 sed 's/^/| /' conftest.$ac_ext >&5
33853
33854
33855                 { echo "$as_me:$LINENO: result: no" >&5
33856 echo "${ECHO_T}no" >&6; }
33857                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33858 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
33859                 LDFLAGS="$saveLdflags -Wl,-R,/"
33860                 cat >conftest.$ac_ext <<_ACEOF
33861 /* confdefs.h.  */
33862 _ACEOF
33863 cat confdefs.h >>conftest.$ac_ext
33864 cat >>conftest.$ac_ext <<_ACEOF
33865 /* end confdefs.h.  */
33866
33867 int
33868 main ()
33869 {
33870
33871   ;
33872   return 0;
33873 }
33874 _ACEOF
33875 rm -f conftest.$ac_objext conftest$ac_exeext
33876 if { (ac_try="$ac_link"
33877 case "(($ac_try" in
33878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33879   *) ac_try_echo=$ac_try;;
33880 esac
33881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33882   (eval "$ac_link") 2>conftest.er1
33883   ac_status=$?
33884   grep -v '^ *+' conftest.er1 >conftest.err
33885   rm -f conftest.er1
33886   cat conftest.err >&5
33887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33888   (exit $ac_status); } && {
33889          test -z "$ac_c_werror_flag" ||
33890          test ! -s conftest.err
33891        } && test -s conftest$ac_exeext &&
33892        $as_test_x conftest$ac_exeext; then
33893
33894                         { echo "$as_me:$LINENO: result: yes" >&5
33895 echo "${ECHO_T}yes" >&6; }
33896                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
33897                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
33898
33899 else
33900   echo "$as_me: failed program was:" >&5
33901 sed 's/^/| /' conftest.$ac_ext >&5
33902
33903
33904                         { echo "$as_me:$LINENO: result: no" >&5
33905 echo "${ECHO_T}no" >&6; }
33906
33907 fi
33908
33909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33910       conftest$ac_exeext conftest.$ac_ext
33911
33912 fi
33913
33914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33915       conftest$ac_exeext conftest.$ac_ext
33916         LDFLAGS="$saveLdflags"
33917       ;;
33918
33919       *-*-darwin* )
33920         install_name_tool=`which install_name_tool`
33921         if test "$install_name_tool" -a -x "$install_name_tool"; then
33922             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33923             cat <<EOF >change-install-names
33924 #!/bin/sh
33925 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33926 inst_cmd="install_name_tool "
33927 for i in \${libnames} ; do
33928     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33929 done
33930 \${inst_cmd} \${3}
33931 EOF
33932             chmod +x change-install-names
33933         fi
33934       ;;
33935
33936       *-*-cygwin* | *-*-mingw32* )
33937         ;;
33938
33939       *-*-hpux* )
33940         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
33941         WXCONFIG_RPATH="-Wl,+b,\$libdir"
33942         ;;
33943
33944     esac
33945     fi
33946
33947             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33948
33949     if test $wxUSE_RPATH = "no"; then
33950         SAMPLES_RPATH_FLAG=''
33951         SAMPLES_RPATH_POSTLINK=''
33952         WXCONFIG_RPATH=''
33953     fi
33954
33955     SHARED=1
33956
33957 else
33958
33959     config_linkage_component="-static"
33960     SHARED=0
33961
33962 fi
33963
33964
33965 UNICODE=0
33966 lib_unicode_suffix=
33967 WX_CHARTYPE="ansi"
33968 if test "$wxUSE_UNICODE" = "yes"; then
33969     lib_unicode_suffix=u
33970     WX_CHARTYPE="unicode"
33971     UNICODE=1
33972 fi
33973
33974 lib_debug_suffix=
33975 WX_DEBUGTYPE="release"
33976 DEBUG_FLAG=0
33977 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33978     lib_debug_suffix=d
33979     WX_DEBUGTYPE="debug"
33980     DEBUG_FLAG=1
33981 fi
33982
33983 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33984 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
33985
33986 DEBUG_INFO=0
33987 if test "$wxUSE_DEBUG_INFO" = "yes"; then
33988     DEBUG_INFO=1
33989 fi
33990
33991 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'`
33992
33993 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
33994
33995 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
33996
33997 if test "$cross_compiling" = "yes"; then
33998     HOST_SUFFIX="-$host_alias"
33999     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
34000     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
34001 fi
34002
34003 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34004 if test "${TOOLKIT_DIR}" = "os2"; then
34005     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34006 else
34007     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
34008 fi
34009
34010
34011
34012 if test "$wxUSE_COCOA" = 1; then
34013
34014     ac_ext=c
34015 ac_cpp='$CPP $CPPFLAGS'
34016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34019
34020 ac_ext=m
34021
34022     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
34023 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
34024     cat >conftest.$ac_ext <<_ACEOF
34025 /* confdefs.h.  */
34026 _ACEOF
34027 cat confdefs.h >>conftest.$ac_ext
34028 cat >>conftest.$ac_ext <<_ACEOF
34029 /* end confdefs.h.  */
34030 #include <AppKit/NSEvent.h>
34031 #include <CoreFoundation/CoreFoundation.h>
34032
34033 int
34034 main ()
34035 {
34036
34037   ;
34038   return 0;
34039 }
34040 _ACEOF
34041 rm -f conftest.$ac_objext
34042 if { (ac_try="$ac_compile"
34043 case "(($ac_try" in
34044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34045   *) ac_try_echo=$ac_try;;
34046 esac
34047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34048   (eval "$ac_compile") 2>conftest.er1
34049   ac_status=$?
34050   grep -v '^ *+' conftest.er1 >conftest.err
34051   rm -f conftest.er1
34052   cat conftest.err >&5
34053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34054   (exit $ac_status); } && {
34055          test -z "$ac_c_werror_flag" ||
34056          test ! -s conftest.err
34057        } && test -s conftest.$ac_objext; then
34058   { echo "$as_me:$LINENO: result: no" >&5
34059 echo "${ECHO_T}no" >&6; }
34060 else
34061   echo "$as_me: failed program was:" >&5
34062 sed 's/^/| /' conftest.$ac_ext >&5
34063
34064         { echo "$as_me:$LINENO: result: yes" >&5
34065 echo "${ECHO_T}yes" >&6; }
34066         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
34067 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
34068         cat >conftest.$ac_ext <<_ACEOF
34069 /* confdefs.h.  */
34070 _ACEOF
34071 cat confdefs.h >>conftest.$ac_ext
34072 cat >>conftest.$ac_ext <<_ACEOF
34073 /* end confdefs.h.  */
34074 #define __Point__ 1
34075 #include <AppKit/NSEvent.h>
34076 #include <CoreFoundation/CoreFoundation.h>
34077
34078 int
34079 main ()
34080 {
34081
34082   ;
34083   return 0;
34084 }
34085 _ACEOF
34086 rm -f conftest.$ac_objext
34087 if { (ac_try="$ac_compile"
34088 case "(($ac_try" in
34089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34090   *) ac_try_echo=$ac_try;;
34091 esac
34092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34093   (eval "$ac_compile") 2>conftest.er1
34094   ac_status=$?
34095   grep -v '^ *+' conftest.er1 >conftest.err
34096   rm -f conftest.er1
34097   cat conftest.err >&5
34098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34099   (exit $ac_status); } && {
34100          test -z "$ac_c_werror_flag" ||
34101          test ! -s conftest.err
34102        } && test -s conftest.$ac_objext; then
34103   { echo "$as_me:$LINENO: result: yes" >&5
34104 echo "${ECHO_T}yes" >&6; }
34105             cat >>confdefs.h <<\_ACEOF
34106 #define __Point__ 1
34107 _ACEOF
34108
34109
34110 else
34111   echo "$as_me: failed program was:" >&5
34112 sed 's/^/| /' conftest.$ac_ext >&5
34113
34114         { { echo "$as_me:$LINENO: error: no
34115 See \`config.log' for more details." >&5
34116 echo "$as_me: error: no
34117 See \`config.log' for more details." >&2;}
34118    { (exit 1); exit 1; }; }
34119
34120 fi
34121
34122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34123
34124 fi
34125
34126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34127     ac_ext=c
34128 ac_cpp='$CPP $CPPFLAGS'
34129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34132
34133 fi
34134
34135
34136 { echo "$as_me:$LINENO: checking for mode_t" >&5
34137 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
34138 if test "${ac_cv_type_mode_t+set}" = set; then
34139   echo $ECHO_N "(cached) $ECHO_C" >&6
34140 else
34141   cat >conftest.$ac_ext <<_ACEOF
34142 /* confdefs.h.  */
34143 _ACEOF
34144 cat confdefs.h >>conftest.$ac_ext
34145 cat >>conftest.$ac_ext <<_ACEOF
34146 /* end confdefs.h.  */
34147 $ac_includes_default
34148 typedef mode_t ac__type_new_;
34149 int
34150 main ()
34151 {
34152 if ((ac__type_new_ *) 0)
34153   return 0;
34154 if (sizeof (ac__type_new_))
34155   return 0;
34156   ;
34157   return 0;
34158 }
34159 _ACEOF
34160 rm -f conftest.$ac_objext
34161 if { (ac_try="$ac_compile"
34162 case "(($ac_try" in
34163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34164   *) ac_try_echo=$ac_try;;
34165 esac
34166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34167   (eval "$ac_compile") 2>conftest.er1
34168   ac_status=$?
34169   grep -v '^ *+' conftest.er1 >conftest.err
34170   rm -f conftest.er1
34171   cat conftest.err >&5
34172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34173   (exit $ac_status); } && {
34174          test -z "$ac_c_werror_flag" ||
34175          test ! -s conftest.err
34176        } && test -s conftest.$ac_objext; then
34177   ac_cv_type_mode_t=yes
34178 else
34179   echo "$as_me: failed program was:" >&5
34180 sed 's/^/| /' conftest.$ac_ext >&5
34181
34182         ac_cv_type_mode_t=no
34183 fi
34184
34185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34186 fi
34187 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34188 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
34189 if test $ac_cv_type_mode_t = yes; then
34190   :
34191 else
34192
34193 cat >>confdefs.h <<_ACEOF
34194 #define mode_t int
34195 _ACEOF
34196
34197 fi
34198
34199 { echo "$as_me:$LINENO: checking for off_t" >&5
34200 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
34201 if test "${ac_cv_type_off_t+set}" = set; then
34202   echo $ECHO_N "(cached) $ECHO_C" >&6
34203 else
34204   cat >conftest.$ac_ext <<_ACEOF
34205 /* confdefs.h.  */
34206 _ACEOF
34207 cat confdefs.h >>conftest.$ac_ext
34208 cat >>conftest.$ac_ext <<_ACEOF
34209 /* end confdefs.h.  */
34210 $ac_includes_default
34211 typedef off_t ac__type_new_;
34212 int
34213 main ()
34214 {
34215 if ((ac__type_new_ *) 0)
34216   return 0;
34217 if (sizeof (ac__type_new_))
34218   return 0;
34219   ;
34220   return 0;
34221 }
34222 _ACEOF
34223 rm -f conftest.$ac_objext
34224 if { (ac_try="$ac_compile"
34225 case "(($ac_try" in
34226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34227   *) ac_try_echo=$ac_try;;
34228 esac
34229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34230   (eval "$ac_compile") 2>conftest.er1
34231   ac_status=$?
34232   grep -v '^ *+' conftest.er1 >conftest.err
34233   rm -f conftest.er1
34234   cat conftest.err >&5
34235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236   (exit $ac_status); } && {
34237          test -z "$ac_c_werror_flag" ||
34238          test ! -s conftest.err
34239        } && test -s conftest.$ac_objext; then
34240   ac_cv_type_off_t=yes
34241 else
34242   echo "$as_me: failed program was:" >&5
34243 sed 's/^/| /' conftest.$ac_ext >&5
34244
34245         ac_cv_type_off_t=no
34246 fi
34247
34248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34249 fi
34250 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34251 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
34252 if test $ac_cv_type_off_t = yes; then
34253   :
34254 else
34255
34256 cat >>confdefs.h <<_ACEOF
34257 #define off_t long int
34258 _ACEOF
34259
34260 fi
34261
34262 { echo "$as_me:$LINENO: checking for pid_t" >&5
34263 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
34264 if test "${ac_cv_type_pid_t+set}" = set; then
34265   echo $ECHO_N "(cached) $ECHO_C" >&6
34266 else
34267   cat >conftest.$ac_ext <<_ACEOF
34268 /* confdefs.h.  */
34269 _ACEOF
34270 cat confdefs.h >>conftest.$ac_ext
34271 cat >>conftest.$ac_ext <<_ACEOF
34272 /* end confdefs.h.  */
34273 $ac_includes_default
34274 typedef pid_t ac__type_new_;
34275 int
34276 main ()
34277 {
34278 if ((ac__type_new_ *) 0)
34279   return 0;
34280 if (sizeof (ac__type_new_))
34281   return 0;
34282   ;
34283   return 0;
34284 }
34285 _ACEOF
34286 rm -f conftest.$ac_objext
34287 if { (ac_try="$ac_compile"
34288 case "(($ac_try" in
34289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34290   *) ac_try_echo=$ac_try;;
34291 esac
34292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34293   (eval "$ac_compile") 2>conftest.er1
34294   ac_status=$?
34295   grep -v '^ *+' conftest.er1 >conftest.err
34296   rm -f conftest.er1
34297   cat conftest.err >&5
34298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34299   (exit $ac_status); } && {
34300          test -z "$ac_c_werror_flag" ||
34301          test ! -s conftest.err
34302        } && test -s conftest.$ac_objext; then
34303   ac_cv_type_pid_t=yes
34304 else
34305   echo "$as_me: failed program was:" >&5
34306 sed 's/^/| /' conftest.$ac_ext >&5
34307
34308         ac_cv_type_pid_t=no
34309 fi
34310
34311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34312 fi
34313 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34314 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
34315 if test $ac_cv_type_pid_t = yes; then
34316   :
34317 else
34318
34319 cat >>confdefs.h <<_ACEOF
34320 #define pid_t int
34321 _ACEOF
34322
34323 fi
34324
34325 { echo "$as_me:$LINENO: checking for size_t" >&5
34326 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34327 if test "${ac_cv_type_size_t+set}" = set; then
34328   echo $ECHO_N "(cached) $ECHO_C" >&6
34329 else
34330   cat >conftest.$ac_ext <<_ACEOF
34331 /* confdefs.h.  */
34332 _ACEOF
34333 cat confdefs.h >>conftest.$ac_ext
34334 cat >>conftest.$ac_ext <<_ACEOF
34335 /* end confdefs.h.  */
34336 $ac_includes_default
34337 typedef size_t ac__type_new_;
34338 int
34339 main ()
34340 {
34341 if ((ac__type_new_ *) 0)
34342   return 0;
34343 if (sizeof (ac__type_new_))
34344   return 0;
34345   ;
34346   return 0;
34347 }
34348 _ACEOF
34349 rm -f conftest.$ac_objext
34350 if { (ac_try="$ac_compile"
34351 case "(($ac_try" in
34352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34353   *) ac_try_echo=$ac_try;;
34354 esac
34355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34356   (eval "$ac_compile") 2>conftest.er1
34357   ac_status=$?
34358   grep -v '^ *+' conftest.er1 >conftest.err
34359   rm -f conftest.er1
34360   cat conftest.err >&5
34361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34362   (exit $ac_status); } && {
34363          test -z "$ac_c_werror_flag" ||
34364          test ! -s conftest.err
34365        } && test -s conftest.$ac_objext; then
34366   ac_cv_type_size_t=yes
34367 else
34368   echo "$as_me: failed program was:" >&5
34369 sed 's/^/| /' conftest.$ac_ext >&5
34370
34371         ac_cv_type_size_t=no
34372 fi
34373
34374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34375 fi
34376 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34377 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34378 if test $ac_cv_type_size_t = yes; then
34379   :
34380 else
34381
34382 cat >>confdefs.h <<_ACEOF
34383 #define size_t unsigned int
34384 _ACEOF
34385
34386 fi
34387
34388
34389 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34390 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34391 if test "${ac_cv_type_ssize_t+set}" = set; then
34392   echo $ECHO_N "(cached) $ECHO_C" >&6
34393 else
34394   cat >conftest.$ac_ext <<_ACEOF
34395 /* confdefs.h.  */
34396 _ACEOF
34397 cat confdefs.h >>conftest.$ac_ext
34398 cat >>conftest.$ac_ext <<_ACEOF
34399 /* end confdefs.h.  */
34400 $ac_includes_default
34401 typedef ssize_t ac__type_new_;
34402 int
34403 main ()
34404 {
34405 if ((ac__type_new_ *) 0)
34406   return 0;
34407 if (sizeof (ac__type_new_))
34408   return 0;
34409   ;
34410   return 0;
34411 }
34412 _ACEOF
34413 rm -f conftest.$ac_objext
34414 if { (ac_try="$ac_compile"
34415 case "(($ac_try" in
34416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34417   *) ac_try_echo=$ac_try;;
34418 esac
34419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34420   (eval "$ac_compile") 2>conftest.er1
34421   ac_status=$?
34422   grep -v '^ *+' conftest.er1 >conftest.err
34423   rm -f conftest.er1
34424   cat conftest.err >&5
34425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426   (exit $ac_status); } && {
34427          test -z "$ac_c_werror_flag" ||
34428          test ! -s conftest.err
34429        } && test -s conftest.$ac_objext; then
34430   ac_cv_type_ssize_t=yes
34431 else
34432   echo "$as_me: failed program was:" >&5
34433 sed 's/^/| /' conftest.$ac_ext >&5
34434
34435         ac_cv_type_ssize_t=no
34436 fi
34437
34438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34439 fi
34440 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34441 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34442 if test $ac_cv_type_ssize_t = yes; then
34443
34444 cat >>confdefs.h <<_ACEOF
34445 #define HAVE_SSIZE_T 1
34446 _ACEOF
34447
34448
34449 fi
34450
34451
34452 ac_ext=cpp
34453 ac_cpp='$CXXCPP $CPPFLAGS'
34454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34457  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34458 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
34459 if test "${wx_cv_size_t_is_uint+set}" = set; then
34460   echo $ECHO_N "(cached) $ECHO_C" >&6
34461 else
34462
34463                             cat >conftest.$ac_ext <<_ACEOF
34464 /* confdefs.h.  */
34465 _ACEOF
34466 cat confdefs.h >>conftest.$ac_ext
34467 cat >>conftest.$ac_ext <<_ACEOF
34468 /* end confdefs.h.  */
34469 #include <stddef.h>
34470 int
34471 main ()
34472 {
34473
34474             return 0; }
34475
34476             struct Foo { void foo(size_t); void foo(unsigned int); };
34477
34478             int bar() {
34479
34480   ;
34481   return 0;
34482 }
34483 _ACEOF
34484 rm -f conftest.$ac_objext
34485 if { (ac_try="$ac_compile"
34486 case "(($ac_try" in
34487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34488   *) ac_try_echo=$ac_try;;
34489 esac
34490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34491   (eval "$ac_compile") 2>conftest.er1
34492   ac_status=$?
34493   grep -v '^ *+' conftest.er1 >conftest.err
34494   rm -f conftest.er1
34495   cat conftest.err >&5
34496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34497   (exit $ac_status); } && {
34498          test -z "$ac_cxx_werror_flag" ||
34499          test ! -s conftest.err
34500        } && test -s conftest.$ac_objext; then
34501   wx_cv_size_t_is_uint=no
34502 else
34503   echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34505
34506         wx_cv_size_t_is_uint=yes
34507
34508 fi
34509
34510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34511
34512
34513 fi
34514 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34515 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
34516
34517 if test "$wx_cv_size_t_is_uint" = "yes"; then
34518     cat >>confdefs.h <<\_ACEOF
34519 #define wxSIZE_T_IS_UINT 1
34520 _ACEOF
34521
34522 else
34523     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34524 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
34525 if test "${wx_cv_size_t_is_ulong+set}" = set; then
34526   echo $ECHO_N "(cached) $ECHO_C" >&6
34527 else
34528   cat >conftest.$ac_ext <<_ACEOF
34529 /* confdefs.h.  */
34530 _ACEOF
34531 cat confdefs.h >>conftest.$ac_ext
34532 cat >>conftest.$ac_ext <<_ACEOF
34533 /* end confdefs.h.  */
34534 #include <stddef.h>
34535 int
34536 main ()
34537 {
34538
34539                 return 0; }
34540
34541                 struct Foo { void foo(size_t); void foo(unsigned long); };
34542
34543                 int bar() {
34544
34545   ;
34546   return 0;
34547 }
34548 _ACEOF
34549 rm -f conftest.$ac_objext
34550 if { (ac_try="$ac_compile"
34551 case "(($ac_try" in
34552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34553   *) ac_try_echo=$ac_try;;
34554 esac
34555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34556   (eval "$ac_compile") 2>conftest.er1
34557   ac_status=$?
34558   grep -v '^ *+' conftest.er1 >conftest.err
34559   rm -f conftest.er1
34560   cat conftest.err >&5
34561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562   (exit $ac_status); } && {
34563          test -z "$ac_cxx_werror_flag" ||
34564          test ! -s conftest.err
34565        } && test -s conftest.$ac_objext; then
34566   wx_cv_size_t_is_ulong=no
34567 else
34568   echo "$as_me: failed program was:" >&5
34569 sed 's/^/| /' conftest.$ac_ext >&5
34570
34571         wx_cv_size_t_is_ulong=yes
34572
34573 fi
34574
34575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34576
34577 fi
34578 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34579 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
34580
34581     if test "$wx_cv_size_t_is_ulong" = "yes"; then
34582         cat >>confdefs.h <<\_ACEOF
34583 #define wxSIZE_T_IS_ULONG 1
34584 _ACEOF
34585
34586     fi
34587 fi
34588
34589 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
34590 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
34591 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
34592   echo $ECHO_N "(cached) $ECHO_C" >&6
34593 else
34594   cat >conftest.$ac_ext <<_ACEOF
34595 /* confdefs.h.  */
34596 _ACEOF
34597 cat confdefs.h >>conftest.$ac_ext
34598 cat >>conftest.$ac_ext <<_ACEOF
34599 /* end confdefs.h.  */
34600 #include <wchar.h>
34601 int
34602 main ()
34603 {
34604
34605             return 0; }
34606
34607             struct Foo { void foo(wchar_t);
34608                          void foo(unsigned short);
34609                          void foo(unsigned int);
34610                          void foo(unsigned long); };
34611
34612             int bar() {
34613
34614   ;
34615   return 0;
34616 }
34617 _ACEOF
34618 rm -f conftest.$ac_objext
34619 if { (ac_try="$ac_compile"
34620 case "(($ac_try" in
34621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34622   *) ac_try_echo=$ac_try;;
34623 esac
34624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34625   (eval "$ac_compile") 2>conftest.er1
34626   ac_status=$?
34627   grep -v '^ *+' conftest.er1 >conftest.err
34628   rm -f conftest.er1
34629   cat conftest.err >&5
34630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34631   (exit $ac_status); } && {
34632          test -z "$ac_cxx_werror_flag" ||
34633          test ! -s conftest.err
34634        } && test -s conftest.$ac_objext; then
34635   wx_cv_wchar_t_is_separate_type=yes
34636 else
34637   echo "$as_me: failed program was:" >&5
34638 sed 's/^/| /' conftest.$ac_ext >&5
34639
34640         wx_cv_wchar_t_is_separate_type=no
34641
34642 fi
34643
34644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34645
34646 fi
34647 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
34648 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
34649
34650 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
34651     cat >>confdefs.h <<\_ACEOF
34652 #define wxWCHAR_T_IS_REAL_TYPE 1
34653 _ACEOF
34654
34655 else
34656     cat >>confdefs.h <<\_ACEOF
34657 #define wxWCHAR_T_IS_REAL_TYPE 0
34658 _ACEOF
34659
34660 fi
34661
34662 ac_ext=c
34663 ac_cpp='$CPP $CPPFLAGS'
34664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34667
34668
34669 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34670 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
34671 if test "${wx_cv_struct_pw_gecos+set}" = set; then
34672   echo $ECHO_N "(cached) $ECHO_C" >&6
34673 else
34674
34675         cat >conftest.$ac_ext <<_ACEOF
34676 /* confdefs.h.  */
34677 _ACEOF
34678 cat confdefs.h >>conftest.$ac_ext
34679 cat >>conftest.$ac_ext <<_ACEOF
34680 /* end confdefs.h.  */
34681 #include <pwd.h>
34682 int
34683 main ()
34684 {
34685
34686                 char *p;
34687                 struct passwd *pw;
34688                 p = pw->pw_gecos;
34689
34690   ;
34691   return 0;
34692 }
34693 _ACEOF
34694 rm -f conftest.$ac_objext
34695 if { (ac_try="$ac_compile"
34696 case "(($ac_try" in
34697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34698   *) ac_try_echo=$ac_try;;
34699 esac
34700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34701   (eval "$ac_compile") 2>conftest.er1
34702   ac_status=$?
34703   grep -v '^ *+' conftest.er1 >conftest.err
34704   rm -f conftest.er1
34705   cat conftest.err >&5
34706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707   (exit $ac_status); } && {
34708          test -z "$ac_c_werror_flag" ||
34709          test ! -s conftest.err
34710        } && test -s conftest.$ac_objext; then
34711
34712                 wx_cv_struct_pw_gecos=yes
34713
34714 else
34715   echo "$as_me: failed program was:" >&5
34716 sed 's/^/| /' conftest.$ac_ext >&5
34717
34718
34719                 wx_cv_struct_pw_gecos=no
34720
34721
34722 fi
34723
34724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34725
34726
34727 fi
34728 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34729 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
34730
34731 if test "$wx_cv_struct_pw_gecos" = "yes"; then
34732     cat >>confdefs.h <<\_ACEOF
34733 #define HAVE_PW_GECOS 1
34734 _ACEOF
34735
34736 fi
34737
34738
34739 if test "$wxUSE_WCHAR_T" = "yes"; then
34740     cat >>confdefs.h <<\_ACEOF
34741 #define wxUSE_WCHAR_T 1
34742 _ACEOF
34743
34744
34745         WCSLEN_FOUND=0
34746     WCHAR_LINK=
34747
34748 for ac_func in wcslen
34749 do
34750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34754   echo $ECHO_N "(cached) $ECHO_C" >&6
34755 else
34756   cat >conftest.$ac_ext <<_ACEOF
34757 /* confdefs.h.  */
34758 _ACEOF
34759 cat confdefs.h >>conftest.$ac_ext
34760 cat >>conftest.$ac_ext <<_ACEOF
34761 /* end confdefs.h.  */
34762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34764 #define $ac_func innocuous_$ac_func
34765
34766 /* System header to define __stub macros and hopefully few prototypes,
34767     which can conflict with char $ac_func (); below.
34768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34769     <limits.h> exists even on freestanding compilers.  */
34770
34771 #ifdef __STDC__
34772 # include <limits.h>
34773 #else
34774 # include <assert.h>
34775 #endif
34776
34777 #undef $ac_func
34778
34779 /* Override any GCC internal prototype to avoid an error.
34780    Use char because int might match the return type of a GCC
34781    builtin and then its argument prototype would still apply.  */
34782 #ifdef __cplusplus
34783 extern "C"
34784 #endif
34785 char $ac_func ();
34786 /* The GNU C library defines this for functions which it implements
34787     to always fail with ENOSYS.  Some functions are actually named
34788     something starting with __ and the normal name is an alias.  */
34789 #if defined __stub_$ac_func || defined __stub___$ac_func
34790 choke me
34791 #endif
34792
34793 int
34794 main ()
34795 {
34796 return $ac_func ();
34797   ;
34798   return 0;
34799 }
34800 _ACEOF
34801 rm -f conftest.$ac_objext conftest$ac_exeext
34802 if { (ac_try="$ac_link"
34803 case "(($ac_try" in
34804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34805   *) ac_try_echo=$ac_try;;
34806 esac
34807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34808   (eval "$ac_link") 2>conftest.er1
34809   ac_status=$?
34810   grep -v '^ *+' conftest.er1 >conftest.err
34811   rm -f conftest.er1
34812   cat conftest.err >&5
34813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814   (exit $ac_status); } && {
34815          test -z "$ac_c_werror_flag" ||
34816          test ! -s conftest.err
34817        } && test -s conftest$ac_exeext &&
34818        $as_test_x conftest$ac_exeext; then
34819   eval "$as_ac_var=yes"
34820 else
34821   echo "$as_me: failed program was:" >&5
34822 sed 's/^/| /' conftest.$ac_ext >&5
34823
34824         eval "$as_ac_var=no"
34825 fi
34826
34827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34828       conftest$ac_exeext conftest.$ac_ext
34829 fi
34830 ac_res=`eval echo '${'$as_ac_var'}'`
34831                { echo "$as_me:$LINENO: result: $ac_res" >&5
34832 echo "${ECHO_T}$ac_res" >&6; }
34833 if test `eval echo '${'$as_ac_var'}'` = yes; then
34834   cat >>confdefs.h <<_ACEOF
34835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34836 _ACEOF
34837  WCSLEN_FOUND=1
34838 fi
34839 done
34840
34841
34842     if test "$WCSLEN_FOUND" = 0; then
34843         if test "$TOOLKIT" = "MSW"; then
34844             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34845 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
34846 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34847   echo $ECHO_N "(cached) $ECHO_C" >&6
34848 else
34849   ac_check_lib_save_LIBS=$LIBS
34850 LIBS="-lmsvcrt  $LIBS"
34851 cat >conftest.$ac_ext <<_ACEOF
34852 /* confdefs.h.  */
34853 _ACEOF
34854 cat confdefs.h >>conftest.$ac_ext
34855 cat >>conftest.$ac_ext <<_ACEOF
34856 /* end confdefs.h.  */
34857
34858 /* Override any GCC internal prototype to avoid an error.
34859    Use char because int might match the return type of a GCC
34860    builtin and then its argument prototype would still apply.  */
34861 #ifdef __cplusplus
34862 extern "C"
34863 #endif
34864 char wcslen ();
34865 int
34866 main ()
34867 {
34868 return wcslen ();
34869   ;
34870   return 0;
34871 }
34872 _ACEOF
34873 rm -f conftest.$ac_objext conftest$ac_exeext
34874 if { (ac_try="$ac_link"
34875 case "(($ac_try" in
34876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34877   *) ac_try_echo=$ac_try;;
34878 esac
34879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34880   (eval "$ac_link") 2>conftest.er1
34881   ac_status=$?
34882   grep -v '^ *+' conftest.er1 >conftest.err
34883   rm -f conftest.er1
34884   cat conftest.err >&5
34885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886   (exit $ac_status); } && {
34887          test -z "$ac_c_werror_flag" ||
34888          test ! -s conftest.err
34889        } && test -s conftest$ac_exeext &&
34890        $as_test_x conftest$ac_exeext; then
34891   ac_cv_lib_msvcrt_wcslen=yes
34892 else
34893   echo "$as_me: failed program was:" >&5
34894 sed 's/^/| /' conftest.$ac_ext >&5
34895
34896         ac_cv_lib_msvcrt_wcslen=no
34897 fi
34898
34899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34900       conftest$ac_exeext conftest.$ac_ext
34901 LIBS=$ac_check_lib_save_LIBS
34902 fi
34903 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34904 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
34905 if test $ac_cv_lib_msvcrt_wcslen = yes; then
34906   WCHAR_OK=1
34907 fi
34908
34909         else
34910             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34911 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
34912 if test "${ac_cv_lib_w_wcslen+set}" = set; then
34913   echo $ECHO_N "(cached) $ECHO_C" >&6
34914 else
34915   ac_check_lib_save_LIBS=$LIBS
34916 LIBS="-lw  $LIBS"
34917 cat >conftest.$ac_ext <<_ACEOF
34918 /* confdefs.h.  */
34919 _ACEOF
34920 cat confdefs.h >>conftest.$ac_ext
34921 cat >>conftest.$ac_ext <<_ACEOF
34922 /* end confdefs.h.  */
34923
34924 /* Override any GCC internal prototype to avoid an error.
34925    Use char because int might match the return type of a GCC
34926    builtin and then its argument prototype would still apply.  */
34927 #ifdef __cplusplus
34928 extern "C"
34929 #endif
34930 char wcslen ();
34931 int
34932 main ()
34933 {
34934 return wcslen ();
34935   ;
34936   return 0;
34937 }
34938 _ACEOF
34939 rm -f conftest.$ac_objext conftest$ac_exeext
34940 if { (ac_try="$ac_link"
34941 case "(($ac_try" in
34942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34943   *) ac_try_echo=$ac_try;;
34944 esac
34945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34946   (eval "$ac_link") 2>conftest.er1
34947   ac_status=$?
34948   grep -v '^ *+' conftest.er1 >conftest.err
34949   rm -f conftest.er1
34950   cat conftest.err >&5
34951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34952   (exit $ac_status); } && {
34953          test -z "$ac_c_werror_flag" ||
34954          test ! -s conftest.err
34955        } && test -s conftest$ac_exeext &&
34956        $as_test_x conftest$ac_exeext; then
34957   ac_cv_lib_w_wcslen=yes
34958 else
34959   echo "$as_me: failed program was:" >&5
34960 sed 's/^/| /' conftest.$ac_ext >&5
34961
34962         ac_cv_lib_w_wcslen=no
34963 fi
34964
34965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34966       conftest$ac_exeext conftest.$ac_ext
34967 LIBS=$ac_check_lib_save_LIBS
34968 fi
34969 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34970 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
34971 if test $ac_cv_lib_w_wcslen = yes; then
34972
34973                             WCHAR_LINK=" -lw"
34974                             WCSLEN_FOUND=1
34975
34976 fi
34977
34978         fi
34979     fi
34980
34981     if test "$WCSLEN_FOUND" = 1; then
34982         cat >>confdefs.h <<\_ACEOF
34983 #define HAVE_WCSLEN 1
34984 _ACEOF
34985
34986     fi
34987
34988
34989 for ac_func in wcsdup
34990 do
34991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34995   echo $ECHO_N "(cached) $ECHO_C" >&6
34996 else
34997   cat >conftest.$ac_ext <<_ACEOF
34998 /* confdefs.h.  */
34999 _ACEOF
35000 cat confdefs.h >>conftest.$ac_ext
35001 cat >>conftest.$ac_ext <<_ACEOF
35002 /* end confdefs.h.  */
35003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35005 #define $ac_func innocuous_$ac_func
35006
35007 /* System header to define __stub macros and hopefully few prototypes,
35008     which can conflict with char $ac_func (); below.
35009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35010     <limits.h> exists even on freestanding compilers.  */
35011
35012 #ifdef __STDC__
35013 # include <limits.h>
35014 #else
35015 # include <assert.h>
35016 #endif
35017
35018 #undef $ac_func
35019
35020 /* Override any GCC internal prototype to avoid an error.
35021    Use char because int might match the return type of a GCC
35022    builtin and then its argument prototype would still apply.  */
35023 #ifdef __cplusplus
35024 extern "C"
35025 #endif
35026 char $ac_func ();
35027 /* The GNU C library defines this for functions which it implements
35028     to always fail with ENOSYS.  Some functions are actually named
35029     something starting with __ and the normal name is an alias.  */
35030 #if defined __stub_$ac_func || defined __stub___$ac_func
35031 choke me
35032 #endif
35033
35034 int
35035 main ()
35036 {
35037 return $ac_func ();
35038   ;
35039   return 0;
35040 }
35041 _ACEOF
35042 rm -f conftest.$ac_objext conftest$ac_exeext
35043 if { (ac_try="$ac_link"
35044 case "(($ac_try" in
35045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35046   *) ac_try_echo=$ac_try;;
35047 esac
35048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35049   (eval "$ac_link") 2>conftest.er1
35050   ac_status=$?
35051   grep -v '^ *+' conftest.er1 >conftest.err
35052   rm -f conftest.er1
35053   cat conftest.err >&5
35054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35055   (exit $ac_status); } && {
35056          test -z "$ac_c_werror_flag" ||
35057          test ! -s conftest.err
35058        } && test -s conftest$ac_exeext &&
35059        $as_test_x conftest$ac_exeext; then
35060   eval "$as_ac_var=yes"
35061 else
35062   echo "$as_me: failed program was:" >&5
35063 sed 's/^/| /' conftest.$ac_ext >&5
35064
35065         eval "$as_ac_var=no"
35066 fi
35067
35068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35069       conftest$ac_exeext conftest.$ac_ext
35070 fi
35071 ac_res=`eval echo '${'$as_ac_var'}'`
35072                { echo "$as_me:$LINENO: result: $ac_res" >&5
35073 echo "${ECHO_T}$ac_res" >&6; }
35074 if test `eval echo '${'$as_ac_var'}'` = yes; then
35075   cat >>confdefs.h <<_ACEOF
35076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35077 _ACEOF
35078
35079 fi
35080 done
35081
35082
35083                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
35084         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
35085     fi
35086
35087                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
35088 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
35089 if test "${ac_cv_type_mbstate_t+set}" = set; then
35090   echo $ECHO_N "(cached) $ECHO_C" >&6
35091 else
35092   cat >conftest.$ac_ext <<_ACEOF
35093 /* confdefs.h.  */
35094 _ACEOF
35095 cat confdefs.h >>conftest.$ac_ext
35096 cat >>conftest.$ac_ext <<_ACEOF
35097 /* end confdefs.h.  */
35098 #include <wchar.h>
35099
35100 typedef mbstate_t ac__type_new_;
35101 int
35102 main ()
35103 {
35104 if ((ac__type_new_ *) 0)
35105   return 0;
35106 if (sizeof (ac__type_new_))
35107   return 0;
35108   ;
35109   return 0;
35110 }
35111 _ACEOF
35112 rm -f conftest.$ac_objext
35113 if { (ac_try="$ac_compile"
35114 case "(($ac_try" in
35115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35116   *) ac_try_echo=$ac_try;;
35117 esac
35118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35119   (eval "$ac_compile") 2>conftest.er1
35120   ac_status=$?
35121   grep -v '^ *+' conftest.er1 >conftest.err
35122   rm -f conftest.er1
35123   cat conftest.err >&5
35124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35125   (exit $ac_status); } && {
35126          test -z "$ac_c_werror_flag" ||
35127          test ! -s conftest.err
35128        } && test -s conftest.$ac_objext; then
35129   ac_cv_type_mbstate_t=yes
35130 else
35131   echo "$as_me: failed program was:" >&5
35132 sed 's/^/| /' conftest.$ac_ext >&5
35133
35134         ac_cv_type_mbstate_t=no
35135 fi
35136
35137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35138 fi
35139 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
35140 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
35141 if test $ac_cv_type_mbstate_t = yes; then
35142
35143 cat >>confdefs.h <<_ACEOF
35144 #define HAVE_MBSTATE_T 1
35145 _ACEOF
35146
35147
35148 for ac_func in wcsrtombs
35149 do
35150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35154   echo $ECHO_N "(cached) $ECHO_C" >&6
35155 else
35156   cat >conftest.$ac_ext <<_ACEOF
35157 /* confdefs.h.  */
35158 _ACEOF
35159 cat confdefs.h >>conftest.$ac_ext
35160 cat >>conftest.$ac_ext <<_ACEOF
35161 /* end confdefs.h.  */
35162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35164 #define $ac_func innocuous_$ac_func
35165
35166 /* System header to define __stub macros and hopefully few prototypes,
35167     which can conflict with char $ac_func (); below.
35168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35169     <limits.h> exists even on freestanding compilers.  */
35170
35171 #ifdef __STDC__
35172 # include <limits.h>
35173 #else
35174 # include <assert.h>
35175 #endif
35176
35177 #undef $ac_func
35178
35179 /* Override any GCC internal prototype to avoid an error.
35180    Use char because int might match the return type of a GCC
35181    builtin and then its argument prototype would still apply.  */
35182 #ifdef __cplusplus
35183 extern "C"
35184 #endif
35185 char $ac_func ();
35186 /* The GNU C library defines this for functions which it implements
35187     to always fail with ENOSYS.  Some functions are actually named
35188     something starting with __ and the normal name is an alias.  */
35189 #if defined __stub_$ac_func || defined __stub___$ac_func
35190 choke me
35191 #endif
35192
35193 int
35194 main ()
35195 {
35196 return $ac_func ();
35197   ;
35198   return 0;
35199 }
35200 _ACEOF
35201 rm -f conftest.$ac_objext conftest$ac_exeext
35202 if { (ac_try="$ac_link"
35203 case "(($ac_try" in
35204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35205   *) ac_try_echo=$ac_try;;
35206 esac
35207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35208   (eval "$ac_link") 2>conftest.er1
35209   ac_status=$?
35210   grep -v '^ *+' conftest.er1 >conftest.err
35211   rm -f conftest.er1
35212   cat conftest.err >&5
35213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35214   (exit $ac_status); } && {
35215          test -z "$ac_c_werror_flag" ||
35216          test ! -s conftest.err
35217        } && test -s conftest$ac_exeext &&
35218        $as_test_x conftest$ac_exeext; then
35219   eval "$as_ac_var=yes"
35220 else
35221   echo "$as_me: failed program was:" >&5
35222 sed 's/^/| /' conftest.$ac_ext >&5
35223
35224         eval "$as_ac_var=no"
35225 fi
35226
35227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35228       conftest$ac_exeext conftest.$ac_ext
35229 fi
35230 ac_res=`eval echo '${'$as_ac_var'}'`
35231                { echo "$as_me:$LINENO: result: $ac_res" >&5
35232 echo "${ECHO_T}$ac_res" >&6; }
35233 if test `eval echo '${'$as_ac_var'}'` = yes; then
35234   cat >>confdefs.h <<_ACEOF
35235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35236 _ACEOF
35237
35238 fi
35239 done
35240
35241 fi
35242
35243 else
35244     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35245 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35246 fi
35247
35248
35249
35250
35251 for ac_func in snprintf vsnprintf vsscanf
35252 do
35253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35257   echo $ECHO_N "(cached) $ECHO_C" >&6
35258 else
35259   cat >conftest.$ac_ext <<_ACEOF
35260 /* confdefs.h.  */
35261 _ACEOF
35262 cat confdefs.h >>conftest.$ac_ext
35263 cat >>conftest.$ac_ext <<_ACEOF
35264 /* end confdefs.h.  */
35265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35267 #define $ac_func innocuous_$ac_func
35268
35269 /* System header to define __stub macros and hopefully few prototypes,
35270     which can conflict with char $ac_func (); below.
35271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35272     <limits.h> exists even on freestanding compilers.  */
35273
35274 #ifdef __STDC__
35275 # include <limits.h>
35276 #else
35277 # include <assert.h>
35278 #endif
35279
35280 #undef $ac_func
35281
35282 /* Override any GCC internal prototype to avoid an error.
35283    Use char because int might match the return type of a GCC
35284    builtin and then its argument prototype would still apply.  */
35285 #ifdef __cplusplus
35286 extern "C"
35287 #endif
35288 char $ac_func ();
35289 /* The GNU C library defines this for functions which it implements
35290     to always fail with ENOSYS.  Some functions are actually named
35291     something starting with __ and the normal name is an alias.  */
35292 #if defined __stub_$ac_func || defined __stub___$ac_func
35293 choke me
35294 #endif
35295
35296 int
35297 main ()
35298 {
35299 return $ac_func ();
35300   ;
35301   return 0;
35302 }
35303 _ACEOF
35304 rm -f conftest.$ac_objext conftest$ac_exeext
35305 if { (ac_try="$ac_link"
35306 case "(($ac_try" in
35307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35308   *) ac_try_echo=$ac_try;;
35309 esac
35310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35311   (eval "$ac_link") 2>conftest.er1
35312   ac_status=$?
35313   grep -v '^ *+' conftest.er1 >conftest.err
35314   rm -f conftest.er1
35315   cat conftest.err >&5
35316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35317   (exit $ac_status); } && {
35318          test -z "$ac_c_werror_flag" ||
35319          test ! -s conftest.err
35320        } && test -s conftest$ac_exeext &&
35321        $as_test_x conftest$ac_exeext; then
35322   eval "$as_ac_var=yes"
35323 else
35324   echo "$as_me: failed program was:" >&5
35325 sed 's/^/| /' conftest.$ac_ext >&5
35326
35327         eval "$as_ac_var=no"
35328 fi
35329
35330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35331       conftest$ac_exeext conftest.$ac_ext
35332 fi
35333 ac_res=`eval echo '${'$as_ac_var'}'`
35334                { echo "$as_me:$LINENO: result: $ac_res" >&5
35335 echo "${ECHO_T}$ac_res" >&6; }
35336 if test `eval echo '${'$as_ac_var'}'` = yes; then
35337   cat >>confdefs.h <<_ACEOF
35338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35339 _ACEOF
35340
35341 fi
35342 done
35343
35344
35345 ac_ext=cpp
35346 ac_cpp='$CXXCPP $CPPFLAGS'
35347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35350
35351 if test "$ac_cv_func_vsnprintf" = "yes"; then
35352         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35353 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
35354 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35355   echo $ECHO_N "(cached) $ECHO_C" >&6
35356 else
35357
35358                                                             cat >conftest.$ac_ext <<_ACEOF
35359 /* confdefs.h.  */
35360 _ACEOF
35361 cat confdefs.h >>conftest.$ac_ext
35362 cat >>conftest.$ac_ext <<_ACEOF
35363 /* end confdefs.h.  */
35364
35365                     #include <stdio.h>
35366                     #include <stdarg.h>
35367                     #ifdef __MSL__
35368                     #if __MSL__ >= 0x6000
35369                     namespace std {}
35370                     using namespace std;
35371                     #endif
35372                     #endif
35373
35374 int
35375 main ()
35376 {
35377
35378                     char *buf;
35379                     va_list ap;
35380                     vsnprintf(buf, 10u, "%s", ap);
35381
35382   ;
35383   return 0;
35384 }
35385 _ACEOF
35386 rm -f conftest.$ac_objext
35387 if { (ac_try="$ac_compile"
35388 case "(($ac_try" in
35389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35390   *) ac_try_echo=$ac_try;;
35391 esac
35392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35393   (eval "$ac_compile") 2>conftest.er1
35394   ac_status=$?
35395   grep -v '^ *+' conftest.er1 >conftest.err
35396   rm -f conftest.er1
35397   cat conftest.err >&5
35398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399   (exit $ac_status); } && {
35400          test -z "$ac_cxx_werror_flag" ||
35401          test ! -s conftest.err
35402        } && test -s conftest.$ac_objext; then
35403   wx_cv_func_vsnprintf_decl=yes
35404 else
35405   echo "$as_me: failed program was:" >&5
35406 sed 's/^/| /' conftest.$ac_ext >&5
35407
35408         wx_cv_func_vsnprintf_decl=no
35409
35410 fi
35411
35412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35413
35414
35415 fi
35416 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35417 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
35418
35419     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35420         cat >>confdefs.h <<\_ACEOF
35421 #define HAVE_VSNPRINTF_DECL 1
35422 _ACEOF
35423
35424
35425                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35426 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
35427 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35428   echo $ECHO_N "(cached) $ECHO_C" >&6
35429 else
35430
35431                 cat >conftest.$ac_ext <<_ACEOF
35432 /* confdefs.h.  */
35433 _ACEOF
35434 cat confdefs.h >>conftest.$ac_ext
35435 cat >>conftest.$ac_ext <<_ACEOF
35436 /* end confdefs.h.  */
35437
35438                         #include <stdio.h>
35439                         #include <stdarg.h>
35440                         #ifdef __MSL__
35441                         #if __MSL__ >= 0x6000
35442                         namespace std {}
35443                         using namespace std;
35444                         #endif
35445                         #endif
35446
35447 int
35448 main ()
35449 {
35450
35451                         char *buf;
35452                         va_list ap;
35453                         const char *fmt = "%s";
35454                         vsnprintf(buf, 10u, fmt, ap);
35455
35456   ;
35457   return 0;
35458 }
35459 _ACEOF
35460 rm -f conftest.$ac_objext
35461 if { (ac_try="$ac_compile"
35462 case "(($ac_try" in
35463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35464   *) ac_try_echo=$ac_try;;
35465 esac
35466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35467   (eval "$ac_compile") 2>conftest.er1
35468   ac_status=$?
35469   grep -v '^ *+' conftest.er1 >conftest.err
35470   rm -f conftest.er1
35471   cat conftest.err >&5
35472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473   (exit $ac_status); } && {
35474          test -z "$ac_cxx_werror_flag" ||
35475          test ! -s conftest.err
35476        } && test -s conftest.$ac_objext; then
35477   wx_cv_func_broken_vsnprintf_decl=no
35478 else
35479   echo "$as_me: failed program was:" >&5
35480 sed 's/^/| /' conftest.$ac_ext >&5
35481
35482         wx_cv_func_broken_vsnprintf_decl=yes
35483
35484 fi
35485
35486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35487
35488
35489 fi
35490 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35491 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
35492
35493         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35494             cat >>confdefs.h <<\_ACEOF
35495 #define HAVE_BROKEN_VSNPRINTF_DECL 1
35496 _ACEOF
35497
35498         fi
35499     fi
35500 fi
35501
35502 if test "$ac_cv_func_snprintf" = "yes"; then
35503     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35504 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
35505 if test "${wx_cv_func_snprintf_decl+set}" = set; then
35506   echo $ECHO_N "(cached) $ECHO_C" >&6
35507 else
35508
35509             cat >conftest.$ac_ext <<_ACEOF
35510 /* confdefs.h.  */
35511 _ACEOF
35512 cat confdefs.h >>conftest.$ac_ext
35513 cat >>conftest.$ac_ext <<_ACEOF
35514 /* end confdefs.h.  */
35515
35516                     #include <stdio.h>
35517                     #include <stdarg.h>
35518                     #ifdef __MSL__
35519                     #if __MSL__ >= 0x6000
35520                     namespace std {}
35521                     using namespace std;
35522                     #endif
35523                     #endif
35524
35525 int
35526 main ()
35527 {
35528
35529                     char *buf;
35530                     snprintf(buf, 10u, "%s", "wx");
35531
35532   ;
35533   return 0;
35534 }
35535 _ACEOF
35536 rm -f conftest.$ac_objext
35537 if { (ac_try="$ac_compile"
35538 case "(($ac_try" in
35539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35540   *) ac_try_echo=$ac_try;;
35541 esac
35542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35543   (eval "$ac_compile") 2>conftest.er1
35544   ac_status=$?
35545   grep -v '^ *+' conftest.er1 >conftest.err
35546   rm -f conftest.er1
35547   cat conftest.err >&5
35548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35549   (exit $ac_status); } && {
35550          test -z "$ac_cxx_werror_flag" ||
35551          test ! -s conftest.err
35552        } && test -s conftest.$ac_objext; then
35553   wx_cv_func_snprintf_decl=yes
35554 else
35555   echo "$as_me: failed program was:" >&5
35556 sed 's/^/| /' conftest.$ac_ext >&5
35557
35558         wx_cv_func_snprintf_decl=no
35559
35560 fi
35561
35562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35563
35564
35565 fi
35566 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35567 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
35568
35569     if test "$wx_cv_func_snprintf_decl" = "yes"; then
35570         cat >>confdefs.h <<\_ACEOF
35571 #define HAVE_SNPRINTF_DECL 1
35572 _ACEOF
35573
35574     fi
35575
35576     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35577
35578                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35579 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
35580 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35581   echo $ECHO_N "(cached) $ECHO_C" >&6
35582 else
35583
35584                 if test "$cross_compiling" = yes; then
35585
35586                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35587 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35588 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35589 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35590                         wx_cv_func_snprintf_pos_params=no
35591
35592
35593 else
35594   cat >conftest.$ac_ext <<_ACEOF
35595 /* confdefs.h.  */
35596 _ACEOF
35597 cat confdefs.h >>conftest.$ac_ext
35598 cat >>conftest.$ac_ext <<_ACEOF
35599 /* end confdefs.h.  */
35600
35601                         #include <stdio.h>
35602
35603                         int main (void)
35604                         {
35605                             char buffer[128];
35606                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
35607                             if (strcmp ("2 3 1", buffer) == 0)
35608                                 exit (0);
35609                             exit (1);
35610                         }
35611
35612 _ACEOF
35613 rm -f conftest$ac_exeext
35614 if { (ac_try="$ac_link"
35615 case "(($ac_try" in
35616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35617   *) ac_try_echo=$ac_try;;
35618 esac
35619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35620   (eval "$ac_link") 2>&5
35621   ac_status=$?
35622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35624   { (case "(($ac_try" in
35625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35626   *) ac_try_echo=$ac_try;;
35627 esac
35628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35629   (eval "$ac_try") 2>&5
35630   ac_status=$?
35631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35632   (exit $ac_status); }; }; then
35633   wx_cv_func_snprintf_pos_params=no
35634 else
35635   echo "$as_me: program exited with status $ac_status" >&5
35636 echo "$as_me: failed program was:" >&5
35637 sed 's/^/| /' conftest.$ac_ext >&5
35638
35639 ( exit $ac_status )
35640 wx_cv_func_snprintf_pos_params=yes
35641 fi
35642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35643 fi
35644
35645
35646
35647
35648 fi
35649 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35650 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
35651
35652         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35653             cat >>confdefs.h <<\_ACEOF
35654 #define HAVE_UNIX98_PRINTF 1
35655 _ACEOF
35656
35657         fi
35658     fi
35659 fi
35660
35661 if test "$ac_cv_func_vsscanf" = "yes"; then
35662     { echo "$as_me:$LINENO: checking for vsscanf declaration" >&5
35663 echo $ECHO_N "checking for vsscanf declaration... $ECHO_C" >&6; }
35664 if test "${wx_cv_func_vsscanf_decl+set}" = set; then
35665   echo $ECHO_N "(cached) $ECHO_C" >&6
35666 else
35667
35668             cat >conftest.$ac_ext <<_ACEOF
35669 /* confdefs.h.  */
35670 _ACEOF
35671 cat confdefs.h >>conftest.$ac_ext
35672 cat >>conftest.$ac_ext <<_ACEOF
35673 /* end confdefs.h.  */
35674
35675                     #include <stdio.h>
35676                     #include <stdarg.h>
35677                     #ifdef __MSL__
35678                     #if __MSL__ >= 0x6000
35679                     namespace std {}
35680                     using namespace std;
35681                     #endif
35682                     #endif
35683
35684 int
35685 main ()
35686 {
35687
35688                     char *buf;
35689                     va_list args;
35690                     vsscanf(buf, "%s", args);
35691
35692   ;
35693   return 0;
35694 }
35695 _ACEOF
35696 rm -f conftest.$ac_objext
35697 if { (ac_try="$ac_compile"
35698 case "(($ac_try" in
35699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35700   *) ac_try_echo=$ac_try;;
35701 esac
35702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35703   (eval "$ac_compile") 2>conftest.er1
35704   ac_status=$?
35705   grep -v '^ *+' conftest.er1 >conftest.err
35706   rm -f conftest.er1
35707   cat conftest.err >&5
35708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709   (exit $ac_status); } && {
35710          test -z "$ac_cxx_werror_flag" ||
35711          test ! -s conftest.err
35712        } && test -s conftest.$ac_objext; then
35713   wx_cv_func_vsscanf_decl=yes
35714 else
35715   echo "$as_me: failed program was:" >&5
35716 sed 's/^/| /' conftest.$ac_ext >&5
35717
35718         wx_cv_func_vsscanf_decl=no
35719
35720 fi
35721
35722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35723
35724
35725 fi
35726 { echo "$as_me:$LINENO: result: $wx_cv_func_vsscanf_decl" >&5
35727 echo "${ECHO_T}$wx_cv_func_vsscanf_decl" >&6; }
35728
35729     if test "$wx_cv_func_vsscanf_decl" = "yes"; then
35730         cat >>confdefs.h <<\_ACEOF
35731 #define HAVE_VSSCANF_DECL 1
35732 _ACEOF
35733
35734     fi
35735 fi
35736 ac_ext=c
35737 ac_cpp='$CPP $CPPFLAGS'
35738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35741
35742
35743 if test "$wxUSE_UNICODE" = yes; then
35744
35745             wchar_headers="#include <stdio.h>
35746 #include <wchar.h>"
35747     case "${host}" in
35748         *-*-solaris2* )
35749
35750 for ac_header in widec.h
35751 do
35752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35756   echo $ECHO_N "(cached) $ECHO_C" >&6
35757 else
35758   cat >conftest.$ac_ext <<_ACEOF
35759 /* confdefs.h.  */
35760 _ACEOF
35761 cat confdefs.h >>conftest.$ac_ext
35762 cat >>conftest.$ac_ext <<_ACEOF
35763 /* end confdefs.h.  */
35764 $ac_includes_default
35765
35766 #include <$ac_header>
35767 _ACEOF
35768 rm -f conftest.$ac_objext
35769 if { (ac_try="$ac_compile"
35770 case "(($ac_try" in
35771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35772   *) ac_try_echo=$ac_try;;
35773 esac
35774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35775   (eval "$ac_compile") 2>conftest.er1
35776   ac_status=$?
35777   grep -v '^ *+' conftest.er1 >conftest.err
35778   rm -f conftest.er1
35779   cat conftest.err >&5
35780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781   (exit $ac_status); } && {
35782          test -z "$ac_c_werror_flag" ||
35783          test ! -s conftest.err
35784        } && test -s conftest.$ac_objext; then
35785   eval "$as_ac_Header=yes"
35786 else
35787   echo "$as_me: failed program was:" >&5
35788 sed 's/^/| /' conftest.$ac_ext >&5
35789
35790         eval "$as_ac_Header=no"
35791 fi
35792
35793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35794 fi
35795 ac_res=`eval echo '${'$as_ac_Header'}'`
35796                { echo "$as_me:$LINENO: result: $ac_res" >&5
35797 echo "${ECHO_T}$ac_res" >&6; }
35798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35799   cat >>confdefs.h <<_ACEOF
35800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35801 _ACEOF
35802
35803 fi
35804
35805 done
35806
35807             if test "$ac_cv_header_widec_h" = "yes"; then
35808                 wchar_headers="$wchar_headers
35809 #include <widec.h>"
35810             fi
35811     esac
35812
35813
35814   for wx_func in putws fputws wprintf vswprintf vswscanf
35815   do
35816     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35817 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35818 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35819   echo $ECHO_N "(cached) $ECHO_C" >&6
35820 else
35821
35822         cat >conftest.$ac_ext <<_ACEOF
35823
35824             /* confdefs.h.  */
35825 _ACEOF
35826 cat confdefs.h >>conftest.$ac_ext
35827 cat >>conftest.$ac_ext <<_ACEOF
35828 /* end confdefs.h.  */
35829
35830                 $wchar_headers
35831                 $ac_includes_default
35832
35833 int
35834 main ()
35835 {
35836
35837                 #ifndef $wx_func
35838                   &$wx_func;
35839                 #endif
35840
35841
35842   ;
35843   return 0;
35844 }
35845
35846 _ACEOF
35847 rm -f conftest.$ac_objext conftest$ac_exeext
35848 if { (ac_try="$ac_link"
35849 case "(($ac_try" in
35850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35851   *) ac_try_echo=$ac_try;;
35852 esac
35853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35854   (eval "$ac_link") 2>conftest.er1
35855   ac_status=$?
35856   grep -v '^ *+' conftest.er1 >conftest.err
35857   rm -f conftest.er1
35858   cat conftest.err >&5
35859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860   (exit $ac_status); } && {
35861          test -z "$ac_c_werror_flag" ||
35862          test ! -s conftest.err
35863        } && test -s conftest$ac_exeext &&
35864        $as_test_x conftest$ac_exeext; then
35865   eval wx_cv_func_$wx_func=yes
35866 else
35867   echo "$as_me: failed program was:" >&5
35868 sed 's/^/| /' conftest.$ac_ext >&5
35869
35870         eval wx_cv_func_$wx_func=no
35871 fi
35872
35873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35874       conftest$ac_exeext conftest.$ac_ext
35875
35876 fi
35877 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
35878                { echo "$as_me:$LINENO: result: $ac_res" >&5
35879 echo "${ECHO_T}$ac_res" >&6; }
35880
35881     if eval test \$wx_cv_func_$wx_func = yes
35882     then
35883       cat >>confdefs.h <<_ACEOF
35884 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
35885 _ACEOF
35886
35887
35888     else
35889       :
35890
35891     fi
35892   done
35893
35894
35895                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35896 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
35897     cat >conftest.$ac_ext <<_ACEOF
35898 /* confdefs.h.  */
35899 _ACEOF
35900 cat confdefs.h >>conftest.$ac_ext
35901 cat >>conftest.$ac_ext <<_ACEOF
35902 /* end confdefs.h.  */
35903 #include <wchar.h>
35904 int
35905 main ()
35906 {
35907 &_vsnwprintf;
35908   ;
35909   return 0;
35910 }
35911 _ACEOF
35912 rm -f conftest.$ac_objext
35913 if { (ac_try="$ac_compile"
35914 case "(($ac_try" in
35915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35916   *) ac_try_echo=$ac_try;;
35917 esac
35918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35919   (eval "$ac_compile") 2>conftest.er1
35920   ac_status=$?
35921   grep -v '^ *+' conftest.er1 >conftest.err
35922   rm -f conftest.er1
35923   cat conftest.err >&5
35924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35925   (exit $ac_status); } && {
35926          test -z "$ac_c_werror_flag" ||
35927          test ! -s conftest.err
35928        } && test -s conftest.$ac_objext; then
35929   { echo "$as_me:$LINENO: result: yes" >&5
35930 echo "${ECHO_T}yes" >&6; }
35931                     cat >>confdefs.h <<\_ACEOF
35932 #define HAVE__VSNWPRINTF 1
35933 _ACEOF
35934
35935 else
35936   echo "$as_me: failed program was:" >&5
35937 sed 's/^/| /' conftest.$ac_ext >&5
35938
35939         { echo "$as_me:$LINENO: result: no" >&5
35940 echo "${ECHO_T}no" >&6; }
35941 fi
35942
35943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
35944 fi
35945
35946 if test "$wxUSE_FILE" = "yes"; then
35947
35948   for wx_func in fsync
35949   do
35950     { echo "$as_me:$LINENO: checking for $wx_func" >&5
35951 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
35952 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
35953   echo $ECHO_N "(cached) $ECHO_C" >&6
35954 else
35955
35956         cat >conftest.$ac_ext <<_ACEOF
35957
35958             /* confdefs.h.  */
35959 _ACEOF
35960 cat confdefs.h >>conftest.$ac_ext
35961 cat >>conftest.$ac_ext <<_ACEOF
35962 /* end confdefs.h.  */
35963
35964
35965                 $ac_includes_default
35966
35967 int
35968 main ()
35969 {
35970
35971                 #ifndef $wx_func
35972                   &$wx_func;
35973                 #endif
35974
35975
35976   ;
35977   return 0;
35978 }
35979
35980 _ACEOF
35981 rm -f conftest.$ac_objext conftest$ac_exeext
35982 if { (ac_try="$ac_link"
35983 case "(($ac_try" in
35984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35985   *) ac_try_echo=$ac_try;;
35986 esac
35987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35988   (eval "$ac_link") 2>conftest.er1
35989   ac_status=$?
35990   grep -v '^ *+' conftest.er1 >conftest.err
35991   rm -f conftest.er1
35992   cat conftest.err >&5
35993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35994   (exit $ac_status); } && {
35995          test -z "$ac_c_werror_flag" ||
35996          test ! -s conftest.err
35997        } && test -s conftest$ac_exeext &&
35998        $as_test_x conftest$ac_exeext; then
35999   eval wx_cv_func_$wx_func=yes
36000 else
36001   echo "$as_me: failed program was:" >&5
36002 sed 's/^/| /' conftest.$ac_ext >&5
36003
36004         eval wx_cv_func_$wx_func=no
36005 fi
36006
36007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36008       conftest$ac_exeext conftest.$ac_ext
36009
36010 fi
36011 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36012                { echo "$as_me:$LINENO: result: $ac_res" >&5
36013 echo "${ECHO_T}$ac_res" >&6; }
36014
36015     if eval test \$wx_cv_func_$wx_func = yes
36016     then
36017       cat >>confdefs.h <<_ACEOF
36018 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36019 _ACEOF
36020
36021
36022     else
36023       :
36024
36025     fi
36026   done
36027
36028 fi
36029
36030 ac_ext=cpp
36031 ac_cpp='$CXXCPP $CPPFLAGS'
36032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36035
36036
36037   for wx_func in round
36038   do
36039     { echo "$as_me:$LINENO: checking for $wx_func" >&5
36040 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
36041 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
36042   echo $ECHO_N "(cached) $ECHO_C" >&6
36043 else
36044
36045         cat >conftest.$ac_ext <<_ACEOF
36046
36047             /* confdefs.h.  */
36048 _ACEOF
36049 cat confdefs.h >>conftest.$ac_ext
36050 cat >>conftest.$ac_ext <<_ACEOF
36051 /* end confdefs.h.  */
36052
36053                 #include <math.h>
36054                 $ac_includes_default
36055
36056 int
36057 main ()
36058 {
36059
36060                 #ifndef $wx_func
36061                   &$wx_func;
36062                 #endif
36063
36064
36065   ;
36066   return 0;
36067 }
36068
36069 _ACEOF
36070 rm -f conftest.$ac_objext conftest$ac_exeext
36071 if { (ac_try="$ac_link"
36072 case "(($ac_try" in
36073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36074   *) ac_try_echo=$ac_try;;
36075 esac
36076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36077   (eval "$ac_link") 2>conftest.er1
36078   ac_status=$?
36079   grep -v '^ *+' conftest.er1 >conftest.err
36080   rm -f conftest.er1
36081   cat conftest.err >&5
36082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083   (exit $ac_status); } && {
36084          test -z "$ac_cxx_werror_flag" ||
36085          test ! -s conftest.err
36086        } && test -s conftest$ac_exeext &&
36087        $as_test_x conftest$ac_exeext; then
36088   eval wx_cv_func_$wx_func=yes
36089 else
36090   echo "$as_me: failed program was:" >&5
36091 sed 's/^/| /' conftest.$ac_ext >&5
36092
36093         eval wx_cv_func_$wx_func=no
36094 fi
36095
36096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36097       conftest$ac_exeext conftest.$ac_ext
36098
36099 fi
36100 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
36101                { echo "$as_me:$LINENO: result: $ac_res" >&5
36102 echo "${ECHO_T}$ac_res" >&6; }
36103
36104     if eval test \$wx_cv_func_$wx_func = yes
36105     then
36106       cat >>confdefs.h <<_ACEOF
36107 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
36108 _ACEOF
36109
36110
36111     else
36112       :
36113
36114     fi
36115   done
36116
36117 ac_ext=c
36118 ac_cpp='$CPP $CPPFLAGS'
36119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36122
36123
36124 if test "$TOOLKIT" != "MSW"; then
36125
36126 if test "$wxUSE_LIBICONV" != "no" ; then
36127
36128
36129
36130 # Check whether --with-libiconv-prefix was given.
36131 if test "${with_libiconv_prefix+set}" = set; then
36132   withval=$with_libiconv_prefix;
36133     for dir in `echo "$withval" | tr : ' '`; do
36134       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36135       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36136     done
36137
36138 fi
36139
36140
36141   { echo "$as_me:$LINENO: checking for iconv" >&5
36142 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
36143 if test "${am_cv_func_iconv+set}" = set; then
36144   echo $ECHO_N "(cached) $ECHO_C" >&6
36145 else
36146
36147     am_cv_func_iconv="no, consider installing GNU libiconv"
36148     am_cv_lib_iconv=no
36149     cat >conftest.$ac_ext <<_ACEOF
36150 /* confdefs.h.  */
36151 _ACEOF
36152 cat confdefs.h >>conftest.$ac_ext
36153 cat >>conftest.$ac_ext <<_ACEOF
36154 /* end confdefs.h.  */
36155 #include <stdlib.h>
36156 #include <iconv.h>
36157 int
36158 main ()
36159 {
36160 iconv_t cd = iconv_open("","");
36161        iconv(cd,NULL,NULL,NULL,NULL);
36162        iconv_close(cd);
36163   ;
36164   return 0;
36165 }
36166 _ACEOF
36167 rm -f conftest.$ac_objext conftest$ac_exeext
36168 if { (ac_try="$ac_link"
36169 case "(($ac_try" in
36170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36171   *) ac_try_echo=$ac_try;;
36172 esac
36173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36174   (eval "$ac_link") 2>conftest.er1
36175   ac_status=$?
36176   grep -v '^ *+' conftest.er1 >conftest.err
36177   rm -f conftest.er1
36178   cat conftest.err >&5
36179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36180   (exit $ac_status); } && {
36181          test -z "$ac_c_werror_flag" ||
36182          test ! -s conftest.err
36183        } && test -s conftest$ac_exeext &&
36184        $as_test_x conftest$ac_exeext; then
36185   am_cv_func_iconv=yes
36186 else
36187   echo "$as_me: failed program was:" >&5
36188 sed 's/^/| /' conftest.$ac_ext >&5
36189
36190
36191 fi
36192
36193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36194       conftest$ac_exeext conftest.$ac_ext
36195     if test "$am_cv_func_iconv" != yes; then
36196       am_save_LIBS="$LIBS"
36197       LIBS="$LIBS -liconv"
36198       cat >conftest.$ac_ext <<_ACEOF
36199 /* confdefs.h.  */
36200 _ACEOF
36201 cat confdefs.h >>conftest.$ac_ext
36202 cat >>conftest.$ac_ext <<_ACEOF
36203 /* end confdefs.h.  */
36204 #include <stdlib.h>
36205 #include <iconv.h>
36206 int
36207 main ()
36208 {
36209 iconv_t cd = iconv_open("","");
36210          iconv(cd,NULL,NULL,NULL,NULL);
36211          iconv_close(cd);
36212   ;
36213   return 0;
36214 }
36215 _ACEOF
36216 rm -f conftest.$ac_objext conftest$ac_exeext
36217 if { (ac_try="$ac_link"
36218 case "(($ac_try" in
36219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36220   *) ac_try_echo=$ac_try;;
36221 esac
36222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36223   (eval "$ac_link") 2>conftest.er1
36224   ac_status=$?
36225   grep -v '^ *+' conftest.er1 >conftest.err
36226   rm -f conftest.er1
36227   cat conftest.err >&5
36228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36229   (exit $ac_status); } && {
36230          test -z "$ac_c_werror_flag" ||
36231          test ! -s conftest.err
36232        } && test -s conftest$ac_exeext &&
36233        $as_test_x conftest$ac_exeext; then
36234   am_cv_lib_iconv=yes
36235         am_cv_func_iconv=yes
36236 else
36237   echo "$as_me: failed program was:" >&5
36238 sed 's/^/| /' conftest.$ac_ext >&5
36239
36240
36241 fi
36242
36243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36244       conftest$ac_exeext conftest.$ac_ext
36245       LIBS="$am_save_LIBS"
36246     fi
36247
36248 fi
36249 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36250 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
36251   if test "$am_cv_func_iconv" = yes; then
36252
36253 cat >>confdefs.h <<\_ACEOF
36254 #define HAVE_ICONV 1
36255 _ACEOF
36256
36257     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
36258 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
36259 if test "${wx_cv_func_iconv_const+set}" = set; then
36260   echo $ECHO_N "(cached) $ECHO_C" >&6
36261 else
36262   cat >conftest.$ac_ext <<_ACEOF
36263 /* confdefs.h.  */
36264 _ACEOF
36265 cat confdefs.h >>conftest.$ac_ext
36266 cat >>conftest.$ac_ext <<_ACEOF
36267 /* end confdefs.h.  */
36268
36269 #include <stdlib.h>
36270 #include <iconv.h>
36271 extern
36272 #ifdef __cplusplus
36273 "C"
36274 #endif
36275 #if defined(__STDC__) || defined(__cplusplus)
36276 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36277 #else
36278 size_t iconv();
36279 #endif
36280
36281 int
36282 main ()
36283 {
36284
36285   ;
36286   return 0;
36287 }
36288 _ACEOF
36289 rm -f conftest.$ac_objext
36290 if { (ac_try="$ac_compile"
36291 case "(($ac_try" in
36292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36293   *) ac_try_echo=$ac_try;;
36294 esac
36295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36296   (eval "$ac_compile") 2>conftest.er1
36297   ac_status=$?
36298   grep -v '^ *+' conftest.er1 >conftest.err
36299   rm -f conftest.er1
36300   cat conftest.err >&5
36301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36302   (exit $ac_status); } && {
36303          test -z "$ac_c_werror_flag" ||
36304          test ! -s conftest.err
36305        } && test -s conftest.$ac_objext; then
36306   wx_cv_func_iconv_const="no"
36307 else
36308   echo "$as_me: failed program was:" >&5
36309 sed 's/^/| /' conftest.$ac_ext >&5
36310
36311         wx_cv_func_iconv_const="yes"
36312
36313 fi
36314
36315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36316
36317 fi
36318 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36319 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
36320
36321     iconv_const=
36322     if test "x$wx_cv_func_iconv_const" = "xyes"; then
36323         iconv_const="const"
36324     fi
36325
36326
36327 cat >>confdefs.h <<_ACEOF
36328 #define ICONV_CONST $iconv_const
36329 _ACEOF
36330
36331   fi
36332   LIBICONV=
36333   if test "$am_cv_lib_iconv" = yes; then
36334     LIBICONV="-liconv"
36335   fi
36336
36337
36338     LIBS="$LIBICONV $LIBS"
36339 fi
36340
36341 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36342
36343 for ac_func in sigaction
36344 do
36345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36349   echo $ECHO_N "(cached) $ECHO_C" >&6
36350 else
36351   cat >conftest.$ac_ext <<_ACEOF
36352 /* confdefs.h.  */
36353 _ACEOF
36354 cat confdefs.h >>conftest.$ac_ext
36355 cat >>conftest.$ac_ext <<_ACEOF
36356 /* end confdefs.h.  */
36357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36359 #define $ac_func innocuous_$ac_func
36360
36361 /* System header to define __stub macros and hopefully few prototypes,
36362     which can conflict with char $ac_func (); below.
36363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36364     <limits.h> exists even on freestanding compilers.  */
36365
36366 #ifdef __STDC__
36367 # include <limits.h>
36368 #else
36369 # include <assert.h>
36370 #endif
36371
36372 #undef $ac_func
36373
36374 /* Override any GCC internal prototype to avoid an error.
36375    Use char because int might match the return type of a GCC
36376    builtin and then its argument prototype would still apply.  */
36377 #ifdef __cplusplus
36378 extern "C"
36379 #endif
36380 char $ac_func ();
36381 /* The GNU C library defines this for functions which it implements
36382     to always fail with ENOSYS.  Some functions are actually named
36383     something starting with __ and the normal name is an alias.  */
36384 #if defined __stub_$ac_func || defined __stub___$ac_func
36385 choke me
36386 #endif
36387
36388 int
36389 main ()
36390 {
36391 return $ac_func ();
36392   ;
36393   return 0;
36394 }
36395 _ACEOF
36396 rm -f conftest.$ac_objext conftest$ac_exeext
36397 if { (ac_try="$ac_link"
36398 case "(($ac_try" in
36399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36400   *) ac_try_echo=$ac_try;;
36401 esac
36402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36403   (eval "$ac_link") 2>conftest.er1
36404   ac_status=$?
36405   grep -v '^ *+' conftest.er1 >conftest.err
36406   rm -f conftest.er1
36407   cat conftest.err >&5
36408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36409   (exit $ac_status); } && {
36410          test -z "$ac_c_werror_flag" ||
36411          test ! -s conftest.err
36412        } && test -s conftest$ac_exeext &&
36413        $as_test_x conftest$ac_exeext; then
36414   eval "$as_ac_var=yes"
36415 else
36416   echo "$as_me: failed program was:" >&5
36417 sed 's/^/| /' conftest.$ac_ext >&5
36418
36419         eval "$as_ac_var=no"
36420 fi
36421
36422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36423       conftest$ac_exeext conftest.$ac_ext
36424 fi
36425 ac_res=`eval echo '${'$as_ac_var'}'`
36426                { echo "$as_me:$LINENO: result: $ac_res" >&5
36427 echo "${ECHO_T}$ac_res" >&6; }
36428 if test `eval echo '${'$as_ac_var'}'` = yes; then
36429   cat >>confdefs.h <<_ACEOF
36430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36431 _ACEOF
36432
36433 fi
36434 done
36435
36436
36437     if test "$ac_cv_func_sigaction" = "no"; then
36438         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36439 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36440         wxUSE_ON_FATAL_EXCEPTION=no
36441     fi
36442
36443     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36444       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
36445 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
36446 if test "${wx_cv_type_sa_handler+set}" = set; then
36447   echo $ECHO_N "(cached) $ECHO_C" >&6
36448 else
36449
36450                 ac_ext=cpp
36451 ac_cpp='$CXXCPP $CPPFLAGS'
36452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36455
36456         cat >conftest.$ac_ext <<_ACEOF
36457 /* confdefs.h.  */
36458 _ACEOF
36459 cat confdefs.h >>conftest.$ac_ext
36460 cat >>conftest.$ac_ext <<_ACEOF
36461 /* end confdefs.h.  */
36462 #include <signal.h>
36463 int
36464 main ()
36465 {
36466
36467                         extern void testSigHandler(int);
36468
36469                         struct sigaction sa;
36470                         sa.sa_handler = testSigHandler;
36471
36472   ;
36473   return 0;
36474 }
36475 _ACEOF
36476 rm -f conftest.$ac_objext
36477 if { (ac_try="$ac_compile"
36478 case "(($ac_try" in
36479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36480   *) ac_try_echo=$ac_try;;
36481 esac
36482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36483   (eval "$ac_compile") 2>conftest.er1
36484   ac_status=$?
36485   grep -v '^ *+' conftest.er1 >conftest.err
36486   rm -f conftest.er1
36487   cat conftest.err >&5
36488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36489   (exit $ac_status); } && {
36490          test -z "$ac_cxx_werror_flag" ||
36491          test ! -s conftest.err
36492        } && test -s conftest.$ac_objext; then
36493
36494                         wx_cv_type_sa_handler=int
36495
36496 else
36497   echo "$as_me: failed program was:" >&5
36498 sed 's/^/| /' conftest.$ac_ext >&5
36499
36500
36501                         wx_cv_type_sa_handler=void
36502
36503 fi
36504
36505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36506         ac_ext=c
36507 ac_cpp='$CPP $CPPFLAGS'
36508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36511
36512
36513 fi
36514 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36515 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
36516
36517       cat >>confdefs.h <<_ACEOF
36518 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36519 _ACEOF
36520
36521     fi
36522 fi
36523
36524 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36525     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36526 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
36527 if test "${wx_cv_func_backtrace+set}" = set; then
36528   echo $ECHO_N "(cached) $ECHO_C" >&6
36529 else
36530
36531             ac_ext=cpp
36532 ac_cpp='$CXXCPP $CPPFLAGS'
36533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36536
36537             cat >conftest.$ac_ext <<_ACEOF
36538 /* confdefs.h.  */
36539 _ACEOF
36540 cat confdefs.h >>conftest.$ac_ext
36541 cat >>conftest.$ac_ext <<_ACEOF
36542 /* end confdefs.h.  */
36543 #include <execinfo.h>
36544 int
36545 main ()
36546 {
36547
36548                     void *trace[1];
36549                     char **messages;
36550
36551                     backtrace(trace, 1);
36552                     messages = backtrace_symbols(trace, 1);
36553
36554   ;
36555   return 0;
36556 }
36557 _ACEOF
36558 rm -f conftest.$ac_objext
36559 if { (ac_try="$ac_compile"
36560 case "(($ac_try" in
36561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36562   *) ac_try_echo=$ac_try;;
36563 esac
36564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36565   (eval "$ac_compile") 2>conftest.er1
36566   ac_status=$?
36567   grep -v '^ *+' conftest.er1 >conftest.err
36568   rm -f conftest.er1
36569   cat conftest.err >&5
36570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36571   (exit $ac_status); } && {
36572          test -z "$ac_cxx_werror_flag" ||
36573          test ! -s conftest.err
36574        } && test -s conftest.$ac_objext; then
36575   wx_cv_func_backtrace=yes
36576 else
36577   echo "$as_me: failed program was:" >&5
36578 sed 's/^/| /' conftest.$ac_ext >&5
36579
36580         wx_cv_func_backtrace=no
36581
36582 fi
36583
36584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36585             ac_ext=c
36586 ac_cpp='$CPP $CPPFLAGS'
36587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36590
36591
36592
36593 fi
36594 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36595 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
36596
36597
36598     if test "$wx_cv_func_backtrace" = "no"; then
36599         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36600 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36601         wxUSE_STACKWALKER=no
36602     else
36603         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36604 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
36605 if test "${wx_cv_func_cxa_demangle+set}" = set; then
36606   echo $ECHO_N "(cached) $ECHO_C" >&6
36607 else
36608
36609                 ac_ext=cpp
36610 ac_cpp='$CXXCPP $CPPFLAGS'
36611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36614
36615                 cat >conftest.$ac_ext <<_ACEOF
36616 /* confdefs.h.  */
36617 _ACEOF
36618 cat confdefs.h >>conftest.$ac_ext
36619 cat >>conftest.$ac_ext <<_ACEOF
36620 /* end confdefs.h.  */
36621 #include <cxxabi.h>
36622 int
36623 main ()
36624 {
36625
36626                         int rc;
36627                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36628
36629   ;
36630   return 0;
36631 }
36632 _ACEOF
36633 rm -f conftest.$ac_objext conftest$ac_exeext
36634 if { (ac_try="$ac_link"
36635 case "(($ac_try" in
36636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36637   *) ac_try_echo=$ac_try;;
36638 esac
36639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36640   (eval "$ac_link") 2>conftest.er1
36641   ac_status=$?
36642   grep -v '^ *+' conftest.er1 >conftest.err
36643   rm -f conftest.er1
36644   cat conftest.err >&5
36645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646   (exit $ac_status); } && {
36647          test -z "$ac_cxx_werror_flag" ||
36648          test ! -s conftest.err
36649        } && test -s conftest$ac_exeext &&
36650        $as_test_x conftest$ac_exeext; then
36651   wx_cv_func_cxa_demangle=yes
36652 else
36653   echo "$as_me: failed program was:" >&5
36654 sed 's/^/| /' conftest.$ac_ext >&5
36655
36656         wx_cv_func_cxa_demangle=no
36657
36658 fi
36659
36660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36661       conftest$ac_exeext conftest.$ac_ext
36662                 ac_ext=c
36663 ac_cpp='$CPP $CPPFLAGS'
36664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36667
36668
36669
36670 fi
36671 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36672 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
36673
36674         if test "$wx_cv_func_cxa_demangle" = "yes"; then
36675             cat >>confdefs.h <<\_ACEOF
36676 #define HAVE_CXA_DEMANGLE 1
36677 _ACEOF
36678
36679         fi
36680     fi
36681 fi
36682
36683 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then
36684     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36685 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36686     wxUSE_STACKWALKER=no
36687 fi
36688
36689
36690
36691
36692 for ac_func in mkstemp mktemp
36693 do
36694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36695 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36697 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36698   echo $ECHO_N "(cached) $ECHO_C" >&6
36699 else
36700   cat >conftest.$ac_ext <<_ACEOF
36701 /* confdefs.h.  */
36702 _ACEOF
36703 cat confdefs.h >>conftest.$ac_ext
36704 cat >>conftest.$ac_ext <<_ACEOF
36705 /* end confdefs.h.  */
36706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36708 #define $ac_func innocuous_$ac_func
36709
36710 /* System header to define __stub macros and hopefully few prototypes,
36711     which can conflict with char $ac_func (); below.
36712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36713     <limits.h> exists even on freestanding compilers.  */
36714
36715 #ifdef __STDC__
36716 # include <limits.h>
36717 #else
36718 # include <assert.h>
36719 #endif
36720
36721 #undef $ac_func
36722
36723 /* Override any GCC internal prototype to avoid an error.
36724    Use char because int might match the return type of a GCC
36725    builtin and then its argument prototype would still apply.  */
36726 #ifdef __cplusplus
36727 extern "C"
36728 #endif
36729 char $ac_func ();
36730 /* The GNU C library defines this for functions which it implements
36731     to always fail with ENOSYS.  Some functions are actually named
36732     something starting with __ and the normal name is an alias.  */
36733 #if defined __stub_$ac_func || defined __stub___$ac_func
36734 choke me
36735 #endif
36736
36737 int
36738 main ()
36739 {
36740 return $ac_func ();
36741   ;
36742   return 0;
36743 }
36744 _ACEOF
36745 rm -f conftest.$ac_objext conftest$ac_exeext
36746 if { (ac_try="$ac_link"
36747 case "(($ac_try" in
36748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36749   *) ac_try_echo=$ac_try;;
36750 esac
36751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36752   (eval "$ac_link") 2>conftest.er1
36753   ac_status=$?
36754   grep -v '^ *+' conftest.er1 >conftest.err
36755   rm -f conftest.er1
36756   cat conftest.err >&5
36757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36758   (exit $ac_status); } && {
36759          test -z "$ac_c_werror_flag" ||
36760          test ! -s conftest.err
36761        } && test -s conftest$ac_exeext &&
36762        $as_test_x conftest$ac_exeext; then
36763   eval "$as_ac_var=yes"
36764 else
36765   echo "$as_me: failed program was:" >&5
36766 sed 's/^/| /' conftest.$ac_ext >&5
36767
36768         eval "$as_ac_var=no"
36769 fi
36770
36771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36772       conftest$ac_exeext conftest.$ac_ext
36773 fi
36774 ac_res=`eval echo '${'$as_ac_var'}'`
36775                { echo "$as_me:$LINENO: result: $ac_res" >&5
36776 echo "${ECHO_T}$ac_res" >&6; }
36777 if test `eval echo '${'$as_ac_var'}'` = yes; then
36778   cat >>confdefs.h <<_ACEOF
36779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36780 _ACEOF
36781  break
36782 fi
36783 done
36784
36785
36786 { echo "$as_me:$LINENO: checking for statfs" >&5
36787 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
36788 if test "${wx_cv_func_statfs+set}" = set; then
36789   echo $ECHO_N "(cached) $ECHO_C" >&6
36790 else
36791   cat >conftest.$ac_ext <<_ACEOF
36792 /* confdefs.h.  */
36793 _ACEOF
36794 cat confdefs.h >>conftest.$ac_ext
36795 cat >>conftest.$ac_ext <<_ACEOF
36796 /* end confdefs.h.  */
36797
36798              #if defined(__BSD__)
36799              #include <sys/param.h>
36800              #include <sys/mount.h>
36801              #else
36802              #include <sys/vfs.h>
36803              #endif
36804
36805 int
36806 main ()
36807 {
36808
36809              long l;
36810              struct statfs fs;
36811              statfs("/", &fs);
36812              l = fs.f_bsize;
36813              l += fs.f_blocks;
36814              l += fs.f_bavail;
36815
36816   ;
36817   return 0;
36818 }
36819 _ACEOF
36820 rm -f conftest.$ac_objext
36821 if { (ac_try="$ac_compile"
36822 case "(($ac_try" in
36823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36824   *) ac_try_echo=$ac_try;;
36825 esac
36826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36827   (eval "$ac_compile") 2>conftest.er1
36828   ac_status=$?
36829   grep -v '^ *+' conftest.er1 >conftest.err
36830   rm -f conftest.er1
36831   cat conftest.err >&5
36832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36833   (exit $ac_status); } && {
36834          test -z "$ac_c_werror_flag" ||
36835          test ! -s conftest.err
36836        } && test -s conftest.$ac_objext; then
36837   wx_cv_func_statfs=yes
36838 else
36839   echo "$as_me: failed program was:" >&5
36840 sed 's/^/| /' conftest.$ac_ext >&5
36841
36842         wx_cv_func_statfs=no
36843
36844 fi
36845
36846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36847
36848 fi
36849 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36850 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
36851
36852 if test "$wx_cv_func_statfs" = "yes"; then
36853         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
36854 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
36855 if test "${wx_cv_func_statfs_decl+set}" = set; then
36856   echo $ECHO_N "(cached) $ECHO_C" >&6
36857 else
36858   ac_ext=cpp
36859 ac_cpp='$CXXCPP $CPPFLAGS'
36860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36863
36864         cat >conftest.$ac_ext <<_ACEOF
36865 /* confdefs.h.  */
36866 _ACEOF
36867 cat confdefs.h >>conftest.$ac_ext
36868 cat >>conftest.$ac_ext <<_ACEOF
36869 /* end confdefs.h.  */
36870
36871                  #if defined(__BSD__)
36872                  #include <sys/param.h>
36873                  #include <sys/mount.h>
36874                  #else
36875                  #include <sys/vfs.h>
36876                  #endif
36877
36878 int
36879 main ()
36880 {
36881
36882                 struct statfs fs;
36883                 statfs("", &fs);
36884
36885   ;
36886   return 0;
36887 }
36888 _ACEOF
36889 rm -f conftest.$ac_objext
36890 if { (ac_try="$ac_compile"
36891 case "(($ac_try" in
36892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36893   *) ac_try_echo=$ac_try;;
36894 esac
36895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36896   (eval "$ac_compile") 2>conftest.er1
36897   ac_status=$?
36898   grep -v '^ *+' conftest.er1 >conftest.err
36899   rm -f conftest.er1
36900   cat conftest.err >&5
36901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36902   (exit $ac_status); } && {
36903          test -z "$ac_cxx_werror_flag" ||
36904          test ! -s conftest.err
36905        } && test -s conftest.$ac_objext; then
36906   wx_cv_func_statfs_decl=yes
36907 else
36908   echo "$as_me: failed program was:" >&5
36909 sed 's/^/| /' conftest.$ac_ext >&5
36910
36911         wx_cv_func_statfs_decl=no
36912
36913 fi
36914
36915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36916         ac_ext=c
36917 ac_cpp='$CPP $CPPFLAGS'
36918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36921
36922
36923 fi
36924 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
36925 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
36926
36927     if test "$wx_cv_func_statfs_decl" = "yes"; then
36928         cat >>confdefs.h <<\_ACEOF
36929 #define HAVE_STATFS_DECL 1
36930 _ACEOF
36931
36932     fi
36933
36934     wx_cv_type_statvfs_t="struct statfs"
36935     cat >>confdefs.h <<\_ACEOF
36936 #define HAVE_STATFS 1
36937 _ACEOF
36938
36939 else
36940     { echo "$as_me:$LINENO: checking for statvfs" >&5
36941 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
36942 if test "${wx_cv_func_statvfs+set}" = set; then
36943   echo $ECHO_N "(cached) $ECHO_C" >&6
36944 else
36945   cat >conftest.$ac_ext <<_ACEOF
36946 /* confdefs.h.  */
36947 _ACEOF
36948 cat confdefs.h >>conftest.$ac_ext
36949 cat >>conftest.$ac_ext <<_ACEOF
36950 /* end confdefs.h.  */
36951
36952                 #include <stddef.h>
36953                 #include <sys/statvfs.h>
36954
36955 int
36956 main ()
36957 {
36958
36959                 statvfs("/", NULL);
36960
36961   ;
36962   return 0;
36963 }
36964 _ACEOF
36965 rm -f conftest.$ac_objext
36966 if { (ac_try="$ac_compile"
36967 case "(($ac_try" in
36968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36969   *) ac_try_echo=$ac_try;;
36970 esac
36971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36972   (eval "$ac_compile") 2>conftest.er1
36973   ac_status=$?
36974   grep -v '^ *+' conftest.er1 >conftest.err
36975   rm -f conftest.er1
36976   cat conftest.err >&5
36977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36978   (exit $ac_status); } && {
36979          test -z "$ac_c_werror_flag" ||
36980          test ! -s conftest.err
36981        } && test -s conftest.$ac_objext; then
36982   wx_cv_func_statvfs=yes
36983 else
36984   echo "$as_me: failed program was:" >&5
36985 sed 's/^/| /' conftest.$ac_ext >&5
36986
36987         wx_cv_func_statvfs=no
36988
36989 fi
36990
36991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36992
36993 fi
36994 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
36995 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
36996
36997     if test "$wx_cv_func_statvfs" = "yes"; then
36998                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
36999 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
37000 if test "${wx_cv_type_statvfs_t+set}" = set; then
37001   echo $ECHO_N "(cached) $ECHO_C" >&6
37002 else
37003   ac_ext=cpp
37004 ac_cpp='$CXXCPP $CPPFLAGS'
37005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37008
37009             cat >conftest.$ac_ext <<_ACEOF
37010 /* confdefs.h.  */
37011 _ACEOF
37012 cat confdefs.h >>conftest.$ac_ext
37013 cat >>conftest.$ac_ext <<_ACEOF
37014 /* end confdefs.h.  */
37015
37016                     #include <sys/statvfs.h>
37017
37018 int
37019 main ()
37020 {
37021
37022                     long l;
37023                     statvfs_t fs;
37024                     statvfs("/", &fs);
37025                     l = fs.f_bsize;
37026                     l += fs.f_blocks;
37027                     l += fs.f_bavail;
37028
37029   ;
37030   return 0;
37031 }
37032 _ACEOF
37033 rm -f conftest.$ac_objext
37034 if { (ac_try="$ac_compile"
37035 case "(($ac_try" in
37036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37037   *) ac_try_echo=$ac_try;;
37038 esac
37039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37040   (eval "$ac_compile") 2>conftest.er1
37041   ac_status=$?
37042   grep -v '^ *+' conftest.er1 >conftest.err
37043   rm -f conftest.er1
37044   cat conftest.err >&5
37045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37046   (exit $ac_status); } && {
37047          test -z "$ac_cxx_werror_flag" ||
37048          test ! -s conftest.err
37049        } && test -s conftest.$ac_objext; then
37050   wx_cv_type_statvfs_t=statvfs_t
37051 else
37052   echo "$as_me: failed program was:" >&5
37053 sed 's/^/| /' conftest.$ac_ext >&5
37054
37055
37056                     cat >conftest.$ac_ext <<_ACEOF
37057 /* confdefs.h.  */
37058 _ACEOF
37059 cat confdefs.h >>conftest.$ac_ext
37060 cat >>conftest.$ac_ext <<_ACEOF
37061 /* end confdefs.h.  */
37062
37063                             #include <sys/statvfs.h>
37064
37065 int
37066 main ()
37067 {
37068
37069                             long l;
37070                             struct statvfs fs;
37071                             statvfs("/", &fs);
37072                             l = fs.f_bsize;
37073                             l += fs.f_blocks;
37074                             l += fs.f_bavail;
37075
37076   ;
37077   return 0;
37078 }
37079 _ACEOF
37080 rm -f conftest.$ac_objext
37081 if { (ac_try="$ac_compile"
37082 case "(($ac_try" in
37083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37084   *) ac_try_echo=$ac_try;;
37085 esac
37086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37087   (eval "$ac_compile") 2>conftest.er1
37088   ac_status=$?
37089   grep -v '^ *+' conftest.er1 >conftest.err
37090   rm -f conftest.er1
37091   cat conftest.err >&5
37092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37093   (exit $ac_status); } && {
37094          test -z "$ac_cxx_werror_flag" ||
37095          test ! -s conftest.err
37096        } && test -s conftest.$ac_objext; then
37097   wx_cv_type_statvfs_t="struct statvfs"
37098 else
37099   echo "$as_me: failed program was:" >&5
37100 sed 's/^/| /' conftest.$ac_ext >&5
37101
37102         wx_cv_type_statvfs_t="unknown"
37103
37104 fi
37105
37106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37107
37108
37109 fi
37110
37111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37112             ac_ext=c
37113 ac_cpp='$CPP $CPPFLAGS'
37114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37117
37118
37119 fi
37120 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37121 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
37122
37123         if test "$wx_cv_type_statvfs_t" != "unknown"; then
37124             cat >>confdefs.h <<\_ACEOF
37125 #define HAVE_STATVFS 1
37126 _ACEOF
37127
37128         fi
37129     else
37130                 wx_cv_type_statvfs_t="unknown"
37131     fi
37132 fi
37133
37134 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37135     cat >>confdefs.h <<_ACEOF
37136 #define WX_STATFS_T $wx_cv_type_statvfs_t
37137 _ACEOF
37138
37139 else
37140     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37141 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37142 fi
37143
37144 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37145
37146
37147 for ac_func in fcntl flock
37148 do
37149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37153   echo $ECHO_N "(cached) $ECHO_C" >&6
37154 else
37155   cat >conftest.$ac_ext <<_ACEOF
37156 /* confdefs.h.  */
37157 _ACEOF
37158 cat confdefs.h >>conftest.$ac_ext
37159 cat >>conftest.$ac_ext <<_ACEOF
37160 /* end confdefs.h.  */
37161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37163 #define $ac_func innocuous_$ac_func
37164
37165 /* System header to define __stub macros and hopefully few prototypes,
37166     which can conflict with char $ac_func (); below.
37167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37168     <limits.h> exists even on freestanding compilers.  */
37169
37170 #ifdef __STDC__
37171 # include <limits.h>
37172 #else
37173 # include <assert.h>
37174 #endif
37175
37176 #undef $ac_func
37177
37178 /* Override any GCC internal prototype to avoid an error.
37179    Use char because int might match the return type of a GCC
37180    builtin and then its argument prototype would still apply.  */
37181 #ifdef __cplusplus
37182 extern "C"
37183 #endif
37184 char $ac_func ();
37185 /* The GNU C library defines this for functions which it implements
37186     to always fail with ENOSYS.  Some functions are actually named
37187     something starting with __ and the normal name is an alias.  */
37188 #if defined __stub_$ac_func || defined __stub___$ac_func
37189 choke me
37190 #endif
37191
37192 int
37193 main ()
37194 {
37195 return $ac_func ();
37196   ;
37197   return 0;
37198 }
37199 _ACEOF
37200 rm -f conftest.$ac_objext conftest$ac_exeext
37201 if { (ac_try="$ac_link"
37202 case "(($ac_try" in
37203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37204   *) ac_try_echo=$ac_try;;
37205 esac
37206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37207   (eval "$ac_link") 2>conftest.er1
37208   ac_status=$?
37209   grep -v '^ *+' conftest.er1 >conftest.err
37210   rm -f conftest.er1
37211   cat conftest.err >&5
37212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213   (exit $ac_status); } && {
37214          test -z "$ac_c_werror_flag" ||
37215          test ! -s conftest.err
37216        } && test -s conftest$ac_exeext &&
37217        $as_test_x conftest$ac_exeext; then
37218   eval "$as_ac_var=yes"
37219 else
37220   echo "$as_me: failed program was:" >&5
37221 sed 's/^/| /' conftest.$ac_ext >&5
37222
37223         eval "$as_ac_var=no"
37224 fi
37225
37226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37227       conftest$ac_exeext conftest.$ac_ext
37228 fi
37229 ac_res=`eval echo '${'$as_ac_var'}'`
37230                { echo "$as_me:$LINENO: result: $ac_res" >&5
37231 echo "${ECHO_T}$ac_res" >&6; }
37232 if test `eval echo '${'$as_ac_var'}'` = yes; then
37233   cat >>confdefs.h <<_ACEOF
37234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37235 _ACEOF
37236  break
37237 fi
37238 done
37239
37240
37241     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37242         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37243 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37244         wxUSE_SNGLINST_CHECKER=no
37245     fi
37246 fi
37247
37248
37249
37250 for ac_func in setenv putenv
37251 do
37252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37253 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37256   echo $ECHO_N "(cached) $ECHO_C" >&6
37257 else
37258   cat >conftest.$ac_ext <<_ACEOF
37259 /* confdefs.h.  */
37260 _ACEOF
37261 cat confdefs.h >>conftest.$ac_ext
37262 cat >>conftest.$ac_ext <<_ACEOF
37263 /* end confdefs.h.  */
37264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37266 #define $ac_func innocuous_$ac_func
37267
37268 /* System header to define __stub macros and hopefully few prototypes,
37269     which can conflict with char $ac_func (); below.
37270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37271     <limits.h> exists even on freestanding compilers.  */
37272
37273 #ifdef __STDC__
37274 # include <limits.h>
37275 #else
37276 # include <assert.h>
37277 #endif
37278
37279 #undef $ac_func
37280
37281 /* Override any GCC internal prototype to avoid an error.
37282    Use char because int might match the return type of a GCC
37283    builtin and then its argument prototype would still apply.  */
37284 #ifdef __cplusplus
37285 extern "C"
37286 #endif
37287 char $ac_func ();
37288 /* The GNU C library defines this for functions which it implements
37289     to always fail with ENOSYS.  Some functions are actually named
37290     something starting with __ and the normal name is an alias.  */
37291 #if defined __stub_$ac_func || defined __stub___$ac_func
37292 choke me
37293 #endif
37294
37295 int
37296 main ()
37297 {
37298 return $ac_func ();
37299   ;
37300   return 0;
37301 }
37302 _ACEOF
37303 rm -f conftest.$ac_objext conftest$ac_exeext
37304 if { (ac_try="$ac_link"
37305 case "(($ac_try" in
37306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37307   *) ac_try_echo=$ac_try;;
37308 esac
37309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37310   (eval "$ac_link") 2>conftest.er1
37311   ac_status=$?
37312   grep -v '^ *+' conftest.er1 >conftest.err
37313   rm -f conftest.er1
37314   cat conftest.err >&5
37315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316   (exit $ac_status); } && {
37317          test -z "$ac_c_werror_flag" ||
37318          test ! -s conftest.err
37319        } && test -s conftest$ac_exeext &&
37320        $as_test_x conftest$ac_exeext; then
37321   eval "$as_ac_var=yes"
37322 else
37323   echo "$as_me: failed program was:" >&5
37324 sed 's/^/| /' conftest.$ac_ext >&5
37325
37326         eval "$as_ac_var=no"
37327 fi
37328
37329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37330       conftest$ac_exeext conftest.$ac_ext
37331 fi
37332 ac_res=`eval echo '${'$as_ac_var'}'`
37333                { echo "$as_me:$LINENO: result: $ac_res" >&5
37334 echo "${ECHO_T}$ac_res" >&6; }
37335 if test `eval echo '${'$as_ac_var'}'` = yes; then
37336   cat >>confdefs.h <<_ACEOF
37337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37338 _ACEOF
37339  break
37340 fi
37341 done
37342
37343 if test "$ac_cv_func_setenv" = "yes"; then
37344
37345 for ac_func in unsetenv
37346 do
37347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37351   echo $ECHO_N "(cached) $ECHO_C" >&6
37352 else
37353   cat >conftest.$ac_ext <<_ACEOF
37354 /* confdefs.h.  */
37355 _ACEOF
37356 cat confdefs.h >>conftest.$ac_ext
37357 cat >>conftest.$ac_ext <<_ACEOF
37358 /* end confdefs.h.  */
37359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37361 #define $ac_func innocuous_$ac_func
37362
37363 /* System header to define __stub macros and hopefully few prototypes,
37364     which can conflict with char $ac_func (); below.
37365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37366     <limits.h> exists even on freestanding compilers.  */
37367
37368 #ifdef __STDC__
37369 # include <limits.h>
37370 #else
37371 # include <assert.h>
37372 #endif
37373
37374 #undef $ac_func
37375
37376 /* Override any GCC internal prototype to avoid an error.
37377    Use char because int might match the return type of a GCC
37378    builtin and then its argument prototype would still apply.  */
37379 #ifdef __cplusplus
37380 extern "C"
37381 #endif
37382 char $ac_func ();
37383 /* The GNU C library defines this for functions which it implements
37384     to always fail with ENOSYS.  Some functions are actually named
37385     something starting with __ and the normal name is an alias.  */
37386 #if defined __stub_$ac_func || defined __stub___$ac_func
37387 choke me
37388 #endif
37389
37390 int
37391 main ()
37392 {
37393 return $ac_func ();
37394   ;
37395   return 0;
37396 }
37397 _ACEOF
37398 rm -f conftest.$ac_objext conftest$ac_exeext
37399 if { (ac_try="$ac_link"
37400 case "(($ac_try" in
37401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37402   *) ac_try_echo=$ac_try;;
37403 esac
37404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37405   (eval "$ac_link") 2>conftest.er1
37406   ac_status=$?
37407   grep -v '^ *+' conftest.er1 >conftest.err
37408   rm -f conftest.er1
37409   cat conftest.err >&5
37410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37411   (exit $ac_status); } && {
37412          test -z "$ac_c_werror_flag" ||
37413          test ! -s conftest.err
37414        } && test -s conftest$ac_exeext &&
37415        $as_test_x conftest$ac_exeext; then
37416   eval "$as_ac_var=yes"
37417 else
37418   echo "$as_me: failed program was:" >&5
37419 sed 's/^/| /' conftest.$ac_ext >&5
37420
37421         eval "$as_ac_var=no"
37422 fi
37423
37424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37425       conftest$ac_exeext conftest.$ac_ext
37426 fi
37427 ac_res=`eval echo '${'$as_ac_var'}'`
37428                { echo "$as_me:$LINENO: result: $ac_res" >&5
37429 echo "${ECHO_T}$ac_res" >&6; }
37430 if test `eval echo '${'$as_ac_var'}'` = yes; then
37431   cat >>confdefs.h <<_ACEOF
37432 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37433 _ACEOF
37434
37435 fi
37436 done
37437
37438 fi
37439
37440 HAVE_SOME_SLEEP_FUNC=0
37441 if test "$USE_BEOS" = 1; then
37442             cat >>confdefs.h <<\_ACEOF
37443 #define HAVE_SLEEP 1
37444 _ACEOF
37445
37446     HAVE_SOME_SLEEP_FUNC=1
37447 fi
37448
37449 if test "$USE_DARWIN" = 1; then
37450             cat >>confdefs.h <<\_ACEOF
37451 #define HAVE_USLEEP 1
37452 _ACEOF
37453
37454     HAVE_SOME_SLEEP_FUNC=1
37455 fi
37456
37457 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37458         POSIX4_LINK=
37459
37460 for ac_func in nanosleep
37461 do
37462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37463 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37466   echo $ECHO_N "(cached) $ECHO_C" >&6
37467 else
37468   cat >conftest.$ac_ext <<_ACEOF
37469 /* confdefs.h.  */
37470 _ACEOF
37471 cat confdefs.h >>conftest.$ac_ext
37472 cat >>conftest.$ac_ext <<_ACEOF
37473 /* end confdefs.h.  */
37474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37476 #define $ac_func innocuous_$ac_func
37477
37478 /* System header to define __stub macros and hopefully few prototypes,
37479     which can conflict with char $ac_func (); below.
37480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37481     <limits.h> exists even on freestanding compilers.  */
37482
37483 #ifdef __STDC__
37484 # include <limits.h>
37485 #else
37486 # include <assert.h>
37487 #endif
37488
37489 #undef $ac_func
37490
37491 /* Override any GCC internal prototype to avoid an error.
37492    Use char because int might match the return type of a GCC
37493    builtin and then its argument prototype would still apply.  */
37494 #ifdef __cplusplus
37495 extern "C"
37496 #endif
37497 char $ac_func ();
37498 /* The GNU C library defines this for functions which it implements
37499     to always fail with ENOSYS.  Some functions are actually named
37500     something starting with __ and the normal name is an alias.  */
37501 #if defined __stub_$ac_func || defined __stub___$ac_func
37502 choke me
37503 #endif
37504
37505 int
37506 main ()
37507 {
37508 return $ac_func ();
37509   ;
37510   return 0;
37511 }
37512 _ACEOF
37513 rm -f conftest.$ac_objext conftest$ac_exeext
37514 if { (ac_try="$ac_link"
37515 case "(($ac_try" in
37516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37517   *) ac_try_echo=$ac_try;;
37518 esac
37519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37520   (eval "$ac_link") 2>conftest.er1
37521   ac_status=$?
37522   grep -v '^ *+' conftest.er1 >conftest.err
37523   rm -f conftest.er1
37524   cat conftest.err >&5
37525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37526   (exit $ac_status); } && {
37527          test -z "$ac_c_werror_flag" ||
37528          test ! -s conftest.err
37529        } && test -s conftest$ac_exeext &&
37530        $as_test_x conftest$ac_exeext; then
37531   eval "$as_ac_var=yes"
37532 else
37533   echo "$as_me: failed program was:" >&5
37534 sed 's/^/| /' conftest.$ac_ext >&5
37535
37536         eval "$as_ac_var=no"
37537 fi
37538
37539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37540       conftest$ac_exeext conftest.$ac_ext
37541 fi
37542 ac_res=`eval echo '${'$as_ac_var'}'`
37543                { echo "$as_me:$LINENO: result: $ac_res" >&5
37544 echo "${ECHO_T}$ac_res" >&6; }
37545 if test `eval echo '${'$as_ac_var'}'` = yes; then
37546   cat >>confdefs.h <<_ACEOF
37547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37548 _ACEOF
37549  cat >>confdefs.h <<\_ACEOF
37550 #define HAVE_NANOSLEEP 1
37551 _ACEOF
37552
37553 else
37554
37555             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37556 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
37557 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37558   echo $ECHO_N "(cached) $ECHO_C" >&6
37559 else
37560   ac_check_lib_save_LIBS=$LIBS
37561 LIBS="-lposix4  $LIBS"
37562 cat >conftest.$ac_ext <<_ACEOF
37563 /* confdefs.h.  */
37564 _ACEOF
37565 cat confdefs.h >>conftest.$ac_ext
37566 cat >>conftest.$ac_ext <<_ACEOF
37567 /* end confdefs.h.  */
37568
37569 /* Override any GCC internal prototype to avoid an error.
37570    Use char because int might match the return type of a GCC
37571    builtin and then its argument prototype would still apply.  */
37572 #ifdef __cplusplus
37573 extern "C"
37574 #endif
37575 char nanosleep ();
37576 int
37577 main ()
37578 {
37579 return nanosleep ();
37580   ;
37581   return 0;
37582 }
37583 _ACEOF
37584 rm -f conftest.$ac_objext conftest$ac_exeext
37585 if { (ac_try="$ac_link"
37586 case "(($ac_try" in
37587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37588   *) ac_try_echo=$ac_try;;
37589 esac
37590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37591   (eval "$ac_link") 2>conftest.er1
37592   ac_status=$?
37593   grep -v '^ *+' conftest.er1 >conftest.err
37594   rm -f conftest.er1
37595   cat conftest.err >&5
37596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597   (exit $ac_status); } && {
37598          test -z "$ac_c_werror_flag" ||
37599          test ! -s conftest.err
37600        } && test -s conftest$ac_exeext &&
37601        $as_test_x conftest$ac_exeext; then
37602   ac_cv_lib_posix4_nanosleep=yes
37603 else
37604   echo "$as_me: failed program was:" >&5
37605 sed 's/^/| /' conftest.$ac_ext >&5
37606
37607         ac_cv_lib_posix4_nanosleep=no
37608 fi
37609
37610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37611       conftest$ac_exeext conftest.$ac_ext
37612 LIBS=$ac_check_lib_save_LIBS
37613 fi
37614 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37615 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
37616 if test $ac_cv_lib_posix4_nanosleep = yes; then
37617
37618                     cat >>confdefs.h <<\_ACEOF
37619 #define HAVE_NANOSLEEP 1
37620 _ACEOF
37621
37622                     POSIX4_LINK=" -lposix4"
37623
37624 else
37625
37626
37627   for wx_func in usleep
37628   do
37629     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37630 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37631 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37632   echo $ECHO_N "(cached) $ECHO_C" >&6
37633 else
37634
37635         cat >conftest.$ac_ext <<_ACEOF
37636
37637             /* confdefs.h.  */
37638 _ACEOF
37639 cat confdefs.h >>conftest.$ac_ext
37640 cat >>conftest.$ac_ext <<_ACEOF
37641 /* end confdefs.h.  */
37642
37643
37644                 $ac_includes_default
37645
37646 int
37647 main ()
37648 {
37649
37650                 #ifndef $wx_func
37651                   &$wx_func;
37652                 #endif
37653
37654
37655   ;
37656   return 0;
37657 }
37658
37659 _ACEOF
37660 rm -f conftest.$ac_objext conftest$ac_exeext
37661 if { (ac_try="$ac_link"
37662 case "(($ac_try" in
37663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37664   *) ac_try_echo=$ac_try;;
37665 esac
37666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37667   (eval "$ac_link") 2>conftest.er1
37668   ac_status=$?
37669   grep -v '^ *+' conftest.er1 >conftest.err
37670   rm -f conftest.er1
37671   cat conftest.err >&5
37672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37673   (exit $ac_status); } && {
37674          test -z "$ac_c_werror_flag" ||
37675          test ! -s conftest.err
37676        } && test -s conftest$ac_exeext &&
37677        $as_test_x conftest$ac_exeext; then
37678   eval wx_cv_func_$wx_func=yes
37679 else
37680   echo "$as_me: failed program was:" >&5
37681 sed 's/^/| /' conftest.$ac_ext >&5
37682
37683         eval wx_cv_func_$wx_func=no
37684 fi
37685
37686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37687       conftest$ac_exeext conftest.$ac_ext
37688
37689 fi
37690 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37691                { echo "$as_me:$LINENO: result: $ac_res" >&5
37692 echo "${ECHO_T}$ac_res" >&6; }
37693
37694     if eval test \$wx_cv_func_$wx_func = yes
37695     then
37696       cat >>confdefs.h <<_ACEOF
37697 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37698 _ACEOF
37699
37700
37701     else
37702       :
37703       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37704 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37705
37706     fi
37707   done
37708
37709
37710
37711 fi
37712
37713
37714
37715 fi
37716 done
37717
37718 fi
37719
37720
37721   for wx_func in uname
37722   do
37723     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37724 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37725 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37726   echo $ECHO_N "(cached) $ECHO_C" >&6
37727 else
37728
37729         cat >conftest.$ac_ext <<_ACEOF
37730
37731             /* confdefs.h.  */
37732 _ACEOF
37733 cat confdefs.h >>conftest.$ac_ext
37734 cat >>conftest.$ac_ext <<_ACEOF
37735 /* end confdefs.h.  */
37736
37737                 #include <sys/utsname.h>
37738                 $ac_includes_default
37739
37740 int
37741 main ()
37742 {
37743
37744                 #ifndef $wx_func
37745                   &$wx_func;
37746                 #endif
37747
37748
37749   ;
37750   return 0;
37751 }
37752
37753 _ACEOF
37754 rm -f conftest.$ac_objext conftest$ac_exeext
37755 if { (ac_try="$ac_link"
37756 case "(($ac_try" in
37757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37758   *) ac_try_echo=$ac_try;;
37759 esac
37760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37761   (eval "$ac_link") 2>conftest.er1
37762   ac_status=$?
37763   grep -v '^ *+' conftest.er1 >conftest.err
37764   rm -f conftest.er1
37765   cat conftest.err >&5
37766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37767   (exit $ac_status); } && {
37768          test -z "$ac_c_werror_flag" ||
37769          test ! -s conftest.err
37770        } && test -s conftest$ac_exeext &&
37771        $as_test_x conftest$ac_exeext; then
37772   eval wx_cv_func_$wx_func=yes
37773 else
37774   echo "$as_me: failed program was:" >&5
37775 sed 's/^/| /' conftest.$ac_ext >&5
37776
37777         eval wx_cv_func_$wx_func=no
37778 fi
37779
37780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37781       conftest$ac_exeext conftest.$ac_ext
37782
37783 fi
37784 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37785                { echo "$as_me:$LINENO: result: $ac_res" >&5
37786 echo "${ECHO_T}$ac_res" >&6; }
37787
37788     if eval test \$wx_cv_func_$wx_func = yes
37789     then
37790       cat >>confdefs.h <<_ACEOF
37791 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37792 _ACEOF
37793
37794
37795     else
37796       :
37797
37798     fi
37799   done
37800
37801 if test "$wx_cv_func_uname" != yes; then
37802
37803   for wx_func in gethostname
37804   do
37805     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37806 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37807 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37808   echo $ECHO_N "(cached) $ECHO_C" >&6
37809 else
37810
37811         cat >conftest.$ac_ext <<_ACEOF
37812
37813             /* confdefs.h.  */
37814 _ACEOF
37815 cat confdefs.h >>conftest.$ac_ext
37816 cat >>conftest.$ac_ext <<_ACEOF
37817 /* end confdefs.h.  */
37818
37819
37820                 $ac_includes_default
37821
37822 int
37823 main ()
37824 {
37825
37826                 #ifndef $wx_func
37827                   &$wx_func;
37828                 #endif
37829
37830
37831   ;
37832   return 0;
37833 }
37834
37835 _ACEOF
37836 rm -f conftest.$ac_objext conftest$ac_exeext
37837 if { (ac_try="$ac_link"
37838 case "(($ac_try" in
37839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37840   *) ac_try_echo=$ac_try;;
37841 esac
37842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37843   (eval "$ac_link") 2>conftest.er1
37844   ac_status=$?
37845   grep -v '^ *+' conftest.er1 >conftest.err
37846   rm -f conftest.er1
37847   cat conftest.err >&5
37848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37849   (exit $ac_status); } && {
37850          test -z "$ac_c_werror_flag" ||
37851          test ! -s conftest.err
37852        } && test -s conftest$ac_exeext &&
37853        $as_test_x conftest$ac_exeext; then
37854   eval wx_cv_func_$wx_func=yes
37855 else
37856   echo "$as_me: failed program was:" >&5
37857 sed 's/^/| /' conftest.$ac_ext >&5
37858
37859         eval wx_cv_func_$wx_func=no
37860 fi
37861
37862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37863       conftest$ac_exeext conftest.$ac_ext
37864
37865 fi
37866 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37867                { echo "$as_me:$LINENO: result: $ac_res" >&5
37868 echo "${ECHO_T}$ac_res" >&6; }
37869
37870     if eval test \$wx_cv_func_$wx_func = yes
37871     then
37872       cat >>confdefs.h <<_ACEOF
37873 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37874 _ACEOF
37875
37876
37877     else
37878       :
37879
37880     fi
37881   done
37882
37883 fi
37884
37885
37886   for wx_func in strtok_r
37887   do
37888     { echo "$as_me:$LINENO: checking for $wx_func" >&5
37889 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
37890 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
37891   echo $ECHO_N "(cached) $ECHO_C" >&6
37892 else
37893
37894         cat >conftest.$ac_ext <<_ACEOF
37895
37896             /* confdefs.h.  */
37897 _ACEOF
37898 cat confdefs.h >>conftest.$ac_ext
37899 cat >>conftest.$ac_ext <<_ACEOF
37900 /* end confdefs.h.  */
37901
37902                 #define _REENTRANT
37903                 $ac_includes_default
37904
37905 int
37906 main ()
37907 {
37908
37909                 #ifndef $wx_func
37910                   &$wx_func;
37911                 #endif
37912
37913
37914   ;
37915   return 0;
37916 }
37917
37918 _ACEOF
37919 rm -f conftest.$ac_objext conftest$ac_exeext
37920 if { (ac_try="$ac_link"
37921 case "(($ac_try" in
37922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37923   *) ac_try_echo=$ac_try;;
37924 esac
37925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37926   (eval "$ac_link") 2>conftest.er1
37927   ac_status=$?
37928   grep -v '^ *+' conftest.er1 >conftest.err
37929   rm -f conftest.er1
37930   cat conftest.err >&5
37931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37932   (exit $ac_status); } && {
37933          test -z "$ac_c_werror_flag" ||
37934          test ! -s conftest.err
37935        } && test -s conftest$ac_exeext &&
37936        $as_test_x conftest$ac_exeext; then
37937   eval wx_cv_func_$wx_func=yes
37938 else
37939   echo "$as_me: failed program was:" >&5
37940 sed 's/^/| /' conftest.$ac_ext >&5
37941
37942         eval wx_cv_func_$wx_func=no
37943 fi
37944
37945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37946       conftest$ac_exeext conftest.$ac_ext
37947
37948 fi
37949 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
37950                { echo "$as_me:$LINENO: result: $ac_res" >&5
37951 echo "${ECHO_T}$ac_res" >&6; }
37952
37953     if eval test \$wx_cv_func_$wx_func = yes
37954     then
37955       cat >>confdefs.h <<_ACEOF
37956 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
37957 _ACEOF
37958
37959
37960     else
37961       :
37962
37963     fi
37964   done
37965
37966
37967 INET_LINK=
37968
37969 for ac_func in inet_addr
37970 do
37971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37972 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37974 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37975   echo $ECHO_N "(cached) $ECHO_C" >&6
37976 else
37977   cat >conftest.$ac_ext <<_ACEOF
37978 /* confdefs.h.  */
37979 _ACEOF
37980 cat confdefs.h >>conftest.$ac_ext
37981 cat >>conftest.$ac_ext <<_ACEOF
37982 /* end confdefs.h.  */
37983 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37984    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37985 #define $ac_func innocuous_$ac_func
37986
37987 /* System header to define __stub macros and hopefully few prototypes,
37988     which can conflict with char $ac_func (); below.
37989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37990     <limits.h> exists even on freestanding compilers.  */
37991
37992 #ifdef __STDC__
37993 # include <limits.h>
37994 #else
37995 # include <assert.h>
37996 #endif
37997
37998 #undef $ac_func
37999
38000 /* Override any GCC internal prototype to avoid an error.
38001    Use char because int might match the return type of a GCC
38002    builtin and then its argument prototype would still apply.  */
38003 #ifdef __cplusplus
38004 extern "C"
38005 #endif
38006 char $ac_func ();
38007 /* The GNU C library defines this for functions which it implements
38008     to always fail with ENOSYS.  Some functions are actually named
38009     something starting with __ and the normal name is an alias.  */
38010 #if defined __stub_$ac_func || defined __stub___$ac_func
38011 choke me
38012 #endif
38013
38014 int
38015 main ()
38016 {
38017 return $ac_func ();
38018   ;
38019   return 0;
38020 }
38021 _ACEOF
38022 rm -f conftest.$ac_objext conftest$ac_exeext
38023 if { (ac_try="$ac_link"
38024 case "(($ac_try" in
38025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38026   *) ac_try_echo=$ac_try;;
38027 esac
38028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38029   (eval "$ac_link") 2>conftest.er1
38030   ac_status=$?
38031   grep -v '^ *+' conftest.er1 >conftest.err
38032   rm -f conftest.er1
38033   cat conftest.err >&5
38034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035   (exit $ac_status); } && {
38036          test -z "$ac_c_werror_flag" ||
38037          test ! -s conftest.err
38038        } && test -s conftest$ac_exeext &&
38039        $as_test_x conftest$ac_exeext; then
38040   eval "$as_ac_var=yes"
38041 else
38042   echo "$as_me: failed program was:" >&5
38043 sed 's/^/| /' conftest.$ac_ext >&5
38044
38045         eval "$as_ac_var=no"
38046 fi
38047
38048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38049       conftest$ac_exeext conftest.$ac_ext
38050 fi
38051 ac_res=`eval echo '${'$as_ac_var'}'`
38052                { echo "$as_me:$LINENO: result: $ac_res" >&5
38053 echo "${ECHO_T}$ac_res" >&6; }
38054 if test `eval echo '${'$as_ac_var'}'` = yes; then
38055   cat >>confdefs.h <<_ACEOF
38056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38057 _ACEOF
38058  cat >>confdefs.h <<\_ACEOF
38059 #define HAVE_INET_ADDR 1
38060 _ACEOF
38061
38062 else
38063
38064         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38065 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
38066 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38067   echo $ECHO_N "(cached) $ECHO_C" >&6
38068 else
38069   ac_check_lib_save_LIBS=$LIBS
38070 LIBS="-lnsl  $LIBS"
38071 cat >conftest.$ac_ext <<_ACEOF
38072 /* confdefs.h.  */
38073 _ACEOF
38074 cat confdefs.h >>conftest.$ac_ext
38075 cat >>conftest.$ac_ext <<_ACEOF
38076 /* end confdefs.h.  */
38077
38078 /* Override any GCC internal prototype to avoid an error.
38079    Use char because int might match the return type of a GCC
38080    builtin and then its argument prototype would still apply.  */
38081 #ifdef __cplusplus
38082 extern "C"
38083 #endif
38084 char inet_addr ();
38085 int
38086 main ()
38087 {
38088 return inet_addr ();
38089   ;
38090   return 0;
38091 }
38092 _ACEOF
38093 rm -f conftest.$ac_objext conftest$ac_exeext
38094 if { (ac_try="$ac_link"
38095 case "(($ac_try" in
38096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38097   *) ac_try_echo=$ac_try;;
38098 esac
38099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38100   (eval "$ac_link") 2>conftest.er1
38101   ac_status=$?
38102   grep -v '^ *+' conftest.er1 >conftest.err
38103   rm -f conftest.er1
38104   cat conftest.err >&5
38105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38106   (exit $ac_status); } && {
38107          test -z "$ac_c_werror_flag" ||
38108          test ! -s conftest.err
38109        } && test -s conftest$ac_exeext &&
38110        $as_test_x conftest$ac_exeext; then
38111   ac_cv_lib_nsl_inet_addr=yes
38112 else
38113   echo "$as_me: failed program was:" >&5
38114 sed 's/^/| /' conftest.$ac_ext >&5
38115
38116         ac_cv_lib_nsl_inet_addr=no
38117 fi
38118
38119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38120       conftest$ac_exeext conftest.$ac_ext
38121 LIBS=$ac_check_lib_save_LIBS
38122 fi
38123 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38124 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
38125 if test $ac_cv_lib_nsl_inet_addr = yes; then
38126   INET_LINK="nsl"
38127 else
38128
38129                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38130 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
38131 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38132   echo $ECHO_N "(cached) $ECHO_C" >&6
38133 else
38134   ac_check_lib_save_LIBS=$LIBS
38135 LIBS="-lresolv  $LIBS"
38136 cat >conftest.$ac_ext <<_ACEOF
38137 /* confdefs.h.  */
38138 _ACEOF
38139 cat confdefs.h >>conftest.$ac_ext
38140 cat >>conftest.$ac_ext <<_ACEOF
38141 /* end confdefs.h.  */
38142
38143 /* Override any GCC internal prototype to avoid an error.
38144    Use char because int might match the return type of a GCC
38145    builtin and then its argument prototype would still apply.  */
38146 #ifdef __cplusplus
38147 extern "C"
38148 #endif
38149 char inet_addr ();
38150 int
38151 main ()
38152 {
38153 return inet_addr ();
38154   ;
38155   return 0;
38156 }
38157 _ACEOF
38158 rm -f conftest.$ac_objext conftest$ac_exeext
38159 if { (ac_try="$ac_link"
38160 case "(($ac_try" in
38161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38162   *) ac_try_echo=$ac_try;;
38163 esac
38164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38165   (eval "$ac_link") 2>conftest.er1
38166   ac_status=$?
38167   grep -v '^ *+' conftest.er1 >conftest.err
38168   rm -f conftest.er1
38169   cat conftest.err >&5
38170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38171   (exit $ac_status); } && {
38172          test -z "$ac_c_werror_flag" ||
38173          test ! -s conftest.err
38174        } && test -s conftest$ac_exeext &&
38175        $as_test_x conftest$ac_exeext; then
38176   ac_cv_lib_resolv_inet_addr=yes
38177 else
38178   echo "$as_me: failed program was:" >&5
38179 sed 's/^/| /' conftest.$ac_ext >&5
38180
38181         ac_cv_lib_resolv_inet_addr=no
38182 fi
38183
38184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38185       conftest$ac_exeext conftest.$ac_ext
38186 LIBS=$ac_check_lib_save_LIBS
38187 fi
38188 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38189 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
38190 if test $ac_cv_lib_resolv_inet_addr = yes; then
38191   INET_LINK="resolv"
38192 else
38193
38194                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38195 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
38196 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38197   echo $ECHO_N "(cached) $ECHO_C" >&6
38198 else
38199   ac_check_lib_save_LIBS=$LIBS
38200 LIBS="-lsocket  $LIBS"
38201 cat >conftest.$ac_ext <<_ACEOF
38202 /* confdefs.h.  */
38203 _ACEOF
38204 cat confdefs.h >>conftest.$ac_ext
38205 cat >>conftest.$ac_ext <<_ACEOF
38206 /* end confdefs.h.  */
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 inet_addr ();
38215 int
38216 main ()
38217 {
38218 return inet_addr ();
38219   ;
38220   return 0;
38221 }
38222 _ACEOF
38223 rm -f conftest.$ac_objext conftest$ac_exeext
38224 if { (ac_try="$ac_link"
38225 case "(($ac_try" in
38226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38227   *) ac_try_echo=$ac_try;;
38228 esac
38229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38230   (eval "$ac_link") 2>conftest.er1
38231   ac_status=$?
38232   grep -v '^ *+' conftest.er1 >conftest.err
38233   rm -f conftest.er1
38234   cat conftest.err >&5
38235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38236   (exit $ac_status); } && {
38237          test -z "$ac_c_werror_flag" ||
38238          test ! -s conftest.err
38239        } && test -s conftest$ac_exeext &&
38240        $as_test_x conftest$ac_exeext; then
38241   ac_cv_lib_socket_inet_addr=yes
38242 else
38243   echo "$as_me: failed program was:" >&5
38244 sed 's/^/| /' conftest.$ac_ext >&5
38245
38246         ac_cv_lib_socket_inet_addr=no
38247 fi
38248
38249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38250       conftest$ac_exeext conftest.$ac_ext
38251 LIBS=$ac_check_lib_save_LIBS
38252 fi
38253 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38254 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
38255 if test $ac_cv_lib_socket_inet_addr = yes; then
38256   INET_LINK="socket"
38257
38258 fi
38259
38260
38261
38262 fi
38263
38264
38265
38266 fi
38267
38268
38269
38270 fi
38271 done
38272
38273
38274
38275 for ac_func in inet_aton
38276 do
38277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38278 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38280 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38281   echo $ECHO_N "(cached) $ECHO_C" >&6
38282 else
38283   cat >conftest.$ac_ext <<_ACEOF
38284 /* confdefs.h.  */
38285 _ACEOF
38286 cat confdefs.h >>conftest.$ac_ext
38287 cat >>conftest.$ac_ext <<_ACEOF
38288 /* end confdefs.h.  */
38289 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38290    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38291 #define $ac_func innocuous_$ac_func
38292
38293 /* System header to define __stub macros and hopefully few prototypes,
38294     which can conflict with char $ac_func (); below.
38295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38296     <limits.h> exists even on freestanding compilers.  */
38297
38298 #ifdef __STDC__
38299 # include <limits.h>
38300 #else
38301 # include <assert.h>
38302 #endif
38303
38304 #undef $ac_func
38305
38306 /* Override any GCC internal prototype to avoid an error.
38307    Use char because int might match the return type of a GCC
38308    builtin and then its argument prototype would still apply.  */
38309 #ifdef __cplusplus
38310 extern "C"
38311 #endif
38312 char $ac_func ();
38313 /* The GNU C library defines this for functions which it implements
38314     to always fail with ENOSYS.  Some functions are actually named
38315     something starting with __ and the normal name is an alias.  */
38316 #if defined __stub_$ac_func || defined __stub___$ac_func
38317 choke me
38318 #endif
38319
38320 int
38321 main ()
38322 {
38323 return $ac_func ();
38324   ;
38325   return 0;
38326 }
38327 _ACEOF
38328 rm -f conftest.$ac_objext conftest$ac_exeext
38329 if { (ac_try="$ac_link"
38330 case "(($ac_try" in
38331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38332   *) ac_try_echo=$ac_try;;
38333 esac
38334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38335   (eval "$ac_link") 2>conftest.er1
38336   ac_status=$?
38337   grep -v '^ *+' conftest.er1 >conftest.err
38338   rm -f conftest.er1
38339   cat conftest.err >&5
38340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341   (exit $ac_status); } && {
38342          test -z "$ac_c_werror_flag" ||
38343          test ! -s conftest.err
38344        } && test -s conftest$ac_exeext &&
38345        $as_test_x conftest$ac_exeext; then
38346   eval "$as_ac_var=yes"
38347 else
38348   echo "$as_me: failed program was:" >&5
38349 sed 's/^/| /' conftest.$ac_ext >&5
38350
38351         eval "$as_ac_var=no"
38352 fi
38353
38354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38355       conftest$ac_exeext conftest.$ac_ext
38356 fi
38357 ac_res=`eval echo '${'$as_ac_var'}'`
38358                { echo "$as_me:$LINENO: result: $ac_res" >&5
38359 echo "${ECHO_T}$ac_res" >&6; }
38360 if test `eval echo '${'$as_ac_var'}'` = yes; then
38361   cat >>confdefs.h <<_ACEOF
38362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38363 _ACEOF
38364  cat >>confdefs.h <<\_ACEOF
38365 #define HAVE_INET_ATON 1
38366 _ACEOF
38367
38368 else
38369
38370                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38371 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38372 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
38373 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
38374   echo $ECHO_N "(cached) $ECHO_C" >&6
38375 else
38376   ac_check_lib_save_LIBS=$LIBS
38377 LIBS="-l$INET_LINK  $LIBS"
38378 cat >conftest.$ac_ext <<_ACEOF
38379 /* confdefs.h.  */
38380 _ACEOF
38381 cat confdefs.h >>conftest.$ac_ext
38382 cat >>conftest.$ac_ext <<_ACEOF
38383 /* end confdefs.h.  */
38384
38385 /* Override any GCC internal prototype to avoid an error.
38386    Use char because int might match the return type of a GCC
38387    builtin and then its argument prototype would still apply.  */
38388 #ifdef __cplusplus
38389 extern "C"
38390 #endif
38391 char inet_aton ();
38392 int
38393 main ()
38394 {
38395 return inet_aton ();
38396   ;
38397   return 0;
38398 }
38399 _ACEOF
38400 rm -f conftest.$ac_objext conftest$ac_exeext
38401 if { (ac_try="$ac_link"
38402 case "(($ac_try" in
38403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38404   *) ac_try_echo=$ac_try;;
38405 esac
38406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38407   (eval "$ac_link") 2>conftest.er1
38408   ac_status=$?
38409   grep -v '^ *+' conftest.er1 >conftest.err
38410   rm -f conftest.er1
38411   cat conftest.err >&5
38412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38413   (exit $ac_status); } && {
38414          test -z "$ac_c_werror_flag" ||
38415          test ! -s conftest.err
38416        } && test -s conftest$ac_exeext &&
38417        $as_test_x conftest$ac_exeext; then
38418   eval "$as_ac_Lib=yes"
38419 else
38420   echo "$as_me: failed program was:" >&5
38421 sed 's/^/| /' conftest.$ac_ext >&5
38422
38423         eval "$as_ac_Lib=no"
38424 fi
38425
38426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38427       conftest$ac_exeext conftest.$ac_ext
38428 LIBS=$ac_check_lib_save_LIBS
38429 fi
38430 ac_res=`eval echo '${'$as_ac_Lib'}'`
38431                { echo "$as_me:$LINENO: result: $ac_res" >&5
38432 echo "${ECHO_T}$ac_res" >&6; }
38433 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38434   cat >>confdefs.h <<\_ACEOF
38435 #define HAVE_INET_ATON 1
38436 _ACEOF
38437
38438 fi
38439
38440
38441 fi
38442 done
38443
38444
38445 if test "x$INET_LINK" != "x"; then
38446     cat >>confdefs.h <<\_ACEOF
38447 #define HAVE_INET_ADDR 1
38448 _ACEOF
38449
38450     INET_LINK=" -l$INET_LINK"
38451 fi
38452
38453
38454   for wx_func in fdopen
38455   do
38456     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38457 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38458 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38459   echo $ECHO_N "(cached) $ECHO_C" >&6
38460 else
38461
38462         cat >conftest.$ac_ext <<_ACEOF
38463
38464             /* confdefs.h.  */
38465 _ACEOF
38466 cat confdefs.h >>conftest.$ac_ext
38467 cat >>conftest.$ac_ext <<_ACEOF
38468 /* end confdefs.h.  */
38469
38470
38471                 $ac_includes_default
38472
38473 int
38474 main ()
38475 {
38476
38477                 #ifndef $wx_func
38478                   &$wx_func;
38479                 #endif
38480
38481
38482   ;
38483   return 0;
38484 }
38485
38486 _ACEOF
38487 rm -f conftest.$ac_objext conftest$ac_exeext
38488 if { (ac_try="$ac_link"
38489 case "(($ac_try" in
38490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38491   *) ac_try_echo=$ac_try;;
38492 esac
38493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38494   (eval "$ac_link") 2>conftest.er1
38495   ac_status=$?
38496   grep -v '^ *+' conftest.er1 >conftest.err
38497   rm -f conftest.er1
38498   cat conftest.err >&5
38499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500   (exit $ac_status); } && {
38501          test -z "$ac_c_werror_flag" ||
38502          test ! -s conftest.err
38503        } && test -s conftest$ac_exeext &&
38504        $as_test_x conftest$ac_exeext; then
38505   eval wx_cv_func_$wx_func=yes
38506 else
38507   echo "$as_me: failed program was:" >&5
38508 sed 's/^/| /' conftest.$ac_ext >&5
38509
38510         eval wx_cv_func_$wx_func=no
38511 fi
38512
38513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38514       conftest$ac_exeext conftest.$ac_ext
38515
38516 fi
38517 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38518                { echo "$as_me:$LINENO: result: $ac_res" >&5
38519 echo "${ECHO_T}$ac_res" >&6; }
38520
38521     if eval test \$wx_cv_func_$wx_func = yes
38522     then
38523       cat >>confdefs.h <<_ACEOF
38524 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38525 _ACEOF
38526
38527
38528     else
38529       :
38530
38531     fi
38532   done
38533
38534
38535 if test "$wxUSE_TARSTREAM" = "yes"; then
38536
38537   for wx_func in sysconf
38538   do
38539     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38540 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38541 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38542   echo $ECHO_N "(cached) $ECHO_C" >&6
38543 else
38544
38545         cat >conftest.$ac_ext <<_ACEOF
38546
38547             /* confdefs.h.  */
38548 _ACEOF
38549 cat confdefs.h >>conftest.$ac_ext
38550 cat >>conftest.$ac_ext <<_ACEOF
38551 /* end confdefs.h.  */
38552
38553
38554                 $ac_includes_default
38555
38556 int
38557 main ()
38558 {
38559
38560                 #ifndef $wx_func
38561                   &$wx_func;
38562                 #endif
38563
38564
38565   ;
38566   return 0;
38567 }
38568
38569 _ACEOF
38570 rm -f conftest.$ac_objext conftest$ac_exeext
38571 if { (ac_try="$ac_link"
38572 case "(($ac_try" in
38573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38574   *) ac_try_echo=$ac_try;;
38575 esac
38576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38577   (eval "$ac_link") 2>conftest.er1
38578   ac_status=$?
38579   grep -v '^ *+' conftest.er1 >conftest.err
38580   rm -f conftest.er1
38581   cat conftest.err >&5
38582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583   (exit $ac_status); } && {
38584          test -z "$ac_c_werror_flag" ||
38585          test ! -s conftest.err
38586        } && test -s conftest$ac_exeext &&
38587        $as_test_x conftest$ac_exeext; then
38588   eval wx_cv_func_$wx_func=yes
38589 else
38590   echo "$as_me: failed program was:" >&5
38591 sed 's/^/| /' conftest.$ac_ext >&5
38592
38593         eval wx_cv_func_$wx_func=no
38594 fi
38595
38596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38597       conftest$ac_exeext conftest.$ac_ext
38598
38599 fi
38600 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38601                { echo "$as_me:$LINENO: result: $ac_res" >&5
38602 echo "${ECHO_T}$ac_res" >&6; }
38603
38604     if eval test \$wx_cv_func_$wx_func = yes
38605     then
38606       cat >>confdefs.h <<_ACEOF
38607 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38608 _ACEOF
38609
38610
38611     else
38612       :
38613
38614     fi
38615   done
38616
38617
38618
38619   for wx_func in getpwuid_r
38620   do
38621     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38622 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38623 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38624   echo $ECHO_N "(cached) $ECHO_C" >&6
38625 else
38626
38627         cat >conftest.$ac_ext <<_ACEOF
38628
38629             /* confdefs.h.  */
38630 _ACEOF
38631 cat confdefs.h >>conftest.$ac_ext
38632 cat >>conftest.$ac_ext <<_ACEOF
38633 /* end confdefs.h.  */
38634
38635
38636                     #define _REENTRANT
38637                     #include <pwd.h>
38638
38639                 $ac_includes_default
38640
38641 int
38642 main ()
38643 {
38644
38645                 #ifndef $wx_func
38646                   &$wx_func;
38647                 #endif
38648
38649                     struct passwd pw, *ppw;
38650                     char buf[1024];
38651                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
38652
38653
38654   ;
38655   return 0;
38656 }
38657
38658 _ACEOF
38659 rm -f conftest.$ac_objext conftest$ac_exeext
38660 if { (ac_try="$ac_link"
38661 case "(($ac_try" in
38662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38663   *) ac_try_echo=$ac_try;;
38664 esac
38665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38666   (eval "$ac_link") 2>conftest.er1
38667   ac_status=$?
38668   grep -v '^ *+' conftest.er1 >conftest.err
38669   rm -f conftest.er1
38670   cat conftest.err >&5
38671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672   (exit $ac_status); } && {
38673          test -z "$ac_c_werror_flag" ||
38674          test ! -s conftest.err
38675        } && test -s conftest$ac_exeext &&
38676        $as_test_x conftest$ac_exeext; then
38677   eval wx_cv_func_$wx_func=yes
38678 else
38679   echo "$as_me: failed program was:" >&5
38680 sed 's/^/| /' conftest.$ac_ext >&5
38681
38682         eval wx_cv_func_$wx_func=no
38683 fi
38684
38685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38686       conftest$ac_exeext conftest.$ac_ext
38687
38688 fi
38689 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38690                { echo "$as_me:$LINENO: result: $ac_res" >&5
38691 echo "${ECHO_T}$ac_res" >&6; }
38692
38693     if eval test \$wx_cv_func_$wx_func = yes
38694     then
38695       cat >>confdefs.h <<_ACEOF
38696 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38697 _ACEOF
38698
38699
38700     else
38701       :
38702
38703     fi
38704   done
38705
38706
38707
38708   for wx_func in getgrgid_r
38709   do
38710     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38711 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38712 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38713   echo $ECHO_N "(cached) $ECHO_C" >&6
38714 else
38715
38716         cat >conftest.$ac_ext <<_ACEOF
38717
38718             /* confdefs.h.  */
38719 _ACEOF
38720 cat confdefs.h >>conftest.$ac_ext
38721 cat >>conftest.$ac_ext <<_ACEOF
38722 /* end confdefs.h.  */
38723
38724
38725                     #define _REENTRANT
38726                     #include <grp.h>
38727
38728                 $ac_includes_default
38729
38730 int
38731 main ()
38732 {
38733
38734                 #ifndef $wx_func
38735                   &$wx_func;
38736                 #endif
38737
38738                     struct group grp, *pgrp;
38739                     char buf[1024];
38740                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
38741
38742
38743   ;
38744   return 0;
38745 }
38746
38747 _ACEOF
38748 rm -f conftest.$ac_objext conftest$ac_exeext
38749 if { (ac_try="$ac_link"
38750 case "(($ac_try" in
38751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38752   *) ac_try_echo=$ac_try;;
38753 esac
38754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38755   (eval "$ac_link") 2>conftest.er1
38756   ac_status=$?
38757   grep -v '^ *+' conftest.er1 >conftest.err
38758   rm -f conftest.er1
38759   cat conftest.err >&5
38760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38761   (exit $ac_status); } && {
38762          test -z "$ac_c_werror_flag" ||
38763          test ! -s conftest.err
38764        } && test -s conftest$ac_exeext &&
38765        $as_test_x conftest$ac_exeext; then
38766   eval wx_cv_func_$wx_func=yes
38767 else
38768   echo "$as_me: failed program was:" >&5
38769 sed 's/^/| /' conftest.$ac_ext >&5
38770
38771         eval wx_cv_func_$wx_func=no
38772 fi
38773
38774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38775       conftest$ac_exeext conftest.$ac_ext
38776
38777 fi
38778 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38779                { echo "$as_me:$LINENO: result: $ac_res" >&5
38780 echo "${ECHO_T}$ac_res" >&6; }
38781
38782     if eval test \$wx_cv_func_$wx_func = yes
38783     then
38784       cat >>confdefs.h <<_ACEOF
38785 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38786 _ACEOF
38787
38788
38789     else
38790       :
38791
38792     fi
38793   done
38794
38795 fi
38796
38797 fi
38798
38799
38800
38801 cat >confcache <<\_ACEOF
38802 # This file is a shell script that caches the results of configure
38803 # tests run on this system so they can be shared between configure
38804 # scripts and configure runs, see configure's option --config-cache.
38805 # It is not useful on other systems.  If it contains results you don't
38806 # want to keep, you may remove or edit it.
38807 #
38808 # config.status only pays attention to the cache file if you give it
38809 # the --recheck option to rerun configure.
38810 #
38811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38813 # following values.
38814
38815 _ACEOF
38816
38817 # The following way of writing the cache mishandles newlines in values,
38818 # but we know of no workaround that is simple, portable, and efficient.
38819 # So, we kill variables containing newlines.
38820 # Ultrix sh set writes to stderr and can't be redirected directly,
38821 # and sets the high bit in the cache file unless we assign to the vars.
38822 (
38823   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38824     eval ac_val=\$$ac_var
38825     case $ac_val in #(
38826     *${as_nl}*)
38827       case $ac_var in #(
38828       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
38829 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
38830       esac
38831       case $ac_var in #(
38832       _ | IFS | as_nl) ;; #(
38833       *) $as_unset $ac_var ;;
38834       esac ;;
38835     esac
38836   done
38837
38838   (set) 2>&1 |
38839     case $as_nl`(ac_space=' '; set) 2>&1` in #(
38840     *${as_nl}ac_space=\ *)
38841       # `set' does not quote correctly, so add quotes (double-quote
38842       # substitution turns \\\\ into \\, and sed turns \\ into \).
38843       sed -n \
38844         "s/'/'\\\\''/g;
38845           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38846       ;; #(
38847     *)
38848       # `set' quotes correctly as required by POSIX, so do not add quotes.
38849       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38850       ;;
38851     esac |
38852     sort
38853 ) |
38854   sed '
38855      /^ac_cv_env_/b end
38856      t clear
38857      :clear
38858      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38859      t end
38860      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38861      :end' >>confcache
38862 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38863   if test -w "$cache_file"; then
38864     test "x$cache_file" != "x/dev/null" &&
38865       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
38866 echo "$as_me: updating cache $cache_file" >&6;}
38867     cat confcache >$cache_file
38868   else
38869     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38870 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38871   fi
38872 fi
38873 rm -f confcache
38874
38875
38876 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38877
38878
38879     THREADS_LINK=
38880     THREADS_CFLAGS=
38881
38882     if test "$wxUSE_THREADS" = "yes" ; then
38883         if test "$USE_BEOS" = 1; then
38884             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38885 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38886             wxUSE_THREADS="no"
38887         fi
38888     fi
38889
38890     if test "$wxUSE_THREADS" = "yes" ; then
38891
38892
38893                                 THREAD_OPTS="-pthread"
38894         if test "x$SUNCXX" = xyes; then
38895             THREAD_OPTS="-mt lthread $THREAD_OPTS"
38896         fi
38897
38898         case "${host}" in
38899           *-*-solaris2* | *-*-sunos4* )
38900                 if test "x$GCC" = "xyes"; then
38901                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
38902                 fi
38903                 ;;
38904           *-*-freebsd*)
38905                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38906                 ;;
38907           *-*-darwin* | *-*-cygwin* )
38908                                                 THREAD_OPTS=""
38909                 ;;
38910           *-*-aix*)
38911                                 THREAD_OPTS="pthreads"
38912                 ;;
38913           *-hp-hpux* )
38914                 if test "x$GCC" = "xyes"; then
38915                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38916                         THREAD_OPTS=""
38917                 else
38918                                                             THREAD_OPTS="-mt"
38919                 fi
38920                 ;;
38921
38922           *-*-irix* )
38923                                                                 if test "x$GCC" = "xyes"; then
38924                     THREAD_OPTS=""
38925                 fi
38926                 ;;
38927
38928           *-*-*UnixWare*)
38929                                 if test "x$GCC" != "xyes"; then
38930                     THREAD_OPTS="-Ethread"
38931                 fi
38932                 ;;
38933         esac
38934
38935                                 THREAD_OPTS="$THREAD_OPTS pthread none"
38936
38937                 THREADS_OK=no
38938         for flag in $THREAD_OPTS; do
38939             case $flag in
38940                 none)
38941                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38942 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
38943                     ;;
38944
38945                 -*)
38946                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38947 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
38948                     THREADS_CFLAGS="$flag"
38949                     ;;
38950
38951                 *)
38952                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38953 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
38954                     THREADS_LINK="-l$flag"
38955                     ;;
38956               esac
38957
38958               save_LIBS="$LIBS"
38959               save_CFLAGS="$CFLAGS"
38960               LIBS="$THREADS_LINK $LIBS"
38961               CFLAGS="$THREADS_CFLAGS $CFLAGS"
38962
38963               cat >conftest.$ac_ext <<_ACEOF
38964 /* confdefs.h.  */
38965 _ACEOF
38966 cat confdefs.h >>conftest.$ac_ext
38967 cat >>conftest.$ac_ext <<_ACEOF
38968 /* end confdefs.h.  */
38969 #include <pthread.h>
38970 int
38971 main ()
38972 {
38973 pthread_create(0,0,0,0);
38974   ;
38975   return 0;
38976 }
38977 _ACEOF
38978 rm -f conftest.$ac_objext conftest$ac_exeext
38979 if { (ac_try="$ac_link"
38980 case "(($ac_try" in
38981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38982   *) ac_try_echo=$ac_try;;
38983 esac
38984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38985   (eval "$ac_link") 2>conftest.er1
38986   ac_status=$?
38987   grep -v '^ *+' conftest.er1 >conftest.err
38988   rm -f conftest.er1
38989   cat conftest.err >&5
38990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38991   (exit $ac_status); } && {
38992          test -z "$ac_c_werror_flag" ||
38993          test ! -s conftest.err
38994        } && test -s conftest$ac_exeext &&
38995        $as_test_x conftest$ac_exeext; then
38996   THREADS_OK=yes
38997 else
38998   echo "$as_me: failed program was:" >&5
38999 sed 's/^/| /' conftest.$ac_ext >&5
39000
39001
39002 fi
39003
39004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39005       conftest$ac_exeext conftest.$ac_ext
39006
39007               LIBS="$save_LIBS"
39008               CFLAGS="$save_CFLAGS"
39009
39010               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39011 echo "${ECHO_T}$THREADS_OK" >&6; }
39012               if test "x$THREADS_OK" = "xyes"; then
39013                       break;
39014               fi
39015
39016               THREADS_LINK=""
39017               THREADS_CFLAGS=""
39018       done
39019
39020       if test "x$THREADS_OK" != "xyes"; then
39021           wxUSE_THREADS=no
39022           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39023 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39024       else
39025                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
39026           LIBS="$THREADS_LINK $LIBS"
39027
39028           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39029 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
39030           flag=no
39031           case "${host}" in
39032             *-aix*)
39033                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39034                 flag="-D_THREAD_SAFE"
39035                 ;;
39036             *-freebsd*)
39037                 flag="-D_THREAD_SAFE"
39038                 ;;
39039             *-hp-hpux* )
39040                 flag="-D_REENTRANT"
39041                 if test "x$GCC" != "xyes"; then
39042                                         flag="$flag -D_RWSTD_MULTI_THREAD"
39043                 fi
39044                 ;;
39045             *solaris* | alpha*-osf*)
39046                 flag="-D_REENTRANT"
39047                 ;;
39048           esac
39049           { echo "$as_me:$LINENO: result: ${flag}" >&5
39050 echo "${ECHO_T}${flag}" >&6; }
39051           if test "x$flag" != xno; then
39052               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
39053           fi
39054
39055                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
39056       fi
39057     fi
39058
39059         if test "$wxUSE_THREADS" = "yes" ; then
39060
39061 for ac_func in thr_setconcurrency
39062 do
39063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39067   echo $ECHO_N "(cached) $ECHO_C" >&6
39068 else
39069   cat >conftest.$ac_ext <<_ACEOF
39070 /* confdefs.h.  */
39071 _ACEOF
39072 cat confdefs.h >>conftest.$ac_ext
39073 cat >>conftest.$ac_ext <<_ACEOF
39074 /* end confdefs.h.  */
39075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39077 #define $ac_func innocuous_$ac_func
39078
39079 /* System header to define __stub macros and hopefully few prototypes,
39080     which can conflict with char $ac_func (); below.
39081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39082     <limits.h> exists even on freestanding compilers.  */
39083
39084 #ifdef __STDC__
39085 # include <limits.h>
39086 #else
39087 # include <assert.h>
39088 #endif
39089
39090 #undef $ac_func
39091
39092 /* Override any GCC internal prototype to avoid an error.
39093    Use char because int might match the return type of a GCC
39094    builtin and then its argument prototype would still apply.  */
39095 #ifdef __cplusplus
39096 extern "C"
39097 #endif
39098 char $ac_func ();
39099 /* The GNU C library defines this for functions which it implements
39100     to always fail with ENOSYS.  Some functions are actually named
39101     something starting with __ and the normal name is an alias.  */
39102 #if defined __stub_$ac_func || defined __stub___$ac_func
39103 choke me
39104 #endif
39105
39106 int
39107 main ()
39108 {
39109 return $ac_func ();
39110   ;
39111   return 0;
39112 }
39113 _ACEOF
39114 rm -f conftest.$ac_objext conftest$ac_exeext
39115 if { (ac_try="$ac_link"
39116 case "(($ac_try" in
39117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39118   *) ac_try_echo=$ac_try;;
39119 esac
39120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39121   (eval "$ac_link") 2>conftest.er1
39122   ac_status=$?
39123   grep -v '^ *+' conftest.er1 >conftest.err
39124   rm -f conftest.er1
39125   cat conftest.err >&5
39126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39127   (exit $ac_status); } && {
39128          test -z "$ac_c_werror_flag" ||
39129          test ! -s conftest.err
39130        } && test -s conftest$ac_exeext &&
39131        $as_test_x conftest$ac_exeext; then
39132   eval "$as_ac_var=yes"
39133 else
39134   echo "$as_me: failed program was:" >&5
39135 sed 's/^/| /' conftest.$ac_ext >&5
39136
39137         eval "$as_ac_var=no"
39138 fi
39139
39140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39141       conftest$ac_exeext conftest.$ac_ext
39142 fi
39143 ac_res=`eval echo '${'$as_ac_var'}'`
39144                { echo "$as_me:$LINENO: result: $ac_res" >&5
39145 echo "${ECHO_T}$ac_res" >&6; }
39146 if test `eval echo '${'$as_ac_var'}'` = yes; then
39147   cat >>confdefs.h <<_ACEOF
39148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39149 _ACEOF
39150
39151 fi
39152 done
39153
39154
39155                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39156 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
39157 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39158   echo $ECHO_N "(cached) $ECHO_C" >&6
39159 else
39160
39161                                 ac_ext=cpp
39162 ac_cpp='$CXXCPP $CPPFLAGS'
39163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39166
39167         cat >conftest.$ac_ext <<_ACEOF
39168 /* confdefs.h.  */
39169 _ACEOF
39170 cat confdefs.h >>conftest.$ac_ext
39171 cat >>conftest.$ac_ext <<_ACEOF
39172 /* end confdefs.h.  */
39173 #include <pthread.h>
39174                void ThreadCleanupFunc(void *p);
39175
39176 int
39177 main ()
39178 {
39179
39180                 void *p;
39181                 pthread_cleanup_push(ThreadCleanupFunc, p);
39182                 pthread_cleanup_pop(0);
39183
39184   ;
39185   return 0;
39186 }
39187 _ACEOF
39188 rm -f conftest.$ac_objext
39189 if { (ac_try="$ac_compile"
39190 case "(($ac_try" in
39191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39192   *) ac_try_echo=$ac_try;;
39193 esac
39194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39195   (eval "$ac_compile") 2>conftest.er1
39196   ac_status=$?
39197   grep -v '^ *+' conftest.er1 >conftest.err
39198   rm -f conftest.er1
39199   cat conftest.err >&5
39200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39201   (exit $ac_status); } && {
39202          test -z "$ac_cxx_werror_flag" ||
39203          test ! -s conftest.err
39204        } && test -s conftest.$ac_objext; then
39205
39206                wx_cv_func_pthread_cleanup=yes
39207
39208 else
39209   echo "$as_me: failed program was:" >&5
39210 sed 's/^/| /' conftest.$ac_ext >&5
39211
39212
39213                wx_cv_func_pthread_cleanup=no
39214
39215
39216 fi
39217
39218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39219         ac_ext=c
39220 ac_cpp='$CPP $CPPFLAGS'
39221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39224
39225
39226 fi
39227 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39228 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
39229       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39230         cat >>confdefs.h <<\_ACEOF
39231 #define wxHAVE_PTHREAD_CLEANUP 1
39232 _ACEOF
39233
39234       fi
39235
39236
39237 for ac_header in sched.h
39238 do
39239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
39241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
39242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39243   echo $ECHO_N "(cached) $ECHO_C" >&6
39244 else
39245   cat >conftest.$ac_ext <<_ACEOF
39246 /* confdefs.h.  */
39247 _ACEOF
39248 cat confdefs.h >>conftest.$ac_ext
39249 cat >>conftest.$ac_ext <<_ACEOF
39250 /* end confdefs.h.  */
39251 $ac_includes_default
39252
39253 #include <$ac_header>
39254 _ACEOF
39255 rm -f conftest.$ac_objext
39256 if { (ac_try="$ac_compile"
39257 case "(($ac_try" in
39258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39259   *) ac_try_echo=$ac_try;;
39260 esac
39261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39262   (eval "$ac_compile") 2>conftest.er1
39263   ac_status=$?
39264   grep -v '^ *+' conftest.er1 >conftest.err
39265   rm -f conftest.er1
39266   cat conftest.err >&5
39267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39268   (exit $ac_status); } && {
39269          test -z "$ac_c_werror_flag" ||
39270          test ! -s conftest.err
39271        } && test -s conftest.$ac_objext; then
39272   eval "$as_ac_Header=yes"
39273 else
39274   echo "$as_me: failed program was:" >&5
39275 sed 's/^/| /' conftest.$ac_ext >&5
39276
39277         eval "$as_ac_Header=no"
39278 fi
39279
39280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39281 fi
39282 ac_res=`eval echo '${'$as_ac_Header'}'`
39283                { echo "$as_me:$LINENO: result: $ac_res" >&5
39284 echo "${ECHO_T}$ac_res" >&6; }
39285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39286   cat >>confdefs.h <<_ACEOF
39287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39288 _ACEOF
39289
39290 fi
39291
39292 done
39293
39294       if test "$ac_cv_header_sched_h" = "yes"; then
39295           { echo "$as_me:$LINENO: checking for sched_yield" >&5
39296 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
39297 if test "${ac_cv_func_sched_yield+set}" = set; then
39298   echo $ECHO_N "(cached) $ECHO_C" >&6
39299 else
39300   cat >conftest.$ac_ext <<_ACEOF
39301 /* confdefs.h.  */
39302 _ACEOF
39303 cat confdefs.h >>conftest.$ac_ext
39304 cat >>conftest.$ac_ext <<_ACEOF
39305 /* end confdefs.h.  */
39306 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39308 #define sched_yield innocuous_sched_yield
39309
39310 /* System header to define __stub macros and hopefully few prototypes,
39311     which can conflict with char sched_yield (); below.
39312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39313     <limits.h> exists even on freestanding compilers.  */
39314
39315 #ifdef __STDC__
39316 # include <limits.h>
39317 #else
39318 # include <assert.h>
39319 #endif
39320
39321 #undef sched_yield
39322
39323 /* Override any GCC internal prototype to avoid an error.
39324    Use char because int might match the return type of a GCC
39325    builtin and then its argument prototype would still apply.  */
39326 #ifdef __cplusplus
39327 extern "C"
39328 #endif
39329 char sched_yield ();
39330 /* The GNU C library defines this for functions which it implements
39331     to always fail with ENOSYS.  Some functions are actually named
39332     something starting with __ and the normal name is an alias.  */
39333 #if defined __stub_sched_yield || defined __stub___sched_yield
39334 choke me
39335 #endif
39336
39337 int
39338 main ()
39339 {
39340 return sched_yield ();
39341   ;
39342   return 0;
39343 }
39344 _ACEOF
39345 rm -f conftest.$ac_objext conftest$ac_exeext
39346 if { (ac_try="$ac_link"
39347 case "(($ac_try" in
39348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39349   *) ac_try_echo=$ac_try;;
39350 esac
39351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39352   (eval "$ac_link") 2>conftest.er1
39353   ac_status=$?
39354   grep -v '^ *+' conftest.er1 >conftest.err
39355   rm -f conftest.er1
39356   cat conftest.err >&5
39357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39358   (exit $ac_status); } && {
39359          test -z "$ac_c_werror_flag" ||
39360          test ! -s conftest.err
39361        } && test -s conftest$ac_exeext &&
39362        $as_test_x conftest$ac_exeext; then
39363   ac_cv_func_sched_yield=yes
39364 else
39365   echo "$as_me: failed program was:" >&5
39366 sed 's/^/| /' conftest.$ac_ext >&5
39367
39368         ac_cv_func_sched_yield=no
39369 fi
39370
39371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39372       conftest$ac_exeext conftest.$ac_ext
39373 fi
39374 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39375 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
39376 if test $ac_cv_func_sched_yield = yes; then
39377   cat >>confdefs.h <<\_ACEOF
39378 #define HAVE_SCHED_YIELD 1
39379 _ACEOF
39380
39381 else
39382
39383                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39384 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
39385 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39386   echo $ECHO_N "(cached) $ECHO_C" >&6
39387 else
39388   ac_check_lib_save_LIBS=$LIBS
39389 LIBS="-lposix4  $LIBS"
39390 cat >conftest.$ac_ext <<_ACEOF
39391 /* confdefs.h.  */
39392 _ACEOF
39393 cat confdefs.h >>conftest.$ac_ext
39394 cat >>conftest.$ac_ext <<_ACEOF
39395 /* end confdefs.h.  */
39396
39397 /* Override any GCC internal prototype to avoid an error.
39398    Use char because int might match the return type of a GCC
39399    builtin and then its argument prototype would still apply.  */
39400 #ifdef __cplusplus
39401 extern "C"
39402 #endif
39403 char sched_yield ();
39404 int
39405 main ()
39406 {
39407 return sched_yield ();
39408   ;
39409   return 0;
39410 }
39411 _ACEOF
39412 rm -f conftest.$ac_objext conftest$ac_exeext
39413 if { (ac_try="$ac_link"
39414 case "(($ac_try" in
39415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39416   *) ac_try_echo=$ac_try;;
39417 esac
39418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39419   (eval "$ac_link") 2>conftest.er1
39420   ac_status=$?
39421   grep -v '^ *+' conftest.er1 >conftest.err
39422   rm -f conftest.er1
39423   cat conftest.err >&5
39424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39425   (exit $ac_status); } && {
39426          test -z "$ac_c_werror_flag" ||
39427          test ! -s conftest.err
39428        } && test -s conftest$ac_exeext &&
39429        $as_test_x conftest$ac_exeext; then
39430   ac_cv_lib_posix4_sched_yield=yes
39431 else
39432   echo "$as_me: failed program was:" >&5
39433 sed 's/^/| /' conftest.$ac_ext >&5
39434
39435         ac_cv_lib_posix4_sched_yield=no
39436 fi
39437
39438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39439       conftest$ac_exeext conftest.$ac_ext
39440 LIBS=$ac_check_lib_save_LIBS
39441 fi
39442 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39443 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
39444 if test $ac_cv_lib_posix4_sched_yield = yes; then
39445   cat >>confdefs.h <<\_ACEOF
39446 #define HAVE_SCHED_YIELD 1
39447 _ACEOF
39448  POSIX4_LINK=" -lposix4"
39449 else
39450   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39451 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39452
39453 fi
39454
39455
39456
39457 fi
39458
39459       fi
39460
39461                                           HAVE_PRIOR_FUNCS=0
39462       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39463 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
39464 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39465   echo $ECHO_N "(cached) $ECHO_C" >&6
39466 else
39467   cat >conftest.$ac_ext <<_ACEOF
39468 /* confdefs.h.  */
39469 _ACEOF
39470 cat confdefs.h >>conftest.$ac_ext
39471 cat >>conftest.$ac_ext <<_ACEOF
39472 /* end confdefs.h.  */
39473 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39475 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39476
39477 /* System header to define __stub macros and hopefully few prototypes,
39478     which can conflict with char pthread_attr_getschedpolicy (); below.
39479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39480     <limits.h> exists even on freestanding compilers.  */
39481
39482 #ifdef __STDC__
39483 # include <limits.h>
39484 #else
39485 # include <assert.h>
39486 #endif
39487
39488 #undef pthread_attr_getschedpolicy
39489
39490 /* Override any GCC internal prototype to avoid an error.
39491    Use char because int might match the return type of a GCC
39492    builtin and then its argument prototype would still apply.  */
39493 #ifdef __cplusplus
39494 extern "C"
39495 #endif
39496 char pthread_attr_getschedpolicy ();
39497 /* The GNU C library defines this for functions which it implements
39498     to always fail with ENOSYS.  Some functions are actually named
39499     something starting with __ and the normal name is an alias.  */
39500 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
39501 choke me
39502 #endif
39503
39504 int
39505 main ()
39506 {
39507 return pthread_attr_getschedpolicy ();
39508   ;
39509   return 0;
39510 }
39511 _ACEOF
39512 rm -f conftest.$ac_objext conftest$ac_exeext
39513 if { (ac_try="$ac_link"
39514 case "(($ac_try" in
39515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39516   *) ac_try_echo=$ac_try;;
39517 esac
39518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39519   (eval "$ac_link") 2>conftest.er1
39520   ac_status=$?
39521   grep -v '^ *+' conftest.er1 >conftest.err
39522   rm -f conftest.er1
39523   cat conftest.err >&5
39524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525   (exit $ac_status); } && {
39526          test -z "$ac_c_werror_flag" ||
39527          test ! -s conftest.err
39528        } && test -s conftest$ac_exeext &&
39529        $as_test_x conftest$ac_exeext; then
39530   ac_cv_func_pthread_attr_getschedpolicy=yes
39531 else
39532   echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39534
39535         ac_cv_func_pthread_attr_getschedpolicy=no
39536 fi
39537
39538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39539       conftest$ac_exeext conftest.$ac_ext
39540 fi
39541 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39542 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
39543 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39544   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39545 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
39546 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39547   echo $ECHO_N "(cached) $ECHO_C" >&6
39548 else
39549   cat >conftest.$ac_ext <<_ACEOF
39550 /* confdefs.h.  */
39551 _ACEOF
39552 cat confdefs.h >>conftest.$ac_ext
39553 cat >>conftest.$ac_ext <<_ACEOF
39554 /* end confdefs.h.  */
39555 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39557 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39558
39559 /* System header to define __stub macros and hopefully few prototypes,
39560     which can conflict with char pthread_attr_setschedparam (); below.
39561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39562     <limits.h> exists even on freestanding compilers.  */
39563
39564 #ifdef __STDC__
39565 # include <limits.h>
39566 #else
39567 # include <assert.h>
39568 #endif
39569
39570 #undef pthread_attr_setschedparam
39571
39572 /* Override any GCC internal prototype to avoid an error.
39573    Use char because int might match the return type of a GCC
39574    builtin and then its argument prototype would still apply.  */
39575 #ifdef __cplusplus
39576 extern "C"
39577 #endif
39578 char pthread_attr_setschedparam ();
39579 /* The GNU C library defines this for functions which it implements
39580     to always fail with ENOSYS.  Some functions are actually named
39581     something starting with __ and the normal name is an alias.  */
39582 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
39583 choke me
39584 #endif
39585
39586 int
39587 main ()
39588 {
39589 return pthread_attr_setschedparam ();
39590   ;
39591   return 0;
39592 }
39593 _ACEOF
39594 rm -f conftest.$ac_objext conftest$ac_exeext
39595 if { (ac_try="$ac_link"
39596 case "(($ac_try" in
39597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39598   *) ac_try_echo=$ac_try;;
39599 esac
39600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39601   (eval "$ac_link") 2>conftest.er1
39602   ac_status=$?
39603   grep -v '^ *+' conftest.er1 >conftest.err
39604   rm -f conftest.er1
39605   cat conftest.err >&5
39606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607   (exit $ac_status); } && {
39608          test -z "$ac_c_werror_flag" ||
39609          test ! -s conftest.err
39610        } && test -s conftest$ac_exeext &&
39611        $as_test_x conftest$ac_exeext; then
39612   ac_cv_func_pthread_attr_setschedparam=yes
39613 else
39614   echo "$as_me: failed program was:" >&5
39615 sed 's/^/| /' conftest.$ac_ext >&5
39616
39617         ac_cv_func_pthread_attr_setschedparam=no
39618 fi
39619
39620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39621       conftest$ac_exeext conftest.$ac_ext
39622 fi
39623 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39624 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
39625 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39626   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39627 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
39628 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39629   echo $ECHO_N "(cached) $ECHO_C" >&6
39630 else
39631   cat >conftest.$ac_ext <<_ACEOF
39632 /* confdefs.h.  */
39633 _ACEOF
39634 cat confdefs.h >>conftest.$ac_ext
39635 cat >>conftest.$ac_ext <<_ACEOF
39636 /* end confdefs.h.  */
39637 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39639 #define sched_get_priority_max innocuous_sched_get_priority_max
39640
39641 /* System header to define __stub macros and hopefully few prototypes,
39642     which can conflict with char sched_get_priority_max (); below.
39643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39644     <limits.h> exists even on freestanding compilers.  */
39645
39646 #ifdef __STDC__
39647 # include <limits.h>
39648 #else
39649 # include <assert.h>
39650 #endif
39651
39652 #undef sched_get_priority_max
39653
39654 /* Override any GCC internal prototype to avoid an error.
39655    Use char because int might match the return type of a GCC
39656    builtin and then its argument prototype would still apply.  */
39657 #ifdef __cplusplus
39658 extern "C"
39659 #endif
39660 char sched_get_priority_max ();
39661 /* The GNU C library defines this for functions which it implements
39662     to always fail with ENOSYS.  Some functions are actually named
39663     something starting with __ and the normal name is an alias.  */
39664 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
39665 choke me
39666 #endif
39667
39668 int
39669 main ()
39670 {
39671 return sched_get_priority_max ();
39672   ;
39673   return 0;
39674 }
39675 _ACEOF
39676 rm -f conftest.$ac_objext conftest$ac_exeext
39677 if { (ac_try="$ac_link"
39678 case "(($ac_try" in
39679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39680   *) ac_try_echo=$ac_try;;
39681 esac
39682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39683   (eval "$ac_link") 2>conftest.er1
39684   ac_status=$?
39685   grep -v '^ *+' conftest.er1 >conftest.err
39686   rm -f conftest.er1
39687   cat conftest.err >&5
39688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39689   (exit $ac_status); } && {
39690          test -z "$ac_c_werror_flag" ||
39691          test ! -s conftest.err
39692        } && test -s conftest$ac_exeext &&
39693        $as_test_x conftest$ac_exeext; then
39694   ac_cv_func_sched_get_priority_max=yes
39695 else
39696   echo "$as_me: failed program was:" >&5
39697 sed 's/^/| /' conftest.$ac_ext >&5
39698
39699         ac_cv_func_sched_get_priority_max=no
39700 fi
39701
39702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39703       conftest$ac_exeext conftest.$ac_ext
39704 fi
39705 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39706 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
39707 if test $ac_cv_func_sched_get_priority_max = yes; then
39708   HAVE_PRIOR_FUNCS=1
39709 else
39710   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39711 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
39712 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39713   echo $ECHO_N "(cached) $ECHO_C" >&6
39714 else
39715   ac_check_lib_save_LIBS=$LIBS
39716 LIBS="-lposix4  $LIBS"
39717 cat >conftest.$ac_ext <<_ACEOF
39718 /* confdefs.h.  */
39719 _ACEOF
39720 cat confdefs.h >>conftest.$ac_ext
39721 cat >>conftest.$ac_ext <<_ACEOF
39722 /* end confdefs.h.  */
39723
39724 /* Override any GCC internal prototype to avoid an error.
39725    Use char because int might match the return type of a GCC
39726    builtin and then its argument prototype would still apply.  */
39727 #ifdef __cplusplus
39728 extern "C"
39729 #endif
39730 char sched_get_priority_max ();
39731 int
39732 main ()
39733 {
39734 return sched_get_priority_max ();
39735   ;
39736   return 0;
39737 }
39738 _ACEOF
39739 rm -f conftest.$ac_objext conftest$ac_exeext
39740 if { (ac_try="$ac_link"
39741 case "(($ac_try" in
39742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39743   *) ac_try_echo=$ac_try;;
39744 esac
39745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39746   (eval "$ac_link") 2>conftest.er1
39747   ac_status=$?
39748   grep -v '^ *+' conftest.er1 >conftest.err
39749   rm -f conftest.er1
39750   cat conftest.err >&5
39751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39752   (exit $ac_status); } && {
39753          test -z "$ac_c_werror_flag" ||
39754          test ! -s conftest.err
39755        } && test -s conftest$ac_exeext &&
39756        $as_test_x conftest$ac_exeext; then
39757   ac_cv_lib_posix4_sched_get_priority_max=yes
39758 else
39759   echo "$as_me: failed program was:" >&5
39760 sed 's/^/| /' conftest.$ac_ext >&5
39761
39762         ac_cv_lib_posix4_sched_get_priority_max=no
39763 fi
39764
39765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39766       conftest$ac_exeext conftest.$ac_ext
39767 LIBS=$ac_check_lib_save_LIBS
39768 fi
39769 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39770 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
39771 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39772
39773                                 HAVE_PRIOR_FUNCS=1
39774                                 POSIX4_LINK=" -lposix4"
39775
39776 fi
39777
39778
39779 fi
39780
39781
39782 fi
39783
39784
39785 fi
39786
39787
39788       if test "$HAVE_PRIOR_FUNCS" = 1; then
39789         cat >>confdefs.h <<\_ACEOF
39790 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39791 _ACEOF
39792
39793       else
39794         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39795 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39796       fi
39797
39798       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39799 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
39800 if test "${ac_cv_func_pthread_cancel+set}" = set; then
39801   echo $ECHO_N "(cached) $ECHO_C" >&6
39802 else
39803   cat >conftest.$ac_ext <<_ACEOF
39804 /* confdefs.h.  */
39805 _ACEOF
39806 cat confdefs.h >>conftest.$ac_ext
39807 cat >>conftest.$ac_ext <<_ACEOF
39808 /* end confdefs.h.  */
39809 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39811 #define pthread_cancel innocuous_pthread_cancel
39812
39813 /* System header to define __stub macros and hopefully few prototypes,
39814     which can conflict with char pthread_cancel (); below.
39815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39816     <limits.h> exists even on freestanding compilers.  */
39817
39818 #ifdef __STDC__
39819 # include <limits.h>
39820 #else
39821 # include <assert.h>
39822 #endif
39823
39824 #undef pthread_cancel
39825
39826 /* Override any GCC internal prototype to avoid an error.
39827    Use char because int might match the return type of a GCC
39828    builtin and then its argument prototype would still apply.  */
39829 #ifdef __cplusplus
39830 extern "C"
39831 #endif
39832 char pthread_cancel ();
39833 /* The GNU C library defines this for functions which it implements
39834     to always fail with ENOSYS.  Some functions are actually named
39835     something starting with __ and the normal name is an alias.  */
39836 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
39837 choke me
39838 #endif
39839
39840 int
39841 main ()
39842 {
39843 return pthread_cancel ();
39844   ;
39845   return 0;
39846 }
39847 _ACEOF
39848 rm -f conftest.$ac_objext conftest$ac_exeext
39849 if { (ac_try="$ac_link"
39850 case "(($ac_try" in
39851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39852   *) ac_try_echo=$ac_try;;
39853 esac
39854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39855   (eval "$ac_link") 2>conftest.er1
39856   ac_status=$?
39857   grep -v '^ *+' conftest.er1 >conftest.err
39858   rm -f conftest.er1
39859   cat conftest.err >&5
39860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39861   (exit $ac_status); } && {
39862          test -z "$ac_c_werror_flag" ||
39863          test ! -s conftest.err
39864        } && test -s conftest$ac_exeext &&
39865        $as_test_x conftest$ac_exeext; then
39866   ac_cv_func_pthread_cancel=yes
39867 else
39868   echo "$as_me: failed program was:" >&5
39869 sed 's/^/| /' conftest.$ac_ext >&5
39870
39871         ac_cv_func_pthread_cancel=no
39872 fi
39873
39874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39875       conftest$ac_exeext conftest.$ac_ext
39876 fi
39877 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
39878 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
39879 if test $ac_cv_func_pthread_cancel = yes; then
39880   cat >>confdefs.h <<\_ACEOF
39881 #define HAVE_PTHREAD_CANCEL 1
39882 _ACEOF
39883
39884 else
39885   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
39886 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
39887 fi
39888
39889
39890       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
39891 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
39892 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
39893   echo $ECHO_N "(cached) $ECHO_C" >&6
39894 else
39895   cat >conftest.$ac_ext <<_ACEOF
39896 /* confdefs.h.  */
39897 _ACEOF
39898 cat confdefs.h >>conftest.$ac_ext
39899 cat >>conftest.$ac_ext <<_ACEOF
39900 /* end confdefs.h.  */
39901 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
39902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39903 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
39904
39905 /* System header to define __stub macros and hopefully few prototypes,
39906     which can conflict with char pthread_mutex_timedlock (); below.
39907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39908     <limits.h> exists even on freestanding compilers.  */
39909
39910 #ifdef __STDC__
39911 # include <limits.h>
39912 #else
39913 # include <assert.h>
39914 #endif
39915
39916 #undef pthread_mutex_timedlock
39917
39918 /* Override any GCC internal prototype to avoid an error.
39919    Use char because int might match the return type of a GCC
39920    builtin and then its argument prototype would still apply.  */
39921 #ifdef __cplusplus
39922 extern "C"
39923 #endif
39924 char pthread_mutex_timedlock ();
39925 /* The GNU C library defines this for functions which it implements
39926     to always fail with ENOSYS.  Some functions are actually named
39927     something starting with __ and the normal name is an alias.  */
39928 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
39929 choke me
39930 #endif
39931
39932 int
39933 main ()
39934 {
39935 return pthread_mutex_timedlock ();
39936   ;
39937   return 0;
39938 }
39939 _ACEOF
39940 rm -f conftest.$ac_objext conftest$ac_exeext
39941 if { (ac_try="$ac_link"
39942 case "(($ac_try" in
39943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39944   *) ac_try_echo=$ac_try;;
39945 esac
39946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39947   (eval "$ac_link") 2>conftest.er1
39948   ac_status=$?
39949   grep -v '^ *+' conftest.er1 >conftest.err
39950   rm -f conftest.er1
39951   cat conftest.err >&5
39952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39953   (exit $ac_status); } && {
39954          test -z "$ac_c_werror_flag" ||
39955          test ! -s conftest.err
39956        } && test -s conftest$ac_exeext &&
39957        $as_test_x conftest$ac_exeext; then
39958   ac_cv_func_pthread_mutex_timedlock=yes
39959 else
39960   echo "$as_me: failed program was:" >&5
39961 sed 's/^/| /' conftest.$ac_ext >&5
39962
39963         ac_cv_func_pthread_mutex_timedlock=no
39964 fi
39965
39966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39967       conftest$ac_exeext conftest.$ac_ext
39968 fi
39969 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
39970 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
39971 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
39972   cat >>confdefs.h <<\_ACEOF
39973 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
39974 _ACEOF
39975
39976 else
39977   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
39978 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
39979 fi
39980
39981
39982       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
39983 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
39984 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
39985   echo $ECHO_N "(cached) $ECHO_C" >&6
39986 else
39987   cat >conftest.$ac_ext <<_ACEOF
39988 /* confdefs.h.  */
39989 _ACEOF
39990 cat confdefs.h >>conftest.$ac_ext
39991 cat >>conftest.$ac_ext <<_ACEOF
39992 /* end confdefs.h.  */
39993 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
39994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39995 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
39996
39997 /* System header to define __stub macros and hopefully few prototypes,
39998     which can conflict with char pthread_attr_setstacksize (); below.
39999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40000     <limits.h> exists even on freestanding compilers.  */
40001
40002 #ifdef __STDC__
40003 # include <limits.h>
40004 #else
40005 # include <assert.h>
40006 #endif
40007
40008 #undef pthread_attr_setstacksize
40009
40010 /* Override any GCC internal prototype to avoid an error.
40011    Use char because int might match the return type of a GCC
40012    builtin and then its argument prototype would still apply.  */
40013 #ifdef __cplusplus
40014 extern "C"
40015 #endif
40016 char pthread_attr_setstacksize ();
40017 /* The GNU C library defines this for functions which it implements
40018     to always fail with ENOSYS.  Some functions are actually named
40019     something starting with __ and the normal name is an alias.  */
40020 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
40021 choke me
40022 #endif
40023
40024 int
40025 main ()
40026 {
40027 return pthread_attr_setstacksize ();
40028   ;
40029   return 0;
40030 }
40031 _ACEOF
40032 rm -f conftest.$ac_objext conftest$ac_exeext
40033 if { (ac_try="$ac_link"
40034 case "(($ac_try" in
40035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40036   *) ac_try_echo=$ac_try;;
40037 esac
40038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40039   (eval "$ac_link") 2>conftest.er1
40040   ac_status=$?
40041   grep -v '^ *+' conftest.er1 >conftest.err
40042   rm -f conftest.er1
40043   cat conftest.err >&5
40044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045   (exit $ac_status); } && {
40046          test -z "$ac_c_werror_flag" ||
40047          test ! -s conftest.err
40048        } && test -s conftest$ac_exeext &&
40049        $as_test_x conftest$ac_exeext; then
40050   ac_cv_func_pthread_attr_setstacksize=yes
40051 else
40052   echo "$as_me: failed program was:" >&5
40053 sed 's/^/| /' conftest.$ac_ext >&5
40054
40055         ac_cv_func_pthread_attr_setstacksize=no
40056 fi
40057
40058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40059       conftest$ac_exeext conftest.$ac_ext
40060 fi
40061 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40062 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
40063 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40064   cat >>confdefs.h <<\_ACEOF
40065 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40066 _ACEOF
40067
40068 fi
40069
40070
40071
40072       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40073 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
40074 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40075   echo $ECHO_N "(cached) $ECHO_C" >&6
40076 else
40077
40078         cat >conftest.$ac_ext <<_ACEOF
40079 /* confdefs.h.  */
40080 _ACEOF
40081 cat confdefs.h >>conftest.$ac_ext
40082 cat >>conftest.$ac_ext <<_ACEOF
40083 /* end confdefs.h.  */
40084 #include <pthread.h>
40085 int
40086 main ()
40087 {
40088
40089                pthread_mutexattr_t attr;
40090                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40091
40092   ;
40093   return 0;
40094 }
40095 _ACEOF
40096 rm -f conftest.$ac_objext
40097 if { (ac_try="$ac_compile"
40098 case "(($ac_try" in
40099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40100   *) ac_try_echo=$ac_try;;
40101 esac
40102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40103   (eval "$ac_compile") 2>conftest.er1
40104   ac_status=$?
40105   grep -v '^ *+' conftest.er1 >conftest.err
40106   rm -f conftest.er1
40107   cat conftest.err >&5
40108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40109   (exit $ac_status); } && {
40110          test -z "$ac_c_werror_flag" ||
40111          test ! -s conftest.err
40112        } && test -s conftest.$ac_objext; then
40113   wx_cv_type_pthread_mutexattr_t=yes
40114 else
40115   echo "$as_me: failed program was:" >&5
40116 sed 's/^/| /' conftest.$ac_ext >&5
40117
40118         wx_cv_type_pthread_mutexattr_t=no
40119
40120 fi
40121
40122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40123
40124 fi
40125 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40126 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
40127
40128       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40129         cat >>confdefs.h <<\_ACEOF
40130 #define HAVE_PTHREAD_MUTEXATTR_T 1
40131 _ACEOF
40132
40133
40134                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40135 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
40136 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40137   echo $ECHO_N "(cached) $ECHO_C" >&6
40138 else
40139
40140                        cat >conftest.$ac_ext <<_ACEOF
40141 /* confdefs.h.  */
40142 _ACEOF
40143 cat confdefs.h >>conftest.$ac_ext
40144 cat >>conftest.$ac_ext <<_ACEOF
40145 /* end confdefs.h.  */
40146 #include <pthread.h>
40147 int
40148 main ()
40149 {
40150
40151                                pthread_mutexattr_t attr;
40152                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40153
40154   ;
40155   return 0;
40156 }
40157 _ACEOF
40158 rm -f conftest.$ac_objext
40159 if { (ac_try="$ac_compile"
40160 case "(($ac_try" in
40161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40162   *) ac_try_echo=$ac_try;;
40163 esac
40164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40165   (eval "$ac_compile") 2>conftest.er1
40166   ac_status=$?
40167   grep -v '^ *+' conftest.er1 >conftest.err
40168   rm -f conftest.er1
40169   cat conftest.err >&5
40170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40171   (exit $ac_status); } && {
40172          test -z "$ac_c_werror_flag" ||
40173          test ! -s conftest.err
40174        } && test -s conftest.$ac_objext; then
40175   wx_cv_func_pthread_mutexattr_settype_decl=yes
40176 else
40177   echo "$as_me: failed program was:" >&5
40178 sed 's/^/| /' conftest.$ac_ext >&5
40179
40180         wx_cv_func_pthread_mutexattr_settype_decl=no
40181
40182 fi
40183
40184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40185
40186 fi
40187 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40188 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
40189         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40190             cat >>confdefs.h <<\_ACEOF
40191 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40192 _ACEOF
40193
40194         fi
40195       else
40196                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40197 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
40198 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40199   echo $ECHO_N "(cached) $ECHO_C" >&6
40200 else
40201
40202             cat >conftest.$ac_ext <<_ACEOF
40203 /* confdefs.h.  */
40204 _ACEOF
40205 cat confdefs.h >>conftest.$ac_ext
40206 cat >>conftest.$ac_ext <<_ACEOF
40207 /* end confdefs.h.  */
40208 #include <pthread.h>
40209 int
40210 main ()
40211 {
40212
40213                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40214
40215   ;
40216   return 0;
40217 }
40218 _ACEOF
40219 rm -f conftest.$ac_objext
40220 if { (ac_try="$ac_compile"
40221 case "(($ac_try" in
40222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40223   *) ac_try_echo=$ac_try;;
40224 esac
40225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40226   (eval "$ac_compile") 2>conftest.er1
40227   ac_status=$?
40228   grep -v '^ *+' conftest.er1 >conftest.err
40229   rm -f conftest.er1
40230   cat conftest.err >&5
40231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40232   (exit $ac_status); } && {
40233          test -z "$ac_c_werror_flag" ||
40234          test ! -s conftest.err
40235        } && test -s conftest.$ac_objext; then
40236
40237                     wx_cv_type_pthread_rec_mutex_init=yes
40238
40239 else
40240   echo "$as_me: failed program was:" >&5
40241 sed 's/^/| /' conftest.$ac_ext >&5
40242
40243
40244                     wx_cv_type_pthread_rec_mutex_init=no
40245
40246
40247 fi
40248
40249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40250
40251 fi
40252 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40253 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
40254         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40255           cat >>confdefs.h <<\_ACEOF
40256 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40257 _ACEOF
40258
40259         else
40260                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40261 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40262         fi
40263       fi
40264
40265             { echo "$as_me:$LINENO: checking for __thread keyword" >&5
40266 echo $ECHO_N "checking for __thread keyword... $ECHO_C" >&6; }
40267 if test "${wx_cv_cc___thread+set}" = set; then
40268   echo $ECHO_N "(cached) $ECHO_C" >&6
40269 else
40270
40271               cat >conftest.$ac_ext <<_ACEOF
40272 /* confdefs.h.  */
40273 _ACEOF
40274 cat confdefs.h >>conftest.$ac_ext
40275 cat >>conftest.$ac_ext <<_ACEOF
40276 /* end confdefs.h.  */
40277 #include <pthread.h>
40278 int
40279 main ()
40280 {
40281
40282                       static __thread int n = 0;
40283                       static __thread int *p = 0;
40284
40285   ;
40286   return 0;
40287 }
40288 _ACEOF
40289 rm -f conftest.$ac_objext
40290 if { (ac_try="$ac_compile"
40291 case "(($ac_try" in
40292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40293   *) ac_try_echo=$ac_try;;
40294 esac
40295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40296   (eval "$ac_compile") 2>conftest.er1
40297   ac_status=$?
40298   grep -v '^ *+' conftest.er1 >conftest.err
40299   rm -f conftest.er1
40300   cat conftest.err >&5
40301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40302   (exit $ac_status); } && {
40303          test -z "$ac_c_werror_flag" ||
40304          test ! -s conftest.err
40305        } && test -s conftest.$ac_objext; then
40306   wx_cv_cc___thread=yes
40307 else
40308   echo "$as_me: failed program was:" >&5
40309 sed 's/^/| /' conftest.$ac_ext >&5
40310
40311         wx_cv_cc___thread=no
40312
40313 fi
40314
40315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40316
40317
40318 fi
40319 { echo "$as_me:$LINENO: result: $wx_cv_cc___thread" >&5
40320 echo "${ECHO_T}$wx_cv_cc___thread" >&6; }
40321
40322       if test "$wx_cv_cc___thread" = "yes"; then
40323
40324   GXX_VERSION=""
40325
40326
40327
40328   { echo "$as_me:$LINENO: checking if gcc accepts -dumpversion option" >&5
40329 echo $ECHO_N "checking if gcc accepts -dumpversion option... $ECHO_C" >&6; }
40330
40331   if  test "x$GCC" = "xyes" ; then
40332
40333     if  test -z "" ; then
40334
40335       ax_gcc_option_test="int main()
40336 {
40337         return 0;
40338 }"
40339
40340 else
40341
40342       ax_gcc_option_test=""
40343
40344 fi
40345
40346
40347     # Dump the test program to file
40348     cat <<EOF > conftest.c
40349 $ax_gcc_option_test
40350 EOF
40351
40352     # Dump back the file to the log, useful for debugging purposes
40353     { ac_try='cat conftest.c 1>&5'
40354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40355   (eval $ac_try) 2>&5
40356   ac_status=$?
40357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40358   (exit $ac_status); }; }
40359
40360     if  { ac_try='$CC  -dumpversion -c conftest.c 1>&5'
40361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40362   (eval $ac_try) 2>&5
40363   ac_status=$?
40364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40365   (exit $ac_status); }; } ; then
40366
40367                 { echo "$as_me:$LINENO: result: yes" >&5
40368 echo "${ECHO_T}yes" >&6; }
40369
40370     ax_gcc_version_option=yes
40371
40372
40373 else
40374
40375                 { echo "$as_me:$LINENO: result: no" >&5
40376 echo "${ECHO_T}no" >&6; }
40377
40378     ax_gcc_version_option=no
40379
40380
40381 fi
40382
40383
40384 else
40385
40386     { echo "$as_me:$LINENO: result: no gcc available" >&5
40387 echo "${ECHO_T}no gcc available" >&6; }
40388
40389 fi
40390
40391
40392   if test "x$GXX" = "xyes"; then
40393
40394     if test "x$ax_gxx_version_option" != "no"; then
40395
40396       { echo "$as_me:$LINENO: checking gxx version" >&5
40397 echo $ECHO_N "checking gxx version... $ECHO_C" >&6; }
40398 if test "${ax_cv_gxx_version+set}" = set; then
40399   echo $ECHO_N "(cached) $ECHO_C" >&6
40400 else
40401
40402         ax_cv_gxx_version="`$CXX -dumpversion`"
40403         if test "x$ax_cv_gxx_version" = "x"; then
40404
40405           ax_cv_gxx_version=""
40406
40407 fi
40408
40409
40410 fi
40411 { echo "$as_me:$LINENO: result: $ax_cv_gxx_version" >&5
40412 echo "${ECHO_T}$ax_cv_gxx_version" >&6; }
40413       GXX_VERSION=$ax_cv_gxx_version
40414
40415 fi
40416
40417
40418 fi
40419
40420
40421
40422           if test -n "$ax_cv_gxx_version"; then
40423                                                                                                                               { echo "$as_me:$LINENO: checking whether __thread support in g++ is usable" >&5
40424 echo $ECHO_N "checking whether __thread support in g++ is usable... $ECHO_C" >&6; }
40425               case "$ax_cv_gxx_version" in
40426                 1.* | 2.* | 3.* )
40427                     { echo "$as_me:$LINENO: result: no, it's broken" >&5
40428 echo "${ECHO_T}no, it's broken" >&6; }
40429                     wx_cv_cc___thread=no
40430                     ;;
40431                 *)
40432                     { echo "$as_me:$LINENO: result: yes, it works" >&5
40433 echo "${ECHO_T}yes, it works" >&6; }
40434                     ;;
40435               esac
40436           fi
40437       fi
40438
40439       if test "$wx_cv_cc___thread" = "yes"; then
40440         cat >>confdefs.h <<\_ACEOF
40441 #define HAVE___THREAD_KEYWORD 1
40442 _ACEOF
40443
40444       fi
40445     fi
40446
40447 else
40448     if test "$wxUSE_THREADS" = "yes" ; then
40449       case "${host}" in
40450         x86_64-*-mingw32* )
40451         ;;
40452         *-*-mingw32* )
40453                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40454 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
40455 if test "${wx_cv_cflags_mthread+set}" = set; then
40456   echo $ECHO_N "(cached) $ECHO_C" >&6
40457 else
40458
40459                     CFLAGS_OLD="$CFLAGS"
40460                     CFLAGS="-mthreads $CFLAGS"
40461                     cat >conftest.$ac_ext <<_ACEOF
40462 /* confdefs.h.  */
40463 _ACEOF
40464 cat confdefs.h >>conftest.$ac_ext
40465 cat >>conftest.$ac_ext <<_ACEOF
40466 /* end confdefs.h.  */
40467
40468 int
40469 main ()
40470 {
40471
40472   ;
40473   return 0;
40474 }
40475 _ACEOF
40476 rm -f conftest.$ac_objext
40477 if { (ac_try="$ac_compile"
40478 case "(($ac_try" in
40479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40480   *) ac_try_echo=$ac_try;;
40481 esac
40482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40483   (eval "$ac_compile") 2>conftest.er1
40484   ac_status=$?
40485   grep -v '^ *+' conftest.er1 >conftest.err
40486   rm -f conftest.er1
40487   cat conftest.err >&5
40488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40489   (exit $ac_status); } && {
40490          test -z "$ac_c_werror_flag" ||
40491          test ! -s conftest.err
40492        } && test -s conftest.$ac_objext; then
40493   wx_cv_cflags_mthread=yes
40494 else
40495   echo "$as_me: failed program was:" >&5
40496 sed 's/^/| /' conftest.$ac_ext >&5
40497
40498         wx_cv_cflags_mthread=no
40499
40500 fi
40501
40502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40503
40504
40505 fi
40506 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40507 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
40508
40509             if test "$wx_cv_cflags_mthread" = "yes"; then
40510                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
40511                 LDFLAGS="$LDFLAGS -mthreads"
40512             else
40513                                 CFLAGS="$CFLAGS_OLD"
40514             fi
40515         ;;
40516         *-pc-os2*emx )
40517             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40518             LDFLAGS="$LDFLAGS -Zmt"
40519         ;;
40520       esac
40521     fi
40522 fi
40523
40524 { echo "$as_me:$LINENO: checking for localtime_r" >&5
40525 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
40526 if test "${ac_cv_func_localtime_r+set}" = set; then
40527   echo $ECHO_N "(cached) $ECHO_C" >&6
40528 else
40529   cat >conftest.$ac_ext <<_ACEOF
40530 /* confdefs.h.  */
40531 _ACEOF
40532 cat confdefs.h >>conftest.$ac_ext
40533 cat >>conftest.$ac_ext <<_ACEOF
40534 /* end confdefs.h.  */
40535 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
40536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40537 #define localtime_r innocuous_localtime_r
40538
40539 /* System header to define __stub macros and hopefully few prototypes,
40540     which can conflict with char localtime_r (); below.
40541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40542     <limits.h> exists even on freestanding compilers.  */
40543
40544 #ifdef __STDC__
40545 # include <limits.h>
40546 #else
40547 # include <assert.h>
40548 #endif
40549
40550 #undef localtime_r
40551
40552 /* Override any GCC internal prototype to avoid an error.
40553    Use char because int might match the return type of a GCC
40554    builtin and then its argument prototype would still apply.  */
40555 #ifdef __cplusplus
40556 extern "C"
40557 #endif
40558 char localtime_r ();
40559 /* The GNU C library defines this for functions which it implements
40560     to always fail with ENOSYS.  Some functions are actually named
40561     something starting with __ and the normal name is an alias.  */
40562 #if defined __stub_localtime_r || defined __stub___localtime_r
40563 choke me
40564 #endif
40565
40566 int
40567 main ()
40568 {
40569 return localtime_r ();
40570   ;
40571   return 0;
40572 }
40573 _ACEOF
40574 rm -f conftest.$ac_objext conftest$ac_exeext
40575 if { (ac_try="$ac_link"
40576 case "(($ac_try" in
40577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40578   *) ac_try_echo=$ac_try;;
40579 esac
40580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40581   (eval "$ac_link") 2>conftest.er1
40582   ac_status=$?
40583   grep -v '^ *+' conftest.er1 >conftest.err
40584   rm -f conftest.er1
40585   cat conftest.err >&5
40586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40587   (exit $ac_status); } && {
40588          test -z "$ac_c_werror_flag" ||
40589          test ! -s conftest.err
40590        } && test -s conftest$ac_exeext &&
40591        $as_test_x conftest$ac_exeext; then
40592   ac_cv_func_localtime_r=yes
40593 else
40594   echo "$as_me: failed program was:" >&5
40595 sed 's/^/| /' conftest.$ac_ext >&5
40596
40597         ac_cv_func_localtime_r=no
40598 fi
40599
40600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40601       conftest$ac_exeext conftest.$ac_ext
40602 fi
40603 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40604 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
40605 if test $ac_cv_func_localtime_r = yes; then
40606    cat >>confdefs.h <<\_ACEOF
40607 #define HAVE_LOCALTIME_R 1
40608 _ACEOF
40609
40610 fi
40611
40612 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
40613 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
40614 if test "${ac_cv_func_gmtime_r+set}" = set; then
40615   echo $ECHO_N "(cached) $ECHO_C" >&6
40616 else
40617   cat >conftest.$ac_ext <<_ACEOF
40618 /* confdefs.h.  */
40619 _ACEOF
40620 cat confdefs.h >>conftest.$ac_ext
40621 cat >>conftest.$ac_ext <<_ACEOF
40622 /* end confdefs.h.  */
40623 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40625 #define gmtime_r innocuous_gmtime_r
40626
40627 /* System header to define __stub macros and hopefully few prototypes,
40628     which can conflict with char gmtime_r (); below.
40629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40630     <limits.h> exists even on freestanding compilers.  */
40631
40632 #ifdef __STDC__
40633 # include <limits.h>
40634 #else
40635 # include <assert.h>
40636 #endif
40637
40638 #undef gmtime_r
40639
40640 /* Override any GCC internal prototype to avoid an error.
40641    Use char because int might match the return type of a GCC
40642    builtin and then its argument prototype would still apply.  */
40643 #ifdef __cplusplus
40644 extern "C"
40645 #endif
40646 char gmtime_r ();
40647 /* The GNU C library defines this for functions which it implements
40648     to always fail with ENOSYS.  Some functions are actually named
40649     something starting with __ and the normal name is an alias.  */
40650 #if defined __stub_gmtime_r || defined __stub___gmtime_r
40651 choke me
40652 #endif
40653
40654 int
40655 main ()
40656 {
40657 return gmtime_r ();
40658   ;
40659   return 0;
40660 }
40661 _ACEOF
40662 rm -f conftest.$ac_objext conftest$ac_exeext
40663 if { (ac_try="$ac_link"
40664 case "(($ac_try" in
40665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40666   *) ac_try_echo=$ac_try;;
40667 esac
40668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40669   (eval "$ac_link") 2>conftest.er1
40670   ac_status=$?
40671   grep -v '^ *+' conftest.er1 >conftest.err
40672   rm -f conftest.er1
40673   cat conftest.err >&5
40674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40675   (exit $ac_status); } && {
40676          test -z "$ac_c_werror_flag" ||
40677          test ! -s conftest.err
40678        } && test -s conftest$ac_exeext &&
40679        $as_test_x conftest$ac_exeext; then
40680   ac_cv_func_gmtime_r=yes
40681 else
40682   echo "$as_me: failed program was:" >&5
40683 sed 's/^/| /' conftest.$ac_ext >&5
40684
40685         ac_cv_func_gmtime_r=no
40686 fi
40687
40688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40689       conftest$ac_exeext conftest.$ac_ext
40690 fi
40691 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40692 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
40693 if test $ac_cv_func_gmtime_r = yes; then
40694    cat >>confdefs.h <<\_ACEOF
40695 #define HAVE_GMTIME_R 1
40696 _ACEOF
40697
40698 fi
40699
40700
40701
40702
40703     ac_ext=c
40704 ac_cpp='$CPP $CPPFLAGS'
40705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40708
40709     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40710 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
40711
40712     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40713   echo $ECHO_N "(cached) $ECHO_C" >&6
40714 else
40715
40716
40717 ################################################################
40718
40719 ac_cv_func_which_gethostbyname_r=unknown
40720
40721 #
40722 # ONE ARGUMENT (sanity check)
40723 #
40724
40725 # This should fail, as there is no variant of gethostbyname_r() that takes
40726 # a single argument. If it actually compiles, then we can assume that
40727 # netdb.h is not declaring the function, and the compiler is thereby
40728 # assuming an implicit prototype. In which case, we're out of luck.
40729 #
40730 cat >conftest.$ac_ext <<_ACEOF
40731 /* confdefs.h.  */
40732 _ACEOF
40733 cat confdefs.h >>conftest.$ac_ext
40734 cat >>conftest.$ac_ext <<_ACEOF
40735 /* end confdefs.h.  */
40736 #include <netdb.h>
40737 int
40738 main ()
40739 {
40740
40741             char *name = "www.gnu.org";
40742             (void)gethostbyname_r(name) /* ; */
40743
40744   ;
40745   return 0;
40746 }
40747 _ACEOF
40748 rm -f conftest.$ac_objext
40749 if { (ac_try="$ac_compile"
40750 case "(($ac_try" in
40751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40752   *) ac_try_echo=$ac_try;;
40753 esac
40754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40755   (eval "$ac_compile") 2>conftest.er1
40756   ac_status=$?
40757   grep -v '^ *+' conftest.er1 >conftest.err
40758   rm -f conftest.er1
40759   cat conftest.err >&5
40760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40761   (exit $ac_status); } && {
40762          test -z "$ac_c_werror_flag" ||
40763          test ! -s conftest.err
40764        } && test -s conftest.$ac_objext; then
40765   ac_cv_func_which_gethostbyname_r=no
40766 else
40767   echo "$as_me: failed program was:" >&5
40768 sed 's/^/| /' conftest.$ac_ext >&5
40769
40770
40771 fi
40772
40773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40774
40775 #
40776 # SIX ARGUMENTS
40777 # (e.g. Linux)
40778 #
40779
40780 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40781
40782 cat >conftest.$ac_ext <<_ACEOF
40783 /* confdefs.h.  */
40784 _ACEOF
40785 cat confdefs.h >>conftest.$ac_ext
40786 cat >>conftest.$ac_ext <<_ACEOF
40787 /* end confdefs.h.  */
40788 #include <netdb.h>
40789 int
40790 main ()
40791 {
40792
40793             char *name = "www.gnu.org";
40794             struct hostent ret, *retp;
40795             char buf[1024];
40796             int buflen = 1024;
40797             int my_h_errno;
40798             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40799
40800   ;
40801   return 0;
40802 }
40803 _ACEOF
40804 rm -f conftest.$ac_objext
40805 if { (ac_try="$ac_compile"
40806 case "(($ac_try" in
40807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40808   *) ac_try_echo=$ac_try;;
40809 esac
40810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40811   (eval "$ac_compile") 2>conftest.er1
40812   ac_status=$?
40813   grep -v '^ *+' conftest.er1 >conftest.err
40814   rm -f conftest.er1
40815   cat conftest.err >&5
40816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40817   (exit $ac_status); } && {
40818          test -z "$ac_c_werror_flag" ||
40819          test ! -s conftest.err
40820        } && test -s conftest.$ac_objext; then
40821   ac_cv_func_which_gethostbyname_r=six
40822 else
40823   echo "$as_me: failed program was:" >&5
40824 sed 's/^/| /' conftest.$ac_ext >&5
40825
40826
40827 fi
40828
40829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40830
40831 fi
40832
40833 #
40834 # FIVE ARGUMENTS
40835 # (e.g. Solaris)
40836 #
40837
40838 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40839
40840 cat >conftest.$ac_ext <<_ACEOF
40841 /* confdefs.h.  */
40842 _ACEOF
40843 cat confdefs.h >>conftest.$ac_ext
40844 cat >>conftest.$ac_ext <<_ACEOF
40845 /* end confdefs.h.  */
40846 #include <netdb.h>
40847 int
40848 main ()
40849 {
40850
40851             char *name = "www.gnu.org";
40852             struct hostent ret;
40853             char buf[1024];
40854             int buflen = 1024;
40855             int my_h_errno;
40856             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40857
40858   ;
40859   return 0;
40860 }
40861 _ACEOF
40862 rm -f conftest.$ac_objext
40863 if { (ac_try="$ac_compile"
40864 case "(($ac_try" in
40865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40866   *) ac_try_echo=$ac_try;;
40867 esac
40868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40869   (eval "$ac_compile") 2>conftest.er1
40870   ac_status=$?
40871   grep -v '^ *+' conftest.er1 >conftest.err
40872   rm -f conftest.er1
40873   cat conftest.err >&5
40874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40875   (exit $ac_status); } && {
40876          test -z "$ac_c_werror_flag" ||
40877          test ! -s conftest.err
40878        } && test -s conftest.$ac_objext; then
40879   ac_cv_func_which_gethostbyname_r=five
40880 else
40881   echo "$as_me: failed program was:" >&5
40882 sed 's/^/| /' conftest.$ac_ext >&5
40883
40884
40885 fi
40886
40887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40888
40889 fi
40890
40891 #
40892 # THREE ARGUMENTS
40893 # (e.g. AIX, HP-UX, Tru64)
40894 #
40895
40896 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40897
40898 cat >conftest.$ac_ext <<_ACEOF
40899 /* confdefs.h.  */
40900 _ACEOF
40901 cat confdefs.h >>conftest.$ac_ext
40902 cat >>conftest.$ac_ext <<_ACEOF
40903 /* end confdefs.h.  */
40904 #include <netdb.h>
40905 int
40906 main ()
40907 {
40908
40909             char *name = "www.gnu.org";
40910             struct hostent ret;
40911             struct hostent_data data;
40912             (void)gethostbyname_r(name, &ret, &data) /* ; */
40913
40914   ;
40915   return 0;
40916 }
40917 _ACEOF
40918 rm -f conftest.$ac_objext
40919 if { (ac_try="$ac_compile"
40920 case "(($ac_try" in
40921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40922   *) ac_try_echo=$ac_try;;
40923 esac
40924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40925   (eval "$ac_compile") 2>conftest.er1
40926   ac_status=$?
40927   grep -v '^ *+' conftest.er1 >conftest.err
40928   rm -f conftest.er1
40929   cat conftest.err >&5
40930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40931   (exit $ac_status); } && {
40932          test -z "$ac_c_werror_flag" ||
40933          test ! -s conftest.err
40934        } && test -s conftest.$ac_objext; then
40935   ac_cv_func_which_gethostbyname_r=three
40936 else
40937   echo "$as_me: failed program was:" >&5
40938 sed 's/^/| /' conftest.$ac_ext >&5
40939
40940
40941 fi
40942
40943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40944
40945 fi
40946
40947 ################################################################
40948
40949
40950 fi
40951
40952 case "$ac_cv_func_which_gethostbyname_r" in
40953     three)
40954     { echo "$as_me:$LINENO: result: three" >&5
40955 echo "${ECHO_T}three" >&6; }
40956     cat >>confdefs.h <<\_ACEOF
40957 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40958 _ACEOF
40959
40960     ;;
40961
40962     five)
40963     { echo "$as_me:$LINENO: result: five" >&5
40964 echo "${ECHO_T}five" >&6; }
40965     cat >>confdefs.h <<\_ACEOF
40966 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40967 _ACEOF
40968
40969     ;;
40970
40971     six)
40972     { echo "$as_me:$LINENO: result: six" >&5
40973 echo "${ECHO_T}six" >&6; }
40974     cat >>confdefs.h <<\_ACEOF
40975 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40976 _ACEOF
40977
40978     ;;
40979
40980     no)
40981     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40982 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
40983     ;;
40984
40985     unknown)
40986     { echo "$as_me:$LINENO: result: can't tell" >&5
40987 echo "${ECHO_T}can't tell" >&6; }
40988     ;;
40989
40990     *)
40991     { { echo "$as_me:$LINENO: error: internal error" >&5
40992 echo "$as_me: error: internal error" >&2;}
40993    { (exit 1); exit 1; }; }
40994     ;;
40995 esac
40996
40997 ac_ext=c
40998 ac_cpp='$CPP $CPPFLAGS'
40999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41002
41003
41004
41005       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41006               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41007           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
41008 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
41009 if test "${ac_cv_func_gethostbyname+set}" = set; then
41010   echo $ECHO_N "(cached) $ECHO_C" >&6
41011 else
41012   cat >conftest.$ac_ext <<_ACEOF
41013 /* confdefs.h.  */
41014 _ACEOF
41015 cat confdefs.h >>conftest.$ac_ext
41016 cat >>conftest.$ac_ext <<_ACEOF
41017 /* end confdefs.h.  */
41018 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41020 #define gethostbyname innocuous_gethostbyname
41021
41022 /* System header to define __stub macros and hopefully few prototypes,
41023     which can conflict with char gethostbyname (); below.
41024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41025     <limits.h> exists even on freestanding compilers.  */
41026
41027 #ifdef __STDC__
41028 # include <limits.h>
41029 #else
41030 # include <assert.h>
41031 #endif
41032
41033 #undef gethostbyname
41034
41035 /* Override any GCC internal prototype to avoid an error.
41036    Use char because int might match the return type of a GCC
41037    builtin and then its argument prototype would still apply.  */
41038 #ifdef __cplusplus
41039 extern "C"
41040 #endif
41041 char gethostbyname ();
41042 /* The GNU C library defines this for functions which it implements
41043     to always fail with ENOSYS.  Some functions are actually named
41044     something starting with __ and the normal name is an alias.  */
41045 #if defined __stub_gethostbyname || defined __stub___gethostbyname
41046 choke me
41047 #endif
41048
41049 int
41050 main ()
41051 {
41052 return gethostbyname ();
41053   ;
41054   return 0;
41055 }
41056 _ACEOF
41057 rm -f conftest.$ac_objext conftest$ac_exeext
41058 if { (ac_try="$ac_link"
41059 case "(($ac_try" in
41060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41061   *) ac_try_echo=$ac_try;;
41062 esac
41063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41064   (eval "$ac_link") 2>conftest.er1
41065   ac_status=$?
41066   grep -v '^ *+' conftest.er1 >conftest.err
41067   rm -f conftest.er1
41068   cat conftest.err >&5
41069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41070   (exit $ac_status); } && {
41071          test -z "$ac_c_werror_flag" ||
41072          test ! -s conftest.err
41073        } && test -s conftest$ac_exeext &&
41074        $as_test_x conftest$ac_exeext; then
41075   ac_cv_func_gethostbyname=yes
41076 else
41077   echo "$as_me: failed program was:" >&5
41078 sed 's/^/| /' conftest.$ac_ext >&5
41079
41080         ac_cv_func_gethostbyname=no
41081 fi
41082
41083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41084       conftest$ac_exeext conftest.$ac_ext
41085 fi
41086 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41087 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
41088 if test $ac_cv_func_gethostbyname = yes; then
41089    cat >>confdefs.h <<\_ACEOF
41090 #define HAVE_GETHOSTBYNAME 1
41091 _ACEOF
41092
41093 fi
41094
41095       fi
41096
41097 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41098 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
41099 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
41100   echo $ECHO_N "(cached) $ECHO_C" >&6
41101 else
41102
41103                 ac_ext=cpp
41104 ac_cpp='$CXXCPP $CPPFLAGS'
41105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41108
41109
41110         cat >conftest.$ac_ext <<_ACEOF
41111 /* confdefs.h.  */
41112 _ACEOF
41113 cat confdefs.h >>conftest.$ac_ext
41114 cat >>conftest.$ac_ext <<_ACEOF
41115 /* end confdefs.h.  */
41116 #include <netdb.h>
41117 int
41118 main ()
41119 {
41120
41121                 char *name;
41122                 char *proto;
41123                 struct servent *se, *res;
41124                 char buffer[2048];
41125                 int buflen = 2048;
41126                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
41127
41128   ;
41129   return 0;
41130 }
41131 _ACEOF
41132 rm -f conftest.$ac_objext
41133 if { (ac_try="$ac_compile"
41134 case "(($ac_try" in
41135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41136   *) ac_try_echo=$ac_try;;
41137 esac
41138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41139   (eval "$ac_compile") 2>conftest.er1
41140   ac_status=$?
41141   grep -v '^ *+' conftest.er1 >conftest.err
41142   rm -f conftest.er1
41143   cat conftest.err >&5
41144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41145   (exit $ac_status); } && {
41146          test -z "$ac_cxx_werror_flag" ||
41147          test ! -s conftest.err
41148        } && test -s conftest.$ac_objext; then
41149   ac_cv_func_which_getservbyname_r=six
41150 else
41151   echo "$as_me: failed program was:" >&5
41152 sed 's/^/| /' conftest.$ac_ext >&5
41153
41154
41155                 cat >conftest.$ac_ext <<_ACEOF
41156 /* confdefs.h.  */
41157 _ACEOF
41158 cat confdefs.h >>conftest.$ac_ext
41159 cat >>conftest.$ac_ext <<_ACEOF
41160 /* end confdefs.h.  */
41161 #include <netdb.h>
41162 int
41163 main ()
41164 {
41165
41166                         char *name;
41167                         char *proto;
41168                         struct servent *se;
41169                         char buffer[2048];
41170                         int buflen = 2048;
41171                         (void) getservbyname_r(name, proto, se, buffer, buflen)
41172
41173   ;
41174   return 0;
41175 }
41176 _ACEOF
41177 rm -f conftest.$ac_objext
41178 if { (ac_try="$ac_compile"
41179 case "(($ac_try" in
41180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41181   *) ac_try_echo=$ac_try;;
41182 esac
41183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41184   (eval "$ac_compile") 2>conftest.er1
41185   ac_status=$?
41186   grep -v '^ *+' conftest.er1 >conftest.err
41187   rm -f conftest.er1
41188   cat conftest.err >&5
41189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41190   (exit $ac_status); } && {
41191          test -z "$ac_cxx_werror_flag" ||
41192          test ! -s conftest.err
41193        } && test -s conftest.$ac_objext; then
41194   ac_cv_func_which_getservbyname_r=five
41195 else
41196   echo "$as_me: failed program was:" >&5
41197 sed 's/^/| /' conftest.$ac_ext >&5
41198
41199
41200                         cat >conftest.$ac_ext <<_ACEOF
41201 /* confdefs.h.  */
41202 _ACEOF
41203 cat confdefs.h >>conftest.$ac_ext
41204 cat >>conftest.$ac_ext <<_ACEOF
41205 /* end confdefs.h.  */
41206 #include <netdb.h>
41207 int
41208 main ()
41209 {
41210
41211                                 char *name;
41212                                 char *proto;
41213                                 struct servent *se;
41214                                 struct servent_data data;
41215                                 (void) getservbyname_r(name, proto, se, &data);
41216
41217   ;
41218   return 0;
41219 }
41220 _ACEOF
41221 rm -f conftest.$ac_objext
41222 if { (ac_try="$ac_compile"
41223 case "(($ac_try" in
41224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41225   *) ac_try_echo=$ac_try;;
41226 esac
41227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41228   (eval "$ac_compile") 2>conftest.er1
41229   ac_status=$?
41230   grep -v '^ *+' conftest.er1 >conftest.err
41231   rm -f conftest.er1
41232   cat conftest.err >&5
41233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41234   (exit $ac_status); } && {
41235          test -z "$ac_cxx_werror_flag" ||
41236          test ! -s conftest.err
41237        } && test -s conftest.$ac_objext; then
41238   ac_cv_func_which_getservbyname_r=four
41239 else
41240   echo "$as_me: failed program was:" >&5
41241 sed 's/^/| /' conftest.$ac_ext >&5
41242
41243         ac_cv_func_which_getservbyname_r=no
41244
41245 fi
41246
41247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41248
41249
41250 fi
41251
41252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41253
41254
41255 fi
41256
41257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41258         ac_ext=c
41259 ac_cpp='$CPP $CPPFLAGS'
41260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41263
41264
41265
41266 fi
41267 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41268 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
41269
41270 if test $ac_cv_func_which_getservbyname_r = six; then
41271   cat >>confdefs.h <<\_ACEOF
41272 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
41273 _ACEOF
41274
41275 elif test $ac_cv_func_which_getservbyname_r = five; then
41276   cat >>confdefs.h <<\_ACEOF
41277 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
41278 _ACEOF
41279
41280 elif test $ac_cv_func_which_getservbyname_r = four; then
41281   cat >>confdefs.h <<\_ACEOF
41282 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
41283 _ACEOF
41284
41285 fi
41286
41287
41288       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41289               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41290
41291 for ac_func in getservbyname
41292 do
41293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41297   echo $ECHO_N "(cached) $ECHO_C" >&6
41298 else
41299   cat >conftest.$ac_ext <<_ACEOF
41300 /* confdefs.h.  */
41301 _ACEOF
41302 cat confdefs.h >>conftest.$ac_ext
41303 cat >>conftest.$ac_ext <<_ACEOF
41304 /* end confdefs.h.  */
41305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41307 #define $ac_func innocuous_$ac_func
41308
41309 /* System header to define __stub macros and hopefully few prototypes,
41310     which can conflict with char $ac_func (); below.
41311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41312     <limits.h> exists even on freestanding compilers.  */
41313
41314 #ifdef __STDC__
41315 # include <limits.h>
41316 #else
41317 # include <assert.h>
41318 #endif
41319
41320 #undef $ac_func
41321
41322 /* Override any GCC internal prototype to avoid an error.
41323    Use char because int might match the return type of a GCC
41324    builtin and then its argument prototype would still apply.  */
41325 #ifdef __cplusplus
41326 extern "C"
41327 #endif
41328 char $ac_func ();
41329 /* The GNU C library defines this for functions which it implements
41330     to always fail with ENOSYS.  Some functions are actually named
41331     something starting with __ and the normal name is an alias.  */
41332 #if defined __stub_$ac_func || defined __stub___$ac_func
41333 choke me
41334 #endif
41335
41336 int
41337 main ()
41338 {
41339 return $ac_func ();
41340   ;
41341   return 0;
41342 }
41343 _ACEOF
41344 rm -f conftest.$ac_objext conftest$ac_exeext
41345 if { (ac_try="$ac_link"
41346 case "(($ac_try" in
41347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41348   *) ac_try_echo=$ac_try;;
41349 esac
41350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41351   (eval "$ac_link") 2>conftest.er1
41352   ac_status=$?
41353   grep -v '^ *+' conftest.er1 >conftest.err
41354   rm -f conftest.er1
41355   cat conftest.err >&5
41356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357   (exit $ac_status); } && {
41358          test -z "$ac_c_werror_flag" ||
41359          test ! -s conftest.err
41360        } && test -s conftest$ac_exeext &&
41361        $as_test_x conftest$ac_exeext; then
41362   eval "$as_ac_var=yes"
41363 else
41364   echo "$as_me: failed program was:" >&5
41365 sed 's/^/| /' conftest.$ac_ext >&5
41366
41367         eval "$as_ac_var=no"
41368 fi
41369
41370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41371       conftest$ac_exeext conftest.$ac_ext
41372 fi
41373 ac_res=`eval echo '${'$as_ac_var'}'`
41374                { echo "$as_me:$LINENO: result: $ac_res" >&5
41375 echo "${ECHO_T}$ac_res" >&6; }
41376 if test `eval echo '${'$as_ac_var'}'` = yes; then
41377   cat >>confdefs.h <<_ACEOF
41378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41379 _ACEOF
41380   cat >>confdefs.h <<\_ACEOF
41381 #define HAVE_GETSERVBYNAME 1
41382 _ACEOF
41383
41384 fi
41385 done
41386
41387       fi
41388
41389 if test "$wxUSE_THREADS" = "yes"; then
41390   cat >>confdefs.h <<\_ACEOF
41391 #define wxUSE_THREADS 1
41392 _ACEOF
41393
41394
41395   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41396 else
41397       if test "$wx_cv_func_strtok_r" = "yes"; then
41398     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41399 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
41400     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41401         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41402         { echo "$as_me:$LINENO: result: yes" >&5
41403 echo "${ECHO_T}yes" >&6; }
41404     else
41405         { echo "$as_me:$LINENO: result: no" >&5
41406 echo "${ECHO_T}no" >&6; }
41407     fi
41408   fi
41409 fi
41410
41411 if test "$WXGTK2" = 1 ; then
41412   cat >>confdefs.h <<_ACEOF
41413 #define __WXGTK20__ $WXGTK2
41414 _ACEOF
41415
41416   WXGTK12=1
41417 fi
41418
41419 if test "$WXGTK12" = 1 ; then
41420   cat >>confdefs.h <<_ACEOF
41421 #define __WXGTK12__ $WXGTK12
41422 _ACEOF
41423
41424 fi
41425
41426 if test "$WXGTK127" = 1 ; then
41427   cat >>confdefs.h <<_ACEOF
41428 #define __WXGTK127__ $WXGTK127
41429 _ACEOF
41430
41431 fi
41432
41433 if test "$WXGPE" = 1 ; then
41434   cat >>confdefs.h <<_ACEOF
41435 #define __WXGPE__ $WXGPE
41436 _ACEOF
41437
41438 fi
41439
41440 DEBUG_CFLAGS=
41441 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41442     DEBUG_CFLAGS="-g"
41443 fi
41444
41445 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41446     wxUSE_DEBUG_INFO=yes
41447     if test "$GCC" = yes; then
41448         DEBUG_CFLAGS="-ggdb"
41449     fi
41450 fi
41451
41452 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41453     cat >>confdefs.h <<\_ACEOF
41454 #define WXDEBUG 1
41455 _ACEOF
41456
41457     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41458 else
41459     if test "$wxUSE_GTK" = 1 ; then
41460         if test "x$wxGTK_VERSION" = "x1" ; then
41461             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41462         fi
41463     fi
41464 fi
41465
41466 if test "$wxUSE_MEM_TRACING" = "yes" ; then
41467     cat >>confdefs.h <<\_ACEOF
41468 #define wxUSE_MEMORY_TRACING 1
41469 _ACEOF
41470
41471     cat >>confdefs.h <<\_ACEOF
41472 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41473 _ACEOF
41474
41475     cat >>confdefs.h <<\_ACEOF
41476 #define wxUSE_DEBUG_NEW_ALWAYS 1
41477 _ACEOF
41478
41479     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41480 fi
41481
41482 if test "$wxUSE_DMALLOC" = "yes" ; then
41483     DMALLOC_LIBS="-ldmallocthcxx"
41484 fi
41485
41486 PROFILE_FLAGS=
41487 if test "$wxUSE_PROFILE" = "yes" ; then
41488     PROFILE_FLAGS=" -pg"
41489 fi
41490
41491 if test "$GCC" = "yes" ; then
41492     if test "$wxUSE_NO_RTTI" = "yes" ; then
41493         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41494     fi
41495     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41496         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41497     fi
41498     if test "$wxUSE_PERMISSIVE" = "yes" ; then
41499         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41500     fi
41501
41502                                                 case "${host}" in
41503       powerpc*-*-aix* )
41504         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41505         ;;
41506       *-hppa* )
41507         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41508         ;;
41509     esac
41510 fi
41511
41512 OPTIMISE_CFLAGS=
41513 if test "$wxUSE_OPTIMISE" = "no" ; then
41514     if test "$GCC" = yes ; then
41515                         OPTIMISE_CFLAGS="-O0"
41516     fi
41517 else
41518     if test "$GCC" = yes ; then
41519         case "${host}" in
41520             *-pc-os2_emx | *-pc-os2-emx )
41521                                                 OPTIMISE_CFLAGS="-O2"
41522             ;;
41523             *)
41524                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41525             ;;
41526         esac
41527     else
41528         OPTIMISE_CFLAGS="-O"
41529     fi
41530 fi
41531
41532
41533 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
41534     cat >>confdefs.h <<\_ACEOF
41535 #define WXWIN_COMPATIBILITY_2_6 1
41536 _ACEOF
41537
41538
41539     WXWIN_COMPATIBILITY_2_8="yes"
41540 fi
41541
41542 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
41543     cat >>confdefs.h <<\_ACEOF
41544 #define WXWIN_COMPATIBILITY_2_8 1
41545 _ACEOF
41546
41547 fi
41548
41549
41550 if test "$wxUSE_GUI" = "yes"; then
41551     cat >>confdefs.h <<\_ACEOF
41552 #define wxUSE_GUI 1
41553 _ACEOF
41554
41555
41556                                             fi
41557
41558
41559 if test "$wxUSE_UNIX" = "yes"; then
41560   cat >>confdefs.h <<\_ACEOF
41561 #define wxUSE_UNIX 1
41562 _ACEOF
41563
41564 fi
41565
41566
41567 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41568
41569     HAVE_DL_FUNCS=0
41570     HAVE_SHL_FUNCS=0
41571     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41572         if test "$USE_DOS" = 1; then
41573             HAVE_DL_FUNCS=0
41574         else
41575
41576 for ac_func in dlopen
41577 do
41578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41582   echo $ECHO_N "(cached) $ECHO_C" >&6
41583 else
41584   cat >conftest.$ac_ext <<_ACEOF
41585 /* confdefs.h.  */
41586 _ACEOF
41587 cat confdefs.h >>conftest.$ac_ext
41588 cat >>conftest.$ac_ext <<_ACEOF
41589 /* end confdefs.h.  */
41590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41592 #define $ac_func innocuous_$ac_func
41593
41594 /* System header to define __stub macros and hopefully few prototypes,
41595     which can conflict with char $ac_func (); below.
41596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41597     <limits.h> exists even on freestanding compilers.  */
41598
41599 #ifdef __STDC__
41600 # include <limits.h>
41601 #else
41602 # include <assert.h>
41603 #endif
41604
41605 #undef $ac_func
41606
41607 /* Override any GCC internal prototype to avoid an error.
41608    Use char because int might match the return type of a GCC
41609    builtin and then its argument prototype would still apply.  */
41610 #ifdef __cplusplus
41611 extern "C"
41612 #endif
41613 char $ac_func ();
41614 /* The GNU C library defines this for functions which it implements
41615     to always fail with ENOSYS.  Some functions are actually named
41616     something starting with __ and the normal name is an alias.  */
41617 #if defined __stub_$ac_func || defined __stub___$ac_func
41618 choke me
41619 #endif
41620
41621 int
41622 main ()
41623 {
41624 return $ac_func ();
41625   ;
41626   return 0;
41627 }
41628 _ACEOF
41629 rm -f conftest.$ac_objext conftest$ac_exeext
41630 if { (ac_try="$ac_link"
41631 case "(($ac_try" in
41632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41633   *) ac_try_echo=$ac_try;;
41634 esac
41635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41636   (eval "$ac_link") 2>conftest.er1
41637   ac_status=$?
41638   grep -v '^ *+' conftest.er1 >conftest.err
41639   rm -f conftest.er1
41640   cat conftest.err >&5
41641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41642   (exit $ac_status); } && {
41643          test -z "$ac_c_werror_flag" ||
41644          test ! -s conftest.err
41645        } && test -s conftest$ac_exeext &&
41646        $as_test_x conftest$ac_exeext; then
41647   eval "$as_ac_var=yes"
41648 else
41649   echo "$as_me: failed program was:" >&5
41650 sed 's/^/| /' conftest.$ac_ext >&5
41651
41652         eval "$as_ac_var=no"
41653 fi
41654
41655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41656       conftest$ac_exeext conftest.$ac_ext
41657 fi
41658 ac_res=`eval echo '${'$as_ac_var'}'`
41659                { echo "$as_me:$LINENO: result: $ac_res" >&5
41660 echo "${ECHO_T}$ac_res" >&6; }
41661 if test `eval echo '${'$as_ac_var'}'` = yes; then
41662   cat >>confdefs.h <<_ACEOF
41663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41664 _ACEOF
41665
41666                 cat >>confdefs.h <<\_ACEOF
41667 #define HAVE_DLOPEN 1
41668 _ACEOF
41669
41670                 HAVE_DL_FUNCS=1
41671
41672 else
41673
41674                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41675 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41676 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41677   echo $ECHO_N "(cached) $ECHO_C" >&6
41678 else
41679   ac_check_lib_save_LIBS=$LIBS
41680 LIBS="-ldl  $LIBS"
41681 cat >conftest.$ac_ext <<_ACEOF
41682 /* confdefs.h.  */
41683 _ACEOF
41684 cat confdefs.h >>conftest.$ac_ext
41685 cat >>conftest.$ac_ext <<_ACEOF
41686 /* end confdefs.h.  */
41687
41688 /* Override any GCC internal prototype to avoid an error.
41689    Use char because int might match the return type of a GCC
41690    builtin and then its argument prototype would still apply.  */
41691 #ifdef __cplusplus
41692 extern "C"
41693 #endif
41694 char dlopen ();
41695 int
41696 main ()
41697 {
41698 return dlopen ();
41699   ;
41700   return 0;
41701 }
41702 _ACEOF
41703 rm -f conftest.$ac_objext conftest$ac_exeext
41704 if { (ac_try="$ac_link"
41705 case "(($ac_try" in
41706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41707   *) ac_try_echo=$ac_try;;
41708 esac
41709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41710   (eval "$ac_link") 2>conftest.er1
41711   ac_status=$?
41712   grep -v '^ *+' conftest.er1 >conftest.err
41713   rm -f conftest.er1
41714   cat conftest.err >&5
41715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41716   (exit $ac_status); } && {
41717          test -z "$ac_c_werror_flag" ||
41718          test ! -s conftest.err
41719        } && test -s conftest$ac_exeext &&
41720        $as_test_x conftest$ac_exeext; then
41721   ac_cv_lib_dl_dlopen=yes
41722 else
41723   echo "$as_me: failed program was:" >&5
41724 sed 's/^/| /' conftest.$ac_ext >&5
41725
41726         ac_cv_lib_dl_dlopen=no
41727 fi
41728
41729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41730       conftest$ac_exeext conftest.$ac_ext
41731 LIBS=$ac_check_lib_save_LIBS
41732 fi
41733 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41734 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41735 if test $ac_cv_lib_dl_dlopen = yes; then
41736
41737                                 cat >>confdefs.h <<\_ACEOF
41738 #define HAVE_DLOPEN 1
41739 _ACEOF
41740
41741                                 HAVE_DL_FUNCS=1
41742                                 DL_LINK=" -ldl$DL_LINK"
41743
41744 else
41745
41746
41747 for ac_func in shl_load
41748 do
41749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41753   echo $ECHO_N "(cached) $ECHO_C" >&6
41754 else
41755   cat >conftest.$ac_ext <<_ACEOF
41756 /* confdefs.h.  */
41757 _ACEOF
41758 cat confdefs.h >>conftest.$ac_ext
41759 cat >>conftest.$ac_ext <<_ACEOF
41760 /* end confdefs.h.  */
41761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41763 #define $ac_func innocuous_$ac_func
41764
41765 /* System header to define __stub macros and hopefully few prototypes,
41766     which can conflict with char $ac_func (); below.
41767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41768     <limits.h> exists even on freestanding compilers.  */
41769
41770 #ifdef __STDC__
41771 # include <limits.h>
41772 #else
41773 # include <assert.h>
41774 #endif
41775
41776 #undef $ac_func
41777
41778 /* Override any GCC internal prototype to avoid an error.
41779    Use char because int might match the return type of a GCC
41780    builtin and then its argument prototype would still apply.  */
41781 #ifdef __cplusplus
41782 extern "C"
41783 #endif
41784 char $ac_func ();
41785 /* The GNU C library defines this for functions which it implements
41786     to always fail with ENOSYS.  Some functions are actually named
41787     something starting with __ and the normal name is an alias.  */
41788 #if defined __stub_$ac_func || defined __stub___$ac_func
41789 choke me
41790 #endif
41791
41792 int
41793 main ()
41794 {
41795 return $ac_func ();
41796   ;
41797   return 0;
41798 }
41799 _ACEOF
41800 rm -f conftest.$ac_objext conftest$ac_exeext
41801 if { (ac_try="$ac_link"
41802 case "(($ac_try" in
41803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41804   *) ac_try_echo=$ac_try;;
41805 esac
41806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41807   (eval "$ac_link") 2>conftest.er1
41808   ac_status=$?
41809   grep -v '^ *+' conftest.er1 >conftest.err
41810   rm -f conftest.er1
41811   cat conftest.err >&5
41812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41813   (exit $ac_status); } && {
41814          test -z "$ac_c_werror_flag" ||
41815          test ! -s conftest.err
41816        } && test -s conftest$ac_exeext &&
41817        $as_test_x conftest$ac_exeext; then
41818   eval "$as_ac_var=yes"
41819 else
41820   echo "$as_me: failed program was:" >&5
41821 sed 's/^/| /' conftest.$ac_ext >&5
41822
41823         eval "$as_ac_var=no"
41824 fi
41825
41826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41827       conftest$ac_exeext conftest.$ac_ext
41828 fi
41829 ac_res=`eval echo '${'$as_ac_var'}'`
41830                { echo "$as_me:$LINENO: result: $ac_res" >&5
41831 echo "${ECHO_T}$ac_res" >&6; }
41832 if test `eval echo '${'$as_ac_var'}'` = yes; then
41833   cat >>confdefs.h <<_ACEOF
41834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41835 _ACEOF
41836
41837                                                 cat >>confdefs.h <<\_ACEOF
41838 #define HAVE_SHL_LOAD 1
41839 _ACEOF
41840
41841                                                 HAVE_SHL_FUNCS=1
41842
41843 else
41844
41845                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41846 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
41847 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41848   echo $ECHO_N "(cached) $ECHO_C" >&6
41849 else
41850   ac_check_lib_save_LIBS=$LIBS
41851 LIBS="-lshl_load  $LIBS"
41852 cat >conftest.$ac_ext <<_ACEOF
41853 /* confdefs.h.  */
41854 _ACEOF
41855 cat confdefs.h >>conftest.$ac_ext
41856 cat >>conftest.$ac_ext <<_ACEOF
41857 /* end confdefs.h.  */
41858
41859 /* Override any GCC internal prototype to avoid an error.
41860    Use char because int might match the return type of a GCC
41861    builtin and then its argument prototype would still apply.  */
41862 #ifdef __cplusplus
41863 extern "C"
41864 #endif
41865 char dld ();
41866 int
41867 main ()
41868 {
41869 return dld ();
41870   ;
41871   return 0;
41872 }
41873 _ACEOF
41874 rm -f conftest.$ac_objext conftest$ac_exeext
41875 if { (ac_try="$ac_link"
41876 case "(($ac_try" in
41877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41878   *) ac_try_echo=$ac_try;;
41879 esac
41880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41881   (eval "$ac_link") 2>conftest.er1
41882   ac_status=$?
41883   grep -v '^ *+' conftest.er1 >conftest.err
41884   rm -f conftest.er1
41885   cat conftest.err >&5
41886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41887   (exit $ac_status); } && {
41888          test -z "$ac_c_werror_flag" ||
41889          test ! -s conftest.err
41890        } && test -s conftest$ac_exeext &&
41891        $as_test_x conftest$ac_exeext; then
41892   ac_cv_lib_shl_load_dld=yes
41893 else
41894   echo "$as_me: failed program was:" >&5
41895 sed 's/^/| /' conftest.$ac_ext >&5
41896
41897         ac_cv_lib_shl_load_dld=no
41898 fi
41899
41900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41901       conftest$ac_exeext conftest.$ac_ext
41902 LIBS=$ac_check_lib_save_LIBS
41903 fi
41904 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41905 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
41906 if test $ac_cv_lib_shl_load_dld = yes; then
41907
41908                                                                 HAVE_SHL_FUNCS=1
41909                                                                 DL_LINK=" -ldld$DL_LINK"
41910
41911 fi
41912
41913
41914 fi
41915 done
41916
41917
41918 fi
41919
41920
41921 fi
41922 done
41923
41924
41925                         if test "$HAVE_DL_FUNCS" = 1; then
41926
41927 for ac_func in dlerror
41928 do
41929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41933   echo $ECHO_N "(cached) $ECHO_C" >&6
41934 else
41935   cat >conftest.$ac_ext <<_ACEOF
41936 /* confdefs.h.  */
41937 _ACEOF
41938 cat confdefs.h >>conftest.$ac_ext
41939 cat >>conftest.$ac_ext <<_ACEOF
41940 /* end confdefs.h.  */
41941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41943 #define $ac_func innocuous_$ac_func
41944
41945 /* System header to define __stub macros and hopefully few prototypes,
41946     which can conflict with char $ac_func (); below.
41947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41948     <limits.h> exists even on freestanding compilers.  */
41949
41950 #ifdef __STDC__
41951 # include <limits.h>
41952 #else
41953 # include <assert.h>
41954 #endif
41955
41956 #undef $ac_func
41957
41958 /* Override any GCC internal prototype to avoid an error.
41959    Use char because int might match the return type of a GCC
41960    builtin and then its argument prototype would still apply.  */
41961 #ifdef __cplusplus
41962 extern "C"
41963 #endif
41964 char $ac_func ();
41965 /* The GNU C library defines this for functions which it implements
41966     to always fail with ENOSYS.  Some functions are actually named
41967     something starting with __ and the normal name is an alias.  */
41968 #if defined __stub_$ac_func || defined __stub___$ac_func
41969 choke me
41970 #endif
41971
41972 int
41973 main ()
41974 {
41975 return $ac_func ();
41976   ;
41977   return 0;
41978 }
41979 _ACEOF
41980 rm -f conftest.$ac_objext conftest$ac_exeext
41981 if { (ac_try="$ac_link"
41982 case "(($ac_try" in
41983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41984   *) ac_try_echo=$ac_try;;
41985 esac
41986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41987   (eval "$ac_link") 2>conftest.er1
41988   ac_status=$?
41989   grep -v '^ *+' conftest.er1 >conftest.err
41990   rm -f conftest.er1
41991   cat conftest.err >&5
41992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41993   (exit $ac_status); } && {
41994          test -z "$ac_c_werror_flag" ||
41995          test ! -s conftest.err
41996        } && test -s conftest$ac_exeext &&
41997        $as_test_x conftest$ac_exeext; then
41998   eval "$as_ac_var=yes"
41999 else
42000   echo "$as_me: failed program was:" >&5
42001 sed 's/^/| /' conftest.$ac_ext >&5
42002
42003         eval "$as_ac_var=no"
42004 fi
42005
42006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42007       conftest$ac_exeext conftest.$ac_ext
42008 fi
42009 ac_res=`eval echo '${'$as_ac_var'}'`
42010                { echo "$as_me:$LINENO: result: $ac_res" >&5
42011 echo "${ECHO_T}$ac_res" >&6; }
42012 if test `eval echo '${'$as_ac_var'}'` = yes; then
42013   cat >>confdefs.h <<_ACEOF
42014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42015 _ACEOF
42016  cat >>confdefs.h <<\_ACEOF
42017 #define HAVE_DLERROR 1
42018 _ACEOF
42019
42020 else
42021
42022                         { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42023 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
42024 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42025   echo $ECHO_N "(cached) $ECHO_C" >&6
42026 else
42027   ac_check_lib_save_LIBS=$LIBS
42028 LIBS="-ldl  $LIBS"
42029 cat >conftest.$ac_ext <<_ACEOF
42030 /* confdefs.h.  */
42031 _ACEOF
42032 cat confdefs.h >>conftest.$ac_ext
42033 cat >>conftest.$ac_ext <<_ACEOF
42034 /* end confdefs.h.  */
42035
42036 /* Override any GCC internal prototype to avoid an error.
42037    Use char because int might match the return type of a GCC
42038    builtin and then its argument prototype would still apply.  */
42039 #ifdef __cplusplus
42040 extern "C"
42041 #endif
42042 char dlerror ();
42043 int
42044 main ()
42045 {
42046 return dlerror ();
42047   ;
42048   return 0;
42049 }
42050 _ACEOF
42051 rm -f conftest.$ac_objext conftest$ac_exeext
42052 if { (ac_try="$ac_link"
42053 case "(($ac_try" in
42054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42055   *) ac_try_echo=$ac_try;;
42056 esac
42057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42058   (eval "$ac_link") 2>conftest.er1
42059   ac_status=$?
42060   grep -v '^ *+' conftest.er1 >conftest.err
42061   rm -f conftest.er1
42062   cat conftest.err >&5
42063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42064   (exit $ac_status); } && {
42065          test -z "$ac_c_werror_flag" ||
42066          test ! -s conftest.err
42067        } && test -s conftest$ac_exeext &&
42068        $as_test_x conftest$ac_exeext; then
42069   ac_cv_lib_dl_dlerror=yes
42070 else
42071   echo "$as_me: failed program was:" >&5
42072 sed 's/^/| /' conftest.$ac_ext >&5
42073
42074         ac_cv_lib_dl_dlerror=no
42075 fi
42076
42077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42078       conftest$ac_exeext conftest.$ac_ext
42079 LIBS=$ac_check_lib_save_LIBS
42080 fi
42081 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42082 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
42083 if test $ac_cv_lib_dl_dlerror = yes; then
42084   cat >>confdefs.h <<\_ACEOF
42085 #define HAVE_DLERROR 1
42086 _ACEOF
42087
42088 fi
42089
42090
42091
42092 fi
42093 done
42094
42095             fi
42096         fi
42097
42098                 if test "$USE_DARWIN" = 1; then
42099                         HAVE_DL_FUNCS=1
42100         fi
42101
42102         if test "$HAVE_DL_FUNCS" = 0; then
42103             if test "$HAVE_SHL_FUNCS" = 0; then
42104               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
42105                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42106 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42107                   wxUSE_DYNAMIC_LOADER=no
42108                   wxUSE_DYNLIB_CLASS=no
42109               else
42110                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42111 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42112               fi
42113             fi
42114         fi
42115     fi
42116 fi
42117
42118 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42119     cat >>confdefs.h <<\_ACEOF
42120 #define wxUSE_DYNAMIC_LOADER 1
42121 _ACEOF
42122
42123 fi
42124 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42125     cat >>confdefs.h <<\_ACEOF
42126 #define wxUSE_DYNLIB_CLASS 1
42127 _ACEOF
42128
42129 fi
42130
42131
42132
42133 if test "$wxUSE_PLUGINS" = "yes" ; then
42134     if test "$wxUSE_SHARED" = "no" ; then
42135         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42136 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42137         wxUSE_PLUGINS=no
42138     fi
42139     if test "$wxUSE_MONOLITHIC" = "yes" ; then
42140         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42141 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42142         wxUSE_PLUGINS=no
42143     fi
42144     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42145         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42146 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42147         wxUSE_PLUGINS=no
42148     fi
42149     if test "$wxUSE_PLUGINS" = "yes" ; then
42150         cat >>confdefs.h <<\_ACEOF
42151 #define wxUSE_PLUGINS 1
42152 _ACEOF
42153
42154     fi
42155 fi
42156
42157
42158 if test "$wxUSE_STL" = "yes"; then
42159   cat >>confdefs.h <<\_ACEOF
42160 #define wxUSE_STL 1
42161 _ACEOF
42162
42163 fi
42164
42165 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
42166   cat >>confdefs.h <<\_ACEOF
42167 #define wxUSE_EXTENDED_RTTI 1
42168 _ACEOF
42169
42170 fi
42171
42172 if test "$wxUSE_APPLE_IEEE" = "yes"; then
42173   cat >>confdefs.h <<\_ACEOF
42174 #define wxUSE_APPLE_IEEE 1
42175 _ACEOF
42176
42177 fi
42178
42179 if test "$wxUSE_TIMER" = "yes"; then
42180   cat >>confdefs.h <<\_ACEOF
42181 #define wxUSE_TIMER 1
42182 _ACEOF
42183
42184 fi
42185
42186 if test "$USE_UNIX" = 1 ; then
42187         if test "$wxUSE_MGL" != 1; then
42188                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42189 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
42190 if test "${ac_cv_header_sys_soundcard+set}" = set; then
42191   echo $ECHO_N "(cached) $ECHO_C" >&6
42192 else
42193
42194             cat >conftest.$ac_ext <<_ACEOF
42195 /* confdefs.h.  */
42196 _ACEOF
42197 cat confdefs.h >>conftest.$ac_ext
42198 cat >>conftest.$ac_ext <<_ACEOF
42199 /* end confdefs.h.  */
42200
42201                     #include <sys/ioctl.h>
42202                     #include <sys/soundcard.h>
42203
42204 int
42205 main ()
42206 {
42207
42208                     ioctl(0, SNDCTL_DSP_SPEED, 0);
42209
42210   ;
42211   return 0;
42212 }
42213 _ACEOF
42214 rm -f conftest.$ac_objext conftest$ac_exeext
42215 if { (ac_try="$ac_link"
42216 case "(($ac_try" in
42217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42218   *) ac_try_echo=$ac_try;;
42219 esac
42220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42221   (eval "$ac_link") 2>conftest.er1
42222   ac_status=$?
42223   grep -v '^ *+' conftest.er1 >conftest.err
42224   rm -f conftest.er1
42225   cat conftest.err >&5
42226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42227   (exit $ac_status); } && {
42228          test -z "$ac_c_werror_flag" ||
42229          test ! -s conftest.err
42230        } && test -s conftest$ac_exeext &&
42231        $as_test_x conftest$ac_exeext; then
42232   ac_cv_header_sys_soundcard=yes
42233 else
42234   echo "$as_me: failed program was:" >&5
42235 sed 's/^/| /' conftest.$ac_ext >&5
42236
42237
42238                     saveLibs="$LIBS"
42239                     LIBS="$saveLibs -lossaudio"
42240                     cat >conftest.$ac_ext <<_ACEOF
42241 /* confdefs.h.  */
42242 _ACEOF
42243 cat confdefs.h >>conftest.$ac_ext
42244 cat >>conftest.$ac_ext <<_ACEOF
42245 /* end confdefs.h.  */
42246
42247                             #include <sys/ioctl.h>
42248                             #include <sys/soundcard.h>
42249
42250 int
42251 main ()
42252 {
42253
42254                             ioctl(0, SNDCTL_DSP_SPEED, 0);
42255
42256   ;
42257   return 0;
42258 }
42259 _ACEOF
42260 rm -f conftest.$ac_objext conftest$ac_exeext
42261 if { (ac_try="$ac_link"
42262 case "(($ac_try" in
42263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42264   *) ac_try_echo=$ac_try;;
42265 esac
42266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42267   (eval "$ac_link") 2>conftest.er1
42268   ac_status=$?
42269   grep -v '^ *+' conftest.er1 >conftest.err
42270   rm -f conftest.er1
42271   cat conftest.err >&5
42272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42273   (exit $ac_status); } && {
42274          test -z "$ac_c_werror_flag" ||
42275          test ! -s conftest.err
42276        } && test -s conftest$ac_exeext &&
42277        $as_test_x conftest$ac_exeext; then
42278   ac_cv_header_sys_soundcard=yes
42279 else
42280   echo "$as_me: failed program was:" >&5
42281 sed 's/^/| /' conftest.$ac_ext >&5
42282
42283
42284                             LIBS="$saveLibs"
42285                             ac_cv_header_sys_soundcard=no
42286
42287
42288 fi
42289
42290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42291       conftest$ac_exeext conftest.$ac_ext
42292
42293
42294 fi
42295
42296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42297       conftest$ac_exeext conftest.$ac_ext
42298
42299 fi
42300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42301 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
42302     fi
42303
42304     if test "$ac_cv_header_sys_soundcard" = "yes"; then
42305         cat >>confdefs.h <<\_ACEOF
42306 #define HAVE_SYS_SOUNDCARD_H 1
42307 _ACEOF
42308
42309     fi
42310 fi
42311
42312 WITH_PLUGIN_SDL=0
42313 if test "$wxUSE_SOUND" = "yes"; then
42314   if test "$USE_UNIX" = 1 ; then
42315     if test "$wxUSE_LIBSDL" != "no"; then
42316
42317 # Check whether --with-sdl-prefix was given.
42318 if test "${with_sdl_prefix+set}" = set; then
42319   withval=$with_sdl_prefix; sdl_prefix="$withval"
42320 else
42321   sdl_prefix=""
42322 fi
42323
42324
42325 # Check whether --with-sdl-exec-prefix was given.
42326 if test "${with_sdl_exec_prefix+set}" = set; then
42327   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
42328 else
42329   sdl_exec_prefix=""
42330 fi
42331
42332 # Check whether --enable-sdltest was given.
42333 if test "${enable_sdltest+set}" = set; then
42334   enableval=$enable_sdltest;
42335 else
42336   enable_sdltest=yes
42337 fi
42338
42339
42340   if test x$sdl_exec_prefix != x ; then
42341     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42342     if test x${SDL_CONFIG+set} != xset ; then
42343       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42344     fi
42345   fi
42346   if test x$sdl_prefix != x ; then
42347     sdl_args="$sdl_args --prefix=$sdl_prefix"
42348     if test x${SDL_CONFIG+set} != xset ; then
42349       SDL_CONFIG=$sdl_prefix/bin/sdl-config
42350     fi
42351   fi
42352
42353   if test "x$prefix" != xNONE; then
42354     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42355   fi
42356   # Extract the first word of "sdl-config", so it can be a program name with args.
42357 set dummy sdl-config; ac_word=$2
42358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42360 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42361   echo $ECHO_N "(cached) $ECHO_C" >&6
42362 else
42363   case $SDL_CONFIG in
42364   [\\/]* | ?:[\\/]*)
42365   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42366   ;;
42367   *)
42368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42369 for as_dir in $PATH
42370 do
42371   IFS=$as_save_IFS
42372   test -z "$as_dir" && as_dir=.
42373   for ac_exec_ext in '' $ac_executable_extensions; do
42374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42375     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42377     break 2
42378   fi
42379 done
42380 done
42381 IFS=$as_save_IFS
42382
42383   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42384   ;;
42385 esac
42386 fi
42387 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42388 if test -n "$SDL_CONFIG"; then
42389   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42390 echo "${ECHO_T}$SDL_CONFIG" >&6; }
42391 else
42392   { echo "$as_me:$LINENO: result: no" >&5
42393 echo "${ECHO_T}no" >&6; }
42394 fi
42395
42396
42397   min_sdl_version=1.2.0
42398   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42399 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
42400   no_sdl=""
42401   if test "$SDL_CONFIG" = "no" ; then
42402     no_sdl=yes
42403   else
42404     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42405     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42406
42407     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42408            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42409     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42410            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42411     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42412            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42413     if test "x$enable_sdltest" = "xyes" ; then
42414       ac_save_CFLAGS="$CFLAGS"
42415       ac_save_CXXFLAGS="$CXXFLAGS"
42416       ac_save_LIBS="$LIBS"
42417       CFLAGS="$CFLAGS $SDL_CFLAGS"
42418       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42419       LIBS="$LIBS $SDL_LIBS"
42420       rm -f conf.sdltest
42421       if test "$cross_compiling" = yes; then
42422   echo $ac_n "cross compiling; assumed OK... $ac_c"
42423 else
42424   cat >conftest.$ac_ext <<_ACEOF
42425 /* confdefs.h.  */
42426 _ACEOF
42427 cat confdefs.h >>conftest.$ac_ext
42428 cat >>conftest.$ac_ext <<_ACEOF
42429 /* end confdefs.h.  */
42430
42431 #include <stdio.h>
42432 #include <stdlib.h>
42433 #include <string.h>
42434 #include "SDL.h"
42435
42436 char*
42437 my_strdup (char *str)
42438 {
42439   char *new_str;
42440
42441   if (str)
42442     {
42443       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42444       strcpy (new_str, str);
42445     }
42446   else
42447     new_str = NULL;
42448
42449   return new_str;
42450 }
42451
42452 int main (int argc, char *argv[])
42453 {
42454   int major, minor, micro;
42455   char *tmp_version;
42456
42457   /* This hangs on some systems (?)
42458   system ("touch conf.sdltest");
42459   */
42460   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42461
42462   /* HP/UX 9 (%@#!) writes to sscanf strings */
42463   tmp_version = my_strdup("$min_sdl_version");
42464   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42465      printf("%s, bad version string\n", "$min_sdl_version");
42466      exit(1);
42467    }
42468
42469    if (($sdl_major_version > major) ||
42470       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42471       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42472     {
42473       return 0;
42474     }
42475   else
42476     {
42477       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42478       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42479       printf("*** best to upgrade to the required version.\n");
42480       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42481       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42482       printf("*** config.cache before re-running configure\n");
42483       return 1;
42484     }
42485 }
42486
42487
42488 _ACEOF
42489 rm -f conftest$ac_exeext
42490 if { (ac_try="$ac_link"
42491 case "(($ac_try" in
42492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42493   *) ac_try_echo=$ac_try;;
42494 esac
42495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42496   (eval "$ac_link") 2>&5
42497   ac_status=$?
42498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42500   { (case "(($ac_try" in
42501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42502   *) ac_try_echo=$ac_try;;
42503 esac
42504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42505   (eval "$ac_try") 2>&5
42506   ac_status=$?
42507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42508   (exit $ac_status); }; }; then
42509   :
42510 else
42511   echo "$as_me: program exited with status $ac_status" >&5
42512 echo "$as_me: failed program was:" >&5
42513 sed 's/^/| /' conftest.$ac_ext >&5
42514
42515 ( exit $ac_status )
42516 no_sdl=yes
42517 fi
42518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42519 fi
42520
42521
42522        CFLAGS="$ac_save_CFLAGS"
42523        CXXFLAGS="$ac_save_CXXFLAGS"
42524        LIBS="$ac_save_LIBS"
42525      fi
42526   fi
42527   if test "x$no_sdl" = x ; then
42528      { echo "$as_me:$LINENO: result: yes" >&5
42529 echo "${ECHO_T}yes" >&6; }
42530
42531                     EXTRALIBS_SDL="$SDL_LIBS"
42532                     CFLAGS="$SDL_CFLAGS $CFLAGS"
42533                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
42534                     cat >>confdefs.h <<\_ACEOF
42535 #define wxUSE_LIBSDL 1
42536 _ACEOF
42537
42538
42539   else
42540      { echo "$as_me:$LINENO: result: no" >&5
42541 echo "${ECHO_T}no" >&6; }
42542      if test "$SDL_CONFIG" = "no" ; then
42543        echo "*** The sdl-config script installed by SDL could not be found"
42544        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42545        echo "*** your path, or set the SDL_CONFIG environment variable to the"
42546        echo "*** full path to sdl-config."
42547      else
42548        if test -f conf.sdltest ; then
42549         :
42550        else
42551           echo "*** Could not run SDL test program, checking why..."
42552           CFLAGS="$CFLAGS $SDL_CFLAGS"
42553           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
42554           LIBS="$LIBS $SDL_LIBS"
42555           cat >conftest.$ac_ext <<_ACEOF
42556 /* confdefs.h.  */
42557 _ACEOF
42558 cat confdefs.h >>conftest.$ac_ext
42559 cat >>conftest.$ac_ext <<_ACEOF
42560 /* end confdefs.h.  */
42561
42562 #include <stdio.h>
42563 #include "SDL.h"
42564
42565 int main(int argc, char *argv[])
42566 { return 0; }
42567 #undef  main
42568 #define main K_and_R_C_main
42569
42570 int
42571 main ()
42572 {
42573  return 0;
42574   ;
42575   return 0;
42576 }
42577 _ACEOF
42578 rm -f conftest.$ac_objext conftest$ac_exeext
42579 if { (ac_try="$ac_link"
42580 case "(($ac_try" in
42581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42582   *) ac_try_echo=$ac_try;;
42583 esac
42584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42585   (eval "$ac_link") 2>conftest.er1
42586   ac_status=$?
42587   grep -v '^ *+' conftest.er1 >conftest.err
42588   rm -f conftest.er1
42589   cat conftest.err >&5
42590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42591   (exit $ac_status); } && {
42592          test -z "$ac_c_werror_flag" ||
42593          test ! -s conftest.err
42594        } && test -s conftest$ac_exeext &&
42595        $as_test_x conftest$ac_exeext; then
42596    echo "*** The test program compiled, but did not run. This usually means"
42597           echo "*** that the run-time linker is not finding SDL or finding the wrong"
42598           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42599           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42600           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
42601           echo "*** is required on your system"
42602           echo "***"
42603           echo "*** If you have an old version installed, it is best to remove it, although"
42604           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42605 else
42606   echo "$as_me: failed program was:" >&5
42607 sed 's/^/| /' conftest.$ac_ext >&5
42608
42609          echo "*** The test program failed to compile or link. See the file config.log for the"
42610           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42611           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42612           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42613 fi
42614
42615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42616       conftest$ac_exeext conftest.$ac_ext
42617           CFLAGS="$ac_save_CFLAGS"
42618           CXXFLAGS="$ac_save_CXXFLAGS"
42619           LIBS="$ac_save_LIBS"
42620        fi
42621      fi
42622      SDL_CFLAGS=""
42623      SDL_LIBS=""
42624      wxUSE_LIBSDL="no"
42625   fi
42626
42627
42628   rm -f conf.sdltest
42629
42630       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42631         WITH_PLUGIN_SDL=1
42632       fi
42633     fi
42634   else
42635         if test "$wxUSE_MGL" = 1; then
42636         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
42637 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
42638         wxUSE_SOUND="no"
42639     fi
42640   fi
42641 fi
42642
42643 if test "$wxUSE_SOUND" = "yes"; then
42644   cat >>confdefs.h <<\_ACEOF
42645 #define wxUSE_SOUND 1
42646 _ACEOF
42647
42648   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42649 fi
42650
42651 if test "$WXGTK2" = 1; then
42652
42653
42654 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
42655         if test -n "$ac_tool_prefix"; then
42656   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
42657 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
42658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42660 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42661   echo $ECHO_N "(cached) $ECHO_C" >&6
42662 else
42663   case $PKG_CONFIG in
42664   [\\/]* | ?:[\\/]*)
42665   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42666   ;;
42667   *)
42668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42669 for as_dir in $PATH
42670 do
42671   IFS=$as_save_IFS
42672   test -z "$as_dir" && as_dir=.
42673   for ac_exec_ext in '' $ac_executable_extensions; do
42674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42675     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42677     break 2
42678   fi
42679 done
42680 done
42681 IFS=$as_save_IFS
42682
42683   ;;
42684 esac
42685 fi
42686 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42687 if test -n "$PKG_CONFIG"; then
42688   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42689 echo "${ECHO_T}$PKG_CONFIG" >&6; }
42690 else
42691   { echo "$as_me:$LINENO: result: no" >&5
42692 echo "${ECHO_T}no" >&6; }
42693 fi
42694
42695
42696 fi
42697 if test -z "$ac_cv_path_PKG_CONFIG"; then
42698   ac_pt_PKG_CONFIG=$PKG_CONFIG
42699   # Extract the first word of "pkg-config", so it can be a program name with args.
42700 set dummy pkg-config; ac_word=$2
42701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
42702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
42703 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
42704   echo $ECHO_N "(cached) $ECHO_C" >&6
42705 else
42706   case $ac_pt_PKG_CONFIG in
42707   [\\/]* | ?:[\\/]*)
42708   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
42709   ;;
42710   *)
42711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42712 for as_dir in $PATH
42713 do
42714   IFS=$as_save_IFS
42715   test -z "$as_dir" && as_dir=.
42716   for ac_exec_ext in '' $ac_executable_extensions; do
42717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42718     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42720     break 2
42721   fi
42722 done
42723 done
42724 IFS=$as_save_IFS
42725
42726   ;;
42727 esac
42728 fi
42729 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
42730 if test -n "$ac_pt_PKG_CONFIG"; then
42731   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
42732 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
42733 else
42734   { echo "$as_me:$LINENO: result: no" >&5
42735 echo "${ECHO_T}no" >&6; }
42736 fi
42737
42738   if test "x$ac_pt_PKG_CONFIG" = x; then
42739     PKG_CONFIG=""
42740   else
42741     case $cross_compiling:$ac_tool_warned in
42742 yes:)
42743 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
42744 whose name does not start with the host triplet.  If you think this
42745 configuration is useful to you, please write to autoconf@gnu.org." >&5
42746 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
42747 whose name does not start with the host triplet.  If you think this
42748 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
42749 ac_tool_warned=yes ;;
42750 esac
42751     PKG_CONFIG=$ac_pt_PKG_CONFIG
42752   fi
42753 else
42754   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
42755 fi
42756
42757 fi
42758 if test -n "$PKG_CONFIG"; then
42759         _pkg_min_version=0.9.0
42760         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
42761 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
42762         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
42763                 { echo "$as_me:$LINENO: result: yes" >&5
42764 echo "${ECHO_T}yes" >&6; }
42765         else
42766                 { echo "$as_me:$LINENO: result: no" >&5
42767 echo "${ECHO_T}no" >&6; }
42768                 PKG_CONFIG=""
42769         fi
42770
42771 fi
42772
42773     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42774
42775         if test "$wxUSE_GTKPRINT" = "yes" ; then
42776
42777
42778 pkg_failed=no
42779 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
42780 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
42781
42782 if test -n "$PKG_CONFIG"; then
42783     if test -n "$GTKPRINT_CFLAGS"; then
42784         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
42785     else
42786         if test -n "$PKG_CONFIG" && \
42787     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42788   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42789   ac_status=$?
42790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42791   (exit $ac_status); }; then
42792   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42793 else
42794   pkg_failed=yes
42795 fi
42796     fi
42797 else
42798         pkg_failed=untried
42799 fi
42800 if test -n "$PKG_CONFIG"; then
42801     if test -n "$GTKPRINT_LIBS"; then
42802         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
42803     else
42804         if test -n "$PKG_CONFIG" && \
42805     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
42806   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
42807   ac_status=$?
42808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42809   (exit $ac_status); }; then
42810   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
42811 else
42812   pkg_failed=yes
42813 fi
42814     fi
42815 else
42816         pkg_failed=untried
42817 fi
42818
42819
42820
42821 if test $pkg_failed = yes; then
42822
42823 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42824         _pkg_short_errors_supported=yes
42825 else
42826         _pkg_short_errors_supported=no
42827 fi
42828         if test $_pkg_short_errors_supported = yes; then
42829                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42830         else
42831                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
42832         fi
42833         # Put the nasty error message in config.log where it belongs
42834         echo "$GTKPRINT_PKG_ERRORS" >&5
42835
42836
42837                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42838 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42839                         wxUSE_GTKPRINT="no"
42840
42841
42842 elif test $pkg_failed = untried; then
42843
42844                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
42845 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
42846                         wxUSE_GTKPRINT="no"
42847
42848
42849 else
42850         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
42851         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
42852         { echo "$as_me:$LINENO: result: yes" >&5
42853 echo "${ECHO_T}yes" >&6; }
42854
42855                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
42856                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
42857                         cat >>confdefs.h <<\_ACEOF
42858 #define wxUSE_GTKPRINT 1
42859 _ACEOF
42860
42861
42862 fi
42863         fi
42864
42865         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42866
42867
42868 pkg_failed=no
42869 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42870 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
42871
42872 if test -n "$PKG_CONFIG"; then
42873     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42874         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42875     else
42876         if test -n "$PKG_CONFIG" && \
42877     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42878   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42879   ac_status=$?
42880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881   (exit $ac_status); }; then
42882   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42883 else
42884   pkg_failed=yes
42885 fi
42886     fi
42887 else
42888         pkg_failed=untried
42889 fi
42890 if test -n "$PKG_CONFIG"; then
42891     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42892         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42893     else
42894         if test -n "$PKG_CONFIG" && \
42895     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42896   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42897   ac_status=$?
42898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42899   (exit $ac_status); }; then
42900   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
42901 else
42902   pkg_failed=yes
42903 fi
42904     fi
42905 else
42906         pkg_failed=untried
42907 fi
42908
42909
42910
42911 if test $pkg_failed = yes; then
42912
42913 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42914         _pkg_short_errors_supported=yes
42915 else
42916         _pkg_short_errors_supported=no
42917 fi
42918         if test $_pkg_short_errors_supported = yes; then
42919                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42920         else
42921                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42922         fi
42923         # Put the nasty error message in config.log where it belongs
42924         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
42925
42926
42927                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42928 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42929                         wxUSE_LIBGNOMEPRINT="no"
42930
42931
42932 elif test $pkg_failed = untried; then
42933
42934                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42935 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42936                         wxUSE_LIBGNOMEPRINT="no"
42937
42938
42939 else
42940         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42941         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42942         { echo "$as_me:$LINENO: result: yes" >&5
42943 echo "${ECHO_T}yes" >&6; }
42944
42945                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
42946                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42947                         cat >>confdefs.h <<\_ACEOF
42948 #define wxUSE_LIBGNOMEPRINT 1
42949 _ACEOF
42950
42951
42952 fi
42953         fi
42954     fi
42955
42956     if test "$wxUSE_MIMETYPE" = "yes" ; then
42957         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42958
42959
42960 pkg_failed=no
42961 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42962 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
42963
42964 if test -n "$PKG_CONFIG"; then
42965     if test -n "$GNOMEVFS_CFLAGS"; then
42966         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42967     else
42968         if test -n "$PKG_CONFIG" && \
42969     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42970   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42971   ac_status=$?
42972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42973   (exit $ac_status); }; then
42974   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42975 else
42976   pkg_failed=yes
42977 fi
42978     fi
42979 else
42980         pkg_failed=untried
42981 fi
42982 if test -n "$PKG_CONFIG"; then
42983     if test -n "$GNOMEVFS_LIBS"; then
42984         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42985     else
42986         if test -n "$PKG_CONFIG" && \
42987     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42988   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42989   ac_status=$?
42990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42991   (exit $ac_status); }; then
42992   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
42993 else
42994   pkg_failed=yes
42995 fi
42996     fi
42997 else
42998         pkg_failed=untried
42999 fi
43000
43001
43002
43003 if test $pkg_failed = yes; then
43004
43005 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43006         _pkg_short_errors_supported=yes
43007 else
43008         _pkg_short_errors_supported=no
43009 fi
43010         if test $_pkg_short_errors_supported = yes; then
43011                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43012         else
43013                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
43014         fi
43015         # Put the nasty error message in config.log where it belongs
43016         echo "$GNOMEVFS_PKG_ERRORS" >&5
43017
43018
43019                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43020 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43021                         wxUSE_LIBGNOMEVFS="no"
43022
43023
43024 elif test $pkg_failed = untried; then
43025
43026                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
43027 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
43028                         wxUSE_LIBGNOMEVFS="no"
43029
43030
43031 else
43032         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
43033         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
43034         { echo "$as_me:$LINENO: result: yes" >&5
43035 echo "${ECHO_T}yes" >&6; }
43036
43037                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
43038                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
43039                         cat >>confdefs.h <<\_ACEOF
43040 #define wxUSE_LIBGNOMEVFS 1
43041 _ACEOF
43042
43043
43044 fi
43045         fi
43046     fi
43047
43048     if test "$wxUSE_LIBHILDON" = "yes" ; then
43049
43050 pkg_failed=no
43051 { echo "$as_me:$LINENO: checking for HILDON" >&5
43052 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
43053
43054 if test -n "$PKG_CONFIG"; then
43055     if test -n "$HILDON_CFLAGS"; then
43056         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
43057     else
43058         if test -n "$PKG_CONFIG" && \
43059     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43060   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43061   ac_status=$?
43062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43063   (exit $ac_status); }; then
43064   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
43065 else
43066   pkg_failed=yes
43067 fi
43068     fi
43069 else
43070         pkg_failed=untried
43071 fi
43072 if test -n "$PKG_CONFIG"; then
43073     if test -n "$HILDON_LIBS"; then
43074         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
43075     else
43076         if test -n "$PKG_CONFIG" && \
43077     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
43078   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
43079   ac_status=$?
43080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43081   (exit $ac_status); }; then
43082   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
43083 else
43084   pkg_failed=yes
43085 fi
43086     fi
43087 else
43088         pkg_failed=untried
43089 fi
43090
43091
43092
43093 if test $pkg_failed = yes; then
43094
43095 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
43096         _pkg_short_errors_supported=yes
43097 else
43098         _pkg_short_errors_supported=no
43099 fi
43100         if test $_pkg_short_errors_supported = yes; then
43101                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43102         else
43103                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
43104         fi
43105         # Put the nasty error message in config.log where it belongs
43106         echo "$HILDON_PKG_ERRORS" >&5
43107
43108
43109                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43110 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43111                         wxUSE_LIBHILDON="no"
43112
43113
43114 elif test $pkg_failed = untried; then
43115
43116                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
43117 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
43118                         wxUSE_LIBHILDON="no"
43119
43120
43121 else
43122         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
43123         HILDON_LIBS=$pkg_cv_HILDON_LIBS
43124         { echo "$as_me:$LINENO: result: yes" >&5
43125 echo "${ECHO_T}yes" >&6; }
43126
43127                 EXTRALIBS_HILDON="$HILDON_LIBS"
43128                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
43129                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
43130                 cat >>confdefs.h <<\_ACEOF
43131 #define wxUSE_LIBHILDON 1
43132 _ACEOF
43133
43134
43135 fi
43136     fi
43137 fi
43138
43139 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
43140   cat >>confdefs.h <<\_ACEOF
43141 #define wxUSE_CMDLINE_PARSER 1
43142 _ACEOF
43143
43144 fi
43145
43146 if test "$wxUSE_STOPWATCH" = "yes"; then
43147   cat >>confdefs.h <<\_ACEOF
43148 #define wxUSE_STOPWATCH 1
43149 _ACEOF
43150
43151 fi
43152
43153 if test "$wxUSE_DATETIME" = "yes"; then
43154   cat >>confdefs.h <<\_ACEOF
43155 #define wxUSE_DATETIME 1
43156 _ACEOF
43157
43158 fi
43159
43160 if test "$wxUSE_FILE" = "yes"; then
43161   cat >>confdefs.h <<\_ACEOF
43162 #define wxUSE_FILE 1
43163 _ACEOF
43164
43165 fi
43166
43167 if test "$wxUSE_FFILE" = "yes"; then
43168   cat >>confdefs.h <<\_ACEOF
43169 #define wxUSE_FFILE 1
43170 _ACEOF
43171
43172 fi
43173
43174 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
43175   if test "$wxUSE_STREAMS" != yes; then
43176     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
43177 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
43178     wxUSE_ARCHIVE_STREAMS=no
43179   else
43180     cat >>confdefs.h <<\_ACEOF
43181 #define wxUSE_ARCHIVE_STREAMS 1
43182 _ACEOF
43183
43184   fi
43185 fi
43186
43187 if test "$wxUSE_ZIPSTREAM" = "yes"; then
43188   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43189     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43190 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43191   elif test "$wxUSE_ZLIB" = "no"; then
43192     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43193 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43194   else
43195     cat >>confdefs.h <<\_ACEOF
43196 #define wxUSE_ZIPSTREAM 1
43197 _ACEOF
43198
43199   fi
43200 fi
43201
43202 if test "$wxUSE_TARSTREAM" = "yes"; then
43203   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
43204     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
43205 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
43206   else
43207     cat >>confdefs.h <<\_ACEOF
43208 #define wxUSE_TARSTREAM 1
43209 _ACEOF
43210
43211   fi
43212 fi
43213
43214 if test "$wxUSE_FILESYSTEM" = "yes"; then
43215   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
43216     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
43217 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
43218     wxUSE_FILESYSTEM=no
43219   else
43220     cat >>confdefs.h <<\_ACEOF
43221 #define wxUSE_FILESYSTEM 1
43222 _ACEOF
43223
43224   fi
43225 fi
43226
43227 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
43228   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
43229     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
43230 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
43231   else
43232     cat >>confdefs.h <<\_ACEOF
43233 #define wxUSE_FS_ARCHIVE 1
43234 _ACEOF
43235
43236   fi
43237 fi
43238
43239 if test "$wxUSE_FS_ZIP" = "yes"; then
43240   if test "$wxUSE_FS_ARCHIVE" != yes; then
43241     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
43242 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
43243   else
43244     cat >>confdefs.h <<\_ACEOF
43245 #define wxUSE_FS_ZIP 1
43246 _ACEOF
43247
43248   fi
43249 fi
43250
43251 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43252   if test "$USE_UNIX" != 1; then
43253     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43254 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43255     wxUSE_ON_FATAL_EXCEPTION=no
43256   else
43257     cat >>confdefs.h <<\_ACEOF
43258 #define wxUSE_ON_FATAL_EXCEPTION 1
43259 _ACEOF
43260
43261   fi
43262 fi
43263
43264 if test "$wxUSE_STACKWALKER" = "yes"; then
43265     cat >>confdefs.h <<\_ACEOF
43266 #define wxUSE_STACKWALKER 1
43267 _ACEOF
43268
43269 fi
43270
43271 if test "$wxUSE_DEBUGREPORT" = "yes"; then
43272     if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then
43273         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43274 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
43275         wxUSE_DEBUGREPORT=no
43276     else
43277         cat >>confdefs.h <<\_ACEOF
43278 #define wxUSE_DEBUGREPORT 1
43279 _ACEOF
43280
43281         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43282             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43283         fi
43284     fi
43285 fi
43286
43287 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43288   cat >>confdefs.h <<\_ACEOF
43289 #define wxUSE_SNGLINST_CHECKER 1
43290 _ACEOF
43291
43292 fi
43293
43294 if test "$wxUSE_BUSYINFO" = "yes"; then
43295   cat >>confdefs.h <<\_ACEOF
43296 #define wxUSE_BUSYINFO 1
43297 _ACEOF
43298
43299 fi
43300
43301 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43302   cat >>confdefs.h <<\_ACEOF
43303 #define wxUSE_STD_IOSTREAM 1
43304 _ACEOF
43305
43306 fi
43307
43308 if test "$wxUSE_STD_STRING" = "yes"; then
43309   cat >>confdefs.h <<\_ACEOF
43310 #define wxUSE_STD_STRING 1
43311 _ACEOF
43312
43313 fi
43314
43315 if test "$wxUSE_STDPATHS" = "yes"; then
43316   cat >>confdefs.h <<\_ACEOF
43317 #define wxUSE_STDPATHS 1
43318 _ACEOF
43319
43320 fi
43321
43322 if test "$wxUSE_TEXTBUFFER" = "yes"; then
43323     cat >>confdefs.h <<\_ACEOF
43324 #define wxUSE_TEXTBUFFER 1
43325 _ACEOF
43326
43327 fi
43328
43329 if test "$wxUSE_TEXTFILE" = "yes"; then
43330   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43331     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43332 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43333   else
43334     cat >>confdefs.h <<\_ACEOF
43335 #define wxUSE_TEXTFILE 1
43336 _ACEOF
43337
43338   fi
43339 fi
43340
43341 if test "$wxUSE_CONFIG" = "yes" ; then
43342   if test "$wxUSE_TEXTFILE" != "yes"; then
43343     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43344 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43345   else
43346     cat >>confdefs.h <<\_ACEOF
43347 #define wxUSE_CONFIG 1
43348 _ACEOF
43349
43350     cat >>confdefs.h <<\_ACEOF
43351 #define wxUSE_CONFIG_NATIVE 1
43352 _ACEOF
43353
43354     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43355   fi
43356 fi
43357
43358 if test "$wxUSE_INTL" = "yes" ; then
43359   if test "$wxUSE_FILE" != "yes"; then
43360     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43361 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43362   else
43363     cat >>confdefs.h <<\_ACEOF
43364 #define wxUSE_INTL 1
43365 _ACEOF
43366
43367     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43368     GUIDIST="$GUIDIST INTL_DIST"
43369   fi
43370 fi
43371
43372 if test "$wxUSE_XLOCALE" = "yes" ; then
43373     cat >>confdefs.h <<\_ACEOF
43374 #define wxUSE_XLOCALE 1
43375 _ACEOF
43376
43377     { echo "$as_me:$LINENO: checking for locale_t" >&5
43378 echo $ECHO_N "checking for locale_t... $ECHO_C" >&6; }
43379 if test "${ac_cv_type_locale_t+set}" = set; then
43380   echo $ECHO_N "(cached) $ECHO_C" >&6
43381 else
43382   cat >conftest.$ac_ext <<_ACEOF
43383 /* confdefs.h.  */
43384 _ACEOF
43385 cat confdefs.h >>conftest.$ac_ext
43386 cat >>conftest.$ac_ext <<_ACEOF
43387 /* end confdefs.h.  */
43388 #include <xlocale.h>
43389                     #include <locale.h>
43390
43391 typedef locale_t ac__type_new_;
43392 int
43393 main ()
43394 {
43395 if ((ac__type_new_ *) 0)
43396   return 0;
43397 if (sizeof (ac__type_new_))
43398   return 0;
43399   ;
43400   return 0;
43401 }
43402 _ACEOF
43403 rm -f conftest.$ac_objext
43404 if { (ac_try="$ac_compile"
43405 case "(($ac_try" in
43406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43407   *) ac_try_echo=$ac_try;;
43408 esac
43409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43410   (eval "$ac_compile") 2>conftest.er1
43411   ac_status=$?
43412   grep -v '^ *+' conftest.er1 >conftest.err
43413   rm -f conftest.er1
43414   cat conftest.err >&5
43415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43416   (exit $ac_status); } && {
43417          test -z "$ac_c_werror_flag" ||
43418          test ! -s conftest.err
43419        } && test -s conftest.$ac_objext; then
43420   ac_cv_type_locale_t=yes
43421 else
43422   echo "$as_me: failed program was:" >&5
43423 sed 's/^/| /' conftest.$ac_ext >&5
43424
43425         ac_cv_type_locale_t=no
43426 fi
43427
43428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43429 fi
43430 { echo "$as_me:$LINENO: result: $ac_cv_type_locale_t" >&5
43431 echo "${ECHO_T}$ac_cv_type_locale_t" >&6; }
43432 if test $ac_cv_type_locale_t = yes; then
43433
43434 cat >>confdefs.h <<_ACEOF
43435 #define HAVE_LOCALE_T 1
43436 _ACEOF
43437
43438
43439 fi
43440
43441 fi
43442
43443 if test "$wxUSE_LOG" = "yes"; then
43444   cat >>confdefs.h <<\_ACEOF
43445 #define wxUSE_LOG 1
43446 _ACEOF
43447
43448
43449     if test "$wxUSE_LOGGUI" = "yes"; then
43450       cat >>confdefs.h <<\_ACEOF
43451 #define wxUSE_LOGGUI 1
43452 _ACEOF
43453
43454     fi
43455
43456     if test "$wxUSE_LOGWINDOW" = "yes"; then
43457       cat >>confdefs.h <<\_ACEOF
43458 #define wxUSE_LOGWINDOW 1
43459 _ACEOF
43460
43461     fi
43462
43463     if test "$wxUSE_LOGDIALOG" = "yes"; then
43464       cat >>confdefs.h <<\_ACEOF
43465 #define wxUSE_LOG_DIALOG 1
43466 _ACEOF
43467
43468     fi
43469
43470         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
43471 fi
43472
43473 if test "$wxUSE_LONGLONG" = "yes"; then
43474   cat >>confdefs.h <<\_ACEOF
43475 #define wxUSE_LONGLONG 1
43476 _ACEOF
43477
43478 fi
43479
43480 if test "$wxUSE_GEOMETRY" = "yes"; then
43481   cat >>confdefs.h <<\_ACEOF
43482 #define wxUSE_GEOMETRY 1
43483 _ACEOF
43484
43485 fi
43486
43487 if test "$wxUSE_BASE64" = "yes"; then
43488   cat >>confdefs.h <<\_ACEOF
43489 #define wxUSE_BASE64 1
43490 _ACEOF
43491
43492 fi
43493
43494 if test "$wxUSE_STREAMS" = "yes" ; then
43495   cat >>confdefs.h <<\_ACEOF
43496 #define wxUSE_STREAMS 1
43497 _ACEOF
43498
43499 fi
43500
43501 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43502   cat >>confdefs.h <<\_ACEOF
43503 #define wxUSE_PRINTF_POS_PARAMS 1
43504 _ACEOF
43505
43506 fi
43507
43508 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
43509   cat >>confdefs.h <<\_ACEOF
43510 #define wxUSE_OBJC_UNIQUIFYING 1
43511 _ACEOF
43512
43513 fi
43514
43515
43516 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
43517     cat >>confdefs.h <<\_ACEOF
43518 #define wxUSE_CONSOLE_EVENTLOOP 1
43519 _ACEOF
43520
43521
43522     if test "$wxUSE_UNIX" = "yes"; then
43523         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
43524             cat >>confdefs.h <<\_ACEOF
43525 #define wxUSE_SELECT_DISPATCHER 1
43526 _ACEOF
43527
43528         fi
43529
43530         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
43531
43532 for ac_header in sys/epoll.h
43533 do
43534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43538   echo $ECHO_N "(cached) $ECHO_C" >&6
43539 else
43540   cat >conftest.$ac_ext <<_ACEOF
43541 /* confdefs.h.  */
43542 _ACEOF
43543 cat confdefs.h >>conftest.$ac_ext
43544 cat >>conftest.$ac_ext <<_ACEOF
43545 /* end confdefs.h.  */
43546 $ac_includes_default
43547
43548 #include <$ac_header>
43549 _ACEOF
43550 rm -f conftest.$ac_objext
43551 if { (ac_try="$ac_compile"
43552 case "(($ac_try" in
43553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43554   *) ac_try_echo=$ac_try;;
43555 esac
43556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43557   (eval "$ac_compile") 2>conftest.er1
43558   ac_status=$?
43559   grep -v '^ *+' conftest.er1 >conftest.err
43560   rm -f conftest.er1
43561   cat conftest.err >&5
43562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43563   (exit $ac_status); } && {
43564          test -z "$ac_c_werror_flag" ||
43565          test ! -s conftest.err
43566        } && test -s conftest.$ac_objext; then
43567   eval "$as_ac_Header=yes"
43568 else
43569   echo "$as_me: failed program was:" >&5
43570 sed 's/^/| /' conftest.$ac_ext >&5
43571
43572         eval "$as_ac_Header=no"
43573 fi
43574
43575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43576 fi
43577 ac_res=`eval echo '${'$as_ac_Header'}'`
43578                { echo "$as_me:$LINENO: result: $ac_res" >&5
43579 echo "${ECHO_T}$ac_res" >&6; }
43580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43581   cat >>confdefs.h <<_ACEOF
43582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43583 _ACEOF
43584
43585 fi
43586
43587 done
43588
43589             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
43590                 cat >>confdefs.h <<\_ACEOF
43591 #define wxUSE_EPOLL_DISPATCHER 1
43592 _ACEOF
43593
43594             else
43595                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
43596 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
43597             fi
43598         fi
43599     fi
43600 fi
43601
43602
43603
43604
43605 for ac_func in gettimeofday ftime
43606 do
43607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43611   echo $ECHO_N "(cached) $ECHO_C" >&6
43612 else
43613   cat >conftest.$ac_ext <<_ACEOF
43614 /* confdefs.h.  */
43615 _ACEOF
43616 cat confdefs.h >>conftest.$ac_ext
43617 cat >>conftest.$ac_ext <<_ACEOF
43618 /* end confdefs.h.  */
43619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43621 #define $ac_func innocuous_$ac_func
43622
43623 /* System header to define __stub macros and hopefully few prototypes,
43624     which can conflict with char $ac_func (); below.
43625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43626     <limits.h> exists even on freestanding compilers.  */
43627
43628 #ifdef __STDC__
43629 # include <limits.h>
43630 #else
43631 # include <assert.h>
43632 #endif
43633
43634 #undef $ac_func
43635
43636 /* Override any GCC internal prototype to avoid an error.
43637    Use char because int might match the return type of a GCC
43638    builtin and then its argument prototype would still apply.  */
43639 #ifdef __cplusplus
43640 extern "C"
43641 #endif
43642 char $ac_func ();
43643 /* The GNU C library defines this for functions which it implements
43644     to always fail with ENOSYS.  Some functions are actually named
43645     something starting with __ and the normal name is an alias.  */
43646 #if defined __stub_$ac_func || defined __stub___$ac_func
43647 choke me
43648 #endif
43649
43650 int
43651 main ()
43652 {
43653 return $ac_func ();
43654   ;
43655   return 0;
43656 }
43657 _ACEOF
43658 rm -f conftest.$ac_objext conftest$ac_exeext
43659 if { (ac_try="$ac_link"
43660 case "(($ac_try" in
43661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43662   *) ac_try_echo=$ac_try;;
43663 esac
43664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43665   (eval "$ac_link") 2>conftest.er1
43666   ac_status=$?
43667   grep -v '^ *+' conftest.er1 >conftest.err
43668   rm -f conftest.er1
43669   cat conftest.err >&5
43670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43671   (exit $ac_status); } && {
43672          test -z "$ac_c_werror_flag" ||
43673          test ! -s conftest.err
43674        } && test -s conftest$ac_exeext &&
43675        $as_test_x conftest$ac_exeext; then
43676   eval "$as_ac_var=yes"
43677 else
43678   echo "$as_me: failed program was:" >&5
43679 sed 's/^/| /' conftest.$ac_ext >&5
43680
43681         eval "$as_ac_var=no"
43682 fi
43683
43684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43685       conftest$ac_exeext conftest.$ac_ext
43686 fi
43687 ac_res=`eval echo '${'$as_ac_var'}'`
43688                { echo "$as_me:$LINENO: result: $ac_res" >&5
43689 echo "${ECHO_T}$ac_res" >&6; }
43690 if test `eval echo '${'$as_ac_var'}'` = yes; then
43691   cat >>confdefs.h <<_ACEOF
43692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43693 _ACEOF
43694  break
43695 fi
43696 done
43697
43698
43699 if test "$ac_cv_func_gettimeofday" = "yes"; then
43700     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43701 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
43702 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43703   echo $ECHO_N "(cached) $ECHO_C" >&6
43704 else
43705
43706                 cat >conftest.$ac_ext <<_ACEOF
43707 /* confdefs.h.  */
43708 _ACEOF
43709 cat confdefs.h >>conftest.$ac_ext
43710 cat >>conftest.$ac_ext <<_ACEOF
43711 /* end confdefs.h.  */
43712
43713                 #include <sys/time.h>
43714                 #include <unistd.h>
43715
43716 int
43717 main ()
43718 {
43719
43720                 struct timeval tv;
43721                 gettimeofday(&tv, NULL);
43722
43723   ;
43724   return 0;
43725 }
43726 _ACEOF
43727 rm -f conftest.$ac_objext
43728 if { (ac_try="$ac_compile"
43729 case "(($ac_try" in
43730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43731   *) ac_try_echo=$ac_try;;
43732 esac
43733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43734   (eval "$ac_compile") 2>conftest.er1
43735   ac_status=$?
43736   grep -v '^ *+' conftest.er1 >conftest.err
43737   rm -f conftest.er1
43738   cat conftest.err >&5
43739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43740   (exit $ac_status); } && {
43741          test -z "$ac_c_werror_flag" ||
43742          test ! -s conftest.err
43743        } && test -s conftest.$ac_objext; then
43744   wx_cv_func_gettimeofday_has_2_args=yes
43745 else
43746   echo "$as_me: failed program was:" >&5
43747 sed 's/^/| /' conftest.$ac_ext >&5
43748
43749         cat >conftest.$ac_ext <<_ACEOF
43750 /* confdefs.h.  */
43751 _ACEOF
43752 cat confdefs.h >>conftest.$ac_ext
43753 cat >>conftest.$ac_ext <<_ACEOF
43754 /* end confdefs.h.  */
43755
43756                     #include <sys/time.h>
43757                     #include <unistd.h>
43758
43759 int
43760 main ()
43761 {
43762
43763                     struct timeval tv;
43764                     gettimeofday(&tv);
43765
43766   ;
43767   return 0;
43768 }
43769 _ACEOF
43770 rm -f conftest.$ac_objext
43771 if { (ac_try="$ac_compile"
43772 case "(($ac_try" in
43773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43774   *) ac_try_echo=$ac_try;;
43775 esac
43776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43777   (eval "$ac_compile") 2>conftest.er1
43778   ac_status=$?
43779   grep -v '^ *+' conftest.er1 >conftest.err
43780   rm -f conftest.er1
43781   cat conftest.err >&5
43782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43783   (exit $ac_status); } && {
43784          test -z "$ac_c_werror_flag" ||
43785          test ! -s conftest.err
43786        } && test -s conftest.$ac_objext; then
43787   wx_cv_func_gettimeofday_has_2_args=no
43788 else
43789   echo "$as_me: failed program was:" >&5
43790 sed 's/^/| /' conftest.$ac_ext >&5
43791
43792
43793                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43794 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43795                     wx_cv_func_gettimeofday_has_2_args=unknown
43796
43797
43798 fi
43799
43800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43801
43802 fi
43803
43804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43805
43806 fi
43807 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43808 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
43809
43810     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43811         cat >>confdefs.h <<\_ACEOF
43812 #define WX_GETTIMEOFDAY_NO_TZ 1
43813 _ACEOF
43814
43815     fi
43816 fi
43817
43818 if test "$wxUSE_DATETIME" = "yes"; then
43819         { echo "$as_me:$LINENO: checking for strptime" >&5
43820 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
43821 if test "${ac_cv_func_strptime+set}" = set; then
43822   echo $ECHO_N "(cached) $ECHO_C" >&6
43823 else
43824   cat >conftest.$ac_ext <<_ACEOF
43825 /* confdefs.h.  */
43826 _ACEOF
43827 cat confdefs.h >>conftest.$ac_ext
43828 cat >>conftest.$ac_ext <<_ACEOF
43829 /* end confdefs.h.  */
43830 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
43831    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43832 #define strptime innocuous_strptime
43833
43834 /* System header to define __stub macros and hopefully few prototypes,
43835     which can conflict with char strptime (); below.
43836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43837     <limits.h> exists even on freestanding compilers.  */
43838
43839 #ifdef __STDC__
43840 # include <limits.h>
43841 #else
43842 # include <assert.h>
43843 #endif
43844
43845 #undef strptime
43846
43847 /* Override any GCC internal prototype to avoid an error.
43848    Use char because int might match the return type of a GCC
43849    builtin and then its argument prototype would still apply.  */
43850 #ifdef __cplusplus
43851 extern "C"
43852 #endif
43853 char strptime ();
43854 /* The GNU C library defines this for functions which it implements
43855     to always fail with ENOSYS.  Some functions are actually named
43856     something starting with __ and the normal name is an alias.  */
43857 #if defined __stub_strptime || defined __stub___strptime
43858 choke me
43859 #endif
43860
43861 int
43862 main ()
43863 {
43864 return strptime ();
43865   ;
43866   return 0;
43867 }
43868 _ACEOF
43869 rm -f conftest.$ac_objext conftest$ac_exeext
43870 if { (ac_try="$ac_link"
43871 case "(($ac_try" in
43872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43873   *) ac_try_echo=$ac_try;;
43874 esac
43875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43876   (eval "$ac_link") 2>conftest.er1
43877   ac_status=$?
43878   grep -v '^ *+' conftest.er1 >conftest.err
43879   rm -f conftest.er1
43880   cat conftest.err >&5
43881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43882   (exit $ac_status); } && {
43883          test -z "$ac_c_werror_flag" ||
43884          test ! -s conftest.err
43885        } && test -s conftest$ac_exeext &&
43886        $as_test_x conftest$ac_exeext; then
43887   ac_cv_func_strptime=yes
43888 else
43889   echo "$as_me: failed program was:" >&5
43890 sed 's/^/| /' conftest.$ac_ext >&5
43891
43892         ac_cv_func_strptime=no
43893 fi
43894
43895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43896       conftest$ac_exeext conftest.$ac_ext
43897 fi
43898 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
43899 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
43900
43901     if test "$ac_cv_func_strptime" = "yes"; then
43902         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
43903 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
43904 if test "${wx_cv_func_strptime_decl+set}" = set; then
43905   echo $ECHO_N "(cached) $ECHO_C" >&6
43906 else
43907
43908                 ac_ext=cpp
43909 ac_cpp='$CXXCPP $CPPFLAGS'
43910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43913
43914                 cat >conftest.$ac_ext <<_ACEOF
43915 /* confdefs.h.  */
43916 _ACEOF
43917 cat confdefs.h >>conftest.$ac_ext
43918 cat >>conftest.$ac_ext <<_ACEOF
43919 /* end confdefs.h.  */
43920
43921                         #include <time.h>
43922
43923 int
43924 main ()
43925 {
43926
43927                         struct tm t;
43928                         strptime("foo", "bar", &t);
43929
43930   ;
43931   return 0;
43932 }
43933 _ACEOF
43934 rm -f conftest.$ac_objext
43935 if { (ac_try="$ac_compile"
43936 case "(($ac_try" in
43937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43938   *) ac_try_echo=$ac_try;;
43939 esac
43940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43941   (eval "$ac_compile") 2>conftest.er1
43942   ac_status=$?
43943   grep -v '^ *+' conftest.er1 >conftest.err
43944   rm -f conftest.er1
43945   cat conftest.err >&5
43946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43947   (exit $ac_status); } && {
43948          test -z "$ac_cxx_werror_flag" ||
43949          test ! -s conftest.err
43950        } && test -s conftest.$ac_objext; then
43951   wx_cv_func_strptime_decl=yes
43952 else
43953   echo "$as_me: failed program was:" >&5
43954 sed 's/^/| /' conftest.$ac_ext >&5
43955
43956         wx_cv_func_strptime_decl=no
43957
43958 fi
43959
43960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43961                 ac_ext=c
43962 ac_cpp='$CPP $CPPFLAGS'
43963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43966
43967
43968
43969 fi
43970 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43971 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
43972     fi
43973     if test "$wx_cv_func_strptime_decl" = "yes"; then
43974         cat >>confdefs.h <<\_ACEOF
43975 #define HAVE_STRPTIME_DECL 1
43976 _ACEOF
43977
43978     else
43979         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
43980     fi
43981     if test "$ac_cv_func_strptime" = "yes"; then
43982                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
43983 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
43984 if test "${wx_cv_func_strptime_ok+set}" = set; then
43985   echo $ECHO_N "(cached) $ECHO_C" >&6
43986 else
43987   if test "$cross_compiling" = yes; then
43988                   wx_cv_func_strptime_ok=no
43989
43990 else
43991   cat >conftest.$ac_ext <<_ACEOF
43992
43993                     #include <stdlib.h>
43994                     #include <time.h>
43995                     #include "confdefs.h"
43996
43997                     $wx_strptime_decl
43998
43999                     int main()
44000                     {
44001                         struct tm t;
44002                         return !!strptime("", "%x", &t);
44003                     }
44004
44005 _ACEOF
44006 rm -f conftest$ac_exeext
44007 if { (ac_try="$ac_link"
44008 case "(($ac_try" in
44009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44010   *) ac_try_echo=$ac_try;;
44011 esac
44012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44013   (eval "$ac_link") 2>&5
44014   ac_status=$?
44015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44017   { (case "(($ac_try" in
44018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44019   *) ac_try_echo=$ac_try;;
44020 esac
44021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44022   (eval "$ac_try") 2>&5
44023   ac_status=$?
44024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44025   (exit $ac_status); }; }; then
44026   wx_cv_func_strptime_ok=yes
44027 else
44028   echo "$as_me: program exited with status $ac_status" >&5
44029 echo "$as_me: failed program was:" >&5
44030 sed 's/^/| /' conftest.$ac_ext >&5
44031
44032 ( exit $ac_status )
44033 wx_cv_func_strptime_ok=no
44034 fi
44035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44036 fi
44037
44038
44039
44040 fi
44041 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
44042 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
44043
44044         if test "$wx_cv_func_strptime_ok" = "yes"; then
44045             cat >>confdefs.h <<\_ACEOF
44046 #define HAVE_STRPTIME 1
44047 _ACEOF
44048
44049         fi
44050     fi
44051
44052             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
44053 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
44054 if test "${wx_cv_var_timezone+set}" = set; then
44055   echo $ECHO_N "(cached) $ECHO_C" >&6
44056 else
44057
44058                         ac_ext=cpp
44059 ac_cpp='$CXXCPP $CPPFLAGS'
44060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44063
44064                         cat >conftest.$ac_ext <<_ACEOF
44065 /* confdefs.h.  */
44066 _ACEOF
44067 cat confdefs.h >>conftest.$ac_ext
44068 cat >>conftest.$ac_ext <<_ACEOF
44069 /* end confdefs.h.  */
44070
44071                                 #include <time.h>
44072
44073 int
44074 main ()
44075 {
44076
44077                                 int tz;
44078                                 tz = timezone;
44079
44080   ;
44081   return 0;
44082 }
44083 _ACEOF
44084 rm -f conftest.$ac_objext
44085 if { (ac_try="$ac_compile"
44086 case "(($ac_try" in
44087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44088   *) ac_try_echo=$ac_try;;
44089 esac
44090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44091   (eval "$ac_compile") 2>conftest.er1
44092   ac_status=$?
44093   grep -v '^ *+' conftest.er1 >conftest.err
44094   rm -f conftest.er1
44095   cat conftest.err >&5
44096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44097   (exit $ac_status); } && {
44098          test -z "$ac_cxx_werror_flag" ||
44099          test ! -s conftest.err
44100        } && test -s conftest.$ac_objext; then
44101
44102                                 wx_cv_var_timezone=timezone
44103
44104 else
44105   echo "$as_me: failed program was:" >&5
44106 sed 's/^/| /' conftest.$ac_ext >&5
44107
44108
44109                                 cat >conftest.$ac_ext <<_ACEOF
44110 /* confdefs.h.  */
44111 _ACEOF
44112 cat confdefs.h >>conftest.$ac_ext
44113 cat >>conftest.$ac_ext <<_ACEOF
44114 /* end confdefs.h.  */
44115
44116                                         #include <time.h>
44117
44118 int
44119 main ()
44120 {
44121
44122                                         int tz;
44123                                         tz = _timezone;
44124
44125   ;
44126   return 0;
44127 }
44128 _ACEOF
44129 rm -f conftest.$ac_objext
44130 if { (ac_try="$ac_compile"
44131 case "(($ac_try" in
44132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44133   *) ac_try_echo=$ac_try;;
44134 esac
44135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44136   (eval "$ac_compile") 2>conftest.er1
44137   ac_status=$?
44138   grep -v '^ *+' conftest.er1 >conftest.err
44139   rm -f conftest.er1
44140   cat conftest.err >&5
44141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44142   (exit $ac_status); } && {
44143          test -z "$ac_cxx_werror_flag" ||
44144          test ! -s conftest.err
44145        } && test -s conftest.$ac_objext; then
44146
44147                                         wx_cv_var_timezone=_timezone
44148
44149 else
44150   echo "$as_me: failed program was:" >&5
44151 sed 's/^/| /' conftest.$ac_ext >&5
44152
44153
44154                                         cat >conftest.$ac_ext <<_ACEOF
44155 /* confdefs.h.  */
44156 _ACEOF
44157 cat confdefs.h >>conftest.$ac_ext
44158 cat >>conftest.$ac_ext <<_ACEOF
44159 /* end confdefs.h.  */
44160
44161                                                 #include <time.h>
44162
44163 int
44164 main ()
44165 {
44166
44167                                                 int tz;
44168                                                 tz = __timezone;
44169
44170   ;
44171   return 0;
44172 }
44173 _ACEOF
44174 rm -f conftest.$ac_objext
44175 if { (ac_try="$ac_compile"
44176 case "(($ac_try" in
44177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44178   *) ac_try_echo=$ac_try;;
44179 esac
44180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44181   (eval "$ac_compile") 2>conftest.er1
44182   ac_status=$?
44183   grep -v '^ *+' conftest.er1 >conftest.err
44184   rm -f conftest.er1
44185   cat conftest.err >&5
44186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44187   (exit $ac_status); } && {
44188          test -z "$ac_cxx_werror_flag" ||
44189          test ! -s conftest.err
44190        } && test -s conftest.$ac_objext; then
44191
44192                                                 wx_cv_var_timezone=__timezone
44193
44194 else
44195   echo "$as_me: failed program was:" >&5
44196 sed 's/^/| /' conftest.$ac_ext >&5
44197
44198
44199                                                 if test "$USE_DOS" = 0 ; then
44200                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
44201 echo "$as_me: WARNING: no timezone variable" >&2;}
44202                                                 fi
44203
44204
44205 fi
44206
44207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44208
44209
44210 fi
44211
44212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44213
44214
44215 fi
44216
44217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44218                         ac_ext=c
44219 ac_cpp='$CPP $CPPFLAGS'
44220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44223
44224
44225
44226 fi
44227 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
44228 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
44229
44230         if test "x$wx_cv_var_timezone" != x ; then
44231         cat >>confdefs.h <<_ACEOF
44232 #define WX_TIMEZONE $wx_cv_var_timezone
44233 _ACEOF
44234
44235     fi
44236
44237
44238 for ac_func in localtime
44239 do
44240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44244   echo $ECHO_N "(cached) $ECHO_C" >&6
44245 else
44246   cat >conftest.$ac_ext <<_ACEOF
44247 /* confdefs.h.  */
44248 _ACEOF
44249 cat confdefs.h >>conftest.$ac_ext
44250 cat >>conftest.$ac_ext <<_ACEOF
44251 /* end confdefs.h.  */
44252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44254 #define $ac_func innocuous_$ac_func
44255
44256 /* System header to define __stub macros and hopefully few prototypes,
44257     which can conflict with char $ac_func (); below.
44258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44259     <limits.h> exists even on freestanding compilers.  */
44260
44261 #ifdef __STDC__
44262 # include <limits.h>
44263 #else
44264 # include <assert.h>
44265 #endif
44266
44267 #undef $ac_func
44268
44269 /* Override any GCC internal prototype to avoid an error.
44270    Use char because int might match the return type of a GCC
44271    builtin and then its argument prototype would still apply.  */
44272 #ifdef __cplusplus
44273 extern "C"
44274 #endif
44275 char $ac_func ();
44276 /* The GNU C library defines this for functions which it implements
44277     to always fail with ENOSYS.  Some functions are actually named
44278     something starting with __ and the normal name is an alias.  */
44279 #if defined __stub_$ac_func || defined __stub___$ac_func
44280 choke me
44281 #endif
44282
44283 int
44284 main ()
44285 {
44286 return $ac_func ();
44287   ;
44288   return 0;
44289 }
44290 _ACEOF
44291 rm -f conftest.$ac_objext conftest$ac_exeext
44292 if { (ac_try="$ac_link"
44293 case "(($ac_try" in
44294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44295   *) ac_try_echo=$ac_try;;
44296 esac
44297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44298   (eval "$ac_link") 2>conftest.er1
44299   ac_status=$?
44300   grep -v '^ *+' conftest.er1 >conftest.err
44301   rm -f conftest.er1
44302   cat conftest.err >&5
44303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44304   (exit $ac_status); } && {
44305          test -z "$ac_c_werror_flag" ||
44306          test ! -s conftest.err
44307        } && test -s conftest$ac_exeext &&
44308        $as_test_x conftest$ac_exeext; then
44309   eval "$as_ac_var=yes"
44310 else
44311   echo "$as_me: failed program was:" >&5
44312 sed 's/^/| /' conftest.$ac_ext >&5
44313
44314         eval "$as_ac_var=no"
44315 fi
44316
44317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44318       conftest$ac_exeext conftest.$ac_ext
44319 fi
44320 ac_res=`eval echo '${'$as_ac_var'}'`
44321                { echo "$as_me:$LINENO: result: $ac_res" >&5
44322 echo "${ECHO_T}$ac_res" >&6; }
44323 if test `eval echo '${'$as_ac_var'}'` = yes; then
44324   cat >>confdefs.h <<_ACEOF
44325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44326 _ACEOF
44327
44328 fi
44329 done
44330
44331
44332     if test "$ac_cv_func_localtime" = "yes"; then
44333         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
44334 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
44335 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
44336   echo $ECHO_N "(cached) $ECHO_C" >&6
44337 else
44338
44339             cat >conftest.$ac_ext <<_ACEOF
44340 /* confdefs.h.  */
44341 _ACEOF
44342 cat confdefs.h >>conftest.$ac_ext
44343 cat >>conftest.$ac_ext <<_ACEOF
44344 /* end confdefs.h.  */
44345
44346                     #include <time.h>
44347
44348 int
44349 main ()
44350 {
44351
44352                     struct tm tm;
44353                     tm.tm_gmtoff++;
44354
44355   ;
44356   return 0;
44357 }
44358 _ACEOF
44359 rm -f conftest.$ac_objext
44360 if { (ac_try="$ac_compile"
44361 case "(($ac_try" in
44362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44363   *) ac_try_echo=$ac_try;;
44364 esac
44365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44366   (eval "$ac_compile") 2>conftest.er1
44367   ac_status=$?
44368   grep -v '^ *+' conftest.er1 >conftest.err
44369   rm -f conftest.er1
44370   cat conftest.err >&5
44371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44372   (exit $ac_status); } && {
44373          test -z "$ac_c_werror_flag" ||
44374          test ! -s conftest.err
44375        } && test -s conftest.$ac_objext; then
44376
44377                     wx_cv_struct_tm_has_gmtoff=yes
44378
44379 else
44380   echo "$as_me: failed program was:" >&5
44381 sed 's/^/| /' conftest.$ac_ext >&5
44382
44383         wx_cv_struct_tm_has_gmtoff=no
44384
44385 fi
44386
44387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44388
44389 fi
44390 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
44391 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
44392     fi
44393
44394     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
44395         cat >>confdefs.h <<\_ACEOF
44396 #define WX_GMTOFF_IN_TM 1
44397 _ACEOF
44398
44399     fi
44400
44401     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
44402 fi
44403
44404
44405 if test "$wxUSE_SOCKETS" = "yes"; then
44406     if test "$wxUSE_MGL" = 1; then
44407         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
44408 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
44409         wxUSE_SOCKETS="no"
44410     fi
44411 fi
44412
44413 if test "$wxUSE_SOCKETS" = "yes"; then
44414         if test "$TOOLKIT" != "MSW"; then
44415                 { echo "$as_me:$LINENO: checking for socket" >&5
44416 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
44417 if test "${ac_cv_func_socket+set}" = set; then
44418   echo $ECHO_N "(cached) $ECHO_C" >&6
44419 else
44420   cat >conftest.$ac_ext <<_ACEOF
44421 /* confdefs.h.  */
44422 _ACEOF
44423 cat confdefs.h >>conftest.$ac_ext
44424 cat >>conftest.$ac_ext <<_ACEOF
44425 /* end confdefs.h.  */
44426 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
44427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44428 #define socket innocuous_socket
44429
44430 /* System header to define __stub macros and hopefully few prototypes,
44431     which can conflict with char socket (); below.
44432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44433     <limits.h> exists even on freestanding compilers.  */
44434
44435 #ifdef __STDC__
44436 # include <limits.h>
44437 #else
44438 # include <assert.h>
44439 #endif
44440
44441 #undef socket
44442
44443 /* Override any GCC internal prototype to avoid an error.
44444    Use char because int might match the return type of a GCC
44445    builtin and then its argument prototype would still apply.  */
44446 #ifdef __cplusplus
44447 extern "C"
44448 #endif
44449 char socket ();
44450 /* The GNU C library defines this for functions which it implements
44451     to always fail with ENOSYS.  Some functions are actually named
44452     something starting with __ and the normal name is an alias.  */
44453 #if defined __stub_socket || defined __stub___socket
44454 choke me
44455 #endif
44456
44457 int
44458 main ()
44459 {
44460 return socket ();
44461   ;
44462   return 0;
44463 }
44464 _ACEOF
44465 rm -f conftest.$ac_objext conftest$ac_exeext
44466 if { (ac_try="$ac_link"
44467 case "(($ac_try" in
44468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44469   *) ac_try_echo=$ac_try;;
44470 esac
44471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44472   (eval "$ac_link") 2>conftest.er1
44473   ac_status=$?
44474   grep -v '^ *+' conftest.er1 >conftest.err
44475   rm -f conftest.er1
44476   cat conftest.err >&5
44477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44478   (exit $ac_status); } && {
44479          test -z "$ac_c_werror_flag" ||
44480          test ! -s conftest.err
44481        } && test -s conftest$ac_exeext &&
44482        $as_test_x conftest$ac_exeext; then
44483   ac_cv_func_socket=yes
44484 else
44485   echo "$as_me: failed program was:" >&5
44486 sed 's/^/| /' conftest.$ac_ext >&5
44487
44488         ac_cv_func_socket=no
44489 fi
44490
44491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44492       conftest$ac_exeext conftest.$ac_ext
44493 fi
44494 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44495 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
44496 if test $ac_cv_func_socket = yes; then
44497   :
44498 else
44499
44500                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44501 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
44502 if test "${ac_cv_lib_socket_socket+set}" = set; then
44503   echo $ECHO_N "(cached) $ECHO_C" >&6
44504 else
44505   ac_check_lib_save_LIBS=$LIBS
44506 LIBS="-lsocket  $LIBS"
44507 cat >conftest.$ac_ext <<_ACEOF
44508 /* confdefs.h.  */
44509 _ACEOF
44510 cat confdefs.h >>conftest.$ac_ext
44511 cat >>conftest.$ac_ext <<_ACEOF
44512 /* end confdefs.h.  */
44513
44514 /* Override any GCC internal prototype to avoid an error.
44515    Use char because int might match the return type of a GCC
44516    builtin and then its argument prototype would still apply.  */
44517 #ifdef __cplusplus
44518 extern "C"
44519 #endif
44520 char socket ();
44521 int
44522 main ()
44523 {
44524 return socket ();
44525   ;
44526   return 0;
44527 }
44528 _ACEOF
44529 rm -f conftest.$ac_objext conftest$ac_exeext
44530 if { (ac_try="$ac_link"
44531 case "(($ac_try" in
44532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44533   *) ac_try_echo=$ac_try;;
44534 esac
44535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44536   (eval "$ac_link") 2>conftest.er1
44537   ac_status=$?
44538   grep -v '^ *+' conftest.er1 >conftest.err
44539   rm -f conftest.er1
44540   cat conftest.err >&5
44541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44542   (exit $ac_status); } && {
44543          test -z "$ac_c_werror_flag" ||
44544          test ! -s conftest.err
44545        } && test -s conftest$ac_exeext &&
44546        $as_test_x conftest$ac_exeext; then
44547   ac_cv_lib_socket_socket=yes
44548 else
44549   echo "$as_me: failed program was:" >&5
44550 sed 's/^/| /' conftest.$ac_ext >&5
44551
44552         ac_cv_lib_socket_socket=no
44553 fi
44554
44555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44556       conftest$ac_exeext conftest.$ac_ext
44557 LIBS=$ac_check_lib_save_LIBS
44558 fi
44559 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44560 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
44561 if test $ac_cv_lib_socket_socket = yes; then
44562   if test "$INET_LINK" != " -lsocket"; then
44563                         INET_LINK="$INET_LINK -lsocket"
44564                     fi
44565 else
44566
44567                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44568 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44569                         wxUSE_SOCKETS=no
44570
44571
44572 fi
44573
44574
44575
44576 fi
44577
44578     fi
44579 fi
44580
44581 if test "$wxUSE_SOCKETS" = "yes" ; then
44582                 if test "$TOOLKIT" != "MSW"; then
44583                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
44584 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
44585 if test "${wx_cv_type_getsockname3+set}" = set; then
44586   echo $ECHO_N "(cached) $ECHO_C" >&6
44587 else
44588
44589                 ac_ext=cpp
44590 ac_cpp='$CXXCPP $CPPFLAGS'
44591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44594
44595                 cat >conftest.$ac_ext <<_ACEOF
44596 /* confdefs.h.  */
44597 _ACEOF
44598 cat confdefs.h >>conftest.$ac_ext
44599 cat >>conftest.$ac_ext <<_ACEOF
44600 /* end confdefs.h.  */
44601
44602                         #include <sys/types.h>
44603                         #include <sys/socket.h>
44604
44605 int
44606 main ()
44607 {
44608
44609                         socklen_t len;
44610                         getsockname(0, 0, &len);
44611
44612   ;
44613   return 0;
44614 }
44615 _ACEOF
44616 rm -f conftest.$ac_objext
44617 if { (ac_try="$ac_compile"
44618 case "(($ac_try" in
44619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44620   *) ac_try_echo=$ac_try;;
44621 esac
44622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44623   (eval "$ac_compile") 2>conftest.er1
44624   ac_status=$?
44625   grep -v '^ *+' conftest.er1 >conftest.err
44626   rm -f conftest.er1
44627   cat conftest.err >&5
44628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44629   (exit $ac_status); } && {
44630          test -z "$ac_cxx_werror_flag" ||
44631          test ! -s conftest.err
44632        } && test -s conftest.$ac_objext; then
44633   wx_cv_type_getsockname3=socklen_t
44634 else
44635   echo "$as_me: failed program was:" >&5
44636 sed 's/^/| /' conftest.$ac_ext >&5
44637
44638
44639                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
44640                         if test "$GCC" = yes ; then
44641                             CFLAGS="-Werror $CFLAGS"
44642                         fi
44643
44644                         cat >conftest.$ac_ext <<_ACEOF
44645 /* confdefs.h.  */
44646 _ACEOF
44647 cat confdefs.h >>conftest.$ac_ext
44648 cat >>conftest.$ac_ext <<_ACEOF
44649 /* end confdefs.h.  */
44650
44651                                 #include <sys/types.h>
44652                                 #include <sys/socket.h>
44653
44654 int
44655 main ()
44656 {
44657
44658                                 size_t len;
44659                                 getsockname(0, 0, &len);
44660
44661   ;
44662   return 0;
44663 }
44664 _ACEOF
44665 rm -f conftest.$ac_objext
44666 if { (ac_try="$ac_compile"
44667 case "(($ac_try" in
44668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44669   *) ac_try_echo=$ac_try;;
44670 esac
44671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44672   (eval "$ac_compile") 2>conftest.er1
44673   ac_status=$?
44674   grep -v '^ *+' conftest.er1 >conftest.err
44675   rm -f conftest.er1
44676   cat conftest.err >&5
44677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44678   (exit $ac_status); } && {
44679          test -z "$ac_cxx_werror_flag" ||
44680          test ! -s conftest.err
44681        } && test -s conftest.$ac_objext; then
44682   wx_cv_type_getsockname3=size_t
44683 else
44684   echo "$as_me: failed program was:" >&5
44685 sed 's/^/| /' conftest.$ac_ext >&5
44686
44687         cat >conftest.$ac_ext <<_ACEOF
44688 /* confdefs.h.  */
44689 _ACEOF
44690 cat confdefs.h >>conftest.$ac_ext
44691 cat >>conftest.$ac_ext <<_ACEOF
44692 /* end confdefs.h.  */
44693
44694                                     #include <sys/types.h>
44695                                     #include <sys/socket.h>
44696
44697 int
44698 main ()
44699 {
44700
44701                                     int len;
44702                                     getsockname(0, 0, &len);
44703
44704   ;
44705   return 0;
44706 }
44707 _ACEOF
44708 rm -f conftest.$ac_objext
44709 if { (ac_try="$ac_compile"
44710 case "(($ac_try" in
44711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44712   *) ac_try_echo=$ac_try;;
44713 esac
44714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44715   (eval "$ac_compile") 2>conftest.er1
44716   ac_status=$?
44717   grep -v '^ *+' conftest.er1 >conftest.err
44718   rm -f conftest.er1
44719   cat conftest.err >&5
44720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44721   (exit $ac_status); } && {
44722          test -z "$ac_cxx_werror_flag" ||
44723          test ! -s conftest.err
44724        } && test -s conftest.$ac_objext; then
44725   wx_cv_type_getsockname3=int
44726 else
44727   echo "$as_me: failed program was:" >&5
44728 sed 's/^/| /' conftest.$ac_ext >&5
44729
44730         wx_cv_type_getsockname3=unknown
44731
44732 fi
44733
44734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44735
44736 fi
44737
44738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44739
44740                         CFLAGS="$CFLAGS_OLD"
44741
44742
44743 fi
44744
44745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44746                 ac_ext=c
44747 ac_cpp='$CPP $CPPFLAGS'
44748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44751
44752
44753 fi
44754 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44755 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
44756
44757         if test "$wx_cv_type_getsockname3" = "unknown"; then
44758             wxUSE_SOCKETS=no
44759             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44760 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44761         else
44762             cat >>confdefs.h <<_ACEOF
44763 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
44764 _ACEOF
44765
44766         fi
44767                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44768 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
44769 if test "${wx_cv_type_getsockopt5+set}" = set; then
44770   echo $ECHO_N "(cached) $ECHO_C" >&6
44771 else
44772
44773                                                                                                 ac_ext=cpp
44774 ac_cpp='$CXXCPP $CPPFLAGS'
44775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44778
44779                 cat >conftest.$ac_ext <<_ACEOF
44780 /* confdefs.h.  */
44781 _ACEOF
44782 cat confdefs.h >>conftest.$ac_ext
44783 cat >>conftest.$ac_ext <<_ACEOF
44784 /* end confdefs.h.  */
44785
44786                         #include <sys/types.h>
44787                         #include <sys/socket.h>
44788
44789 int
44790 main ()
44791 {
44792
44793                         socklen_t len;
44794                         getsockopt(0, 0, 0, 0, &len);
44795
44796   ;
44797   return 0;
44798 }
44799 _ACEOF
44800 rm -f conftest.$ac_objext
44801 if { (ac_try="$ac_compile"
44802 case "(($ac_try" in
44803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44804   *) ac_try_echo=$ac_try;;
44805 esac
44806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44807   (eval "$ac_compile") 2>conftest.er1
44808   ac_status=$?
44809   grep -v '^ *+' conftest.er1 >conftest.err
44810   rm -f conftest.er1
44811   cat conftest.err >&5
44812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44813   (exit $ac_status); } && {
44814          test -z "$ac_cxx_werror_flag" ||
44815          test ! -s conftest.err
44816        } && test -s conftest.$ac_objext; then
44817   wx_cv_type_getsockopt5=socklen_t
44818 else
44819   echo "$as_me: failed program was:" >&5
44820 sed 's/^/| /' conftest.$ac_ext >&5
44821
44822
44823                         cat >conftest.$ac_ext <<_ACEOF
44824 /* confdefs.h.  */
44825 _ACEOF
44826 cat confdefs.h >>conftest.$ac_ext
44827 cat >>conftest.$ac_ext <<_ACEOF
44828 /* end confdefs.h.  */
44829
44830                                 #include <sys/types.h>
44831                                 #include <sys/socket.h>
44832
44833 int
44834 main ()
44835 {
44836
44837                                 size_t len;
44838                                 getsockopt(0, 0, 0, 0, &len);
44839
44840   ;
44841   return 0;
44842 }
44843 _ACEOF
44844 rm -f conftest.$ac_objext
44845 if { (ac_try="$ac_compile"
44846 case "(($ac_try" in
44847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44848   *) ac_try_echo=$ac_try;;
44849 esac
44850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44851   (eval "$ac_compile") 2>conftest.er1
44852   ac_status=$?
44853   grep -v '^ *+' conftest.er1 >conftest.err
44854   rm -f conftest.er1
44855   cat conftest.err >&5
44856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44857   (exit $ac_status); } && {
44858          test -z "$ac_cxx_werror_flag" ||
44859          test ! -s conftest.err
44860        } && test -s conftest.$ac_objext; then
44861   wx_cv_type_getsockopt5=size_t
44862 else
44863   echo "$as_me: failed program was:" >&5
44864 sed 's/^/| /' conftest.$ac_ext >&5
44865
44866         cat >conftest.$ac_ext <<_ACEOF
44867 /* confdefs.h.  */
44868 _ACEOF
44869 cat confdefs.h >>conftest.$ac_ext
44870 cat >>conftest.$ac_ext <<_ACEOF
44871 /* end confdefs.h.  */
44872
44873                                     #include <sys/types.h>
44874                                     #include <sys/socket.h>
44875
44876 int
44877 main ()
44878 {
44879
44880                                     int len;
44881                                     getsockopt(0, 0, 0, 0, &len);
44882
44883   ;
44884   return 0;
44885 }
44886 _ACEOF
44887 rm -f conftest.$ac_objext
44888 if { (ac_try="$ac_compile"
44889 case "(($ac_try" in
44890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44891   *) ac_try_echo=$ac_try;;
44892 esac
44893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44894   (eval "$ac_compile") 2>conftest.er1
44895   ac_status=$?
44896   grep -v '^ *+' conftest.er1 >conftest.err
44897   rm -f conftest.er1
44898   cat conftest.err >&5
44899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44900   (exit $ac_status); } && {
44901          test -z "$ac_cxx_werror_flag" ||
44902          test ! -s conftest.err
44903        } && test -s conftest.$ac_objext; then
44904   wx_cv_type_getsockopt5=int
44905 else
44906   echo "$as_me: failed program was:" >&5
44907 sed 's/^/| /' conftest.$ac_ext >&5
44908
44909         wx_cv_type_getsockopt5=unknown
44910
44911 fi
44912
44913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44914
44915 fi
44916
44917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44918
44919
44920 fi
44921
44922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44923                 ac_ext=c
44924 ac_cpp='$CPP $CPPFLAGS'
44925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44928
44929
44930 fi
44931 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44932 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
44933
44934         if test "$wx_cv_type_getsockopt5" = "unknown"; then
44935             wxUSE_SOCKETS=no
44936             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44937 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44938         else
44939             cat >>confdefs.h <<_ACEOF
44940 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
44941 _ACEOF
44942
44943         fi
44944     fi
44945 fi
44946
44947 if test "$wxUSE_SOCKETS" = "yes" ; then
44948     if test "$wxUSE_IPV6" = "yes"; then
44949         { echo "$as_me:$LINENO: checking whether we have sockaddr_in6" >&5
44950 echo $ECHO_N "checking whether we have sockaddr_in6... $ECHO_C" >&6; }
44951 if test "${wx_cv_type_sockaddr_in6+set}" = set; then
44952   echo $ECHO_N "(cached) $ECHO_C" >&6
44953 else
44954
44955                 cat >conftest.$ac_ext <<_ACEOF
44956 /* confdefs.h.  */
44957 _ACEOF
44958 cat confdefs.h >>conftest.$ac_ext
44959 cat >>conftest.$ac_ext <<_ACEOF
44960 /* end confdefs.h.  */
44961
44962                         #include <sys/types.h>
44963                         #include <sys/socket.h>
44964                         #include <netinet/in.h>
44965
44966 int
44967 main ()
44968 {
44969
44970                         struct sockaddr_in6 sa6;
44971
44972   ;
44973   return 0;
44974 }
44975 _ACEOF
44976 rm -f conftest.$ac_objext
44977 if { (ac_try="$ac_compile"
44978 case "(($ac_try" in
44979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44980   *) ac_try_echo=$ac_try;;
44981 esac
44982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44983   (eval "$ac_compile") 2>conftest.er1
44984   ac_status=$?
44985   grep -v '^ *+' conftest.er1 >conftest.err
44986   rm -f conftest.er1
44987   cat conftest.err >&5
44988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44989   (exit $ac_status); } && {
44990          test -z "$ac_c_werror_flag" ||
44991          test ! -s conftest.err
44992        } && test -s conftest.$ac_objext; then
44993   wx_cv_type_sockaddr_in6=yes
44994 else
44995   echo "$as_me: failed program was:" >&5
44996 sed 's/^/| /' conftest.$ac_ext >&5
44997
44998         wx_cv_type_sockaddr_in6=no
44999
45000 fi
45001
45002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45003
45004
45005 fi
45006 { echo "$as_me:$LINENO: result: $wx_cv_type_sockaddr_in6" >&5
45007 echo "${ECHO_T}$wx_cv_type_sockaddr_in6" >&6; }
45008
45009         if test "$wx_cv_type_sockaddr_in6"="yes"; then
45010             cat >>confdefs.h <<\_ACEOF
45011 #define wxUSE_IPV6 1
45012 _ACEOF
45013
45014         else
45015             { echo "$as_me:$LINENO: WARNING: IPv6 support not available... disabled" >&5
45016 echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;}
45017         fi
45018     fi
45019
45020     cat >>confdefs.h <<\_ACEOF
45021 #define wxUSE_SOCKETS 1
45022 _ACEOF
45023
45024     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
45025 fi
45026
45027 if test "$wxUSE_PROTOCOL" = "yes"; then
45028     if test "$wxUSE_SOCKETS" != "yes"; then
45029         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
45030 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
45031         wxUSE_PROTOCOL=no
45032     fi
45033 fi
45034
45035 if test "$wxUSE_PROTOCOL" = "yes"; then
45036     cat >>confdefs.h <<\_ACEOF
45037 #define wxUSE_PROTOCOL 1
45038 _ACEOF
45039
45040
45041     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
45042         cat >>confdefs.h <<\_ACEOF
45043 #define wxUSE_PROTOCOL_HTTP 1
45044 _ACEOF
45045
45046     fi
45047     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
45048         cat >>confdefs.h <<\_ACEOF
45049 #define wxUSE_PROTOCOL_FTP 1
45050 _ACEOF
45051
45052     fi
45053     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
45054         cat >>confdefs.h <<\_ACEOF
45055 #define wxUSE_PROTOCOL_FILE 1
45056 _ACEOF
45057
45058     fi
45059 else
45060     if test "$wxUSE_FS_INET" = "yes"; then
45061         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
45062 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
45063         wxUSE_FS_INET="no"
45064     fi
45065 fi
45066
45067 if test "$wxUSE_URL" = "yes"; then
45068     if test "$wxUSE_PROTOCOL" != "yes"; then
45069         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
45070 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
45071         wxUSE_URL=no
45072     fi
45073     if test "$wxUSE_URL" = "yes"; then
45074         cat >>confdefs.h <<\_ACEOF
45075 #define wxUSE_URL 1
45076 _ACEOF
45077
45078     fi
45079 fi
45080
45081 if test "$wxUSE_VARIANT" = "yes"; then
45082     cat >>confdefs.h <<\_ACEOF
45083 #define wxUSE_VARIANT 1
45084 _ACEOF
45085
45086 fi
45087
45088 if test "$wxUSE_FS_INET" = "yes"; then
45089   cat >>confdefs.h <<\_ACEOF
45090 #define wxUSE_FS_INET 1
45091 _ACEOF
45092
45093 fi
45094
45095
45096 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
45097     wxUSE_JOYSTICK=no
45098
45099         if test "$TOOLKIT" = "MSW"; then
45100         wxUSE_JOYSTICK=yes
45101
45102         elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then
45103         if test "$USE_DARWIN" = 1; then
45104                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
45105 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
45106             ac_ext=cpp
45107 ac_cpp='$CXXCPP $CPPFLAGS'
45108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45111
45112             cat >conftest.$ac_ext <<_ACEOF
45113 /* confdefs.h.  */
45114 _ACEOF
45115 cat confdefs.h >>conftest.$ac_ext
45116 cat >>conftest.$ac_ext <<_ACEOF
45117 /* end confdefs.h.  */
45118  #include <IOKit/hid/IOHIDLib.h>
45119 int
45120 main ()
45121 {
45122  IOHIDQueueInterface *qi = NULL;
45123                               IOHIDCallbackFunction cb = NULL;
45124                               qi->setEventCallout(NULL, cb, NULL, NULL);
45125   ;
45126   return 0;
45127 }
45128 _ACEOF
45129 rm -f conftest.$ac_objext
45130 if { (ac_try="$ac_compile"
45131 case "(($ac_try" in
45132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45133   *) ac_try_echo=$ac_try;;
45134 esac
45135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45136   (eval "$ac_compile") 2>conftest.er1
45137   ac_status=$?
45138   grep -v '^ *+' conftest.er1 >conftest.err
45139   rm -f conftest.er1
45140   cat conftest.err >&5
45141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45142   (exit $ac_status); } && {
45143          test -z "$ac_cxx_werror_flag" ||
45144          test ! -s conftest.err
45145        } && test -s conftest.$ac_objext; then
45146    wxUSE_JOYSTICK=yes
45147
45148 else
45149   echo "$as_me: failed program was:" >&5
45150 sed 's/^/| /' conftest.$ac_ext >&5
45151
45152
45153 fi
45154
45155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45156             ac_ext=c
45157 ac_cpp='$CPP $CPPFLAGS'
45158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45161
45162             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
45163 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
45164         fi
45165
45166         else
45167                 if test "$wxUSE_MGL" != 1; then
45168
45169 for ac_header in linux/joystick.h
45170 do
45171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45175   echo $ECHO_N "(cached) $ECHO_C" >&6
45176 else
45177   cat >conftest.$ac_ext <<_ACEOF
45178 /* confdefs.h.  */
45179 _ACEOF
45180 cat confdefs.h >>conftest.$ac_ext
45181 cat >>conftest.$ac_ext <<_ACEOF
45182 /* end confdefs.h.  */
45183 $ac_includes_default
45184
45185 #include <$ac_header>
45186 _ACEOF
45187 rm -f conftest.$ac_objext
45188 if { (ac_try="$ac_compile"
45189 case "(($ac_try" in
45190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45191   *) ac_try_echo=$ac_try;;
45192 esac
45193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45194   (eval "$ac_compile") 2>conftest.er1
45195   ac_status=$?
45196   grep -v '^ *+' conftest.er1 >conftest.err
45197   rm -f conftest.er1
45198   cat conftest.err >&5
45199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45200   (exit $ac_status); } && {
45201          test -z "$ac_c_werror_flag" ||
45202          test ! -s conftest.err
45203        } && test -s conftest.$ac_objext; then
45204   eval "$as_ac_Header=yes"
45205 else
45206   echo "$as_me: failed program was:" >&5
45207 sed 's/^/| /' conftest.$ac_ext >&5
45208
45209         eval "$as_ac_Header=no"
45210 fi
45211
45212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45213 fi
45214 ac_res=`eval echo '${'$as_ac_Header'}'`
45215                { echo "$as_me:$LINENO: result: $ac_res" >&5
45216 echo "${ECHO_T}$ac_res" >&6; }
45217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45218   cat >>confdefs.h <<_ACEOF
45219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45220 _ACEOF
45221  wxUSE_JOYSTICK=yes
45222 fi
45223
45224 done
45225
45226         fi
45227     fi
45228
45229     if test "$wxUSE_JOYSTICK" = "yes"; then
45230         cat >>confdefs.h <<\_ACEOF
45231 #define wxUSE_JOYSTICK 1
45232 _ACEOF
45233
45234         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
45235     else
45236         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
45237 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
45238     fi
45239 fi
45240
45241
45242
45243 if test "$wxUSE_FONTENUM" = "yes" ; then
45244   cat >>confdefs.h <<\_ACEOF
45245 #define wxUSE_FONTENUM 1
45246 _ACEOF
45247
45248 fi
45249
45250 if test "$wxUSE_FONTMAP" = "yes" ; then
45251   cat >>confdefs.h <<\_ACEOF
45252 #define wxUSE_FONTMAP 1
45253 _ACEOF
45254
45255 fi
45256
45257 if test "$wxUSE_UNICODE" = "yes" ; then
45258   cat >>confdefs.h <<\_ACEOF
45259 #define wxUSE_UNICODE 1
45260 _ACEOF
45261
45262
45263   if test "$USE_WIN32" != 1; then
45264       wxUSE_UNICODE_MSLU=no
45265   fi
45266
45267   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
45268         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
45269 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
45270 if test "${ac_cv_lib_unicows_main+set}" = set; then
45271   echo $ECHO_N "(cached) $ECHO_C" >&6
45272 else
45273   ac_check_lib_save_LIBS=$LIBS
45274 LIBS="-lunicows  $LIBS"
45275 cat >conftest.$ac_ext <<_ACEOF
45276 /* confdefs.h.  */
45277 _ACEOF
45278 cat confdefs.h >>conftest.$ac_ext
45279 cat >>conftest.$ac_ext <<_ACEOF
45280 /* end confdefs.h.  */
45281
45282
45283 int
45284 main ()
45285 {
45286 return main ();
45287   ;
45288   return 0;
45289 }
45290 _ACEOF
45291 rm -f conftest.$ac_objext 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>conftest.er1
45299   ac_status=$?
45300   grep -v '^ *+' conftest.er1 >conftest.err
45301   rm -f conftest.er1
45302   cat conftest.err >&5
45303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45304   (exit $ac_status); } && {
45305          test -z "$ac_c_werror_flag" ||
45306          test ! -s conftest.err
45307        } && test -s conftest$ac_exeext &&
45308        $as_test_x conftest$ac_exeext; then
45309   ac_cv_lib_unicows_main=yes
45310 else
45311   echo "$as_me: failed program was:" >&5
45312 sed 's/^/| /' conftest.$ac_ext >&5
45313
45314         ac_cv_lib_unicows_main=no
45315 fi
45316
45317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45318       conftest$ac_exeext conftest.$ac_ext
45319 LIBS=$ac_check_lib_save_LIBS
45320 fi
45321 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
45322 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
45323 if test $ac_cv_lib_unicows_main = yes; then
45324
45325                 cat >>confdefs.h <<\_ACEOF
45326 #define wxUSE_UNICODE_MSLU 1
45327 _ACEOF
45328
45329
45330 else
45331
45332                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45333                              Applications will only run on Windows NT/2000/XP!" >&5
45334 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
45335                              Applications will only run on Windows NT/2000/XP!" >&2;}
45336                 wxUSE_UNICODE_MSLU=no
45337
45338 fi
45339
45340     fi
45341 fi
45342
45343 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
45344     cat >>confdefs.h <<\_ACEOF
45345 #define wxUSE_UNICODE_UTF8 1
45346 _ACEOF
45347
45348
45349     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
45350         cat >>confdefs.h <<\_ACEOF
45351 #define wxUSE_UTF8_LOCALE_ONLY 1
45352 _ACEOF
45353
45354     fi
45355 fi
45356
45357
45358 if test "$wxUSE_CONSTRAINTS" = "yes"; then
45359     cat >>confdefs.h <<\_ACEOF
45360 #define wxUSE_CONSTRAINTS 1
45361 _ACEOF
45362
45363     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
45364 fi
45365
45366 if test "$wxUSE_MDI" = "yes"; then
45367     cat >>confdefs.h <<\_ACEOF
45368 #define wxUSE_MDI 1
45369 _ACEOF
45370
45371
45372     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
45373         cat >>confdefs.h <<\_ACEOF
45374 #define wxUSE_MDI_ARCHITECTURE 1
45375 _ACEOF
45376
45377         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
45378     fi
45379 fi
45380
45381 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
45382     cat >>confdefs.h <<\_ACEOF
45383 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
45384 _ACEOF
45385
45386     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
45387 fi
45388
45389 if test "$wxUSE_HELP" = "yes"; then
45390     cat >>confdefs.h <<\_ACEOF
45391 #define wxUSE_HELP 1
45392 _ACEOF
45393
45394     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
45395
45396     if test "$wxUSE_MSW" = 1; then
45397       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
45398         cat >>confdefs.h <<\_ACEOF
45399 #define wxUSE_MS_HTML_HELP 1
45400 _ACEOF
45401
45402       fi
45403     fi
45404
45405     if test "$wxUSE_WXHTML_HELP" = "yes"; then
45406       if test "$wxUSE_HTML" = "yes"; then
45407         cat >>confdefs.h <<\_ACEOF
45408 #define wxUSE_WXHTML_HELP 1
45409 _ACEOF
45410
45411       else
45412         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
45413 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
45414         wxUSE_WXHTML_HELP=no
45415       fi
45416     fi
45417 fi
45418
45419 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45420     if test "$wxUSE_CONSTRAINTS" != "yes"; then
45421         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45422 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45423     else
45424         cat >>confdefs.h <<\_ACEOF
45425 #define wxUSE_PRINTING_ARCHITECTURE 1
45426 _ACEOF
45427
45428     fi
45429     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45430 fi
45431
45432 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
45433   cat >>confdefs.h <<\_ACEOF
45434 #define wxUSE_POSTSCRIPT 1
45435 _ACEOF
45436
45437 fi
45438
45439 cat >>confdefs.h <<\_ACEOF
45440 #define wxUSE_AFM_FOR_POSTSCRIPT 1
45441 _ACEOF
45442
45443
45444 if test "$wxUSE_SVG" = "yes"; then
45445     cat >>confdefs.h <<\_ACEOF
45446 #define wxUSE_SVG 1
45447 _ACEOF
45448
45449 fi
45450
45451
45452 if test "$wxUSE_METAFILE" = "yes"; then
45453     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45454         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45455 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45456         wxUSE_METAFILE=no
45457     fi
45458 fi
45459
45460
45461 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
45462                           -o "$wxUSE_CLIPBOARD"     = "yes" \
45463                           -o "$wxUSE_OLE"     = "yes" \
45464                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45465     { echo "$as_me:$LINENO: checking for ole2.h" >&5
45466 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
45467 if test "${ac_cv_header_ole2_h+set}" = set; then
45468   echo $ECHO_N "(cached) $ECHO_C" >&6
45469 else
45470   cat >conftest.$ac_ext <<_ACEOF
45471 /* confdefs.h.  */
45472 _ACEOF
45473 cat confdefs.h >>conftest.$ac_ext
45474 cat >>conftest.$ac_ext <<_ACEOF
45475 /* end confdefs.h.  */
45476
45477
45478 #include <ole2.h>
45479 _ACEOF
45480 rm -f conftest.$ac_objext
45481 if { (ac_try="$ac_compile"
45482 case "(($ac_try" in
45483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45484   *) ac_try_echo=$ac_try;;
45485 esac
45486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45487   (eval "$ac_compile") 2>conftest.er1
45488   ac_status=$?
45489   grep -v '^ *+' conftest.er1 >conftest.err
45490   rm -f conftest.er1
45491   cat conftest.err >&5
45492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45493   (exit $ac_status); } && {
45494          test -z "$ac_c_werror_flag" ||
45495          test ! -s conftest.err
45496        } && test -s conftest.$ac_objext; then
45497   ac_cv_header_ole2_h=yes
45498 else
45499   echo "$as_me: failed program was:" >&5
45500 sed 's/^/| /' conftest.$ac_ext >&5
45501
45502         ac_cv_header_ole2_h=no
45503 fi
45504
45505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45506 fi
45507 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
45508 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
45509
45510
45511
45512     if test "$ac_cv_header_ole2_h" = "yes" ; then
45513         if test "$GCC" = yes ; then
45514             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45515 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
45516             cat >conftest.$ac_ext <<_ACEOF
45517 /* confdefs.h.  */
45518 _ACEOF
45519 cat confdefs.h >>conftest.$ac_ext
45520 cat >>conftest.$ac_ext <<_ACEOF
45521 /* end confdefs.h.  */
45522 #include <windows.h>
45523                             #include <ole2.h>
45524 int
45525 main ()
45526 {
45527
45528   ;
45529   return 0;
45530 }
45531 _ACEOF
45532 rm -f conftest.$ac_objext
45533 if { (ac_try="$ac_compile"
45534 case "(($ac_try" in
45535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45536   *) ac_try_echo=$ac_try;;
45537 esac
45538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45539   (eval "$ac_compile") 2>conftest.er1
45540   ac_status=$?
45541   grep -v '^ *+' conftest.er1 >conftest.err
45542   rm -f conftest.er1
45543   cat conftest.err >&5
45544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45545   (exit $ac_status); } && {
45546          test -z "$ac_c_werror_flag" ||
45547          test ! -s conftest.err
45548        } && test -s conftest.$ac_objext; then
45549   { echo "$as_me:$LINENO: result: no" >&5
45550 echo "${ECHO_T}no" >&6; }
45551 else
45552   echo "$as_me: failed program was:" >&5
45553 sed 's/^/| /' conftest.$ac_ext >&5
45554
45555         { echo "$as_me:$LINENO: result: yes" >&5
45556 echo "${ECHO_T}yes" >&6; }
45557                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
45558 fi
45559
45560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45561             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45562             if test "$wxUSE_OLE" = "yes" ; then
45563                 cat >>confdefs.h <<\_ACEOF
45564 #define wxUSE_OLE 1
45565 _ACEOF
45566
45567                 cat >>confdefs.h <<\_ACEOF
45568 #define wxUSE_OLE_AUTOMATION 1
45569 _ACEOF
45570
45571                 cat >>confdefs.h <<\_ACEOF
45572 #define wxUSE_ACTIVEX 1
45573 _ACEOF
45574
45575                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
45576             fi
45577         fi
45578
45579                 if test "$wxUSE_DATAOBJ" = "yes" ; then
45580             cat >>confdefs.h <<\_ACEOF
45581 #define wxUSE_DATAOBJ 1
45582 _ACEOF
45583
45584         fi
45585     else
45586         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45587 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45588
45589         wxUSE_CLIPBOARD=no
45590         wxUSE_DRAG_AND_DROP=no
45591         wxUSE_DATAOBJ=no
45592         wxUSE_OLE=no
45593     fi
45594
45595     if test "$wxUSE_METAFILE" = "yes"; then
45596         cat >>confdefs.h <<\_ACEOF
45597 #define wxUSE_METAFILE 1
45598 _ACEOF
45599
45600
45601                 cat >>confdefs.h <<\_ACEOF
45602 #define wxUSE_ENH_METAFILE 1
45603 _ACEOF
45604
45605     fi
45606 fi
45607
45608 if test "$wxUSE_IPC" = "yes"; then
45609     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
45610         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45611 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
45612         wxUSE_IPC=no
45613     fi
45614
45615     if test "$wxUSE_IPC" = "yes"; then
45616         cat >>confdefs.h <<\_ACEOF
45617 #define wxUSE_IPC 1
45618 _ACEOF
45619
45620         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45621     fi
45622 fi
45623
45624 if test "$wxUSE_DATAOBJ" = "yes"; then
45625     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45626         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
45627 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
45628         wxUSE_DATAOBJ=no
45629     else
45630         cat >>confdefs.h <<\_ACEOF
45631 #define wxUSE_DATAOBJ 1
45632 _ACEOF
45633
45634     fi
45635 else
45636     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45637 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45638     wxUSE_CLIPBOARD=no
45639     wxUSE_DRAG_AND_DROP=no
45640 fi
45641
45642 if test "$wxUSE_CLIPBOARD" = "yes"; then
45643     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
45644         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
45645 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
45646         wxUSE_CLIPBOARD=no
45647     fi
45648
45649     if test "$wxUSE_CLIPBOARD" = "yes"; then
45650         cat >>confdefs.h <<\_ACEOF
45651 #define wxUSE_CLIPBOARD 1
45652 _ACEOF
45653
45654     fi
45655 fi
45656
45657 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45658     if test "$wxUSE_GTK" = 1; then
45659         if test "$WXGTK12" != 1; then
45660             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45661 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45662             wxUSE_DRAG_AND_DROP=no
45663         fi
45664     fi
45665
45666     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
45667             "$wxUSE_DFB" = 1; then
45668         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
45669 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
45670         wxUSE_DRAG_AND_DROP=no
45671     fi
45672
45673     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45674         cat >>confdefs.h <<\_ACEOF
45675 #define wxUSE_DRAG_AND_DROP 1
45676 _ACEOF
45677
45678     fi
45679
45680 fi
45681
45682 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45683     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45684 fi
45685
45686 if test "$wxUSE_SPLINES" = "yes" ; then
45687   cat >>confdefs.h <<\_ACEOF
45688 #define wxUSE_SPLINES 1
45689 _ACEOF
45690
45691 fi
45692
45693 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45694   cat >>confdefs.h <<\_ACEOF
45695 #define wxUSE_MOUSEWHEEL 1
45696 _ACEOF
45697
45698 fi
45699
45700
45701 USES_CONTROLS=0
45702 if test "$wxUSE_CONTROLS" = "yes"; then
45703   USES_CONTROLS=1
45704 fi
45705
45706 if test "$wxUSE_ACCEL" = "yes"; then
45707   cat >>confdefs.h <<\_ACEOF
45708 #define wxUSE_ACCEL 1
45709 _ACEOF
45710
45711   USES_CONTROLS=1
45712 fi
45713
45714 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
45715   cat >>confdefs.h <<\_ACEOF
45716 #define wxUSE_ANIMATIONCTRL 1
45717 _ACEOF
45718
45719   USES_CONTROLS=1
45720   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45721 fi
45722
45723 if test "$wxUSE_BUTTON" = "yes"; then
45724   cat >>confdefs.h <<\_ACEOF
45725 #define wxUSE_BUTTON 1
45726 _ACEOF
45727
45728   USES_CONTROLS=1
45729 fi
45730
45731 if test "$wxUSE_BMPBUTTON" = "yes"; then
45732   cat >>confdefs.h <<\_ACEOF
45733 #define wxUSE_BMPBUTTON 1
45734 _ACEOF
45735
45736   USES_CONTROLS=1
45737 fi
45738
45739 if test "$wxUSE_CALCTRL" = "yes"; then
45740   cat >>confdefs.h <<\_ACEOF
45741 #define wxUSE_CALENDARCTRL 1
45742 _ACEOF
45743
45744   USES_CONTROLS=1
45745   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45746 fi
45747
45748 if test "$wxUSE_CARET" = "yes"; then
45749   cat >>confdefs.h <<\_ACEOF
45750 #define wxUSE_CARET 1
45751 _ACEOF
45752
45753   USES_CONTROLS=1
45754   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45755 fi
45756
45757 if test "$wxUSE_COLLPANE" = "yes"; then
45758     cat >>confdefs.h <<\_ACEOF
45759 #define wxUSE_COLLPANE 1
45760 _ACEOF
45761
45762     USES_CONTROLS=1
45763     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
45764 fi
45765
45766 if test "$wxUSE_COMBOBOX" = "yes"; then
45767   cat >>confdefs.h <<\_ACEOF
45768 #define wxUSE_COMBOBOX 1
45769 _ACEOF
45770
45771   USES_CONTROLS=1
45772 fi
45773
45774 if test "$wxUSE_COMBOCTRL" = "yes"; then
45775   cat >>confdefs.h <<\_ACEOF
45776 #define wxUSE_COMBOCTRL 1
45777 _ACEOF
45778
45779   USES_CONTROLS=1
45780 fi
45781
45782 if test "$wxUSE_CHOICE" = "yes"; then
45783   cat >>confdefs.h <<\_ACEOF
45784 #define wxUSE_CHOICE 1
45785 _ACEOF
45786
45787   USES_CONTROLS=1
45788 fi
45789
45790 if test "$wxUSE_CHOICEBOOK" = "yes"; then
45791     cat >>confdefs.h <<\_ACEOF
45792 #define wxUSE_CHOICEBOOK 1
45793 _ACEOF
45794
45795     USES_CONTROLS=1
45796 fi
45797
45798 if test "$wxUSE_CHECKBOX" = "yes"; then
45799   cat >>confdefs.h <<\_ACEOF
45800 #define wxUSE_CHECKBOX 1
45801 _ACEOF
45802
45803   USES_CONTROLS=1
45804 fi
45805
45806 if test "$wxUSE_CHECKLST" = "yes"; then
45807   cat >>confdefs.h <<\_ACEOF
45808 #define wxUSE_CHECKLISTBOX 1
45809 _ACEOF
45810
45811   USES_CONTROLS=1
45812 fi
45813
45814 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45815   cat >>confdefs.h <<\_ACEOF
45816 #define wxUSE_COLOURPICKERCTRL 1
45817 _ACEOF
45818
45819   USES_CONTROLS=1
45820 fi
45821
45822 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45823   cat >>confdefs.h <<\_ACEOF
45824 #define wxUSE_DATEPICKCTRL 1
45825 _ACEOF
45826
45827   USES_CONTROLS=1
45828 fi
45829
45830 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45831   cat >>confdefs.h <<\_ACEOF
45832 #define wxUSE_DIRPICKERCTRL 1
45833 _ACEOF
45834
45835   USES_CONTROLS=1
45836 fi
45837
45838 if test "$wxUSE_FILECTRL" = "yes"; then
45839   cat >>confdefs.h <<\_ACEOF
45840 #define wxUSE_FILECTRL 1
45841 _ACEOF
45842
45843   USES_CONTROLS=1
45844 fi
45845
45846 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45847   cat >>confdefs.h <<\_ACEOF
45848 #define wxUSE_FILEPICKERCTRL 1
45849 _ACEOF
45850
45851   USES_CONTROLS=1
45852 fi
45853
45854 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45855   cat >>confdefs.h <<\_ACEOF
45856 #define wxUSE_FONTPICKERCTRL 1
45857 _ACEOF
45858
45859   USES_CONTROLS=1
45860 fi
45861
45862 if test "$wxUSE_DISPLAY" = "yes"; then
45863     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
45864         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
45865 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
45866         wxUSE_DISPLAY=no
45867     else
45868         cat >>confdefs.h <<\_ACEOF
45869 #define wxUSE_DISPLAY 1
45870 _ACEOF
45871
45872         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
45873     fi
45874 fi
45875
45876 if test "$wxUSE_DETECT_SM" = "yes"; then
45877     cat >>confdefs.h <<\_ACEOF
45878 #define wxUSE_DETECT_SM 1
45879 _ACEOF
45880
45881 fi
45882
45883 if test "$wxUSE_GAUGE" = "yes"; then
45884   cat >>confdefs.h <<\_ACEOF
45885 #define wxUSE_GAUGE 1
45886 _ACEOF
45887
45888   USES_CONTROLS=1
45889 fi
45890
45891 if test "$wxUSE_GRID" = "yes"; then
45892   cat >>confdefs.h <<\_ACEOF
45893 #define wxUSE_GRID 1
45894 _ACEOF
45895
45896   USES_CONTROLS=1
45897   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45898 fi
45899
45900 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45901   cat >>confdefs.h <<\_ACEOF
45902 #define wxUSE_HYPERLINKCTRL 1
45903 _ACEOF
45904
45905   USES_CONTROLS=1
45906 fi
45907
45908 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45909   cat >>confdefs.h <<\_ACEOF
45910 #define wxUSE_BITMAPCOMBOBOX 1
45911 _ACEOF
45912
45913   USES_CONTROLS=1
45914 fi
45915
45916 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45917   cat >>confdefs.h <<\_ACEOF
45918 #define wxUSE_DATAVIEWCTRL 1
45919 _ACEOF
45920
45921   USES_CONTROLS=1
45922   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45923 fi
45924
45925 if test "$wxUSE_IMAGLIST" = "yes"; then
45926     cat >>confdefs.h <<\_ACEOF
45927 #define wxUSE_IMAGLIST 1
45928 _ACEOF
45929
45930 fi
45931
45932 if test "$wxUSE_LISTBOOK" = "yes"; then
45933     cat >>confdefs.h <<\_ACEOF
45934 #define wxUSE_LISTBOOK 1
45935 _ACEOF
45936
45937     USES_CONTROLS=1
45938 fi
45939
45940 if test "$wxUSE_LISTBOX" = "yes"; then
45941     cat >>confdefs.h <<\_ACEOF
45942 #define wxUSE_LISTBOX 1
45943 _ACEOF
45944
45945     USES_CONTROLS=1
45946 fi
45947
45948 if test "$wxUSE_LISTCTRL" = "yes"; then
45949     if test "$wxUSE_IMAGLIST" = "yes"; then
45950         cat >>confdefs.h <<\_ACEOF
45951 #define wxUSE_LISTCTRL 1
45952 _ACEOF
45953
45954         USES_CONTROLS=1
45955         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45956     else
45957         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45958 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45959     fi
45960 fi
45961
45962 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
45963     cat >>confdefs.h <<\_ACEOF
45964 #define wxUSE_EDITABLELISTBOX 1
45965 _ACEOF
45966
45967     USES_CONTROLS=1
45968     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
45969 fi
45970
45971 if test "$wxUSE_NOTEBOOK" = "yes"; then
45972     cat >>confdefs.h <<\_ACEOF
45973 #define wxUSE_NOTEBOOK 1
45974 _ACEOF
45975
45976     USES_CONTROLS=1
45977     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45978 fi
45979
45980 if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then
45981     cat >>confdefs.h <<\_ACEOF
45982 #define wxUSE_NOTIFICATION_MESSAGE 1
45983 _ACEOF
45984
45985 fi
45986
45987 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
45988   cat >>confdefs.h <<\_ACEOF
45989 #define wxUSE_ODCOMBOBOX 1
45990 _ACEOF
45991
45992   USES_CONTROLS=1
45993   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45994 fi
45995
45996 if test "$wxUSE_RADIOBOX" = "yes"; then
45997     cat >>confdefs.h <<\_ACEOF
45998 #define wxUSE_RADIOBOX 1
45999 _ACEOF
46000
46001     USES_CONTROLS=1
46002 fi
46003
46004 if test "$wxUSE_RADIOBTN" = "yes"; then
46005     cat >>confdefs.h <<\_ACEOF
46006 #define wxUSE_RADIOBTN 1
46007 _ACEOF
46008
46009     USES_CONTROLS=1
46010 fi
46011
46012 if test "$wxUSE_SASH" = "yes"; then
46013     cat >>confdefs.h <<\_ACEOF
46014 #define wxUSE_SASH 1
46015 _ACEOF
46016
46017     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
46018 fi
46019
46020 if test "$wxUSE_SCROLLBAR" = "yes"; then
46021     cat >>confdefs.h <<\_ACEOF
46022 #define wxUSE_SCROLLBAR 1
46023 _ACEOF
46024
46025     USES_CONTROLS=1
46026     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
46027 fi
46028
46029 if test "$wxUSE_SEARCHCTRL" = "yes"; then
46030     cat >>confdefs.h <<\_ACEOF
46031 #define wxUSE_SEARCHCTRL 1
46032 _ACEOF
46033
46034     USES_CONTROLS=1
46035 fi
46036
46037 if test "$wxUSE_SLIDER" = "yes"; then
46038     cat >>confdefs.h <<\_ACEOF
46039 #define wxUSE_SLIDER 1
46040 _ACEOF
46041
46042     USES_CONTROLS=1
46043 fi
46044
46045 if test "$wxUSE_SPINBTN" = "yes"; then
46046     cat >>confdefs.h <<\_ACEOF
46047 #define wxUSE_SPINBTN 1
46048 _ACEOF
46049
46050     USES_CONTROLS=1
46051 fi
46052
46053 if test "$wxUSE_SPINCTRL" = "yes"; then
46054     cat >>confdefs.h <<\_ACEOF
46055 #define wxUSE_SPINCTRL 1
46056 _ACEOF
46057
46058     USES_CONTROLS=1
46059 fi
46060
46061 if test "$wxUSE_SPLITTER" = "yes"; then
46062     cat >>confdefs.h <<\_ACEOF
46063 #define wxUSE_SPLITTER 1
46064 _ACEOF
46065
46066     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
46067 fi
46068
46069 if test "$wxUSE_STATBMP" = "yes"; then
46070     cat >>confdefs.h <<\_ACEOF
46071 #define wxUSE_STATBMP 1
46072 _ACEOF
46073
46074     USES_CONTROLS=1
46075 fi
46076
46077 if test "$wxUSE_STATBOX" = "yes"; then
46078     cat >>confdefs.h <<\_ACEOF
46079 #define wxUSE_STATBOX 1
46080 _ACEOF
46081
46082     USES_CONTROLS=1
46083 fi
46084
46085 if test "$wxUSE_STATTEXT" = "yes"; then
46086     cat >>confdefs.h <<\_ACEOF
46087 #define wxUSE_STATTEXT 1
46088 _ACEOF
46089
46090     USES_CONTROLS=1
46091 fi
46092
46093 if test "$wxUSE_STATLINE" = "yes"; then
46094     cat >>confdefs.h <<\_ACEOF
46095 #define wxUSE_STATLINE 1
46096 _ACEOF
46097
46098     USES_CONTROLS=1
46099 fi
46100
46101 if test "$wxUSE_STATUSBAR" = "yes"; then
46102         cat >>confdefs.h <<\_ACEOF
46103 #define wxUSE_NATIVE_STATUSBAR 1
46104 _ACEOF
46105
46106     cat >>confdefs.h <<\_ACEOF
46107 #define wxUSE_STATUSBAR 1
46108 _ACEOF
46109
46110     USES_CONTROLS=1
46111
46112     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
46113 fi
46114
46115 if test "$wxUSE_TAB_DIALOG" = "yes"; then
46116     cat >>confdefs.h <<\_ACEOF
46117 #define wxUSE_TAB_DIALOG 1
46118 _ACEOF
46119
46120 fi
46121
46122 if test "$wxUSE_TEXTCTRL" = "yes"; then
46123     cat >>confdefs.h <<\_ACEOF
46124 #define wxUSE_TEXTCTRL 1
46125 _ACEOF
46126
46127     USES_CONTROLS=1
46128     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
46129
46130             cat >>confdefs.h <<\_ACEOF
46131 #define wxUSE_RICHEDIT 1
46132 _ACEOF
46133
46134     cat >>confdefs.h <<\_ACEOF
46135 #define wxUSE_RICHEDIT2 1
46136 _ACEOF
46137
46138 fi
46139
46140 if test "$wxUSE_TOGGLEBTN" = "yes"; then
46141     if test "$wxUSE_COCOA" = 1 ; then
46142         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
46143 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
46144         wxUSE_TOGGLEBTN=no
46145     fi
46146
46147     if test "$wxUSE_TOGGLEBTN" = "yes"; then
46148         cat >>confdefs.h <<\_ACEOF
46149 #define wxUSE_TOGGLEBTN 1
46150 _ACEOF
46151
46152         USES_CONTROLS=1
46153     fi
46154 fi
46155
46156 if test "$wxUSE_TOOLBAR" = "yes"; then
46157     cat >>confdefs.h <<\_ACEOF
46158 #define wxUSE_TOOLBAR 1
46159 _ACEOF
46160
46161     USES_CONTROLS=1
46162
46163     if test "$wxUSE_UNIVERSAL" = "yes"; then
46164         wxUSE_TOOLBAR_NATIVE="no"
46165     else
46166         wxUSE_TOOLBAR_NATIVE="yes"
46167         cat >>confdefs.h <<\_ACEOF
46168 #define wxUSE_TOOLBAR_NATIVE 1
46169 _ACEOF
46170
46171     fi
46172
46173     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
46174 fi
46175
46176 if test "$wxUSE_TOOLTIPS" = "yes"; then
46177     if test "$wxUSE_MOTIF" = 1; then
46178         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
46179 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
46180     else
46181         if test "$wxUSE_UNIVERSAL" = "yes"; then
46182             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
46183 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
46184         else
46185             cat >>confdefs.h <<\_ACEOF
46186 #define wxUSE_TOOLTIPS 1
46187 _ACEOF
46188
46189         fi
46190     fi
46191 fi
46192
46193 if test "$wxUSE_TREEBOOK" = "yes"; then
46194     cat >>confdefs.h <<\_ACEOF
46195 #define wxUSE_TREEBOOK 1
46196 _ACEOF
46197
46198     USES_CONTROLS=1
46199 fi
46200
46201 if test "$wxUSE_TOOLBOOK" = "yes"; then
46202     cat >>confdefs.h <<\_ACEOF
46203 #define wxUSE_TOOLBOOK 1
46204 _ACEOF
46205
46206     USES_CONTROLS=1
46207 fi
46208
46209 if test "$wxUSE_TREECTRL" = "yes"; then
46210     if test "$wxUSE_IMAGLIST" = "yes"; then
46211         cat >>confdefs.h <<\_ACEOF
46212 #define wxUSE_TREECTRL 1
46213 _ACEOF
46214
46215         USES_CONTROLS=1
46216         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
46217     else
46218         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
46219 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
46220     fi
46221 fi
46222
46223 if test "$wxUSE_POPUPWIN" = "yes"; then
46224     if test "$wxUSE_COCOA" = 1 ; then
46225         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
46226 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
46227     else
46228         if test "$wxUSE_PM" = 1; then
46229             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
46230 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
46231         else
46232             cat >>confdefs.h <<\_ACEOF
46233 #define wxUSE_POPUPWIN 1
46234 _ACEOF
46235
46236             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
46237
46238             USES_CONTROLS=1
46239         fi
46240     fi
46241 fi
46242
46243 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
46244     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
46245         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
46246 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
46247     else
46248         cat >>confdefs.h <<\_ACEOF
46249 #define wxUSE_DIALUP_MANAGER 1
46250 _ACEOF
46251
46252         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
46253     fi
46254 fi
46255
46256 if test "$wxUSE_TIPWINDOW" = "yes"; then
46257     if test "$wxUSE_PM" = 1; then
46258         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
46259 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
46260     else
46261         cat >>confdefs.h <<\_ACEOF
46262 #define wxUSE_TIPWINDOW 1
46263 _ACEOF
46264
46265     fi
46266 fi
46267
46268 if test "$USES_CONTROLS" = 1; then
46269     cat >>confdefs.h <<\_ACEOF
46270 #define wxUSE_CONTROLS 1
46271 _ACEOF
46272
46273 fi
46274
46275
46276 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
46277     cat >>confdefs.h <<\_ACEOF
46278 #define wxUSE_ACCESSIBILITY 1
46279 _ACEOF
46280
46281     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
46282 fi
46283
46284 if test "$wxUSE_DRAGIMAGE" = "yes"; then
46285     cat >>confdefs.h <<\_ACEOF
46286 #define wxUSE_DRAGIMAGE 1
46287 _ACEOF
46288
46289     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
46290 fi
46291
46292 if test "$wxUSE_EXCEPTIONS" = "yes"; then
46293     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
46294         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
46295 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
46296     else
46297         cat >>confdefs.h <<\_ACEOF
46298 #define wxUSE_EXCEPTIONS 1
46299 _ACEOF
46300
46301         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
46302     fi
46303 fi
46304
46305 USE_HTML=0
46306 if test "$wxUSE_HTML" = "yes"; then
46307     cat >>confdefs.h <<\_ACEOF
46308 #define wxUSE_HTML 1
46309 _ACEOF
46310
46311     USE_HTML=1
46312     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
46313 fi
46314 if test "$wxUSE_WEBKIT" = "yes"; then
46315     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
46316         old_CPPFLAGS="$CPPFLAGS"
46317         CPPFLAGS="-x objective-c++ $CPPFLAGS"
46318         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
46319 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
46320 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
46321   echo $ECHO_N "(cached) $ECHO_C" >&6
46322 else
46323   cat >conftest.$ac_ext <<_ACEOF
46324 /* confdefs.h.  */
46325 _ACEOF
46326 cat confdefs.h >>conftest.$ac_ext
46327 cat >>conftest.$ac_ext <<_ACEOF
46328 /* end confdefs.h.  */
46329
46330                            #include <Carbon/Carbon.h>
46331                            #include <WebKit/WebKit.h>
46332
46333
46334 #include <WebKit/HIWebView.h>
46335 _ACEOF
46336 rm -f conftest.$ac_objext
46337 if { (ac_try="$ac_compile"
46338 case "(($ac_try" in
46339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46340   *) ac_try_echo=$ac_try;;
46341 esac
46342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46343   (eval "$ac_compile") 2>conftest.er1
46344   ac_status=$?
46345   grep -v '^ *+' conftest.er1 >conftest.err
46346   rm -f conftest.er1
46347   cat conftest.err >&5
46348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46349   (exit $ac_status); } && {
46350          test -z "$ac_c_werror_flag" ||
46351          test ! -s conftest.err
46352        } && test -s conftest.$ac_objext; then
46353   ac_cv_header_WebKit_HIWebView_h=yes
46354 else
46355   echo "$as_me: failed program was:" >&5
46356 sed 's/^/| /' conftest.$ac_ext >&5
46357
46358         ac_cv_header_WebKit_HIWebView_h=no
46359 fi
46360
46361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46362 fi
46363 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46364 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
46365 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46366
46367                            cat >>confdefs.h <<\_ACEOF
46368 #define wxUSE_WEBKIT 1
46369 _ACEOF
46370
46371                            WEBKIT_LINK="-framework WebKit"
46372
46373 else
46374
46375                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46376 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46377                            wxUSE_WEBKIT=no
46378
46379 fi
46380
46381
46382         CPPFLAGS="$old_CPPFLAGS"
46383     elif test "$wxUSE_COCOA" = 1; then
46384         cat >>confdefs.h <<\_ACEOF
46385 #define wxUSE_WEBKIT 1
46386 _ACEOF
46387
46388     else
46389         wxUSE_WEBKIT=no
46390     fi
46391     if test "$wxUSE_WEBKIT" = "yes"; then
46392         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
46393     fi
46394 fi
46395
46396 USE_XRC=0
46397 if test "$wxUSE_XRC" = "yes"; then
46398     if test "$wxUSE_XML" != "yes"; then
46399         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46400 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46401         wxUSE_XRC=no
46402     else
46403         cat >>confdefs.h <<\_ACEOF
46404 #define wxUSE_XRC 1
46405 _ACEOF
46406
46407         USE_XRC=1
46408         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46409     fi
46410 fi
46411
46412 USE_AUI=0
46413 if test "$wxUSE_AUI" = "yes"; then
46414    cat >>confdefs.h <<\_ACEOF
46415 #define wxUSE_AUI 1
46416 _ACEOF
46417
46418    USE_AUI=1
46419    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46420 fi
46421
46422 USE_PROPGRID=0
46423 if test "$wxUSE_PROPGRID" = "yes"; then
46424    cat >>confdefs.h <<\_ACEOF
46425 #define wxUSE_PROPGRID 1
46426 _ACEOF
46427
46428    USE_PROPGRID=1
46429    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid"
46430 fi
46431
46432 USE_STC=0
46433 if test "$wxUSE_STC" = "yes"; then
46434    cat >>confdefs.h <<\_ACEOF
46435 #define wxUSE_STC 1
46436 _ACEOF
46437
46438    USE_STC=1
46439    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
46440 fi
46441
46442 if test "$wxUSE_MENUS" = "yes"; then
46443     cat >>confdefs.h <<\_ACEOF
46444 #define wxUSE_MENUS 1
46445 _ACEOF
46446
46447     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46448 fi
46449
46450 if test "$wxUSE_METAFILE" = "yes"; then
46451     cat >>confdefs.h <<\_ACEOF
46452 #define wxUSE_METAFILE 1
46453 _ACEOF
46454
46455 fi
46456
46457 if test "$wxUSE_MIMETYPE" = "yes"; then
46458     cat >>confdefs.h <<\_ACEOF
46459 #define wxUSE_MIMETYPE 1
46460 _ACEOF
46461
46462 fi
46463
46464 if test "$wxUSE_MINIFRAME" = "yes"; then
46465     cat >>confdefs.h <<\_ACEOF
46466 #define wxUSE_MINIFRAME 1
46467 _ACEOF
46468
46469 fi
46470
46471 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46472     cat >>confdefs.h <<\_ACEOF
46473 #define wxUSE_SYSTEM_OPTIONS 1
46474 _ACEOF
46475
46476 fi
46477
46478 if test "$wxUSE_TASKBARICON" = "yes"; then
46479     cat >>confdefs.h <<\_ACEOF
46480 #define wxUSE_TASKBARICON 1
46481 _ACEOF
46482
46483     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46484 fi
46485
46486
46487 if test "$wxUSE_VALIDATORS" = "yes"; then
46488     cat >>confdefs.h <<\_ACEOF
46489 #define wxUSE_VALIDATORS 1
46490 _ACEOF
46491
46492     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46493 fi
46494
46495 if test "$wxUSE_PALETTE" = "yes" ; then
46496     if test "$wxUSE_DFB" = 1; then
46497         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
46498 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
46499         wxUSE_PALETTE=no
46500     else
46501         cat >>confdefs.h <<\_ACEOF
46502 #define wxUSE_PALETTE 1
46503 _ACEOF
46504
46505     fi
46506 fi
46507
46508 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46509     LIBS=" -lunicows $LIBS"
46510 fi
46511
46512 USE_RICHTEXT=0
46513 if test "$wxUSE_RICHTEXT" = "yes"; then
46514     cat >>confdefs.h <<\_ACEOF
46515 #define wxUSE_RICHTEXT 1
46516 _ACEOF
46517
46518     USE_RICHTEXT=1
46519     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46520 fi
46521
46522
46523 if test "$wxUSE_IMAGE" = "yes" ; then
46524     cat >>confdefs.h <<\_ACEOF
46525 #define wxUSE_IMAGE 1
46526 _ACEOF
46527
46528
46529     if test "$wxUSE_GIF" = "yes" ; then
46530       cat >>confdefs.h <<\_ACEOF
46531 #define wxUSE_GIF 1
46532 _ACEOF
46533
46534     fi
46535
46536     if test "$wxUSE_PCX" = "yes" ; then
46537       cat >>confdefs.h <<\_ACEOF
46538 #define wxUSE_PCX 1
46539 _ACEOF
46540
46541     fi
46542
46543     if test "$wxUSE_TGA" = "yes" ; then
46544       cat >>confdefs.h <<\_ACEOF
46545 #define wxUSE_TGA 1
46546 _ACEOF
46547
46548     fi
46549
46550     if test "$wxUSE_IFF" = "yes" ; then
46551       cat >>confdefs.h <<\_ACEOF
46552 #define wxUSE_IFF 1
46553 _ACEOF
46554
46555     fi
46556
46557     if test "$wxUSE_PNM" = "yes" ; then
46558       cat >>confdefs.h <<\_ACEOF
46559 #define wxUSE_PNM 1
46560 _ACEOF
46561
46562     fi
46563
46564     if test "$wxUSE_XPM" = "yes" ; then
46565       cat >>confdefs.h <<\_ACEOF
46566 #define wxUSE_XPM 1
46567 _ACEOF
46568
46569     fi
46570
46571     if test "$wxUSE_ICO_CUR" = "yes" ; then
46572       cat >>confdefs.h <<\_ACEOF
46573 #define wxUSE_ICO_CUR 1
46574 _ACEOF
46575
46576     fi
46577 fi
46578
46579
46580 if test "$wxUSE_ABOUTDLG" = "yes"; then
46581     cat >>confdefs.h <<\_ACEOF
46582 #define wxUSE_ABOUTDLG 1
46583 _ACEOF
46584
46585 fi
46586
46587 if test "$wxUSE_CHOICEDLG" = "yes"; then
46588     cat >>confdefs.h <<\_ACEOF
46589 #define wxUSE_CHOICEDLG 1
46590 _ACEOF
46591
46592 fi
46593
46594 if test "$wxUSE_COLOURDLG" = "yes"; then
46595     cat >>confdefs.h <<\_ACEOF
46596 #define wxUSE_COLOURDLG 1
46597 _ACEOF
46598
46599 fi
46600
46601 if test "$wxUSE_FILEDLG" = "yes"; then
46602     cat >>confdefs.h <<\_ACEOF
46603 #define wxUSE_FILEDLG 1
46604 _ACEOF
46605
46606 fi
46607
46608 if test "$wxUSE_FINDREPLDLG" = "yes"; then
46609     cat >>confdefs.h <<\_ACEOF
46610 #define wxUSE_FINDREPLDLG 1
46611 _ACEOF
46612
46613 fi
46614
46615 if test "$wxUSE_FONTDLG" = "yes"; then
46616     cat >>confdefs.h <<\_ACEOF
46617 #define wxUSE_FONTDLG 1
46618 _ACEOF
46619
46620 fi
46621
46622 if test "$wxUSE_DIRDLG" = "yes"; then
46623     if test "$wxUSE_TREECTRL" != "yes"; then
46624         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46625 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46626     else
46627         cat >>confdefs.h <<\_ACEOF
46628 #define wxUSE_DIRDLG 1
46629 _ACEOF
46630
46631     fi
46632 fi
46633
46634 if test "$wxUSE_MSGDLG" = "yes"; then
46635     cat >>confdefs.h <<\_ACEOF
46636 #define wxUSE_MSGDLG 1
46637 _ACEOF
46638
46639 fi
46640
46641 if test "$wxUSE_NUMBERDLG" = "yes"; then
46642     cat >>confdefs.h <<\_ACEOF
46643 #define wxUSE_NUMBERDLG 1
46644 _ACEOF
46645
46646 fi
46647
46648 if test "$wxUSE_PROGRESSDLG" = "yes"; then
46649     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46650        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46651 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46652     else
46653         cat >>confdefs.h <<\_ACEOF
46654 #define wxUSE_PROGRESSDLG 1
46655 _ACEOF
46656
46657     fi
46658 fi
46659
46660 if test "$wxUSE_SPLASH" = "yes"; then
46661     cat >>confdefs.h <<\_ACEOF
46662 #define wxUSE_SPLASH 1
46663 _ACEOF
46664
46665     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
46666 fi
46667
46668 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46669     if test "$wxUSE_CONSTRAINTS" != "yes"; then
46670        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46671 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46672     else
46673         cat >>confdefs.h <<\_ACEOF
46674 #define wxUSE_STARTUP_TIPS 1
46675 _ACEOF
46676
46677     fi
46678 fi
46679
46680 if test "$wxUSE_TEXTDLG" = "yes"; then
46681     cat >>confdefs.h <<\_ACEOF
46682 #define wxUSE_TEXTDLG 1
46683 _ACEOF
46684
46685 fi
46686
46687 if test "$wxUSE_WIZARDDLG" = "yes"; then
46688     cat >>confdefs.h <<\_ACEOF
46689 #define wxUSE_WIZARDDLG 1
46690 _ACEOF
46691
46692     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46693 fi
46694
46695
46696 if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then
46697     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
46698         cat >>confdefs.h <<\_ACEOF
46699 #define wxUSE_OWNER_DRAWN 1
46700 _ACEOF
46701
46702     fi
46703 fi
46704
46705
46706 if test "$wxUSE_MSW" = 1 ; then
46707
46708     if test "$wxUSE_DC_CACHEING" = "yes"; then
46709         cat >>confdefs.h <<\_ACEOF
46710 #define wxUSE_DC_CACHEING 1
46711 _ACEOF
46712
46713     fi
46714
46715     if test "$wxUSE_DIB" = "yes"; then
46716         cat >>confdefs.h <<\_ACEOF
46717 #define wxUSE_WXDIB 1
46718 _ACEOF
46719
46720     fi
46721
46722     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
46723         cat >>confdefs.h <<\_ACEOF
46724 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
46725 _ACEOF
46726
46727     fi
46728
46729     if test "$wxUSE_UXTHEME" = "yes"; then
46730         cat >>confdefs.h <<\_ACEOF
46731 #define wxUSE_UXTHEME 1
46732 _ACEOF
46733
46734     fi
46735
46736 fi
46737
46738 if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then
46739     cat >>confdefs.h <<\_ACEOF
46740 #define wxUSE_AUTOID_MANAGEMENT 1
46741 _ACEOF
46742
46743 fi
46744
46745 if test "$USE_WIN32" = 1 ; then
46746     if test "$wxUSE_INICONF" = "yes"; then
46747         cat >>confdefs.h <<\_ACEOF
46748 #define wxUSE_INICONF 1
46749 _ACEOF
46750
46751     fi
46752
46753     if test "$wxUSE_REGKEY" = "yes"; then
46754         cat >>confdefs.h <<\_ACEOF
46755 #define wxUSE_REGKEY 1
46756 _ACEOF
46757
46758     fi
46759 fi
46760
46761
46762 if test "$wxUSE_MAC" = 1; then
46763         wxUSE_GRAPHICS_CONTEXT="yes"
46764 fi
46765
46766 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46767    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
46768       cat >>confdefs.h <<\_ACEOF
46769 #define wxUSE_GRAPHICS_CONTEXT 1
46770 _ACEOF
46771
46772    elif test "$wxUSE_GTK" != 1; then
46773             cat >>confdefs.h <<\_ACEOF
46774 #define wxUSE_GRAPHICS_CONTEXT 1
46775 _ACEOF
46776
46777    else
46778
46779 pkg_failed=no
46780 { echo "$as_me:$LINENO: checking for CAIRO" >&5
46781 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
46782
46783 if test -n "$PKG_CONFIG"; then
46784     if test -n "$CAIRO_CFLAGS"; then
46785         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46786     else
46787         if test -n "$PKG_CONFIG" && \
46788     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46789   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46790   ac_status=$?
46791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46792   (exit $ac_status); }; then
46793   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46794 else
46795   pkg_failed=yes
46796 fi
46797     fi
46798 else
46799         pkg_failed=untried
46800 fi
46801 if test -n "$PKG_CONFIG"; then
46802     if test -n "$CAIRO_LIBS"; then
46803         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46804     else
46805         if test -n "$PKG_CONFIG" && \
46806     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46807   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46808   ac_status=$?
46809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46810   (exit $ac_status); }; then
46811   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46812 else
46813   pkg_failed=yes
46814 fi
46815     fi
46816 else
46817         pkg_failed=untried
46818 fi
46819
46820
46821
46822 if test $pkg_failed = yes; then
46823
46824 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46825         _pkg_short_errors_supported=yes
46826 else
46827         _pkg_short_errors_supported=no
46828 fi
46829         if test $_pkg_short_errors_supported = yes; then
46830                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46831         else
46832                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46833         fi
46834         # Put the nasty error message in config.log where it belongs
46835         echo "$CAIRO_PKG_ERRORS" >&5
46836
46837         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46838 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46839
46840 elif test $pkg_failed = untried; then
46841         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46842 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46843
46844 else
46845         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46846         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46847         { echo "$as_me:$LINENO: result: yes" >&5
46848 echo "${ECHO_T}yes" >&6; }
46849         cat >>confdefs.h <<\_ACEOF
46850 #define wxUSE_GRAPHICS_CONTEXT 1
46851 _ACEOF
46852
46853 fi
46854    fi
46855 fi
46856
46857
46858 USE_MEDIA=0
46859
46860 if test "$wxUSE_MEDIACTRL" = "yes"; then
46861     USE_MEDIA=1
46862
46863                 if test "$wxUSE_GTK" = 1; then
46864         wxUSE_GSTREAMER="no"
46865
46866                                                                 GST_VERSION_MAJOR=0
46867         GST_VERSION_MINOR=10
46868         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46869
46870         if test "$wxUSE_GSTREAMER8" = "no"; then
46871
46872 pkg_failed=no
46873 { echo "$as_me:$LINENO: checking for GST" >&5
46874 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46875
46876 if test -n "$PKG_CONFIG"; then
46877     if test -n "$GST_CFLAGS"; then
46878         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46879     else
46880         if test -n "$PKG_CONFIG" && \
46881     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46882   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46883   ac_status=$?
46884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46885   (exit $ac_status); }; then
46886   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46887 else
46888   pkg_failed=yes
46889 fi
46890     fi
46891 else
46892         pkg_failed=untried
46893 fi
46894 if test -n "$PKG_CONFIG"; then
46895     if test -n "$GST_LIBS"; then
46896         pkg_cv_GST_LIBS="$GST_LIBS"
46897     else
46898         if test -n "$PKG_CONFIG" && \
46899     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46900   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46901   ac_status=$?
46902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46903   (exit $ac_status); }; then
46904   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
46905 else
46906   pkg_failed=yes
46907 fi
46908     fi
46909 else
46910         pkg_failed=untried
46911 fi
46912
46913
46914
46915 if test $pkg_failed = yes; then
46916
46917 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46918         _pkg_short_errors_supported=yes
46919 else
46920         _pkg_short_errors_supported=no
46921 fi
46922         if test $_pkg_short_errors_supported = yes; then
46923                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46924         else
46925                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46926         fi
46927         # Put the nasty error message in config.log where it belongs
46928         echo "$GST_PKG_ERRORS" >&5
46929
46930
46931                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46932 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46933                     GST_VERSION_MINOR=8
46934
46935
46936 elif test $pkg_failed = untried; then
46937
46938                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46939 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46940                     GST_VERSION_MINOR=8
46941
46942
46943 else
46944         GST_CFLAGS=$pkg_cv_GST_CFLAGS
46945         GST_LIBS=$pkg_cv_GST_LIBS
46946         { echo "$as_me:$LINENO: result: yes" >&5
46947 echo "${ECHO_T}yes" >&6; }
46948
46949                     wxUSE_GSTREAMER="yes"
46950                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
46951
46952 fi
46953         else
46954                         GST_VERSION_MINOR=8
46955         fi
46956
46957         if test $GST_VERSION_MINOR = "8"; then
46958             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
46959
46960 pkg_failed=no
46961 { echo "$as_me:$LINENO: checking for GST" >&5
46962 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
46963
46964 if test -n "$PKG_CONFIG"; then
46965     if test -n "$GST_CFLAGS"; then
46966         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46967     else
46968         if test -n "$PKG_CONFIG" && \
46969     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46970   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46971   ac_status=$?
46972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46973   (exit $ac_status); }; then
46974   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46975 else
46976   pkg_failed=yes
46977 fi
46978     fi
46979 else
46980         pkg_failed=untried
46981 fi
46982 if test -n "$PKG_CONFIG"; then
46983     if test -n "$GST_LIBS"; then
46984         pkg_cv_GST_LIBS="$GST_LIBS"
46985     else
46986         if test -n "$PKG_CONFIG" && \
46987     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46988   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46989   ac_status=$?
46990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46991   (exit $ac_status); }; then
46992   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
46993 else
46994   pkg_failed=yes
46995 fi
46996     fi
46997 else
46998         pkg_failed=untried
46999 fi
47000
47001
47002
47003 if test $pkg_failed = yes; then
47004
47005 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
47006         _pkg_short_errors_supported=yes
47007 else
47008         _pkg_short_errors_supported=no
47009 fi
47010         if test $_pkg_short_errors_supported = yes; then
47011                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47012         else
47013                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
47014         fi
47015         # Put the nasty error message in config.log where it belongs
47016         echo "$GST_PKG_ERRORS" >&5
47017
47018
47019                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47020 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47021
47022 elif test $pkg_failed = untried; then
47023
47024                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
47025 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
47026
47027 else
47028         GST_CFLAGS=$pkg_cv_GST_CFLAGS
47029         GST_LIBS=$pkg_cv_GST_LIBS
47030         { echo "$as_me:$LINENO: result: yes" >&5
47031 echo "${ECHO_T}yes" >&6; }
47032         wxUSE_GSTREAMER="yes"
47033 fi
47034         fi
47035
47036
47037         if test "$wxUSE_GSTREAMER" = "yes"; then
47038             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
47039             EXTRALIBS_MEDIA="$GST_LIBS"
47040
47041             cat >>confdefs.h <<\_ACEOF
47042 #define wxUSE_GSTREAMER 1
47043 _ACEOF
47044
47045         else
47046             USE_MEDIA=0
47047         fi
47048     fi
47049
47050     if test $USE_MEDIA = 1; then
47051         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
47052         cat >>confdefs.h <<\_ACEOF
47053 #define wxUSE_MEDIACTRL 1
47054 _ACEOF
47055
47056     fi
47057 fi
47058
47059
47060 if test "$cross_compiling" = "yes"; then
47061         OSINFO="\"$host\""
47062 else
47063         OSINFO=`uname -s -r -m`
47064     OSINFO="\"$OSINFO\""
47065 fi
47066
47067 cat >>confdefs.h <<_ACEOF
47068 #define WXWIN_OS_DESCRIPTION $OSINFO
47069 _ACEOF
47070
47071
47072
47073 if test "x$prefix" != "xNONE"; then
47074     wxPREFIX=$prefix
47075 else
47076     wxPREFIX=$ac_default_prefix
47077 fi
47078
47079 cat >>confdefs.h <<_ACEOF
47080 #define wxINSTALL_PREFIX "$wxPREFIX"
47081 _ACEOF
47082
47083
47084
47085
47086 STD_BASE_LIBS="base"
47087 STD_GUI_LIBS=""
47088 BUILT_WX_LIBS="base"
47089 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
47090
47091 if test "$wxUSE_SOCKETS" = "yes" ; then
47092     STD_BASE_LIBS="net $STD_BASE_LIBS"
47093     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
47094 fi
47095 if test "$wxUSE_XML" = "yes" ; then
47096     STD_BASE_LIBS="xml $STD_BASE_LIBS"
47097     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
47098 fi
47099
47100 if test "$wxUSE_GUI" = "yes"; then
47101     STD_GUI_LIBS="adv core"
47102     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
47103
47104     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47105         STD_GUI_LIBS="qa $STD_GUI_LIBS"
47106         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
47107     fi
47108     if test "$wxUSE_HTML" = "yes" ; then
47109         STD_GUI_LIBS="html $STD_GUI_LIBS"
47110         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
47111     fi
47112     if test "$wxUSE_MEDIACTRL" = "yes" ; then
47113         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
47114     fi
47115     if test "$wxUSE_OPENGL" = "yes" ; then
47116         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
47117     fi
47118     if test "$wxUSE_AUI" = "yes" ; then
47119         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
47120     fi
47121     if test "$wxUSE_PROPGRID" = "yes" ; then
47122         BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS"
47123     fi
47124     if test "$wxUSE_RICHTEXT" = "yes" ; then
47125         BUILT_WX_LIBS="richtext $BUILT_WX_LIBS"
47126     fi
47127     if test "$wxUSE_STC" = "yes" ; then
47128         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
47129     fi
47130     if test "$wxUSE_XRC" = "yes" ; then
47131         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
47132         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
47133     fi
47134 fi
47135
47136
47137
47138
47139
47140
47141
47142
47143 if test "$wxUSE_MAC" = 1 ; then
47144     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
47145         if test "$USE_DARWIN" = 1; then
47146             LDFLAGS="$LDFLAGS -framework QuickTime"
47147         fi
47148     fi
47149     if test "$USE_DARWIN" = 1; then
47150         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL"
47151     fi
47152 fi
47153 if test "$wxUSE_COCOA" = 1 ; then
47154     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
47155     if test "$wxUSE_MEDIACTRL" = "yes"; then
47156         LDFLAGS="$LDFLAGS -framework QuickTime"
47157     fi
47158 fi
47159 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
47160     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
47161 fi
47162
47163 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
47164
47165 if test "$wxUSE_GUI" = "yes"; then
47166
47167
47168         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
47169                      erase event exec font image minimal mobile \
47170                      mobile/wxedit mobile/styles render \
47171                      shaped svg taborder vscroll widgets"
47172
47173     if test "$wxUSE_MONOLITHIC" != "yes"; then
47174         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
47175     fi
47176     if test "$TOOLKIT" = "MSW"; then
47177         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
47178         if test "$wxUSE_UNIVERSAL" != "yes"; then
47179             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
47180         fi
47181     fi
47182     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
47183         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
47184     fi
47185 else
47186     SAMPLES_SUBDIRS="console"
47187     if test "$wxUSE_SOCKETS" = "yes" ; then
47188         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47189     fi
47190     if test "$wxUSE_IPC" = "yes" ; then
47191         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47192     fi
47193 fi
47194
47195
47196 if test "x$INTELCC" = "xyes" ; then
47197                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259"
47198 elif test "$GCC" = yes ; then
47199     CWARNINGS="-Wall -Wundef"
47200 fi
47201
47202 if test "x$INTELCXX" = "xyes" ; then
47203                                                                 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259"
47204 elif test "$GXX" = yes ; then
47205     CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
47206     { echo "$as_me:$LINENO: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5
47207 echo $ECHO_N "checking CXXWARNINGS for gcc -Woverloaded-virtual... $ECHO_C" >&6; }
47208 if test "${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+set}" = set; then
47209   echo $ECHO_N "(cached) $ECHO_C" >&6
47210 else
47211   ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
47212
47213  ac_ext=cpp
47214 ac_cpp='$CXXCPP $CPPFLAGS'
47215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47218
47219  ac_save_CXXFLAGS="$CXXFLAGS"
47220 for ac_arg in "-pedantic -Werror % -Woverloaded-virtual"     "-pedantic % -Woverloaded-virtual %% no, obsolete"     #
47221 do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
47222    cat >conftest.$ac_ext <<_ACEOF
47223 /* confdefs.h.  */
47224 _ACEOF
47225 cat confdefs.h >>conftest.$ac_ext
47226 cat >>conftest.$ac_ext <<_ACEOF
47227 /* end confdefs.h.  */
47228
47229 int
47230 main ()
47231 {
47232 return 0;
47233   ;
47234   return 0;
47235 }
47236 _ACEOF
47237 rm -f conftest.$ac_objext
47238 if { (ac_try="$ac_compile"
47239 case "(($ac_try" in
47240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47241   *) ac_try_echo=$ac_try;;
47242 esac
47243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47244   (eval "$ac_compile") 2>conftest.er1
47245   ac_status=$?
47246   grep -v '^ *+' conftest.er1 >conftest.err
47247   rm -f conftest.er1
47248   cat conftest.err >&5
47249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47250   (exit $ac_status); } && {
47251          test -z "$ac_cxx_werror_flag" ||
47252          test ! -s conftest.err
47253        } && test -s conftest.$ac_objext; then
47254   ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
47255 else
47256   echo "$as_me: failed program was:" >&5
47257 sed 's/^/| /' conftest.$ac_ext >&5
47258
47259
47260 fi
47261
47262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47263 done
47264  CXXFLAGS="$ac_save_CXXFLAGS"
47265  ac_ext=c
47266 ac_cpp='$CPP $CPPFLAGS'
47267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47270
47271
47272 fi
47273 { echo "$as_me:$LINENO: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
47274 echo "${ECHO_T}$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
47275 case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in
47276      .ok|.ok,*)  ;;
47277    .|.no|.no,*)  ;;
47278    *)
47279    if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null
47280    then { (echo "$as_me:$LINENO: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual") >&5
47281   (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5
47282   ac_status=$?
47283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47284   (exit $ac_status); }
47285    else { (echo "$as_me:$LINENO: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\"") >&5
47286   (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5
47287   ac_status=$?
47288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47289   (exit $ac_status); }
47290                       CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual"
47291    fi
47292  ;;
47293 esac
47294
47295 fi
47296
47297
47298 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
47299 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
47300
47301
47302 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
47303  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
47304  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
47305  $CPPFLAGS `
47306
47307 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
47308 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
47309 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
47310 OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS `
47311 OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS `
47312
47313 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
47314
47315
47316 if test "x$MWCC" = "xyes"; then
47317
47318             CC="$CC -cwd source -I-"
47319     CXX="$CXX -cwd source -I-"
47320 fi
47321
47322
47323 LIBS=`echo $LIBS`
47324 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
47325 EXTRALIBS_XML="$EXPAT_LINK"
47326 EXTRALIBS_HTML="$MSPACK_LINK"
47327 EXTRALIBS_MEDIA="$GST_LIBS"
47328 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
47329 if test "$wxUSE_GUI" = "yes"; then
47330     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
47331 fi
47332 if test "$wxUSE_OPENGL" = "yes"; then
47333     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
47334 fi
47335
47336 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
47337
47338 WXCONFIG_LIBS="$LIBS"
47339
47340 if test "$wxUSE_REGEX" = "builtin" ; then
47341     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
47342 fi
47343 if test "$wxUSE_EXPAT" = "builtin" ; then
47344     wxconfig_3rdparty="expat $wxconfig_3rdparty"
47345 fi
47346 if test "$wxUSE_LIBTIFF" = "builtin" ; then
47347     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
47348 fi
47349 if test "$wxUSE_LIBJPEG" = "builtin" ; then
47350     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
47351 fi
47352 if test "$wxUSE_LIBPNG" = "builtin" ; then
47353     wxconfig_3rdparty="png $wxconfig_3rdparty"
47354 fi
47355 if test "$wxUSE_ZLIB" = "builtin" ; then
47356     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
47357 fi
47358
47359 for i in $wxconfig_3rdparty ; do
47360     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
47361 done
47362
47363
47364 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
47365     WXUNIV=1
47366
47367     case "$wxUNIV_THEMES" in
47368         ''|all)
47369             cat >>confdefs.h <<\_ACEOF
47370 #define wxUSE_ALL_THEMES 1
47371 _ACEOF
47372
47373             ;;
47374
47375         *)
47376             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do
47377                 cat >>confdefs.h <<_ACEOF
47378 #define wxUSE_THEME_$t 1
47379 _ACEOF
47380
47381             done
47382     esac
47383 else
47384     WXUNIV=0
47385 fi
47386
47387
47388
47389
47390
47391
47392
47393
47394 if test $wxUSE_MONOLITHIC = "yes" ; then
47395     MONOLITHIC=1
47396 else
47397     MONOLITHIC=0
47398 fi
47399
47400 if test $wxUSE_PLUGINS = "yes" ; then
47401     USE_PLUGINS=1
47402 else
47403     USE_PLUGINS=0
47404 fi
47405
47406 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
47407     USE_QA=1
47408 else
47409     USE_QA=0
47410 fi
47411
47412 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
47413     OFFICIAL_BUILD=1
47414 else
47415     OFFICIAL_BUILD=0
47416 fi
47417
47418
47419
47420
47421
47422
47423
47424
47425
47426
47427
47428
47429
47430
47431
47432
47433
47434
47435
47436
47437
47438
47439
47440
47441
47442
47443
47444
47445 TOOLKIT_LOWERCASE=xxx
47446 if test "$TOOLKIT" = "MAC"; then
47447     TOOLKIT_LOWERCASE=osx_carbon
47448 fi
47449 if test "$TOOLKIT" = "OSX_CARBON"; then
47450     TOOLKIT_LOWERCASE=osx_carbon
47451 fi
47452 if test "$TOOLKIT" = "OSX_COCOA"; then
47453     TOOLKIT_LOWERCASE=osx_cocoa
47454 fi
47455 if test "$TOOLKIT_LOWERCASE" = "xxx"; then
47456     TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'`
47457 fi
47458
47459
47460
47461
47462
47463
47464
47465
47466 case "$TOOLKIT" in
47467     GTK)
47468         TOOLKIT_DESC="GTK+"
47469         if test "$WXGTK2" = 1; then
47470             TOOLKIT_DESC="$TOOLKIT_DESC 2"
47471             if test "$wxUSE_GTKPRINT" = "yes" ; then
47472                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
47473             fi
47474             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
47475                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
47476             fi
47477             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
47478                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
47479             fi
47480             if test "$wxUSE_LIBHILDON" = "yes"; then
47481                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
47482             fi
47483
47484             if test "$TOOLKIT_EXTRA" != ""; then
47485                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
47486             fi
47487         fi
47488         ;;
47489
47490     ?*)
47491         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
47492         ;;
47493
47494     *)
47495         TOOLKIT_DESC="base only"
47496         ;;
47497 esac
47498
47499 if test "$wxUSE_WINE" = "yes"; then
47500     BAKEFILE_FORCE_PLATFORM=win32
47501 fi
47502
47503 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
47504 then
47505     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
47506 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
47507 if test "${wx_cv_gcc_pch_bug+set}" = set; then
47508   echo $ECHO_N "(cached) $ECHO_C" >&6
47509 else
47510
47511             echo '#include <stdio.h>
47512                   const wchar_t test_var[] = L"awidetest";' > conftest.h
47513
47514             echo '#include "conftest.h"
47515                   int main()
47516                   {
47517                      printf("%ls", test_var);
47518                      return 0;
47519                   }' > conftest.cpp
47520
47521             wx_cv_gcc_pch_bug="pch not supported"
47522
47523             if $CXX conftest.h >/dev/null 2>&1
47524             then
47525                 wx_cv_gcc_pch_bug=
47526
47527                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
47528                 then
47529                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
47530                         grep awidetest >/dev/null
47531                     then
47532                         wx_cv_gcc_pch_bug=no
47533                     else
47534                         wx_cv_gcc_pch_bug=yes
47535                     fi
47536                 fi
47537             fi
47538
47539             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
47540
47541 fi
47542 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
47543 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
47544
47545     if test "$wx_cv_gcc_pch_bug" = yes; then
47546                         bk_use_pch=no
47547     fi
47548 fi
47549
47550
47551
47552
47553
47554
47555
47556     if test "x$BAKEFILE_HOST" = "x"; then
47557                if test "x${host}" = "x" ; then
47558                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
47559 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
47560    { (exit 1); exit 1; }; }
47561                fi
47562
47563         BAKEFILE_HOST="${host}"
47564     fi
47565
47566     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
47567
47568     if test -n "$ac_tool_prefix"; then
47569   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47570 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47573 if test "${ac_cv_prog_RANLIB+set}" = set; then
47574   echo $ECHO_N "(cached) $ECHO_C" >&6
47575 else
47576   if test -n "$RANLIB"; then
47577   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47578 else
47579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47580 for as_dir in $PATH
47581 do
47582   IFS=$as_save_IFS
47583   test -z "$as_dir" && as_dir=.
47584   for ac_exec_ext in '' $ac_executable_extensions; do
47585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47586     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47588     break 2
47589   fi
47590 done
47591 done
47592 IFS=$as_save_IFS
47593
47594 fi
47595 fi
47596 RANLIB=$ac_cv_prog_RANLIB
47597 if test -n "$RANLIB"; then
47598   { echo "$as_me:$LINENO: result: $RANLIB" >&5
47599 echo "${ECHO_T}$RANLIB" >&6; }
47600 else
47601   { echo "$as_me:$LINENO: result: no" >&5
47602 echo "${ECHO_T}no" >&6; }
47603 fi
47604
47605
47606 fi
47607 if test -z "$ac_cv_prog_RANLIB"; then
47608   ac_ct_RANLIB=$RANLIB
47609   # Extract the first word of "ranlib", so it can be a program name with args.
47610 set dummy ranlib; ac_word=$2
47611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47613 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47614   echo $ECHO_N "(cached) $ECHO_C" >&6
47615 else
47616   if test -n "$ac_ct_RANLIB"; then
47617   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47618 else
47619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47620 for as_dir in $PATH
47621 do
47622   IFS=$as_save_IFS
47623   test -z "$as_dir" && as_dir=.
47624   for ac_exec_ext in '' $ac_executable_extensions; do
47625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47626     ac_cv_prog_ac_ct_RANLIB="ranlib"
47627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47628     break 2
47629   fi
47630 done
47631 done
47632 IFS=$as_save_IFS
47633
47634 fi
47635 fi
47636 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47637 if test -n "$ac_ct_RANLIB"; then
47638   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47639 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
47640 else
47641   { echo "$as_me:$LINENO: result: no" >&5
47642 echo "${ECHO_T}no" >&6; }
47643 fi
47644
47645   if test "x$ac_ct_RANLIB" = x; then
47646     RANLIB=":"
47647   else
47648     case $cross_compiling:$ac_tool_warned in
47649 yes:)
47650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47651 whose name does not start with the host triplet.  If you think this
47652 configuration is useful to you, please write to autoconf@gnu.org." >&5
47653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47654 whose name does not start with the host triplet.  If you think this
47655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47656 ac_tool_warned=yes ;;
47657 esac
47658     RANLIB=$ac_ct_RANLIB
47659   fi
47660 else
47661   RANLIB="$ac_cv_prog_RANLIB"
47662 fi
47663
47664     # Find a good install program.  We prefer a C program (faster),
47665 # so one script is as good as another.  But avoid the broken or
47666 # incompatible versions:
47667 # SysV /etc/install, /usr/sbin/install
47668 # SunOS /usr/etc/install
47669 # IRIX /sbin/install
47670 # AIX /bin/install
47671 # AmigaOS /C/install, which installs bootblocks on floppy discs
47672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
47674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
47675 # OS/2's system install, which has a completely different semantic
47676 # ./install, which can be erroneously created by make from ./install.sh.
47677 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47678 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
47679 if test -z "$INSTALL"; then
47680 if test "${ac_cv_path_install+set}" = set; then
47681   echo $ECHO_N "(cached) $ECHO_C" >&6
47682 else
47683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47684 for as_dir in $PATH
47685 do
47686   IFS=$as_save_IFS
47687   test -z "$as_dir" && as_dir=.
47688   # Account for people who put trailing slashes in PATH elements.
47689 case $as_dir/ in
47690   ./ | .// | /cC/* | \
47691   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
47692   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
47693   /usr/ucb/* ) ;;
47694   *)
47695     # OSF1 and SCO ODT 3.0 have their own names for install.
47696     # Don't use installbsd from OSF since it installs stuff as root
47697     # by default.
47698     for ac_prog in ginstall scoinst install; do
47699       for ac_exec_ext in '' $ac_executable_extensions; do
47700         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
47701           if test $ac_prog = install &&
47702             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47703             # AIX install.  It has an incompatible calling convention.
47704             :
47705           elif test $ac_prog = install &&
47706             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47707             # program-specific install script used by HP pwplus--don't use.
47708             :
47709           else
47710             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47711             break 3
47712           fi
47713         fi
47714       done
47715     done
47716     ;;
47717 esac
47718 done
47719 IFS=$as_save_IFS
47720
47721
47722 fi
47723   if test "${ac_cv_path_install+set}" = set; then
47724     INSTALL=$ac_cv_path_install
47725   else
47726     # As a last resort, use the slow shell script.  Don't cache a
47727     # value for INSTALL within a source directory, because that will
47728     # break other packages using the cache if that directory is
47729     # removed, or if the value is a relative name.
47730     INSTALL=$ac_install_sh
47731   fi
47732 fi
47733 { echo "$as_me:$LINENO: result: $INSTALL" >&5
47734 echo "${ECHO_T}$INSTALL" >&6; }
47735
47736 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47737 # It thinks the first close brace ends the variable substitution.
47738 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47739
47740 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47741
47742 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47743
47744     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
47745 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
47746 LN_S=$as_ln_s
47747 if test "$LN_S" = "ln -s"; then
47748   { echo "$as_me:$LINENO: result: yes" >&5
47749 echo "${ECHO_T}yes" >&6; }
47750 else
47751   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47752 echo "${ECHO_T}no, using $LN_S" >&6; }
47753 fi
47754
47755
47756     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47757 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
47758 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
47759 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
47760   echo $ECHO_N "(cached) $ECHO_C" >&6
47761 else
47762   cat >conftest.make <<\_ACEOF
47763 SHELL = /bin/sh
47764 all:
47765         @echo '@@@%%%=$(MAKE)=@@@%%%'
47766 _ACEOF
47767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47768 case `${MAKE-make} -f conftest.make 2>/dev/null` in
47769   *@@@%%%=?*=@@@%%%*)
47770     eval ac_cv_prog_make_${ac_make}_set=yes;;
47771   *)
47772     eval ac_cv_prog_make_${ac_make}_set=no;;
47773 esac
47774 rm -f conftest.make
47775 fi
47776 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
47777   { echo "$as_me:$LINENO: result: yes" >&5
47778 echo "${ECHO_T}yes" >&6; }
47779   SET_MAKE=
47780 else
47781   { echo "$as_me:$LINENO: result: no" >&5
47782 echo "${ECHO_T}no" >&6; }
47783   SET_MAKE="MAKE=${MAKE-make}"
47784 fi
47785
47786
47787
47788     if test "x$SUNCXX" = "xyes"; then
47789                                 AR=$CXX
47790         AROPTIONS="-xar -o"
47791
47792     elif test "x$SGICC" = "xyes"; then
47793                 AR=$CXX
47794         AROPTIONS="-ar -o"
47795
47796     else
47797         if test -n "$ac_tool_prefix"; then
47798   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47799 set dummy ${ac_tool_prefix}ar; ac_word=$2
47800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47802 if test "${ac_cv_prog_AR+set}" = set; then
47803   echo $ECHO_N "(cached) $ECHO_C" >&6
47804 else
47805   if test -n "$AR"; then
47806   ac_cv_prog_AR="$AR" # Let the user override the test.
47807 else
47808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47809 for as_dir in $PATH
47810 do
47811   IFS=$as_save_IFS
47812   test -z "$as_dir" && as_dir=.
47813   for ac_exec_ext in '' $ac_executable_extensions; do
47814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47815     ac_cv_prog_AR="${ac_tool_prefix}ar"
47816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47817     break 2
47818   fi
47819 done
47820 done
47821 IFS=$as_save_IFS
47822
47823 fi
47824 fi
47825 AR=$ac_cv_prog_AR
47826 if test -n "$AR"; then
47827   { echo "$as_me:$LINENO: result: $AR" >&5
47828 echo "${ECHO_T}$AR" >&6; }
47829 else
47830   { echo "$as_me:$LINENO: result: no" >&5
47831 echo "${ECHO_T}no" >&6; }
47832 fi
47833
47834
47835 fi
47836 if test -z "$ac_cv_prog_AR"; then
47837   ac_ct_AR=$AR
47838   # Extract the first word of "ar", so it can be a program name with args.
47839 set dummy ar; ac_word=$2
47840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47842 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47843   echo $ECHO_N "(cached) $ECHO_C" >&6
47844 else
47845   if test -n "$ac_ct_AR"; then
47846   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47847 else
47848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47849 for as_dir in $PATH
47850 do
47851   IFS=$as_save_IFS
47852   test -z "$as_dir" && as_dir=.
47853   for ac_exec_ext in '' $ac_executable_extensions; do
47854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47855     ac_cv_prog_ac_ct_AR="ar"
47856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47857     break 2
47858   fi
47859 done
47860 done
47861 IFS=$as_save_IFS
47862
47863 fi
47864 fi
47865 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47866 if test -n "$ac_ct_AR"; then
47867   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47868 echo "${ECHO_T}$ac_ct_AR" >&6; }
47869 else
47870   { echo "$as_me:$LINENO: result: no" >&5
47871 echo "${ECHO_T}no" >&6; }
47872 fi
47873
47874   if test "x$ac_ct_AR" = x; then
47875     AR="ar"
47876   else
47877     case $cross_compiling:$ac_tool_warned in
47878 yes:)
47879 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47880 whose name does not start with the host triplet.  If you think this
47881 configuration is useful to you, please write to autoconf@gnu.org." >&5
47882 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47883 whose name does not start with the host triplet.  If you think this
47884 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47885 ac_tool_warned=yes ;;
47886 esac
47887     AR=$ac_ct_AR
47888   fi
47889 else
47890   AR="$ac_cv_prog_AR"
47891 fi
47892
47893         AROPTIONS=rcu
47894     fi
47895
47896
47897     if test -n "$ac_tool_prefix"; then
47898   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47899 set dummy ${ac_tool_prefix}strip; ac_word=$2
47900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47902 if test "${ac_cv_prog_STRIP+set}" = set; then
47903   echo $ECHO_N "(cached) $ECHO_C" >&6
47904 else
47905   if test -n "$STRIP"; then
47906   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47907 else
47908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47909 for as_dir in $PATH
47910 do
47911   IFS=$as_save_IFS
47912   test -z "$as_dir" && as_dir=.
47913   for ac_exec_ext in '' $ac_executable_extensions; do
47914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47915     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47917     break 2
47918   fi
47919 done
47920 done
47921 IFS=$as_save_IFS
47922
47923 fi
47924 fi
47925 STRIP=$ac_cv_prog_STRIP
47926 if test -n "$STRIP"; then
47927   { echo "$as_me:$LINENO: result: $STRIP" >&5
47928 echo "${ECHO_T}$STRIP" >&6; }
47929 else
47930   { echo "$as_me:$LINENO: result: no" >&5
47931 echo "${ECHO_T}no" >&6; }
47932 fi
47933
47934
47935 fi
47936 if test -z "$ac_cv_prog_STRIP"; then
47937   ac_ct_STRIP=$STRIP
47938   # Extract the first word of "strip", so it can be a program name with args.
47939 set dummy strip; ac_word=$2
47940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47942 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47943   echo $ECHO_N "(cached) $ECHO_C" >&6
47944 else
47945   if test -n "$ac_ct_STRIP"; then
47946   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47947 else
47948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47949 for as_dir in $PATH
47950 do
47951   IFS=$as_save_IFS
47952   test -z "$as_dir" && as_dir=.
47953   for ac_exec_ext in '' $ac_executable_extensions; do
47954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47955     ac_cv_prog_ac_ct_STRIP="strip"
47956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47957     break 2
47958   fi
47959 done
47960 done
47961 IFS=$as_save_IFS
47962
47963 fi
47964 fi
47965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47966 if test -n "$ac_ct_STRIP"; then
47967   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47968 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
47969 else
47970   { echo "$as_me:$LINENO: result: no" >&5
47971 echo "${ECHO_T}no" >&6; }
47972 fi
47973
47974   if test "x$ac_ct_STRIP" = x; then
47975     STRIP=":"
47976   else
47977     case $cross_compiling:$ac_tool_warned in
47978 yes:)
47979 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
47980 whose name does not start with the host triplet.  If you think this
47981 configuration is useful to you, please write to autoconf@gnu.org." >&5
47982 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
47983 whose name does not start with the host triplet.  If you think this
47984 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
47985 ac_tool_warned=yes ;;
47986 esac
47987     STRIP=$ac_ct_STRIP
47988   fi
47989 else
47990   STRIP="$ac_cv_prog_STRIP"
47991 fi
47992
47993     if test -n "$ac_tool_prefix"; then
47994   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47995 set dummy ${ac_tool_prefix}nm; ac_word=$2
47996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
47997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
47998 if test "${ac_cv_prog_NM+set}" = set; then
47999   echo $ECHO_N "(cached) $ECHO_C" >&6
48000 else
48001   if test -n "$NM"; then
48002   ac_cv_prog_NM="$NM" # Let the user override the test.
48003 else
48004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48005 for as_dir in $PATH
48006 do
48007   IFS=$as_save_IFS
48008   test -z "$as_dir" && as_dir=.
48009   for ac_exec_ext in '' $ac_executable_extensions; do
48010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48011     ac_cv_prog_NM="${ac_tool_prefix}nm"
48012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48013     break 2
48014   fi
48015 done
48016 done
48017 IFS=$as_save_IFS
48018
48019 fi
48020 fi
48021 NM=$ac_cv_prog_NM
48022 if test -n "$NM"; then
48023   { echo "$as_me:$LINENO: result: $NM" >&5
48024 echo "${ECHO_T}$NM" >&6; }
48025 else
48026   { echo "$as_me:$LINENO: result: no" >&5
48027 echo "${ECHO_T}no" >&6; }
48028 fi
48029
48030
48031 fi
48032 if test -z "$ac_cv_prog_NM"; then
48033   ac_ct_NM=$NM
48034   # Extract the first word of "nm", so it can be a program name with args.
48035 set dummy nm; ac_word=$2
48036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48038 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
48039   echo $ECHO_N "(cached) $ECHO_C" >&6
48040 else
48041   if test -n "$ac_ct_NM"; then
48042   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
48043 else
48044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48045 for as_dir in $PATH
48046 do
48047   IFS=$as_save_IFS
48048   test -z "$as_dir" && as_dir=.
48049   for ac_exec_ext in '' $ac_executable_extensions; do
48050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48051     ac_cv_prog_ac_ct_NM="nm"
48052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48053     break 2
48054   fi
48055 done
48056 done
48057 IFS=$as_save_IFS
48058
48059 fi
48060 fi
48061 ac_ct_NM=$ac_cv_prog_ac_ct_NM
48062 if test -n "$ac_ct_NM"; then
48063   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
48064 echo "${ECHO_T}$ac_ct_NM" >&6; }
48065 else
48066   { echo "$as_me:$LINENO: result: no" >&5
48067 echo "${ECHO_T}no" >&6; }
48068 fi
48069
48070   if test "x$ac_ct_NM" = x; then
48071     NM=":"
48072   else
48073     case $cross_compiling:$ac_tool_warned in
48074 yes:)
48075 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
48076 whose name does not start with the host triplet.  If you think this
48077 configuration is useful to you, please write to autoconf@gnu.org." >&5
48078 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
48079 whose name does not start with the host triplet.  If you think this
48080 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
48081 ac_tool_warned=yes ;;
48082 esac
48083     NM=$ac_ct_NM
48084   fi
48085 else
48086   NM="$ac_cv_prog_NM"
48087 fi
48088
48089
48090             { echo "$as_me:$LINENO: checking for command to install directories" >&5
48091 echo $ECHO_N "checking for command to install directories... $ECHO_C" >&6; }
48092     INSTALL_TEST_DIR=acbftest$$
48093     $INSTALL -d $INSTALL_TEST_DIR > /dev/null 2>&1
48094     if test $? = 0 -a -d $INSTALL_TEST_DIR; then
48095         rmdir $INSTALL_TEST_DIR
48096                         INSTALL_DIR='$(INSTALL) -d'
48097         { echo "$as_me:$LINENO: result: $INSTALL -d" >&5
48098 echo "${ECHO_T}$INSTALL -d" >&6; }
48099     else
48100         INSTALL_DIR="mkdir -p"
48101         { echo "$as_me:$LINENO: result: mkdir -p" >&5
48102 echo "${ECHO_T}mkdir -p" >&6; }
48103     fi
48104
48105
48106     LDFLAGS_GUI=
48107     case ${BAKEFILE_HOST} in
48108         *-*-cygwin* | *-*-mingw32* )
48109         LDFLAGS_GUI="-mwindows"
48110     esac
48111
48112
48113     fi
48114
48115         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
48116 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
48117 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
48118   echo $ECHO_N "(cached) $ECHO_C" >&6
48119 else
48120
48121         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
48122                 egrep -s GNU > /dev/null); then
48123             bakefile_cv_prog_makeisgnu="yes"
48124         else
48125             bakefile_cv_prog_makeisgnu="no"
48126         fi
48127
48128 fi
48129 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
48130 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
48131
48132     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
48133         IF_GNU_MAKE=""
48134     else
48135         IF_GNU_MAKE="#"
48136     fi
48137
48138
48139
48140     PLATFORM_UNIX=0
48141     PLATFORM_WIN32=0
48142     PLATFORM_MSDOS=0
48143     PLATFORM_MAC=0
48144     PLATFORM_MACOS=0
48145     PLATFORM_MACOSX=0
48146     PLATFORM_OS2=0
48147     PLATFORM_BEOS=0
48148
48149     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
48150         case "${BAKEFILE_HOST}" in
48151             *-*-mingw32* )
48152                 PLATFORM_WIN32=1
48153             ;;
48154             *-pc-msdosdjgpp )
48155                 PLATFORM_MSDOS=1
48156             ;;
48157             *-pc-os2_emx | *-pc-os2-emx )
48158                 PLATFORM_OS2=1
48159             ;;
48160             *-*-darwin* )
48161                 PLATFORM_MAC=1
48162                 PLATFORM_MACOSX=1
48163             ;;
48164             *-*-beos* )
48165                 PLATFORM_BEOS=1
48166             ;;
48167             powerpc-apple-macos* )
48168                 PLATFORM_MAC=1
48169                 PLATFORM_MACOS=1
48170             ;;
48171             * )
48172                 PLATFORM_UNIX=1
48173             ;;
48174         esac
48175     else
48176         case "$BAKEFILE_FORCE_PLATFORM" in
48177             win32 )
48178                 PLATFORM_WIN32=1
48179             ;;
48180             msdos )
48181                 PLATFORM_MSDOS=1
48182             ;;
48183             os2 )
48184                 PLATFORM_OS2=1
48185             ;;
48186             darwin )
48187                 PLATFORM_MAC=1
48188                 PLATFORM_MACOSX=1
48189             ;;
48190             unix )
48191                 PLATFORM_UNIX=1
48192             ;;
48193             beos )
48194                 PLATFORM_BEOS=1
48195             ;;
48196             * )
48197                                             ;;
48198         esac
48199     fi
48200
48201
48202
48203
48204
48205
48206
48207
48208
48209
48210
48211     # Check whether --enable-omf was given.
48212 if test "${enable_omf+set}" = set; then
48213   enableval=$enable_omf; bk_os2_use_omf="$enableval"
48214 fi
48215
48216
48217     case "${BAKEFILE_HOST}" in
48218       *-*-darwin* )
48219                         if test "x$GCC" = "xyes"; then
48220             CFLAGS="$CFLAGS -fno-common"
48221             CXXFLAGS="$CXXFLAGS -fno-common"
48222         fi
48223         if test "x$XLCC" = "xyes"; then
48224             CFLAGS="$CFLAGS -qnocommon"
48225             CXXFLAGS="$CXXFLAGS -qnocommon"
48226         fi
48227         ;;
48228
48229       *-pc-os2_emx | *-pc-os2-emx )
48230         if test "x$bk_os2_use_omf" = "xyes" ; then
48231             AR=emxomfar
48232             RANLIB=:
48233             LDFLAGS="-Zomf $LDFLAGS"
48234             CFLAGS="-Zomf $CFLAGS"
48235             CXXFLAGS="-Zomf $CXXFLAGS"
48236             OS2_LIBEXT="lib"
48237         else
48238             OS2_LIBEXT="a"
48239         fi
48240         ;;
48241
48242       i*86-*-beos* )
48243         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
48244         ;;
48245     esac
48246
48247
48248     SO_SUFFIX="so"
48249     SO_SUFFIX_MODULE="so"
48250     EXEEXT=""
48251     LIBPREFIX="lib"
48252     LIBEXT=".a"
48253     DLLPREFIX="lib"
48254     DLLPREFIX_MODULE=""
48255     DLLIMP_SUFFIX=""
48256     dlldir="$libdir"
48257
48258     case "${BAKEFILE_HOST}" in
48259                         ia64-hp-hpux* )
48260         ;;
48261         *-hp-hpux* )
48262             SO_SUFFIX="sl"
48263             SO_SUFFIX_MODULE="sl"
48264         ;;
48265         *-*-aix* )
48266                                                                         SO_SUFFIX="a"
48267             SO_SUFFIX_MODULE="a"
48268         ;;
48269         *-*-cygwin* )
48270             SO_SUFFIX="dll"
48271             SO_SUFFIX_MODULE="dll"
48272             DLLIMP_SUFFIX="dll.a"
48273             EXEEXT=".exe"
48274             DLLPREFIX="cyg"
48275             dlldir="$bindir"
48276         ;;
48277         *-*-mingw32* )
48278             SO_SUFFIX="dll"
48279             SO_SUFFIX_MODULE="dll"
48280             DLLIMP_SUFFIX="dll.a"
48281             EXEEXT=".exe"
48282             DLLPREFIX=""
48283             dlldir="$bindir"
48284         ;;
48285         *-pc-msdosdjgpp )
48286             EXEEXT=".exe"
48287             DLLPREFIX=""
48288             dlldir="$bindir"
48289         ;;
48290         *-pc-os2_emx | *-pc-os2-emx )
48291             SO_SUFFIX="dll"
48292             SO_SUFFIX_MODULE="dll"
48293             DLLIMP_SUFFIX=$OS2_LIBEXT
48294             EXEEXT=".exe"
48295             DLLPREFIX=""
48296             LIBPREFIX=""
48297             LIBEXT=".$OS2_LIBEXT"
48298             dlldir="$bindir"
48299         ;;
48300         *-*-darwin* )
48301             SO_SUFFIX="dylib"
48302             SO_SUFFIX_MODULE="bundle"
48303         ;;
48304     esac
48305
48306     if test "x$DLLIMP_SUFFIX" = "x" ; then
48307         DLLIMP_SUFFIX="$SO_SUFFIX"
48308     fi
48309
48310
48311
48312
48313
48314
48315
48316
48317
48318
48319
48320
48321         PIC_FLAG=""
48322     if test "x$GCC" = "xyes"; then
48323                 PIC_FLAG="-fPIC"
48324     fi
48325
48326         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
48327     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
48328     WINDOWS_IMPLIB=0
48329
48330     case "${BAKEFILE_HOST}" in
48331       *-hp-hpux* )
48332                 if test "x$GCC" != "xyes"; then
48333                         LDFLAGS="$LDFLAGS -L/usr/lib"
48334
48335             SHARED_LD_CC="${CC} -b -o"
48336             SHARED_LD_CXX="${CXX} -b -o"
48337             PIC_FLAG="+Z"
48338         fi
48339       ;;
48340
48341       *-*-linux* )
48342                         if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
48343             PIC_FLAG="-KPIC"
48344         elif test "x$SUNCXX" = "xyes"; then
48345             SHARED_LD_CC="${CC} -G -o"
48346             SHARED_LD_CXX="${CXX} -G -o"
48347             PIC_FLAG="-KPIC"
48348         fi
48349       ;;
48350
48351       *-*-solaris2* )
48352         if test "x$SUNCXX" = xyes ; then
48353             SHARED_LD_CC="${CC} -G -o"
48354             SHARED_LD_CXX="${CXX} -G -o"
48355             PIC_FLAG="-KPIC"
48356         fi
48357       ;;
48358
48359       *-*-darwin* )
48360
48361 D='$'
48362 cat <<EOF >shared-ld-sh
48363 #!/bin/sh
48364 #-----------------------------------------------------------------------------
48365 #-- Name:        distrib/mac/shared-ld-sh
48366 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
48367 #-- Author:      Gilles Depeyrot
48368 #-- Copyright:   (c) 2002 Gilles Depeyrot
48369 #-- Licence:     any use permitted
48370 #-----------------------------------------------------------------------------
48371
48372 verbose=0
48373 args=""
48374 objects=""
48375 linking_flag="-dynamiclib"
48376 ldargs="-r -keep_private_externs -nostdlib"
48377
48378 if test "x${D}CXX" = "x"; then
48379     CXX="c++"
48380 fi
48381
48382 while test ${D}# -gt 0; do
48383     case ${D}1 in
48384
48385        -v)
48386         verbose=1
48387         ;;
48388
48389        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
48390         # collect these options and values
48391         args="${D}{args} ${D}1 ${D}2"
48392         shift
48393         ;;
48394
48395        -arch|-isysroot)
48396         # collect these options and values
48397         ldargs="${D}{ldargs} ${D}1 ${D}2"
48398         shift
48399         ;;
48400
48401        -s|-Wl,*)
48402         # collect these load args
48403         ldargs="${D}{ldargs} ${D}1"
48404         ;;
48405
48406        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
48407         # collect these options
48408         args="${D}{args} ${D}1"
48409         ;;
48410
48411        -dynamiclib|-bundle)
48412         linking_flag="${D}1"
48413         ;;
48414
48415        -*)
48416         echo "shared-ld: unhandled option '${D}1'"
48417         exit 1
48418         ;;
48419
48420         *.o | *.a | *.dylib)
48421         # collect object files
48422         objects="${D}{objects} ${D}1"
48423         ;;
48424
48425         *)
48426         echo "shared-ld: unhandled argument '${D}1'"
48427         exit 1
48428         ;;
48429
48430     esac
48431     shift
48432 done
48433
48434 status=0
48435
48436 #
48437 # Link one module containing all the others
48438 #
48439 if test ${D}{verbose} = 1; then
48440     echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
48441 fi
48442 ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
48443 status=${D}?
48444
48445 #
48446 # Link the shared library from the single module created, but only if the
48447 # previous command didn't fail:
48448 #
48449 if test ${D}{status} = 0; then
48450     if test ${D}{verbose} = 1; then
48451         echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
48452     fi
48453     ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}
48454     status=${D}?
48455 fi
48456
48457 #
48458 # Remove intermediate module
48459 #
48460 rm -f master.${D}${D}.o
48461
48462 exit ${D}status
48463 EOF
48464
48465         chmod +x shared-ld-sh
48466
48467         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
48468         SHARED_LD_MODULE_CXX="CXX=\$(CXX) $SHARED_LD_MODULE_CC"
48469
48470
48471                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
48472 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
48473 if test "${bakefile_cv_gcc31+set}" = set; then
48474   echo $ECHO_N "(cached) $ECHO_C" >&6
48475 else
48476
48477            cat >conftest.$ac_ext <<_ACEOF
48478 /* confdefs.h.  */
48479 _ACEOF
48480 cat confdefs.h >>conftest.$ac_ext
48481 cat >>conftest.$ac_ext <<_ACEOF
48482 /* end confdefs.h.  */
48483
48484 int
48485 main ()
48486 {
48487
48488                    #if (__GNUC__ < 3) || \
48489                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
48490                        This is old gcc
48491                    #endif
48492
48493   ;
48494   return 0;
48495 }
48496 _ACEOF
48497 rm -f conftest.$ac_objext
48498 if { (ac_try="$ac_compile"
48499 case "(($ac_try" in
48500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48501   *) ac_try_echo=$ac_try;;
48502 esac
48503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48504   (eval "$ac_compile") 2>conftest.er1
48505   ac_status=$?
48506   grep -v '^ *+' conftest.er1 >conftest.err
48507   rm -f conftest.er1
48508   cat conftest.err >&5
48509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48510   (exit $ac_status); } && {
48511          test -z "$ac_c_werror_flag" ||
48512          test ! -s conftest.err
48513        } && test -s conftest.$ac_objext; then
48514
48515                    bakefile_cv_gcc31=yes
48516
48517 else
48518   echo "$as_me: failed program was:" >&5
48519 sed 's/^/| /' conftest.$ac_ext >&5
48520
48521
48522                    bakefile_cv_gcc31=no
48523
48524
48525 fi
48526
48527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48528
48529 fi
48530 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
48531 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
48532         if test "$bakefile_cv_gcc31" = "no"; then
48533                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
48534             SHARED_LD_CXX="$SHARED_LD_CC"
48535         else
48536                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
48537             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
48538         fi
48539
48540         if test "x$GCC" == "xyes"; then
48541             PIC_FLAG="-dynamic -fPIC"
48542         fi
48543         if test "x$XLCC" = "xyes"; then
48544             PIC_FLAG="-dynamic -DPIC"
48545         fi
48546       ;;
48547
48548       *-*-aix* )
48549         if test "x$GCC" = "xyes"; then
48550                                                             PIC_FLAG=""
48551
48552                                                                                     case "${BAKEFILE_HOST}" in
48553                 *-*-aix5* )
48554                     LD_EXPFULL="-Wl,-bexpfull"
48555                     ;;
48556             esac
48557
48558             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
48559             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
48560         else
48561                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
48562 set dummy makeC++SharedLib; ac_word=$2
48563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
48564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
48565 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
48566   echo $ECHO_N "(cached) $ECHO_C" >&6
48567 else
48568   if test -n "$AIX_CXX_LD"; then
48569   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
48570 else
48571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48572 for as_dir in $PATH
48573 do
48574   IFS=$as_save_IFS
48575   test -z "$as_dir" && as_dir=.
48576   for ac_exec_ext in '' $ac_executable_extensions; do
48577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48578     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
48579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48580     break 2
48581   fi
48582 done
48583 done
48584 IFS=$as_save_IFS
48585
48586   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
48587 fi
48588 fi
48589 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
48590 if test -n "$AIX_CXX_LD"; then
48591   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
48592 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
48593 else
48594   { echo "$as_me:$LINENO: result: no" >&5
48595 echo "${ECHO_T}no" >&6; }
48596 fi
48597
48598
48599             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
48600             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
48601         fi
48602       ;;
48603
48604       *-*-beos* )
48605                         SHARED_LD_CC="${LD} -nostart -o"
48606         SHARED_LD_CXX="${LD} -nostart -o"
48607       ;;
48608
48609       *-*-irix* )
48610                 if test "x$GCC" != "xyes"; then
48611             PIC_FLAG="-KPIC"
48612         fi
48613       ;;
48614
48615       *-*-cygwin* | *-*-mingw32* )
48616         PIC_FLAG=""
48617         SHARED_LD_CC="\$(CC) -shared -o"
48618         SHARED_LD_CXX="\$(CXX) -shared -o"
48619         WINDOWS_IMPLIB=1
48620       ;;
48621
48622       *-pc-os2_emx | *-pc-os2-emx )
48623         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48624         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48625         PIC_FLAG=""
48626
48627 D='$'
48628 cat <<EOF >dllar.sh
48629 #!/bin/sh
48630 #
48631 # dllar - a tool to build both a .dll and an .a file
48632 # from a set of object (.o) files for EMX/OS2.
48633 #
48634 #  Written by Andrew Zabolotny, bit@freya.etu.ru
48635 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
48636 #
48637 #  This script will accept a set of files on the command line.
48638 #  All the public symbols from the .o files will be exported into
48639 #  a .DEF file, then linker will be run (through gcc) against them to
48640 #  build a shared library consisting of all given .o files. All libraries
48641 #  (.a) will be first decompressed into component .o files then act as
48642 #  described above. You can optionally give a description (-d "description")
48643 #  which will be put into .DLL. To see the list of accepted options (as well
48644 #  as command-line format) simply run this program without options. The .DLL
48645 #  is built to be imported by name (there is no guarantee that new versions
48646 #  of the library you build will have same ordinals for same symbols).
48647 #
48648 #  dllar is free software; you can redistribute it and/or modify
48649 #  it under the terms of the GNU General Public License as published by
48650 #  the Free Software Foundation; either version 2, or (at your option)
48651 #  any later version.
48652 #
48653 #  dllar is distributed in the hope that it will be useful,
48654 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
48655 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
48656 #  GNU General Public License for more details.
48657 #
48658 #  You should have received a copy of the GNU General Public License
48659 #  along with dllar; see the file COPYING.  If not, write to the Free
48660 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48661 #  02111-1307, USA.
48662
48663 # To successfuly run this program you will need:
48664 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
48665 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48666 #  - gcc
48667 #    (used to build the .dll)
48668 #  - emxexp
48669 #    (used to create .def file from .o files)
48670 #  - emximp
48671 #    (used to create .a file from .def file)
48672 #  - GNU text utilites (cat, sort, uniq)
48673 #    used to process emxexp output
48674 #  - GNU file utilities (mv, rm)
48675 #  - GNU sed
48676 #  - lxlite (optional, see flag below)
48677 #    (used for general .dll cleanup)
48678 #
48679
48680 flag_USE_LXLITE=1;
48681
48682 #
48683 # helper functions
48684 # basnam, variant of basename, which does _not_ remove the path, _iff_
48685 #                              second argument (suffix to remove) is given
48686 basnam(){
48687     case ${D}# in
48688     1)
48689         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
48690         ;;
48691     2)
48692         echo ${D}1 | sed 's/'${D}2'${D}//'
48693         ;;
48694     *)
48695         echo "error in basnam ${D}*"
48696         exit 8
48697         ;;
48698     esac
48699 }
48700
48701 # Cleanup temporary files and output
48702 CleanUp() {
48703     cd ${D}curDir
48704     for i in ${D}inputFiles ; do
48705         case ${D}i in
48706         *!)
48707             rm -rf \`basnam ${D}i !\`
48708             ;;
48709         *)
48710             ;;
48711         esac
48712     done
48713
48714     # Kill result in case of failure as there is just to many stupid make/nmake
48715     # things out there which doesn't do this.
48716     if [ ${D}# -eq 0 ]; then
48717         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48718     fi
48719 }
48720
48721 # Print usage and exit script with rc=1.
48722 PrintHelp() {
48723  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48724  echo '       [-name-mangler-script script.sh]'
48725  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48726  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
48727  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
48728  echo '       [*.o] [*.a]'
48729  echo '*> "output_file" should have no extension.'
48730  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
48731  echo '   The import library name is derived from this and is set to "name".a,'
48732  echo '   unless overridden by -import'
48733  echo '*> "importlib_name" should have no extension.'
48734  echo '   If it has the .o, or .a extension, it is automatically removed.'
48735  echo '   This name is used as the import library name and may be longer and'
48736  echo '   more descriptive than the DLL name which has to follow the old '
48737  echo '   8.3 convention of FAT.'
48738  echo '*> "script.sh may be given to override the output_file name by a'
48739  echo '   different name. It is mainly useful if the regular make process'
48740  echo '   of some package does not take into account OS/2 restriction of'
48741  echo '   DLL name lengths. It takes the importlib name as input and is'
48742  echo '   supposed to procude a shorter name as output. The script should'
48743  echo '   expect to get importlib_name without extension and should produce'
48744  echo '   a (max.) 8 letter name without extension.'
48745  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
48746  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48747  echo '   These flags will be put at the start of GCC command line.'
48748  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48749  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
48750  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48751  echo '   If the last character of a symbol is "*", all symbols beginning'
48752  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
48753  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
48754  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
48755  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
48756  echo '   C runtime DLLs.'
48757  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
48758  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48759  echo '   unchanged to GCC at the end of command line.'
48760  echo '*> If you create a DLL from a library and you do not specify -o,'
48761  echo '   the basename for DLL and import library will be set to library name,'
48762  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
48763  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48764  echo '   library will be renamed into gcc_s.a.'
48765  echo '--------'
48766  echo 'Example:'
48767  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48768  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48769  CleanUp
48770  exit 1
48771 }
48772
48773 # Execute a command.
48774 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48775 # @Uses    Whatever CleanUp() uses.
48776 doCommand() {
48777     echo "${D}*"
48778     eval ${D}*
48779     rcCmd=${D}?
48780
48781     if [ ${D}rcCmd -ne 0 ]; then
48782         echo "command failed, exit code="${D}rcCmd
48783         CleanUp
48784         exit ${D}rcCmd
48785     fi
48786 }
48787
48788 # main routine
48789 # setup globals
48790 cmdLine=${D}*
48791 outFile=""
48792 outimpFile=""
48793 inputFiles=""
48794 renameScript=""
48795 description=""
48796 CC=gcc.exe
48797 CFLAGS="-s -Zcrtdll"
48798 EXTRA_CFLAGS=""
48799 EXPORT_BY_ORDINALS=0
48800 exclude_symbols=""
48801 library_flags=""
48802 curDir=\`pwd\`
48803 curDirS=curDir
48804 case ${D}curDirS in
48805 */)
48806   ;;
48807 *)
48808   curDirS=${D}{curDirS}"/"
48809   ;;
48810 esac
48811 # Parse commandline
48812 libsToLink=0
48813 omfLinking=0
48814 while [ ${D}1 ]; do
48815     case ${D}1 in
48816     -ord*)
48817         EXPORT_BY_ORDINALS=1;
48818         ;;
48819     -o*)
48820         shift
48821         outFile=${D}1
48822         ;;
48823     -i*)
48824         shift
48825         outimpFile=${D}1
48826         ;;
48827     -name-mangler-script)
48828         shift
48829         renameScript=${D}1
48830         ;;
48831     -d*)
48832         shift
48833         description=${D}1
48834         ;;
48835     -f*)
48836         shift
48837         CFLAGS=${D}1
48838         ;;
48839     -c*)
48840         shift
48841         CC=${D}1
48842         ;;
48843     -h*)
48844         PrintHelp
48845         ;;
48846     -ex*)
48847         shift
48848         exclude_symbols=${D}{exclude_symbols}${D}1" "
48849         ;;
48850     -libf*)
48851         shift
48852         library_flags=${D}{library_flags}${D}1" "
48853         ;;
48854     -nocrt*)
48855         CFLAGS="-s"
48856         ;;
48857     -nolxl*)
48858         flag_USE_LXLITE=0
48859         ;;
48860     -* | /*)
48861         case ${D}1 in
48862         -L* | -l*)
48863             libsToLink=1
48864             ;;
48865         -Zomf)
48866             omfLinking=1
48867             ;;
48868         *)
48869             ;;
48870         esac
48871         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48872         ;;
48873     *.dll)
48874         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48875         if [ ${D}omfLinking -eq 1 ]; then
48876             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48877         else
48878             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48879         fi
48880         ;;
48881     *)
48882         found=0;
48883         if [ ${D}libsToLink -ne 0 ]; then
48884             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48885         else
48886             for file in ${D}1 ; do
48887                 if [ -f ${D}file ]; then
48888                     inputFiles="${D}{inputFiles} ${D}file"
48889                     found=1
48890                 fi
48891             done
48892             if [ ${D}found -eq 0 ]; then
48893                 echo "ERROR: No file(s) found: "${D}1
48894                 exit 8
48895             fi
48896         fi
48897       ;;
48898     esac
48899     shift
48900 done # iterate cmdline words
48901
48902 #
48903 if [ -z "${D}inputFiles" ]; then
48904     echo "dllar: no input files"
48905     PrintHelp
48906 fi
48907
48908 # Now extract all .o files from .a files
48909 newInputFiles=""
48910 for file in ${D}inputFiles ; do
48911     case ${D}file in
48912     *.a | *.lib)
48913         case ${D}file in
48914         *.a)
48915             suffix=".a"
48916             AR="ar"
48917             ;;
48918         *.lib)
48919             suffix=".lib"
48920             AR="emxomfar"
48921             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48922             ;;
48923         *)
48924             ;;
48925         esac
48926         dirname=\`basnam ${D}file ${D}suffix\`"_%"
48927         mkdir ${D}dirname
48928         if [ ${D}? -ne 0 ]; then
48929             echo "Failed to create subdirectory ./${D}dirname"
48930             CleanUp
48931             exit 8;
48932         fi
48933         # Append '!' to indicate archive
48934         newInputFiles="${D}newInputFiles ${D}{dirname}!"
48935         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48936         cd ${D}curDir
48937         found=0;
48938         for subfile in ${D}dirname/*.o* ; do
48939             if [ -f ${D}subfile ]; then
48940                 found=1
48941                 if [ -s ${D}subfile ]; then
48942                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48943                     newInputFiles="${D}newInputFiles ${D}subfile"
48944                 fi
48945             fi
48946         done
48947         if [ ${D}found -eq 0 ]; then
48948             echo "WARNING: there are no files in archive \\'${D}file\\'"
48949         fi
48950         ;;
48951     *)
48952         newInputFiles="${D}{newInputFiles} ${D}file"
48953         ;;
48954     esac
48955 done
48956 inputFiles="${D}newInputFiles"
48957
48958 # Output filename(s).
48959 do_backup=0;
48960 if [ -z ${D}outFile ]; then
48961     do_backup=1;
48962     set outFile ${D}inputFiles; outFile=${D}2
48963 fi
48964
48965 # If it is an archive, remove the '!' and the '_%' suffixes
48966 case ${D}outFile in
48967 *_%!)
48968     outFile=\`basnam ${D}outFile _%!\`
48969     ;;
48970 *)
48971     ;;
48972 esac
48973 case ${D}outFile in
48974 *.dll)
48975     outFile=\`basnam ${D}outFile .dll\`
48976     ;;
48977 *.DLL)
48978     outFile=\`basnam ${D}outFile .DLL\`
48979     ;;
48980 *.o)
48981     outFile=\`basnam ${D}outFile .o\`
48982     ;;
48983 *.obj)
48984     outFile=\`basnam ${D}outFile .obj\`
48985     ;;
48986 *.a)
48987     outFile=\`basnam ${D}outFile .a\`
48988     ;;
48989 *.lib)
48990     outFile=\`basnam ${D}outFile .lib\`
48991     ;;
48992 *)
48993     ;;
48994 esac
48995 case ${D}outimpFile in
48996 *.a)
48997     outimpFile=\`basnam ${D}outimpFile .a\`
48998     ;;
48999 *.lib)
49000     outimpFile=\`basnam ${D}outimpFile .lib\`
49001     ;;
49002 *)
49003     ;;
49004 esac
49005 if [ -z ${D}outimpFile ]; then
49006     outimpFile=${D}outFile
49007 fi
49008 defFile="${D}{outFile}.def"
49009 arcFile="${D}{outimpFile}.a"
49010 arcFile2="${D}{outimpFile}.lib"
49011
49012 #create ${D}dllFile as something matching 8.3 restrictions,
49013 if [ -z ${D}renameScript ] ; then
49014     dllFile="${D}outFile"
49015 else
49016     dllFile=\`${D}renameScript ${D}outimpFile\`
49017 fi
49018
49019 if [ ${D}do_backup -ne 0 ] ; then
49020     if [ -f ${D}arcFile ] ; then
49021         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
49022     fi
49023     if [ -f ${D}arcFile2 ] ; then
49024         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
49025     fi
49026 fi
49027
49028 # Extract public symbols from all the object files.
49029 tmpdefFile=${D}{defFile}_%
49030 rm -f ${D}tmpdefFile
49031 for file in ${D}inputFiles ; do
49032     case ${D}file in
49033     *!)
49034         ;;
49035     *)
49036         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
49037         ;;
49038     esac
49039 done
49040
49041 # Create the def file.
49042 rm -f ${D}defFile
49043 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
49044 dllFile="${D}{dllFile}.dll"
49045 if [ ! -z ${D}description ]; then
49046     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
49047 fi
49048 echo "EXPORTS" >> ${D}defFile
49049
49050 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
49051 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
49052
49053 # Checks if the export is ok or not.
49054 for word in ${D}exclude_symbols; do
49055     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
49056     mv ${D}{tmpdefFile}% ${D}tmpdefFile
49057 done
49058
49059
49060 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49061     sed "=" < ${D}tmpdefFile | \\
49062     sed '
49063       N
49064       : loop
49065       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
49066       t loop
49067     ' > ${D}{tmpdefFile}%
49068     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
49069 else
49070     rm -f ${D}{tmpdefFile}%
49071 fi
49072 cat ${D}tmpdefFile >> ${D}defFile
49073 rm -f ${D}tmpdefFile
49074
49075 # Do linking, create implib, and apply lxlite.
49076 gccCmdl="";
49077 for file in ${D}inputFiles ; do
49078     case ${D}file in
49079     *!)
49080         ;;
49081     *)
49082         gccCmdl="${D}gccCmdl ${D}file"
49083         ;;
49084     esac
49085 done
49086 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
49087 touch "${D}{outFile}.dll"
49088
49089 doCommand "emximp -o ${D}arcFile ${D}defFile"
49090 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
49091     add_flags="";
49092     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
49093         add_flags="-ynd"
49094     fi
49095     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
49096 fi
49097 doCommand "emxomf -s -l ${D}arcFile"
49098
49099 # Successful exit.
49100 CleanUp 1
49101 exit 0
49102 EOF
49103
49104         chmod +x dllar.sh
49105       ;;
49106
49107       powerpc-apple-macos* | \
49108       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
49109       *-*-mirbsd* | \
49110       *-*-sunos4* | \
49111       *-*-osf* | \
49112       *-*-dgux5* | \
49113       *-*-sysv5* | \
49114       *-pc-msdosdjgpp )
49115               ;;
49116
49117       *)
49118         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
49119 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
49120    { (exit 1); exit 1; }; }
49121     esac
49122
49123     if test "x$PIC_FLAG" != "x" ; then
49124         PIC_FLAG="$PIC_FLAG -DPIC"
49125     fi
49126
49127     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
49128         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
49129     fi
49130     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
49131         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
49132     fi
49133
49134
49135
49136
49137
49138
49139
49140
49141
49142     USE_SOVERSION=0
49143     USE_SOVERLINUX=0
49144     USE_SOVERSOLARIS=0
49145     USE_SOVERCYGWIN=0
49146     USE_SOSYMLINKS=0
49147     USE_MACVERSION=0
49148     SONAME_FLAG=
49149
49150     case "${BAKEFILE_HOST}" in
49151       *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
49152       *-*-k*bsd*-gnu | *-*-mirbsd* )
49153         if test "x$SUNCXX" = "xyes"; then
49154             SONAME_FLAG="-h "
49155         else
49156             SONAME_FLAG="-Wl,-soname,"
49157         fi
49158         USE_SOVERSION=1
49159         USE_SOVERLINUX=1
49160         USE_SOSYMLINKS=1
49161       ;;
49162
49163       *-*-solaris2* )
49164         SONAME_FLAG="-h "
49165         USE_SOVERSION=1
49166         USE_SOVERSOLARIS=1
49167         USE_SOSYMLINKS=1
49168       ;;
49169
49170       *-*-darwin* )
49171         USE_MACVERSION=1
49172         USE_SOVERSION=1
49173         USE_SOSYMLINKS=1
49174       ;;
49175
49176       *-*-cygwin* )
49177         USE_SOVERSION=1
49178         USE_SOVERCYGWIN=1
49179       ;;
49180     esac
49181
49182
49183
49184
49185
49186
49187
49188
49189
49190
49191     # Check whether --enable-dependency-tracking was given.
49192 if test "${enable_dependency_tracking+set}" = set; then
49193   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
49194 fi
49195
49196
49197     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
49198 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
49199
49200     BK_DEPS=""
49201     if test "x$bk_use_trackdeps" = "xno" ; then
49202         DEPS_TRACKING=0
49203         { echo "$as_me:$LINENO: result: disabled" >&5
49204 echo "${ECHO_T}disabled" >&6; }
49205     else
49206         DEPS_TRACKING=1
49207
49208         if test "x$GCC" = "xyes"; then
49209             DEPSMODE=gcc
49210             case "${BAKEFILE_HOST}" in
49211                 *-*-darwin* )
49212                                                             DEPSFLAG="-no-cpp-precomp -MMD"
49213                 ;;
49214                 * )
49215                     DEPSFLAG="-MMD"
49216                 ;;
49217             esac
49218             { echo "$as_me:$LINENO: result: gcc" >&5
49219 echo "${ECHO_T}gcc" >&6; }
49220         elif test "x$MWCC" = "xyes"; then
49221             DEPSMODE=mwcc
49222             DEPSFLAG="-MM"
49223             { echo "$as_me:$LINENO: result: mwcc" >&5
49224 echo "${ECHO_T}mwcc" >&6; }
49225         elif test "x$SUNCC" = "xyes"; then
49226             DEPSMODE=unixcc
49227             DEPSFLAG="-xM1"
49228             { echo "$as_me:$LINENO: result: Sun cc" >&5
49229 echo "${ECHO_T}Sun cc" >&6; }
49230         elif test "x$SGICC" = "xyes"; then
49231             DEPSMODE=unixcc
49232             DEPSFLAG="-M"
49233             { echo "$as_me:$LINENO: result: SGI cc" >&5
49234 echo "${ECHO_T}SGI cc" >&6; }
49235         elif test "x$HPCC" = "xyes"; then
49236             DEPSMODE=unixcc
49237             DEPSFLAG="+make"
49238             { echo "$as_me:$LINENO: result: HP cc" >&5
49239 echo "${ECHO_T}HP cc" >&6; }
49240         elif test "x$COMPAQCC" = "xyes"; then
49241             DEPSMODE=gcc
49242             DEPSFLAG="-MD"
49243             { echo "$as_me:$LINENO: result: Compaq cc" >&5
49244 echo "${ECHO_T}Compaq cc" >&6; }
49245         else
49246             DEPS_TRACKING=0
49247             { echo "$as_me:$LINENO: result: none" >&5
49248 echo "${ECHO_T}none" >&6; }
49249         fi
49250
49251         if test $DEPS_TRACKING = 1 ; then
49252
49253 D='$'
49254 cat <<EOF >bk-deps
49255 #!/bin/sh
49256
49257 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49258 # script. It is used to track C/C++ files dependencies in portable way.
49259 #
49260 # Permission is given to use this file in any way.
49261
49262 DEPSMODE=${DEPSMODE}
49263 DEPSFLAG="${DEPSFLAG}"
49264 DEPSDIRBASE=.deps
49265
49266 if test ${D}DEPSMODE = gcc ; then
49267     ${D}* ${D}{DEPSFLAG}
49268     status=${D}?
49269
49270     # determine location of created files:
49271     while test ${D}# -gt 0; do
49272         case "${D}1" in
49273             -o )
49274                 shift
49275                 objfile=${D}1
49276             ;;
49277             -* )
49278             ;;
49279             * )
49280                 srcfile=${D}1
49281             ;;
49282         esac
49283         shift
49284     done
49285     objfilebase=\`basename ${D}objfile\`
49286     builddir=\`dirname ${D}objfile\`
49287     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
49288     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
49289     depsdir=${D}builddir/${D}DEPSDIRBASE
49290     mkdir -p ${D}depsdir
49291
49292     # if the compiler failed, we're done:
49293     if test ${D}{status} != 0 ; then
49294         rm -f ${D}depfile
49295         exit ${D}{status}
49296     fi
49297
49298     # move created file to the location we want it in:
49299     if test -f ${D}depfile ; then
49300         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49301         rm -f ${D}depfile
49302     else
49303         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
49304         depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\`
49305         if test ! -f ${D}depfile ; then
49306             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
49307             depfile="${D}objfile.d"
49308         fi
49309         if test -f ${D}depfile ; then
49310             sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d
49311             rm -f ${D}depfile
49312         fi
49313     fi
49314     exit 0
49315
49316 elif test ${D}DEPSMODE = mwcc ; then
49317     ${D}* || exit ${D}?
49318     # Run mwcc again with -MM and redirect into the dep file we want
49319     # NOTE: We can't use shift here because we need ${D}* to be valid
49320     prevarg=
49321     for arg in ${D}* ; do
49322         if test "${D}prevarg" = "-o"; then
49323             objfile=${D}arg
49324         else
49325             case "${D}arg" in
49326                 -* )
49327                 ;;
49328                 * )
49329                     srcfile=${D}arg
49330                 ;;
49331             esac
49332         fi
49333         prevarg="${D}arg"
49334     done
49335
49336     objfilebase=\`basename ${D}objfile\`
49337     builddir=\`dirname ${D}objfile\`
49338     depsdir=${D}builddir/${D}DEPSDIRBASE
49339     mkdir -p ${D}depsdir
49340
49341     ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d
49342     exit 0
49343
49344 elif test ${D}DEPSMODE = unixcc; then
49345     ${D}* || exit ${D}?
49346     # Run compiler again with deps flag and redirect into the dep file.
49347     # It doesn't work if the '-o FILE' option is used, but without it the
49348     # dependency file will contain the wrong name for the object. So it is
49349     # removed from the command line, and the dep file is fixed with sed.
49350     cmd=""
49351     while test ${D}# -gt 0; do
49352         case "${D}1" in
49353             -o )
49354                 shift
49355                 objfile=${D}1
49356             ;;
49357             * )
49358                 eval arg${D}#=\\${D}1
49359                 cmd="${D}cmd \\${D}arg${D}#"
49360             ;;
49361         esac
49362         shift
49363     done
49364
49365     objfilebase=\`basename ${D}objfile\`
49366     builddir=\`dirname ${D}objfile\`
49367     depsdir=${D}builddir/${D}DEPSDIRBASE
49368     mkdir -p ${D}depsdir
49369
49370     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d
49371     exit 0
49372
49373 else
49374     ${D}*
49375     exit ${D}?
49376 fi
49377 EOF
49378
49379             chmod +x bk-deps
49380                                     BK_DEPS="`pwd`/bk-deps"
49381         fi
49382     fi
49383
49384
49385
49386
49387
49388     case ${BAKEFILE_HOST} in
49389         *-*-cygwin* | *-*-mingw32* )
49390                         if test -n "$ac_tool_prefix"; then
49391   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
49392 set dummy ${ac_tool_prefix}windres; ac_word=$2
49393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49395 if test "${ac_cv_prog_WINDRES+set}" = set; then
49396   echo $ECHO_N "(cached) $ECHO_C" >&6
49397 else
49398   if test -n "$WINDRES"; then
49399   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
49400 else
49401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49402 for as_dir in $PATH
49403 do
49404   IFS=$as_save_IFS
49405   test -z "$as_dir" && as_dir=.
49406   for ac_exec_ext in '' $ac_executable_extensions; do
49407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49408     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
49409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49410     break 2
49411   fi
49412 done
49413 done
49414 IFS=$as_save_IFS
49415
49416 fi
49417 fi
49418 WINDRES=$ac_cv_prog_WINDRES
49419 if test -n "$WINDRES"; then
49420   { echo "$as_me:$LINENO: result: $WINDRES" >&5
49421 echo "${ECHO_T}$WINDRES" >&6; }
49422 else
49423   { echo "$as_me:$LINENO: result: no" >&5
49424 echo "${ECHO_T}no" >&6; }
49425 fi
49426
49427
49428 fi
49429 if test -z "$ac_cv_prog_WINDRES"; then
49430   ac_ct_WINDRES=$WINDRES
49431   # Extract the first word of "windres", so it can be a program name with args.
49432 set dummy windres; ac_word=$2
49433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49435 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
49436   echo $ECHO_N "(cached) $ECHO_C" >&6
49437 else
49438   if test -n "$ac_ct_WINDRES"; then
49439   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
49440 else
49441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49442 for as_dir in $PATH
49443 do
49444   IFS=$as_save_IFS
49445   test -z "$as_dir" && as_dir=.
49446   for ac_exec_ext in '' $ac_executable_extensions; do
49447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49448     ac_cv_prog_ac_ct_WINDRES="windres"
49449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49450     break 2
49451   fi
49452 done
49453 done
49454 IFS=$as_save_IFS
49455
49456 fi
49457 fi
49458 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
49459 if test -n "$ac_ct_WINDRES"; then
49460   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
49461 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
49462 else
49463   { echo "$as_me:$LINENO: result: no" >&5
49464 echo "${ECHO_T}no" >&6; }
49465 fi
49466
49467   if test "x$ac_ct_WINDRES" = x; then
49468     WINDRES=""
49469   else
49470     case $cross_compiling:$ac_tool_warned in
49471 yes:)
49472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49473 whose name does not start with the host triplet.  If you think this
49474 configuration is useful to you, please write to autoconf@gnu.org." >&5
49475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49476 whose name does not start with the host triplet.  If you think this
49477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49478 ac_tool_warned=yes ;;
49479 esac
49480     WINDRES=$ac_ct_WINDRES
49481   fi
49482 else
49483   WINDRES="$ac_cv_prog_WINDRES"
49484 fi
49485
49486          ;;
49487
49488       *-*-darwin* | powerpc-apple-macos* )
49489             # Extract the first word of "Rez", so it can be a program name with args.
49490 set dummy Rez; ac_word=$2
49491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49493 if test "${ac_cv_prog_REZ+set}" = set; then
49494   echo $ECHO_N "(cached) $ECHO_C" >&6
49495 else
49496   if test -n "$REZ"; then
49497   ac_cv_prog_REZ="$REZ" # Let the user override the test.
49498 else
49499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49500 for as_dir in $PATH
49501 do
49502   IFS=$as_save_IFS
49503   test -z "$as_dir" && as_dir=.
49504   for ac_exec_ext in '' $ac_executable_extensions; do
49505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49506     ac_cv_prog_REZ="Rez"
49507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49508     break 2
49509   fi
49510 done
49511 done
49512 IFS=$as_save_IFS
49513
49514   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
49515 fi
49516 fi
49517 REZ=$ac_cv_prog_REZ
49518 if test -n "$REZ"; then
49519   { echo "$as_me:$LINENO: result: $REZ" >&5
49520 echo "${ECHO_T}$REZ" >&6; }
49521 else
49522   { echo "$as_me:$LINENO: result: no" >&5
49523 echo "${ECHO_T}no" >&6; }
49524 fi
49525
49526
49527             # Extract the first word of "SetFile", so it can be a program name with args.
49528 set dummy SetFile; ac_word=$2
49529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49531 if test "${ac_cv_prog_SETFILE+set}" = set; then
49532   echo $ECHO_N "(cached) $ECHO_C" >&6
49533 else
49534   if test -n "$SETFILE"; then
49535   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
49536 else
49537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49538 for as_dir in $PATH
49539 do
49540   IFS=$as_save_IFS
49541   test -z "$as_dir" && as_dir=.
49542   for ac_exec_ext in '' $ac_executable_extensions; do
49543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49544     ac_cv_prog_SETFILE="SetFile"
49545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49546     break 2
49547   fi
49548 done
49549 done
49550 IFS=$as_save_IFS
49551
49552   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
49553 fi
49554 fi
49555 SETFILE=$ac_cv_prog_SETFILE
49556 if test -n "$SETFILE"; then
49557   { echo "$as_me:$LINENO: result: $SETFILE" >&5
49558 echo "${ECHO_T}$SETFILE" >&6; }
49559 else
49560   { echo "$as_me:$LINENO: result: no" >&5
49561 echo "${ECHO_T}no" >&6; }
49562 fi
49563
49564
49565         ;;
49566     esac
49567
49568
49569
49570
49571
49572
49573
49574
49575
49576     BAKEFILE_BAKEFILE_M4_VERSION="0.2.5"
49577
49578
49579 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.5"
49580
49581
49582
49583     # Check whether --enable-precomp-headers was given.
49584 if test "${enable_precomp_headers+set}" = set; then
49585   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
49586 fi
49587
49588
49589     GCC_PCH=0
49590     ICC_PCH=0
49591     USE_PCH=0
49592     BK_MAKE_PCH=""
49593
49594     case ${BAKEFILE_HOST} in
49595         *-*-cygwin* )
49596                                                 bk_use_pch="no"
49597             ;;
49598     esac
49599
49600     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
49601         if test "x$GCC" = "xyes"; then
49602                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
49603 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
49604             cat >conftest.$ac_ext <<_ACEOF
49605 /* confdefs.h.  */
49606 _ACEOF
49607 cat confdefs.h >>conftest.$ac_ext
49608 cat >>conftest.$ac_ext <<_ACEOF
49609 /* end confdefs.h.  */
49610
49611 int
49612 main ()
49613 {
49614
49615                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
49616                         There is no PCH support
49617                     #endif
49618                     #if (__GNUC__ < 3)
49619                         There is no PCH support
49620                     #endif
49621                     #if (__GNUC__ == 3) && \
49622                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
49623                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
49624                        ( defined(__INTEL_COMPILER) )
49625                         There is no PCH support
49626                     #endif
49627
49628   ;
49629   return 0;
49630 }
49631 _ACEOF
49632 rm -f conftest.$ac_objext
49633 if { (ac_try="$ac_compile"
49634 case "(($ac_try" in
49635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49636   *) ac_try_echo=$ac_try;;
49637 esac
49638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49639   (eval "$ac_compile") 2>conftest.er1
49640   ac_status=$?
49641   grep -v '^ *+' conftest.er1 >conftest.err
49642   rm -f conftest.er1
49643   cat conftest.err >&5
49644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49645   (exit $ac_status); } && {
49646          test -z "$ac_c_werror_flag" ||
49647          test ! -s conftest.err
49648        } && test -s conftest.$ac_objext; then
49649
49650                     { echo "$as_me:$LINENO: result: yes" >&5
49651 echo "${ECHO_T}yes" >&6; }
49652                     GCC_PCH=1
49653
49654 else
49655   echo "$as_me: failed program was:" >&5
49656 sed 's/^/| /' conftest.$ac_ext >&5
49657
49658
49659                     if test "$INTELCXX8" = "yes"; then
49660                         { echo "$as_me:$LINENO: result: yes" >&5
49661 echo "${ECHO_T}yes" >&6; }
49662                         ICC_PCH=1
49663                         if test "$INTELCXX10" = "yes"; then
49664                             ICC_PCH_CREATE_SWITCH="-pch-create"
49665                             ICC_PCH_USE_SWITCH="-pch-use"
49666                         else
49667                             ICC_PCH_CREATE_SWITCH="-create-pch"
49668                             ICC_PCH_USE_SWITCH="-use-pch"
49669                         fi
49670                     else
49671                         { echo "$as_me:$LINENO: result: no" >&5
49672 echo "${ECHO_T}no" >&6; }
49673                     fi
49674
49675 fi
49676
49677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49678             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49679                 USE_PCH=1
49680
49681 D='$'
49682 cat <<EOF >bk-make-pch
49683 #!/bin/sh
49684
49685 # This script is part of Bakefile (http://www.bakefile.org) autoconf
49686 # script. It is used to generated precompiled headers.
49687 #
49688 # Permission is given to use this file in any way.
49689
49690 outfile="${D}{1}"
49691 header="${D}{2}"
49692 shift
49693 shift
49694
49695 builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\`
49696
49697 compiler=""
49698 headerfile=""
49699
49700 while test ${D}{#} -gt 0; do
49701     add_to_cmdline=1
49702     case "${D}{1}" in
49703         -I* )
49704             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49705             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49706                 headerfile="${D}{incdir}/${D}{header}"
49707             fi
49708         ;;
49709         -use-pch|-use_pch|-pch-use )
49710             shift
49711             add_to_cmdline=0
49712         ;;
49713     esac
49714     if test ${D}add_to_cmdline = 1 ; then
49715         compiler="${D}{compiler} ${D}{1}"
49716     fi
49717     shift
49718 done
49719
49720 if test "x${D}{headerfile}" = "x" ; then
49721     echo "error: can't find header ${D}{header} in include paths" >&2
49722 else
49723     if test -f ${D}{outfile} ; then
49724         rm -f ${D}{outfile}
49725     else
49726         mkdir -p \`dirname ${D}{outfile}\`
49727     fi
49728     depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
49729     mkdir -p ${D}{builddir}/.deps
49730     if test "x${GCC_PCH}" = "x1" ; then
49731         # can do this because gcc is >= 3.4:
49732         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49733     elif test "x${ICC_PCH}" = "x1" ; then
49734         filename=pch_gen-${D}${D}
49735         file=${D}{filename}.c
49736         dfile=${D}{filename}.d
49737         cat > ${D}file <<EOT
49738 #include "${D}header"
49739 EOT
49740         # using -MF icc complains about differing command lines in creation/use
49741         ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\
49742           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49743           rm -f ${D}file ${D}dfile ${D}{filename}.o
49744     fi
49745     exit ${D}{?}
49746 fi
49747 EOF
49748
49749                 chmod +x bk-make-pch
49750                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
49751             fi
49752         fi
49753     fi
49754
49755
49756
49757
49758
49759
49760
49761     COND_BUILD_DEBUG="#"
49762     if test "x$BUILD" = "xdebug" ; then
49763         COND_BUILD_DEBUG=""
49764     fi
49765
49766     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49767     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49768         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49769     fi
49770
49771     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49772     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49773         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49774     fi
49775
49776     COND_BUILD_DEBUG_UNICODE_0="#"
49777     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49778         COND_BUILD_DEBUG_UNICODE_0=""
49779     fi
49780
49781     COND_BUILD_DEBUG_UNICODE_1="#"
49782     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49783         COND_BUILD_DEBUG_UNICODE_1=""
49784     fi
49785
49786     COND_BUILD_RELEASE="#"
49787     if test "x$BUILD" = "xrelease" ; then
49788         COND_BUILD_RELEASE=""
49789     fi
49790
49791     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49792     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49793         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49794     fi
49795
49796     COND_BUILD_RELEASE_UNICODE_0="#"
49797     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49798         COND_BUILD_RELEASE_UNICODE_0=""
49799     fi
49800
49801     COND_BUILD_RELEASE_UNICODE_1="#"
49802     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49803         COND_BUILD_RELEASE_UNICODE_1=""
49804     fi
49805
49806     COND_BUILD_debug="#"
49807     if test "x$BUILD" = "xdebug" ; then
49808         COND_BUILD_debug=""
49809     fi
49810
49811     COND_BUILD_debug_DEBUG_FLAG_default="#"
49812     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49813         COND_BUILD_debug_DEBUG_FLAG_default=""
49814     fi
49815
49816     COND_BUILD_debug_DEBUG_INFO_default="#"
49817     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49818         COND_BUILD_debug_DEBUG_INFO_default=""
49819     fi
49820
49821     COND_BUILD_debug_UNICODE_0="#"
49822     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49823         COND_BUILD_debug_UNICODE_0=""
49824     fi
49825
49826     COND_BUILD_debug_UNICODE_1="#"
49827     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49828         COND_BUILD_debug_UNICODE_1=""
49829     fi
49830
49831     COND_BUILD_release="#"
49832     if test "x$BUILD" = "xrelease" ; then
49833         COND_BUILD_release=""
49834     fi
49835
49836     COND_BUILD_release_DEBUG_INFO_default="#"
49837     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49838         COND_BUILD_release_DEBUG_INFO_default=""
49839     fi
49840
49841     COND_BUILD_release_UNICODE_0="#"
49842     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49843         COND_BUILD_release_UNICODE_0=""
49844     fi
49845
49846     COND_BUILD_release_UNICODE_1="#"
49847     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49848         COND_BUILD_release_UNICODE_1=""
49849     fi
49850
49851     COND_DEBUG_FLAG_1="#"
49852     if test "x$DEBUG_FLAG" = "x1" ; then
49853         COND_DEBUG_FLAG_1=""
49854     fi
49855
49856     COND_DEBUG_INFO_0="#"
49857     if test "x$DEBUG_INFO" = "x0" ; then
49858         COND_DEBUG_INFO_0=""
49859     fi
49860
49861     COND_DEBUG_INFO_1="#"
49862     if test "x$DEBUG_INFO" = "x1" ; then
49863         COND_DEBUG_INFO_1=""
49864     fi
49865
49866     COND_DEPS_TRACKING_0="#"
49867     if test "x$DEPS_TRACKING" = "x0" ; then
49868         COND_DEPS_TRACKING_0=""
49869     fi
49870
49871     COND_DEPS_TRACKING_1="#"
49872     if test "x$DEPS_TRACKING" = "x1" ; then
49873         COND_DEPS_TRACKING_1=""
49874     fi
49875
49876     COND_GCC_PCH_1="#"
49877     if test "x$GCC_PCH" = "x1" ; then
49878         COND_GCC_PCH_1=""
49879     fi
49880
49881     COND_ICC_PCH_1="#"
49882     if test "x$ICC_PCH" = "x1" ; then
49883         COND_ICC_PCH_1=""
49884     fi
49885
49886     COND_MONOLITHIC_0="#"
49887     if test "x$MONOLITHIC" = "x0" ; then
49888         COND_MONOLITHIC_0=""
49889     fi
49890
49891     COND_MONOLITHIC_0_SHARED_0="#"
49892     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49893         COND_MONOLITHIC_0_SHARED_0=""
49894     fi
49895
49896     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49897     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49898         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49899     fi
49900
49901     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49902     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49903         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49904     fi
49905
49906     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49907     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49908         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49909     fi
49910
49911     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49912     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49913         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49914     fi
49915
49916     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49917     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49918         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49919     fi
49920
49921     COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#"
49922     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
49923         COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1=""
49924     fi
49925
49926     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49927     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49928         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49929     fi
49930
49931     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
49932     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
49933         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
49934     fi
49935
49936     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49937     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49938         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49939     fi
49940
49941     COND_MONOLITHIC_0_SHARED_1="#"
49942     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49943         COND_MONOLITHIC_0_SHARED_1=""
49944     fi
49945
49946     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49947     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49948         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49949     fi
49950
49951     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49952     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49953         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49954     fi
49955
49956     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49957     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49958         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49959     fi
49960
49961     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49962     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49963         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49964     fi
49965
49966     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49967     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49968         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49969     fi
49970
49971     COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#"
49972     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then
49973         COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1=""
49974     fi
49975
49976     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49977     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49978         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49979     fi
49980
49981     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
49982     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
49983         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
49984     fi
49985
49986     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49987     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49988         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49989     fi
49990
49991     COND_MONOLITHIC_0_USE_AUI_1="#"
49992     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
49993         COND_MONOLITHIC_0_USE_AUI_1=""
49994     fi
49995
49996     COND_MONOLITHIC_0_USE_GUI_1="#"
49997     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
49998         COND_MONOLITHIC_0_USE_GUI_1=""
49999     fi
50000
50001     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
50002     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
50003         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
50004     fi
50005
50006     COND_MONOLITHIC_0_USE_HTML_1="#"
50007     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
50008         COND_MONOLITHIC_0_USE_HTML_1=""
50009     fi
50010
50011     COND_MONOLITHIC_0_USE_MEDIA_1="#"
50012     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
50013         COND_MONOLITHIC_0_USE_MEDIA_1=""
50014     fi
50015
50016     COND_MONOLITHIC_0_USE_PROPGRID_1="#"
50017     if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then
50018         COND_MONOLITHIC_0_USE_PROPGRID_1=""
50019     fi
50020
50021     COND_MONOLITHIC_0_USE_QA_1="#"
50022     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
50023         COND_MONOLITHIC_0_USE_QA_1=""
50024     fi
50025
50026     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
50027     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
50028         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
50029     fi
50030
50031     COND_MONOLITHIC_0_USE_STC_1="#"
50032     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
50033         COND_MONOLITHIC_0_USE_STC_1=""
50034     fi
50035
50036     COND_MONOLITHIC_0_USE_XRC_1="#"
50037     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
50038         COND_MONOLITHIC_0_USE_XRC_1=""
50039     fi
50040
50041     COND_MONOLITHIC_1="#"
50042     if test "x$MONOLITHIC" = "x1" ; then
50043         COND_MONOLITHIC_1=""
50044     fi
50045
50046     COND_MONOLITHIC_1_SHARED_0="#"
50047     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
50048         COND_MONOLITHIC_1_SHARED_0=""
50049     fi
50050
50051     COND_MONOLITHIC_1_SHARED_1="#"
50052     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
50053         COND_MONOLITHIC_1_SHARED_1=""
50054     fi
50055
50056     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
50057     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
50058         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
50059     fi
50060
50061     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
50062     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
50063         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
50064     fi
50065
50066     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
50067     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50068         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
50069     fi
50070
50071     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
50072     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
50073         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
50074     fi
50075
50076     COND_PLATFORM_MACOSX_1="#"
50077     if test "x$PLATFORM_MACOSX" = "x1" ; then
50078         COND_PLATFORM_MACOSX_1=""
50079     fi
50080
50081     COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#"
50082     if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then
50083         COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0=""
50084     fi
50085
50086     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50087     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50088         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50089     fi
50090
50091     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50092     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50093         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
50094     fi
50095
50096     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50097     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50098         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50099     fi
50100
50101     COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50102     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50103         COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
50104     fi
50105
50106     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
50107     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
50108         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
50109     fi
50110
50111     COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#"
50112     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50113         COND_PLATFORM_MACOSX_1_USE_OPENGL_1=""
50114     fi
50115
50116     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
50117     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50118         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
50119     fi
50120
50121     COND_PLATFORM_MACOS_1="#"
50122     if test "x$PLATFORM_MACOS" = "x1" ; then
50123         COND_PLATFORM_MACOS_1=""
50124     fi
50125
50126     COND_PLATFORM_MAC_0="#"
50127     if test "x$PLATFORM_MAC" = "x0" ; then
50128         COND_PLATFORM_MAC_0=""
50129     fi
50130
50131     COND_PLATFORM_MAC_1="#"
50132     if test "x$PLATFORM_MAC" = "x1" ; then
50133         COND_PLATFORM_MAC_1=""
50134     fi
50135
50136     COND_PLATFORM_MSDOS_0="#"
50137     if test "x$PLATFORM_MSDOS" = "x0" ; then
50138         COND_PLATFORM_MSDOS_0=""
50139     fi
50140
50141     COND_PLATFORM_MSDOS_1="#"
50142     if test "x$PLATFORM_MSDOS" = "x1" ; then
50143         COND_PLATFORM_MSDOS_1=""
50144     fi
50145
50146     COND_PLATFORM_OS2_1="#"
50147     if test "x$PLATFORM_OS2" = "x1" ; then
50148         COND_PLATFORM_OS2_1=""
50149     fi
50150
50151     COND_PLATFORM_UNIX_0="#"
50152     if test "x$PLATFORM_UNIX" = "x0" ; then
50153         COND_PLATFORM_UNIX_0=""
50154     fi
50155
50156     COND_PLATFORM_UNIX_1="#"
50157     if test "x$PLATFORM_UNIX" = "x1" ; then
50158         COND_PLATFORM_UNIX_1=""
50159     fi
50160
50161     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
50162     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
50163         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
50164     fi
50165
50166     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
50167     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50168         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
50169     fi
50170
50171     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
50172     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
50173         COND_PLATFORM_UNIX_1_USE_GUI_1=""
50174     fi
50175
50176     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
50177     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
50178         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
50179     fi
50180
50181     COND_PLATFORM_WIN32_0="#"
50182     if test "x$PLATFORM_WIN32" = "x0" ; then
50183         COND_PLATFORM_WIN32_0=""
50184     fi
50185
50186     COND_PLATFORM_WIN32_1="#"
50187     if test "x$PLATFORM_WIN32" = "x1" ; then
50188         COND_PLATFORM_WIN32_1=""
50189     fi
50190
50191     COND_SHARED_0="#"
50192     if test "x$SHARED" = "x0" ; then
50193         COND_SHARED_0=""
50194     fi
50195
50196     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
50197     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
50198         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
50199     fi
50200
50201     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
50202     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50203         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
50204     fi
50205
50206     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
50207     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
50208         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
50209     fi
50210
50211     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
50212     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50213         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
50214     fi
50215
50216     COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50217     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50218         COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50219     fi
50220
50221     COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50222     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50223         COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50224     fi
50225
50226     COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50227     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50228         COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50229     fi
50230
50231     COND_SHARED_0_USE_STC_1="#"
50232     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
50233         COND_SHARED_0_USE_STC_1=""
50234     fi
50235
50236     COND_SHARED_0_wxUSE_EXPAT_builtin="#"
50237     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
50238         COND_SHARED_0_wxUSE_EXPAT_builtin=""
50239     fi
50240
50241     COND_SHARED_0_wxUSE_REGEX_builtin="#"
50242     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
50243         COND_SHARED_0_wxUSE_REGEX_builtin=""
50244     fi
50245
50246     COND_SHARED_0_wxUSE_ZLIB_builtin="#"
50247     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
50248         COND_SHARED_0_wxUSE_ZLIB_builtin=""
50249     fi
50250
50251     COND_SHARED_1="#"
50252     if test "x$SHARED" = "x1" ; then
50253         COND_SHARED_1=""
50254     fi
50255
50256     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
50257     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50258         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
50259     fi
50260
50261     COND_TOOLKIT_="#"
50262     if test "x$TOOLKIT" = "x" ; then
50263         COND_TOOLKIT_=""
50264     fi
50265
50266     COND_TOOLKIT_COCOA="#"
50267     if test "x$TOOLKIT" = "xCOCOA" ; then
50268         COND_TOOLKIT_COCOA=""
50269     fi
50270
50271     COND_TOOLKIT_COCOA_USE_GUI_1="#"
50272     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
50273         COND_TOOLKIT_COCOA_USE_GUI_1=""
50274     fi
50275
50276     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
50277     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50278         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
50279     fi
50280
50281     COND_TOOLKIT_DFB="#"
50282     if test "x$TOOLKIT" = "xDFB" ; then
50283         COND_TOOLKIT_DFB=""
50284     fi
50285
50286     COND_TOOLKIT_DFB_USE_GUI_1="#"
50287     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
50288         COND_TOOLKIT_DFB_USE_GUI_1=""
50289     fi
50290
50291     COND_TOOLKIT_GTK="#"
50292     if test "x$TOOLKIT" = "xGTK" ; then
50293         COND_TOOLKIT_GTK=""
50294     fi
50295
50296     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
50297     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
50298         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
50299     fi
50300
50301     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
50302     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
50303         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
50304     fi
50305
50306     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
50307     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
50308         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
50309     fi
50310
50311     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
50312     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50313         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
50314     fi
50315
50316     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
50317     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
50318         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
50319     fi
50320
50321     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
50322     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50323         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
50324     fi
50325
50326     COND_TOOLKIT_GTK_USE_GUI_1="#"
50327     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
50328         COND_TOOLKIT_GTK_USE_GUI_1=""
50329     fi
50330
50331     COND_TOOLKIT_MAC="#"
50332     if test "x$TOOLKIT" = "xMAC" ; then
50333         COND_TOOLKIT_MAC=""
50334     fi
50335
50336     COND_TOOLKIT_MGL="#"
50337     if test "x$TOOLKIT" = "xMGL" ; then
50338         COND_TOOLKIT_MGL=""
50339     fi
50340
50341     COND_TOOLKIT_MGL_USE_GUI_1="#"
50342     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
50343         COND_TOOLKIT_MGL_USE_GUI_1=""
50344     fi
50345
50346     COND_TOOLKIT_MOTIF="#"
50347     if test "x$TOOLKIT" = "xMOTIF" ; then
50348         COND_TOOLKIT_MOTIF=""
50349     fi
50350
50351     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
50352     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
50353         COND_TOOLKIT_MOTIF_USE_GUI_1=""
50354     fi
50355
50356     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
50357     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50358         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
50359     fi
50360
50361     COND_TOOLKIT_MSW="#"
50362     if test "x$TOOLKIT" = "xMSW" ; then
50363         COND_TOOLKIT_MSW=""
50364     fi
50365
50366     COND_TOOLKIT_MSW_USE_GUI_1="#"
50367     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
50368         COND_TOOLKIT_MSW_USE_GUI_1=""
50369     fi
50370
50371     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
50372     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50373         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
50374     fi
50375
50376     COND_TOOLKIT_MSW_WXUNIV_0="#"
50377     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
50378         COND_TOOLKIT_MSW_WXUNIV_0=""
50379     fi
50380
50381     COND_TOOLKIT_OSX_CARBON="#"
50382     if test "x$TOOLKIT" = "xOSX_CARBON" ; then
50383         COND_TOOLKIT_OSX_CARBON=""
50384     fi
50385
50386     COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#"
50387     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then
50388         COND_TOOLKIT_OSX_CARBON_USE_GUI_1=""
50389     fi
50390
50391     COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#"
50392     if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50393         COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0=""
50394     fi
50395
50396     COND_TOOLKIT_OSX_COCOA="#"
50397     if test "x$TOOLKIT" = "xOSX_COCOA" ; then
50398         COND_TOOLKIT_OSX_COCOA=""
50399     fi
50400
50401     COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#"
50402     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then
50403         COND_TOOLKIT_OSX_COCOA_USE_GUI_1=""
50404     fi
50405
50406     COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#"
50407     if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50408         COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0=""
50409     fi
50410
50411     COND_TOOLKIT_OSX_IPHONE="#"
50412     if test "x$TOOLKIT" = "xOSX_IPHONE" ; then
50413         COND_TOOLKIT_OSX_IPHONE=""
50414     fi
50415
50416     COND_TOOLKIT_PM="#"
50417     if test "x$TOOLKIT" = "xPM" ; then
50418         COND_TOOLKIT_PM=""
50419     fi
50420
50421     COND_TOOLKIT_PM_USE_GUI_1="#"
50422     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
50423         COND_TOOLKIT_PM_USE_GUI_1=""
50424     fi
50425
50426     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
50427     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50428         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
50429     fi
50430
50431     COND_TOOLKIT_WINCE="#"
50432     if test "x$TOOLKIT" = "xWINCE" ; then
50433         COND_TOOLKIT_WINCE=""
50434     fi
50435
50436     COND_TOOLKIT_WINCE_USE_GUI_1="#"
50437     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
50438         COND_TOOLKIT_WINCE_USE_GUI_1=""
50439     fi
50440
50441     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
50442     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50443         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
50444     fi
50445
50446     COND_TOOLKIT_WINCE_WXUNIV_0="#"
50447     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
50448         COND_TOOLKIT_WINCE_WXUNIV_0=""
50449     fi
50450
50451     COND_TOOLKIT_X11="#"
50452     if test "x$TOOLKIT" = "xX11" ; then
50453         COND_TOOLKIT_X11=""
50454     fi
50455
50456     COND_TOOLKIT_X11_USE_GUI_1="#"
50457     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
50458         COND_TOOLKIT_X11_USE_GUI_1=""
50459     fi
50460
50461     COND_UNICODE_1="#"
50462     if test "x$UNICODE" = "x1" ; then
50463         COND_UNICODE_1=""
50464     fi
50465
50466     COND_USE_EXCEPTIONS_0="#"
50467     if test "x$USE_EXCEPTIONS" = "x0" ; then
50468         COND_USE_EXCEPTIONS_0=""
50469     fi
50470
50471     COND_USE_EXCEPTIONS_1="#"
50472     if test "x$USE_EXCEPTIONS" = "x1" ; then
50473         COND_USE_EXCEPTIONS_1=""
50474     fi
50475
50476     COND_USE_GUI_0="#"
50477     if test "x$USE_GUI" = "x0" ; then
50478         COND_USE_GUI_0=""
50479     fi
50480
50481     COND_USE_GUI_1="#"
50482     if test "x$USE_GUI" = "x1" ; then
50483         COND_USE_GUI_1=""
50484     fi
50485
50486     COND_USE_GUI_1_USE_OPENGL_1="#"
50487     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
50488         COND_USE_GUI_1_USE_OPENGL_1=""
50489     fi
50490
50491     COND_USE_GUI_1_WXUNIV_0="#"
50492     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
50493         COND_USE_GUI_1_WXUNIV_0=""
50494     fi
50495
50496     COND_USE_GUI_1_WXUNIV_1="#"
50497     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
50498         COND_USE_GUI_1_WXUNIV_1=""
50499     fi
50500
50501     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
50502     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50503         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
50504     fi
50505
50506     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
50507     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50508         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
50509     fi
50510
50511     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
50512     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50513         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
50514     fi
50515
50516     COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#"
50517     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50518         COND_USE_GUI_1_wxUSE_LIBJPEG_builtin=""
50519     fi
50520
50521     COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#"
50522     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50523         COND_USE_GUI_1_wxUSE_LIBPNG_builtin=""
50524     fi
50525
50526     COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#"
50527     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50528         COND_USE_GUI_1_wxUSE_LIBTIFF_builtin=""
50529     fi
50530
50531     COND_USE_OPENGL_1="#"
50532     if test "x$USE_OPENGL" = "x1" ; then
50533         COND_USE_OPENGL_1=""
50534     fi
50535
50536     COND_USE_PCH_1="#"
50537     if test "x$USE_PCH" = "x1" ; then
50538         COND_USE_PCH_1=""
50539     fi
50540
50541     COND_USE_PLUGINS_0="#"
50542     if test "x$USE_PLUGINS" = "x0" ; then
50543         COND_USE_PLUGINS_0=""
50544     fi
50545
50546     COND_USE_RTTI_0="#"
50547     if test "x$USE_RTTI" = "x0" ; then
50548         COND_USE_RTTI_0=""
50549     fi
50550
50551     COND_USE_RTTI_1="#"
50552     if test "x$USE_RTTI" = "x1" ; then
50553         COND_USE_RTTI_1=""
50554     fi
50555
50556     COND_USE_SOSYMLINKS_1="#"
50557     if test "x$USE_SOSYMLINKS" = "x1" ; then
50558         COND_USE_SOSYMLINKS_1=""
50559     fi
50560
50561     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
50562     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
50563         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
50564     fi
50565
50566     COND_USE_SOVERLINUX_1="#"
50567     if test "x$USE_SOVERLINUX" = "x1" ; then
50568         COND_USE_SOVERLINUX_1=""
50569     fi
50570
50571     COND_USE_SOVERSION_0="#"
50572     if test "x$USE_SOVERSION" = "x0" ; then
50573         COND_USE_SOVERSION_0=""
50574     fi
50575
50576     COND_USE_SOVERSOLARIS_1="#"
50577     if test "x$USE_SOVERSOLARIS" = "x1" ; then
50578         COND_USE_SOVERSOLARIS_1=""
50579     fi
50580
50581     COND_USE_STC_1="#"
50582     if test "x$USE_STC" = "x1" ; then
50583         COND_USE_STC_1=""
50584     fi
50585
50586     COND_USE_THREADS_0="#"
50587     if test "x$USE_THREADS" = "x0" ; then
50588         COND_USE_THREADS_0=""
50589     fi
50590
50591     COND_USE_THREADS_1="#"
50592     if test "x$USE_THREADS" = "x1" ; then
50593         COND_USE_THREADS_1=""
50594     fi
50595
50596     COND_USE_XRC_1="#"
50597     if test "x$USE_XRC" = "x1" ; then
50598         COND_USE_XRC_1=""
50599     fi
50600
50601     COND_WINDOWS_IMPLIB_1="#"
50602     if test "x$WINDOWS_IMPLIB" = "x1" ; then
50603         COND_WINDOWS_IMPLIB_1=""
50604     fi
50605
50606     COND_WITH_PLUGIN_SDL_1="#"
50607     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
50608         COND_WITH_PLUGIN_SDL_1=""
50609     fi
50610
50611     COND_WXUNIV_0="#"
50612     if test "x$WXUNIV" = "x0" ; then
50613         COND_WXUNIV_0=""
50614     fi
50615
50616     COND_WXUNIV_1="#"
50617     if test "x$WXUNIV" = "x1" ; then
50618         COND_WXUNIV_1=""
50619     fi
50620
50621     COND_WXUSE_EXPAT_BUILTIN="#"
50622     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50623         COND_WXUSE_EXPAT_BUILTIN=""
50624     fi
50625
50626     COND_WXUSE_LIBJPEG_BUILTIN="#"
50627     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50628         COND_WXUSE_LIBJPEG_BUILTIN=""
50629     fi
50630
50631     COND_WXUSE_LIBPNG_BUILTIN="#"
50632     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50633         COND_WXUSE_LIBPNG_BUILTIN=""
50634     fi
50635
50636     COND_WXUSE_LIBTIFF_BUILTIN="#"
50637     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50638         COND_WXUSE_LIBTIFF_BUILTIN=""
50639     fi
50640
50641     COND_WXUSE_REGEX_BUILTIN="#"
50642     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50643         COND_WXUSE_REGEX_BUILTIN=""
50644     fi
50645
50646     COND_WXUSE_ZLIB_BUILTIN="#"
50647     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50648         COND_WXUSE_ZLIB_BUILTIN=""
50649     fi
50650
50651     COND_wxUSE_EXPAT_builtin="#"
50652     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
50653         COND_wxUSE_EXPAT_builtin=""
50654     fi
50655
50656     COND_wxUSE_LIBJPEG_builtin="#"
50657     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
50658         COND_wxUSE_LIBJPEG_builtin=""
50659     fi
50660
50661     COND_wxUSE_LIBPNG_builtin="#"
50662     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
50663         COND_wxUSE_LIBPNG_builtin=""
50664     fi
50665
50666     COND_wxUSE_LIBTIFF_builtin="#"
50667     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
50668         COND_wxUSE_LIBTIFF_builtin=""
50669     fi
50670
50671     COND_wxUSE_REGEX_builtin="#"
50672     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
50673         COND_wxUSE_REGEX_builtin=""
50674     fi
50675
50676     COND_wxUSE_ZLIB_builtin="#"
50677     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
50678         COND_wxUSE_ZLIB_builtin=""
50679     fi
50680
50681
50682
50683     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
50684         { { 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
50685 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;}
50686    { (exit 1); exit 1; }; }
50687     fi
50688
50689     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
50690         { { 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
50691 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;}
50692    { (exit 1); exit 1; }; }
50693     fi
50694
50695
50696 case ${INSTALL} in
50697   /* ) # Absolute
50698      ;;
50699   ?:* ) # Drive letter, considered as absolute.
50700      ;;
50701   *)
50702      INSTALL=`pwd`/${INSTALL} ;;
50703 esac
50704
50705 if test "$wxUSE_GUI" = "yes"; then
50706
50707 if test "$wxUSE_MSW" = 1 ; then
50708     if test "x$WINDRES" = "x"; then
50709         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
50710 echo "$as_me: error: Required windres program not found" >&2;}
50711    { (exit 1); exit 1; }; }
50712     fi
50713
50714     RESCOMP="$WINDRES"
50715 fi
50716
50717 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
50718             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
50719     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
50720
50721         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
50722
50723     # Extract the first word of "DeRez", so it can be a program name with args.
50724 set dummy DeRez; ac_word=$2
50725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50727 if test "${ac_cv_prog_DEREZ+set}" = set; then
50728   echo $ECHO_N "(cached) $ECHO_C" >&6
50729 else
50730   if test -n "$DEREZ"; then
50731   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
50732 else
50733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50734 for as_dir in $PATH
50735 do
50736   IFS=$as_save_IFS
50737   test -z "$as_dir" && as_dir=.
50738   for ac_exec_ext in '' $ac_executable_extensions; do
50739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50740     ac_cv_prog_DEREZ="DeRez"
50741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50742     break 2
50743   fi
50744 done
50745 done
50746 IFS=$as_save_IFS
50747
50748   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
50749 fi
50750 fi
50751 DEREZ=$ac_cv_prog_DEREZ
50752 if test -n "$DEREZ"; then
50753   { echo "$as_me:$LINENO: result: $DEREZ" >&5
50754 echo "${ECHO_T}$DEREZ" >&6; }
50755 else
50756   { echo "$as_me:$LINENO: result: no" >&5
50757 echo "${ECHO_T}no" >&6; }
50758 fi
50759
50760
50761
50762     MACSETFILE="\$(SETFILE)"
50763
50764             if test "$wxUSE_OSX_CARBON" = 1; then
50765         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
50766         RESCOMP="$REZ"
50767         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
50768     else
50769         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
50770         RESCOMP="cat /dev/null \| $REZ"
50771         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
50772     fi
50773
50774 else
50775         MACSETFILE="@true"
50776
50777     if test "$wxUSE_PM" = 1; then
50778         RESCOMP="emxbind"
50779         WXCONFIG_RESFLAGS="-ep"
50780
50781                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
50782     else
50783         POSTLINK_COMMAND="@true"
50784     fi
50785 fi
50786
50787 fi
50788
50789
50790 if test $GCC_PCH = 1
50791 then
50792     if test "$wx_cv_gcc_pch_bug" = yes; then
50793         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
50794 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
50795         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
50796 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
50797         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
50798 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
50799     fi
50800
50801     # Our WX_PRECOMP flag does not make sense for any language except C++ because
50802     # the headers that benefit from precompilation are mostly C++ headers.
50803     CXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50804     # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this:
50805     #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS"
50806 fi
50807
50808
50809 if test "$wxUSE_MAC" = 1 ; then
50810     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
50811         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
50812         mv temp bk-deps
50813         chmod +x bk-deps
50814     fi
50815 fi
50816
50817 if test "$wxUSE_SHARED" = "yes"; then
50818                 case "${host}" in
50819       *-pc-os2_emx | *-pc-os2-emx )
50820         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50821         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50822         cp -p ${srcdir}/src/os2/dllnames.sh .
50823         cp -p ${srcdir}/src/os2/dllar.sh .
50824       ;;
50825     esac
50826 fi
50827 if test "$wxUSE_OMF" = "yes"; then
50828     case "${host}" in
50829       *-pc-os2_emx | *-pc-os2-emx )
50830         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
50831         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50832         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
50833       ;;
50834     esac
50835 fi
50836
50837 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
50838
50839
50840 case "${host}" in
50841     *-*-solaris2* )
50842                         if test "$GCC" = yes; then
50843             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
50844             LIBS=`echo $LIBS | sed 's/-mt//'`
50845             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
50846         fi
50847         ;;
50848
50849     *-*-linux* )
50850                         if test "x$SUNCXX" = xyes; then
50851             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
50852             LIBS=`echo $LIBS | sed 's/-pthread//'`
50853             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
50854         fi
50855         ;;
50856 esac
50857
50858 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
50859 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
50860 OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY"
50861 OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY"
50862
50863 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
50864
50865
50866
50867
50868
50869
50870
50871
50872
50873
50874
50875
50876
50877
50878
50879
50880
50881
50882
50883
50884
50885
50886
50887
50888
50889
50890
50891
50892
50893
50894
50895
50896
50897
50898
50899
50900
50901
50902
50903
50904
50905
50906
50907
50908
50909
50910
50911
50912
50913
50914
50915
50916
50917
50918
50919
50920
50921
50922
50923
50924 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50925 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50926 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50927 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50928   echo $ECHO_N "(cached) $ECHO_C" >&6
50929 else
50930   cat >conftest.make <<\_ACEOF
50931 SHELL = /bin/sh
50932 all:
50933         @echo '@@@%%%=$(MAKE)=@@@%%%'
50934 _ACEOF
50935 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50936 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50937   *@@@%%%=?*=@@@%%%*)
50938     eval ac_cv_prog_make_${ac_make}_set=yes;;
50939   *)
50940     eval ac_cv_prog_make_${ac_make}_set=no;;
50941 esac
50942 rm -f conftest.make
50943 fi
50944 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50945   { echo "$as_me:$LINENO: result: yes" >&5
50946 echo "${ECHO_T}yes" >&6; }
50947   SET_MAKE=
50948 else
50949   { echo "$as_me:$LINENO: result: no" >&5
50950 echo "${ECHO_T}no" >&6; }
50951   SET_MAKE="MAKE=${MAKE-make}"
50952 fi
50953
50954
50955
50956 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50957
50958
50959 if test "$USE_WIN32" = 1; then
50960     ac_config_commands="$ac_config_commands
50961             rcdefs.h
50962         "
50963
50964 fi
50965
50966 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
50967
50968
50969 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
50970
50971
50972 ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh"
50973
50974
50975 if test "$wx_cv_version_script" = "yes"; then
50976     ac_config_files="$ac_config_files version-script"
50977
50978 fi
50979 ac_config_files="$ac_config_files Makefile"
50980
50981
50982 ac_config_commands="$ac_config_commands wx-config"
50983
50984
50985
50986 if test "$wxWITH_SUBDIRS" != "no"; then
50987 if test "$wxUSE_GUI" = "yes"; then
50988     SUBDIRS="samples demos utils"
50989 else
50990             SUBDIRS="samples utils"
50991 fi
50992
50993
50994
50995 # Check whether --with-cppunit-prefix was given.
50996 if test "${with_cppunit_prefix+set}" = set; then
50997   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
50998 else
50999   cppunit_config_prefix=""
51000 fi
51001
51002
51003 # Check whether --with-cppunit-exec-prefix was given.
51004 if test "${with_cppunit_exec_prefix+set}" = set; then
51005   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
51006 else
51007   cppunit_config_exec_prefix=""
51008 fi
51009
51010
51011   if test x$cppunit_config_exec_prefix != x ; then
51012      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
51013      if test x${CPPUNIT_CONFIG+set} != xset ; then
51014         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
51015      fi
51016   fi
51017   if test x$cppunit_config_prefix != x ; then
51018      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
51019      if test x${CPPUNIT_CONFIG+set} != xset ; then
51020         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
51021      fi
51022   fi
51023
51024   # Extract the first word of "cppunit-config", so it can be a program name with args.
51025 set dummy cppunit-config; ac_word=$2
51026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51028 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
51029   echo $ECHO_N "(cached) $ECHO_C" >&6
51030 else
51031   case $CPPUNIT_CONFIG in
51032   [\\/]* | ?:[\\/]*)
51033   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
51034   ;;
51035   *)
51036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51037 for as_dir in $PATH
51038 do
51039   IFS=$as_save_IFS
51040   test -z "$as_dir" && as_dir=.
51041   for ac_exec_ext in '' $ac_executable_extensions; do
51042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51043     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
51044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51045     break 2
51046   fi
51047 done
51048 done
51049 IFS=$as_save_IFS
51050
51051   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
51052   ;;
51053 esac
51054 fi
51055 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
51056 if test -n "$CPPUNIT_CONFIG"; then
51057   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
51058 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
51059 else
51060   { echo "$as_me:$LINENO: result: no" >&5
51061 echo "${ECHO_T}no" >&6; }
51062 fi
51063
51064
51065   cppunit_version_min=1.8.0
51066
51067   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
51068 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
51069   no_cppunit=""
51070   if test "$CPPUNIT_CONFIG" = "no" ; then
51071     { echo "$as_me:$LINENO: result: no" >&5
51072 echo "${ECHO_T}no" >&6; }
51073     no_cppunit=yes
51074   else
51075     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
51076     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
51077     cppunit_version=`$CPPUNIT_CONFIG --version`
51078
51079     cppunit_major_version=`echo $cppunit_version | \
51080            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51081     cppunit_minor_version=`echo $cppunit_version | \
51082            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51083     cppunit_micro_version=`echo $cppunit_version | \
51084            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51085
51086     cppunit_major_min=`echo $cppunit_version_min | \
51087            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
51088     cppunit_minor_min=`echo $cppunit_version_min | \
51089            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
51090     cppunit_micro_min=`echo $cppunit_version_min | \
51091            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
51092
51093     cppunit_version_proper=`expr \
51094         $cppunit_major_version \> $cppunit_major_min \| \
51095         $cppunit_major_version \= $cppunit_major_min \& \
51096         $cppunit_minor_version \> $cppunit_minor_min \| \
51097         $cppunit_major_version \= $cppunit_major_min \& \
51098         $cppunit_minor_version \= $cppunit_minor_min \& \
51099         $cppunit_micro_version \>= $cppunit_micro_min `
51100
51101     if test "$cppunit_version_proper" = "1" ; then
51102       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
51103 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
51104     else
51105       { echo "$as_me:$LINENO: result: no" >&5
51106 echo "${ECHO_T}no" >&6; }
51107       no_cppunit=yes
51108     fi
51109   fi
51110
51111   if test "x$no_cppunit" = x ; then
51112      SUBDIRS="$SUBDIRS tests"
51113   else
51114      CPPUNIT_CFLAGS=""
51115      CPPUNIT_LIBS=""
51116      :
51117   fi
51118
51119
51120
51121
51122
51123 for subdir in $SUBDIRS; do
51124     if test -d ${srcdir}/${subdir} ; then
51125         if test "$wxUSE_GUI" = "yes"; then
51126             if test ${subdir} = "samples"; then
51127                                                 makefiles="samples/Makefile.in $makefiles"
51128                 for sample in $SAMPLES_SUBDIRS; do
51129                     if test -d $srcdir/samples/$sample; then
51130                         makefiles="samples/$sample/Makefile.in $makefiles"
51131                     fi
51132                 done
51133             else
51134                                                                 disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'`
51135                 eval "disabled=\$$disabled_var"
51136                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
51137                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
51138             fi
51139         else
51140                                     if test ${subdir} = "samples"; then
51141                                                 makefiles="samples/Makefile.in $makefiles"
51142                 for sample in `echo $SAMPLES_SUBDIRS`; do
51143                     if test -d $srcdir/samples/$sample; then
51144                         makefiles="samples/$sample/Makefile.in $makefiles"
51145                     fi
51146                 done
51147             elif test ${subdir} = "utils"; then
51148                 makefiles=""
51149                 for util in ifacecheck ; do
51150                     if test -d $srcdir/utils/$util ; then
51151                         makefiles="utils/$util/src/Makefile.in \
51152                                    $makefiles"
51153                     fi
51154                 done
51155             else
51156                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
51157             fi
51158         fi
51159
51160         for mkin in $makefiles ; do
51161             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
51162             ac_config_files="$ac_config_files $mk"
51163
51164         done
51165     fi
51166 done
51167 fi
51168 cat >confcache <<\_ACEOF
51169 # This file is a shell script that caches the results of configure
51170 # tests run on this system so they can be shared between configure
51171 # scripts and configure runs, see configure's option --config-cache.
51172 # It is not useful on other systems.  If it contains results you don't
51173 # want to keep, you may remove or edit it.
51174 #
51175 # config.status only pays attention to the cache file if you give it
51176 # the --recheck option to rerun configure.
51177 #
51178 # `ac_cv_env_foo' variables (set or unset) will be overridden when
51179 # loading this file, other *unset* `ac_cv_foo' will be assigned the
51180 # following values.
51181
51182 _ACEOF
51183
51184 # The following way of writing the cache mishandles newlines in values,
51185 # but we know of no workaround that is simple, portable, and efficient.
51186 # So, we kill variables containing newlines.
51187 # Ultrix sh set writes to stderr and can't be redirected directly,
51188 # and sets the high bit in the cache file unless we assign to the vars.
51189 (
51190   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
51191     eval ac_val=\$$ac_var
51192     case $ac_val in #(
51193     *${as_nl}*)
51194       case $ac_var in #(
51195       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
51196 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
51197       esac
51198       case $ac_var in #(
51199       _ | IFS | as_nl) ;; #(
51200       *) $as_unset $ac_var ;;
51201       esac ;;
51202     esac
51203   done
51204
51205   (set) 2>&1 |
51206     case $as_nl`(ac_space=' '; set) 2>&1` in #(
51207     *${as_nl}ac_space=\ *)
51208       # `set' does not quote correctly, so add quotes (double-quote
51209       # substitution turns \\\\ into \\, and sed turns \\ into \).
51210       sed -n \
51211         "s/'/'\\\\''/g;
51212           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51213       ;; #(
51214     *)
51215       # `set' quotes correctly as required by POSIX, so do not add quotes.
51216       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
51217       ;;
51218     esac |
51219     sort
51220 ) |
51221   sed '
51222      /^ac_cv_env_/b end
51223      t clear
51224      :clear
51225      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51226      t end
51227      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51228      :end' >>confcache
51229 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
51230   if test -w "$cache_file"; then
51231     test "x$cache_file" != "x/dev/null" &&
51232       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
51233 echo "$as_me: updating cache $cache_file" >&6;}
51234     cat confcache >$cache_file
51235   else
51236     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
51237 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
51238   fi
51239 fi
51240 rm -f confcache
51241
51242 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51243 # Let make expand exec_prefix.
51244 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51245
51246 DEFS=-DHAVE_CONFIG_H
51247
51248 ac_libobjs=
51249 ac_ltlibobjs=
51250 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51251   # 1. Remove the extension, and $U if already installed.
51252   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
51253   ac_i=`echo "$ac_i" | sed "$ac_script"`
51254   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
51255   #    will be set to the directory where LIBOBJS objects are built.
51256   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
51257   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
51258 done
51259 LIBOBJS=$ac_libobjs
51260
51261 LTLIBOBJS=$ac_ltlibobjs
51262
51263
51264
51265 : ${CONFIG_STATUS=./config.status}
51266 ac_clean_files_save=$ac_clean_files
51267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51268 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51269 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51270 cat >$CONFIG_STATUS <<_ACEOF
51271 #! $SHELL
51272 # Generated by $as_me.
51273 # Run this file to recreate the current configuration.
51274 # Compiler output produced by configure, useful for debugging
51275 # configure, is in config.log if it exists.
51276
51277 debug=false
51278 ac_cs_recheck=false
51279 ac_cs_silent=false
51280 SHELL=\${CONFIG_SHELL-$SHELL}
51281 _ACEOF
51282
51283 cat >>$CONFIG_STATUS <<\_ACEOF
51284 ## --------------------- ##
51285 ## M4sh Initialization.  ##
51286 ## --------------------- ##
51287
51288 # Be more Bourne compatible
51289 DUALCASE=1; export DUALCASE # for MKS sh
51290 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51291   emulate sh
51292   NULLCMD=:
51293   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51294   # is contrary to our usage.  Disable this feature.
51295   alias -g '${1+"$@"}'='"$@"'
51296   setopt NO_GLOB_SUBST
51297 else
51298   case `(set -o) 2>/dev/null` in
51299   *posix*) set -o posix ;;
51300 esac
51301
51302 fi
51303
51304
51305
51306
51307 # PATH needs CR
51308 # Avoid depending upon Character Ranges.
51309 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51310 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51311 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51312 as_cr_digits='0123456789'
51313 as_cr_alnum=$as_cr_Letters$as_cr_digits
51314
51315 # The user is always right.
51316 if test "${PATH_SEPARATOR+set}" != set; then
51317   echo "#! /bin/sh" >conf$$.sh
51318   echo  "exit 0"   >>conf$$.sh
51319   chmod +x conf$$.sh
51320   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51321     PATH_SEPARATOR=';'
51322   else
51323     PATH_SEPARATOR=:
51324   fi
51325   rm -f conf$$.sh
51326 fi
51327
51328 # Support unset when possible.
51329 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51330   as_unset=unset
51331 else
51332   as_unset=false
51333 fi
51334
51335
51336 # IFS
51337 # We need space, tab and new line, in precisely that order.  Quoting is
51338 # there to prevent editors from complaining about space-tab.
51339 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51340 # splitting by setting IFS to empty value.)
51341 as_nl='
51342 '
51343 IFS=" ""        $as_nl"
51344
51345 # Find who we are.  Look in the path if we contain no directory separator.
51346 case $0 in
51347   *[\\/]* ) as_myself=$0 ;;
51348   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51349 for as_dir in $PATH
51350 do
51351   IFS=$as_save_IFS
51352   test -z "$as_dir" && as_dir=.
51353   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51354 done
51355 IFS=$as_save_IFS
51356
51357      ;;
51358 esac
51359 # We did not find ourselves, most probably we were run as `sh COMMAND'
51360 # in which case we are not to be found in the path.
51361 if test "x$as_myself" = x; then
51362   as_myself=$0
51363 fi
51364 if test ! -f "$as_myself"; then
51365   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51366   { (exit 1); exit 1; }
51367 fi
51368
51369 # Work around bugs in pre-3.0 UWIN ksh.
51370 for as_var in ENV MAIL MAILPATH
51371 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51372 done
51373 PS1='$ '
51374 PS2='> '
51375 PS4='+ '
51376
51377 # NLS nuisances.
51378 for as_var in \
51379   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51380   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51381   LC_TELEPHONE LC_TIME
51382 do
51383   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51384     eval $as_var=C; export $as_var
51385   else
51386     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51387   fi
51388 done
51389
51390 # Required to use basename.
51391 if expr a : '\(a\)' >/dev/null 2>&1 &&
51392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51393   as_expr=expr
51394 else
51395   as_expr=false
51396 fi
51397
51398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51399   as_basename=basename
51400 else
51401   as_basename=false
51402 fi
51403
51404
51405 # Name of the executable.
51406 as_me=`$as_basename -- "$0" ||
51407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51408          X"$0" : 'X\(//\)$' \| \
51409          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51410 echo X/"$0" |
51411     sed '/^.*\/\([^/][^/]*\)\/*$/{
51412             s//\1/
51413             q
51414           }
51415           /^X\/\(\/\/\)$/{
51416             s//\1/
51417             q
51418           }
51419           /^X\/\(\/\).*/{
51420             s//\1/
51421             q
51422           }
51423           s/.*/./; q'`
51424
51425 # CDPATH.
51426 $as_unset CDPATH
51427
51428
51429
51430   as_lineno_1=$LINENO
51431   as_lineno_2=$LINENO
51432   test "x$as_lineno_1" != "x$as_lineno_2" &&
51433   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51434
51435   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51436   # uniformly replaced by the line number.  The first 'sed' inserts a
51437   # line-number line after each line using $LINENO; the second 'sed'
51438   # does the real work.  The second script uses 'N' to pair each
51439   # line-number line with the line containing $LINENO, and appends
51440   # trailing '-' during substitution so that $LINENO is not a special
51441   # case at line end.
51442   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51443   # scripts with optimization help from Paolo Bonzini.  Blame Lee
51444   # E. McMahon (1931-1989) for sed's syntax.  :-)
51445   sed -n '
51446     p
51447     /[$]LINENO/=
51448   ' <$as_myself |
51449     sed '
51450       s/[$]LINENO.*/&-/
51451       t lineno
51452       b
51453       :lineno
51454       N
51455       :loop
51456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
51457       t loop
51458       s/-\n.*//
51459     ' >$as_me.lineno &&
51460   chmod +x "$as_me.lineno" ||
51461     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
51462    { (exit 1); exit 1; }; }
51463
51464   # Don't try to exec as it changes $[0], causing all sort of problems
51465   # (the dirname of $[0] is not the place where we might find the
51466   # original and so on.  Autoconf is especially sensitive to this).
51467   . "./$as_me.lineno"
51468   # Exit status is that of the last command.
51469   exit
51470 }
51471
51472
51473 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51474   as_dirname=dirname
51475 else
51476   as_dirname=false
51477 fi
51478
51479 ECHO_C= ECHO_N= ECHO_T=
51480 case `echo -n x` in
51481 -n*)
51482   case `echo 'x\c'` in
51483   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
51484   *)   ECHO_C='\c';;
51485   esac;;
51486 *)
51487   ECHO_N='-n';;
51488 esac
51489
51490 if expr a : '\(a\)' >/dev/null 2>&1 &&
51491    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51492   as_expr=expr
51493 else
51494   as_expr=false
51495 fi
51496
51497 rm -f conf$$ conf$$.exe conf$$.file
51498 if test -d conf$$.dir; then
51499   rm -f conf$$.dir/conf$$.file
51500 else
51501   rm -f conf$$.dir
51502   mkdir conf$$.dir
51503 fi
51504 echo >conf$$.file
51505 if ln -s conf$$.file conf$$ 2>/dev/null; then
51506   as_ln_s='ln -s'
51507   # ... but there are two gotchas:
51508   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51509   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51510   # In both cases, we have to default to `cp -p'.
51511   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51512     as_ln_s='cp -p'
51513 elif ln conf$$.file conf$$ 2>/dev/null; then
51514   as_ln_s=ln
51515 else
51516   as_ln_s='cp -p'
51517 fi
51518 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51519 rmdir conf$$.dir 2>/dev/null
51520
51521 if mkdir -p . 2>/dev/null; then
51522   as_mkdir_p=:
51523 else
51524   test -d ./-p && rmdir ./-p
51525   as_mkdir_p=false
51526 fi
51527
51528 if test -x / >/dev/null 2>&1; then
51529   as_test_x='test -x'
51530 else
51531   if ls -dL / >/dev/null 2>&1; then
51532     as_ls_L_option=L
51533   else
51534     as_ls_L_option=
51535   fi
51536   as_test_x='
51537     eval sh -c '\''
51538       if test -d "$1"; then
51539         test -d "$1/.";
51540       else
51541         case $1 in
51542         -*)set "./$1";;
51543         esac;
51544         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51545         ???[sx]*):;;*)false;;esac;fi
51546     '\'' sh
51547   '
51548 fi
51549 as_executable_p=$as_test_x
51550
51551 # Sed expression to map a string onto a valid CPP name.
51552 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51553
51554 # Sed expression to map a string onto a valid variable name.
51555 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51556
51557
51558 exec 6>&1
51559
51560 # Save the log message, to keep $[0] and so on meaningful, and to
51561 # report actual input values of CONFIG_FILES etc. instead of their
51562 # values after options handling.
51563 ac_log="
51564 This file was extended by wxWidgets $as_me 2.9.0, which was
51565 generated by GNU Autoconf 2.61.  Invocation command line was
51566
51567   CONFIG_FILES    = $CONFIG_FILES
51568   CONFIG_HEADERS  = $CONFIG_HEADERS
51569   CONFIG_LINKS    = $CONFIG_LINKS
51570   CONFIG_COMMANDS = $CONFIG_COMMANDS
51571   $ $0 $@
51572
51573 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51574 "
51575
51576 _ACEOF
51577
51578 cat >>$CONFIG_STATUS <<_ACEOF
51579 # Files that config.status was made for.
51580 config_files="$ac_config_files"
51581 config_headers="$ac_config_headers"
51582 config_commands="$ac_config_commands"
51583
51584 _ACEOF
51585
51586 cat >>$CONFIG_STATUS <<\_ACEOF
51587 ac_cs_usage="\
51588 \`$as_me' instantiates files from templates according to the
51589 current configuration.
51590
51591 Usage: $0 [OPTIONS] [FILE]...
51592
51593   -h, --help       print this help, then exit
51594   -V, --version    print version number and configuration settings, then exit
51595   -q, --quiet      do not print progress messages
51596   -d, --debug      don't remove temporary files
51597       --recheck    update $as_me by reconfiguring in the same conditions
51598   --file=FILE[:TEMPLATE]
51599                    instantiate the configuration file FILE
51600   --header=FILE[:TEMPLATE]
51601                    instantiate the configuration header FILE
51602
51603 Configuration files:
51604 $config_files
51605
51606 Configuration headers:
51607 $config_headers
51608
51609 Configuration commands:
51610 $config_commands
51611
51612 Report bugs to <bug-autoconf@gnu.org>."
51613
51614 _ACEOF
51615 cat >>$CONFIG_STATUS <<_ACEOF
51616 ac_cs_version="\\
51617 wxWidgets config.status 2.9.0
51618 configured by $0, generated by GNU Autoconf 2.61,
51619   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51620
51621 Copyright (C) 2006 Free Software Foundation, Inc.
51622 This config.status script is free software; the Free Software Foundation
51623 gives unlimited permission to copy, distribute and modify it."
51624
51625 ac_pwd='$ac_pwd'
51626 srcdir='$srcdir'
51627 INSTALL='$INSTALL'
51628 _ACEOF
51629
51630 cat >>$CONFIG_STATUS <<\_ACEOF
51631 # If no file are specified by the user, then we need to provide default
51632 # value.  By we need to know if files were specified by the user.
51633 ac_need_defaults=:
51634 while test $# != 0
51635 do
51636   case $1 in
51637   --*=*)
51638     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51639     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51640     ac_shift=:
51641     ;;
51642   *)
51643     ac_option=$1
51644     ac_optarg=$2
51645     ac_shift=shift
51646     ;;
51647   esac
51648
51649   case $ac_option in
51650   # Handling of the options.
51651   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51652     ac_cs_recheck=: ;;
51653   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51654     echo "$ac_cs_version"; exit ;;
51655   --debug | --debu | --deb | --de | --d | -d )
51656     debug=: ;;
51657   --file | --fil | --fi | --f )
51658     $ac_shift
51659     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51660     ac_need_defaults=false;;
51661   --header | --heade | --head | --hea )
51662     $ac_shift
51663     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51664     ac_need_defaults=false;;
51665   --he | --h)
51666     # Conflict between --help and --header
51667     { echo "$as_me: error: ambiguous option: $1
51668 Try \`$0 --help' for more information." >&2
51669    { (exit 1); exit 1; }; };;
51670   --help | --hel | -h )
51671     echo "$ac_cs_usage"; exit ;;
51672   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51673   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51674     ac_cs_silent=: ;;
51675
51676   # This is an error.
51677   -*) { echo "$as_me: error: unrecognized option: $1
51678 Try \`$0 --help' for more information." >&2
51679    { (exit 1); exit 1; }; } ;;
51680
51681   *) ac_config_targets="$ac_config_targets $1"
51682      ac_need_defaults=false ;;
51683
51684   esac
51685   shift
51686 done
51687
51688 ac_configure_extra_args=
51689
51690 if $ac_cs_silent; then
51691   exec 6>/dev/null
51692   ac_configure_extra_args="$ac_configure_extra_args --silent"
51693 fi
51694
51695 _ACEOF
51696 cat >>$CONFIG_STATUS <<_ACEOF
51697 if \$ac_cs_recheck; then
51698   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51699   CONFIG_SHELL=$SHELL
51700   export CONFIG_SHELL
51701   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51702 fi
51703
51704 _ACEOF
51705 cat >>$CONFIG_STATUS <<\_ACEOF
51706 exec 5>>config.log
51707 {
51708   echo
51709   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51710 ## Running $as_me. ##
51711 _ASBOX
51712   echo "$ac_log"
51713 } >&5
51714
51715 _ACEOF
51716 cat >>$CONFIG_STATUS <<_ACEOF
51717 #
51718 # INIT-COMMANDS
51719 #
51720
51721             CPP="$CPP"
51722             infile="$srcdir/include/wx/msw/genrcdefs.h"
51723             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
51724
51725
51726  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51727  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51728  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
51729                      LN_S="${LN_S}"
51730
51731
51732 _ACEOF
51733
51734 cat >>$CONFIG_STATUS <<\_ACEOF
51735
51736 # Handling of arguments.
51737 for ac_config_target in $ac_config_targets
51738 do
51739   case $ac_config_target in
51740     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
51741     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
51742     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
51743     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
51744     "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;;
51745     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
51746     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51747     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
51748     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
51749
51750   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51751 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51752    { (exit 1); exit 1; }; };;
51753   esac
51754 done
51755
51756
51757 # If the user did not use the arguments to specify the items to instantiate,
51758 # then the envvar interface is used.  Set only those that are not.
51759 # We use the long form for the default assignment because of an extremely
51760 # bizarre bug on SunOS 4.1.3.
51761 if $ac_need_defaults; then
51762   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51763   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51764   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51765 fi
51766
51767 # Have a temporary directory for convenience.  Make it in the build tree
51768 # simply because there is no reason against having it here, and in addition,
51769 # creating and moving files from /tmp can sometimes cause problems.
51770 # Hook for its removal unless debugging.
51771 # Note that there is a small window in which the directory will not be cleaned:
51772 # after its creation but before its name has been assigned to `$tmp'.
51773 $debug ||
51774 {
51775   tmp=
51776   trap 'exit_status=$?
51777   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51778 ' 0
51779   trap '{ (exit 1); exit 1; }' 1 2 13 15
51780 }
51781 # Create a (secure) tmp directory for tmp files.
51782
51783 {
51784   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51785   test -n "$tmp" && test -d "$tmp"
51786 }  ||
51787 {
51788   tmp=./conf$$-$RANDOM
51789   (umask 077 && mkdir "$tmp")
51790 } ||
51791 {
51792    echo "$me: cannot create a temporary directory in ." >&2
51793    { (exit 1); exit 1; }
51794 }
51795
51796 #
51797 # Set up the sed scripts for CONFIG_FILES section.
51798 #
51799
51800 # No need to generate the scripts if there are no CONFIG_FILES.
51801 # This happens for instance when ./config.status config.h
51802 if test -n "$CONFIG_FILES"; then
51803
51804 _ACEOF
51805
51806
51807
51808 ac_delim='%!_!# '
51809 for ac_last_try in false false false false false :; do
51810   cat >conf$$subs.sed <<_ACEOF
51811 SHELL!$SHELL$ac_delim
51812 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
51813 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
51814 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
51815 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
51816 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
51817 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
51818 exec_prefix!$exec_prefix$ac_delim
51819 prefix!$prefix$ac_delim
51820 program_transform_name!$program_transform_name$ac_delim
51821 bindir!$bindir$ac_delim
51822 sbindir!$sbindir$ac_delim
51823 libexecdir!$libexecdir$ac_delim
51824 datarootdir!$datarootdir$ac_delim
51825 datadir!$datadir$ac_delim
51826 sysconfdir!$sysconfdir$ac_delim
51827 sharedstatedir!$sharedstatedir$ac_delim
51828 localstatedir!$localstatedir$ac_delim
51829 includedir!$includedir$ac_delim
51830 oldincludedir!$oldincludedir$ac_delim
51831 docdir!$docdir$ac_delim
51832 infodir!$infodir$ac_delim
51833 htmldir!$htmldir$ac_delim
51834 dvidir!$dvidir$ac_delim
51835 pdfdir!$pdfdir$ac_delim
51836 psdir!$psdir$ac_delim
51837 libdir!$libdir$ac_delim
51838 localedir!$localedir$ac_delim
51839 mandir!$mandir$ac_delim
51840 DEFS!$DEFS$ac_delim
51841 ECHO_C!$ECHO_C$ac_delim
51842 ECHO_N!$ECHO_N$ac_delim
51843 ECHO_T!$ECHO_T$ac_delim
51844 LIBS!$LIBS$ac_delim
51845 build_alias!$build_alias$ac_delim
51846 host_alias!$host_alias$ac_delim
51847 target_alias!$target_alias$ac_delim
51848 build!$build$ac_delim
51849 build_cpu!$build_cpu$ac_delim
51850 build_vendor!$build_vendor$ac_delim
51851 build_os!$build_os$ac_delim
51852 host!$host$ac_delim
51853 host_cpu!$host_cpu$ac_delim
51854 host_vendor!$host_vendor$ac_delim
51855 host_os!$host_os$ac_delim
51856 target!$target$ac_delim
51857 target_cpu!$target_cpu$ac_delim
51858 target_vendor!$target_vendor$ac_delim
51859 target_os!$target_os$ac_delim
51860 wx_top_builddir!$wx_top_builddir$ac_delim
51861 CC!$CC$ac_delim
51862 CFLAGS!$CFLAGS$ac_delim
51863 LDFLAGS!$LDFLAGS$ac_delim
51864 CPPFLAGS!$CPPFLAGS$ac_delim
51865 ac_ct_CC!$ac_ct_CC$ac_delim
51866 EXEEXT!$EXEEXT$ac_delim
51867 OBJEXT!$OBJEXT$ac_delim
51868 CPP!$CPP$ac_delim
51869 GREP!$GREP$ac_delim
51870 EGREP!$EGREP$ac_delim
51871 CXX!$CXX$ac_delim
51872 CXXFLAGS!$CXXFLAGS$ac_delim
51873 ac_ct_CXX!$ac_ct_CXX$ac_delim
51874 AR!$AR$ac_delim
51875 subdirs!$subdirs$ac_delim
51876 PKG_CONFIG!$PKG_CONFIG$ac_delim
51877 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
51878 GTK_LIBS!$GTK_LIBS$ac_delim
51879 GTK_CONFIG!$GTK_CONFIG$ac_delim
51880 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
51881 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
51882 XMKMF!$XMKMF$ac_delim
51883 X_CFLAGS!$X_CFLAGS$ac_delim
51884 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
51885 X_LIBS!$X_LIBS$ac_delim
51886 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
51887 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
51888 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
51889 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
51890 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
51891 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
51892 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
51893 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
51894 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
51895 LIBICONV!$LIBICONV$ac_delim
51896 GXX_VERSION!$GXX_VERSION$ac_delim
51897 SDL_CONFIG!$SDL_CONFIG$ac_delim
51898 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
51899 SDL_LIBS!$SDL_LIBS$ac_delim
51900 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
51901 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
51902 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
51903 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
51904 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
51905 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
51906 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
51907 HILDON_LIBS!$HILDON_LIBS$ac_delim
51908 _ACEOF
51909
51910   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
51911     break
51912   elif $ac_last_try; then
51913     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51914 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51915    { (exit 1); exit 1; }; }
51916   else
51917     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51918   fi
51919 done
51920
51921 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
51922 if test -n "$ac_eof"; then
51923   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
51924   ac_eof=`expr $ac_eof + 1`
51925 fi
51926
51927 cat >>$CONFIG_STATUS <<_ACEOF
51928 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
51929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51930 _ACEOF
51931 sed '
51932 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
51933 s/^/s,@/; s/!/@,|#_!!_#|/
51934 :n
51935 t n
51936 s/'"$ac_delim"'$/,g/; t
51937 s/$/\\/; p
51938 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
51939 ' >>$CONFIG_STATUS <conf$$subs.sed
51940 rm -f conf$$subs.sed
51941 cat >>$CONFIG_STATUS <<_ACEOF
51942 CEOF$ac_eof
51943 _ACEOF
51944
51945
51946 ac_delim='%!_!# '
51947 for ac_last_try in false false false false false :; do
51948   cat >conf$$subs.sed <<_ACEOF
51949 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
51950 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
51951 GST_CFLAGS!$GST_CFLAGS$ac_delim
51952 GST_LIBS!$GST_LIBS$ac_delim
51953 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
51954 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
51955 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
51956 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
51957 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
51958 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
51959 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
51960 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
51961 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
51962 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
51963 VENDOR!$VENDOR$ac_delim
51964 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
51965 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
51966 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
51967 WXUNIV!$WXUNIV$ac_delim
51968 MONOLITHIC!$MONOLITHIC$ac_delim
51969 USE_PLUGINS!$USE_PLUGINS$ac_delim
51970 CXXWARNINGS!$CXXWARNINGS$ac_delim
51971 EXTRALIBS!$EXTRALIBS$ac_delim
51972 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
51973 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
51974 EXTRALIBS_MEDIA!$EXTRALIBS_MEDIA$ac_delim
51975 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
51976 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
51977 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
51978 EXTRALIBS_STC!$EXTRALIBS_STC$ac_delim
51979 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
51980 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
51981 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
51982 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
51983 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
51984 UNICODE!$UNICODE$ac_delim
51985 BUILD!$BUILD$ac_delim
51986 DEBUG_INFO!$DEBUG_INFO$ac_delim
51987 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
51988 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
51989 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
51990 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
51991 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
51992 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
51993 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
51994 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
51995 RANLIB!$RANLIB$ac_delim
51996 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
51997 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
51998 INSTALL_DATA!$INSTALL_DATA$ac_delim
51999 LN_S!$LN_S$ac_delim
52000 SET_MAKE!$SET_MAKE$ac_delim
52001 MAKE_SET!$MAKE_SET$ac_delim
52002 AROPTIONS!$AROPTIONS$ac_delim
52003 STRIP!$STRIP$ac_delim
52004 NM!$NM$ac_delim
52005 INSTALL_DIR!$INSTALL_DIR$ac_delim
52006 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
52007 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
52008 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
52009 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
52010 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
52011 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
52012 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
52013 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
52014 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
52015 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
52016 SO_SUFFIX!$SO_SUFFIX$ac_delim
52017 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
52018 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
52019 LIBPREFIX!$LIBPREFIX$ac_delim
52020 LIBEXT!$LIBEXT$ac_delim
52021 DLLPREFIX!$DLLPREFIX$ac_delim
52022 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
52023 dlldir!$dlldir$ac_delim
52024 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
52025 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
52026 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
52027 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
52028 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
52029 PIC_FLAG!$PIC_FLAG$ac_delim
52030 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
52031 USE_SOVERSION!$USE_SOVERSION$ac_delim
52032 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
52033 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
52034 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
52035 USE_MACVERSION!$USE_MACVERSION$ac_delim
52036 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
52037 SONAME_FLAG!$SONAME_FLAG$ac_delim
52038 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
52039 BK_DEPS!$BK_DEPS$ac_delim
52040 WINDRES!$WINDRES$ac_delim
52041 REZ!$REZ$ac_delim
52042 SETFILE!$SETFILE$ac_delim
52043 OBJCXXFLAGS!$OBJCXXFLAGS$ac_delim
52044 GCC_PCH!$GCC_PCH$ac_delim
52045 ICC_PCH!$ICC_PCH$ac_delim
52046 _ACEOF
52047
52048   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52049     break
52050   elif $ac_last_try; then
52051     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52052 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52053    { (exit 1); exit 1; }; }
52054   else
52055     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52056   fi
52057 done
52058
52059 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52060 if test -n "$ac_eof"; then
52061   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52062   ac_eof=`expr $ac_eof + 1`
52063 fi
52064
52065 cat >>$CONFIG_STATUS <<_ACEOF
52066 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
52067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52068 _ACEOF
52069 sed '
52070 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52071 s/^/s,@/; s/!/@,|#_!!_#|/
52072 :n
52073 t n
52074 s/'"$ac_delim"'$/,g/; t
52075 s/$/\\/; p
52076 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52077 ' >>$CONFIG_STATUS <conf$$subs.sed
52078 rm -f conf$$subs.sed
52079 cat >>$CONFIG_STATUS <<_ACEOF
52080 CEOF$ac_eof
52081 _ACEOF
52082
52083
52084 ac_delim='%!_!# '
52085 for ac_last_try in false false false false false :; do
52086   cat >conf$$subs.sed <<_ACEOF
52087 ICC_PCH_CREATE_SWITCH!$ICC_PCH_CREATE_SWITCH$ac_delim
52088 ICC_PCH_USE_SWITCH!$ICC_PCH_USE_SWITCH$ac_delim
52089 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
52090 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
52091 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
52092 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
52093 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
52094 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
52095 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
52096 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
52097 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
52098 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
52099 COND_BUILD_debug!$COND_BUILD_debug$ac_delim
52100 COND_BUILD_debug_DEBUG_FLAG_default!$COND_BUILD_debug_DEBUG_FLAG_default$ac_delim
52101 COND_BUILD_debug_DEBUG_INFO_default!$COND_BUILD_debug_DEBUG_INFO_default$ac_delim
52102 COND_BUILD_debug_UNICODE_0!$COND_BUILD_debug_UNICODE_0$ac_delim
52103 COND_BUILD_debug_UNICODE_1!$COND_BUILD_debug_UNICODE_1$ac_delim
52104 COND_BUILD_release!$COND_BUILD_release$ac_delim
52105 COND_BUILD_release_DEBUG_INFO_default!$COND_BUILD_release_DEBUG_INFO_default$ac_delim
52106 COND_BUILD_release_UNICODE_0!$COND_BUILD_release_UNICODE_0$ac_delim
52107 COND_BUILD_release_UNICODE_1!$COND_BUILD_release_UNICODE_1$ac_delim
52108 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
52109 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
52110 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
52111 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
52112 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
52113 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
52114 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
52115 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
52116 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
52117 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
52118 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
52119 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
52120 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
52121 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
52122 COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1$ac_delim
52123 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
52124 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
52125 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
52126 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
52127 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
52128 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
52129 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
52130 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
52131 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
52132 COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1!$COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1$ac_delim
52133 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
52134 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
52135 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
52136 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
52137 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
52138 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
52139 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
52140 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
52141 COND_MONOLITHIC_0_USE_PROPGRID_1!$COND_MONOLITHIC_0_USE_PROPGRID_1$ac_delim
52142 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
52143 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
52144 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
52145 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
52146 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
52147 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
52148 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
52149 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
52150 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
52151 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
52152 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
52153 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
52154 COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0!$COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0$ac_delim
52155 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52156 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
52157 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52158 COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52159 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
52160 COND_PLATFORM_MACOSX_1_USE_OPENGL_1!$COND_PLATFORM_MACOSX_1_USE_OPENGL_1$ac_delim
52161 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
52162 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
52163 COND_PLATFORM_MAC_0!$COND_PLATFORM_MAC_0$ac_delim
52164 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
52165 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
52166 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
52167 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
52168 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
52169 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
52170 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
52171 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
52172 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
52173 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
52174 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
52175 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
52176 COND_SHARED_0!$COND_SHARED_0$ac_delim
52177 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
52178 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
52179 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
52180 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
52181 COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52182 COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52183 COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52184 _ACEOF
52185
52186   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52187     break
52188   elif $ac_last_try; then
52189     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52190 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52191    { (exit 1); exit 1; }; }
52192   else
52193     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52194   fi
52195 done
52196
52197 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52198 if test -n "$ac_eof"; then
52199   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52200   ac_eof=`expr $ac_eof + 1`
52201 fi
52202
52203 cat >>$CONFIG_STATUS <<_ACEOF
52204 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
52205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52206 _ACEOF
52207 sed '
52208 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52209 s/^/s,@/; s/!/@,|#_!!_#|/
52210 :n
52211 t n
52212 s/'"$ac_delim"'$/,g/; t
52213 s/$/\\/; p
52214 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52215 ' >>$CONFIG_STATUS <conf$$subs.sed
52216 rm -f conf$$subs.sed
52217 cat >>$CONFIG_STATUS <<_ACEOF
52218 CEOF$ac_eof
52219 _ACEOF
52220
52221
52222 ac_delim='%!_!# '
52223 for ac_last_try in false false false false false :; do
52224   cat >conf$$subs.sed <<_ACEOF
52225 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
52226 COND_SHARED_0_wxUSE_EXPAT_builtin!$COND_SHARED_0_wxUSE_EXPAT_builtin$ac_delim
52227 COND_SHARED_0_wxUSE_REGEX_builtin!$COND_SHARED_0_wxUSE_REGEX_builtin$ac_delim
52228 COND_SHARED_0_wxUSE_ZLIB_builtin!$COND_SHARED_0_wxUSE_ZLIB_builtin$ac_delim
52229 COND_SHARED_1!$COND_SHARED_1$ac_delim
52230 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
52231 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
52232 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
52233 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
52234 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52235 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
52236 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
52237 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
52238 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
52239 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
52240 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
52241 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
52242 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
52243 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
52244 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
52245 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
52246 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
52247 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
52248 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
52249 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
52250 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
52251 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
52252 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
52253 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
52254 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
52255 COND_TOOLKIT_OSX_CARBON!$COND_TOOLKIT_OSX_CARBON$ac_delim
52256 COND_TOOLKIT_OSX_CARBON_USE_GUI_1!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1$ac_delim
52257 COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0$ac_delim
52258 COND_TOOLKIT_OSX_COCOA!$COND_TOOLKIT_OSX_COCOA$ac_delim
52259 COND_TOOLKIT_OSX_COCOA_USE_GUI_1!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1$ac_delim
52260 COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
52261 COND_TOOLKIT_OSX_IPHONE!$COND_TOOLKIT_OSX_IPHONE$ac_delim
52262 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
52263 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
52264 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
52265 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
52266 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
52267 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
52268 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
52269 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
52270 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
52271 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
52272 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
52273 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
52274 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
52275 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
52276 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
52277 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
52278 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
52279 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
52280 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
52281 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
52282 COND_USE_GUI_1_wxUSE_LIBJPEG_builtin!$COND_USE_GUI_1_wxUSE_LIBJPEG_builtin$ac_delim
52283 COND_USE_GUI_1_wxUSE_LIBPNG_builtin!$COND_USE_GUI_1_wxUSE_LIBPNG_builtin$ac_delim
52284 COND_USE_GUI_1_wxUSE_LIBTIFF_builtin!$COND_USE_GUI_1_wxUSE_LIBTIFF_builtin$ac_delim
52285 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
52286 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
52287 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
52288 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
52289 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
52290 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
52291 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
52292 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
52293 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
52294 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
52295 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
52296 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
52297 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
52298 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
52299 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
52300 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
52301 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
52302 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
52303 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
52304 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
52305 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
52306 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
52307 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
52308 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
52309 COND_wxUSE_EXPAT_builtin!$COND_wxUSE_EXPAT_builtin$ac_delim
52310 COND_wxUSE_LIBJPEG_builtin!$COND_wxUSE_LIBJPEG_builtin$ac_delim
52311 COND_wxUSE_LIBPNG_builtin!$COND_wxUSE_LIBPNG_builtin$ac_delim
52312 COND_wxUSE_LIBTIFF_builtin!$COND_wxUSE_LIBTIFF_builtin$ac_delim
52313 COND_wxUSE_REGEX_builtin!$COND_wxUSE_REGEX_builtin$ac_delim
52314 COND_wxUSE_ZLIB_builtin!$COND_wxUSE_ZLIB_builtin$ac_delim
52315 DEREZ!$DEREZ$ac_delim
52316 SHARED!$SHARED$ac_delim
52317 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
52318 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
52319 USE_GUI!$USE_GUI$ac_delim
52320 AFMINSTALL!$AFMINSTALL$ac_delim
52321 WIN32INSTALL!$WIN32INSTALL$ac_delim
52322 _ACEOF
52323
52324   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
52325     break
52326   elif $ac_last_try; then
52327     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52328 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52329    { (exit 1); exit 1; }; }
52330   else
52331     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52332   fi
52333 done
52334
52335 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52336 if test -n "$ac_eof"; then
52337   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52338   ac_eof=`expr $ac_eof + 1`
52339 fi
52340
52341 cat >>$CONFIG_STATUS <<_ACEOF
52342 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
52343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52344 _ACEOF
52345 sed '
52346 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52347 s/^/s,@/; s/!/@,|#_!!_#|/
52348 :n
52349 t n
52350 s/'"$ac_delim"'$/,g/; t
52351 s/$/\\/; p
52352 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52353 ' >>$CONFIG_STATUS <conf$$subs.sed
52354 rm -f conf$$subs.sed
52355 cat >>$CONFIG_STATUS <<_ACEOF
52356 CEOF$ac_eof
52357 _ACEOF
52358
52359
52360 ac_delim='%!_!# '
52361 for ac_last_try in false false false false false :; do
52362   cat >conf$$subs.sed <<_ACEOF
52363 TOOLKIT!$TOOLKIT$ac_delim
52364 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
52365 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
52366 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
52367 cross_compiling!$cross_compiling$ac_delim
52368 WIDGET_SET!$WIDGET_SET$ac_delim
52369 WX_RELEASE!$WX_RELEASE$ac_delim
52370 WX_VERSION!$WX_VERSION$ac_delim
52371 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
52372 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
52373 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
52374 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
52375 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
52376 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
52377 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
52378 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
52379 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
52380 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
52381 GUIDIST!$GUIDIST$ac_delim
52382 DISTDIR!$DISTDIR$ac_delim
52383 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
52384 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
52385 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
52386 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
52387 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
52388 RESCOMP!$RESCOMP$ac_delim
52389 RESFLAGS!$RESFLAGS$ac_delim
52390 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
52391 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
52392 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
52393 LIBWXMACRES!$LIBWXMACRES$ac_delim
52394 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
52395 MACSETFILE!$MACSETFILE$ac_delim
52396 GCC!$GCC$ac_delim
52397 DLLTOOL!$DLLTOOL$ac_delim
52398 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
52399 LIBOBJS!$LIBOBJS$ac_delim
52400 LTLIBOBJS!$LTLIBOBJS$ac_delim
52401 _ACEOF
52402
52403   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
52404     break
52405   elif $ac_last_try; then
52406     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
52407 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
52408    { (exit 1); exit 1; }; }
52409   else
52410     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52411   fi
52412 done
52413
52414 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
52415 if test -n "$ac_eof"; then
52416   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
52417   ac_eof=`expr $ac_eof + 1`
52418 fi
52419
52420 cat >>$CONFIG_STATUS <<_ACEOF
52421 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
52422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
52423 _ACEOF
52424 sed '
52425 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
52426 s/^/s,@/; s/!/@,|#_!!_#|/
52427 :n
52428 t n
52429 s/'"$ac_delim"'$/,g/; t
52430 s/$/\\/; p
52431 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
52432 ' >>$CONFIG_STATUS <conf$$subs.sed
52433 rm -f conf$$subs.sed
52434 cat >>$CONFIG_STATUS <<_ACEOF
52435 :end
52436 s/|#_!!_#|//g
52437 CEOF$ac_eof
52438 _ACEOF
52439
52440
52441 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52442 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52443 # trailing colons and then remove the whole line if VPATH becomes empty
52444 # (actually we leave an empty line to preserve line numbers).
52445 if test "x$srcdir" = x.; then
52446   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52447 s/:*\$(srcdir):*/:/
52448 s/:*\${srcdir}:*/:/
52449 s/:*@srcdir@:*/:/
52450 s/^\([^=]*=[     ]*\):*/\1/
52451 s/:*$//
52452 s/^[^=]*=[       ]*$//
52453 }'
52454 fi
52455
52456 cat >>$CONFIG_STATUS <<\_ACEOF
52457 fi # test -n "$CONFIG_FILES"
52458
52459
52460 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
52461 do
52462   case $ac_tag in
52463   :[FHLC]) ac_mode=$ac_tag; continue;;
52464   esac
52465   case $ac_mode$ac_tag in
52466   :[FHL]*:*);;
52467   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
52468 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
52469    { (exit 1); exit 1; }; };;
52470   :[FH]-) ac_tag=-:-;;
52471   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52472   esac
52473   ac_save_IFS=$IFS
52474   IFS=:
52475   set x $ac_tag
52476   IFS=$ac_save_IFS
52477   shift
52478   ac_file=$1
52479   shift
52480
52481   case $ac_mode in
52482   :L) ac_source=$1;;
52483   :[FH])
52484     ac_file_inputs=
52485     for ac_f
52486     do
52487       case $ac_f in
52488       -) ac_f="$tmp/stdin";;
52489       *) # Look for the file first in the build tree, then in the source tree
52490          # (if the path is not absolute).  The absolute path cannot be DOS-style,
52491          # because $ac_f cannot contain `:'.
52492          test -f "$ac_f" ||
52493            case $ac_f in
52494            [\\/$]*) false;;
52495            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52496            esac ||
52497            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52498 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52499    { (exit 1); exit 1; }; };;
52500       esac
52501       ac_file_inputs="$ac_file_inputs $ac_f"
52502     done
52503
52504     # Let's still pretend it is `configure' which instantiates (i.e., don't
52505     # use $as_me), people would be surprised to read:
52506     #    /* config.h.  Generated by config.status.  */
52507     configure_input="Generated from "`IFS=:
52508           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
52509     if test x"$ac_file" != x-; then
52510       configure_input="$ac_file.  $configure_input"
52511       { echo "$as_me:$LINENO: creating $ac_file" >&5
52512 echo "$as_me: creating $ac_file" >&6;}
52513     fi
52514
52515     case $ac_tag in
52516     *:-:* | *:-) cat >"$tmp/stdin";;
52517     esac
52518     ;;
52519   esac
52520
52521   ac_dir=`$as_dirname -- "$ac_file" ||
52522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52523          X"$ac_file" : 'X\(//\)[^/]' \| \
52524          X"$ac_file" : 'X\(//\)$' \| \
52525          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52526 echo X"$ac_file" |
52527     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52528             s//\1/
52529             q
52530           }
52531           /^X\(\/\/\)[^/].*/{
52532             s//\1/
52533             q
52534           }
52535           /^X\(\/\/\)$/{
52536             s//\1/
52537             q
52538           }
52539           /^X\(\/\).*/{
52540             s//\1/
52541             q
52542           }
52543           s/.*/./; q'`
52544   { as_dir="$ac_dir"
52545   case $as_dir in #(
52546   -*) as_dir=./$as_dir;;
52547   esac
52548   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52549     as_dirs=
52550     while :; do
52551       case $as_dir in #(
52552       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52553       *) as_qdir=$as_dir;;
52554       esac
52555       as_dirs="'$as_qdir' $as_dirs"
52556       as_dir=`$as_dirname -- "$as_dir" ||
52557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52558          X"$as_dir" : 'X\(//\)[^/]' \| \
52559          X"$as_dir" : 'X\(//\)$' \| \
52560          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52561 echo X"$as_dir" |
52562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52563             s//\1/
52564             q
52565           }
52566           /^X\(\/\/\)[^/].*/{
52567             s//\1/
52568             q
52569           }
52570           /^X\(\/\/\)$/{
52571             s//\1/
52572             q
52573           }
52574           /^X\(\/\).*/{
52575             s//\1/
52576             q
52577           }
52578           s/.*/./; q'`
52579       test -d "$as_dir" && break
52580     done
52581     test -z "$as_dirs" || eval "mkdir $as_dirs"
52582   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52583 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52584    { (exit 1); exit 1; }; }; }
52585   ac_builddir=.
52586
52587 case "$ac_dir" in
52588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52589 *)
52590   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52591   # A ".." for each directory in $ac_dir_suffix.
52592   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52593   case $ac_top_builddir_sub in
52594   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52595   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52596   esac ;;
52597 esac
52598 ac_abs_top_builddir=$ac_pwd
52599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52600 # for backward compatibility:
52601 ac_top_builddir=$ac_top_build_prefix
52602
52603 case $srcdir in
52604   .)  # We are building in place.
52605     ac_srcdir=.
52606     ac_top_srcdir=$ac_top_builddir_sub
52607     ac_abs_top_srcdir=$ac_pwd ;;
52608   [\\/]* | ?:[\\/]* )  # Absolute name.
52609     ac_srcdir=$srcdir$ac_dir_suffix;
52610     ac_top_srcdir=$srcdir
52611     ac_abs_top_srcdir=$srcdir ;;
52612   *) # Relative name.
52613     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52614     ac_top_srcdir=$ac_top_build_prefix$srcdir
52615     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52616 esac
52617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52618
52619
52620   case $ac_mode in
52621   :F)
52622   #
52623   # CONFIG_FILE
52624   #
52625
52626   case $INSTALL in
52627   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52628   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52629   esac
52630 _ACEOF
52631
52632 cat >>$CONFIG_STATUS <<\_ACEOF
52633 # If the template does not know about datarootdir, expand it.
52634 # FIXME: This hack should be removed a few years after 2.60.
52635 ac_datarootdir_hack=; ac_datarootdir_seen=
52636
52637 case `sed -n '/datarootdir/ {
52638   p
52639   q
52640 }
52641 /@datadir@/p
52642 /@docdir@/p
52643 /@infodir@/p
52644 /@localedir@/p
52645 /@mandir@/p
52646 ' $ac_file_inputs` in
52647 *datarootdir*) ac_datarootdir_seen=yes;;
52648 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52649   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52650 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52651 _ACEOF
52652 cat >>$CONFIG_STATUS <<_ACEOF
52653   ac_datarootdir_hack='
52654   s&@datadir@&$datadir&g
52655   s&@docdir@&$docdir&g
52656   s&@infodir@&$infodir&g
52657   s&@localedir@&$localedir&g
52658   s&@mandir@&$mandir&g
52659     s&\\\${datarootdir}&$datarootdir&g' ;;
52660 esac
52661 _ACEOF
52662
52663 # Neutralize VPATH when `$srcdir' = `.'.
52664 # Shell code in configure.ac might set extrasub.
52665 # FIXME: do we really want to maintain this feature?
52666 cat >>$CONFIG_STATUS <<_ACEOF
52667   sed "$ac_vpsub
52668 $extrasub
52669 _ACEOF
52670 cat >>$CONFIG_STATUS <<\_ACEOF
52671 :t
52672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52673 s&@configure_input@&$configure_input&;t t
52674 s&@top_builddir@&$ac_top_builddir_sub&;t t
52675 s&@srcdir@&$ac_srcdir&;t t
52676 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52677 s&@top_srcdir@&$ac_top_srcdir&;t t
52678 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52679 s&@builddir@&$ac_builddir&;t t
52680 s&@abs_builddir@&$ac_abs_builddir&;t t
52681 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52682 s&@INSTALL@&$ac_INSTALL&;t t
52683 $ac_datarootdir_hack
52684 " $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
52685
52686 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52687   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52688   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52689   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52690 which seems to be undefined.  Please make sure it is defined." >&5
52691 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52692 which seems to be undefined.  Please make sure it is defined." >&2;}
52693
52694   rm -f "$tmp/stdin"
52695   case $ac_file in
52696   -) cat "$tmp/out"; rm -f "$tmp/out";;
52697   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
52698   esac
52699  ;;
52700   :H)
52701   #
52702   # CONFIG_HEADER
52703   #
52704 _ACEOF
52705
52706 # Transform confdefs.h into a sed script `conftest.defines', that
52707 # substitutes the proper values into config.h.in to produce config.h.
52708 rm -f conftest.defines conftest.tail
52709 # First, append a space to every undef/define line, to ease matching.
52710 echo 's/$/ /' >conftest.defines
52711 # Then, protect against being on the right side of a sed subst, or in
52712 # an unquoted here document, in config.status.  If some macros were
52713 # called several times there might be several #defines for the same
52714 # symbol, which is useless.  But do not sort them, since the last
52715 # AC_DEFINE must be honored.
52716 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52717 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
52718 # NAME is the cpp macro being defined, VALUE is the value it is being given.
52719 # PARAMS is the parameter list in the macro definition--in most cases, it's
52720 # just an empty string.
52721 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
52722 ac_dB='\\)[      (].*,\\1define\\2'
52723 ac_dC=' '
52724 ac_dD=' ,'
52725
52726 uniq confdefs.h |
52727   sed -n '
52728         t rset
52729         :rset
52730         s/^[     ]*#[    ]*define[       ][      ]*//
52731         t ok
52732         d
52733         :ok
52734         s/[\\&,]/\\&/g
52735         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
52736         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
52737   ' >>conftest.defines
52738
52739 # Remove the space that was appended to ease matching.
52740 # Then replace #undef with comments.  This is necessary, for
52741 # example, in the case of _POSIX_SOURCE, which is predefined and required
52742 # on some systems where configure will not decide to define it.
52743 # (The regexp can be short, since the line contains either #define or #undef.)
52744 echo 's/ $//
52745 s,^[     #]*u.*,/* & */,' >>conftest.defines
52746
52747 # Break up conftest.defines:
52748 ac_max_sed_lines=50
52749
52750 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
52751 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
52752 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
52753 # et cetera.
52754 ac_in='$ac_file_inputs'
52755 ac_out='"$tmp/out1"'
52756 ac_nxt='"$tmp/out2"'
52757
52758 while :
52759 do
52760   # Write a here document:
52761     cat >>$CONFIG_STATUS <<_ACEOF
52762     # First, check the format of the line:
52763     cat >"\$tmp/defines.sed" <<\\CEOF
52764 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
52765 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
52766 b
52767 :def
52768 _ACEOF
52769   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
52770   echo 'CEOF
52771     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
52772   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
52773   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
52774   grep . conftest.tail >/dev/null || break
52775   rm -f conftest.defines
52776   mv conftest.tail conftest.defines
52777 done
52778 rm -f conftest.defines conftest.tail
52779
52780 echo "ac_result=$ac_in" >>$CONFIG_STATUS
52781 cat >>$CONFIG_STATUS <<\_ACEOF
52782   if test x"$ac_file" != x-; then
52783     echo "/* $configure_input  */" >"$tmp/config.h"
52784     cat "$ac_result" >>"$tmp/config.h"
52785     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
52786       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52787 echo "$as_me: $ac_file is unchanged" >&6;}
52788     else
52789       rm -f $ac_file
52790       mv "$tmp/config.h" $ac_file
52791     fi
52792   else
52793     echo "/* $configure_input  */"
52794     cat "$ac_result"
52795   fi
52796   rm -f "$tmp/out12"
52797  ;;
52798
52799   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
52800 echo "$as_me: executing $ac_file commands" >&6;}
52801  ;;
52802   esac
52803
52804
52805   case $ac_file$ac_mode in
52806     "rcdefs.h":C)
52807             mkdir -p $outdir &&
52808             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
52809          ;;
52810     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
52811     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
52812     "utils/ifacecheck/rungccxml.sh":F)  chmod +x utils/ifacecheck/rungccxml.sh  ;;
52813     "wx-config":C)  rm -f wx-config
52814                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
52815                     ;;
52816
52817   esac
52818 done # for ac_tag
52819
52820
52821 { (exit 0); exit 0; }
52822 _ACEOF
52823 chmod +x $CONFIG_STATUS
52824 ac_clean_files=$ac_clean_files_save
52825
52826
52827 # configure is writing to config.log, and then calls config.status.
52828 # config.status does its own redirection, appending to config.log.
52829 # Unfortunately, on DOS this fails, as config.log is still kept open
52830 # by configure, so config.status won't be able to write to it; its
52831 # output is simply discarded.  So we exec the FD to /dev/null,
52832 # effectively closing config.log, so it can be properly (re)opened and
52833 # appended to by config.status.  When coming back to configure, we
52834 # need to make the FD available again.
52835 if test "$no_create" != yes; then
52836   ac_cs_success=:
52837   ac_config_status_args=
52838   test "$silent" = yes &&
52839     ac_config_status_args="$ac_config_status_args --quiet"
52840   exec 5>/dev/null
52841   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52842   exec 5>>config.log
52843   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52844   # would make configure fail if this is the last instruction.
52845   $ac_cs_success || { (exit 1); exit 1; }
52846 fi
52847
52848 #
52849 # CONFIG_SUBDIRS section.
52850 #
52851 if test "$no_recursion" != yes; then
52852
52853   # Remove --cache-file and --srcdir arguments so they do not pile up.
52854   ac_sub_configure_args=
52855   ac_prev=
52856   eval "set x $ac_configure_args"
52857   shift
52858   for ac_arg
52859   do
52860     if test -n "$ac_prev"; then
52861       ac_prev=
52862       continue
52863     fi
52864     case $ac_arg in
52865     -cache-file | --cache-file | --cache-fil | --cache-fi \
52866     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
52867       ac_prev=cache_file ;;
52868     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
52869     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
52870     | --c=*)
52871       ;;
52872     --config-cache | -C)
52873       ;;
52874     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
52875       ac_prev=srcdir ;;
52876     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
52877       ;;
52878     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
52879       ac_prev=prefix ;;
52880     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
52881       ;;
52882     *)
52883       case $ac_arg in
52884       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52885       esac
52886       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
52887     esac
52888   done
52889
52890   # Always prepend --prefix to ensure using the same prefix
52891   # in subdir configurations.
52892   ac_arg="--prefix=$prefix"
52893   case $ac_arg in
52894   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
52895   esac
52896   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
52897
52898   # Pass --silent
52899   if test "$silent" = yes; then
52900     ac_sub_configure_args="--silent $ac_sub_configure_args"
52901   fi
52902
52903   ac_popdir=`pwd`
52904   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
52905
52906     # Do not complain, so a configure script can configure whichever
52907     # parts of a large source tree are present.
52908     test -d "$srcdir/$ac_dir" || continue
52909
52910     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
52911     echo "$as_me:$LINENO: $ac_msg" >&5
52912     echo "$ac_msg" >&6
52913     { as_dir="$ac_dir"
52914   case $as_dir in #(
52915   -*) as_dir=./$as_dir;;
52916   esac
52917   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52918     as_dirs=
52919     while :; do
52920       case $as_dir in #(
52921       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
52922       *) as_qdir=$as_dir;;
52923       esac
52924       as_dirs="'$as_qdir' $as_dirs"
52925       as_dir=`$as_dirname -- "$as_dir" ||
52926 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52927          X"$as_dir" : 'X\(//\)[^/]' \| \
52928          X"$as_dir" : 'X\(//\)$' \| \
52929          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52930 echo X"$as_dir" |
52931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52932             s//\1/
52933             q
52934           }
52935           /^X\(\/\/\)[^/].*/{
52936             s//\1/
52937             q
52938           }
52939           /^X\(\/\/\)$/{
52940             s//\1/
52941             q
52942           }
52943           /^X\(\/\).*/{
52944             s//\1/
52945             q
52946           }
52947           s/.*/./; q'`
52948       test -d "$as_dir" && break
52949     done
52950     test -z "$as_dirs" || eval "mkdir $as_dirs"
52951   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52952 echo "$as_me: error: cannot create directory $as_dir" >&2;}
52953    { (exit 1); exit 1; }; }; }
52954     ac_builddir=.
52955
52956 case "$ac_dir" in
52957 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52958 *)
52959   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52960   # A ".." for each directory in $ac_dir_suffix.
52961   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
52962   case $ac_top_builddir_sub in
52963   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52964   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52965   esac ;;
52966 esac
52967 ac_abs_top_builddir=$ac_pwd
52968 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52969 # for backward compatibility:
52970 ac_top_builddir=$ac_top_build_prefix
52971
52972 case $srcdir in
52973   .)  # We are building in place.
52974     ac_srcdir=.
52975     ac_top_srcdir=$ac_top_builddir_sub
52976     ac_abs_top_srcdir=$ac_pwd ;;
52977   [\\/]* | ?:[\\/]* )  # Absolute name.
52978     ac_srcdir=$srcdir$ac_dir_suffix;
52979     ac_top_srcdir=$srcdir
52980     ac_abs_top_srcdir=$srcdir ;;
52981   *) # Relative name.
52982     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52983     ac_top_srcdir=$ac_top_build_prefix$srcdir
52984     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52985 esac
52986 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52987
52988
52989     cd "$ac_dir"
52990
52991     # Check for guested configure; otherwise get Cygnus style configure.
52992     if test -f "$ac_srcdir/configure.gnu"; then
52993       ac_sub_configure=$ac_srcdir/configure.gnu
52994     elif test -f "$ac_srcdir/configure"; then
52995       ac_sub_configure=$ac_srcdir/configure
52996     elif test -f "$ac_srcdir/configure.in"; then
52997       # This should be Cygnus configure.
52998       ac_sub_configure=$ac_aux_dir/configure
52999     else
53000       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
53001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
53002       ac_sub_configure=
53003     fi
53004
53005     # The recursion is here.
53006     if test -n "$ac_sub_configure"; then
53007       # Make the cache file name correct relative to the subdirectory.
53008       case $cache_file in
53009       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
53010       *) # Relative name.
53011         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
53012       esac
53013
53014       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
53015 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
53016       # The eval makes quoting arguments work.
53017       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
53018            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
53019         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
53020 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
53021    { (exit 1); exit 1; }; }
53022     fi
53023
53024     cd "$ac_popdir"
53025   done
53026 fi
53027
53028
53029 echo
53030 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
53031 echo ""
53032 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
53033 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
53034
53035 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
53036 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
53037 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
53038 if test "$wxUSE_UNICODE" = "yes"; then
53039     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
53040         echo " (using UTF-8)"
53041     else
53042         echo " (using wchar_t)"
53043     fi
53044 else
53045     echo
53046 fi
53047
53048 echo "  What level of wxWidgets compatibility should be enabled?"
53049 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
53050 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
53051
53052 echo "  Which libraries should wxWidgets use?"
53053 echo "                                       STL                ${wxUSE_STL}"
53054 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
53055 echo "                                       png                ${wxUSE_LIBPNG-none}"
53056 echo "                                       regex              ${wxUSE_REGEX}"
53057 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
53058 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
53059 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
53060 fi
53061 echo "                                       zlib               ${wxUSE_ZLIB}"
53062 echo "                                       expat              ${wxUSE_EXPAT}"
53063 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
53064 echo "                                       sdl                ${wxUSE_LIBSDL}"
53065
53066 echo ""
53067